]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_misc_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_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_wxFileTypeInfo swig_types[53]
265 #define SWIGTYPE_p_wxFrame swig_types[54]
266 #define SWIGTYPE_p_wxTimer swig_types[55]
267 #define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
268 #define SWIGTYPE_p_wxPyArtProvider swig_types[57]
269 #define SWIGTYPE_p_wxPyTipProvider swig_types[58]
270 #define SWIGTYPE_p_wxTipProvider swig_types[59]
271 #define SWIGTYPE_p_wxJoystick swig_types[60]
272 #define SWIGTYPE_p_wxSystemOptions swig_types[61]
273 #define SWIGTYPE_p_wxPoint swig_types[62]
274 #define SWIGTYPE_p_wxJoystickEvent swig_types[63]
275 #define SWIGTYPE_p_wxCursor swig_types[64]
276 #define SWIGTYPE_p_wxObject swig_types[65]
277 #define SWIGTYPE_p_wxOutputStream swig_types[66]
278 #define SWIGTYPE_p_wxDateTime swig_types[67]
279 #define SWIGTYPE_p_wxPyDropSource swig_types[68]
280 #define SWIGTYPE_p_wxWindow swig_types[69]
281 #define SWIGTYPE_p_wxString swig_types[70]
282 #define SWIGTYPE_p_wxPyProcess swig_types[71]
283 #define SWIGTYPE_p_wxBitmap swig_types[72]
284 #define SWIGTYPE_p_wxConfig swig_types[73]
285 #define SWIGTYPE_p_wxChar swig_types[74]
286 #define SWIGTYPE_p_wxBusyInfo swig_types[75]
287 #define SWIGTYPE_p_wxPyDropTarget swig_types[76]
288 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
289 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
290 #define SWIGTYPE_p_wxProcessEvent swig_types[79]
291 #define SWIGTYPE_p_wxPyLog swig_types[80]
292 #define SWIGTYPE_p_wxLogNull swig_types[81]
293 #define SWIGTYPE_p_wxColour swig_types[82]
294 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
295 #define SWIGTYPE_p_wxPyTimer swig_types[84]
296 #define SWIGTYPE_p_wxDateSpan swig_types[85]
297 static swig_type_info *swig_types[87];
298
299 /* -------- TYPES TABLE (END) -------- */
300
301
302 /*-----------------------------------------------
303 @(target):= _misc_.so
304 ------------------------------------------------*/
305 #define SWIG_init init_misc_
306
307 #define SWIG_name "_misc_"
308
309 /* Auxiliar swig macros that appear in the header */
310
311 #define SWIG_OLDOBJ 1
312 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
313 #define SWIG_PYSTR SWIG_NEWOBJ + 1
314
315 #ifdef __cplusplus
316 #define SWIGSTATICINLINE(a) static inline a
317 #define SWIGSTATIC(a) static a
318 #define swig_new_array(size,Type) (new Type[(size)])
319 #define swig_delete(cptr) delete cptr
320 #define swig_delete_array(cptr) delete[] cptr
321 #define swig_const_cast(a,Type) const_cast<Type >(a)
322 #define swig_static_cast(a,Type) static_cast<Type >(a)
323 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
324 #define swig_new_copy(ptr,Type) (new Type(*ptr))
325 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
326
327 #else /* C case */
328
329 #define SWIGSTATICINLINE(a) static a
330 #define SWIGSTATIC(a) static a
331 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
332 #define swig_delete(cptr) free((char*)cptr)
333 #define swig_delete_array(cptr) free((char*)cptr)
334 #define swig_const_cast(a,Type) (Type)(a)
335 #define swig_static_cast(a,Type) (Type)(a)
336 #define swig_reinterpret_cast(a,Type) (Type)(a)
337 #define swig_numeric_cast(a,Type) (Type)(a)
338 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
339
340 #endif /* __cplusplus */
341
342
343 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
344 #define SWIG_From_signed_SS_char PyInt_FromLong
345 /*@@*/
346 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
347 #define SWIG_From_unsigned_SS_char PyInt_FromLong
348 /*@@*/
349 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
350 #define SWIG_From_short PyInt_FromLong
351 /*@@*/
352 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
353 #define SWIG_From_unsigned_SS_short PyInt_FromLong
354 /*@@*/
355 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
356 #define SWIG_From_int PyInt_FromLong
357 /*@@*/
358 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
359 #define SWIG_From_long PyInt_FromLong
360 /*@@*/
361 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
362 #define SWIG_From_float PyFloat_FromDouble
363 /*@@*/
364 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
365 #define SWIG_From_double PyFloat_FromDouble
366 /*@@*/
367
368
369 #include "wx/wxPython/wxPython.h"
370 #include "wx/wxPython/pyclasses.h"
371 #include "wx/wxPython/pyistream.h"
372
373 static const wxString wxPyEmptyString(wxEmptyString);
374
375
376
377 #include <limits.h>
378
379
380 SWIGSTATICINLINE(int)
381 SWIG_CheckLongInRange(long value, long min_value, long max_value,
382 const char *errmsg)
383 {
384 if (value < min_value) {
385 if (errmsg) {
386 PyErr_Format(PyExc_OverflowError,
387 "value %ld is less than '%s' minimum %ld",
388 value, errmsg, min_value);
389 }
390 return 0;
391 } else if (value > max_value) {
392 if (errmsg) {
393 PyErr_Format(PyExc_OverflowError,
394 "value %ld is greater than '%s' maximum %ld",
395 value, errmsg, max_value);
396 }
397 return 0;
398 }
399 return 1;
400 }
401
402
403 // See my_fragments.i
404 SWIGSTATICINLINE(int)
405 SWIG_AsVal_long(PyObject* obj, long* val)
406 {
407 if (PyNumber_Check(obj)) {
408 if (val) *val = PyInt_AsLong(obj);
409 return 1;
410 }
411 else {
412 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
413 obj->ob_type->tp_name);
414 PyErr_SetObject(PyExc_TypeError, errmsg);
415 Py_DECREF(errmsg);
416 }
417 return 0;
418 }
419
420
421 #if INT_MAX != LONG_MAX
422 SWIGSTATICINLINE(int)
423 SWIG_AsVal_int(PyObject *obj, int *val)
424 {
425 const char* errmsg = val ? "int" : 0;
426 long v;
427 if (SWIG_AsVal_long(obj, &v)) {
428 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
429 if (val) *val = swig_numeric_cast(v, int);
430 return 1;
431 } else {
432 return 0;
433 }
434 } else {
435 PyErr_Clear();
436 }
437 if (val) {
438 PyErr_SetString(PyExc_TypeError, "an int is expected");
439 }
440 return 0;
441 }
442 #else
443 SWIGSTATICINLINE(int)
444 SWIG_AsVal_int(PyObject *obj, int *val)
445 {
446 return SWIG_AsVal_long(obj,(long*)val);
447 }
448 #endif
449
450
451 SWIGSTATICINLINE(int)
452 SWIG_As_int(PyObject* obj)
453 {
454 int v;
455 if (!SWIG_AsVal_int(obj, &v)) {
456 /*
457 this is needed to make valgrind/purify happier. the other
458 solution is throw an exception, but since this code should work
459 with plain C ....
460 */
461 memset((void*)&v, 0, sizeof(int));
462 }
463 return v;
464 }
465
466
467 SWIGSTATICINLINE(int)
468 SWIG_Check_int(PyObject* obj)
469 {
470 return SWIG_AsVal_int(obj, (int*)0);
471 }
472
473 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
474
475 #include <wx/stockitem.h>
476
477 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
478 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
479 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
480
481 SWIGSTATICINLINE(long)
482 SWIG_As_long(PyObject* obj)
483 {
484 long v;
485 if (!SWIG_AsVal_long(obj, &v)) {
486 /*
487 this is needed to make valgrind/purify happier. the other
488 solution is throw an exception, but since this code should work
489 with plain C ....
490 */
491 memset((void*)&v, 0, sizeof(long));
492 }
493 return v;
494 }
495
496
497 SWIGSTATICINLINE(int)
498 SWIG_Check_long(PyObject* obj)
499 {
500 return SWIG_AsVal_long(obj, (long*)0);
501 }
502
503
504 SWIGSTATICINLINE(int)
505 SWIG_AsVal_bool(PyObject *obj, bool *val)
506 {
507 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
508 if (obj == Py_True) {
509 if (val) *val = true;
510 return 1;
511 }
512 if (obj == Py_False) {
513 if (val) *val = false;
514 return 1;
515 }
516 int res = 0;
517 if (SWIG_AsVal_int(obj, &res)) {
518 if (val) *val = (bool)res;
519 return 1;
520 }
521 if (val) {
522 PyErr_SetString(PyExc_TypeError, "a bool is expected");
523 }
524 return 0;
525 }
526
527
528 SWIGSTATICINLINE(bool)
529 SWIG_As_bool(PyObject* obj)
530 {
531 bool v;
532 if (!SWIG_AsVal_bool(obj, &v)) {
533 /*
534 this is needed to make valgrind/purify happier. the other
535 solution is throw an exception, but since this code should work
536 with plain C ....
537 */
538 memset((void*)&v, 0, sizeof(bool));
539 }
540 return v;
541 }
542
543
544 SWIGSTATICINLINE(int)
545 SWIG_Check_bool(PyObject* obj)
546 {
547 return SWIG_AsVal_bool(obj, (bool*)0);
548 }
549
550
551 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
552 PyObject* o2;
553 PyObject* o3;
554
555 if (!target) {
556 target = o;
557 } else if (target == Py_None) {
558 Py_DECREF(Py_None);
559 target = o;
560 } else {
561 if (!PyTuple_Check(target)) {
562 o2 = target;
563 target = PyTuple_New(1);
564 PyTuple_SetItem(target, 0, o2);
565 }
566 o3 = PyTuple_New(1);
567 PyTuple_SetItem(o3, 0, o);
568
569 o2 = target;
570 target = PySequence_Concat(o2, o3);
571 Py_DECREF(o2);
572 Py_DECREF(o3);
573 }
574 return target;
575 }
576
577
578
579 // See my_fragments.i
580 SWIGSTATICINLINE(int)
581 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
582 {
583 long v = 0;
584 if (SWIG_AsVal_long(obj, &v) && v < 0) {
585 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
586 return 0;
587 }
588 else if (val)
589 *val = (unsigned long)v;
590 return 1;
591 }
592
593
594 SWIGSTATICINLINE(unsigned long)
595 SWIG_As_unsigned_SS_long(PyObject* obj)
596 {
597 unsigned long v;
598 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
599 /*
600 this is needed to make valgrind/purify happier. the other
601 solution is throw an exception, but since this code should work
602 with plain C ....
603 */
604 memset((void*)&v, 0, sizeof(unsigned long));
605 }
606 return v;
607 }
608
609
610 SWIGSTATICINLINE(int)
611 SWIG_Check_unsigned_SS_long(PyObject* obj)
612 {
613 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
614 }
615
616
617 SWIGSTATICINLINE(PyObject* )
618 SWIG_From_unsigned_SS_long(unsigned long value)
619 {
620 return (value > LONG_MAX) ?
621 PyLong_FromUnsignedLong(value)
622 : PyInt_FromLong(swig_numeric_cast(value,long));
623 }
624
625
626 bool wxThread_IsMain() {
627 #ifdef WXP_WITH_THREAD
628 return wxThread::IsMain();
629 #else
630 return true;
631 #endif
632 }
633
634
635 int wxCaret_GetBlinkTime() {
636 return wxCaret::GetBlinkTime();
637 }
638
639 void wxCaret_SetBlinkTime(int milliseconds) {
640 wxCaret::SetBlinkTime(milliseconds);
641 }
642
643
644 #include <wx/snglinst.h>
645
646
647 #ifdef __WXMSW__
648 #include <wx/msw/private.h>
649 #include <wx/dynload.h>
650 #endif
651
652
653
654 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
655 {
656 #ifdef __WXMSW__
657
658 switch (method)
659 {
660 case 1:
661 // This one only partially works. Appears to be an undocumented
662 // "standard" convention that not all widgets adhear to. For
663 // example, for some widgets backgrounds or non-client areas may
664 // not be painted.
665 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
666 break;
667
668 case 2:
669 // This one works much better, except for on XP. On Win2k nearly
670 // all widgets and their children are captured correctly[**]. On
671 // XP with Themes activated most native widgets draw only
672 // partially, if at all. Without themes it works just like on
673 // Win2k.
674 //
675 // ** For example the radio buttons in a wxRadioBox are not its
676 // children by default, but you can capture it via the panel
677 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
678 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
679 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
680 PRF_ERASEBKGND | PRF_OWNED );
681 break;
682
683 case 3:
684 // This one is only defined in the latest SDK and is only
685 // available on XP. MSDN says it is similar to sending WM_PRINT
686 // so I expect that it will work similar to the above. Since it
687 // is avaialble only on XP, it can't be compiled like this and
688 // will have to be loaded dynamically.
689 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
690
691 // fall through
692
693 case 4:
694 // Use PrintWindow if available, or fallback to WM_PRINT
695 // otherwise. Unfortunately using PrintWindow is even worse than
696 // WM_PRINT. For most native widgets nothing is drawn to the dc
697 // at all, with or without Themes.
698 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
699 static bool s_triedToLoad = false;
700 static PrintWindow_t pfnPrintWindow = NULL;
701 if ( !s_triedToLoad )
702 {
703
704 s_triedToLoad = true;
705 wxDynamicLibrary dllUser32(_T("user32.dll"));
706 if ( dllUser32.IsLoaded() )
707 {
708 wxLogNull nolog; // Don't report errors here
709 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
710 }
711 }
712 if (pfnPrintWindow)
713 {
714 printf("Using PrintWindow\n");
715 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
716 }
717 else
718 {
719 printf("Using WM_PRINT\n");
720 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
721 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
722 }
723 }
724 #endif
725 }
726
727
728
729 #include <wx/tipdlg.h>
730
731
732 class wxPyTipProvider : public wxTipProvider {
733 public:
734 wxPyTipProvider(size_t currentTip)
735 : wxTipProvider(currentTip) {}
736
737 DEC_PYCALLBACK_STRING__pure(GetTip);
738 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
739 PYPRIVATE;
740 };
741
742 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
743 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
744
745
746 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
747
748 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
749
750 void wxPyTimer::Notify() {
751 bool found;
752 bool blocked = wxPyBeginBlockThreads();
753 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
754 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
755 wxPyEndBlockThreads(blocked);
756 if (! found)
757 wxTimer::Notify();
758 }
759 void wxPyTimer::base_Notify() {
760 wxTimer::Notify();
761 }
762
763
764
765 SWIGSTATICINLINE(PyObject *)
766 SWIG_FromCharPtr(const char* cptr)
767 {
768 if (cptr) {
769 size_t size = strlen(cptr);
770 if (size > INT_MAX) {
771 return SWIG_NewPointerObj(swig_const_cast(cptr,char*),
772 SWIG_TypeQuery("char *"), 0);
773 } else {
774 if (size != 0) {
775 return PyString_FromStringAndSize(cptr, size);
776 } else {
777 return PyString_FromString(cptr);
778 }
779 }
780 }
781 Py_INCREF(Py_None);
782 return Py_None;
783 }
784
785
786 SWIGSTATICINLINE(int)
787 SWIG_CheckUnsignedLongInRange(unsigned long value,
788 unsigned long max_value,
789 const char *errmsg)
790 {
791 if (value > max_value) {
792 if (errmsg) {
793 PyErr_Format(PyExc_OverflowError,
794 "value %ld is greater than '%s' minimum %ld",
795 value, errmsg, max_value);
796 }
797 return 0;
798 }
799 return 1;
800 }
801
802
803 #if UINT_MAX != ULONG_MAX
804 SWIGSTATICINLINE(int)
805 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
806 {
807 const char* errmsg = val ? "unsigned int" : 0;
808 unsigned long v;
809 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
810 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
811 if (val) *val = swig_numeric_cast(v, unsigned int);
812 return 1;
813 }
814 } else {
815 PyErr_Clear();
816 }
817 if (val) {
818 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
819 }
820 return 0;
821 }
822 #else
823 SWIGSTATICINLINE(unsigned int)
824 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
825 {
826 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
827 }
828 #endif
829
830
831 SWIGSTATICINLINE(unsigned int)
832 SWIG_As_unsigned_SS_int(PyObject* obj)
833 {
834 unsigned int v;
835 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
836 /*
837 this is needed to make valgrind/purify happier. the other
838 solution is throw an exception, but since this code should work
839 with plain C ....
840 */
841 memset((void*)&v, 0, sizeof(unsigned int));
842 }
843 return v;
844 }
845
846
847 SWIGSTATICINLINE(int)
848 SWIG_Check_unsigned_SS_int(PyObject* obj)
849 {
850 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
851 }
852
853 wxString Log_TimeStamp(){
854 wxString msg;
855 wxLog::TimeStamp(&msg);
856 return msg;
857 }
858 void wxLog_Destroy(wxLog *self){ delete self; }
859
860 // A wxLog class that can be derived from in wxPython
861 class wxPyLog : public wxLog {
862 public:
863 wxPyLog() : wxLog() {}
864
865 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
866 bool found;
867 bool blocked = wxPyBeginBlockThreads();
868 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
869 PyObject* s = wx2PyString(szString);
870 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
871 Py_DECREF(s);
872 }
873 wxPyEndBlockThreads(blocked);
874 if (! found)
875 wxLog::DoLog(level, szString, t);
876 }
877
878 virtual void DoLogString(const wxChar *szString, time_t t) {
879 bool found;
880 bool blocked = wxPyBeginBlockThreads();
881 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
882 PyObject* s = wx2PyString(szString);
883 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
884 Py_DECREF(s);
885 }
886 wxPyEndBlockThreads(blocked);
887 if (! found)
888 wxLog::DoLogString(szString, t);
889 }
890
891 PYPRIVATE;
892 };
893
894
895
896
897 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
898
899
900 #include <wx/joystick.h>
901
902
903 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
904 // A C++ stub class for wxJoystick for platforms that don't have it.
905 class wxJoystick : public wxObject {
906 public:
907 wxJoystick(int joystick = wxJOYSTICK1) {
908 bool blocked = wxPyBeginBlockThreads();
909 PyErr_SetString(PyExc_NotImplementedError,
910 "wxJoystick is not available on this platform.");
911 wxPyEndBlockThreads(blocked);
912 }
913 wxPoint GetPosition() { return wxPoint(-1,-1); }
914 int GetZPosition() { return -1; }
915 int GetButtonState() { return -1; }
916 int GetPOVPosition() { return -1; }
917 int GetPOVCTSPosition() { return -1; }
918 int GetRudderPosition() { return -1; }
919 int GetUPosition() { return -1; }
920 int GetVPosition() { return -1; }
921 int GetMovementThreshold() { return -1; }
922 void SetMovementThreshold(int threshold) {}
923
924 bool IsOk(void) { return false; }
925 int GetNumberJoysticks() { return -1; }
926 int GetManufacturerId() { return -1; }
927 int GetProductId() { return -1; }
928 wxString GetProductName() { return wxEmptyString; }
929 int GetXMin() { return -1; }
930 int GetYMin() { return -1; }
931 int GetZMin() { return -1; }
932 int GetXMax() { return -1; }
933 int GetYMax() { return -1; }
934 int GetZMax() { return -1; }
935 int GetNumberButtons() { return -1; }
936 int GetNumberAxes() { return -1; }
937 int GetMaxButtons() { return -1; }
938 int GetMaxAxes() { return -1; }
939 int GetPollingMin() { return -1; }
940 int GetPollingMax() { return -1; }
941 int GetRudderMin() { return -1; }
942 int GetRudderMax() { return -1; }
943 int GetUMin() { return -1; }
944 int GetUMax() { return -1; }
945 int GetVMin() { return -1; }
946 int GetVMax() { return -1; }
947
948 bool HasRudder() { return false; }
949 bool HasZ() { return false; }
950 bool HasU() { return false; }
951 bool HasV() { return false; }
952 bool HasPOV() { return false; }
953 bool HasPOV4Dir() { return false; }
954 bool HasPOVCTS() { return false; }
955
956 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
957 bool ReleaseCapture() { return false; }
958 };
959 #endif
960
961
962 #include <wx/sound.h>
963
964
965 #if !wxUSE_SOUND
966 // A C++ stub class for wxWave for platforms that don't have it.
967 class wxSound : public wxObject
968 {
969 public:
970 wxSound() {
971 bool blocked = wxPyBeginBlockThreads();
972 PyErr_SetString(PyExc_NotImplementedError,
973 "wxSound is not available on this platform.");
974 wxPyEndBlockThreads(blocked);
975 }
976 wxSound(const wxString&/*, bool*/) {
977 bool blocked = wxPyBeginBlockThreads();
978 PyErr_SetString(PyExc_NotImplementedError,
979 "wxSound is not available on this platform.");
980 wxPyEndBlockThreads(blocked);
981 }
982 wxSound(int, const wxByte*) {
983 bool blocked = wxPyBeginBlockThreads();
984 PyErr_SetString(PyExc_NotImplementedError,
985 "wxSound is not available on this platform.");
986 wxPyEndBlockThreads(blocked);
987 }
988
989 ~wxSound() {};
990
991 bool Create(const wxString&/*, bool*/) { return false; }
992 bool Create(int, const wxByte*) { return false; };
993 bool IsOk() { return false; };
994 bool Play(unsigned) const { return false; }
995 static bool Play(const wxString&, unsigned) { return false; }
996 static void Stop() {}
997 };
998
999 #endif
1000
1001 wxSound *new_wxSound(wxString const &fileName){
1002 if (fileName.Length() == 0)
1003 return new wxSound;
1004 else
1005 return new wxSound(fileName);
1006 }
1007 wxSound *new_wxSound(PyObject *data){
1008 unsigned char* buffer; int size;
1009 wxSound *sound = NULL;
1010
1011 bool blocked = wxPyBeginBlockThreads();
1012 if (!PyArg_Parse(data, "t#", &buffer, &size))
1013 goto done;
1014 sound = new wxSound(size, buffer);
1015 done:
1016 wxPyEndBlockThreads(blocked);
1017 return sound;
1018 }
1019 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
1020 #ifndef __WXMAC__
1021 unsigned char* buffer;
1022 int size;
1023 bool rv = false;
1024
1025 bool blocked = wxPyBeginBlockThreads();
1026 if (!PyArg_Parse(data, "t#", &buffer, &size))
1027 goto done;
1028 rv = self->Create(size, buffer);
1029 done:
1030 wxPyEndBlockThreads(blocked);
1031 return rv;
1032 #else
1033 bool blocked = wxPyBeginBlockThreads();
1034 PyErr_SetString(PyExc_NotImplementedError,
1035 "Create from data is not available on this platform.");
1036 wxPyEndBlockThreads(blocked);
1037 return false;
1038 #endif
1039 }
1040 void Sound_Stop(){ wxPyRaiseNotImplemented(); }
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
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 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1325 #define SWIG_From_unsigned_SS_int SWIG_From_long
1326 /*@@*/
1327 #else
1328 /*@/opt/swig/share/swig/1.3.22/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 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1748 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1749 PyObject* pyList = NULL;
1750 wxArrayVideoModes arr = self->GetModes(mode);
1751 bool blocked = wxPyBeginBlockThreads();
1752 pyList = PyList_New(0);
1753 for (int i=0; i < arr.GetCount(); i++) {
1754 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1755 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1756 PyList_Append(pyList, pyObj);
1757 Py_DECREF(pyObj);
1758 }
1759 wxPyEndBlockThreads(blocked);
1760 return pyList;
1761 }
1762 #ifdef __cplusplus
1763 extern "C" {
1764 #endif
1765 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1766 PyObject *resultobj;
1767 int arg1 ;
1768 wxColour result;
1769 PyObject * obj0 = 0 ;
1770 char *kwnames[] = {
1771 (char *) "index", NULL
1772 };
1773
1774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1775 arg1 = (int)SWIG_As_int(obj0);
1776 if (PyErr_Occurred()) SWIG_fail;
1777 {
1778 if (!wxPyCheckForApp()) SWIG_fail;
1779 PyThreadState* __tstate = wxPyBeginAllowThreads();
1780 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1781
1782 wxPyEndAllowThreads(__tstate);
1783 if (PyErr_Occurred()) SWIG_fail;
1784 }
1785 {
1786 wxColour * resultptr;
1787 resultptr = new wxColour((wxColour &) result);
1788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1789 }
1790 return resultobj;
1791 fail:
1792 return NULL;
1793 }
1794
1795
1796 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
1797 PyObject *resultobj;
1798 int arg1 ;
1799 wxFont result;
1800 PyObject * obj0 = 0 ;
1801 char *kwnames[] = {
1802 (char *) "index", NULL
1803 };
1804
1805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1806 arg1 = (int)SWIG_As_int(obj0);
1807 if (PyErr_Occurred()) SWIG_fail;
1808 {
1809 if (!wxPyCheckForApp()) SWIG_fail;
1810 PyThreadState* __tstate = wxPyBeginAllowThreads();
1811 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1812
1813 wxPyEndAllowThreads(__tstate);
1814 if (PyErr_Occurred()) SWIG_fail;
1815 }
1816 {
1817 wxFont * resultptr;
1818 resultptr = new wxFont((wxFont &) result);
1819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1820 }
1821 return resultobj;
1822 fail:
1823 return NULL;
1824 }
1825
1826
1827 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
1828 PyObject *resultobj;
1829 int arg1 ;
1830 int result;
1831 PyObject * obj0 = 0 ;
1832 char *kwnames[] = {
1833 (char *) "index", NULL
1834 };
1835
1836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1837 arg1 = (int)SWIG_As_int(obj0);
1838 if (PyErr_Occurred()) SWIG_fail;
1839 {
1840 if (!wxPyCheckForApp()) SWIG_fail;
1841 PyThreadState* __tstate = wxPyBeginAllowThreads();
1842 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1843
1844 wxPyEndAllowThreads(__tstate);
1845 if (PyErr_Occurred()) SWIG_fail;
1846 }
1847 resultobj = SWIG_From_int((int)result);
1848 return resultobj;
1849 fail:
1850 return NULL;
1851 }
1852
1853
1854 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
1855 PyObject *resultobj;
1856 int arg1 ;
1857 bool result;
1858 PyObject * obj0 = 0 ;
1859 char *kwnames[] = {
1860 (char *) "index", NULL
1861 };
1862
1863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1864 arg1 = (int)SWIG_As_int(obj0);
1865 if (PyErr_Occurred()) SWIG_fail;
1866 {
1867 if (!wxPyCheckForApp()) SWIG_fail;
1868 PyThreadState* __tstate = wxPyBeginAllowThreads();
1869 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1870
1871 wxPyEndAllowThreads(__tstate);
1872 if (PyErr_Occurred()) SWIG_fail;
1873 }
1874 {
1875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1876 }
1877 return resultobj;
1878 fail:
1879 return NULL;
1880 }
1881
1882
1883 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1884 PyObject *resultobj;
1885 int result;
1886 char *kwnames[] = {
1887 NULL
1888 };
1889
1890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1891 {
1892 if (!wxPyCheckForApp()) SWIG_fail;
1893 PyThreadState* __tstate = wxPyBeginAllowThreads();
1894 result = (int)wxSystemSettings::GetScreenType();
1895
1896 wxPyEndAllowThreads(__tstate);
1897 if (PyErr_Occurred()) SWIG_fail;
1898 }
1899 resultobj = SWIG_From_int((int)result);
1900 return resultobj;
1901 fail:
1902 return NULL;
1903 }
1904
1905
1906 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1907 PyObject *resultobj;
1908 int arg1 ;
1909 PyObject * obj0 = 0 ;
1910 char *kwnames[] = {
1911 (char *) "screen", NULL
1912 };
1913
1914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1915 arg1 = (int)SWIG_As_int(obj0);
1916 if (PyErr_Occurred()) SWIG_fail;
1917 {
1918 if (!wxPyCheckForApp()) SWIG_fail;
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 }
1925 Py_INCREF(Py_None); resultobj = Py_None;
1926 return resultobj;
1927 fail:
1928 return NULL;
1929 }
1930
1931
1932 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
1933 PyObject *obj;
1934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1935 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1936 Py_INCREF(obj);
1937 return Py_BuildValue((char *)"");
1938 }
1939 static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) {
1940 PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
1941 return 1;
1942 }
1943
1944
1945 static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() {
1946 PyObject *pyobj;
1947
1948 {
1949 #if wxUSE_UNICODE
1950 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
1951 #else
1952 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
1953 #endif
1954 }
1955 return pyobj;
1956 }
1957
1958
1959 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
1960 PyObject *resultobj;
1961 wxSystemOptions *result;
1962 char *kwnames[] = {
1963 NULL
1964 };
1965
1966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1967 {
1968 PyThreadState* __tstate = wxPyBeginAllowThreads();
1969 result = (wxSystemOptions *)new wxSystemOptions();
1970
1971 wxPyEndAllowThreads(__tstate);
1972 if (PyErr_Occurred()) SWIG_fail;
1973 }
1974 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1975 return resultobj;
1976 fail:
1977 return NULL;
1978 }
1979
1980
1981 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
1982 PyObject *resultobj;
1983 wxString *arg1 = 0 ;
1984 wxString *arg2 = 0 ;
1985 bool temp1 = false ;
1986 bool temp2 = false ;
1987 PyObject * obj0 = 0 ;
1988 PyObject * obj1 = 0 ;
1989 char *kwnames[] = {
1990 (char *) "name",(char *) "value", NULL
1991 };
1992
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1994 {
1995 arg1 = wxString_in_helper(obj0);
1996 if (arg1 == NULL) SWIG_fail;
1997 temp1 = true;
1998 }
1999 {
2000 arg2 = wxString_in_helper(obj1);
2001 if (arg2 == NULL) SWIG_fail;
2002 temp2 = true;
2003 }
2004 {
2005 PyThreadState* __tstate = wxPyBeginAllowThreads();
2006 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
2007
2008 wxPyEndAllowThreads(__tstate);
2009 if (PyErr_Occurred()) SWIG_fail;
2010 }
2011 Py_INCREF(Py_None); resultobj = Py_None;
2012 {
2013 if (temp1)
2014 delete arg1;
2015 }
2016 {
2017 if (temp2)
2018 delete arg2;
2019 }
2020 return resultobj;
2021 fail:
2022 {
2023 if (temp1)
2024 delete arg1;
2025 }
2026 {
2027 if (temp2)
2028 delete arg2;
2029 }
2030 return NULL;
2031 }
2032
2033
2034 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2035 PyObject *resultobj;
2036 wxString *arg1 = 0 ;
2037 int arg2 ;
2038 bool temp1 = false ;
2039 PyObject * obj0 = 0 ;
2040 PyObject * obj1 = 0 ;
2041 char *kwnames[] = {
2042 (char *) "name",(char *) "value", NULL
2043 };
2044
2045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
2046 {
2047 arg1 = wxString_in_helper(obj0);
2048 if (arg1 == NULL) SWIG_fail;
2049 temp1 = true;
2050 }
2051 arg2 = (int)SWIG_As_int(obj1);
2052 if (PyErr_Occurred()) SWIG_fail;
2053 {
2054 PyThreadState* __tstate = wxPyBeginAllowThreads();
2055 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
2056
2057 wxPyEndAllowThreads(__tstate);
2058 if (PyErr_Occurred()) SWIG_fail;
2059 }
2060 Py_INCREF(Py_None); resultobj = Py_None;
2061 {
2062 if (temp1)
2063 delete arg1;
2064 }
2065 return resultobj;
2066 fail:
2067 {
2068 if (temp1)
2069 delete arg1;
2070 }
2071 return NULL;
2072 }
2073
2074
2075 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
2076 PyObject *resultobj;
2077 wxString *arg1 = 0 ;
2078 wxString result;
2079 bool temp1 = false ;
2080 PyObject * obj0 = 0 ;
2081 char *kwnames[] = {
2082 (char *) "name", NULL
2083 };
2084
2085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
2086 {
2087 arg1 = wxString_in_helper(obj0);
2088 if (arg1 == NULL) SWIG_fail;
2089 temp1 = true;
2090 }
2091 {
2092 PyThreadState* __tstate = wxPyBeginAllowThreads();
2093 result = wxSystemOptions::GetOption((wxString const &)*arg1);
2094
2095 wxPyEndAllowThreads(__tstate);
2096 if (PyErr_Occurred()) SWIG_fail;
2097 }
2098 {
2099 #if wxUSE_UNICODE
2100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2101 #else
2102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2103 #endif
2104 }
2105 {
2106 if (temp1)
2107 delete arg1;
2108 }
2109 return resultobj;
2110 fail:
2111 {
2112 if (temp1)
2113 delete arg1;
2114 }
2115 return NULL;
2116 }
2117
2118
2119 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2120 PyObject *resultobj;
2121 wxString *arg1 = 0 ;
2122 int result;
2123 bool temp1 = false ;
2124 PyObject * obj0 = 0 ;
2125 char *kwnames[] = {
2126 (char *) "name", NULL
2127 };
2128
2129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
2130 {
2131 arg1 = wxString_in_helper(obj0);
2132 if (arg1 == NULL) SWIG_fail;
2133 temp1 = true;
2134 }
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 resultobj = SWIG_From_int((int)result);
2143 {
2144 if (temp1)
2145 delete arg1;
2146 }
2147 return resultobj;
2148 fail:
2149 {
2150 if (temp1)
2151 delete arg1;
2152 }
2153 return NULL;
2154 }
2155
2156
2157 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
2158 PyObject *resultobj;
2159 wxString *arg1 = 0 ;
2160 bool result;
2161 bool temp1 = false ;
2162 PyObject * obj0 = 0 ;
2163 char *kwnames[] = {
2164 (char *) "name", NULL
2165 };
2166
2167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2168 {
2169 arg1 = wxString_in_helper(obj0);
2170 if (arg1 == NULL) SWIG_fail;
2171 temp1 = true;
2172 }
2173 {
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) SWIG_fail;
2179 }
2180 {
2181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2182 }
2183 {
2184 if (temp1)
2185 delete arg1;
2186 }
2187 return resultobj;
2188 fail:
2189 {
2190 if (temp1)
2191 delete arg1;
2192 }
2193 return NULL;
2194 }
2195
2196
2197 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
2198 PyObject *obj;
2199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2200 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2201 Py_INCREF(obj);
2202 return Py_BuildValue((char *)"");
2203 }
2204 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
2205 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2206 return 1;
2207 }
2208
2209
2210 static PyObject *_wrap_FileSelectorPromptStr_get() {
2211 PyObject *pyobj;
2212
2213 {
2214 #if wxUSE_UNICODE
2215 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2216 #else
2217 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2218 #endif
2219 }
2220 return pyobj;
2221 }
2222
2223
2224 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
2225 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2226 return 1;
2227 }
2228
2229
2230 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2231 PyObject *pyobj;
2232
2233 {
2234 #if wxUSE_UNICODE
2235 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2236 #else
2237 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2238 #endif
2239 }
2240 return pyobj;
2241 }
2242
2243
2244 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
2245 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2246 return 1;
2247 }
2248
2249
2250 static PyObject *_wrap_DirSelectorPromptStr_get() {
2251 PyObject *pyobj;
2252
2253 {
2254 #if wxUSE_UNICODE
2255 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2256 #else
2257 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2258 #endif
2259 }
2260 return pyobj;
2261 }
2262
2263
2264 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
2265 PyObject *resultobj;
2266 long result;
2267 char *kwnames[] = {
2268 NULL
2269 };
2270
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2272 {
2273 PyThreadState* __tstate = wxPyBeginAllowThreads();
2274 result = (long)wxNewId();
2275
2276 wxPyEndAllowThreads(__tstate);
2277 if (PyErr_Occurred()) SWIG_fail;
2278 }
2279 resultobj = SWIG_From_long((long)result);
2280 return resultobj;
2281 fail:
2282 return NULL;
2283 }
2284
2285
2286 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
2287 PyObject *resultobj;
2288 long arg1 ;
2289 PyObject * obj0 = 0 ;
2290 char *kwnames[] = {
2291 (char *) "id", NULL
2292 };
2293
2294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2295 arg1 = (long)SWIG_As_long(obj0);
2296 if (PyErr_Occurred()) SWIG_fail;
2297 {
2298 PyThreadState* __tstate = wxPyBeginAllowThreads();
2299 wxRegisterId(arg1);
2300
2301 wxPyEndAllowThreads(__tstate);
2302 if (PyErr_Occurred()) SWIG_fail;
2303 }
2304 Py_INCREF(Py_None); resultobj = Py_None;
2305 return resultobj;
2306 fail:
2307 return NULL;
2308 }
2309
2310
2311 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
2312 PyObject *resultobj;
2313 long result;
2314 char *kwnames[] = {
2315 NULL
2316 };
2317
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2319 {
2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
2321 result = (long)wxGetCurrentId();
2322
2323 wxPyEndAllowThreads(__tstate);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 }
2326 resultobj = SWIG_From_long((long)result);
2327 return resultobj;
2328 fail:
2329 return NULL;
2330 }
2331
2332
2333 static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
2334 PyObject *resultobj;
2335 int arg1 ;
2336 bool result;
2337 PyObject * obj0 = 0 ;
2338 char *kwnames[] = {
2339 (char *) "id", NULL
2340 };
2341
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
2343 arg1 = (int)SWIG_As_int(obj0);
2344 if (PyErr_Occurred()) SWIG_fail;
2345 {
2346 PyThreadState* __tstate = wxPyBeginAllowThreads();
2347 result = (bool)wxIsStockID(arg1);
2348
2349 wxPyEndAllowThreads(__tstate);
2350 if (PyErr_Occurred()) SWIG_fail;
2351 }
2352 {
2353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2354 }
2355 return resultobj;
2356 fail:
2357 return NULL;
2358 }
2359
2360
2361 static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2362 PyObject *resultobj;
2363 int arg1 ;
2364 wxString *arg2 = 0 ;
2365 bool result;
2366 bool temp2 = false ;
2367 PyObject * obj0 = 0 ;
2368 PyObject * obj1 = 0 ;
2369 char *kwnames[] = {
2370 (char *) "id",(char *) "label", NULL
2371 };
2372
2373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
2374 arg1 = (int)SWIG_As_int(obj0);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 {
2377 arg2 = wxString_in_helper(obj1);
2378 if (arg2 == NULL) SWIG_fail;
2379 temp2 = true;
2380 }
2381 {
2382 PyThreadState* __tstate = wxPyBeginAllowThreads();
2383 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2384
2385 wxPyEndAllowThreads(__tstate);
2386 if (PyErr_Occurred()) SWIG_fail;
2387 }
2388 {
2389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2390 }
2391 {
2392 if (temp2)
2393 delete arg2;
2394 }
2395 return resultobj;
2396 fail:
2397 {
2398 if (temp2)
2399 delete arg2;
2400 }
2401 return NULL;
2402 }
2403
2404
2405 static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2406 PyObject *resultobj;
2407 int arg1 ;
2408 wxString result;
2409 PyObject * obj0 = 0 ;
2410 char *kwnames[] = {
2411 (char *) "id", NULL
2412 };
2413
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail;
2415 arg1 = (int)SWIG_As_int(obj0);
2416 if (PyErr_Occurred()) SWIG_fail;
2417 {
2418 PyThreadState* __tstate = wxPyBeginAllowThreads();
2419 result = wxGetStockLabel(arg1);
2420
2421 wxPyEndAllowThreads(__tstate);
2422 if (PyErr_Occurred()) SWIG_fail;
2423 }
2424 {
2425 #if wxUSE_UNICODE
2426 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2427 #else
2428 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2429 #endif
2430 }
2431 return resultobj;
2432 fail:
2433 return NULL;
2434 }
2435
2436
2437 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
2438 PyObject *resultobj;
2439 char *kwnames[] = {
2440 NULL
2441 };
2442
2443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2444 {
2445 if (!wxPyCheckForApp()) SWIG_fail;
2446 PyThreadState* __tstate = wxPyBeginAllowThreads();
2447 wxBell();
2448
2449 wxPyEndAllowThreads(__tstate);
2450 if (PyErr_Occurred()) SWIG_fail;
2451 }
2452 Py_INCREF(Py_None); resultobj = Py_None;
2453 return resultobj;
2454 fail:
2455 return NULL;
2456 }
2457
2458
2459 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
2460 PyObject *resultobj;
2461 char *kwnames[] = {
2462 NULL
2463 };
2464
2465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2466 {
2467 if (!wxPyCheckForApp()) SWIG_fail;
2468 PyThreadState* __tstate = wxPyBeginAllowThreads();
2469 wxEndBusyCursor();
2470
2471 wxPyEndAllowThreads(__tstate);
2472 if (PyErr_Occurred()) SWIG_fail;
2473 }
2474 Py_INCREF(Py_None); resultobj = Py_None;
2475 return resultobj;
2476 fail:
2477 return NULL;
2478 }
2479
2480
2481 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
2482 PyObject *resultobj;
2483 bool arg1 = (bool) true ;
2484 long result;
2485 PyObject * obj0 = 0 ;
2486 char *kwnames[] = {
2487 (char *) "resetTimer", NULL
2488 };
2489
2490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2491 if (obj0) {
2492 arg1 = (bool)SWIG_As_bool(obj0);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 {
2496 PyThreadState* __tstate = wxPyBeginAllowThreads();
2497 result = (long)wxGetElapsedTime(arg1);
2498
2499 wxPyEndAllowThreads(__tstate);
2500 if (PyErr_Occurred()) SWIG_fail;
2501 }
2502 resultobj = SWIG_From_long((long)result);
2503 return resultobj;
2504 fail:
2505 return NULL;
2506 }
2507
2508
2509 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
2510 PyObject *resultobj;
2511 int *arg1 = (int *) 0 ;
2512 int *arg2 = (int *) 0 ;
2513 int temp1 ;
2514 int res1 = 0 ;
2515 int temp2 ;
2516 int res2 = 0 ;
2517 char *kwnames[] = {
2518 NULL
2519 };
2520
2521 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2522 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2524 {
2525 if (!wxPyCheckForApp()) SWIG_fail;
2526 PyThreadState* __tstate = wxPyBeginAllowThreads();
2527 wxGetMousePosition(arg1,arg2);
2528
2529 wxPyEndAllowThreads(__tstate);
2530 if (PyErr_Occurred()) SWIG_fail;
2531 }
2532 Py_INCREF(Py_None); resultobj = Py_None;
2533 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2534 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2535 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2536 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2537 return resultobj;
2538 fail:
2539 return NULL;
2540 }
2541
2542
2543 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
2544 PyObject *resultobj;
2545 bool result;
2546 char *kwnames[] = {
2547 NULL
2548 };
2549
2550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2551 {
2552 PyThreadState* __tstate = wxPyBeginAllowThreads();
2553 result = (bool)wxIsBusy();
2554
2555 wxPyEndAllowThreads(__tstate);
2556 if (PyErr_Occurred()) SWIG_fail;
2557 }
2558 {
2559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2560 }
2561 return resultobj;
2562 fail:
2563 return NULL;
2564 }
2565
2566
2567 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
2568 PyObject *resultobj;
2569 wxString result;
2570 char *kwnames[] = {
2571 NULL
2572 };
2573
2574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2575 {
2576 PyThreadState* __tstate = wxPyBeginAllowThreads();
2577 result = wxNow();
2578
2579 wxPyEndAllowThreads(__tstate);
2580 if (PyErr_Occurred()) SWIG_fail;
2581 }
2582 {
2583 #if wxUSE_UNICODE
2584 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2585 #else
2586 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2587 #endif
2588 }
2589 return resultobj;
2590 fail:
2591 return NULL;
2592 }
2593
2594
2595 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
2596 PyObject *resultobj;
2597 wxString const &arg1_defvalue = wxPyEmptyString ;
2598 wxString *arg1 = (wxString *) &arg1_defvalue ;
2599 bool result;
2600 bool temp1 = false ;
2601 PyObject * obj0 = 0 ;
2602 char *kwnames[] = {
2603 (char *) "command", NULL
2604 };
2605
2606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2607 if (obj0) {
2608 {
2609 arg1 = wxString_in_helper(obj0);
2610 if (arg1 == NULL) SWIG_fail;
2611 temp1 = true;
2612 }
2613 }
2614 {
2615 PyThreadState* __tstate = wxPyBeginAllowThreads();
2616 result = (bool)wxShell((wxString const &)*arg1);
2617
2618 wxPyEndAllowThreads(__tstate);
2619 if (PyErr_Occurred()) SWIG_fail;
2620 }
2621 {
2622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2623 }
2624 {
2625 if (temp1)
2626 delete arg1;
2627 }
2628 return resultobj;
2629 fail:
2630 {
2631 if (temp1)
2632 delete arg1;
2633 }
2634 return NULL;
2635 }
2636
2637
2638 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
2639 PyObject *resultobj;
2640 char *kwnames[] = {
2641 NULL
2642 };
2643
2644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2645 {
2646 PyThreadState* __tstate = wxPyBeginAllowThreads();
2647 wxStartTimer();
2648
2649 wxPyEndAllowThreads(__tstate);
2650 if (PyErr_Occurred()) SWIG_fail;
2651 }
2652 Py_INCREF(Py_None); resultobj = Py_None;
2653 return resultobj;
2654 fail:
2655 return NULL;
2656 }
2657
2658
2659 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
2660 PyObject *resultobj;
2661 int *arg1 = (int *) 0 ;
2662 int *arg2 = (int *) 0 ;
2663 int result;
2664 int temp1 ;
2665 int res1 = 0 ;
2666 int temp2 ;
2667 int res2 = 0 ;
2668 char *kwnames[] = {
2669 NULL
2670 };
2671
2672 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2673 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2675 {
2676 PyThreadState* __tstate = wxPyBeginAllowThreads();
2677 result = (int)wxGetOsVersion(arg1,arg2);
2678
2679 wxPyEndAllowThreads(__tstate);
2680 if (PyErr_Occurred()) SWIG_fail;
2681 }
2682 resultobj = SWIG_From_int((int)result);
2683 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2684 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2685 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2686 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2687 return resultobj;
2688 fail:
2689 return NULL;
2690 }
2691
2692
2693 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
2694 PyObject *resultobj;
2695 wxString result;
2696 char *kwnames[] = {
2697 NULL
2698 };
2699
2700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2701 {
2702 PyThreadState* __tstate = wxPyBeginAllowThreads();
2703 result = wxGetOsDescription();
2704
2705 wxPyEndAllowThreads(__tstate);
2706 if (PyErr_Occurred()) SWIG_fail;
2707 }
2708 {
2709 #if wxUSE_UNICODE
2710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2711 #else
2712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2713 #endif
2714 }
2715 return resultobj;
2716 fail:
2717 return NULL;
2718 }
2719
2720
2721 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
2722 PyObject *resultobj;
2723 long result;
2724 char *kwnames[] = {
2725 NULL
2726 };
2727
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2729 {
2730 PyThreadState* __tstate = wxPyBeginAllowThreads();
2731 result = (long)wxGetFreeMemory();
2732
2733 wxPyEndAllowThreads(__tstate);
2734 if (PyErr_Occurred()) SWIG_fail;
2735 }
2736 resultobj = SWIG_From_long((long)result);
2737 return resultobj;
2738 fail:
2739 return NULL;
2740 }
2741
2742
2743 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
2744 PyObject *resultobj;
2745 int arg1 ;
2746 bool result;
2747 PyObject * obj0 = 0 ;
2748 char *kwnames[] = {
2749 (char *) "wFlags", NULL
2750 };
2751
2752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2753 arg1 = (int)SWIG_As_int(obj0);
2754 if (PyErr_Occurred()) SWIG_fail;
2755 {
2756 if (!wxPyCheckForApp()) SWIG_fail;
2757 PyThreadState* __tstate = wxPyBeginAllowThreads();
2758 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2759
2760 wxPyEndAllowThreads(__tstate);
2761 if (PyErr_Occurred()) SWIG_fail;
2762 }
2763 {
2764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2765 }
2766 return resultobj;
2767 fail:
2768 return NULL;
2769 }
2770
2771
2772 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
2773 PyObject *resultobj;
2774 int arg1 ;
2775 PyObject * obj0 = 0 ;
2776 char *kwnames[] = {
2777 (char *) "secs", NULL
2778 };
2779
2780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2781 arg1 = (int)SWIG_As_int(obj0);
2782 if (PyErr_Occurred()) SWIG_fail;
2783 {
2784 PyThreadState* __tstate = wxPyBeginAllowThreads();
2785 wxSleep(arg1);
2786
2787 wxPyEndAllowThreads(__tstate);
2788 if (PyErr_Occurred()) SWIG_fail;
2789 }
2790 Py_INCREF(Py_None); resultobj = Py_None;
2791 return resultobj;
2792 fail:
2793 return NULL;
2794 }
2795
2796
2797 static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2798 PyObject *resultobj;
2799 unsigned long arg1 ;
2800 PyObject * obj0 = 0 ;
2801 char *kwnames[] = {
2802 (char *) "milliseconds", NULL
2803 };
2804
2805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2806 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 {
2809 PyThreadState* __tstate = wxPyBeginAllowThreads();
2810 wxMilliSleep(arg1);
2811
2812 wxPyEndAllowThreads(__tstate);
2813 if (PyErr_Occurred()) SWIG_fail;
2814 }
2815 Py_INCREF(Py_None); resultobj = Py_None;
2816 return resultobj;
2817 fail:
2818 return NULL;
2819 }
2820
2821
2822 static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2823 PyObject *resultobj;
2824 unsigned long arg1 ;
2825 PyObject * obj0 = 0 ;
2826 char *kwnames[] = {
2827 (char *) "microseconds", NULL
2828 };
2829
2830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2831 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2832 if (PyErr_Occurred()) SWIG_fail;
2833 {
2834 PyThreadState* __tstate = wxPyBeginAllowThreads();
2835 wxMicroSleep(arg1);
2836
2837 wxPyEndAllowThreads(__tstate);
2838 if (PyErr_Occurred()) SWIG_fail;
2839 }
2840 Py_INCREF(Py_None); resultobj = Py_None;
2841 return resultobj;
2842 fail:
2843 return NULL;
2844 }
2845
2846
2847 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
2848 PyObject *resultobj;
2849 bool arg1 ;
2850 PyObject * obj0 = 0 ;
2851 char *kwnames[] = {
2852 (char *) "enable", NULL
2853 };
2854
2855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2856 arg1 = (bool)SWIG_As_bool(obj0);
2857 if (PyErr_Occurred()) SWIG_fail;
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 wxEnableTopLevelWindows(arg1);
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 Py_INCREF(Py_None); resultobj = Py_None;
2866 return resultobj;
2867 fail:
2868 return NULL;
2869 }
2870
2871
2872 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
2873 PyObject *resultobj;
2874 wxString *arg1 = 0 ;
2875 wxString result;
2876 bool temp1 = false ;
2877 PyObject * obj0 = 0 ;
2878 char *kwnames[] = {
2879 (char *) "in", NULL
2880 };
2881
2882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2883 {
2884 arg1 = wxString_in_helper(obj0);
2885 if (arg1 == NULL) SWIG_fail;
2886 temp1 = true;
2887 }
2888 {
2889 PyThreadState* __tstate = wxPyBeginAllowThreads();
2890 result = wxStripMenuCodes((wxString const &)*arg1);
2891
2892 wxPyEndAllowThreads(__tstate);
2893 if (PyErr_Occurred()) SWIG_fail;
2894 }
2895 {
2896 #if wxUSE_UNICODE
2897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2898 #else
2899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2900 #endif
2901 }
2902 {
2903 if (temp1)
2904 delete arg1;
2905 }
2906 return resultobj;
2907 fail:
2908 {
2909 if (temp1)
2910 delete arg1;
2911 }
2912 return NULL;
2913 }
2914
2915
2916 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
2917 PyObject *resultobj;
2918 wxString result;
2919 char *kwnames[] = {
2920 NULL
2921 };
2922
2923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2924 {
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 result = wxGetEmailAddress();
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 {
2932 #if wxUSE_UNICODE
2933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2934 #else
2935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2936 #endif
2937 }
2938 return resultobj;
2939 fail:
2940 return NULL;
2941 }
2942
2943
2944 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2945 PyObject *resultobj;
2946 wxString result;
2947 char *kwnames[] = {
2948 NULL
2949 };
2950
2951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2952 {
2953 PyThreadState* __tstate = wxPyBeginAllowThreads();
2954 result = wxGetHostName();
2955
2956 wxPyEndAllowThreads(__tstate);
2957 if (PyErr_Occurred()) SWIG_fail;
2958 }
2959 {
2960 #if wxUSE_UNICODE
2961 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2962 #else
2963 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2964 #endif
2965 }
2966 return resultobj;
2967 fail:
2968 return NULL;
2969 }
2970
2971
2972 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2973 PyObject *resultobj;
2974 wxString result;
2975 char *kwnames[] = {
2976 NULL
2977 };
2978
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2980 {
2981 PyThreadState* __tstate = wxPyBeginAllowThreads();
2982 result = wxGetFullHostName();
2983
2984 wxPyEndAllowThreads(__tstate);
2985 if (PyErr_Occurred()) SWIG_fail;
2986 }
2987 {
2988 #if wxUSE_UNICODE
2989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2990 #else
2991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2992 #endif
2993 }
2994 return resultobj;
2995 fail:
2996 return NULL;
2997 }
2998
2999
3000 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
3001 PyObject *resultobj;
3002 wxString result;
3003 char *kwnames[] = {
3004 NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
3008 {
3009 PyThreadState* __tstate = wxPyBeginAllowThreads();
3010 result = wxGetUserId();
3011
3012 wxPyEndAllowThreads(__tstate);
3013 if (PyErr_Occurred()) SWIG_fail;
3014 }
3015 {
3016 #if wxUSE_UNICODE
3017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3018 #else
3019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3020 #endif
3021 }
3022 return resultobj;
3023 fail:
3024 return NULL;
3025 }
3026
3027
3028 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
3029 PyObject *resultobj;
3030 wxString result;
3031 char *kwnames[] = {
3032 NULL
3033 };
3034
3035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
3036 {
3037 PyThreadState* __tstate = wxPyBeginAllowThreads();
3038 result = wxGetUserName();
3039
3040 wxPyEndAllowThreads(__tstate);
3041 if (PyErr_Occurred()) SWIG_fail;
3042 }
3043 {
3044 #if wxUSE_UNICODE
3045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3046 #else
3047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3048 #endif
3049 }
3050 return resultobj;
3051 fail:
3052 return NULL;
3053 }
3054
3055
3056 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
3057 PyObject *resultobj;
3058 wxString result;
3059 char *kwnames[] = {
3060 NULL
3061 };
3062
3063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
3064 {
3065 PyThreadState* __tstate = wxPyBeginAllowThreads();
3066 result = wxGetHomeDir();
3067
3068 wxPyEndAllowThreads(__tstate);
3069 if (PyErr_Occurred()) SWIG_fail;
3070 }
3071 {
3072 #if wxUSE_UNICODE
3073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3074 #else
3075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3076 #endif
3077 }
3078 return resultobj;
3079 fail:
3080 return NULL;
3081 }
3082
3083
3084 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
3085 PyObject *resultobj;
3086 wxString const &arg1_defvalue = wxPyEmptyString ;
3087 wxString *arg1 = (wxString *) &arg1_defvalue ;
3088 wxString result;
3089 bool temp1 = false ;
3090 PyObject * obj0 = 0 ;
3091 char *kwnames[] = {
3092 (char *) "user", NULL
3093 };
3094
3095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
3096 if (obj0) {
3097 {
3098 arg1 = wxString_in_helper(obj0);
3099 if (arg1 == NULL) SWIG_fail;
3100 temp1 = true;
3101 }
3102 }
3103 {
3104 PyThreadState* __tstate = wxPyBeginAllowThreads();
3105 result = wxGetUserHome((wxString const &)*arg1);
3106
3107 wxPyEndAllowThreads(__tstate);
3108 if (PyErr_Occurred()) SWIG_fail;
3109 }
3110 {
3111 #if wxUSE_UNICODE
3112 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3113 #else
3114 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3115 #endif
3116 }
3117 {
3118 if (temp1)
3119 delete arg1;
3120 }
3121 return resultobj;
3122 fail:
3123 {
3124 if (temp1)
3125 delete arg1;
3126 }
3127 return NULL;
3128 }
3129
3130
3131 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
3132 PyObject *resultobj;
3133 unsigned long result;
3134 char *kwnames[] = {
3135 NULL
3136 };
3137
3138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
3139 {
3140 PyThreadState* __tstate = wxPyBeginAllowThreads();
3141 result = (unsigned long)wxGetProcessId();
3142
3143 wxPyEndAllowThreads(__tstate);
3144 if (PyErr_Occurred()) SWIG_fail;
3145 }
3146 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
3147 return resultobj;
3148 fail:
3149 return NULL;
3150 }
3151
3152
3153 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
3154 PyObject *resultobj;
3155 char *kwnames[] = {
3156 NULL
3157 };
3158
3159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 wxTrap();
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
3167 Py_INCREF(Py_None); resultobj = Py_None;
3168 return resultobj;
3169 fail:
3170 return NULL;
3171 }
3172
3173
3174 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3175 PyObject *resultobj;
3176 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3177 wxString *arg1 = (wxString *) &arg1_defvalue ;
3178 wxString const &arg2_defvalue = wxPyEmptyString ;
3179 wxString *arg2 = (wxString *) &arg2_defvalue ;
3180 wxString const &arg3_defvalue = wxPyEmptyString ;
3181 wxString *arg3 = (wxString *) &arg3_defvalue ;
3182 wxString const &arg4_defvalue = wxPyEmptyString ;
3183 wxString *arg4 = (wxString *) &arg4_defvalue ;
3184 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3185 wxString *arg5 = (wxString *) &arg5_defvalue ;
3186 int arg6 = (int) 0 ;
3187 wxWindow *arg7 = (wxWindow *) NULL ;
3188 int arg8 = (int) -1 ;
3189 int arg9 = (int) -1 ;
3190 wxString result;
3191 bool temp1 = false ;
3192 bool temp2 = false ;
3193 bool temp3 = false ;
3194 bool temp4 = false ;
3195 bool temp5 = false ;
3196 PyObject * obj0 = 0 ;
3197 PyObject * obj1 = 0 ;
3198 PyObject * obj2 = 0 ;
3199 PyObject * obj3 = 0 ;
3200 PyObject * obj4 = 0 ;
3201 PyObject * obj5 = 0 ;
3202 PyObject * obj6 = 0 ;
3203 PyObject * obj7 = 0 ;
3204 PyObject * obj8 = 0 ;
3205 char *kwnames[] = {
3206 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3207 };
3208
3209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3210 if (obj0) {
3211 {
3212 arg1 = wxString_in_helper(obj0);
3213 if (arg1 == NULL) SWIG_fail;
3214 temp1 = true;
3215 }
3216 }
3217 if (obj1) {
3218 {
3219 arg2 = wxString_in_helper(obj1);
3220 if (arg2 == NULL) SWIG_fail;
3221 temp2 = true;
3222 }
3223 }
3224 if (obj2) {
3225 {
3226 arg3 = wxString_in_helper(obj2);
3227 if (arg3 == NULL) SWIG_fail;
3228 temp3 = true;
3229 }
3230 }
3231 if (obj3) {
3232 {
3233 arg4 = wxString_in_helper(obj3);
3234 if (arg4 == NULL) SWIG_fail;
3235 temp4 = true;
3236 }
3237 }
3238 if (obj4) {
3239 {
3240 arg5 = wxString_in_helper(obj4);
3241 if (arg5 == NULL) SWIG_fail;
3242 temp5 = true;
3243 }
3244 }
3245 if (obj5) {
3246 arg6 = (int)SWIG_As_int(obj5);
3247 if (PyErr_Occurred()) SWIG_fail;
3248 }
3249 if (obj6) {
3250 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3252 }
3253 if (obj7) {
3254 arg8 = (int)SWIG_As_int(obj7);
3255 if (PyErr_Occurred()) SWIG_fail;
3256 }
3257 if (obj8) {
3258 arg9 = (int)SWIG_As_int(obj8);
3259 if (PyErr_Occurred()) SWIG_fail;
3260 }
3261 {
3262 if (!wxPyCheckForApp()) SWIG_fail;
3263 PyThreadState* __tstate = wxPyBeginAllowThreads();
3264 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3265
3266 wxPyEndAllowThreads(__tstate);
3267 if (PyErr_Occurred()) SWIG_fail;
3268 }
3269 {
3270 #if wxUSE_UNICODE
3271 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3272 #else
3273 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3274 #endif
3275 }
3276 {
3277 if (temp1)
3278 delete arg1;
3279 }
3280 {
3281 if (temp2)
3282 delete arg2;
3283 }
3284 {
3285 if (temp3)
3286 delete arg3;
3287 }
3288 {
3289 if (temp4)
3290 delete arg4;
3291 }
3292 {
3293 if (temp5)
3294 delete arg5;
3295 }
3296 return resultobj;
3297 fail:
3298 {
3299 if (temp1)
3300 delete arg1;
3301 }
3302 {
3303 if (temp2)
3304 delete arg2;
3305 }
3306 {
3307 if (temp3)
3308 delete arg3;
3309 }
3310 {
3311 if (temp4)
3312 delete arg4;
3313 }
3314 {
3315 if (temp5)
3316 delete arg5;
3317 }
3318 return NULL;
3319 }
3320
3321
3322 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3323 PyObject *resultobj;
3324 wxString *arg1 = 0 ;
3325 wxString *arg2 = 0 ;
3326 wxString const &arg3_defvalue = wxPyEmptyString ;
3327 wxString *arg3 = (wxString *) &arg3_defvalue ;
3328 wxWindow *arg4 = (wxWindow *) NULL ;
3329 wxString result;
3330 bool temp1 = false ;
3331 bool temp2 = false ;
3332 bool temp3 = false ;
3333 PyObject * obj0 = 0 ;
3334 PyObject * obj1 = 0 ;
3335 PyObject * obj2 = 0 ;
3336 PyObject * obj3 = 0 ;
3337 char *kwnames[] = {
3338 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3339 };
3340
3341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3342 {
3343 arg1 = wxString_in_helper(obj0);
3344 if (arg1 == NULL) SWIG_fail;
3345 temp1 = true;
3346 }
3347 {
3348 arg2 = wxString_in_helper(obj1);
3349 if (arg2 == NULL) SWIG_fail;
3350 temp2 = true;
3351 }
3352 if (obj2) {
3353 {
3354 arg3 = wxString_in_helper(obj2);
3355 if (arg3 == NULL) SWIG_fail;
3356 temp3 = true;
3357 }
3358 }
3359 if (obj3) {
3360 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3362 }
3363 {
3364 if (!wxPyCheckForApp()) SWIG_fail;
3365 PyThreadState* __tstate = wxPyBeginAllowThreads();
3366 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3367
3368 wxPyEndAllowThreads(__tstate);
3369 if (PyErr_Occurred()) SWIG_fail;
3370 }
3371 {
3372 #if wxUSE_UNICODE
3373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3374 #else
3375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3376 #endif
3377 }
3378 {
3379 if (temp1)
3380 delete arg1;
3381 }
3382 {
3383 if (temp2)
3384 delete arg2;
3385 }
3386 {
3387 if (temp3)
3388 delete arg3;
3389 }
3390 return resultobj;
3391 fail:
3392 {
3393 if (temp1)
3394 delete arg1;
3395 }
3396 {
3397 if (temp2)
3398 delete arg2;
3399 }
3400 {
3401 if (temp3)
3402 delete arg3;
3403 }
3404 return NULL;
3405 }
3406
3407
3408 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3409 PyObject *resultobj;
3410 wxString *arg1 = 0 ;
3411 wxString *arg2 = 0 ;
3412 wxString const &arg3_defvalue = wxPyEmptyString ;
3413 wxString *arg3 = (wxString *) &arg3_defvalue ;
3414 wxWindow *arg4 = (wxWindow *) NULL ;
3415 wxString result;
3416 bool temp1 = false ;
3417 bool temp2 = false ;
3418 bool temp3 = false ;
3419 PyObject * obj0 = 0 ;
3420 PyObject * obj1 = 0 ;
3421 PyObject * obj2 = 0 ;
3422 PyObject * obj3 = 0 ;
3423 char *kwnames[] = {
3424 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3425 };
3426
3427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3428 {
3429 arg1 = wxString_in_helper(obj0);
3430 if (arg1 == NULL) SWIG_fail;
3431 temp1 = true;
3432 }
3433 {
3434 arg2 = wxString_in_helper(obj1);
3435 if (arg2 == NULL) SWIG_fail;
3436 temp2 = true;
3437 }
3438 if (obj2) {
3439 {
3440 arg3 = wxString_in_helper(obj2);
3441 if (arg3 == NULL) SWIG_fail;
3442 temp3 = true;
3443 }
3444 }
3445 if (obj3) {
3446 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3448 }
3449 {
3450 if (!wxPyCheckForApp()) SWIG_fail;
3451 PyThreadState* __tstate = wxPyBeginAllowThreads();
3452 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3453
3454 wxPyEndAllowThreads(__tstate);
3455 if (PyErr_Occurred()) SWIG_fail;
3456 }
3457 {
3458 #if wxUSE_UNICODE
3459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3460 #else
3461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3462 #endif
3463 }
3464 {
3465 if (temp1)
3466 delete arg1;
3467 }
3468 {
3469 if (temp2)
3470 delete arg2;
3471 }
3472 {
3473 if (temp3)
3474 delete arg3;
3475 }
3476 return resultobj;
3477 fail:
3478 {
3479 if (temp1)
3480 delete arg1;
3481 }
3482 {
3483 if (temp2)
3484 delete arg2;
3485 }
3486 {
3487 if (temp3)
3488 delete arg3;
3489 }
3490 return NULL;
3491 }
3492
3493
3494 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3495 PyObject *resultobj;
3496 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3497 wxString *arg1 = (wxString *) &arg1_defvalue ;
3498 wxString const &arg2_defvalue = wxPyEmptyString ;
3499 wxString *arg2 = (wxString *) &arg2_defvalue ;
3500 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3501 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3502 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3503 wxWindow *arg5 = (wxWindow *) NULL ;
3504 wxString result;
3505 bool temp1 = false ;
3506 bool temp2 = false ;
3507 wxPoint temp4 ;
3508 PyObject * obj0 = 0 ;
3509 PyObject * obj1 = 0 ;
3510 PyObject * obj2 = 0 ;
3511 PyObject * obj3 = 0 ;
3512 PyObject * obj4 = 0 ;
3513 char *kwnames[] = {
3514 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3515 };
3516
3517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3518 if (obj0) {
3519 {
3520 arg1 = wxString_in_helper(obj0);
3521 if (arg1 == NULL) SWIG_fail;
3522 temp1 = true;
3523 }
3524 }
3525 if (obj1) {
3526 {
3527 arg2 = wxString_in_helper(obj1);
3528 if (arg2 == NULL) SWIG_fail;
3529 temp2 = true;
3530 }
3531 }
3532 if (obj2) {
3533 arg3 = (long)SWIG_As_long(obj2);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 if (obj3) {
3537 {
3538 arg4 = &temp4;
3539 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3540 }
3541 }
3542 if (obj4) {
3543 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3545 }
3546 {
3547 if (!wxPyCheckForApp()) SWIG_fail;
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3550
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 {
3555 #if wxUSE_UNICODE
3556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3557 #else
3558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3559 #endif
3560 }
3561 {
3562 if (temp1)
3563 delete arg1;
3564 }
3565 {
3566 if (temp2)
3567 delete arg2;
3568 }
3569 return resultobj;
3570 fail:
3571 {
3572 if (temp1)
3573 delete arg1;
3574 }
3575 {
3576 if (temp2)
3577 delete arg2;
3578 }
3579 return NULL;
3580 }
3581
3582
3583 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3584 PyObject *resultobj;
3585 wxString *arg1 = 0 ;
3586 wxString const &arg2_defvalue = wxPyEmptyString ;
3587 wxString *arg2 = (wxString *) &arg2_defvalue ;
3588 wxString const &arg3_defvalue = wxPyEmptyString ;
3589 wxString *arg3 = (wxString *) &arg3_defvalue ;
3590 wxWindow *arg4 = (wxWindow *) NULL ;
3591 int arg5 = (int) -1 ;
3592 int arg6 = (int) -1 ;
3593 bool arg7 = (bool) true ;
3594 wxString result;
3595 bool temp1 = false ;
3596 bool temp2 = false ;
3597 bool temp3 = false ;
3598 PyObject * obj0 = 0 ;
3599 PyObject * obj1 = 0 ;
3600 PyObject * obj2 = 0 ;
3601 PyObject * obj3 = 0 ;
3602 PyObject * obj4 = 0 ;
3603 PyObject * obj5 = 0 ;
3604 PyObject * obj6 = 0 ;
3605 char *kwnames[] = {
3606 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3607 };
3608
3609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3610 {
3611 arg1 = wxString_in_helper(obj0);
3612 if (arg1 == NULL) SWIG_fail;
3613 temp1 = true;
3614 }
3615 if (obj1) {
3616 {
3617 arg2 = wxString_in_helper(obj1);
3618 if (arg2 == NULL) SWIG_fail;
3619 temp2 = true;
3620 }
3621 }
3622 if (obj2) {
3623 {
3624 arg3 = wxString_in_helper(obj2);
3625 if (arg3 == NULL) SWIG_fail;
3626 temp3 = true;
3627 }
3628 }
3629 if (obj3) {
3630 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3632 }
3633 if (obj4) {
3634 arg5 = (int)SWIG_As_int(obj4);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 if (obj5) {
3638 arg6 = (int)SWIG_As_int(obj5);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 if (obj6) {
3642 arg7 = (bool)SWIG_As_bool(obj6);
3643 if (PyErr_Occurred()) SWIG_fail;
3644 }
3645 {
3646 if (!wxPyCheckForApp()) SWIG_fail;
3647 PyThreadState* __tstate = wxPyBeginAllowThreads();
3648 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3649
3650 wxPyEndAllowThreads(__tstate);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 {
3654 #if wxUSE_UNICODE
3655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3656 #else
3657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3658 #endif
3659 }
3660 {
3661 if (temp1)
3662 delete arg1;
3663 }
3664 {
3665 if (temp2)
3666 delete arg2;
3667 }
3668 {
3669 if (temp3)
3670 delete arg3;
3671 }
3672 return resultobj;
3673 fail:
3674 {
3675 if (temp1)
3676 delete arg1;
3677 }
3678 {
3679 if (temp2)
3680 delete arg2;
3681 }
3682 {
3683 if (temp3)
3684 delete arg3;
3685 }
3686 return NULL;
3687 }
3688
3689
3690 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3691 PyObject *resultobj;
3692 wxString *arg1 = 0 ;
3693 wxString const &arg2_defvalue = wxPyEmptyString ;
3694 wxString *arg2 = (wxString *) &arg2_defvalue ;
3695 wxString const &arg3_defvalue = wxPyEmptyString ;
3696 wxString *arg3 = (wxString *) &arg3_defvalue ;
3697 wxWindow *arg4 = (wxWindow *) NULL ;
3698 wxString result;
3699 bool temp1 = false ;
3700 bool temp2 = false ;
3701 bool temp3 = false ;
3702 PyObject * obj0 = 0 ;
3703 PyObject * obj1 = 0 ;
3704 PyObject * obj2 = 0 ;
3705 PyObject * obj3 = 0 ;
3706 char *kwnames[] = {
3707 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3708 };
3709
3710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3711 {
3712 arg1 = wxString_in_helper(obj0);
3713 if (arg1 == NULL) SWIG_fail;
3714 temp1 = true;
3715 }
3716 if (obj1) {
3717 {
3718 arg2 = wxString_in_helper(obj1);
3719 if (arg2 == NULL) SWIG_fail;
3720 temp2 = true;
3721 }
3722 }
3723 if (obj2) {
3724 {
3725 arg3 = wxString_in_helper(obj2);
3726 if (arg3 == NULL) SWIG_fail;
3727 temp3 = true;
3728 }
3729 }
3730 if (obj3) {
3731 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3733 }
3734 {
3735 if (!wxPyCheckForApp()) SWIG_fail;
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3738
3739 wxPyEndAllowThreads(__tstate);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 {
3743 #if wxUSE_UNICODE
3744 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3745 #else
3746 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3747 #endif
3748 }
3749 {
3750 if (temp1)
3751 delete arg1;
3752 }
3753 {
3754 if (temp2)
3755 delete arg2;
3756 }
3757 {
3758 if (temp3)
3759 delete arg3;
3760 }
3761 return resultobj;
3762 fail:
3763 {
3764 if (temp1)
3765 delete arg1;
3766 }
3767 {
3768 if (temp2)
3769 delete arg2;
3770 }
3771 {
3772 if (temp3)
3773 delete arg3;
3774 }
3775 return NULL;
3776 }
3777
3778
3779 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
3780 PyObject *resultobj;
3781 wxString *arg1 = 0 ;
3782 wxString *arg2 = 0 ;
3783 int arg3 ;
3784 wxString *arg4 = (wxString *) 0 ;
3785 wxWindow *arg5 = (wxWindow *) NULL ;
3786 int arg6 = (int) -1 ;
3787 int arg7 = (int) -1 ;
3788 bool arg8 = (bool) true ;
3789 int arg9 = (int) 150 ;
3790 int arg10 = (int) 200 ;
3791 wxString result;
3792 bool temp1 = false ;
3793 bool temp2 = false ;
3794 PyObject * obj0 = 0 ;
3795 PyObject * obj1 = 0 ;
3796 PyObject * obj2 = 0 ;
3797 PyObject * obj3 = 0 ;
3798 PyObject * obj4 = 0 ;
3799 PyObject * obj5 = 0 ;
3800 PyObject * obj6 = 0 ;
3801 PyObject * obj7 = 0 ;
3802 PyObject * obj8 = 0 ;
3803 char *kwnames[] = {
3804 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3805 };
3806
3807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3808 {
3809 arg1 = wxString_in_helper(obj0);
3810 if (arg1 == NULL) SWIG_fail;
3811 temp1 = true;
3812 }
3813 {
3814 arg2 = wxString_in_helper(obj1);
3815 if (arg2 == NULL) SWIG_fail;
3816 temp2 = true;
3817 }
3818 {
3819 arg3 = PyList_Size(obj2);
3820 arg4 = wxString_LIST_helper(obj2);
3821 if (arg4 == NULL) SWIG_fail;
3822 }
3823 if (obj3) {
3824 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3826 }
3827 if (obj4) {
3828 arg6 = (int)SWIG_As_int(obj4);
3829 if (PyErr_Occurred()) SWIG_fail;
3830 }
3831 if (obj5) {
3832 arg7 = (int)SWIG_As_int(obj5);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 if (obj6) {
3836 arg8 = (bool)SWIG_As_bool(obj6);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
3839 if (obj7) {
3840 arg9 = (int)SWIG_As_int(obj7);
3841 if (PyErr_Occurred()) SWIG_fail;
3842 }
3843 if (obj8) {
3844 arg10 = (int)SWIG_As_int(obj8);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 {
3848 if (!wxPyCheckForApp()) SWIG_fail;
3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
3850 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3851
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 {
3856 #if wxUSE_UNICODE
3857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3858 #else
3859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3860 #endif
3861 }
3862 {
3863 if (temp1)
3864 delete arg1;
3865 }
3866 {
3867 if (temp2)
3868 delete arg2;
3869 }
3870 {
3871 if (arg4) delete [] arg4;
3872 }
3873 return resultobj;
3874 fail:
3875 {
3876 if (temp1)
3877 delete arg1;
3878 }
3879 {
3880 if (temp2)
3881 delete arg2;
3882 }
3883 {
3884 if (arg4) delete [] arg4;
3885 }
3886 return NULL;
3887 }
3888
3889
3890 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
3891 PyObject *resultobj;
3892 wxString *arg1 = 0 ;
3893 wxString *arg2 = 0 ;
3894 int arg3 ;
3895 wxString *arg4 = (wxString *) 0 ;
3896 wxWindow *arg5 = (wxWindow *) NULL ;
3897 int arg6 = (int) -1 ;
3898 int arg7 = (int) -1 ;
3899 bool arg8 = (bool) true ;
3900 int arg9 = (int) 150 ;
3901 int arg10 = (int) 200 ;
3902 int result;
3903 bool temp1 = false ;
3904 bool temp2 = false ;
3905 PyObject * obj0 = 0 ;
3906 PyObject * obj1 = 0 ;
3907 PyObject * obj2 = 0 ;
3908 PyObject * obj3 = 0 ;
3909 PyObject * obj4 = 0 ;
3910 PyObject * obj5 = 0 ;
3911 PyObject * obj6 = 0 ;
3912 PyObject * obj7 = 0 ;
3913 PyObject * obj8 = 0 ;
3914 char *kwnames[] = {
3915 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3916 };
3917
3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3919 {
3920 arg1 = wxString_in_helper(obj0);
3921 if (arg1 == NULL) SWIG_fail;
3922 temp1 = true;
3923 }
3924 {
3925 arg2 = wxString_in_helper(obj1);
3926 if (arg2 == NULL) SWIG_fail;
3927 temp2 = true;
3928 }
3929 {
3930 arg3 = PyList_Size(obj2);
3931 arg4 = wxString_LIST_helper(obj2);
3932 if (arg4 == NULL) SWIG_fail;
3933 }
3934 if (obj3) {
3935 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3937 }
3938 if (obj4) {
3939 arg6 = (int)SWIG_As_int(obj4);
3940 if (PyErr_Occurred()) SWIG_fail;
3941 }
3942 if (obj5) {
3943 arg7 = (int)SWIG_As_int(obj5);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 if (obj6) {
3947 arg8 = (bool)SWIG_As_bool(obj6);
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 if (obj7) {
3951 arg9 = (int)SWIG_As_int(obj7);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 if (obj8) {
3955 arg10 = (int)SWIG_As_int(obj8);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 {
3959 if (!wxPyCheckForApp()) SWIG_fail;
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 resultobj = SWIG_From_int((int)result);
3967 {
3968 if (temp1)
3969 delete arg1;
3970 }
3971 {
3972 if (temp2)
3973 delete arg2;
3974 }
3975 {
3976 if (arg4) delete [] arg4;
3977 }
3978 return resultobj;
3979 fail:
3980 {
3981 if (temp1)
3982 delete arg1;
3983 }
3984 {
3985 if (temp2)
3986 delete arg2;
3987 }
3988 {
3989 if (arg4) delete [] arg4;
3990 }
3991 return NULL;
3992 }
3993
3994
3995 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj;
3997 wxString *arg1 = 0 ;
3998 wxString const &arg2_defvalue = wxPyEmptyString ;
3999 wxString *arg2 = (wxString *) &arg2_defvalue ;
4000 int arg3 = (int) wxOK|wxCENTRE ;
4001 wxWindow *arg4 = (wxWindow *) NULL ;
4002 int arg5 = (int) -1 ;
4003 int arg6 = (int) -1 ;
4004 int result;
4005 bool temp1 = false ;
4006 bool temp2 = false ;
4007 PyObject * obj0 = 0 ;
4008 PyObject * obj1 = 0 ;
4009 PyObject * obj2 = 0 ;
4010 PyObject * obj3 = 0 ;
4011 PyObject * obj4 = 0 ;
4012 PyObject * obj5 = 0 ;
4013 char *kwnames[] = {
4014 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
4015 };
4016
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4018 {
4019 arg1 = wxString_in_helper(obj0);
4020 if (arg1 == NULL) SWIG_fail;
4021 temp1 = true;
4022 }
4023 if (obj1) {
4024 {
4025 arg2 = wxString_in_helper(obj1);
4026 if (arg2 == NULL) SWIG_fail;
4027 temp2 = true;
4028 }
4029 }
4030 if (obj2) {
4031 arg3 = (int)SWIG_As_int(obj2);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 if (obj3) {
4035 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
4036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4037 }
4038 if (obj4) {
4039 arg5 = (int)SWIG_As_int(obj4);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 if (obj5) {
4043 arg6 = (int)SWIG_As_int(obj5);
4044 if (PyErr_Occurred()) SWIG_fail;
4045 }
4046 {
4047 if (!wxPyCheckForApp()) SWIG_fail;
4048 PyThreadState* __tstate = wxPyBeginAllowThreads();
4049 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
4050
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 resultobj = SWIG_From_int((int)result);
4055 {
4056 if (temp1)
4057 delete arg1;
4058 }
4059 {
4060 if (temp2)
4061 delete arg2;
4062 }
4063 return resultobj;
4064 fail:
4065 {
4066 if (temp1)
4067 delete arg1;
4068 }
4069 {
4070 if (temp2)
4071 delete arg2;
4072 }
4073 return NULL;
4074 }
4075
4076
4077 static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 wxString *arg1 = 0 ;
4080 wxString *arg2 = 0 ;
4081 wxString *arg3 = 0 ;
4082 long arg4 ;
4083 long arg5 = (long) 0 ;
4084 long arg6 = (long) 100 ;
4085 wxWindow *arg7 = (wxWindow *) NULL ;
4086 wxPoint const &arg8_defvalue = wxDefaultPosition ;
4087 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
4088 long result;
4089 bool temp1 = false ;
4090 bool temp2 = false ;
4091 bool temp3 = false ;
4092 wxPoint temp8 ;
4093 PyObject * obj0 = 0 ;
4094 PyObject * obj1 = 0 ;
4095 PyObject * obj2 = 0 ;
4096 PyObject * obj3 = 0 ;
4097 PyObject * obj4 = 0 ;
4098 PyObject * obj5 = 0 ;
4099 PyObject * obj6 = 0 ;
4100 PyObject * obj7 = 0 ;
4101 char *kwnames[] = {
4102 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4106 {
4107 arg1 = wxString_in_helper(obj0);
4108 if (arg1 == NULL) SWIG_fail;
4109 temp1 = true;
4110 }
4111 {
4112 arg2 = wxString_in_helper(obj1);
4113 if (arg2 == NULL) SWIG_fail;
4114 temp2 = true;
4115 }
4116 {
4117 arg3 = wxString_in_helper(obj2);
4118 if (arg3 == NULL) SWIG_fail;
4119 temp3 = true;
4120 }
4121 arg4 = (long)SWIG_As_long(obj3);
4122 if (PyErr_Occurred()) SWIG_fail;
4123 if (obj4) {
4124 arg5 = (long)SWIG_As_long(obj4);
4125 if (PyErr_Occurred()) SWIG_fail;
4126 }
4127 if (obj5) {
4128 arg6 = (long)SWIG_As_long(obj5);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 }
4131 if (obj6) {
4132 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
4133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4134 }
4135 if (obj7) {
4136 {
4137 arg8 = &temp8;
4138 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
4139 }
4140 }
4141 {
4142 if (!wxPyCheckForApp()) SWIG_fail;
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
4145
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_From_long((long)result);
4150 {
4151 if (temp1)
4152 delete arg1;
4153 }
4154 {
4155 if (temp2)
4156 delete arg2;
4157 }
4158 {
4159 if (temp3)
4160 delete arg3;
4161 }
4162 return resultobj;
4163 fail:
4164 {
4165 if (temp1)
4166 delete arg1;
4167 }
4168 {
4169 if (temp2)
4170 delete arg2;
4171 }
4172 {
4173 if (temp3)
4174 delete arg3;
4175 }
4176 return NULL;
4177 }
4178
4179
4180 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj;
4182 bool result;
4183 char *kwnames[] = {
4184 NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4188 {
4189 if (!wxPyCheckForApp()) SWIG_fail;
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (bool)wxColourDisplay();
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 {
4197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4198 }
4199 return resultobj;
4200 fail:
4201 return NULL;
4202 }
4203
4204
4205 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4206 PyObject *resultobj;
4207 int result;
4208 char *kwnames[] = {
4209 NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4213 {
4214 if (!wxPyCheckForApp()) SWIG_fail;
4215 PyThreadState* __tstate = wxPyBeginAllowThreads();
4216 result = (int)wxDisplayDepth();
4217
4218 wxPyEndAllowThreads(__tstate);
4219 if (PyErr_Occurred()) SWIG_fail;
4220 }
4221 resultobj = SWIG_From_int((int)result);
4222 return resultobj;
4223 fail:
4224 return NULL;
4225 }
4226
4227
4228 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4229 PyObject *resultobj;
4230 int result;
4231 char *kwnames[] = {
4232 NULL
4233 };
4234
4235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4236 {
4237 if (!wxPyCheckForApp()) SWIG_fail;
4238 PyThreadState* __tstate = wxPyBeginAllowThreads();
4239 result = (int)wxGetDisplayDepth();
4240
4241 wxPyEndAllowThreads(__tstate);
4242 if (PyErr_Occurred()) SWIG_fail;
4243 }
4244 resultobj = SWIG_From_int((int)result);
4245 return resultobj;
4246 fail:
4247 return NULL;
4248 }
4249
4250
4251 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4252 PyObject *resultobj;
4253 int *arg1 = (int *) 0 ;
4254 int *arg2 = (int *) 0 ;
4255 int temp1 ;
4256 int res1 = 0 ;
4257 int temp2 ;
4258 int res2 = 0 ;
4259 char *kwnames[] = {
4260 NULL
4261 };
4262
4263 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4264 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4266 {
4267 if (!wxPyCheckForApp()) SWIG_fail;
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 wxDisplaySize(arg1,arg2);
4270
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 Py_INCREF(Py_None); resultobj = Py_None;
4275 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4276 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4277 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4278 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj;
4287 wxSize result;
4288 char *kwnames[] = {
4289 NULL
4290 };
4291
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4293 {
4294 if (!wxPyCheckForApp()) SWIG_fail;
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 result = wxGetDisplaySize();
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 {
4302 wxSize * resultptr;
4303 resultptr = new wxSize((wxSize &) result);
4304 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4305 }
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 int *arg1 = (int *) 0 ;
4315 int *arg2 = (int *) 0 ;
4316 int temp1 ;
4317 int res1 = 0 ;
4318 int temp2 ;
4319 int res2 = 0 ;
4320 char *kwnames[] = {
4321 NULL
4322 };
4323
4324 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4325 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4327 {
4328 if (!wxPyCheckForApp()) SWIG_fail;
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 wxDisplaySizeMM(arg1,arg2);
4331
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 Py_INCREF(Py_None); resultobj = Py_None;
4336 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4337 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4338 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4339 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4347 PyObject *resultobj;
4348 wxSize result;
4349 char *kwnames[] = {
4350 NULL
4351 };
4352
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4354 {
4355 if (!wxPyCheckForApp()) SWIG_fail;
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
4357 result = wxGetDisplaySizeMM();
4358
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) SWIG_fail;
4361 }
4362 {
4363 wxSize * resultptr;
4364 resultptr = new wxSize((wxSize &) result);
4365 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4366 }
4367 return resultobj;
4368 fail:
4369 return NULL;
4370 }
4371
4372
4373 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4374 PyObject *resultobj;
4375 int *arg1 = (int *) 0 ;
4376 int *arg2 = (int *) 0 ;
4377 int *arg3 = (int *) 0 ;
4378 int *arg4 = (int *) 0 ;
4379 int temp1 ;
4380 int res1 = 0 ;
4381 int temp2 ;
4382 int res2 = 0 ;
4383 int temp3 ;
4384 int res3 = 0 ;
4385 int temp4 ;
4386 int res4 = 0 ;
4387 char *kwnames[] = {
4388 NULL
4389 };
4390
4391 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4392 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4393 arg3 = &temp3; res3 = SWIG_NEWOBJ;
4394 arg4 = &temp4; res4 = SWIG_NEWOBJ;
4395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4396 {
4397 if (!wxPyCheckForApp()) SWIG_fail;
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4400
4401 wxPyEndAllowThreads(__tstate);
4402 if (PyErr_Occurred()) SWIG_fail;
4403 }
4404 Py_INCREF(Py_None); resultobj = Py_None;
4405 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4406 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4407 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4408 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4409 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
4410 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
4411 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
4412 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
4413 return resultobj;
4414 fail:
4415 return NULL;
4416 }
4417
4418
4419 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4420 PyObject *resultobj;
4421 wxRect result;
4422 char *kwnames[] = {
4423 NULL
4424 };
4425
4426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4427 {
4428 if (!wxPyCheckForApp()) SWIG_fail;
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 result = wxGetClientDisplayRect();
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 {
4436 wxRect * resultptr;
4437 resultptr = new wxRect((wxRect &) result);
4438 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4439 }
4440 return resultobj;
4441 fail:
4442 return NULL;
4443 }
4444
4445
4446 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4447 PyObject *resultobj;
4448 wxCursor *arg1 = 0 ;
4449 PyObject * obj0 = 0 ;
4450 char *kwnames[] = {
4451 (char *) "cursor", NULL
4452 };
4453
4454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4456 SWIG_POINTER_EXCEPTION | 0)) == -1)
4457 SWIG_fail;
4458 if (arg1 == NULL) {
4459 PyErr_SetString(PyExc_TypeError,"null reference");
4460 SWIG_fail;
4461 }
4462 {
4463 if (!wxPyCheckForApp()) SWIG_fail;
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 wxSetCursor(*arg1);
4466
4467 wxPyEndAllowThreads(__tstate);
4468 if (PyErr_Occurred()) SWIG_fail;
4469 }
4470 Py_INCREF(Py_None); resultobj = Py_None;
4471 return resultobj;
4472 fail:
4473 return NULL;
4474 }
4475
4476
4477 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj;
4479 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4480 PyObject * obj0 = 0 ;
4481 char *kwnames[] = {
4482 (char *) "cursor", NULL
4483 };
4484
4485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4486 if (obj0) {
4487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4489 }
4490 {
4491 if (!wxPyCheckForApp()) SWIG_fail;
4492 PyThreadState* __tstate = wxPyBeginAllowThreads();
4493 wxBeginBusyCursor(arg1);
4494
4495 wxPyEndAllowThreads(__tstate);
4496 if (PyErr_Occurred()) SWIG_fail;
4497 }
4498 Py_INCREF(Py_None); resultobj = Py_None;
4499 return resultobj;
4500 fail:
4501 return NULL;
4502 }
4503
4504
4505 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4506 PyObject *resultobj;
4507 wxWindow *result;
4508 char *kwnames[] = {
4509 NULL
4510 };
4511
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4513 {
4514 if (!wxPyCheckForApp()) SWIG_fail;
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 result = (wxWindow *)wxGetActiveWindow();
4517
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) SWIG_fail;
4520 }
4521 {
4522 resultobj = wxPyMake_wxObject(result, 0);
4523 }
4524 return resultobj;
4525 fail:
4526 return NULL;
4527 }
4528
4529
4530 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj;
4532 wxPoint *arg1 = 0 ;
4533 wxWindow *result;
4534 wxPoint temp1 ;
4535 PyObject * obj0 = 0 ;
4536 char *kwnames[] = {
4537 (char *) "pt", NULL
4538 };
4539
4540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4541 {
4542 arg1 = &temp1;
4543 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4544 }
4545 {
4546 if (!wxPyCheckForApp()) SWIG_fail;
4547 PyThreadState* __tstate = wxPyBeginAllowThreads();
4548 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4549
4550 wxPyEndAllowThreads(__tstate);
4551 if (PyErr_Occurred()) SWIG_fail;
4552 }
4553 {
4554 resultobj = wxPyMake_wxObject(result, 0);
4555 }
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj;
4564 wxPoint *arg1 = 0 ;
4565 wxWindow *result;
4566 wxPoint temp1 ;
4567 PyObject * obj0 = 0 ;
4568 char *kwnames[] = {
4569 (char *) "pt", NULL
4570 };
4571
4572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4573 {
4574 arg1 = &temp1;
4575 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4576 }
4577 {
4578 if (!wxPyCheckForApp()) SWIG_fail;
4579 PyThreadState* __tstate = wxPyBeginAllowThreads();
4580 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4581
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 {
4586 resultobj = wxPyMake_wxObject(result, 0);
4587 }
4588 return resultobj;
4589 fail:
4590 return NULL;
4591 }
4592
4593
4594 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
4595 PyObject *resultobj;
4596 wxWindow *arg1 = (wxWindow *) 0 ;
4597 wxWindow *result;
4598 PyObject * obj0 = 0 ;
4599 char *kwnames[] = {
4600 (char *) "win", NULL
4601 };
4602
4603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4606 {
4607 if (!wxPyCheckForApp()) SWIG_fail;
4608 PyThreadState* __tstate = wxPyBeginAllowThreads();
4609 result = (wxWindow *)wxGetTopLevelParent(arg1);
4610
4611 wxPyEndAllowThreads(__tstate);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 {
4615 resultobj = wxPyMake_wxObject(result, 0);
4616 }
4617 return resultobj;
4618 fail:
4619 return NULL;
4620 }
4621
4622
4623 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj;
4625 int arg1 ;
4626 bool result;
4627 PyObject * obj0 = 0 ;
4628 char *kwnames[] = {
4629 (char *) "key", NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4633 arg1 = (int)SWIG_As_int(obj0);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 {
4636 if (!wxPyCheckForApp()) SWIG_fail;
4637 PyThreadState* __tstate = wxPyBeginAllowThreads();
4638 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4639
4640 wxPyEndAllowThreads(__tstate);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 }
4643 {
4644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4645 }
4646 return resultobj;
4647 fail:
4648 return NULL;
4649 }
4650
4651
4652 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
4653 PyObject *resultobj;
4654 char *kwnames[] = {
4655 NULL
4656 };
4657
4658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4659 {
4660 if (!wxPyCheckForApp()) SWIG_fail;
4661 PyThreadState* __tstate = wxPyBeginAllowThreads();
4662 wxWakeUpMainThread();
4663
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 Py_INCREF(Py_None); resultobj = Py_None;
4668 return resultobj;
4669 fail:
4670 return NULL;
4671 }
4672
4673
4674 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj;
4676 char *kwnames[] = {
4677 NULL
4678 };
4679
4680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4681 {
4682 if (!wxPyCheckForApp()) SWIG_fail;
4683 PyThreadState* __tstate = wxPyBeginAllowThreads();
4684 wxMutexGuiEnter();
4685
4686 wxPyEndAllowThreads(__tstate);
4687 if (PyErr_Occurred()) SWIG_fail;
4688 }
4689 Py_INCREF(Py_None); resultobj = Py_None;
4690 return resultobj;
4691 fail:
4692 return NULL;
4693 }
4694
4695
4696 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
4697 PyObject *resultobj;
4698 char *kwnames[] = {
4699 NULL
4700 };
4701
4702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4703 {
4704 if (!wxPyCheckForApp()) SWIG_fail;
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
4706 wxMutexGuiLeave();
4707
4708 wxPyEndAllowThreads(__tstate);
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 Py_INCREF(Py_None); resultobj = Py_None;
4712 return resultobj;
4713 fail:
4714 return NULL;
4715 }
4716
4717
4718 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4719 PyObject *resultobj;
4720 wxMutexGuiLocker *result;
4721 char *kwnames[] = {
4722 NULL
4723 };
4724
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4726 {
4727 if (!wxPyCheckForApp()) SWIG_fail;
4728 PyThreadState* __tstate = wxPyBeginAllowThreads();
4729 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4730
4731 wxPyEndAllowThreads(__tstate);
4732 if (PyErr_Occurred()) SWIG_fail;
4733 }
4734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4735 return resultobj;
4736 fail:
4737 return NULL;
4738 }
4739
4740
4741 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4742 PyObject *resultobj;
4743 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4744 PyObject * obj0 = 0 ;
4745 char *kwnames[] = {
4746 (char *) "self", NULL
4747 };
4748
4749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4752 {
4753 PyThreadState* __tstate = wxPyBeginAllowThreads();
4754 delete arg1;
4755
4756 wxPyEndAllowThreads(__tstate);
4757 if (PyErr_Occurred()) SWIG_fail;
4758 }
4759 Py_INCREF(Py_None); resultobj = Py_None;
4760 return resultobj;
4761 fail:
4762 return NULL;
4763 }
4764
4765
4766 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
4767 PyObject *obj;
4768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4769 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4770 Py_INCREF(obj);
4771 return Py_BuildValue((char *)"");
4772 }
4773 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
4774 PyObject *resultobj;
4775 bool result;
4776 char *kwnames[] = {
4777 NULL
4778 };
4779
4780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4781 {
4782 PyThreadState* __tstate = wxPyBeginAllowThreads();
4783 result = (bool)wxThread_IsMain();
4784
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
4788 {
4789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4790 }
4791 return resultobj;
4792 fail:
4793 return NULL;
4794 }
4795
4796
4797 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
4798 PyObject *resultobj;
4799 wxString *arg1 = 0 ;
4800 wxToolTip *result;
4801 bool temp1 = false ;
4802 PyObject * obj0 = 0 ;
4803 char *kwnames[] = {
4804 (char *) "tip", NULL
4805 };
4806
4807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4808 {
4809 arg1 = wxString_in_helper(obj0);
4810 if (arg1 == NULL) SWIG_fail;
4811 temp1 = true;
4812 }
4813 {
4814 if (!wxPyCheckForApp()) SWIG_fail;
4815 PyThreadState* __tstate = wxPyBeginAllowThreads();
4816 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4817
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = wxPyMake_wxObject(result, 1);
4823 }
4824 {
4825 if (temp1)
4826 delete arg1;
4827 }
4828 return resultobj;
4829 fail:
4830 {
4831 if (temp1)
4832 delete arg1;
4833 }
4834 return NULL;
4835 }
4836
4837
4838 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4839 PyObject *resultobj;
4840 wxToolTip *arg1 = (wxToolTip *) 0 ;
4841 wxString *arg2 = 0 ;
4842 bool temp2 = false ;
4843 PyObject * obj0 = 0 ;
4844 PyObject * obj1 = 0 ;
4845 char *kwnames[] = {
4846 (char *) "self",(char *) "tip", NULL
4847 };
4848
4849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4852 {
4853 arg2 = wxString_in_helper(obj1);
4854 if (arg2 == NULL) SWIG_fail;
4855 temp2 = true;
4856 }
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 (arg1)->SetTip((wxString const &)*arg2);
4860
4861 wxPyEndAllowThreads(__tstate);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 Py_INCREF(Py_None); resultobj = Py_None;
4865 {
4866 if (temp2)
4867 delete arg2;
4868 }
4869 return resultobj;
4870 fail:
4871 {
4872 if (temp2)
4873 delete arg2;
4874 }
4875 return NULL;
4876 }
4877
4878
4879 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj;
4881 wxToolTip *arg1 = (wxToolTip *) 0 ;
4882 wxString result;
4883 PyObject * obj0 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (arg1)->GetTip();
4894
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 {
4899 #if wxUSE_UNICODE
4900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4901 #else
4902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4903 #endif
4904 }
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj;
4913 wxToolTip *arg1 = (wxToolTip *) 0 ;
4914 wxWindow *result;
4915 PyObject * obj0 = 0 ;
4916 char *kwnames[] = {
4917 (char *) "self", NULL
4918 };
4919
4920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4923 {
4924 PyThreadState* __tstate = wxPyBeginAllowThreads();
4925 result = (wxWindow *)(arg1)->GetWindow();
4926
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 {
4931 resultobj = wxPyMake_wxObject(result, 0);
4932 }
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
4940 PyObject *resultobj;
4941 bool arg1 ;
4942 PyObject * obj0 = 0 ;
4943 char *kwnames[] = {
4944 (char *) "flag", NULL
4945 };
4946
4947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4948 arg1 = (bool)SWIG_As_bool(obj0);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 {
4951 PyThreadState* __tstate = wxPyBeginAllowThreads();
4952 wxToolTip::Enable(arg1);
4953
4954 wxPyEndAllowThreads(__tstate);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 }
4957 Py_INCREF(Py_None); resultobj = Py_None;
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
4965 PyObject *resultobj;
4966 long arg1 ;
4967 PyObject * obj0 = 0 ;
4968 char *kwnames[] = {
4969 (char *) "milliseconds", NULL
4970 };
4971
4972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4973 arg1 = (long)SWIG_As_long(obj0);
4974 if (PyErr_Occurred()) SWIG_fail;
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 wxToolTip::SetDelay(arg1);
4978
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 Py_INCREF(Py_None); resultobj = Py_None;
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
4990 PyObject *obj;
4991 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4992 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4993 Py_INCREF(obj);
4994 return Py_BuildValue((char *)"");
4995 }
4996 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 wxWindow *arg1 = (wxWindow *) 0 ;
4999 wxSize *arg2 = 0 ;
5000 wxCaret *result;
5001 wxSize temp2 ;
5002 PyObject * obj0 = 0 ;
5003 PyObject * obj1 = 0 ;
5004 char *kwnames[] = {
5005 (char *) "window",(char *) "size", NULL
5006 };
5007
5008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
5009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5011 {
5012 arg2 = &temp2;
5013 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5014 }
5015 {
5016 if (!wxPyCheckForApp()) SWIG_fail;
5017 PyThreadState* __tstate = wxPyBeginAllowThreads();
5018 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
5019
5020 wxPyEndAllowThreads(__tstate);
5021 if (PyErr_Occurred()) SWIG_fail;
5022 }
5023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
5024 return resultobj;
5025 fail:
5026 return NULL;
5027 }
5028
5029
5030 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
5031 PyObject *resultobj;
5032 wxCaret *arg1 = (wxCaret *) 0 ;
5033 PyObject * obj0 = 0 ;
5034 char *kwnames[] = {
5035 (char *) "self", NULL
5036 };
5037
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
5039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5041 {
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 delete arg1;
5044
5045 wxPyEndAllowThreads(__tstate);
5046 if (PyErr_Occurred()) SWIG_fail;
5047 }
5048 Py_INCREF(Py_None); resultobj = Py_None;
5049 return resultobj;
5050 fail:
5051 return NULL;
5052 }
5053
5054
5055 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5056 PyObject *resultobj;
5057 wxCaret *arg1 = (wxCaret *) 0 ;
5058 bool result;
5059 PyObject * obj0 = 0 ;
5060 char *kwnames[] = {
5061 (char *) "self", NULL
5062 };
5063
5064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
5065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5067 {
5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
5069 result = (bool)(arg1)->IsOk();
5070
5071 wxPyEndAllowThreads(__tstate);
5072 if (PyErr_Occurred()) SWIG_fail;
5073 }
5074 {
5075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5076 }
5077 return resultobj;
5078 fail:
5079 return NULL;
5080 }
5081
5082
5083 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
5084 PyObject *resultobj;
5085 wxCaret *arg1 = (wxCaret *) 0 ;
5086 bool result;
5087 PyObject * obj0 = 0 ;
5088 char *kwnames[] = {
5089 (char *) "self", NULL
5090 };
5091
5092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
5093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 result = (bool)(arg1)->IsVisible();
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 {
5103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5104 }
5105 return resultobj;
5106 fail:
5107 return NULL;
5108 }
5109
5110
5111 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
5112 PyObject *resultobj;
5113 wxCaret *arg1 = (wxCaret *) 0 ;
5114 wxPoint result;
5115 PyObject * obj0 = 0 ;
5116 char *kwnames[] = {
5117 (char *) "self", NULL
5118 };
5119
5120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
5121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 result = (arg1)->GetPosition();
5126
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) SWIG_fail;
5129 }
5130 {
5131 wxPoint * resultptr;
5132 resultptr = new wxPoint((wxPoint &) result);
5133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5134 }
5135 return resultobj;
5136 fail:
5137 return NULL;
5138 }
5139
5140
5141 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5142 PyObject *resultobj;
5143 wxCaret *arg1 = (wxCaret *) 0 ;
5144 int *arg2 = (int *) 0 ;
5145 int *arg3 = (int *) 0 ;
5146 int temp2 ;
5147 int res2 = 0 ;
5148 int temp3 ;
5149 int res3 = 0 ;
5150 PyObject * obj0 = 0 ;
5151 char *kwnames[] = {
5152 (char *) "self", NULL
5153 };
5154
5155 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5156 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 (arg1)->GetPosition(arg2,arg3);
5163
5164 wxPyEndAllowThreads(__tstate);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 }
5167 Py_INCREF(Py_None); resultobj = Py_None;
5168 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5169 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5170 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5171 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5172 return resultobj;
5173 fail:
5174 return NULL;
5175 }
5176
5177
5178 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5179 PyObject *resultobj;
5180 wxCaret *arg1 = (wxCaret *) 0 ;
5181 wxSize result;
5182 PyObject * obj0 = 0 ;
5183 char *kwnames[] = {
5184 (char *) "self", NULL
5185 };
5186
5187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 result = (arg1)->GetSize();
5193
5194 wxPyEndAllowThreads(__tstate);
5195 if (PyErr_Occurred()) SWIG_fail;
5196 }
5197 {
5198 wxSize * resultptr;
5199 resultptr = new wxSize((wxSize &) result);
5200 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5201 }
5202 return resultobj;
5203 fail:
5204 return NULL;
5205 }
5206
5207
5208 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5209 PyObject *resultobj;
5210 wxCaret *arg1 = (wxCaret *) 0 ;
5211 int *arg2 = (int *) 0 ;
5212 int *arg3 = (int *) 0 ;
5213 int temp2 ;
5214 int res2 = 0 ;
5215 int temp3 ;
5216 int res3 = 0 ;
5217 PyObject * obj0 = 0 ;
5218 char *kwnames[] = {
5219 (char *) "self", NULL
5220 };
5221
5222 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5223 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 (arg1)->GetSize(arg2,arg3);
5230
5231 wxPyEndAllowThreads(__tstate);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 }
5234 Py_INCREF(Py_None); resultobj = Py_None;
5235 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5236 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5237 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5238 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
5246 PyObject *resultobj;
5247 wxCaret *arg1 = (wxCaret *) 0 ;
5248 wxWindow *result;
5249 PyObject * obj0 = 0 ;
5250 char *kwnames[] = {
5251 (char *) "self", NULL
5252 };
5253
5254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5257 {
5258 PyThreadState* __tstate = wxPyBeginAllowThreads();
5259 result = (wxWindow *)(arg1)->GetWindow();
5260
5261 wxPyEndAllowThreads(__tstate);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 }
5264 {
5265 resultobj = wxPyMake_wxObject(result, 0);
5266 }
5267 return resultobj;
5268 fail:
5269 return NULL;
5270 }
5271
5272
5273 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj;
5275 wxCaret *arg1 = (wxCaret *) 0 ;
5276 int arg2 ;
5277 int arg3 ;
5278 PyObject * obj0 = 0 ;
5279 PyObject * obj1 = 0 ;
5280 PyObject * obj2 = 0 ;
5281 char *kwnames[] = {
5282 (char *) "self",(char *) "x",(char *) "y", NULL
5283 };
5284
5285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5288 arg2 = (int)SWIG_As_int(obj1);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 arg3 = (int)SWIG_As_int(obj2);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
5294 (arg1)->Move(arg2,arg3);
5295
5296 wxPyEndAllowThreads(__tstate);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
5299 Py_INCREF(Py_None); resultobj = Py_None;
5300 return resultobj;
5301 fail:
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxCaret *arg1 = (wxCaret *) 0 ;
5309 wxPoint *arg2 = 0 ;
5310 wxPoint temp2 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 char *kwnames[] = {
5314 (char *) "self",(char *) "pt", NULL
5315 };
5316
5317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5320 {
5321 arg2 = &temp2;
5322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5323 }
5324 {
5325 PyThreadState* __tstate = wxPyBeginAllowThreads();
5326 (arg1)->Move((wxPoint const &)*arg2);
5327
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 Py_INCREF(Py_None); resultobj = Py_None;
5332 return resultobj;
5333 fail:
5334 return NULL;
5335 }
5336
5337
5338 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxCaret *arg1 = (wxCaret *) 0 ;
5341 int arg2 ;
5342 int arg3 ;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5345 PyObject * obj2 = 0 ;
5346 char *kwnames[] = {
5347 (char *) "self",(char *) "width",(char *) "height", NULL
5348 };
5349
5350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5353 arg2 = (int)SWIG_As_int(obj1);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 arg3 = (int)SWIG_As_int(obj2);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 {
5358 PyThreadState* __tstate = wxPyBeginAllowThreads();
5359 (arg1)->SetSize(arg2,arg3);
5360
5361 wxPyEndAllowThreads(__tstate);
5362 if (PyErr_Occurred()) SWIG_fail;
5363 }
5364 Py_INCREF(Py_None); resultobj = Py_None;
5365 return resultobj;
5366 fail:
5367 return NULL;
5368 }
5369
5370
5371 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5372 PyObject *resultobj;
5373 wxCaret *arg1 = (wxCaret *) 0 ;
5374 wxSize *arg2 = 0 ;
5375 wxSize temp2 ;
5376 PyObject * obj0 = 0 ;
5377 PyObject * obj1 = 0 ;
5378 char *kwnames[] = {
5379 (char *) "self",(char *) "size", NULL
5380 };
5381
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5385 {
5386 arg2 = &temp2;
5387 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5388 }
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 (arg1)->SetSize((wxSize const &)*arg2);
5392
5393 wxPyEndAllowThreads(__tstate);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 Py_INCREF(Py_None); resultobj = Py_None;
5397 return resultobj;
5398 fail:
5399 return NULL;
5400 }
5401
5402
5403 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
5404 PyObject *resultobj;
5405 wxCaret *arg1 = (wxCaret *) 0 ;
5406 int arg2 = (int) true ;
5407 PyObject * obj0 = 0 ;
5408 PyObject * obj1 = 0 ;
5409 char *kwnames[] = {
5410 (char *) "self",(char *) "show", NULL
5411 };
5412
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5416 if (obj1) {
5417 arg2 = (int)SWIG_As_int(obj1);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 (arg1)->Show(arg2);
5423
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 Py_INCREF(Py_None); resultobj = Py_None;
5428 return resultobj;
5429 fail:
5430 return NULL;
5431 }
5432
5433
5434 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
5435 PyObject *resultobj;
5436 wxCaret *arg1 = (wxCaret *) 0 ;
5437 PyObject * obj0 = 0 ;
5438 char *kwnames[] = {
5439 (char *) "self", NULL
5440 };
5441
5442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5445 {
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 (arg1)->Hide();
5448
5449 wxPyEndAllowThreads(__tstate);
5450 if (PyErr_Occurred()) SWIG_fail;
5451 }
5452 Py_INCREF(Py_None); resultobj = Py_None;
5453 return resultobj;
5454 fail:
5455 return NULL;
5456 }
5457
5458
5459 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
5460 PyObject *obj;
5461 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5462 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5463 Py_INCREF(obj);
5464 return Py_BuildValue((char *)"");
5465 }
5466 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5467 PyObject *resultobj;
5468 int result;
5469 char *kwnames[] = {
5470 NULL
5471 };
5472
5473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 result = (int)wxCaret_GetBlinkTime();
5477
5478 wxPyEndAllowThreads(__tstate);
5479 if (PyErr_Occurred()) SWIG_fail;
5480 }
5481 resultobj = SWIG_From_int((int)result);
5482 return resultobj;
5483 fail:
5484 return NULL;
5485 }
5486
5487
5488 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5489 PyObject *resultobj;
5490 int arg1 ;
5491 PyObject * obj0 = 0 ;
5492 char *kwnames[] = {
5493 (char *) "milliseconds", NULL
5494 };
5495
5496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5497 arg1 = (int)SWIG_As_int(obj0);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 {
5500 PyThreadState* __tstate = wxPyBeginAllowThreads();
5501 wxCaret_SetBlinkTime(arg1);
5502
5503 wxPyEndAllowThreads(__tstate);
5504 if (PyErr_Occurred()) SWIG_fail;
5505 }
5506 Py_INCREF(Py_None); resultobj = Py_None;
5507 return resultobj;
5508 fail:
5509 return NULL;
5510 }
5511
5512
5513 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5514 PyObject *resultobj;
5515 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5516 wxBusyCursor *result;
5517 PyObject * obj0 = 0 ;
5518 char *kwnames[] = {
5519 (char *) "cursor", NULL
5520 };
5521
5522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5523 if (obj0) {
5524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5526 }
5527 {
5528 if (!wxPyCheckForApp()) SWIG_fail;
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5531
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5536 return resultobj;
5537 fail:
5538 return NULL;
5539 }
5540
5541
5542 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5543 PyObject *resultobj;
5544 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5545 PyObject * obj0 = 0 ;
5546 char *kwnames[] = {
5547 (char *) "self", NULL
5548 };
5549
5550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 delete arg1;
5556
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 Py_INCREF(Py_None); resultobj = Py_None;
5561 return resultobj;
5562 fail:
5563 return NULL;
5564 }
5565
5566
5567 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
5568 PyObject *obj;
5569 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5570 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5571 Py_INCREF(obj);
5572 return Py_BuildValue((char *)"");
5573 }
5574 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5575 PyObject *resultobj;
5576 wxWindow *arg1 = (wxWindow *) NULL ;
5577 wxWindowDisabler *result;
5578 PyObject * obj0 = 0 ;
5579 char *kwnames[] = {
5580 (char *) "winToSkip", NULL
5581 };
5582
5583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5584 if (obj0) {
5585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5587 }
5588 {
5589 if (!wxPyCheckForApp()) SWIG_fail;
5590 PyThreadState* __tstate = wxPyBeginAllowThreads();
5591 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5592
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5597 return resultobj;
5598 fail:
5599 return NULL;
5600 }
5601
5602
5603 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5604 PyObject *resultobj;
5605 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5606 PyObject * obj0 = 0 ;
5607 char *kwnames[] = {
5608 (char *) "self", NULL
5609 };
5610
5611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 delete arg1;
5617
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 Py_INCREF(Py_None); resultobj = Py_None;
5622 return resultobj;
5623 fail:
5624 return NULL;
5625 }
5626
5627
5628 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
5629 PyObject *obj;
5630 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5631 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5632 Py_INCREF(obj);
5633 return Py_BuildValue((char *)"");
5634 }
5635 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5636 PyObject *resultobj;
5637 wxString *arg1 = 0 ;
5638 wxBusyInfo *result;
5639 bool temp1 = false ;
5640 PyObject * obj0 = 0 ;
5641 char *kwnames[] = {
5642 (char *) "message", NULL
5643 };
5644
5645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5646 {
5647 arg1 = wxString_in_helper(obj0);
5648 if (arg1 == NULL) SWIG_fail;
5649 temp1 = true;
5650 }
5651 {
5652 if (!wxPyCheckForApp()) SWIG_fail;
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5660 {
5661 if (temp1)
5662 delete arg1;
5663 }
5664 return resultobj;
5665 fail:
5666 {
5667 if (temp1)
5668 delete arg1;
5669 }
5670 return NULL;
5671 }
5672
5673
5674 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5675 PyObject *resultobj;
5676 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5677 PyObject * obj0 = 0 ;
5678 char *kwnames[] = {
5679 (char *) "self", NULL
5680 };
5681
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 delete arg1;
5688
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 Py_INCREF(Py_None); resultobj = Py_None;
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
5700 PyObject *obj;
5701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5702 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5703 Py_INCREF(obj);
5704 return Py_BuildValue((char *)"");
5705 }
5706 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxStopWatch *result;
5709 char *kwnames[] = {
5710 NULL
5711 };
5712
5713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5714 {
5715 PyThreadState* __tstate = wxPyBeginAllowThreads();
5716 result = (wxStopWatch *)new wxStopWatch();
5717
5718 wxPyEndAllowThreads(__tstate);
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5722 return resultobj;
5723 fail:
5724 return NULL;
5725 }
5726
5727
5728 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
5729 PyObject *resultobj;
5730 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5731 long arg2 = (long) 0 ;
5732 PyObject * obj0 = 0 ;
5733 PyObject * obj1 = 0 ;
5734 char *kwnames[] = {
5735 (char *) "self",(char *) "t0", NULL
5736 };
5737
5738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5741 if (obj1) {
5742 arg2 = (long)SWIG_As_long(obj1);
5743 if (PyErr_Occurred()) SWIG_fail;
5744 }
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 (arg1)->Start(arg2);
5748
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 Py_INCREF(Py_None); resultobj = Py_None;
5753 return resultobj;
5754 fail:
5755 return NULL;
5756 }
5757
5758
5759 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
5760 PyObject *resultobj;
5761 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5762 PyObject * obj0 = 0 ;
5763 char *kwnames[] = {
5764 (char *) "self", NULL
5765 };
5766
5767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5770 {
5771 PyThreadState* __tstate = wxPyBeginAllowThreads();
5772 (arg1)->Pause();
5773
5774 wxPyEndAllowThreads(__tstate);
5775 if (PyErr_Occurred()) SWIG_fail;
5776 }
5777 Py_INCREF(Py_None); resultobj = Py_None;
5778 return resultobj;
5779 fail:
5780 return NULL;
5781 }
5782
5783
5784 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
5785 PyObject *resultobj;
5786 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5787 PyObject * obj0 = 0 ;
5788 char *kwnames[] = {
5789 (char *) "self", NULL
5790 };
5791
5792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5795 {
5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
5797 (arg1)->Resume();
5798
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 Py_INCREF(Py_None); resultobj = Py_None;
5803 return resultobj;
5804 fail:
5805 return NULL;
5806 }
5807
5808
5809 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj;
5811 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5812 long result;
5813 PyObject * obj0 = 0 ;
5814 char *kwnames[] = {
5815 (char *) "self", NULL
5816 };
5817
5818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5821 {
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 result = (long)((wxStopWatch const *)arg1)->Time();
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_From_long((long)result);
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
5836 PyObject *obj;
5837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5838 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5839 Py_INCREF(obj);
5840 return Py_BuildValue((char *)"");
5841 }
5842 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 int arg1 = (int) 9 ;
5845 int arg2 = (int) wxID_FILE1 ;
5846 wxFileHistory *result;
5847 PyObject * obj0 = 0 ;
5848 PyObject * obj1 = 0 ;
5849 char *kwnames[] = {
5850 (char *) "maxFiles",(char *) "idBase", NULL
5851 };
5852
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5854 if (obj0) {
5855 arg1 = (int)SWIG_As_int(obj0);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 if (obj1) {
5859 arg2 = (int)SWIG_As_int(obj1);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 {
5863 PyThreadState* __tstate = wxPyBeginAllowThreads();
5864 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5865
5866 wxPyEndAllowThreads(__tstate);
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5870 return resultobj;
5871 fail:
5872 return NULL;
5873 }
5874
5875
5876 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj;
5878 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5879 PyObject * obj0 = 0 ;
5880 char *kwnames[] = {
5881 (char *) "self", NULL
5882 };
5883
5884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5887 {
5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
5889 delete arg1;
5890
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 Py_INCREF(Py_None); resultobj = Py_None;
5895 return resultobj;
5896 fail:
5897 return NULL;
5898 }
5899
5900
5901 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5902 PyObject *resultobj;
5903 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5904 wxString *arg2 = 0 ;
5905 bool temp2 = false ;
5906 PyObject * obj0 = 0 ;
5907 PyObject * obj1 = 0 ;
5908 char *kwnames[] = {
5909 (char *) "self",(char *) "file", NULL
5910 };
5911
5912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5915 {
5916 arg2 = wxString_in_helper(obj1);
5917 if (arg2 == NULL) SWIG_fail;
5918 temp2 = true;
5919 }
5920 {
5921 PyThreadState* __tstate = wxPyBeginAllowThreads();
5922 (arg1)->AddFileToHistory((wxString const &)*arg2);
5923
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 Py_INCREF(Py_None); resultobj = Py_None;
5928 {
5929 if (temp2)
5930 delete arg2;
5931 }
5932 return resultobj;
5933 fail:
5934 {
5935 if (temp2)
5936 delete arg2;
5937 }
5938 return NULL;
5939 }
5940
5941
5942 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5943 PyObject *resultobj;
5944 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5945 int arg2 ;
5946 PyObject * obj0 = 0 ;
5947 PyObject * obj1 = 0 ;
5948 char *kwnames[] = {
5949 (char *) "self",(char *) "i", NULL
5950 };
5951
5952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5955 arg2 = (int)SWIG_As_int(obj1);
5956 if (PyErr_Occurred()) SWIG_fail;
5957 {
5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
5959 (arg1)->RemoveFileFromHistory(arg2);
5960
5961 wxPyEndAllowThreads(__tstate);
5962 if (PyErr_Occurred()) SWIG_fail;
5963 }
5964 Py_INCREF(Py_None); resultobj = Py_None;
5965 return resultobj;
5966 fail:
5967 return NULL;
5968 }
5969
5970
5971 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
5972 PyObject *resultobj;
5973 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5974 int result;
5975 PyObject * obj0 = 0 ;
5976 char *kwnames[] = {
5977 (char *) "self", NULL
5978 };
5979
5980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5983 {
5984 PyThreadState* __tstate = wxPyBeginAllowThreads();
5985 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5986
5987 wxPyEndAllowThreads(__tstate);
5988 if (PyErr_Occurred()) SWIG_fail;
5989 }
5990 resultobj = SWIG_From_int((int)result);
5991 return resultobj;
5992 fail:
5993 return NULL;
5994 }
5995
5996
5997 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5998 PyObject *resultobj;
5999 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6000 wxMenu *arg2 = (wxMenu *) 0 ;
6001 PyObject * obj0 = 0 ;
6002 PyObject * obj1 = 0 ;
6003 char *kwnames[] = {
6004 (char *) "self",(char *) "menu", NULL
6005 };
6006
6007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
6008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6010 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 (arg1)->UseMenu(arg2);
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 Py_INCREF(Py_None); resultobj = Py_None;
6020 return resultobj;
6021 fail:
6022 return NULL;
6023 }
6024
6025
6026 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6027 PyObject *resultobj;
6028 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6029 wxMenu *arg2 = (wxMenu *) 0 ;
6030 PyObject * obj0 = 0 ;
6031 PyObject * obj1 = 0 ;
6032 char *kwnames[] = {
6033 (char *) "self",(char *) "menu", NULL
6034 };
6035
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
6037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6039 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6041 {
6042 PyThreadState* __tstate = wxPyBeginAllowThreads();
6043 (arg1)->RemoveMenu(arg2);
6044
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 Py_INCREF(Py_None); resultobj = Py_None;
6049 return resultobj;
6050 fail:
6051 return NULL;
6052 }
6053
6054
6055 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
6056 PyObject *resultobj;
6057 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6058 wxConfigBase *arg2 = 0 ;
6059 PyObject * obj0 = 0 ;
6060 PyObject * obj1 = 0 ;
6061 char *kwnames[] = {
6062 (char *) "self",(char *) "config", NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
6066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6069 SWIG_POINTER_EXCEPTION | 0)) == -1)
6070 SWIG_fail;
6071 if (arg2 == NULL) {
6072 PyErr_SetString(PyExc_TypeError,"null reference");
6073 SWIG_fail;
6074 }
6075 {
6076 PyThreadState* __tstate = wxPyBeginAllowThreads();
6077 (arg1)->Load(*arg2);
6078
6079 wxPyEndAllowThreads(__tstate);
6080 if (PyErr_Occurred()) SWIG_fail;
6081 }
6082 Py_INCREF(Py_None); resultobj = Py_None;
6083 return resultobj;
6084 fail:
6085 return NULL;
6086 }
6087
6088
6089 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
6090 PyObject *resultobj;
6091 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6092 wxConfigBase *arg2 = 0 ;
6093 PyObject * obj0 = 0 ;
6094 PyObject * obj1 = 0 ;
6095 char *kwnames[] = {
6096 (char *) "self",(char *) "config", NULL
6097 };
6098
6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
6100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6103 SWIG_POINTER_EXCEPTION | 0)) == -1)
6104 SWIG_fail;
6105 if (arg2 == NULL) {
6106 PyErr_SetString(PyExc_TypeError,"null reference");
6107 SWIG_fail;
6108 }
6109 {
6110 PyThreadState* __tstate = wxPyBeginAllowThreads();
6111 (arg1)->Save(*arg2);
6112
6113 wxPyEndAllowThreads(__tstate);
6114 if (PyErr_Occurred()) SWIG_fail;
6115 }
6116 Py_INCREF(Py_None); resultobj = Py_None;
6117 return resultobj;
6118 fail:
6119 return NULL;
6120 }
6121
6122
6123 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6124 PyObject *resultobj;
6125 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6126 PyObject * obj0 = 0 ;
6127 char *kwnames[] = {
6128 (char *) "self", NULL
6129 };
6130
6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
6132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 (arg1)->AddFilesToMenu();
6137
6138 wxPyEndAllowThreads(__tstate);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 }
6141 Py_INCREF(Py_None); resultobj = Py_None;
6142 return resultobj;
6143 fail:
6144 return NULL;
6145 }
6146
6147
6148 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj;
6150 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6151 wxMenu *arg2 = (wxMenu *) 0 ;
6152 PyObject * obj0 = 0 ;
6153 PyObject * obj1 = 0 ;
6154 char *kwnames[] = {
6155 (char *) "self",(char *) "menu", NULL
6156 };
6157
6158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6163 {
6164 PyThreadState* __tstate = wxPyBeginAllowThreads();
6165 (arg1)->AddFilesToMenu(arg2);
6166
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 Py_INCREF(Py_None); resultobj = Py_None;
6171 return resultobj;
6172 fail:
6173 return NULL;
6174 }
6175
6176
6177 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
6178 PyObject *resultobj;
6179 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6180 int arg2 ;
6181 wxString result;
6182 PyObject * obj0 = 0 ;
6183 PyObject * obj1 = 0 ;
6184 char *kwnames[] = {
6185 (char *) "self",(char *) "i", NULL
6186 };
6187
6188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6191 arg2 = (int)SWIG_As_int(obj1);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 {
6194 PyThreadState* __tstate = wxPyBeginAllowThreads();
6195 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6196
6197 wxPyEndAllowThreads(__tstate);
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 {
6201 #if wxUSE_UNICODE
6202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6203 #else
6204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6205 #endif
6206 }
6207 return resultobj;
6208 fail:
6209 return NULL;
6210 }
6211
6212
6213 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
6214 PyObject *resultobj;
6215 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6216 int result;
6217 PyObject * obj0 = 0 ;
6218 char *kwnames[] = {
6219 (char *) "self", NULL
6220 };
6221
6222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6225 {
6226 PyThreadState* __tstate = wxPyBeginAllowThreads();
6227 result = (int)((wxFileHistory const *)arg1)->GetCount();
6228
6229 wxPyEndAllowThreads(__tstate);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 resultobj = SWIG_From_int((int)result);
6233 return resultobj;
6234 fail:
6235 return NULL;
6236 }
6237
6238
6239 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
6240 PyObject *obj;
6241 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6242 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6243 Py_INCREF(obj);
6244 return Py_BuildValue((char *)"");
6245 }
6246 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6247 PyObject *resultobj;
6248 wxString *arg1 = 0 ;
6249 wxString const &arg2_defvalue = wxPyEmptyString ;
6250 wxString *arg2 = (wxString *) &arg2_defvalue ;
6251 wxSingleInstanceChecker *result;
6252 bool temp1 = false ;
6253 bool temp2 = false ;
6254 PyObject * obj0 = 0 ;
6255 PyObject * obj1 = 0 ;
6256 char *kwnames[] = {
6257 (char *) "name",(char *) "path", NULL
6258 };
6259
6260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6261 {
6262 arg1 = wxString_in_helper(obj0);
6263 if (arg1 == NULL) SWIG_fail;
6264 temp1 = true;
6265 }
6266 if (obj1) {
6267 {
6268 arg2 = wxString_in_helper(obj1);
6269 if (arg2 == NULL) SWIG_fail;
6270 temp2 = true;
6271 }
6272 }
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6276
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6281 {
6282 if (temp1)
6283 delete arg1;
6284 }
6285 {
6286 if (temp2)
6287 delete arg2;
6288 }
6289 return resultobj;
6290 fail:
6291 {
6292 if (temp1)
6293 delete arg1;
6294 }
6295 {
6296 if (temp2)
6297 delete arg2;
6298 }
6299 return NULL;
6300 }
6301
6302
6303 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj;
6305 wxSingleInstanceChecker *result;
6306 char *kwnames[] = {
6307 NULL
6308 };
6309
6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6319 return resultobj;
6320 fail:
6321 return NULL;
6322 }
6323
6324
6325 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6326 PyObject *resultobj;
6327 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6328 PyObject * obj0 = 0 ;
6329 char *kwnames[] = {
6330 (char *) "self", NULL
6331 };
6332
6333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 delete arg1;
6339
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 Py_INCREF(Py_None); resultobj = Py_None;
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj;
6352 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6353 wxString *arg2 = 0 ;
6354 wxString const &arg3_defvalue = wxPyEmptyString ;
6355 wxString *arg3 = (wxString *) &arg3_defvalue ;
6356 bool result;
6357 bool temp2 = false ;
6358 bool temp3 = false ;
6359 PyObject * obj0 = 0 ;
6360 PyObject * obj1 = 0 ;
6361 PyObject * obj2 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "self",(char *) "name",(char *) "path", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6369 {
6370 arg2 = wxString_in_helper(obj1);
6371 if (arg2 == NULL) SWIG_fail;
6372 temp2 = true;
6373 }
6374 if (obj2) {
6375 {
6376 arg3 = wxString_in_helper(obj2);
6377 if (arg3 == NULL) SWIG_fail;
6378 temp3 = true;
6379 }
6380 }
6381 {
6382 PyThreadState* __tstate = wxPyBeginAllowThreads();
6383 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6384
6385 wxPyEndAllowThreads(__tstate);
6386 if (PyErr_Occurred()) SWIG_fail;
6387 }
6388 {
6389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6390 }
6391 {
6392 if (temp2)
6393 delete arg2;
6394 }
6395 {
6396 if (temp3)
6397 delete arg3;
6398 }
6399 return resultobj;
6400 fail:
6401 {
6402 if (temp2)
6403 delete arg2;
6404 }
6405 {
6406 if (temp3)
6407 delete arg3;
6408 }
6409 return NULL;
6410 }
6411
6412
6413 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj;
6415 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6416 bool result;
6417 PyObject * obj0 = 0 ;
6418 char *kwnames[] = {
6419 (char *) "self", NULL
6420 };
6421
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 {
6433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6434 }
6435 return resultobj;
6436 fail:
6437 return NULL;
6438 }
6439
6440
6441 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
6442 PyObject *obj;
6443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6444 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6445 Py_INCREF(obj);
6446 return Py_BuildValue((char *)"");
6447 }
6448 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
6449 PyObject *resultobj;
6450 wxWindow *arg1 = (wxWindow *) 0 ;
6451 wxDC *arg2 = 0 ;
6452 int arg3 ;
6453 PyObject * obj0 = 0 ;
6454 PyObject * obj1 = 0 ;
6455 PyObject * obj2 = 0 ;
6456 char *kwnames[] = {
6457 (char *) "window",(char *) "dc",(char *) "method", NULL
6458 };
6459
6460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6464 SWIG_POINTER_EXCEPTION | 0)) == -1)
6465 SWIG_fail;
6466 if (arg2 == NULL) {
6467 PyErr_SetString(PyExc_TypeError,"null reference");
6468 SWIG_fail;
6469 }
6470 arg3 = (int)SWIG_As_int(obj2);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 {
6473 PyThreadState* __tstate = wxPyBeginAllowThreads();
6474 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6475
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 }
6479 Py_INCREF(Py_None); resultobj = Py_None;
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6487 PyObject *resultobj;
6488 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6489 PyObject * obj0 = 0 ;
6490 char *kwnames[] = {
6491 (char *) "self", NULL
6492 };
6493
6494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6497 {
6498 PyThreadState* __tstate = wxPyBeginAllowThreads();
6499 delete arg1;
6500
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 Py_INCREF(Py_None); resultobj = Py_None;
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
6512 PyObject *resultobj;
6513 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6514 wxString result;
6515 PyObject * obj0 = 0 ;
6516 char *kwnames[] = {
6517 (char *) "self", NULL
6518 };
6519
6520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6523 {
6524 PyThreadState* __tstate = wxPyBeginAllowThreads();
6525 result = (arg1)->GetTip();
6526
6527 wxPyEndAllowThreads(__tstate);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 {
6531 #if wxUSE_UNICODE
6532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6533 #else
6534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6535 #endif
6536 }
6537 return resultobj;
6538 fail:
6539 return NULL;
6540 }
6541
6542
6543 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
6544 PyObject *resultobj;
6545 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6546 size_t result;
6547 PyObject * obj0 = 0 ;
6548 char *kwnames[] = {
6549 (char *) "self", NULL
6550 };
6551
6552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6555 {
6556 PyThreadState* __tstate = wxPyBeginAllowThreads();
6557 result = (size_t)(arg1)->GetCurrentTip();
6558
6559 wxPyEndAllowThreads(__tstate);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
6563 return resultobj;
6564 fail:
6565 return NULL;
6566 }
6567
6568
6569 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
6570 PyObject *resultobj;
6571 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6572 wxString *arg2 = 0 ;
6573 wxString result;
6574 bool temp2 = false ;
6575 PyObject * obj0 = 0 ;
6576 PyObject * obj1 = 0 ;
6577 char *kwnames[] = {
6578 (char *) "self",(char *) "tip", NULL
6579 };
6580
6581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6584 {
6585 arg2 = wxString_in_helper(obj1);
6586 if (arg2 == NULL) SWIG_fail;
6587 temp2 = true;
6588 }
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 {
6597 #if wxUSE_UNICODE
6598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6599 #else
6600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6601 #endif
6602 }
6603 {
6604 if (temp2)
6605 delete arg2;
6606 }
6607 return resultobj;
6608 fail:
6609 {
6610 if (temp2)
6611 delete arg2;
6612 }
6613 return NULL;
6614 }
6615
6616
6617 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
6618 PyObject *obj;
6619 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6620 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6621 Py_INCREF(obj);
6622 return Py_BuildValue((char *)"");
6623 }
6624 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6625 PyObject *resultobj;
6626 size_t arg1 ;
6627 wxPyTipProvider *result;
6628 PyObject * obj0 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "currentTip", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6634 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 {
6637 PyThreadState* __tstate = wxPyBeginAllowThreads();
6638 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6639
6640 wxPyEndAllowThreads(__tstate);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj;
6652 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6653 PyObject *arg2 = (PyObject *) 0 ;
6654 PyObject *arg3 = (PyObject *) 0 ;
6655 PyObject * obj0 = 0 ;
6656 PyObject * obj1 = 0 ;
6657 PyObject * obj2 = 0 ;
6658 char *kwnames[] = {
6659 (char *) "self",(char *) "self",(char *) "_class", NULL
6660 };
6661
6662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6665 arg2 = obj1;
6666 arg3 = obj2;
6667 {
6668 PyThreadState* __tstate = wxPyBeginAllowThreads();
6669 (arg1)->_setCallbackInfo(arg2,arg3);
6670
6671 wxPyEndAllowThreads(__tstate);
6672 if (PyErr_Occurred()) SWIG_fail;
6673 }
6674 Py_INCREF(Py_None); resultobj = Py_None;
6675 return resultobj;
6676 fail:
6677 return NULL;
6678 }
6679
6680
6681 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
6682 PyObject *obj;
6683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6684 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6685 Py_INCREF(obj);
6686 return Py_BuildValue((char *)"");
6687 }
6688 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj;
6690 wxWindow *arg1 = (wxWindow *) 0 ;
6691 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6692 bool arg3 = (bool) true ;
6693 bool result;
6694 PyObject * obj0 = 0 ;
6695 PyObject * obj1 = 0 ;
6696 PyObject * obj2 = 0 ;
6697 char *kwnames[] = {
6698 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6699 };
6700
6701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6704 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6706 if (obj2) {
6707 arg3 = (bool)SWIG_As_bool(obj2);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 {
6711 if (!wxPyCheckForApp()) SWIG_fail;
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 result = (bool)wxShowTip(arg1,arg2,arg3);
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
6718 {
6719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6720 }
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxString *arg1 = 0 ;
6730 size_t arg2 ;
6731 wxTipProvider *result;
6732 bool temp1 = false ;
6733 PyObject * obj0 = 0 ;
6734 PyObject * obj1 = 0 ;
6735 char *kwnames[] = {
6736 (char *) "filename",(char *) "currentTip", NULL
6737 };
6738
6739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6740 {
6741 arg1 = wxString_in_helper(obj0);
6742 if (arg1 == NULL) SWIG_fail;
6743 temp1 = true;
6744 }
6745 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
6746 if (PyErr_Occurred()) SWIG_fail;
6747 {
6748 if (!wxPyCheckForApp()) SWIG_fail;
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6751
6752 wxPyEndAllowThreads(__tstate);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6756 {
6757 if (temp1)
6758 delete arg1;
6759 }
6760 return resultobj;
6761 fail:
6762 {
6763 if (temp1)
6764 delete arg1;
6765 }
6766 return NULL;
6767 }
6768
6769
6770 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj;
6772 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6773 int arg2 = (int) -1 ;
6774 wxPyTimer *result;
6775 PyObject * obj0 = 0 ;
6776 PyObject * obj1 = 0 ;
6777 char *kwnames[] = {
6778 (char *) "owner",(char *) "id", NULL
6779 };
6780
6781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6782 if (obj0) {
6783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6785 }
6786 if (obj1) {
6787 arg2 = (int)SWIG_As_int(obj1);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 {
6791 if (!wxPyCheckForApp()) SWIG_fail;
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6794
6795 wxPyEndAllowThreads(__tstate);
6796 if (PyErr_Occurred()) SWIG_fail;
6797 }
6798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj;
6807 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6808 PyObject * obj0 = 0 ;
6809 char *kwnames[] = {
6810 (char *) "self", NULL
6811 };
6812
6813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6816 {
6817 PyThreadState* __tstate = wxPyBeginAllowThreads();
6818 delete arg1;
6819
6820 wxPyEndAllowThreads(__tstate);
6821 if (PyErr_Occurred()) SWIG_fail;
6822 }
6823 Py_INCREF(Py_None); resultobj = Py_None;
6824 return resultobj;
6825 fail:
6826 return NULL;
6827 }
6828
6829
6830 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6831 PyObject *resultobj;
6832 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6833 PyObject *arg2 = (PyObject *) 0 ;
6834 PyObject *arg3 = (PyObject *) 0 ;
6835 int arg4 = (int) 1 ;
6836 PyObject * obj0 = 0 ;
6837 PyObject * obj1 = 0 ;
6838 PyObject * obj2 = 0 ;
6839 PyObject * obj3 = 0 ;
6840 char *kwnames[] = {
6841 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6842 };
6843
6844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6847 arg2 = obj1;
6848 arg3 = obj2;
6849 if (obj3) {
6850 arg4 = (int)SWIG_As_int(obj3);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 {
6854 PyThreadState* __tstate = wxPyBeginAllowThreads();
6855 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6856
6857 wxPyEndAllowThreads(__tstate);
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 Py_INCREF(Py_None); resultobj = Py_None;
6861 return resultobj;
6862 fail:
6863 return NULL;
6864 }
6865
6866
6867 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6868 PyObject *resultobj;
6869 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6870 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6871 int arg3 = (int) -1 ;
6872 PyObject * obj0 = 0 ;
6873 PyObject * obj1 = 0 ;
6874 PyObject * obj2 = 0 ;
6875 char *kwnames[] = {
6876 (char *) "self",(char *) "owner",(char *) "id", NULL
6877 };
6878
6879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6884 if (obj2) {
6885 arg3 = (int)SWIG_As_int(obj2);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 }
6888 {
6889 PyThreadState* __tstate = wxPyBeginAllowThreads();
6890 (arg1)->SetOwner(arg2,arg3);
6891
6892 wxPyEndAllowThreads(__tstate);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 Py_INCREF(Py_None); resultobj = Py_None;
6896 return resultobj;
6897 fail:
6898 return NULL;
6899 }
6900
6901
6902 static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6903 PyObject *resultobj;
6904 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6905 wxEvtHandler *result;
6906 PyObject * obj0 = 0 ;
6907 char *kwnames[] = {
6908 (char *) "self", NULL
6909 };
6910
6911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6914 {
6915 PyThreadState* __tstate = wxPyBeginAllowThreads();
6916 result = (wxEvtHandler *)(arg1)->GetOwner();
6917
6918 wxPyEndAllowThreads(__tstate);
6919 if (PyErr_Occurred()) SWIG_fail;
6920 }
6921 {
6922 resultobj = wxPyMake_wxObject(result, 0);
6923 }
6924 return resultobj;
6925 fail:
6926 return NULL;
6927 }
6928
6929
6930 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
6931 PyObject *resultobj;
6932 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6933 int arg2 = (int) -1 ;
6934 bool arg3 = (bool) false ;
6935 bool result;
6936 PyObject * obj0 = 0 ;
6937 PyObject * obj1 = 0 ;
6938 PyObject * obj2 = 0 ;
6939 char *kwnames[] = {
6940 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6941 };
6942
6943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6946 if (obj1) {
6947 arg2 = (int)SWIG_As_int(obj1);
6948 if (PyErr_Occurred()) SWIG_fail;
6949 }
6950 if (obj2) {
6951 arg3 = (bool)SWIG_As_bool(obj2);
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 {
6955 PyThreadState* __tstate = wxPyBeginAllowThreads();
6956 result = (bool)(arg1)->Start(arg2,arg3);
6957
6958 wxPyEndAllowThreads(__tstate);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 {
6962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6963 }
6964 return resultobj;
6965 fail:
6966 return NULL;
6967 }
6968
6969
6970 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
6971 PyObject *resultobj;
6972 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6973 PyObject * obj0 = 0 ;
6974 char *kwnames[] = {
6975 (char *) "self", NULL
6976 };
6977
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6981 {
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 (arg1)->Stop();
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 Py_INCREF(Py_None); resultobj = Py_None;
6989 return resultobj;
6990 fail:
6991 return NULL;
6992 }
6993
6994
6995 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6996 PyObject *resultobj;
6997 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6998 bool result;
6999 PyObject * obj0 = 0 ;
7000 char *kwnames[] = {
7001 (char *) "self", NULL
7002 };
7003
7004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
7005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
7010
7011 wxPyEndAllowThreads(__tstate);
7012 if (PyErr_Occurred()) SWIG_fail;
7013 }
7014 {
7015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7016 }
7017 return resultobj;
7018 fail:
7019 return NULL;
7020 }
7021
7022
7023 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7024 PyObject *resultobj;
7025 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7026 int result;
7027 PyObject * obj0 = 0 ;
7028 char *kwnames[] = {
7029 (char *) "self", NULL
7030 };
7031
7032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
7033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7035 {
7036 PyThreadState* __tstate = wxPyBeginAllowThreads();
7037 result = (int)((wxPyTimer const *)arg1)->GetInterval();
7038
7039 wxPyEndAllowThreads(__tstate);
7040 if (PyErr_Occurred()) SWIG_fail;
7041 }
7042 resultobj = SWIG_From_int((int)result);
7043 return resultobj;
7044 fail:
7045 return NULL;
7046 }
7047
7048
7049 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj;
7051 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7052 bool result;
7053 PyObject * obj0 = 0 ;
7054 char *kwnames[] = {
7055 (char *) "self", NULL
7056 };
7057
7058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
7059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7061 {
7062 PyThreadState* __tstate = wxPyBeginAllowThreads();
7063 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
7064
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 {
7069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7070 }
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj;
7079 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7080 int result;
7081 PyObject * obj0 = 0 ;
7082 char *kwnames[] = {
7083 (char *) "self", NULL
7084 };
7085
7086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
7087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 result = (int)((wxPyTimer const *)arg1)->GetId();
7092
7093 wxPyEndAllowThreads(__tstate);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 resultobj = SWIG_From_int((int)result);
7097 return resultobj;
7098 fail:
7099 return NULL;
7100 }
7101
7102
7103 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
7104 PyObject *obj;
7105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7106 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
7107 Py_INCREF(obj);
7108 return Py_BuildValue((char *)"");
7109 }
7110 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj;
7112 int arg1 = (int) 0 ;
7113 int arg2 = (int) 0 ;
7114 wxTimerEvent *result;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 char *kwnames[] = {
7118 (char *) "timerid",(char *) "interval", NULL
7119 };
7120
7121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
7122 if (obj0) {
7123 arg1 = (int)SWIG_As_int(obj0);
7124 if (PyErr_Occurred()) SWIG_fail;
7125 }
7126 if (obj1) {
7127 arg2 = (int)SWIG_As_int(obj1);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 {
7131 PyThreadState* __tstate = wxPyBeginAllowThreads();
7132 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
7133
7134 wxPyEndAllowThreads(__tstate);
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj;
7146 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
7147 int result;
7148 PyObject * obj0 = 0 ;
7149 char *kwnames[] = {
7150 (char *) "self", NULL
7151 };
7152
7153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7159
7160 wxPyEndAllowThreads(__tstate);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 resultobj = SWIG_From_int((int)result);
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
7171 PyObject *obj;
7172 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7173 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7174 Py_INCREF(obj);
7175 return Py_BuildValue((char *)"");
7176 }
7177 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
7178 PyObject *resultobj;
7179 wxTimer *arg1 = 0 ;
7180 wxTimerRunner *result;
7181 PyObject * obj0 = 0 ;
7182
7183 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7185 SWIG_POINTER_EXCEPTION | 0)) == -1)
7186 SWIG_fail;
7187 if (arg1 == NULL) {
7188 PyErr_SetString(PyExc_TypeError,"null reference");
7189 SWIG_fail;
7190 }
7191 {
7192 if (!wxPyCheckForApp()) SWIG_fail;
7193 PyThreadState* __tstate = wxPyBeginAllowThreads();
7194 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7195
7196 wxPyEndAllowThreads(__tstate);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
7207 PyObject *resultobj;
7208 wxTimer *arg1 = 0 ;
7209 int arg2 ;
7210 bool arg3 = (bool) false ;
7211 wxTimerRunner *result;
7212 PyObject * obj0 = 0 ;
7213 PyObject * obj1 = 0 ;
7214 PyObject * obj2 = 0 ;
7215
7216 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7218 SWIG_POINTER_EXCEPTION | 0)) == -1)
7219 SWIG_fail;
7220 if (arg1 == NULL) {
7221 PyErr_SetString(PyExc_TypeError,"null reference");
7222 SWIG_fail;
7223 }
7224 arg2 = (int)SWIG_As_int(obj1);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 if (obj2) {
7227 arg3 = (bool)SWIG_As_bool(obj2);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 {
7231 if (!wxPyCheckForApp()) SWIG_fail;
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7239 return resultobj;
7240 fail:
7241 return NULL;
7242 }
7243
7244
7245 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7246 int argc;
7247 PyObject *argv[4];
7248 int ii;
7249
7250 argc = PyObject_Length(args);
7251 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7252 argv[ii] = PyTuple_GetItem(args,ii);
7253 }
7254 if (argc == 1) {
7255 int _v;
7256 {
7257 void *ptr;
7258 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7259 _v = 0;
7260 PyErr_Clear();
7261 } else {
7262 _v = 1;
7263 }
7264 }
7265 if (_v) {
7266 return _wrap_new_TimerRunner__SWIG_0(self,args);
7267 }
7268 }
7269 if ((argc >= 2) && (argc <= 3)) {
7270 int _v;
7271 {
7272 void *ptr;
7273 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7274 _v = 0;
7275 PyErr_Clear();
7276 } else {
7277 _v = 1;
7278 }
7279 }
7280 if (_v) {
7281 _v = SWIG_Check_int(argv[1]);
7282 if (_v) {
7283 if (argc <= 2) {
7284 return _wrap_new_TimerRunner__SWIG_1(self,args);
7285 }
7286 _v = SWIG_Check_bool(argv[2]);
7287 if (_v) {
7288 return _wrap_new_TimerRunner__SWIG_1(self,args);
7289 }
7290 }
7291 }
7292 }
7293
7294 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7295 return NULL;
7296 }
7297
7298
7299 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
7300 PyObject *resultobj;
7301 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7302 PyObject * obj0 = 0 ;
7303 char *kwnames[] = {
7304 (char *) "self", NULL
7305 };
7306
7307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7310 {
7311 PyThreadState* __tstate = wxPyBeginAllowThreads();
7312 delete arg1;
7313
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 Py_INCREF(Py_None); resultobj = Py_None;
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj;
7326 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7327 int arg2 ;
7328 bool arg3 = (bool) false ;
7329 PyObject * obj0 = 0 ;
7330 PyObject * obj1 = 0 ;
7331 PyObject * obj2 = 0 ;
7332 char *kwnames[] = {
7333 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7334 };
7335
7336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7339 arg2 = (int)SWIG_As_int(obj1);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 if (obj2) {
7342 arg3 = (bool)SWIG_As_bool(obj2);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 (arg1)->Start(arg2,arg3);
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
7352 Py_INCREF(Py_None); resultobj = Py_None;
7353 return resultobj;
7354 fail:
7355 return NULL;
7356 }
7357
7358
7359 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
7360 PyObject *obj;
7361 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7362 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7363 Py_INCREF(obj);
7364 return Py_BuildValue((char *)"");
7365 }
7366 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
7367 PyObject *resultobj;
7368 wxLog *result;
7369 char *kwnames[] = {
7370 NULL
7371 };
7372
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7374 {
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 result = (wxLog *)new wxLog();
7377
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7382 return resultobj;
7383 fail:
7384 return NULL;
7385 }
7386
7387
7388 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj;
7390 bool result;
7391 char *kwnames[] = {
7392 NULL
7393 };
7394
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 result = (bool)wxLog::IsEnabled();
7399
7400 wxPyEndAllowThreads(__tstate);
7401 if (PyErr_Occurred()) SWIG_fail;
7402 }
7403 {
7404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7405 }
7406 return resultobj;
7407 fail:
7408 return NULL;
7409 }
7410
7411
7412 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
7413 PyObject *resultobj;
7414 bool arg1 = (bool) true ;
7415 bool result;
7416 PyObject * obj0 = 0 ;
7417 char *kwnames[] = {
7418 (char *) "doIt", NULL
7419 };
7420
7421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7422 if (obj0) {
7423 arg1 = (bool)SWIG_As_bool(obj0);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 {
7427 PyThreadState* __tstate = wxPyBeginAllowThreads();
7428 result = (bool)wxLog::EnableLogging(arg1);
7429
7430 wxPyEndAllowThreads(__tstate);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 {
7434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7435 }
7436 return resultobj;
7437 fail:
7438 return NULL;
7439 }
7440
7441
7442 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj;
7444 wxLogLevel arg1 ;
7445 wxChar *arg2 = (wxChar *) 0 ;
7446 time_t arg3 ;
7447 PyObject * obj0 = 0 ;
7448 PyObject * obj1 = 0 ;
7449 PyObject * obj2 = 0 ;
7450 char *kwnames[] = {
7451 (char *) "level",(char *) "szString",(char *) "t", NULL
7452 };
7453
7454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7455 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7459 arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2);
7460 if (PyErr_Occurred()) SWIG_fail;
7461 {
7462 PyThreadState* __tstate = wxPyBeginAllowThreads();
7463 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7464
7465 wxPyEndAllowThreads(__tstate);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
7468 Py_INCREF(Py_None); resultobj = Py_None;
7469 return resultobj;
7470 fail:
7471 return NULL;
7472 }
7473
7474
7475 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
7476 PyObject *resultobj;
7477 wxLog *arg1 = (wxLog *) 0 ;
7478 PyObject * obj0 = 0 ;
7479 char *kwnames[] = {
7480 (char *) "self", NULL
7481 };
7482
7483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7486 {
7487 PyThreadState* __tstate = wxPyBeginAllowThreads();
7488 (arg1)->Flush();
7489
7490 wxPyEndAllowThreads(__tstate);
7491 if (PyErr_Occurred()) SWIG_fail;
7492 }
7493 Py_INCREF(Py_None); resultobj = Py_None;
7494 return resultobj;
7495 fail:
7496 return NULL;
7497 }
7498
7499
7500 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
7501 PyObject *resultobj;
7502 char *kwnames[] = {
7503 NULL
7504 };
7505
7506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7507 {
7508 PyThreadState* __tstate = wxPyBeginAllowThreads();
7509 wxLog::FlushActive();
7510
7511 wxPyEndAllowThreads(__tstate);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 Py_INCREF(Py_None); resultobj = Py_None;
7515 return resultobj;
7516 fail:
7517 return NULL;
7518 }
7519
7520
7521 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj;
7523 wxLog *result;
7524 char *kwnames[] = {
7525 NULL
7526 };
7527
7528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7529 {
7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
7531 result = (wxLog *)wxLog::GetActiveTarget();
7532
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7537 return resultobj;
7538 fail:
7539 return NULL;
7540 }
7541
7542
7543 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7544 PyObject *resultobj;
7545 wxLog *arg1 = (wxLog *) 0 ;
7546 wxLog *result;
7547 PyObject * obj0 = 0 ;
7548 char *kwnames[] = {
7549 (char *) "pLogger", NULL
7550 };
7551
7552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7558
7559 wxPyEndAllowThreads(__tstate);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj;
7571 char *kwnames[] = {
7572 NULL
7573 };
7574
7575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
7578 wxLog::Suspend();
7579
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 Py_INCREF(Py_None); resultobj = Py_None;
7584 return resultobj;
7585 fail:
7586 return NULL;
7587 }
7588
7589
7590 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
7591 PyObject *resultobj;
7592 char *kwnames[] = {
7593 NULL
7594 };
7595
7596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7597 {
7598 PyThreadState* __tstate = wxPyBeginAllowThreads();
7599 wxLog::Resume();
7600
7601 wxPyEndAllowThreads(__tstate);
7602 if (PyErr_Occurred()) SWIG_fail;
7603 }
7604 Py_INCREF(Py_None); resultobj = Py_None;
7605 return resultobj;
7606 fail:
7607 return NULL;
7608 }
7609
7610
7611 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7612 PyObject *resultobj;
7613 bool arg1 = (bool) true ;
7614 PyObject * obj0 = 0 ;
7615 char *kwnames[] = {
7616 (char *) "bVerbose", NULL
7617 };
7618
7619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7620 if (obj0) {
7621 arg1 = (bool)SWIG_As_bool(obj0);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 {
7625 PyThreadState* __tstate = wxPyBeginAllowThreads();
7626 wxLog::SetVerbose(arg1);
7627
7628 wxPyEndAllowThreads(__tstate);
7629 if (PyErr_Occurred()) SWIG_fail;
7630 }
7631 Py_INCREF(Py_None); resultobj = Py_None;
7632 return resultobj;
7633 fail:
7634 return NULL;
7635 }
7636
7637
7638 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7639 PyObject *resultobj;
7640 wxLogLevel arg1 ;
7641 PyObject * obj0 = 0 ;
7642 char *kwnames[] = {
7643 (char *) "logLevel", NULL
7644 };
7645
7646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7647 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7648 if (PyErr_Occurred()) SWIG_fail;
7649 {
7650 PyThreadState* __tstate = wxPyBeginAllowThreads();
7651 wxLog::SetLogLevel(arg1);
7652
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 Py_INCREF(Py_None); resultobj = Py_None;
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
7664 PyObject *resultobj;
7665 char *kwnames[] = {
7666 NULL
7667 };
7668
7669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7670 {
7671 PyThreadState* __tstate = wxPyBeginAllowThreads();
7672 wxLog::DontCreateOnDemand();
7673
7674 wxPyEndAllowThreads(__tstate);
7675 if (PyErr_Occurred()) SWIG_fail;
7676 }
7677 Py_INCREF(Py_None); resultobj = Py_None;
7678 return resultobj;
7679 fail:
7680 return NULL;
7681 }
7682
7683
7684 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj;
7686 wxTraceMask arg1 ;
7687 PyObject * obj0 = 0 ;
7688 char *kwnames[] = {
7689 (char *) "ulMask", NULL
7690 };
7691
7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7693 arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 {
7696 PyThreadState* __tstate = wxPyBeginAllowThreads();
7697 wxLog::SetTraceMask(arg1);
7698
7699 wxPyEndAllowThreads(__tstate);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 Py_INCREF(Py_None); resultobj = Py_None;
7703 return resultobj;
7704 fail:
7705 return NULL;
7706 }
7707
7708
7709 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7710 PyObject *resultobj;
7711 wxString *arg1 = 0 ;
7712 bool temp1 = false ;
7713 PyObject * obj0 = 0 ;
7714 char *kwnames[] = {
7715 (char *) "str", NULL
7716 };
7717
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7719 {
7720 arg1 = wxString_in_helper(obj0);
7721 if (arg1 == NULL) SWIG_fail;
7722 temp1 = true;
7723 }
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 wxLog::AddTraceMask((wxString const &)*arg1);
7727
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 Py_INCREF(Py_None); resultobj = Py_None;
7732 {
7733 if (temp1)
7734 delete arg1;
7735 }
7736 return resultobj;
7737 fail:
7738 {
7739 if (temp1)
7740 delete arg1;
7741 }
7742 return NULL;
7743 }
7744
7745
7746 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj;
7748 wxString *arg1 = 0 ;
7749 bool temp1 = false ;
7750 PyObject * obj0 = 0 ;
7751 char *kwnames[] = {
7752 (char *) "str", NULL
7753 };
7754
7755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7756 {
7757 arg1 = wxString_in_helper(obj0);
7758 if (arg1 == NULL) SWIG_fail;
7759 temp1 = true;
7760 }
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 wxLog::RemoveTraceMask((wxString const &)*arg1);
7764
7765 wxPyEndAllowThreads(__tstate);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 Py_INCREF(Py_None); resultobj = Py_None;
7769 {
7770 if (temp1)
7771 delete arg1;
7772 }
7773 return resultobj;
7774 fail:
7775 {
7776 if (temp1)
7777 delete arg1;
7778 }
7779 return NULL;
7780 }
7781
7782
7783 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj;
7785 char *kwnames[] = {
7786 NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 wxLog::ClearTraceMasks();
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 Py_INCREF(Py_None); resultobj = Py_None;
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj;
7806 wxArrayString *result;
7807 char *kwnames[] = {
7808 NULL
7809 };
7810
7811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 {
7815 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7816 result = (wxArrayString *) &_result_ref;
7817 }
7818
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 {
7823 resultobj = wxArrayString2PyList_helper(*result);
7824 }
7825 return resultobj;
7826 fail:
7827 return NULL;
7828 }
7829
7830
7831 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxChar *arg1 = (wxChar *) 0 ;
7834 PyObject * obj0 = 0 ;
7835 char *kwnames[] = {
7836 (char *) "ts", NULL
7837 };
7838
7839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7842 {
7843 PyThreadState* __tstate = wxPyBeginAllowThreads();
7844 wxLog::SetTimestamp((wxChar const *)arg1);
7845
7846 wxPyEndAllowThreads(__tstate);
7847 if (PyErr_Occurred()) SWIG_fail;
7848 }
7849 Py_INCREF(Py_None); resultobj = Py_None;
7850 return resultobj;
7851 fail:
7852 return NULL;
7853 }
7854
7855
7856 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7857 PyObject *resultobj;
7858 bool result;
7859 char *kwnames[] = {
7860 NULL
7861 };
7862
7863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 result = (bool)wxLog::GetVerbose();
7867
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 {
7872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7873 }
7874 return resultobj;
7875 fail:
7876 return NULL;
7877 }
7878
7879
7880 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7881 PyObject *resultobj;
7882 wxTraceMask result;
7883 char *kwnames[] = {
7884 NULL
7885 };
7886
7887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7888 {
7889 PyThreadState* __tstate = wxPyBeginAllowThreads();
7890 result = (wxTraceMask)wxLog::GetTraceMask();
7891
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7896 return resultobj;
7897 fail:
7898 return NULL;
7899 }
7900
7901
7902 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj;
7904 wxChar *arg1 = (wxChar *) 0 ;
7905 bool result;
7906 PyObject * obj0 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "mask", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 {
7922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7923 }
7924 return resultobj;
7925 fail:
7926 return NULL;
7927 }
7928
7929
7930 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7931 PyObject *resultobj;
7932 wxLogLevel result;
7933 char *kwnames[] = {
7934 NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (wxLogLevel)wxLog::GetLogLevel();
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj;
7954 wxChar *result;
7955 char *kwnames[] = {
7956 NULL
7957 };
7958
7959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7960 {
7961 PyThreadState* __tstate = wxPyBeginAllowThreads();
7962 result = (wxChar *)wxLog::GetTimestamp();
7963
7964 wxPyEndAllowThreads(__tstate);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7968 return resultobj;
7969 fail:
7970 return NULL;
7971 }
7972
7973
7974 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
7975 PyObject *resultobj;
7976 wxString result;
7977 char *kwnames[] = {
7978 NULL
7979 };
7980
7981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = Log_TimeStamp();
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 {
7990 #if wxUSE_UNICODE
7991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7992 #else
7993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7994 #endif
7995 }
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj;
8004 wxLog *arg1 = (wxLog *) 0 ;
8005 PyObject * obj0 = 0 ;
8006 char *kwnames[] = {
8007 (char *) "self", NULL
8008 };
8009
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
8011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8013 {
8014 PyThreadState* __tstate = wxPyBeginAllowThreads();
8015 wxLog_Destroy(arg1);
8016
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 Py_INCREF(Py_None); resultobj = Py_None;
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
8028 PyObject *obj;
8029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8030 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
8031 Py_INCREF(obj);
8032 return Py_BuildValue((char *)"");
8033 }
8034 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
8035 PyObject *resultobj;
8036 wxLogStderr *result;
8037 char *kwnames[] = {
8038 NULL
8039 };
8040
8041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 result = (wxLogStderr *)new wxLogStderr();
8045
8046 wxPyEndAllowThreads(__tstate);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
8057 PyObject *obj;
8058 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8059 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
8060 Py_INCREF(obj);
8061 return Py_BuildValue((char *)"");
8062 }
8063 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8064 PyObject *resultobj;
8065 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8066 wxLogTextCtrl *result;
8067 PyObject * obj0 = 0 ;
8068 char *kwnames[] = {
8069 (char *) "pTextCtrl", NULL
8070 };
8071
8072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
8073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8075 {
8076 PyThreadState* __tstate = wxPyBeginAllowThreads();
8077 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
8078
8079 wxPyEndAllowThreads(__tstate);
8080 if (PyErr_Occurred()) SWIG_fail;
8081 }
8082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
8083 return resultobj;
8084 fail:
8085 return NULL;
8086 }
8087
8088
8089 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
8090 PyObject *obj;
8091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8092 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
8093 Py_INCREF(obj);
8094 return Py_BuildValue((char *)"");
8095 }
8096 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
8097 PyObject *resultobj;
8098 wxLogGui *result;
8099 char *kwnames[] = {
8100 NULL
8101 };
8102
8103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 result = (wxLogGui *)new wxLogGui();
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
8112 return resultobj;
8113 fail:
8114 return NULL;
8115 }
8116
8117
8118 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
8119 PyObject *obj;
8120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8121 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
8122 Py_INCREF(obj);
8123 return Py_BuildValue((char *)"");
8124 }
8125 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
8126 PyObject *resultobj;
8127 wxFrame *arg1 = (wxFrame *) 0 ;
8128 wxString *arg2 = 0 ;
8129 bool arg3 = (bool) true ;
8130 bool arg4 = (bool) true ;
8131 wxLogWindow *result;
8132 bool temp2 = false ;
8133 PyObject * obj0 = 0 ;
8134 PyObject * obj1 = 0 ;
8135 PyObject * obj2 = 0 ;
8136 PyObject * obj3 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8144 {
8145 arg2 = wxString_in_helper(obj1);
8146 if (arg2 == NULL) SWIG_fail;
8147 temp2 = true;
8148 }
8149 if (obj2) {
8150 arg3 = (bool)SWIG_As_bool(obj2);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 if (obj3) {
8154 arg4 = (bool)SWIG_As_bool(obj3);
8155 if (PyErr_Occurred()) SWIG_fail;
8156 }
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8160
8161 wxPyEndAllowThreads(__tstate);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8165 {
8166 if (temp2)
8167 delete arg2;
8168 }
8169 return resultobj;
8170 fail:
8171 {
8172 if (temp2)
8173 delete arg2;
8174 }
8175 return NULL;
8176 }
8177
8178
8179 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
8180 PyObject *resultobj;
8181 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8182 bool arg2 = (bool) true ;
8183 PyObject * obj0 = 0 ;
8184 PyObject * obj1 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "self",(char *) "bShow", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8192 if (obj1) {
8193 arg2 = (bool)SWIG_As_bool(obj1);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 (arg1)->Show(arg2);
8199
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 Py_INCREF(Py_None); resultobj = Py_None;
8204 return resultobj;
8205 fail:
8206 return NULL;
8207 }
8208
8209
8210 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj;
8212 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8213 wxFrame *result;
8214 PyObject * obj0 = 0 ;
8215 char *kwnames[] = {
8216 (char *) "self", NULL
8217 };
8218
8219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8222 {
8223 PyThreadState* __tstate = wxPyBeginAllowThreads();
8224 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8225
8226 wxPyEndAllowThreads(__tstate);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 }
8229 {
8230 resultobj = wxPyMake_wxObject(result, 0);
8231 }
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj;
8240 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8241 wxLog *result;
8242 PyObject * obj0 = 0 ;
8243 char *kwnames[] = {
8244 (char *) "self", NULL
8245 };
8246
8247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8250 {
8251 PyThreadState* __tstate = wxPyBeginAllowThreads();
8252 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8253
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8258 return resultobj;
8259 fail:
8260 return NULL;
8261 }
8262
8263
8264 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8265 PyObject *resultobj;
8266 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8267 bool result;
8268 PyObject * obj0 = 0 ;
8269 char *kwnames[] = {
8270 (char *) "self", NULL
8271 };
8272
8273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8276 {
8277 PyThreadState* __tstate = wxPyBeginAllowThreads();
8278 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8279
8280 wxPyEndAllowThreads(__tstate);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 {
8284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8285 }
8286 return resultobj;
8287 fail:
8288 return NULL;
8289 }
8290
8291
8292 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8293 PyObject *resultobj;
8294 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8295 bool arg2 ;
8296 PyObject * obj0 = 0 ;
8297 PyObject * obj1 = 0 ;
8298 char *kwnames[] = {
8299 (char *) "self",(char *) "bDoPass", NULL
8300 };
8301
8302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8305 arg2 = (bool)SWIG_As_bool(obj1);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 (arg1)->PassMessages(arg2);
8310
8311 wxPyEndAllowThreads(__tstate);
8312 if (PyErr_Occurred()) SWIG_fail;
8313 }
8314 Py_INCREF(Py_None); resultobj = Py_None;
8315 return resultobj;
8316 fail:
8317 return NULL;
8318 }
8319
8320
8321 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
8322 PyObject *obj;
8323 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8324 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8325 Py_INCREF(obj);
8326 return Py_BuildValue((char *)"");
8327 }
8328 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
8329 PyObject *resultobj;
8330 wxLog *arg1 = (wxLog *) 0 ;
8331 wxLogChain *result;
8332 PyObject * obj0 = 0 ;
8333 char *kwnames[] = {
8334 (char *) "logger", NULL
8335 };
8336
8337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8340 {
8341 PyThreadState* __tstate = wxPyBeginAllowThreads();
8342 result = (wxLogChain *)new wxLogChain(arg1);
8343
8344 wxPyEndAllowThreads(__tstate);
8345 if (PyErr_Occurred()) SWIG_fail;
8346 }
8347 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8348 return resultobj;
8349 fail:
8350 return NULL;
8351 }
8352
8353
8354 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
8355 PyObject *resultobj;
8356 wxLogChain *arg1 = (wxLogChain *) 0 ;
8357 wxLog *arg2 = (wxLog *) 0 ;
8358 PyObject * obj0 = 0 ;
8359 PyObject * obj1 = 0 ;
8360 char *kwnames[] = {
8361 (char *) "self",(char *) "logger", NULL
8362 };
8363
8364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8367 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8369 {
8370 PyThreadState* __tstate = wxPyBeginAllowThreads();
8371 (arg1)->SetLog(arg2);
8372
8373 wxPyEndAllowThreads(__tstate);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 Py_INCREF(Py_None); resultobj = Py_None;
8377 return resultobj;
8378 fail:
8379 return NULL;
8380 }
8381
8382
8383 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8384 PyObject *resultobj;
8385 wxLogChain *arg1 = (wxLogChain *) 0 ;
8386 bool arg2 ;
8387 PyObject * obj0 = 0 ;
8388 PyObject * obj1 = 0 ;
8389 char *kwnames[] = {
8390 (char *) "self",(char *) "bDoPass", NULL
8391 };
8392
8393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8396 arg2 = (bool)SWIG_As_bool(obj1);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 {
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 (arg1)->PassMessages(arg2);
8401
8402 wxPyEndAllowThreads(__tstate);
8403 if (PyErr_Occurred()) SWIG_fail;
8404 }
8405 Py_INCREF(Py_None); resultobj = Py_None;
8406 return resultobj;
8407 fail:
8408 return NULL;
8409 }
8410
8411
8412 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8413 PyObject *resultobj;
8414 wxLogChain *arg1 = (wxLogChain *) 0 ;
8415 bool result;
8416 PyObject * obj0 = 0 ;
8417 char *kwnames[] = {
8418 (char *) "self", NULL
8419 };
8420
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8424 {
8425 PyThreadState* __tstate = wxPyBeginAllowThreads();
8426 result = (bool)(arg1)->IsPassingMessages();
8427
8428 wxPyEndAllowThreads(__tstate);
8429 if (PyErr_Occurred()) SWIG_fail;
8430 }
8431 {
8432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8433 }
8434 return resultobj;
8435 fail:
8436 return NULL;
8437 }
8438
8439
8440 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8441 PyObject *resultobj;
8442 wxLogChain *arg1 = (wxLogChain *) 0 ;
8443 wxLog *result;
8444 PyObject * obj0 = 0 ;
8445 char *kwnames[] = {
8446 (char *) "self", NULL
8447 };
8448
8449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8452 {
8453 PyThreadState* __tstate = wxPyBeginAllowThreads();
8454 result = (wxLog *)(arg1)->GetOldLog();
8455
8456 wxPyEndAllowThreads(__tstate);
8457 if (PyErr_Occurred()) SWIG_fail;
8458 }
8459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8460 return resultobj;
8461 fail:
8462 return NULL;
8463 }
8464
8465
8466 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
8467 PyObject *obj;
8468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8469 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8470 Py_INCREF(obj);
8471 return Py_BuildValue((char *)"");
8472 }
8473 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
8474 PyObject *resultobj;
8475 unsigned long result;
8476 char *kwnames[] = {
8477 NULL
8478 };
8479
8480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8481 {
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (unsigned long)wxSysErrorCode();
8484
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8489 return resultobj;
8490 fail:
8491 return NULL;
8492 }
8493
8494
8495 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj;
8497 unsigned long arg1 = (unsigned long) 0 ;
8498 wxString result;
8499 PyObject * obj0 = 0 ;
8500 char *kwnames[] = {
8501 (char *) "nErrCode", NULL
8502 };
8503
8504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8505 if (obj0) {
8506 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 }
8509 {
8510 PyThreadState* __tstate = wxPyBeginAllowThreads();
8511 result = wxSysErrorMsg(arg1);
8512
8513 wxPyEndAllowThreads(__tstate);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 {
8517 #if wxUSE_UNICODE
8518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8519 #else
8520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8521 #endif
8522 }
8523 return resultobj;
8524 fail:
8525 return NULL;
8526 }
8527
8528
8529 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
8530 PyObject *resultobj;
8531 wxString *arg1 = 0 ;
8532 bool temp1 = false ;
8533 PyObject * obj0 = 0 ;
8534 char *kwnames[] = {
8535 (char *) "msg", NULL
8536 };
8537
8538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8539 {
8540 arg1 = wxString_in_helper(obj0);
8541 if (arg1 == NULL) SWIG_fail;
8542 temp1 = true;
8543 }
8544 {
8545 PyThreadState* __tstate = wxPyBeginAllowThreads();
8546 wxLogFatalError((wxString const &)*arg1);
8547
8548 wxPyEndAllowThreads(__tstate);
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 Py_INCREF(Py_None); resultobj = Py_None;
8552 {
8553 if (temp1)
8554 delete arg1;
8555 }
8556 return resultobj;
8557 fail:
8558 {
8559 if (temp1)
8560 delete arg1;
8561 }
8562 return NULL;
8563 }
8564
8565
8566 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
8567 PyObject *resultobj;
8568 wxString *arg1 = 0 ;
8569 bool temp1 = false ;
8570 PyObject * obj0 = 0 ;
8571 char *kwnames[] = {
8572 (char *) "msg", NULL
8573 };
8574
8575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8576 {
8577 arg1 = wxString_in_helper(obj0);
8578 if (arg1 == NULL) SWIG_fail;
8579 temp1 = true;
8580 }
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 wxLogError((wxString const &)*arg1);
8584
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 Py_INCREF(Py_None); resultobj = Py_None;
8589 {
8590 if (temp1)
8591 delete arg1;
8592 }
8593 return resultobj;
8594 fail:
8595 {
8596 if (temp1)
8597 delete arg1;
8598 }
8599 return NULL;
8600 }
8601
8602
8603 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
8604 PyObject *resultobj;
8605 wxString *arg1 = 0 ;
8606 bool temp1 = false ;
8607 PyObject * obj0 = 0 ;
8608 char *kwnames[] = {
8609 (char *) "msg", NULL
8610 };
8611
8612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8613 {
8614 arg1 = wxString_in_helper(obj0);
8615 if (arg1 == NULL) SWIG_fail;
8616 temp1 = true;
8617 }
8618 {
8619 PyThreadState* __tstate = wxPyBeginAllowThreads();
8620 wxLogWarning((wxString const &)*arg1);
8621
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 Py_INCREF(Py_None); resultobj = Py_None;
8626 {
8627 if (temp1)
8628 delete arg1;
8629 }
8630 return resultobj;
8631 fail:
8632 {
8633 if (temp1)
8634 delete arg1;
8635 }
8636 return NULL;
8637 }
8638
8639
8640 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj;
8642 wxString *arg1 = 0 ;
8643 bool temp1 = false ;
8644 PyObject * obj0 = 0 ;
8645 char *kwnames[] = {
8646 (char *) "msg", NULL
8647 };
8648
8649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8650 {
8651 arg1 = wxString_in_helper(obj0);
8652 if (arg1 == NULL) SWIG_fail;
8653 temp1 = true;
8654 }
8655 {
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 wxLogMessage((wxString const &)*arg1);
8658
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 Py_INCREF(Py_None); resultobj = Py_None;
8663 {
8664 if (temp1)
8665 delete arg1;
8666 }
8667 return resultobj;
8668 fail:
8669 {
8670 if (temp1)
8671 delete arg1;
8672 }
8673 return NULL;
8674 }
8675
8676
8677 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj;
8679 wxString *arg1 = 0 ;
8680 bool temp1 = false ;
8681 PyObject * obj0 = 0 ;
8682 char *kwnames[] = {
8683 (char *) "msg", NULL
8684 };
8685
8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8687 {
8688 arg1 = wxString_in_helper(obj0);
8689 if (arg1 == NULL) SWIG_fail;
8690 temp1 = true;
8691 }
8692 {
8693 PyThreadState* __tstate = wxPyBeginAllowThreads();
8694 wxLogInfo((wxString const &)*arg1);
8695
8696 wxPyEndAllowThreads(__tstate);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 Py_INCREF(Py_None); resultobj = Py_None;
8700 {
8701 if (temp1)
8702 delete arg1;
8703 }
8704 return resultobj;
8705 fail:
8706 {
8707 if (temp1)
8708 delete arg1;
8709 }
8710 return NULL;
8711 }
8712
8713
8714 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
8715 PyObject *resultobj;
8716 wxString *arg1 = 0 ;
8717 bool temp1 = false ;
8718 PyObject * obj0 = 0 ;
8719 char *kwnames[] = {
8720 (char *) "msg", NULL
8721 };
8722
8723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8724 {
8725 arg1 = wxString_in_helper(obj0);
8726 if (arg1 == NULL) SWIG_fail;
8727 temp1 = true;
8728 }
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 wxLogDebug((wxString const &)*arg1);
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 Py_INCREF(Py_None); resultobj = Py_None;
8737 {
8738 if (temp1)
8739 delete arg1;
8740 }
8741 return resultobj;
8742 fail:
8743 {
8744 if (temp1)
8745 delete arg1;
8746 }
8747 return NULL;
8748 }
8749
8750
8751 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
8752 PyObject *resultobj;
8753 wxString *arg1 = 0 ;
8754 bool temp1 = false ;
8755 PyObject * obj0 = 0 ;
8756 char *kwnames[] = {
8757 (char *) "msg", NULL
8758 };
8759
8760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8761 {
8762 arg1 = wxString_in_helper(obj0);
8763 if (arg1 == NULL) SWIG_fail;
8764 temp1 = true;
8765 }
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 wxLogVerbose((wxString const &)*arg1);
8769
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 Py_INCREF(Py_None); resultobj = Py_None;
8774 {
8775 if (temp1)
8776 delete arg1;
8777 }
8778 return resultobj;
8779 fail:
8780 {
8781 if (temp1)
8782 delete arg1;
8783 }
8784 return NULL;
8785 }
8786
8787
8788 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
8789 PyObject *resultobj;
8790 wxString *arg1 = 0 ;
8791 bool temp1 = false ;
8792 PyObject * obj0 = 0 ;
8793 char *kwnames[] = {
8794 (char *) "msg", NULL
8795 };
8796
8797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8798 {
8799 arg1 = wxString_in_helper(obj0);
8800 if (arg1 == NULL) SWIG_fail;
8801 temp1 = true;
8802 }
8803 {
8804 PyThreadState* __tstate = wxPyBeginAllowThreads();
8805 wxLogStatus((wxString const &)*arg1);
8806
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 Py_INCREF(Py_None); resultobj = Py_None;
8811 {
8812 if (temp1)
8813 delete arg1;
8814 }
8815 return resultobj;
8816 fail:
8817 {
8818 if (temp1)
8819 delete arg1;
8820 }
8821 return NULL;
8822 }
8823
8824
8825 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8826 PyObject *resultobj;
8827 wxFrame *arg1 = (wxFrame *) 0 ;
8828 wxString *arg2 = 0 ;
8829 bool temp2 = false ;
8830 PyObject * obj0 = 0 ;
8831 PyObject * obj1 = 0 ;
8832 char *kwnames[] = {
8833 (char *) "pFrame",(char *) "msg", NULL
8834 };
8835
8836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8839 {
8840 arg2 = wxString_in_helper(obj1);
8841 if (arg2 == NULL) SWIG_fail;
8842 temp2 = true;
8843 }
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 wxLogStatus(arg1,(wxString const &)*arg2);
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) SWIG_fail;
8850 }
8851 Py_INCREF(Py_None); resultobj = Py_None;
8852 {
8853 if (temp2)
8854 delete arg2;
8855 }
8856 return resultobj;
8857 fail:
8858 {
8859 if (temp2)
8860 delete arg2;
8861 }
8862 return NULL;
8863 }
8864
8865
8866 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj;
8868 wxString *arg1 = 0 ;
8869 bool temp1 = false ;
8870 PyObject * obj0 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "msg", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8876 {
8877 arg1 = wxString_in_helper(obj0);
8878 if (arg1 == NULL) SWIG_fail;
8879 temp1 = true;
8880 }
8881 {
8882 PyThreadState* __tstate = wxPyBeginAllowThreads();
8883 wxLogSysError((wxString const &)*arg1);
8884
8885 wxPyEndAllowThreads(__tstate);
8886 if (PyErr_Occurred()) SWIG_fail;
8887 }
8888 Py_INCREF(Py_None); resultobj = Py_None;
8889 {
8890 if (temp1)
8891 delete arg1;
8892 }
8893 return resultobj;
8894 fail:
8895 {
8896 if (temp1)
8897 delete arg1;
8898 }
8899 return NULL;
8900 }
8901
8902
8903 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
8904 PyObject *resultobj;
8905 unsigned long arg1 ;
8906 wxString *arg2 = 0 ;
8907 bool temp2 = false ;
8908 PyObject * obj0 = 0 ;
8909 PyObject * obj1 = 0 ;
8910
8911 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8912 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
8913 if (PyErr_Occurred()) SWIG_fail;
8914 {
8915 arg2 = wxString_in_helper(obj1);
8916 if (arg2 == NULL) SWIG_fail;
8917 temp2 = true;
8918 }
8919 {
8920 PyThreadState* __tstate = wxPyBeginAllowThreads();
8921 wxLogTrace(arg1,(wxString const &)*arg2);
8922
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 Py_INCREF(Py_None); resultobj = Py_None;
8927 {
8928 if (temp2)
8929 delete arg2;
8930 }
8931 return resultobj;
8932 fail:
8933 {
8934 if (temp2)
8935 delete arg2;
8936 }
8937 return NULL;
8938 }
8939
8940
8941 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
8942 PyObject *resultobj;
8943 wxString *arg1 = 0 ;
8944 wxString *arg2 = 0 ;
8945 bool temp1 = false ;
8946 bool temp2 = false ;
8947 PyObject * obj0 = 0 ;
8948 PyObject * obj1 = 0 ;
8949
8950 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8951 {
8952 arg1 = wxString_in_helper(obj0);
8953 if (arg1 == NULL) SWIG_fail;
8954 temp1 = true;
8955 }
8956 {
8957 arg2 = wxString_in_helper(obj1);
8958 if (arg2 == NULL) SWIG_fail;
8959 temp2 = true;
8960 }
8961 {
8962 PyThreadState* __tstate = wxPyBeginAllowThreads();
8963 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8964
8965 wxPyEndAllowThreads(__tstate);
8966 if (PyErr_Occurred()) SWIG_fail;
8967 }
8968 Py_INCREF(Py_None); resultobj = Py_None;
8969 {
8970 if (temp1)
8971 delete arg1;
8972 }
8973 {
8974 if (temp2)
8975 delete arg2;
8976 }
8977 return resultobj;
8978 fail:
8979 {
8980 if (temp1)
8981 delete arg1;
8982 }
8983 {
8984 if (temp2)
8985 delete arg2;
8986 }
8987 return NULL;
8988 }
8989
8990
8991 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8992 int argc;
8993 PyObject *argv[3];
8994 int ii;
8995
8996 argc = PyObject_Length(args);
8997 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8998 argv[ii] = PyTuple_GetItem(args,ii);
8999 }
9000 if (argc == 2) {
9001 int _v;
9002 {
9003 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9004 }
9005 if (_v) {
9006 {
9007 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9008 }
9009 if (_v) {
9010 return _wrap_LogTrace__SWIG_1(self,args);
9011 }
9012 }
9013 }
9014 if (argc == 2) {
9015 int _v;
9016 _v = SWIG_Check_unsigned_SS_long(argv[0]);
9017 if (_v) {
9018 {
9019 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9020 }
9021 if (_v) {
9022 return _wrap_LogTrace__SWIG_0(self,args);
9023 }
9024 }
9025 }
9026
9027 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
9028 return NULL;
9029 }
9030
9031
9032 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
9033 PyObject *resultobj;
9034 unsigned long arg1 ;
9035 wxString *arg2 = 0 ;
9036 bool temp2 = false ;
9037 PyObject * obj0 = 0 ;
9038 PyObject * obj1 = 0 ;
9039 char *kwnames[] = {
9040 (char *) "level",(char *) "msg", NULL
9041 };
9042
9043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
9044 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 {
9047 arg2 = wxString_in_helper(obj1);
9048 if (arg2 == NULL) SWIG_fail;
9049 temp2 = true;
9050 }
9051 {
9052 PyThreadState* __tstate = wxPyBeginAllowThreads();
9053 wxLogGeneric(arg1,(wxString const &)*arg2);
9054
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 Py_INCREF(Py_None); resultobj = Py_None;
9059 {
9060 if (temp2)
9061 delete arg2;
9062 }
9063 return resultobj;
9064 fail:
9065 {
9066 if (temp2)
9067 delete arg2;
9068 }
9069 return NULL;
9070 }
9071
9072
9073 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
9074 PyObject *resultobj;
9075 wxString *arg1 = 0 ;
9076 wxString *arg2 = 0 ;
9077 bool temp1 = false ;
9078 bool temp2 = false ;
9079 PyObject * obj0 = 0 ;
9080 PyObject * obj1 = 0 ;
9081 char *kwnames[] = {
9082 (char *) "title",(char *) "text", NULL
9083 };
9084
9085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
9086 {
9087 arg1 = wxString_in_helper(obj0);
9088 if (arg1 == NULL) SWIG_fail;
9089 temp1 = true;
9090 }
9091 {
9092 arg2 = wxString_in_helper(obj1);
9093 if (arg2 == NULL) SWIG_fail;
9094 temp2 = true;
9095 }
9096 {
9097 PyThreadState* __tstate = wxPyBeginAllowThreads();
9098 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
9099
9100 wxPyEndAllowThreads(__tstate);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 }
9103 Py_INCREF(Py_None); resultobj = Py_None;
9104 {
9105 if (temp1)
9106 delete arg1;
9107 }
9108 {
9109 if (temp2)
9110 delete arg2;
9111 }
9112 return resultobj;
9113 fail:
9114 {
9115 if (temp1)
9116 delete arg1;
9117 }
9118 {
9119 if (temp2)
9120 delete arg2;
9121 }
9122 return NULL;
9123 }
9124
9125
9126 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9127 PyObject *resultobj;
9128 wxLogNull *result;
9129 char *kwnames[] = {
9130 NULL
9131 };
9132
9133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
9134 {
9135 PyThreadState* __tstate = wxPyBeginAllowThreads();
9136 result = (wxLogNull *)new wxLogNull();
9137
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
9142 return resultobj;
9143 fail:
9144 return NULL;
9145 }
9146
9147
9148 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9149 PyObject *resultobj;
9150 wxLogNull *arg1 = (wxLogNull *) 0 ;
9151 PyObject * obj0 = 0 ;
9152 char *kwnames[] = {
9153 (char *) "self", NULL
9154 };
9155
9156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9159 {
9160 PyThreadState* __tstate = wxPyBeginAllowThreads();
9161 delete arg1;
9162
9163 wxPyEndAllowThreads(__tstate);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 Py_INCREF(Py_None); resultobj = Py_None;
9167 return resultobj;
9168 fail:
9169 return NULL;
9170 }
9171
9172
9173 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
9174 PyObject *obj;
9175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9176 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9177 Py_INCREF(obj);
9178 return Py_BuildValue((char *)"");
9179 }
9180 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
9181 PyObject *resultobj;
9182 wxPyLog *result;
9183 char *kwnames[] = {
9184 NULL
9185 };
9186
9187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9188 {
9189 PyThreadState* __tstate = wxPyBeginAllowThreads();
9190 result = (wxPyLog *)new wxPyLog();
9191
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9196 return resultobj;
9197 fail:
9198 return NULL;
9199 }
9200
9201
9202 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9203 PyObject *resultobj;
9204 wxPyLog *arg1 = (wxPyLog *) 0 ;
9205 PyObject *arg2 = (PyObject *) 0 ;
9206 PyObject *arg3 = (PyObject *) 0 ;
9207 PyObject * obj0 = 0 ;
9208 PyObject * obj1 = 0 ;
9209 PyObject * obj2 = 0 ;
9210 char *kwnames[] = {
9211 (char *) "self",(char *) "self",(char *) "_class", NULL
9212 };
9213
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9217 arg2 = obj1;
9218 arg3 = obj2;
9219 {
9220 PyThreadState* __tstate = wxPyBeginAllowThreads();
9221 (arg1)->_setCallbackInfo(arg2,arg3);
9222
9223 wxPyEndAllowThreads(__tstate);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 }
9226 Py_INCREF(Py_None); resultobj = Py_None;
9227 return resultobj;
9228 fail:
9229 return NULL;
9230 }
9231
9232
9233 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
9234 PyObject *obj;
9235 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9236 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9237 Py_INCREF(obj);
9238 return Py_BuildValue((char *)"");
9239 }
9240 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 int arg1 ;
9243 int arg2 = (int) wxSIGTERM ;
9244 int result;
9245 PyObject * obj0 = 0 ;
9246 PyObject * obj1 = 0 ;
9247 char *kwnames[] = {
9248 (char *) "pid",(char *) "sig", NULL
9249 };
9250
9251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9252 arg1 = (int)SWIG_As_int(obj0);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 if (obj1) {
9255 arg2 = (int)SWIG_As_int(obj1);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 {
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9261
9262 wxPyEndAllowThreads(__tstate);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 }
9265 resultobj = SWIG_From_int((int)result);
9266 return resultobj;
9267 fail:
9268 return NULL;
9269 }
9270
9271
9272 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
9273 PyObject *resultobj;
9274 int arg1 ;
9275 bool result;
9276 PyObject * obj0 = 0 ;
9277 char *kwnames[] = {
9278 (char *) "pid", NULL
9279 };
9280
9281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9282 arg1 = (int)SWIG_As_int(obj0);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 {
9285 PyThreadState* __tstate = wxPyBeginAllowThreads();
9286 result = (bool)wxPyProcess::Exists(arg1);
9287
9288 wxPyEndAllowThreads(__tstate);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 {
9292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9293 }
9294 return resultobj;
9295 fail:
9296 return NULL;
9297 }
9298
9299
9300 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
9301 PyObject *resultobj;
9302 wxString *arg1 = 0 ;
9303 int arg2 = (int) wxEXEC_ASYNC ;
9304 wxPyProcess *result;
9305 bool temp1 = false ;
9306 PyObject * obj0 = 0 ;
9307 PyObject * obj1 = 0 ;
9308 char *kwnames[] = {
9309 (char *) "cmd",(char *) "flags", NULL
9310 };
9311
9312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9313 {
9314 arg1 = wxString_in_helper(obj0);
9315 if (arg1 == NULL) SWIG_fail;
9316 temp1 = true;
9317 }
9318 if (obj1) {
9319 arg2 = (int)SWIG_As_int(obj1);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9325
9326 wxPyEndAllowThreads(__tstate);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 }
9329 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9330 {
9331 if (temp1)
9332 delete arg1;
9333 }
9334 return resultobj;
9335 fail:
9336 {
9337 if (temp1)
9338 delete arg1;
9339 }
9340 return NULL;
9341 }
9342
9343
9344 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
9345 PyObject *resultobj;
9346 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9347 int arg2 = (int) -1 ;
9348 wxPyProcess *result;
9349 PyObject * obj0 = 0 ;
9350 PyObject * obj1 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "parent",(char *) "id", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9356 if (obj0) {
9357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9359 }
9360 if (obj1) {
9361 arg2 = (int)SWIG_As_int(obj1);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9372 return resultobj;
9373 fail:
9374 return NULL;
9375 }
9376
9377
9378 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9379 PyObject *resultobj;
9380 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9381 PyObject *arg2 = (PyObject *) 0 ;
9382 PyObject *arg3 = (PyObject *) 0 ;
9383 PyObject * obj0 = 0 ;
9384 PyObject * obj1 = 0 ;
9385 PyObject * obj2 = 0 ;
9386 char *kwnames[] = {
9387 (char *) "self",(char *) "self",(char *) "_class", NULL
9388 };
9389
9390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9393 arg2 = obj1;
9394 arg3 = obj2;
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 (arg1)->_setCallbackInfo(arg2,arg3);
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 Py_INCREF(Py_None); resultobj = Py_None;
9403 return resultobj;
9404 fail:
9405 return NULL;
9406 }
9407
9408
9409 static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
9410 PyObject *resultobj;
9411 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9412 int arg2 ;
9413 int arg3 ;
9414 PyObject * obj0 = 0 ;
9415 PyObject * obj1 = 0 ;
9416 PyObject * obj2 = 0 ;
9417 char *kwnames[] = {
9418 (char *) "self",(char *) "pid",(char *) "status", NULL
9419 };
9420
9421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9424 arg2 = (int)SWIG_As_int(obj1);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 arg3 = (int)SWIG_As_int(obj2);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 (arg1)->base_OnTerminate(arg2,arg3);
9431
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 Py_INCREF(Py_None); resultobj = Py_None;
9436 return resultobj;
9437 fail:
9438 return NULL;
9439 }
9440
9441
9442 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
9443 PyObject *resultobj;
9444 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9445 PyObject * obj0 = 0 ;
9446 char *kwnames[] = {
9447 (char *) "self", NULL
9448 };
9449
9450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 (arg1)->Redirect();
9456
9457 wxPyEndAllowThreads(__tstate);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 }
9460 Py_INCREF(Py_None); resultobj = Py_None;
9461 return resultobj;
9462 fail:
9463 return NULL;
9464 }
9465
9466
9467 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
9468 PyObject *resultobj;
9469 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9470 bool result;
9471 PyObject * obj0 = 0 ;
9472 char *kwnames[] = {
9473 (char *) "self", NULL
9474 };
9475
9476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9479 {
9480 PyThreadState* __tstate = wxPyBeginAllowThreads();
9481 result = (bool)(arg1)->IsRedirected();
9482
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 {
9487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9488 }
9489 return resultobj;
9490 fail:
9491 return NULL;
9492 }
9493
9494
9495 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj;
9497 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9498 PyObject * obj0 = 0 ;
9499 char *kwnames[] = {
9500 (char *) "self", NULL
9501 };
9502
9503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 (arg1)->Detach();
9509
9510 wxPyEndAllowThreads(__tstate);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 Py_INCREF(Py_None); resultobj = Py_None;
9514 return resultobj;
9515 fail:
9516 return NULL;
9517 }
9518
9519
9520 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9521 PyObject *resultobj;
9522 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9523 wxInputStream *result;
9524 PyObject * obj0 = 0 ;
9525 char *kwnames[] = {
9526 (char *) "self", NULL
9527 };
9528
9529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9532 {
9533 PyThreadState* __tstate = wxPyBeginAllowThreads();
9534 result = (wxInputStream *)(arg1)->GetInputStream();
9535
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 {
9540 wxPyInputStream * _ptr = NULL;
9541
9542 if (result) {
9543 _ptr = new wxPyInputStream(result);
9544 }
9545 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true);
9546 }
9547 return resultobj;
9548 fail:
9549 return NULL;
9550 }
9551
9552
9553 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
9554 PyObject *resultobj;
9555 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9556 wxInputStream *result;
9557 PyObject * obj0 = 0 ;
9558 char *kwnames[] = {
9559 (char *) "self", NULL
9560 };
9561
9562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (wxInputStream *)(arg1)->GetErrorStream();
9568
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 {
9573 wxPyInputStream * _ptr = NULL;
9574
9575 if (result) {
9576 _ptr = new wxPyInputStream(result);
9577 }
9578 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true);
9579 }
9580 return resultobj;
9581 fail:
9582 return NULL;
9583 }
9584
9585
9586 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9587 PyObject *resultobj;
9588 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9589 wxOutputStream *result;
9590 PyObject * obj0 = 0 ;
9591 char *kwnames[] = {
9592 (char *) "self", NULL
9593 };
9594
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 result = (wxOutputStream *)(arg1)->GetOutputStream();
9601
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9606 return resultobj;
9607 fail:
9608 return NULL;
9609 }
9610
9611
9612 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
9613 PyObject *resultobj;
9614 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9615 PyObject * obj0 = 0 ;
9616 char *kwnames[] = {
9617 (char *) "self", NULL
9618 };
9619
9620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 (arg1)->CloseOutput();
9626
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 Py_INCREF(Py_None); resultobj = Py_None;
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj;
9639 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9640 bool result;
9641 PyObject * obj0 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "self", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9652
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 {
9657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9658 }
9659 return resultobj;
9660 fail:
9661 return NULL;
9662 }
9663
9664
9665 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj;
9667 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9668 bool result;
9669 PyObject * obj0 = 0 ;
9670 char *kwnames[] = {
9671 (char *) "self", NULL
9672 };
9673
9674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9677 {
9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
9679 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9680
9681 wxPyEndAllowThreads(__tstate);
9682 if (PyErr_Occurred()) SWIG_fail;
9683 }
9684 {
9685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9686 }
9687 return resultobj;
9688 fail:
9689 return NULL;
9690 }
9691
9692
9693 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9694 PyObject *resultobj;
9695 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9696 bool result;
9697 PyObject * obj0 = 0 ;
9698 char *kwnames[] = {
9699 (char *) "self", NULL
9700 };
9701
9702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9708
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 {
9713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9714 }
9715 return resultobj;
9716 fail:
9717 return NULL;
9718 }
9719
9720
9721 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
9722 PyObject *obj;
9723 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9724 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9725 Py_INCREF(obj);
9726 return Py_BuildValue((char *)"");
9727 }
9728 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9729 PyObject *resultobj;
9730 int arg1 = (int) 0 ;
9731 int arg2 = (int) 0 ;
9732 int arg3 = (int) 0 ;
9733 wxProcessEvent *result;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 PyObject * obj2 = 0 ;
9737 char *kwnames[] = {
9738 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9739 };
9740
9741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9742 if (obj0) {
9743 arg1 = (int)SWIG_As_int(obj0);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 }
9746 if (obj1) {
9747 arg2 = (int)SWIG_As_int(obj1);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 if (obj2) {
9751 arg3 = (int)SWIG_As_int(obj2);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 {
9755 PyThreadState* __tstate = wxPyBeginAllowThreads();
9756 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9757
9758 wxPyEndAllowThreads(__tstate);
9759 if (PyErr_Occurred()) SWIG_fail;
9760 }
9761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9762 return resultobj;
9763 fail:
9764 return NULL;
9765 }
9766
9767
9768 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
9769 PyObject *resultobj;
9770 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9771 int result;
9772 PyObject * obj0 = 0 ;
9773 char *kwnames[] = {
9774 (char *) "self", NULL
9775 };
9776
9777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 result = (int)(arg1)->GetPid();
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_From_int((int)result);
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj;
9796 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9797 int result;
9798 PyObject * obj0 = 0 ;
9799 char *kwnames[] = {
9800 (char *) "self", NULL
9801 };
9802
9803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9806 {
9807 PyThreadState* __tstate = wxPyBeginAllowThreads();
9808 result = (int)(arg1)->GetExitCode();
9809
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_From_int((int)result);
9814 return resultobj;
9815 fail:
9816 return NULL;
9817 }
9818
9819
9820 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj;
9822 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9823 int arg2 ;
9824 PyObject * obj0 = 0 ;
9825 PyObject * obj1 = 0 ;
9826 char *kwnames[] = {
9827 (char *) "self",(char *) "m_pid", NULL
9828 };
9829
9830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9833 arg2 = (int)SWIG_As_int(obj1);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 if (arg1) (arg1)->m_pid = arg2;
9836
9837 Py_INCREF(Py_None); resultobj = Py_None;
9838 return resultobj;
9839 fail:
9840 return NULL;
9841 }
9842
9843
9844 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
9845 PyObject *resultobj;
9846 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9847 int result;
9848 PyObject * obj0 = 0 ;
9849 char *kwnames[] = {
9850 (char *) "self", NULL
9851 };
9852
9853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9856 result = (int) ((arg1)->m_pid);
9857
9858 resultobj = SWIG_From_int((int)result);
9859 return resultobj;
9860 fail:
9861 return NULL;
9862 }
9863
9864
9865 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj;
9867 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9868 int arg2 ;
9869 PyObject * obj0 = 0 ;
9870 PyObject * obj1 = 0 ;
9871 char *kwnames[] = {
9872 (char *) "self",(char *) "m_exitcode", NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9878 arg2 = (int)SWIG_As_int(obj1);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 if (arg1) (arg1)->m_exitcode = arg2;
9881
9882 Py_INCREF(Py_None); resultobj = Py_None;
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj;
9891 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9892 int result;
9893 PyObject * obj0 = 0 ;
9894 char *kwnames[] = {
9895 (char *) "self", NULL
9896 };
9897
9898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9901 result = (int) ((arg1)->m_exitcode);
9902
9903 resultobj = SWIG_From_int((int)result);
9904 return resultobj;
9905 fail:
9906 return NULL;
9907 }
9908
9909
9910 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
9911 PyObject *obj;
9912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9913 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9914 Py_INCREF(obj);
9915 return Py_BuildValue((char *)"");
9916 }
9917 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj;
9919 wxString *arg1 = 0 ;
9920 int arg2 = (int) wxEXEC_ASYNC ;
9921 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9922 long result;
9923 bool temp1 = false ;
9924 PyObject * obj0 = 0 ;
9925 PyObject * obj1 = 0 ;
9926 PyObject * obj2 = 0 ;
9927 char *kwnames[] = {
9928 (char *) "command",(char *) "flags",(char *) "process", NULL
9929 };
9930
9931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9932 {
9933 arg1 = wxString_in_helper(obj0);
9934 if (arg1 == NULL) SWIG_fail;
9935 temp1 = true;
9936 }
9937 if (obj1) {
9938 arg2 = (int)SWIG_As_int(obj1);
9939 if (PyErr_Occurred()) SWIG_fail;
9940 }
9941 if (obj2) {
9942 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9944 }
9945 {
9946 if (!wxPyCheckForApp()) SWIG_fail;
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9949
9950 wxPyEndAllowThreads(__tstate);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 resultobj = SWIG_From_long((long)result);
9954 {
9955 if (temp1)
9956 delete arg1;
9957 }
9958 return resultobj;
9959 fail:
9960 {
9961 if (temp1)
9962 delete arg1;
9963 }
9964 return NULL;
9965 }
9966
9967
9968 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9969 PyObject *resultobj;
9970 int arg1 = (int) wxJOYSTICK1 ;
9971 wxJoystick *result;
9972 PyObject * obj0 = 0 ;
9973 char *kwnames[] = {
9974 (char *) "joystick", NULL
9975 };
9976
9977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9978 if (obj0) {
9979 arg1 = (int)SWIG_As_int(obj0);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 {
9983 if (!wxPyCheckForApp()) SWIG_fail;
9984 PyThreadState* __tstate = wxPyBeginAllowThreads();
9985 result = (wxJoystick *)new wxJoystick(arg1);
9986
9987 wxPyEndAllowThreads(__tstate);
9988 if (PyErr_Occurred()) SWIG_fail;
9989 }
9990 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9991 return resultobj;
9992 fail:
9993 return NULL;
9994 }
9995
9996
9997 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9998 PyObject *resultobj;
9999 wxJoystick *arg1 = (wxJoystick *) 0 ;
10000 PyObject * obj0 = 0 ;
10001 char *kwnames[] = {
10002 (char *) "self", NULL
10003 };
10004
10005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
10006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 delete arg1;
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 Py_INCREF(Py_None); resultobj = Py_None;
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 wxJoystick *arg1 = (wxJoystick *) 0 ;
10025 wxPoint result;
10026 PyObject * obj0 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "self", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
10032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 result = (arg1)->GetPosition();
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 {
10042 wxPoint * resultptr;
10043 resultptr = new wxPoint((wxPoint &) result);
10044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10045 }
10046 return resultobj;
10047 fail:
10048 return NULL;
10049 }
10050
10051
10052 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10053 PyObject *resultobj;
10054 wxJoystick *arg1 = (wxJoystick *) 0 ;
10055 int result;
10056 PyObject * obj0 = 0 ;
10057 char *kwnames[] = {
10058 (char *) "self", NULL
10059 };
10060
10061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
10062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10064 {
10065 PyThreadState* __tstate = wxPyBeginAllowThreads();
10066 result = (int)(arg1)->GetZPosition();
10067
10068 wxPyEndAllowThreads(__tstate);
10069 if (PyErr_Occurred()) SWIG_fail;
10070 }
10071 resultobj = SWIG_From_int((int)result);
10072 return resultobj;
10073 fail:
10074 return NULL;
10075 }
10076
10077
10078 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
10079 PyObject *resultobj;
10080 wxJoystick *arg1 = (wxJoystick *) 0 ;
10081 int result;
10082 PyObject * obj0 = 0 ;
10083 char *kwnames[] = {
10084 (char *) "self", NULL
10085 };
10086
10087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
10088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10090 {
10091 PyThreadState* __tstate = wxPyBeginAllowThreads();
10092 result = (int)(arg1)->GetButtonState();
10093
10094 wxPyEndAllowThreads(__tstate);
10095 if (PyErr_Occurred()) SWIG_fail;
10096 }
10097 resultobj = SWIG_From_int((int)result);
10098 return resultobj;
10099 fail:
10100 return NULL;
10101 }
10102
10103
10104 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10105 PyObject *resultobj;
10106 wxJoystick *arg1 = (wxJoystick *) 0 ;
10107 int result;
10108 PyObject * obj0 = 0 ;
10109 char *kwnames[] = {
10110 (char *) "self", NULL
10111 };
10112
10113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
10114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10116 {
10117 PyThreadState* __tstate = wxPyBeginAllowThreads();
10118 result = (int)(arg1)->GetPOVPosition();
10119
10120 wxPyEndAllowThreads(__tstate);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 resultobj = SWIG_From_int((int)result);
10124 return resultobj;
10125 fail:
10126 return NULL;
10127 }
10128
10129
10130 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10131 PyObject *resultobj;
10132 wxJoystick *arg1 = (wxJoystick *) 0 ;
10133 int result;
10134 PyObject * obj0 = 0 ;
10135 char *kwnames[] = {
10136 (char *) "self", NULL
10137 };
10138
10139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
10140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10142 {
10143 PyThreadState* __tstate = wxPyBeginAllowThreads();
10144 result = (int)(arg1)->GetPOVCTSPosition();
10145
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 resultobj = SWIG_From_int((int)result);
10150 return resultobj;
10151 fail:
10152 return NULL;
10153 }
10154
10155
10156 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj;
10158 wxJoystick *arg1 = (wxJoystick *) 0 ;
10159 int result;
10160 PyObject * obj0 = 0 ;
10161 char *kwnames[] = {
10162 (char *) "self", NULL
10163 };
10164
10165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 result = (int)(arg1)->GetRudderPosition();
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_From_int((int)result);
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj;
10184 wxJoystick *arg1 = (wxJoystick *) 0 ;
10185 int result;
10186 PyObject * obj0 = 0 ;
10187 char *kwnames[] = {
10188 (char *) "self", NULL
10189 };
10190
10191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (int)(arg1)->GetUPosition();
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 resultobj = SWIG_From_int((int)result);
10202 return resultobj;
10203 fail:
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 wxJoystick *arg1 = (wxJoystick *) 0 ;
10211 int result;
10212 PyObject * obj0 = 0 ;
10213 char *kwnames[] = {
10214 (char *) "self", NULL
10215 };
10216
10217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10220 {
10221 PyThreadState* __tstate = wxPyBeginAllowThreads();
10222 result = (int)(arg1)->GetVPosition();
10223
10224 wxPyEndAllowThreads(__tstate);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 }
10227 resultobj = SWIG_From_int((int)result);
10228 return resultobj;
10229 fail:
10230 return NULL;
10231 }
10232
10233
10234 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10235 PyObject *resultobj;
10236 wxJoystick *arg1 = (wxJoystick *) 0 ;
10237 int result;
10238 PyObject * obj0 = 0 ;
10239 char *kwnames[] = {
10240 (char *) "self", NULL
10241 };
10242
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (int)(arg1)->GetMovementThreshold();
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 resultobj = SWIG_From_int((int)result);
10254 return resultobj;
10255 fail:
10256 return NULL;
10257 }
10258
10259
10260 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj;
10262 wxJoystick *arg1 = (wxJoystick *) 0 ;
10263 int arg2 ;
10264 PyObject * obj0 = 0 ;
10265 PyObject * obj1 = 0 ;
10266 char *kwnames[] = {
10267 (char *) "self",(char *) "threshold", NULL
10268 };
10269
10270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10273 arg2 = (int)SWIG_As_int(obj1);
10274 if (PyErr_Occurred()) SWIG_fail;
10275 {
10276 PyThreadState* __tstate = wxPyBeginAllowThreads();
10277 (arg1)->SetMovementThreshold(arg2);
10278
10279 wxPyEndAllowThreads(__tstate);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 }
10282 Py_INCREF(Py_None); resultobj = Py_None;
10283 return resultobj;
10284 fail:
10285 return NULL;
10286 }
10287
10288
10289 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
10290 PyObject *resultobj;
10291 wxJoystick *arg1 = (wxJoystick *) 0 ;
10292 bool result;
10293 PyObject * obj0 = 0 ;
10294 char *kwnames[] = {
10295 (char *) "self", NULL
10296 };
10297
10298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 result = (bool)(arg1)->IsOk();
10304
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 {
10309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10310 }
10311 return resultobj;
10312 fail:
10313 return NULL;
10314 }
10315
10316
10317 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj;
10319 wxJoystick *arg1 = (wxJoystick *) 0 ;
10320 int result;
10321 PyObject * obj0 = 0 ;
10322 char *kwnames[] = {
10323 (char *) "self", NULL
10324 };
10325
10326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 result = (int)(arg1)->GetNumberJoysticks();
10332
10333 wxPyEndAllowThreads(__tstate);
10334 if (PyErr_Occurred()) SWIG_fail;
10335 }
10336 resultobj = SWIG_From_int((int)result);
10337 return resultobj;
10338 fail:
10339 return NULL;
10340 }
10341
10342
10343 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
10344 PyObject *resultobj;
10345 wxJoystick *arg1 = (wxJoystick *) 0 ;
10346 int result;
10347 PyObject * obj0 = 0 ;
10348 char *kwnames[] = {
10349 (char *) "self", NULL
10350 };
10351
10352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 result = (int)(arg1)->GetManufacturerId();
10358
10359 wxPyEndAllowThreads(__tstate);
10360 if (PyErr_Occurred()) SWIG_fail;
10361 }
10362 resultobj = SWIG_From_int((int)result);
10363 return resultobj;
10364 fail:
10365 return NULL;
10366 }
10367
10368
10369 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
10370 PyObject *resultobj;
10371 wxJoystick *arg1 = (wxJoystick *) 0 ;
10372 int result;
10373 PyObject * obj0 = 0 ;
10374 char *kwnames[] = {
10375 (char *) "self", NULL
10376 };
10377
10378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10381 {
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 result = (int)(arg1)->GetProductId();
10384
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 resultobj = SWIG_From_int((int)result);
10389 return resultobj;
10390 fail:
10391 return NULL;
10392 }
10393
10394
10395 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
10396 PyObject *resultobj;
10397 wxJoystick *arg1 = (wxJoystick *) 0 ;
10398 wxString result;
10399 PyObject * obj0 = 0 ;
10400 char *kwnames[] = {
10401 (char *) "self", NULL
10402 };
10403
10404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10407 {
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (arg1)->GetProductName();
10410
10411 wxPyEndAllowThreads(__tstate);
10412 if (PyErr_Occurred()) SWIG_fail;
10413 }
10414 {
10415 #if wxUSE_UNICODE
10416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10417 #else
10418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10419 #endif
10420 }
10421 return resultobj;
10422 fail:
10423 return NULL;
10424 }
10425
10426
10427 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
10428 PyObject *resultobj;
10429 wxJoystick *arg1 = (wxJoystick *) 0 ;
10430 int result;
10431 PyObject * obj0 = 0 ;
10432 char *kwnames[] = {
10433 (char *) "self", NULL
10434 };
10435
10436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10439 {
10440 PyThreadState* __tstate = wxPyBeginAllowThreads();
10441 result = (int)(arg1)->GetXMin();
10442
10443 wxPyEndAllowThreads(__tstate);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 resultobj = SWIG_From_int((int)result);
10447 return resultobj;
10448 fail:
10449 return NULL;
10450 }
10451
10452
10453 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
10454 PyObject *resultobj;
10455 wxJoystick *arg1 = (wxJoystick *) 0 ;
10456 int result;
10457 PyObject * obj0 = 0 ;
10458 char *kwnames[] = {
10459 (char *) "self", NULL
10460 };
10461
10462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10465 {
10466 PyThreadState* __tstate = wxPyBeginAllowThreads();
10467 result = (int)(arg1)->GetYMin();
10468
10469 wxPyEndAllowThreads(__tstate);
10470 if (PyErr_Occurred()) SWIG_fail;
10471 }
10472 resultobj = SWIG_From_int((int)result);
10473 return resultobj;
10474 fail:
10475 return NULL;
10476 }
10477
10478
10479 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
10480 PyObject *resultobj;
10481 wxJoystick *arg1 = (wxJoystick *) 0 ;
10482 int result;
10483 PyObject * obj0 = 0 ;
10484 char *kwnames[] = {
10485 (char *) "self", NULL
10486 };
10487
10488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 result = (int)(arg1)->GetZMin();
10494
10495 wxPyEndAllowThreads(__tstate);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 resultobj = SWIG_From_int((int)result);
10499 return resultobj;
10500 fail:
10501 return NULL;
10502 }
10503
10504
10505 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
10506 PyObject *resultobj;
10507 wxJoystick *arg1 = (wxJoystick *) 0 ;
10508 int result;
10509 PyObject * obj0 = 0 ;
10510 char *kwnames[] = {
10511 (char *) "self", NULL
10512 };
10513
10514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10517 {
10518 PyThreadState* __tstate = wxPyBeginAllowThreads();
10519 result = (int)(arg1)->GetXMax();
10520
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 }
10524 resultobj = SWIG_From_int((int)result);
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj;
10533 wxJoystick *arg1 = (wxJoystick *) 0 ;
10534 int result;
10535 PyObject * obj0 = 0 ;
10536 char *kwnames[] = {
10537 (char *) "self", NULL
10538 };
10539
10540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 result = (int)(arg1)->GetYMax();
10546
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 resultobj = SWIG_From_int((int)result);
10551 return resultobj;
10552 fail:
10553 return NULL;
10554 }
10555
10556
10557 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
10558 PyObject *resultobj;
10559 wxJoystick *arg1 = (wxJoystick *) 0 ;
10560 int result;
10561 PyObject * obj0 = 0 ;
10562 char *kwnames[] = {
10563 (char *) "self", NULL
10564 };
10565
10566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 result = (int)(arg1)->GetZMax();
10572
10573 wxPyEndAllowThreads(__tstate);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 resultobj = SWIG_From_int((int)result);
10577 return resultobj;
10578 fail:
10579 return NULL;
10580 }
10581
10582
10583 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10584 PyObject *resultobj;
10585 wxJoystick *arg1 = (wxJoystick *) 0 ;
10586 int result;
10587 PyObject * obj0 = 0 ;
10588 char *kwnames[] = {
10589 (char *) "self", NULL
10590 };
10591
10592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10595 {
10596 PyThreadState* __tstate = wxPyBeginAllowThreads();
10597 result = (int)(arg1)->GetNumberButtons();
10598
10599 wxPyEndAllowThreads(__tstate);
10600 if (PyErr_Occurred()) SWIG_fail;
10601 }
10602 resultobj = SWIG_From_int((int)result);
10603 return resultobj;
10604 fail:
10605 return NULL;
10606 }
10607
10608
10609 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10610 PyObject *resultobj;
10611 wxJoystick *arg1 = (wxJoystick *) 0 ;
10612 int result;
10613 PyObject * obj0 = 0 ;
10614 char *kwnames[] = {
10615 (char *) "self", NULL
10616 };
10617
10618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 result = (int)(arg1)->GetNumberAxes();
10624
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 resultobj = SWIG_From_int((int)result);
10629 return resultobj;
10630 fail:
10631 return NULL;
10632 }
10633
10634
10635 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10636 PyObject *resultobj;
10637 wxJoystick *arg1 = (wxJoystick *) 0 ;
10638 int result;
10639 PyObject * obj0 = 0 ;
10640 char *kwnames[] = {
10641 (char *) "self", NULL
10642 };
10643
10644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 result = (int)(arg1)->GetMaxButtons();
10650
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 resultobj = SWIG_From_int((int)result);
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj;
10663 wxJoystick *arg1 = (wxJoystick *) 0 ;
10664 int result;
10665 PyObject * obj0 = 0 ;
10666 char *kwnames[] = {
10667 (char *) "self", NULL
10668 };
10669
10670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 result = (int)(arg1)->GetMaxAxes();
10676
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 resultobj = SWIG_From_int((int)result);
10681 return resultobj;
10682 fail:
10683 return NULL;
10684 }
10685
10686
10687 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj;
10689 wxJoystick *arg1 = (wxJoystick *) 0 ;
10690 int result;
10691 PyObject * obj0 = 0 ;
10692 char *kwnames[] = {
10693 (char *) "self", NULL
10694 };
10695
10696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10699 {
10700 PyThreadState* __tstate = wxPyBeginAllowThreads();
10701 result = (int)(arg1)->GetPollingMin();
10702
10703 wxPyEndAllowThreads(__tstate);
10704 if (PyErr_Occurred()) SWIG_fail;
10705 }
10706 resultobj = SWIG_From_int((int)result);
10707 return resultobj;
10708 fail:
10709 return NULL;
10710 }
10711
10712
10713 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
10714 PyObject *resultobj;
10715 wxJoystick *arg1 = (wxJoystick *) 0 ;
10716 int result;
10717 PyObject * obj0 = 0 ;
10718 char *kwnames[] = {
10719 (char *) "self", NULL
10720 };
10721
10722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 result = (int)(arg1)->GetPollingMax();
10728
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 resultobj = SWIG_From_int((int)result);
10733 return resultobj;
10734 fail:
10735 return NULL;
10736 }
10737
10738
10739 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj;
10741 wxJoystick *arg1 = (wxJoystick *) 0 ;
10742 int result;
10743 PyObject * obj0 = 0 ;
10744 char *kwnames[] = {
10745 (char *) "self", NULL
10746 };
10747
10748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10751 {
10752 PyThreadState* __tstate = wxPyBeginAllowThreads();
10753 result = (int)(arg1)->GetRudderMin();
10754
10755 wxPyEndAllowThreads(__tstate);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 }
10758 resultobj = SWIG_From_int((int)result);
10759 return resultobj;
10760 fail:
10761 return NULL;
10762 }
10763
10764
10765 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj;
10767 wxJoystick *arg1 = (wxJoystick *) 0 ;
10768 int result;
10769 PyObject * obj0 = 0 ;
10770 char *kwnames[] = {
10771 (char *) "self", NULL
10772 };
10773
10774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10777 {
10778 PyThreadState* __tstate = wxPyBeginAllowThreads();
10779 result = (int)(arg1)->GetRudderMax();
10780
10781 wxPyEndAllowThreads(__tstate);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 resultobj = SWIG_From_int((int)result);
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 wxJoystick *arg1 = (wxJoystick *) 0 ;
10794 int result;
10795 PyObject * obj0 = 0 ;
10796 char *kwnames[] = {
10797 (char *) "self", NULL
10798 };
10799
10800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 result = (int)(arg1)->GetUMin();
10806
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 resultobj = SWIG_From_int((int)result);
10811 return resultobj;
10812 fail:
10813 return NULL;
10814 }
10815
10816
10817 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
10818 PyObject *resultobj;
10819 wxJoystick *arg1 = (wxJoystick *) 0 ;
10820 int result;
10821 PyObject * obj0 = 0 ;
10822 char *kwnames[] = {
10823 (char *) "self", NULL
10824 };
10825
10826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 result = (int)(arg1)->GetUMax();
10832
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 resultobj = SWIG_From_int((int)result);
10837 return resultobj;
10838 fail:
10839 return NULL;
10840 }
10841
10842
10843 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj;
10845 wxJoystick *arg1 = (wxJoystick *) 0 ;
10846 int result;
10847 PyObject * obj0 = 0 ;
10848 char *kwnames[] = {
10849 (char *) "self", NULL
10850 };
10851
10852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10855 {
10856 PyThreadState* __tstate = wxPyBeginAllowThreads();
10857 result = (int)(arg1)->GetVMin();
10858
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 resultobj = SWIG_From_int((int)result);
10863 return resultobj;
10864 fail:
10865 return NULL;
10866 }
10867
10868
10869 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
10870 PyObject *resultobj;
10871 wxJoystick *arg1 = (wxJoystick *) 0 ;
10872 int result;
10873 PyObject * obj0 = 0 ;
10874 char *kwnames[] = {
10875 (char *) "self", NULL
10876 };
10877
10878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10881 {
10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
10883 result = (int)(arg1)->GetVMax();
10884
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 resultobj = SWIG_From_int((int)result);
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
10896 PyObject *resultobj;
10897 wxJoystick *arg1 = (wxJoystick *) 0 ;
10898 bool result;
10899 PyObject * obj0 = 0 ;
10900 char *kwnames[] = {
10901 (char *) "self", NULL
10902 };
10903
10904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (bool)(arg1)->HasRudder();
10910
10911 wxPyEndAllowThreads(__tstate);
10912 if (PyErr_Occurred()) SWIG_fail;
10913 }
10914 {
10915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10916 }
10917 return resultobj;
10918 fail:
10919 return NULL;
10920 }
10921
10922
10923 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
10924 PyObject *resultobj;
10925 wxJoystick *arg1 = (wxJoystick *) 0 ;
10926 bool result;
10927 PyObject * obj0 = 0 ;
10928 char *kwnames[] = {
10929 (char *) "self", NULL
10930 };
10931
10932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10935 {
10936 PyThreadState* __tstate = wxPyBeginAllowThreads();
10937 result = (bool)(arg1)->HasZ();
10938
10939 wxPyEndAllowThreads(__tstate);
10940 if (PyErr_Occurred()) SWIG_fail;
10941 }
10942 {
10943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10944 }
10945 return resultobj;
10946 fail:
10947 return NULL;
10948 }
10949
10950
10951 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
10952 PyObject *resultobj;
10953 wxJoystick *arg1 = (wxJoystick *) 0 ;
10954 bool result;
10955 PyObject * obj0 = 0 ;
10956 char *kwnames[] = {
10957 (char *) "self", NULL
10958 };
10959
10960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
10965 result = (bool)(arg1)->HasU();
10966
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 {
10971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10972 }
10973 return resultobj;
10974 fail:
10975 return NULL;
10976 }
10977
10978
10979 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
10980 PyObject *resultobj;
10981 wxJoystick *arg1 = (wxJoystick *) 0 ;
10982 bool result;
10983 PyObject * obj0 = 0 ;
10984 char *kwnames[] = {
10985 (char *) "self", NULL
10986 };
10987
10988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10991 {
10992 PyThreadState* __tstate = wxPyBeginAllowThreads();
10993 result = (bool)(arg1)->HasV();
10994
10995 wxPyEndAllowThreads(__tstate);
10996 if (PyErr_Occurred()) SWIG_fail;
10997 }
10998 {
10999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11000 }
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxJoystick *arg1 = (wxJoystick *) 0 ;
11010 bool result;
11011 PyObject * obj0 = 0 ;
11012 char *kwnames[] = {
11013 (char *) "self", NULL
11014 };
11015
11016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
11017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 result = (bool)(arg1)->HasPOV();
11022
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 {
11027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11028 }
11029 return resultobj;
11030 fail:
11031 return NULL;
11032 }
11033
11034
11035 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
11036 PyObject *resultobj;
11037 wxJoystick *arg1 = (wxJoystick *) 0 ;
11038 bool result;
11039 PyObject * obj0 = 0 ;
11040 char *kwnames[] = {
11041 (char *) "self", NULL
11042 };
11043
11044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
11045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 result = (bool)(arg1)->HasPOV4Dir();
11050
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 return resultobj;
11058 fail:
11059 return NULL;
11060 }
11061
11062
11063 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
11064 PyObject *resultobj;
11065 wxJoystick *arg1 = (wxJoystick *) 0 ;
11066 bool result;
11067 PyObject * obj0 = 0 ;
11068 char *kwnames[] = {
11069 (char *) "self", NULL
11070 };
11071
11072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
11073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 result = (bool)(arg1)->HasPOVCTS();
11078
11079 wxPyEndAllowThreads(__tstate);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11084 }
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj;
11093 wxJoystick *arg1 = (wxJoystick *) 0 ;
11094 wxWindow *arg2 = (wxWindow *) 0 ;
11095 int arg3 = (int) 0 ;
11096 bool result;
11097 PyObject * obj0 = 0 ;
11098 PyObject * obj1 = 0 ;
11099 PyObject * obj2 = 0 ;
11100 char *kwnames[] = {
11101 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
11102 };
11103
11104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
11105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11107 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11109 if (obj2) {
11110 arg3 = (int)SWIG_As_int(obj2);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 }
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 result = (bool)(arg1)->SetCapture(arg2,arg3);
11116
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 {
11121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11122 }
11123 return resultobj;
11124 fail:
11125 return NULL;
11126 }
11127
11128
11129 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj;
11131 wxJoystick *arg1 = (wxJoystick *) 0 ;
11132 bool result;
11133 PyObject * obj0 = 0 ;
11134 char *kwnames[] = {
11135 (char *) "self", NULL
11136 };
11137
11138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
11139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (bool)(arg1)->ReleaseCapture();
11144
11145 wxPyEndAllowThreads(__tstate);
11146 if (PyErr_Occurred()) SWIG_fail;
11147 }
11148 {
11149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11150 }
11151 return resultobj;
11152 fail:
11153 return NULL;
11154 }
11155
11156
11157 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
11158 PyObject *obj;
11159 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11160 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11161 Py_INCREF(obj);
11162 return Py_BuildValue((char *)"");
11163 }
11164 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
11165 PyObject *resultobj;
11166 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11167 wxPoint *arg2 = (wxPoint *) 0 ;
11168 PyObject * obj0 = 0 ;
11169 PyObject * obj1 = 0 ;
11170 char *kwnames[] = {
11171 (char *) "self",(char *) "m_pos", NULL
11172 };
11173
11174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11177 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11179 if (arg1) (arg1)->m_pos = *arg2;
11180
11181 Py_INCREF(Py_None); resultobj = Py_None;
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj;
11190 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11191 wxPoint *result;
11192 PyObject * obj0 = 0 ;
11193 char *kwnames[] = {
11194 (char *) "self", NULL
11195 };
11196
11197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11200 result = (wxPoint *)& ((arg1)->m_pos);
11201
11202 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11203 return resultobj;
11204 fail:
11205 return NULL;
11206 }
11207
11208
11209 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
11210 PyObject *resultobj;
11211 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11212 int arg2 ;
11213 PyObject * obj0 = 0 ;
11214 PyObject * obj1 = 0 ;
11215 char *kwnames[] = {
11216 (char *) "self",(char *) "m_zPosition", NULL
11217 };
11218
11219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11222 arg2 = (int)SWIG_As_int(obj1);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 if (arg1) (arg1)->m_zPosition = arg2;
11225
11226 Py_INCREF(Py_None); resultobj = Py_None;
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
11234 PyObject *resultobj;
11235 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11236 int result;
11237 PyObject * obj0 = 0 ;
11238 char *kwnames[] = {
11239 (char *) "self", NULL
11240 };
11241
11242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11245 result = (int) ((arg1)->m_zPosition);
11246
11247 resultobj = SWIG_From_int((int)result);
11248 return resultobj;
11249 fail:
11250 return NULL;
11251 }
11252
11253
11254 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
11255 PyObject *resultobj;
11256 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11257 int arg2 ;
11258 PyObject * obj0 = 0 ;
11259 PyObject * obj1 = 0 ;
11260 char *kwnames[] = {
11261 (char *) "self",(char *) "m_buttonChange", NULL
11262 };
11263
11264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11267 arg2 = (int)SWIG_As_int(obj1);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 if (arg1) (arg1)->m_buttonChange = arg2;
11270
11271 Py_INCREF(Py_None); resultobj = Py_None;
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj;
11280 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11281 int result;
11282 PyObject * obj0 = 0 ;
11283 char *kwnames[] = {
11284 (char *) "self", NULL
11285 };
11286
11287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11290 result = (int) ((arg1)->m_buttonChange);
11291
11292 resultobj = SWIG_From_int((int)result);
11293 return resultobj;
11294 fail:
11295 return NULL;
11296 }
11297
11298
11299 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
11300 PyObject *resultobj;
11301 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11302 int arg2 ;
11303 PyObject * obj0 = 0 ;
11304 PyObject * obj1 = 0 ;
11305 char *kwnames[] = {
11306 (char *) "self",(char *) "m_buttonState", NULL
11307 };
11308
11309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11312 arg2 = (int)SWIG_As_int(obj1);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 if (arg1) (arg1)->m_buttonState = arg2;
11315
11316 Py_INCREF(Py_None); resultobj = Py_None;
11317 return resultobj;
11318 fail:
11319 return NULL;
11320 }
11321
11322
11323 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj;
11325 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11326 int result;
11327 PyObject * obj0 = 0 ;
11328 char *kwnames[] = {
11329 (char *) "self", NULL
11330 };
11331
11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11335 result = (int) ((arg1)->m_buttonState);
11336
11337 resultobj = SWIG_From_int((int)result);
11338 return resultobj;
11339 fail:
11340 return NULL;
11341 }
11342
11343
11344 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
11345 PyObject *resultobj;
11346 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11347 int arg2 ;
11348 PyObject * obj0 = 0 ;
11349 PyObject * obj1 = 0 ;
11350 char *kwnames[] = {
11351 (char *) "self",(char *) "m_joyStick", NULL
11352 };
11353
11354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11357 arg2 = (int)SWIG_As_int(obj1);
11358 if (PyErr_Occurred()) SWIG_fail;
11359 if (arg1) (arg1)->m_joyStick = arg2;
11360
11361 Py_INCREF(Py_None); resultobj = Py_None;
11362 return resultobj;
11363 fail:
11364 return NULL;
11365 }
11366
11367
11368 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
11369 PyObject *resultobj;
11370 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11371 int result;
11372 PyObject * obj0 = 0 ;
11373 char *kwnames[] = {
11374 (char *) "self", NULL
11375 };
11376
11377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11380 result = (int) ((arg1)->m_joyStick);
11381
11382 resultobj = SWIG_From_int((int)result);
11383 return resultobj;
11384 fail:
11385 return NULL;
11386 }
11387
11388
11389 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11390 PyObject *resultobj;
11391 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11392 int arg2 = (int) 0 ;
11393 int arg3 = (int) wxJOYSTICK1 ;
11394 int arg4 = (int) 0 ;
11395 wxJoystickEvent *result;
11396 PyObject * obj0 = 0 ;
11397 PyObject * obj1 = 0 ;
11398 PyObject * obj2 = 0 ;
11399 PyObject * obj3 = 0 ;
11400 char *kwnames[] = {
11401 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11402 };
11403
11404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11405 if (obj0) {
11406 arg1 = (wxEventType)SWIG_As_int(obj0);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 if (obj1) {
11410 arg2 = (int)SWIG_As_int(obj1);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 if (obj2) {
11414 arg3 = (int)SWIG_As_int(obj2);
11415 if (PyErr_Occurred()) SWIG_fail;
11416 }
11417 if (obj3) {
11418 arg4 = (int)SWIG_As_int(obj3);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 {
11422 PyThreadState* __tstate = wxPyBeginAllowThreads();
11423 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11424
11425 wxPyEndAllowThreads(__tstate);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11429 return resultobj;
11430 fail:
11431 return NULL;
11432 }
11433
11434
11435 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11436 PyObject *resultobj;
11437 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11438 wxPoint result;
11439 PyObject * obj0 = 0 ;
11440 char *kwnames[] = {
11441 (char *) "self", NULL
11442 };
11443
11444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11450
11451 wxPyEndAllowThreads(__tstate);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 {
11455 wxPoint * resultptr;
11456 resultptr = new wxPoint((wxPoint &) result);
11457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11458 }
11459 return resultobj;
11460 fail:
11461 return NULL;
11462 }
11463
11464
11465 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11466 PyObject *resultobj;
11467 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11468 int result;
11469 PyObject * obj0 = 0 ;
11470 char *kwnames[] = {
11471 (char *) "self", NULL
11472 };
11473
11474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11480
11481 wxPyEndAllowThreads(__tstate);
11482 if (PyErr_Occurred()) SWIG_fail;
11483 }
11484 resultobj = SWIG_From_int((int)result);
11485 return resultobj;
11486 fail:
11487 return NULL;
11488 }
11489
11490
11491 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11492 PyObject *resultobj;
11493 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11494 int result;
11495 PyObject * obj0 = 0 ;
11496 char *kwnames[] = {
11497 (char *) "self", NULL
11498 };
11499
11500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11506
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 resultobj = SWIG_From_int((int)result);
11511 return resultobj;
11512 fail:
11513 return NULL;
11514 }
11515
11516
11517 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11518 PyObject *resultobj;
11519 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11520 int result;
11521 PyObject * obj0 = 0 ;
11522 char *kwnames[] = {
11523 (char *) "self", NULL
11524 };
11525
11526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11532
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 resultobj = SWIG_From_int((int)result);
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj;
11545 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11546 int result;
11547 PyObject * obj0 = 0 ;
11548 char *kwnames[] = {
11549 (char *) "self", NULL
11550 };
11551
11552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11558
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 resultobj = SWIG_From_int((int)result);
11563 return resultobj;
11564 fail:
11565 return NULL;
11566 }
11567
11568
11569 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11570 PyObject *resultobj;
11571 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11572 int arg2 ;
11573 PyObject * obj0 = 0 ;
11574 PyObject * obj1 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "self",(char *) "stick", NULL
11577 };
11578
11579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11582 arg2 = (int)SWIG_As_int(obj1);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 (arg1)->SetJoystick(arg2);
11587
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 Py_INCREF(Py_None); resultobj = Py_None;
11592 return resultobj;
11593 fail:
11594 return NULL;
11595 }
11596
11597
11598 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj;
11600 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11601 int arg2 ;
11602 PyObject * obj0 = 0 ;
11603 PyObject * obj1 = 0 ;
11604 char *kwnames[] = {
11605 (char *) "self",(char *) "state", NULL
11606 };
11607
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11611 arg2 = (int)SWIG_As_int(obj1);
11612 if (PyErr_Occurred()) SWIG_fail;
11613 {
11614 PyThreadState* __tstate = wxPyBeginAllowThreads();
11615 (arg1)->SetButtonState(arg2);
11616
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 }
11620 Py_INCREF(Py_None); resultobj = Py_None;
11621 return resultobj;
11622 fail:
11623 return NULL;
11624 }
11625
11626
11627 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11628 PyObject *resultobj;
11629 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11630 int arg2 ;
11631 PyObject * obj0 = 0 ;
11632 PyObject * obj1 = 0 ;
11633 char *kwnames[] = {
11634 (char *) "self",(char *) "change", NULL
11635 };
11636
11637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11640 arg2 = (int)SWIG_As_int(obj1);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 (arg1)->SetButtonChange(arg2);
11645
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 Py_INCREF(Py_None); resultobj = Py_None;
11650 return resultobj;
11651 fail:
11652 return NULL;
11653 }
11654
11655
11656 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11657 PyObject *resultobj;
11658 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11659 wxPoint *arg2 = 0 ;
11660 wxPoint temp2 ;
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self",(char *) "pos", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 {
11671 arg2 = &temp2;
11672 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11673 }
11674 {
11675 PyThreadState* __tstate = wxPyBeginAllowThreads();
11676 (arg1)->SetPosition((wxPoint const &)*arg2);
11677
11678 wxPyEndAllowThreads(__tstate);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 }
11681 Py_INCREF(Py_None); resultobj = Py_None;
11682 return resultobj;
11683 fail:
11684 return NULL;
11685 }
11686
11687
11688 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11689 PyObject *resultobj;
11690 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11691 int arg2 ;
11692 PyObject * obj0 = 0 ;
11693 PyObject * obj1 = 0 ;
11694 char *kwnames[] = {
11695 (char *) "self",(char *) "zPos", NULL
11696 };
11697
11698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11701 arg2 = (int)SWIG_As_int(obj1);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 {
11704 PyThreadState* __tstate = wxPyBeginAllowThreads();
11705 (arg1)->SetZPosition(arg2);
11706
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 Py_INCREF(Py_None); resultobj = Py_None;
11711 return resultobj;
11712 fail:
11713 return NULL;
11714 }
11715
11716
11717 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
11718 PyObject *resultobj;
11719 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11720 bool result;
11721 PyObject * obj0 = 0 ;
11722 char *kwnames[] = {
11723 (char *) "self", NULL
11724 };
11725
11726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 {
11737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11738 }
11739 return resultobj;
11740 fail:
11741 return NULL;
11742 }
11743
11744
11745 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
11746 PyObject *resultobj;
11747 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11748 bool result;
11749 PyObject * obj0 = 0 ;
11750 char *kwnames[] = {
11751 (char *) "self", NULL
11752 };
11753
11754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11757 {
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11760
11761 wxPyEndAllowThreads(__tstate);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 {
11765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11766 }
11767 return resultobj;
11768 fail:
11769 return NULL;
11770 }
11771
11772
11773 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
11774 PyObject *resultobj;
11775 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11776 bool result;
11777 PyObject * obj0 = 0 ;
11778 char *kwnames[] = {
11779 (char *) "self", NULL
11780 };
11781
11782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11788
11789 wxPyEndAllowThreads(__tstate);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 {
11793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11794 }
11795 return resultobj;
11796 fail:
11797 return NULL;
11798 }
11799
11800
11801 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
11802 PyObject *resultobj;
11803 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11804 int arg2 = (int) wxJOY_BUTTON_ANY ;
11805 bool result;
11806 PyObject * obj0 = 0 ;
11807 PyObject * obj1 = 0 ;
11808 char *kwnames[] = {
11809 (char *) "self",(char *) "but", NULL
11810 };
11811
11812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11815 if (obj1) {
11816 arg2 = (int)SWIG_As_int(obj1);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11822
11823 wxPyEndAllowThreads(__tstate);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 }
11826 {
11827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11828 }
11829 return resultobj;
11830 fail:
11831 return NULL;
11832 }
11833
11834
11835 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
11836 PyObject *resultobj;
11837 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11838 int arg2 = (int) wxJOY_BUTTON_ANY ;
11839 bool result;
11840 PyObject * obj0 = 0 ;
11841 PyObject * obj1 = 0 ;
11842 char *kwnames[] = {
11843 (char *) "self",(char *) "but", NULL
11844 };
11845
11846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11849 if (obj1) {
11850 arg2 = (int)SWIG_As_int(obj1);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 {
11854 PyThreadState* __tstate = wxPyBeginAllowThreads();
11855 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11856
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 {
11861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11862 }
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj;
11871 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11872 int arg2 = (int) wxJOY_BUTTON_ANY ;
11873 bool result;
11874 PyObject * obj0 = 0 ;
11875 PyObject * obj1 = 0 ;
11876 char *kwnames[] = {
11877 (char *) "self",(char *) "but", NULL
11878 };
11879
11880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11883 if (obj1) {
11884 arg2 = (int)SWIG_As_int(obj1);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 }
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11890
11891 wxPyEndAllowThreads(__tstate);
11892 if (PyErr_Occurred()) SWIG_fail;
11893 }
11894 {
11895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11896 }
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
11904 PyObject *obj;
11905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11906 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11907 Py_INCREF(obj);
11908 return Py_BuildValue((char *)"");
11909 }
11910 static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11911 PyObject *resultobj;
11912 wxString const &arg1_defvalue = wxPyEmptyString ;
11913 wxString *arg1 = (wxString *) &arg1_defvalue ;
11914 wxSound *result;
11915 bool temp1 = false ;
11916 PyObject * obj0 = 0 ;
11917 char *kwnames[] = {
11918 (char *) "fileName", NULL
11919 };
11920
11921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11922 if (obj0) {
11923 {
11924 arg1 = wxString_in_helper(obj0);
11925 if (arg1 == NULL) SWIG_fail;
11926 temp1 = true;
11927 }
11928 }
11929 {
11930 if (!wxPyCheckForApp()) SWIG_fail;
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11933
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11938 {
11939 if (temp1)
11940 delete arg1;
11941 }
11942 return resultobj;
11943 fail:
11944 {
11945 if (temp1)
11946 delete arg1;
11947 }
11948 return NULL;
11949 }
11950
11951
11952 static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
11953 PyObject *resultobj;
11954 PyObject *arg1 = (PyObject *) 0 ;
11955 wxSound *result;
11956 PyObject * obj0 = 0 ;
11957 char *kwnames[] = {
11958 (char *) "data", NULL
11959 };
11960
11961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11962 arg1 = obj0;
11963 {
11964 if (!wxPyCheckForApp()) SWIG_fail;
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 result = (wxSound *)new_wxSound(arg1);
11967
11968 wxPyEndAllowThreads(__tstate);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 }
11971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11972 return resultobj;
11973 fail:
11974 return NULL;
11975 }
11976
11977
11978 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11979 PyObject *resultobj;
11980 wxSound *arg1 = (wxSound *) 0 ;
11981 PyObject * obj0 = 0 ;
11982 char *kwnames[] = {
11983 (char *) "self", NULL
11984 };
11985
11986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 delete arg1;
11992
11993 wxPyEndAllowThreads(__tstate);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 }
11996 Py_INCREF(Py_None); resultobj = Py_None;
11997 return resultobj;
11998 fail:
11999 return NULL;
12000 }
12001
12002
12003 static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12004 PyObject *resultobj;
12005 wxSound *arg1 = (wxSound *) 0 ;
12006 wxString *arg2 = 0 ;
12007 bool result;
12008 bool temp2 = false ;
12009 PyObject * obj0 = 0 ;
12010 PyObject * obj1 = 0 ;
12011 char *kwnames[] = {
12012 (char *) "self",(char *) "fileName", NULL
12013 };
12014
12015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
12016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12018 {
12019 arg2 = wxString_in_helper(obj1);
12020 if (arg2 == NULL) SWIG_fail;
12021 temp2 = true;
12022 }
12023 {
12024 PyThreadState* __tstate = wxPyBeginAllowThreads();
12025 result = (bool)(arg1)->Create((wxString const &)*arg2);
12026
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12032 }
12033 {
12034 if (temp2)
12035 delete arg2;
12036 }
12037 return resultobj;
12038 fail:
12039 {
12040 if (temp2)
12041 delete arg2;
12042 }
12043 return NULL;
12044 }
12045
12046
12047 static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
12048 PyObject *resultobj;
12049 wxSound *arg1 = (wxSound *) 0 ;
12050 PyObject *arg2 = (PyObject *) 0 ;
12051 bool result;
12052 PyObject * obj0 = 0 ;
12053 PyObject * obj1 = 0 ;
12054 char *kwnames[] = {
12055 (char *) "self",(char *) "data", NULL
12056 };
12057
12058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
12059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12061 arg2 = obj1;
12062 {
12063 PyThreadState* __tstate = wxPyBeginAllowThreads();
12064 result = (bool)wxSound_CreateFromData(arg1,arg2);
12065
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 {
12070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12071 }
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12079 PyObject *resultobj;
12080 wxSound *arg1 = (wxSound *) 0 ;
12081 bool result;
12082 PyObject * obj0 = 0 ;
12083 char *kwnames[] = {
12084 (char *) "self", NULL
12085 };
12086
12087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
12088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12090 {
12091 PyThreadState* __tstate = wxPyBeginAllowThreads();
12092 result = (bool)(arg1)->IsOk();
12093
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 {
12098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12099 }
12100 return resultobj;
12101 fail:
12102 return NULL;
12103 }
12104
12105
12106 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
12107 PyObject *resultobj;
12108 wxSound *arg1 = (wxSound *) 0 ;
12109 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12110 bool result;
12111 PyObject * obj0 = 0 ;
12112 PyObject * obj1 = 0 ;
12113 char *kwnames[] = {
12114 (char *) "self",(char *) "flags", NULL
12115 };
12116
12117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
12118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12120 if (obj1) {
12121 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 {
12125 if (!wxPyCheckForApp()) SWIG_fail;
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 result = (bool)((wxSound const *)arg1)->Play(arg2);
12128
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 {
12133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12134 }
12135 return resultobj;
12136 fail:
12137 return NULL;
12138 }
12139
12140
12141 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
12142 PyObject *resultobj;
12143 wxString *arg1 = 0 ;
12144 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12145 bool result;
12146 bool temp1 = false ;
12147 PyObject * obj0 = 0 ;
12148 PyObject * obj1 = 0 ;
12149 char *kwnames[] = {
12150 (char *) "filename",(char *) "flags", NULL
12151 };
12152
12153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
12154 {
12155 arg1 = wxString_in_helper(obj0);
12156 if (arg1 == NULL) SWIG_fail;
12157 temp1 = true;
12158 }
12159 if (obj1) {
12160 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12161 if (PyErr_Occurred()) SWIG_fail;
12162 }
12163 {
12164 if (!wxPyCheckForApp()) SWIG_fail;
12165 PyThreadState* __tstate = wxPyBeginAllowThreads();
12166 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12167
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 {
12172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12173 }
12174 {
12175 if (temp1)
12176 delete arg1;
12177 }
12178 return resultobj;
12179 fail:
12180 {
12181 if (temp1)
12182 delete arg1;
12183 }
12184 return NULL;
12185 }
12186
12187
12188 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
12189 PyObject *resultobj;
12190 char *kwnames[] = {
12191 NULL
12192 };
12193
12194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12195 {
12196 if (!wxPyCheckForApp()) SWIG_fail;
12197 PyThreadState* __tstate = wxPyBeginAllowThreads();
12198 Sound_Stop();
12199
12200 wxPyEndAllowThreads(__tstate);
12201 if (PyErr_Occurred()) SWIG_fail;
12202 }
12203 Py_INCREF(Py_None); resultobj = Py_None;
12204 return resultobj;
12205 fail:
12206 return NULL;
12207 }
12208
12209
12210 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
12211 PyObject *obj;
12212 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12213 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12214 Py_INCREF(obj);
12215 return Py_BuildValue((char *)"");
12216 }
12217 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12218 PyObject *resultobj;
12219 wxString *arg1 = 0 ;
12220 wxString *arg2 = 0 ;
12221 wxString *arg3 = 0 ;
12222 wxString *arg4 = 0 ;
12223 wxFileTypeInfo *result;
12224 bool temp1 = false ;
12225 bool temp2 = false ;
12226 bool temp3 = false ;
12227 bool temp4 = false ;
12228 PyObject * obj0 = 0 ;
12229 PyObject * obj1 = 0 ;
12230 PyObject * obj2 = 0 ;
12231 PyObject * obj3 = 0 ;
12232 char *kwnames[] = {
12233 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12234 };
12235
12236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12237 {
12238 arg1 = wxString_in_helper(obj0);
12239 if (arg1 == NULL) SWIG_fail;
12240 temp1 = true;
12241 }
12242 {
12243 arg2 = wxString_in_helper(obj1);
12244 if (arg2 == NULL) SWIG_fail;
12245 temp2 = true;
12246 }
12247 {
12248 arg3 = wxString_in_helper(obj2);
12249 if (arg3 == NULL) SWIG_fail;
12250 temp3 = true;
12251 }
12252 {
12253 arg4 = wxString_in_helper(obj3);
12254 if (arg4 == NULL) SWIG_fail;
12255 temp4 = true;
12256 }
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12260
12261 wxPyEndAllowThreads(__tstate);
12262 if (PyErr_Occurred()) SWIG_fail;
12263 }
12264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12265 {
12266 if (temp1)
12267 delete arg1;
12268 }
12269 {
12270 if (temp2)
12271 delete arg2;
12272 }
12273 {
12274 if (temp3)
12275 delete arg3;
12276 }
12277 {
12278 if (temp4)
12279 delete arg4;
12280 }
12281 return resultobj;
12282 fail:
12283 {
12284 if (temp1)
12285 delete arg1;
12286 }
12287 {
12288 if (temp2)
12289 delete arg2;
12290 }
12291 {
12292 if (temp3)
12293 delete arg3;
12294 }
12295 {
12296 if (temp4)
12297 delete arg4;
12298 }
12299 return NULL;
12300 }
12301
12302
12303 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
12304 PyObject *resultobj;
12305 wxArrayString *arg1 = 0 ;
12306 wxFileTypeInfo *result;
12307 bool temp1 = false ;
12308 PyObject * obj0 = 0 ;
12309 char *kwnames[] = {
12310 (char *) "sArray", NULL
12311 };
12312
12313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12314 {
12315 if (! PySequence_Check(obj0)) {
12316 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12317 SWIG_fail;
12318 }
12319 arg1 = new wxArrayString;
12320 temp1 = true;
12321 int i, len=PySequence_Length(obj0);
12322 for (i=0; i<len; i++) {
12323 PyObject* item = PySequence_GetItem(obj0, i);
12324 #if wxUSE_UNICODE
12325 PyObject* str = PyObject_Unicode(item);
12326 #else
12327 PyObject* str = PyObject_Str(item);
12328 #endif
12329 if (PyErr_Occurred()) SWIG_fail;
12330 arg1->Add(Py2wxString(str));
12331 Py_DECREF(item);
12332 Py_DECREF(str);
12333 }
12334 }
12335 {
12336 PyThreadState* __tstate = wxPyBeginAllowThreads();
12337 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12338
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12343 {
12344 if (temp1) delete arg1;
12345 }
12346 return resultobj;
12347 fail:
12348 {
12349 if (temp1) delete arg1;
12350 }
12351 return NULL;
12352 }
12353
12354
12355 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12356 PyObject *resultobj;
12357 wxFileTypeInfo *result;
12358 char *kwnames[] = {
12359 NULL
12360 };
12361
12362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12363 {
12364 PyThreadState* __tstate = wxPyBeginAllowThreads();
12365 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12366
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12371 return resultobj;
12372 fail:
12373 return NULL;
12374 }
12375
12376
12377 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
12378 PyObject *resultobj;
12379 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12380 bool result;
12381 PyObject * obj0 = 0 ;
12382 char *kwnames[] = {
12383 (char *) "self", NULL
12384 };
12385
12386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12389 {
12390 PyThreadState* __tstate = wxPyBeginAllowThreads();
12391 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12392
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 {
12397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12398 }
12399 return resultobj;
12400 fail:
12401 return NULL;
12402 }
12403
12404
12405 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12406 PyObject *resultobj;
12407 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12408 wxString *arg2 = 0 ;
12409 int arg3 = (int) 0 ;
12410 bool temp2 = false ;
12411 PyObject * obj0 = 0 ;
12412 PyObject * obj1 = 0 ;
12413 PyObject * obj2 = 0 ;
12414 char *kwnames[] = {
12415 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12416 };
12417
12418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12421 {
12422 arg2 = wxString_in_helper(obj1);
12423 if (arg2 == NULL) SWIG_fail;
12424 temp2 = true;
12425 }
12426 if (obj2) {
12427 arg3 = (int)SWIG_As_int(obj2);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12433
12434 wxPyEndAllowThreads(__tstate);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 }
12437 Py_INCREF(Py_None); resultobj = Py_None;
12438 {
12439 if (temp2)
12440 delete arg2;
12441 }
12442 return resultobj;
12443 fail:
12444 {
12445 if (temp2)
12446 delete arg2;
12447 }
12448 return NULL;
12449 }
12450
12451
12452 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12453 PyObject *resultobj;
12454 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12455 wxString *arg2 = 0 ;
12456 bool temp2 = false ;
12457 PyObject * obj0 = 0 ;
12458 PyObject * obj1 = 0 ;
12459 char *kwnames[] = {
12460 (char *) "self",(char *) "shortDesc", NULL
12461 };
12462
12463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12466 {
12467 arg2 = wxString_in_helper(obj1);
12468 if (arg2 == NULL) SWIG_fail;
12469 temp2 = true;
12470 }
12471 {
12472 PyThreadState* __tstate = wxPyBeginAllowThreads();
12473 (arg1)->SetShortDesc((wxString const &)*arg2);
12474
12475 wxPyEndAllowThreads(__tstate);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 Py_INCREF(Py_None); resultobj = Py_None;
12479 {
12480 if (temp2)
12481 delete arg2;
12482 }
12483 return resultobj;
12484 fail:
12485 {
12486 if (temp2)
12487 delete arg2;
12488 }
12489 return NULL;
12490 }
12491
12492
12493 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12494 PyObject *resultobj;
12495 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12496 wxString *result;
12497 PyObject * obj0 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self", NULL
12500 };
12501
12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 {
12508 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12509 result = (wxString *) &_result_ref;
12510 }
12511
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
12515 {
12516 #if wxUSE_UNICODE
12517 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12518 #else
12519 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12520 #endif
12521 }
12522 return resultobj;
12523 fail:
12524 return NULL;
12525 }
12526
12527
12528 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj;
12530 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12531 wxString *result;
12532 PyObject * obj0 = 0 ;
12533 char *kwnames[] = {
12534 (char *) "self", NULL
12535 };
12536
12537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12540 {
12541 PyThreadState* __tstate = wxPyBeginAllowThreads();
12542 {
12543 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12544 result = (wxString *) &_result_ref;
12545 }
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 {
12551 #if wxUSE_UNICODE
12552 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12553 #else
12554 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12555 #endif
12556 }
12557 return resultobj;
12558 fail:
12559 return NULL;
12560 }
12561
12562
12563 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj;
12565 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12566 wxString *result;
12567 PyObject * obj0 = 0 ;
12568 char *kwnames[] = {
12569 (char *) "self", NULL
12570 };
12571
12572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12575 {
12576 PyThreadState* __tstate = wxPyBeginAllowThreads();
12577 {
12578 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12579 result = (wxString *) &_result_ref;
12580 }
12581
12582 wxPyEndAllowThreads(__tstate);
12583 if (PyErr_Occurred()) SWIG_fail;
12584 }
12585 {
12586 #if wxUSE_UNICODE
12587 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12588 #else
12589 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12590 #endif
12591 }
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj;
12600 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12601 wxString *result;
12602 PyObject * obj0 = 0 ;
12603 char *kwnames[] = {
12604 (char *) "self", NULL
12605 };
12606
12607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 {
12613 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12614 result = (wxString *) &_result_ref;
12615 }
12616
12617 wxPyEndAllowThreads(__tstate);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 {
12621 #if wxUSE_UNICODE
12622 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12623 #else
12624 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12625 #endif
12626 }
12627 return resultobj;
12628 fail:
12629 return NULL;
12630 }
12631
12632
12633 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12634 PyObject *resultobj;
12635 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12636 wxString *result;
12637 PyObject * obj0 = 0 ;
12638 char *kwnames[] = {
12639 (char *) "self", NULL
12640 };
12641
12642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 {
12648 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12649 result = (wxString *) &_result_ref;
12650 }
12651
12652 wxPyEndAllowThreads(__tstate);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 }
12655 {
12656 #if wxUSE_UNICODE
12657 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12658 #else
12659 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12660 #endif
12661 }
12662 return resultobj;
12663 fail:
12664 return NULL;
12665 }
12666
12667
12668 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12669 PyObject *resultobj;
12670 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12671 wxArrayString *result;
12672 PyObject * obj0 = 0 ;
12673 char *kwnames[] = {
12674 (char *) "self", NULL
12675 };
12676
12677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 {
12683 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12684 result = (wxArrayString *) &_result_ref;
12685 }
12686
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 {
12691 resultobj = wxArrayString2PyList_helper(*result);
12692 }
12693 return resultobj;
12694 fail:
12695 return NULL;
12696 }
12697
12698
12699 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
12700 PyObject *resultobj;
12701 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12702 int result;
12703 PyObject * obj0 = 0 ;
12704 char *kwnames[] = {
12705 (char *) "self", NULL
12706 };
12707
12708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12711 {
12712 PyThreadState* __tstate = wxPyBeginAllowThreads();
12713 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12714
12715 wxPyEndAllowThreads(__tstate);
12716 if (PyErr_Occurred()) SWIG_fail;
12717 }
12718 resultobj = SWIG_From_int((int)result);
12719 return resultobj;
12720 fail:
12721 return NULL;
12722 }
12723
12724
12725 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
12726 PyObject *resultobj;
12727 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12728 wxString *result;
12729 PyObject * obj0 = 0 ;
12730 char *kwnames[] = {
12731 (char *) "self", NULL
12732 };
12733
12734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12737 {
12738 PyThreadState* __tstate = wxPyBeginAllowThreads();
12739 {
12740 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12741 result = (wxString *) &_result_ref;
12742 }
12743
12744 wxPyEndAllowThreads(__tstate);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 {
12748 #if wxUSE_UNICODE
12749 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12750 #else
12751 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12752 #endif
12753 }
12754 return resultobj;
12755 fail:
12756 return NULL;
12757 }
12758
12759
12760 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
12761 PyObject *resultobj;
12762 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12763 int result;
12764 PyObject * obj0 = 0 ;
12765 char *kwnames[] = {
12766 (char *) "self", NULL
12767 };
12768
12769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12775
12776 wxPyEndAllowThreads(__tstate);
12777 if (PyErr_Occurred()) SWIG_fail;
12778 }
12779 resultobj = SWIG_From_int((int)result);
12780 return resultobj;
12781 fail:
12782 return NULL;
12783 }
12784
12785
12786 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
12787 PyObject *obj;
12788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12789 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12790 Py_INCREF(obj);
12791 return Py_BuildValue((char *)"");
12792 }
12793 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12794 PyObject *resultobj;
12795 wxFileTypeInfo *arg1 = 0 ;
12796 wxFileType *result;
12797 PyObject * obj0 = 0 ;
12798 char *kwnames[] = {
12799 (char *) "ftInfo", NULL
12800 };
12801
12802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12804 SWIG_POINTER_EXCEPTION | 0)) == -1)
12805 SWIG_fail;
12806 if (arg1 == NULL) {
12807 PyErr_SetString(PyExc_TypeError,"null reference");
12808 SWIG_fail;
12809 }
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12813
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12818 return resultobj;
12819 fail:
12820 return NULL;
12821 }
12822
12823
12824 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12825 PyObject *resultobj;
12826 wxFileType *arg1 = (wxFileType *) 0 ;
12827 PyObject * obj0 = 0 ;
12828 char *kwnames[] = {
12829 (char *) "self", NULL
12830 };
12831
12832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 delete arg1;
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 Py_INCREF(Py_None); resultobj = Py_None;
12843 return resultobj;
12844 fail:
12845 return NULL;
12846 }
12847
12848
12849 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12850 PyObject *resultobj;
12851 wxFileType *arg1 = (wxFileType *) 0 ;
12852 PyObject *result;
12853 PyObject * obj0 = 0 ;
12854 char *kwnames[] = {
12855 (char *) "self", NULL
12856 };
12857
12858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12861 {
12862 PyThreadState* __tstate = wxPyBeginAllowThreads();
12863 result = (PyObject *)wxFileType_GetMimeType(arg1);
12864
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 resultobj = result;
12869 return resultobj;
12870 fail:
12871 return NULL;
12872 }
12873
12874
12875 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
12876 PyObject *resultobj;
12877 wxFileType *arg1 = (wxFileType *) 0 ;
12878 PyObject *result;
12879 PyObject * obj0 = 0 ;
12880 char *kwnames[] = {
12881 (char *) "self", NULL
12882 };
12883
12884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12887 {
12888 PyThreadState* __tstate = wxPyBeginAllowThreads();
12889 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12890
12891 wxPyEndAllowThreads(__tstate);
12892 if (PyErr_Occurred()) SWIG_fail;
12893 }
12894 resultobj = result;
12895 return resultobj;
12896 fail:
12897 return NULL;
12898 }
12899
12900
12901 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12902 PyObject *resultobj;
12903 wxFileType *arg1 = (wxFileType *) 0 ;
12904 PyObject *result;
12905 PyObject * obj0 = 0 ;
12906 char *kwnames[] = {
12907 (char *) "self", NULL
12908 };
12909
12910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12913 {
12914 PyThreadState* __tstate = wxPyBeginAllowThreads();
12915 result = (PyObject *)wxFileType_GetExtensions(arg1);
12916
12917 wxPyEndAllowThreads(__tstate);
12918 if (PyErr_Occurred()) SWIG_fail;
12919 }
12920 resultobj = result;
12921 return resultobj;
12922 fail:
12923 return NULL;
12924 }
12925
12926
12927 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12928 PyObject *resultobj;
12929 wxFileType *arg1 = (wxFileType *) 0 ;
12930 wxIcon *result;
12931 PyObject * obj0 = 0 ;
12932 char *kwnames[] = {
12933 (char *) "self", NULL
12934 };
12935
12936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 result = (wxIcon *)wxFileType_GetIcon(arg1);
12942
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12947 return resultobj;
12948 fail:
12949 return NULL;
12950 }
12951
12952
12953 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12954 PyObject *resultobj;
12955 wxFileType *arg1 = (wxFileType *) 0 ;
12956 PyObject *result;
12957 PyObject * obj0 = 0 ;
12958 char *kwnames[] = {
12959 (char *) "self", NULL
12960 };
12961
12962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12965 {
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12968
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 resultobj = result;
12973 return resultobj;
12974 fail:
12975 return NULL;
12976 }
12977
12978
12979 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12980 PyObject *resultobj;
12981 wxFileType *arg1 = (wxFileType *) 0 ;
12982 PyObject *result;
12983 PyObject * obj0 = 0 ;
12984 char *kwnames[] = {
12985 (char *) "self", NULL
12986 };
12987
12988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 result = (PyObject *)wxFileType_GetDescription(arg1);
12994
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 resultobj = result;
12999 return resultobj;
13000 fail:
13001 return NULL;
13002 }
13003
13004
13005 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13006 PyObject *resultobj;
13007 wxFileType *arg1 = (wxFileType *) 0 ;
13008 wxString *arg2 = 0 ;
13009 wxString const &arg3_defvalue = wxPyEmptyString ;
13010 wxString *arg3 = (wxString *) &arg3_defvalue ;
13011 PyObject *result;
13012 bool temp2 = false ;
13013 bool temp3 = false ;
13014 PyObject * obj0 = 0 ;
13015 PyObject * obj1 = 0 ;
13016 PyObject * obj2 = 0 ;
13017 char *kwnames[] = {
13018 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13019 };
13020
13021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13024 {
13025 arg2 = wxString_in_helper(obj1);
13026 if (arg2 == NULL) SWIG_fail;
13027 temp2 = true;
13028 }
13029 if (obj2) {
13030 {
13031 arg3 = wxString_in_helper(obj2);
13032 if (arg3 == NULL) SWIG_fail;
13033 temp3 = true;
13034 }
13035 }
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13039
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 resultobj = result;
13044 {
13045 if (temp2)
13046 delete arg2;
13047 }
13048 {
13049 if (temp3)
13050 delete arg3;
13051 }
13052 return resultobj;
13053 fail:
13054 {
13055 if (temp2)
13056 delete arg2;
13057 }
13058 {
13059 if (temp3)
13060 delete arg3;
13061 }
13062 return NULL;
13063 }
13064
13065
13066 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13067 PyObject *resultobj;
13068 wxFileType *arg1 = (wxFileType *) 0 ;
13069 wxString *arg2 = 0 ;
13070 wxString const &arg3_defvalue = wxPyEmptyString ;
13071 wxString *arg3 = (wxString *) &arg3_defvalue ;
13072 PyObject *result;
13073 bool temp2 = false ;
13074 bool temp3 = false ;
13075 PyObject * obj0 = 0 ;
13076 PyObject * obj1 = 0 ;
13077 PyObject * obj2 = 0 ;
13078 char *kwnames[] = {
13079 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13080 };
13081
13082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13085 {
13086 arg2 = wxString_in_helper(obj1);
13087 if (arg2 == NULL) SWIG_fail;
13088 temp2 = true;
13089 }
13090 if (obj2) {
13091 {
13092 arg3 = wxString_in_helper(obj2);
13093 if (arg3 == NULL) SWIG_fail;
13094 temp3 = true;
13095 }
13096 }
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 resultobj = result;
13105 {
13106 if (temp2)
13107 delete arg2;
13108 }
13109 {
13110 if (temp3)
13111 delete arg3;
13112 }
13113 return resultobj;
13114 fail:
13115 {
13116 if (temp2)
13117 delete arg2;
13118 }
13119 {
13120 if (temp3)
13121 delete arg3;
13122 }
13123 return NULL;
13124 }
13125
13126
13127 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj;
13129 wxFileType *arg1 = (wxFileType *) 0 ;
13130 wxString *arg2 = 0 ;
13131 wxString const &arg3_defvalue = wxPyEmptyString ;
13132 wxString *arg3 = (wxString *) &arg3_defvalue ;
13133 PyObject *result;
13134 bool temp2 = false ;
13135 bool temp3 = false ;
13136 PyObject * obj0 = 0 ;
13137 PyObject * obj1 = 0 ;
13138 PyObject * obj2 = 0 ;
13139 char *kwnames[] = {
13140 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13141 };
13142
13143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
13144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13146 {
13147 arg2 = wxString_in_helper(obj1);
13148 if (arg2 == NULL) SWIG_fail;
13149 temp2 = true;
13150 }
13151 if (obj2) {
13152 {
13153 arg3 = wxString_in_helper(obj2);
13154 if (arg3 == NULL) SWIG_fail;
13155 temp3 = true;
13156 }
13157 }
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13161
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 resultobj = result;
13166 {
13167 if (temp2)
13168 delete arg2;
13169 }
13170 {
13171 if (temp3)
13172 delete arg3;
13173 }
13174 return resultobj;
13175 fail:
13176 {
13177 if (temp2)
13178 delete arg2;
13179 }
13180 {
13181 if (temp3)
13182 delete arg3;
13183 }
13184 return NULL;
13185 }
13186
13187
13188 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj;
13190 wxFileType *arg1 = (wxFileType *) 0 ;
13191 wxString *arg2 = 0 ;
13192 wxString *arg3 = 0 ;
13193 bool arg4 = (bool) true ;
13194 bool result;
13195 bool temp2 = false ;
13196 bool temp3 = false ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 PyObject * obj2 = 0 ;
13200 PyObject * obj3 = 0 ;
13201 char *kwnames[] = {
13202 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13208 {
13209 arg2 = wxString_in_helper(obj1);
13210 if (arg2 == NULL) SWIG_fail;
13211 temp2 = true;
13212 }
13213 {
13214 arg3 = wxString_in_helper(obj2);
13215 if (arg3 == NULL) SWIG_fail;
13216 temp3 = true;
13217 }
13218 if (obj3) {
13219 arg4 = (bool)SWIG_As_bool(obj3);
13220 if (PyErr_Occurred()) SWIG_fail;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13225
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 {
13230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13231 }
13232 {
13233 if (temp2)
13234 delete arg2;
13235 }
13236 {
13237 if (temp3)
13238 delete arg3;
13239 }
13240 return resultobj;
13241 fail:
13242 {
13243 if (temp2)
13244 delete arg2;
13245 }
13246 {
13247 if (temp3)
13248 delete arg3;
13249 }
13250 return NULL;
13251 }
13252
13253
13254 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj;
13256 wxFileType *arg1 = (wxFileType *) 0 ;
13257 wxString const &arg2_defvalue = wxPyEmptyString ;
13258 wxString *arg2 = (wxString *) &arg2_defvalue ;
13259 int arg3 = (int) 0 ;
13260 bool result;
13261 bool temp2 = false ;
13262 PyObject * obj0 = 0 ;
13263 PyObject * obj1 = 0 ;
13264 PyObject * obj2 = 0 ;
13265 char *kwnames[] = {
13266 (char *) "self",(char *) "cmd",(char *) "index", NULL
13267 };
13268
13269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13272 if (obj1) {
13273 {
13274 arg2 = wxString_in_helper(obj1);
13275 if (arg2 == NULL) SWIG_fail;
13276 temp2 = true;
13277 }
13278 }
13279 if (obj2) {
13280 arg3 = (int)SWIG_As_int(obj2);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13286
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 {
13291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13292 }
13293 {
13294 if (temp2)
13295 delete arg2;
13296 }
13297 return resultobj;
13298 fail:
13299 {
13300 if (temp2)
13301 delete arg2;
13302 }
13303 return NULL;
13304 }
13305
13306
13307 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13308 PyObject *resultobj;
13309 wxFileType *arg1 = (wxFileType *) 0 ;
13310 bool result;
13311 PyObject * obj0 = 0 ;
13312 char *kwnames[] = {
13313 (char *) "self", NULL
13314 };
13315
13316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (bool)(arg1)->Unassociate();
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 {
13327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13328 }
13329 return resultobj;
13330 fail:
13331 return NULL;
13332 }
13333
13334
13335 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13336 PyObject *resultobj;
13337 wxString *arg1 = 0 ;
13338 wxString *arg2 = 0 ;
13339 wxString const &arg3_defvalue = wxPyEmptyString ;
13340 wxString *arg3 = (wxString *) &arg3_defvalue ;
13341 wxString result;
13342 bool temp1 = false ;
13343 bool temp2 = false ;
13344 bool temp3 = false ;
13345 PyObject * obj0 = 0 ;
13346 PyObject * obj1 = 0 ;
13347 PyObject * obj2 = 0 ;
13348 char *kwnames[] = {
13349 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13350 };
13351
13352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13353 {
13354 arg1 = wxString_in_helper(obj0);
13355 if (arg1 == NULL) SWIG_fail;
13356 temp1 = true;
13357 }
13358 {
13359 arg2 = wxString_in_helper(obj1);
13360 if (arg2 == NULL) SWIG_fail;
13361 temp2 = true;
13362 }
13363 if (obj2) {
13364 {
13365 arg3 = wxString_in_helper(obj2);
13366 if (arg3 == NULL) SWIG_fail;
13367 temp3 = true;
13368 }
13369 }
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13373
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378 #if wxUSE_UNICODE
13379 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13380 #else
13381 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13382 #endif
13383 }
13384 {
13385 if (temp1)
13386 delete arg1;
13387 }
13388 {
13389 if (temp2)
13390 delete arg2;
13391 }
13392 {
13393 if (temp3)
13394 delete arg3;
13395 }
13396 return resultobj;
13397 fail:
13398 {
13399 if (temp1)
13400 delete arg1;
13401 }
13402 {
13403 if (temp2)
13404 delete arg2;
13405 }
13406 {
13407 if (temp3)
13408 delete arg3;
13409 }
13410 return NULL;
13411 }
13412
13413
13414 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
13415 PyObject *obj;
13416 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13417 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13418 Py_INCREF(obj);
13419 return Py_BuildValue((char *)"");
13420 }
13421 static int _wrap_TheMimeTypesManager_set(PyObject *) {
13422 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13423 return 1;
13424 }
13425
13426
13427 static PyObject *_wrap_TheMimeTypesManager_get() {
13428 PyObject *pyobj;
13429
13430 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13431 return pyobj;
13432 }
13433
13434
13435 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
13436 PyObject *resultobj;
13437 wxString *arg1 = 0 ;
13438 wxString *arg2 = 0 ;
13439 bool result;
13440 bool temp1 = false ;
13441 bool temp2 = false ;
13442 PyObject * obj0 = 0 ;
13443 PyObject * obj1 = 0 ;
13444 char *kwnames[] = {
13445 (char *) "mimeType",(char *) "wildcard", NULL
13446 };
13447
13448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13449 {
13450 arg1 = wxString_in_helper(obj0);
13451 if (arg1 == NULL) SWIG_fail;
13452 temp1 = true;
13453 }
13454 {
13455 arg2 = wxString_in_helper(obj1);
13456 if (arg2 == NULL) SWIG_fail;
13457 temp2 = true;
13458 }
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 {
13467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13468 }
13469 {
13470 if (temp1)
13471 delete arg1;
13472 }
13473 {
13474 if (temp2)
13475 delete arg2;
13476 }
13477 return resultobj;
13478 fail:
13479 {
13480 if (temp1)
13481 delete arg1;
13482 }
13483 {
13484 if (temp2)
13485 delete arg2;
13486 }
13487 return NULL;
13488 }
13489
13490
13491 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13492 PyObject *resultobj;
13493 wxMimeTypesManager *result;
13494 char *kwnames[] = {
13495 NULL
13496 };
13497
13498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13502
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13507 return resultobj;
13508 fail:
13509 return NULL;
13510 }
13511
13512
13513 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
13514 PyObject *resultobj;
13515 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13516 int arg2 = (int) wxMAILCAP_ALL ;
13517 wxString const &arg3_defvalue = wxPyEmptyString ;
13518 wxString *arg3 = (wxString *) &arg3_defvalue ;
13519 bool temp3 = false ;
13520 PyObject * obj0 = 0 ;
13521 PyObject * obj1 = 0 ;
13522 PyObject * obj2 = 0 ;
13523 char *kwnames[] = {
13524 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13525 };
13526
13527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13530 if (obj1) {
13531 arg2 = (int)SWIG_As_int(obj1);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 if (obj2) {
13535 {
13536 arg3 = wxString_in_helper(obj2);
13537 if (arg3 == NULL) SWIG_fail;
13538 temp3 = true;
13539 }
13540 }
13541 {
13542 PyThreadState* __tstate = wxPyBeginAllowThreads();
13543 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13544
13545 wxPyEndAllowThreads(__tstate);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 Py_INCREF(Py_None); resultobj = Py_None;
13549 {
13550 if (temp3)
13551 delete arg3;
13552 }
13553 return resultobj;
13554 fail:
13555 {
13556 if (temp3)
13557 delete arg3;
13558 }
13559 return NULL;
13560 }
13561
13562
13563 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
13564 PyObject *resultobj;
13565 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13566 PyObject * obj0 = 0 ;
13567 char *kwnames[] = {
13568 (char *) "self", NULL
13569 };
13570
13571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 (arg1)->ClearData();
13577
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 Py_INCREF(Py_None); resultobj = Py_None;
13582 return resultobj;
13583 fail:
13584 return NULL;
13585 }
13586
13587
13588 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
13589 PyObject *resultobj;
13590 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13591 wxString *arg2 = 0 ;
13592 wxFileType *result;
13593 bool temp2 = false ;
13594 PyObject * obj0 = 0 ;
13595 PyObject * obj1 = 0 ;
13596 char *kwnames[] = {
13597 (char *) "self",(char *) "ext", NULL
13598 };
13599
13600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13603 {
13604 arg2 = wxString_in_helper(obj1);
13605 if (arg2 == NULL) SWIG_fail;
13606 temp2 = true;
13607 }
13608 {
13609 PyThreadState* __tstate = wxPyBeginAllowThreads();
13610 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13611
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13616 {
13617 if (temp2)
13618 delete arg2;
13619 }
13620 return resultobj;
13621 fail:
13622 {
13623 if (temp2)
13624 delete arg2;
13625 }
13626 return NULL;
13627 }
13628
13629
13630 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
13631 PyObject *resultobj;
13632 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13633 wxString *arg2 = 0 ;
13634 wxFileType *result;
13635 bool temp2 = false ;
13636 PyObject * obj0 = 0 ;
13637 PyObject * obj1 = 0 ;
13638 char *kwnames[] = {
13639 (char *) "self",(char *) "mimeType", NULL
13640 };
13641
13642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13645 {
13646 arg2 = wxString_in_helper(obj1);
13647 if (arg2 == NULL) SWIG_fail;
13648 temp2 = true;
13649 }
13650 {
13651 PyThreadState* __tstate = wxPyBeginAllowThreads();
13652 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13653
13654 wxPyEndAllowThreads(__tstate);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13658 {
13659 if (temp2)
13660 delete arg2;
13661 }
13662 return resultobj;
13663 fail:
13664 {
13665 if (temp2)
13666 delete arg2;
13667 }
13668 return NULL;
13669 }
13670
13671
13672 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
13673 PyObject *resultobj;
13674 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13675 wxString *arg2 = 0 ;
13676 bool arg3 = (bool) false ;
13677 bool result;
13678 bool temp2 = false ;
13679 PyObject * obj0 = 0 ;
13680 PyObject * obj1 = 0 ;
13681 PyObject * obj2 = 0 ;
13682 char *kwnames[] = {
13683 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13684 };
13685
13686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13689 {
13690 arg2 = wxString_in_helper(obj1);
13691 if (arg2 == NULL) SWIG_fail;
13692 temp2 = true;
13693 }
13694 if (obj2) {
13695 arg3 = (bool)SWIG_As_bool(obj2);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13701
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 {
13706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13707 }
13708 {
13709 if (temp2)
13710 delete arg2;
13711 }
13712 return resultobj;
13713 fail:
13714 {
13715 if (temp2)
13716 delete arg2;
13717 }
13718 return NULL;
13719 }
13720
13721
13722 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj;
13724 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13725 wxString *arg2 = 0 ;
13726 bool result;
13727 bool temp2 = false ;
13728 PyObject * obj0 = 0 ;
13729 PyObject * obj1 = 0 ;
13730 char *kwnames[] = {
13731 (char *) "self",(char *) "filename", NULL
13732 };
13733
13734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13737 {
13738 arg2 = wxString_in_helper(obj1);
13739 if (arg2 == NULL) SWIG_fail;
13740 temp2 = true;
13741 }
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13745
13746 wxPyEndAllowThreads(__tstate);
13747 if (PyErr_Occurred()) SWIG_fail;
13748 }
13749 {
13750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13751 }
13752 {
13753 if (temp2)
13754 delete arg2;
13755 }
13756 return resultobj;
13757 fail:
13758 {
13759 if (temp2)
13760 delete arg2;
13761 }
13762 return NULL;
13763 }
13764
13765
13766 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13767 PyObject *resultobj;
13768 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13769 PyObject *result;
13770 PyObject * obj0 = 0 ;
13771 char *kwnames[] = {
13772 (char *) "self", NULL
13773 };
13774
13775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13778 {
13779 PyThreadState* __tstate = wxPyBeginAllowThreads();
13780 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13781
13782 wxPyEndAllowThreads(__tstate);
13783 if (PyErr_Occurred()) SWIG_fail;
13784 }
13785 resultobj = result;
13786 return resultobj;
13787 fail:
13788 return NULL;
13789 }
13790
13791
13792 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
13793 PyObject *resultobj;
13794 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13795 wxFileTypeInfo *arg2 = 0 ;
13796 PyObject * obj0 = 0 ;
13797 PyObject * obj1 = 0 ;
13798 char *kwnames[] = {
13799 (char *) "self",(char *) "ft", NULL
13800 };
13801
13802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13806 SWIG_POINTER_EXCEPTION | 0)) == -1)
13807 SWIG_fail;
13808 if (arg2 == NULL) {
13809 PyErr_SetString(PyExc_TypeError,"null reference");
13810 SWIG_fail;
13811 }
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13815
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 Py_INCREF(Py_None); resultobj = Py_None;
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
13827 PyObject *resultobj;
13828 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13829 wxFileTypeInfo *arg2 = 0 ;
13830 wxFileType *result;
13831 PyObject * obj0 = 0 ;
13832 PyObject * obj1 = 0 ;
13833 char *kwnames[] = {
13834 (char *) "self",(char *) "ftInfo", NULL
13835 };
13836
13837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13841 SWIG_POINTER_EXCEPTION | 0)) == -1)
13842 SWIG_fail;
13843 if (arg2 == NULL) {
13844 PyErr_SetString(PyExc_TypeError,"null reference");
13845 SWIG_fail;
13846 }
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13864 wxFileType *arg2 = (wxFileType *) 0 ;
13865 bool result;
13866 PyObject * obj0 = 0 ;
13867 PyObject * obj1 = 0 ;
13868 char *kwnames[] = {
13869 (char *) "self",(char *) "ft", NULL
13870 };
13871
13872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13875 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 result = (bool)(arg1)->Unassociate(arg2);
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 {
13885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13886 }
13887 return resultobj;
13888 fail:
13889 return NULL;
13890 }
13891
13892
13893 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13894 PyObject *resultobj;
13895 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13896 PyObject * obj0 = 0 ;
13897 char *kwnames[] = {
13898 (char *) "self", NULL
13899 };
13900
13901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13904 {
13905 PyThreadState* __tstate = wxPyBeginAllowThreads();
13906 delete arg1;
13907
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 Py_INCREF(Py_None); resultobj = Py_None;
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
13919 PyObject *obj;
13920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13921 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13922 Py_INCREF(obj);
13923 return Py_BuildValue((char *)"");
13924 }
13925 static int _wrap_ART_TOOLBAR_set(PyObject *) {
13926 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13927 return 1;
13928 }
13929
13930
13931 static PyObject *_wrap_ART_TOOLBAR_get() {
13932 PyObject *pyobj;
13933
13934 {
13935 #if wxUSE_UNICODE
13936 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13937 #else
13938 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13939 #endif
13940 }
13941 return pyobj;
13942 }
13943
13944
13945 static int _wrap_ART_MENU_set(PyObject *) {
13946 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13947 return 1;
13948 }
13949
13950
13951 static PyObject *_wrap_ART_MENU_get() {
13952 PyObject *pyobj;
13953
13954 {
13955 #if wxUSE_UNICODE
13956 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13957 #else
13958 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13959 #endif
13960 }
13961 return pyobj;
13962 }
13963
13964
13965 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
13966 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13967 return 1;
13968 }
13969
13970
13971 static PyObject *_wrap_ART_FRAME_ICON_get() {
13972 PyObject *pyobj;
13973
13974 {
13975 #if wxUSE_UNICODE
13976 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13977 #else
13978 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13979 #endif
13980 }
13981 return pyobj;
13982 }
13983
13984
13985 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
13986 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13987 return 1;
13988 }
13989
13990
13991 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13992 PyObject *pyobj;
13993
13994 {
13995 #if wxUSE_UNICODE
13996 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13997 #else
13998 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13999 #endif
14000 }
14001 return pyobj;
14002 }
14003
14004
14005 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
14006 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
14007 return 1;
14008 }
14009
14010
14011 static PyObject *_wrap_ART_HELP_BROWSER_get() {
14012 PyObject *pyobj;
14013
14014 {
14015 #if wxUSE_UNICODE
14016 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14017 #else
14018 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14019 #endif
14020 }
14021 return pyobj;
14022 }
14023
14024
14025 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
14026 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
14027 return 1;
14028 }
14029
14030
14031 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
14032 PyObject *pyobj;
14033
14034 {
14035 #if wxUSE_UNICODE
14036 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14037 #else
14038 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14039 #endif
14040 }
14041 return pyobj;
14042 }
14043
14044
14045 static int _wrap_ART_BUTTON_set(PyObject *) {
14046 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
14047 return 1;
14048 }
14049
14050
14051 static PyObject *_wrap_ART_BUTTON_get() {
14052 PyObject *pyobj;
14053
14054 {
14055 #if wxUSE_UNICODE
14056 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14057 #else
14058 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14059 #endif
14060 }
14061 return pyobj;
14062 }
14063
14064
14065 static int _wrap_ART_OTHER_set(PyObject *) {
14066 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
14067 return 1;
14068 }
14069
14070
14071 static PyObject *_wrap_ART_OTHER_get() {
14072 PyObject *pyobj;
14073
14074 {
14075 #if wxUSE_UNICODE
14076 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14077 #else
14078 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14079 #endif
14080 }
14081 return pyobj;
14082 }
14083
14084
14085 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
14086 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
14087 return 1;
14088 }
14089
14090
14091 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
14092 PyObject *pyobj;
14093
14094 {
14095 #if wxUSE_UNICODE
14096 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14097 #else
14098 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14099 #endif
14100 }
14101 return pyobj;
14102 }
14103
14104
14105 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
14106 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
14107 return 1;
14108 }
14109
14110
14111 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
14112 PyObject *pyobj;
14113
14114 {
14115 #if wxUSE_UNICODE
14116 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14117 #else
14118 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14119 #endif
14120 }
14121 return pyobj;
14122 }
14123
14124
14125 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
14126 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
14127 return 1;
14128 }
14129
14130
14131 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
14132 PyObject *pyobj;
14133
14134 {
14135 #if wxUSE_UNICODE
14136 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14137 #else
14138 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14139 #endif
14140 }
14141 return pyobj;
14142 }
14143
14144
14145 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
14146 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
14147 return 1;
14148 }
14149
14150
14151 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14152 PyObject *pyobj;
14153
14154 {
14155 #if wxUSE_UNICODE
14156 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14157 #else
14158 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14159 #endif
14160 }
14161 return pyobj;
14162 }
14163
14164
14165 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
14166 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14167 return 1;
14168 }
14169
14170
14171 static PyObject *_wrap_ART_HELP_BOOK_get() {
14172 PyObject *pyobj;
14173
14174 {
14175 #if wxUSE_UNICODE
14176 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14177 #else
14178 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14179 #endif
14180 }
14181 return pyobj;
14182 }
14183
14184
14185 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
14186 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14187 return 1;
14188 }
14189
14190
14191 static PyObject *_wrap_ART_HELP_FOLDER_get() {
14192 PyObject *pyobj;
14193
14194 {
14195 #if wxUSE_UNICODE
14196 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14197 #else
14198 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14199 #endif
14200 }
14201 return pyobj;
14202 }
14203
14204
14205 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
14206 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14207 return 1;
14208 }
14209
14210
14211 static PyObject *_wrap_ART_HELP_PAGE_get() {
14212 PyObject *pyobj;
14213
14214 {
14215 #if wxUSE_UNICODE
14216 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14217 #else
14218 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14219 #endif
14220 }
14221 return pyobj;
14222 }
14223
14224
14225 static int _wrap_ART_GO_BACK_set(PyObject *) {
14226 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14227 return 1;
14228 }
14229
14230
14231 static PyObject *_wrap_ART_GO_BACK_get() {
14232 PyObject *pyobj;
14233
14234 {
14235 #if wxUSE_UNICODE
14236 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14237 #else
14238 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14239 #endif
14240 }
14241 return pyobj;
14242 }
14243
14244
14245 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
14246 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14247 return 1;
14248 }
14249
14250
14251 static PyObject *_wrap_ART_GO_FORWARD_get() {
14252 PyObject *pyobj;
14253
14254 {
14255 #if wxUSE_UNICODE
14256 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14257 #else
14258 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14259 #endif
14260 }
14261 return pyobj;
14262 }
14263
14264
14265 static int _wrap_ART_GO_UP_set(PyObject *) {
14266 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14267 return 1;
14268 }
14269
14270
14271 static PyObject *_wrap_ART_GO_UP_get() {
14272 PyObject *pyobj;
14273
14274 {
14275 #if wxUSE_UNICODE
14276 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14277 #else
14278 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14279 #endif
14280 }
14281 return pyobj;
14282 }
14283
14284
14285 static int _wrap_ART_GO_DOWN_set(PyObject *) {
14286 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14287 return 1;
14288 }
14289
14290
14291 static PyObject *_wrap_ART_GO_DOWN_get() {
14292 PyObject *pyobj;
14293
14294 {
14295 #if wxUSE_UNICODE
14296 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14297 #else
14298 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14299 #endif
14300 }
14301 return pyobj;
14302 }
14303
14304
14305 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
14306 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14307 return 1;
14308 }
14309
14310
14311 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14312 PyObject *pyobj;
14313
14314 {
14315 #if wxUSE_UNICODE
14316 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14317 #else
14318 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14319 #endif
14320 }
14321 return pyobj;
14322 }
14323
14324
14325 static int _wrap_ART_GO_HOME_set(PyObject *) {
14326 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14327 return 1;
14328 }
14329
14330
14331 static PyObject *_wrap_ART_GO_HOME_get() {
14332 PyObject *pyobj;
14333
14334 {
14335 #if wxUSE_UNICODE
14336 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14337 #else
14338 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14339 #endif
14340 }
14341 return pyobj;
14342 }
14343
14344
14345 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
14346 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14347 return 1;
14348 }
14349
14350
14351 static PyObject *_wrap_ART_FILE_OPEN_get() {
14352 PyObject *pyobj;
14353
14354 {
14355 #if wxUSE_UNICODE
14356 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14357 #else
14358 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14359 #endif
14360 }
14361 return pyobj;
14362 }
14363
14364
14365 static int _wrap_ART_PRINT_set(PyObject *) {
14366 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14367 return 1;
14368 }
14369
14370
14371 static PyObject *_wrap_ART_PRINT_get() {
14372 PyObject *pyobj;
14373
14374 {
14375 #if wxUSE_UNICODE
14376 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14377 #else
14378 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14379 #endif
14380 }
14381 return pyobj;
14382 }
14383
14384
14385 static int _wrap_ART_HELP_set(PyObject *) {
14386 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14387 return 1;
14388 }
14389
14390
14391 static PyObject *_wrap_ART_HELP_get() {
14392 PyObject *pyobj;
14393
14394 {
14395 #if wxUSE_UNICODE
14396 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14397 #else
14398 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14399 #endif
14400 }
14401 return pyobj;
14402 }
14403
14404
14405 static int _wrap_ART_TIP_set(PyObject *) {
14406 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14407 return 1;
14408 }
14409
14410
14411 static PyObject *_wrap_ART_TIP_get() {
14412 PyObject *pyobj;
14413
14414 {
14415 #if wxUSE_UNICODE
14416 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14417 #else
14418 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14419 #endif
14420 }
14421 return pyobj;
14422 }
14423
14424
14425 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
14426 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14427 return 1;
14428 }
14429
14430
14431 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14432 PyObject *pyobj;
14433
14434 {
14435 #if wxUSE_UNICODE
14436 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14437 #else
14438 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14439 #endif
14440 }
14441 return pyobj;
14442 }
14443
14444
14445 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
14446 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14447 return 1;
14448 }
14449
14450
14451 static PyObject *_wrap_ART_LIST_VIEW_get() {
14452 PyObject *pyobj;
14453
14454 {
14455 #if wxUSE_UNICODE
14456 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14457 #else
14458 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14459 #endif
14460 }
14461 return pyobj;
14462 }
14463
14464
14465 static int _wrap_ART_NEW_DIR_set(PyObject *) {
14466 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14467 return 1;
14468 }
14469
14470
14471 static PyObject *_wrap_ART_NEW_DIR_get() {
14472 PyObject *pyobj;
14473
14474 {
14475 #if wxUSE_UNICODE
14476 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14477 #else
14478 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14479 #endif
14480 }
14481 return pyobj;
14482 }
14483
14484
14485 static int _wrap_ART_FOLDER_set(PyObject *) {
14486 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14487 return 1;
14488 }
14489
14490
14491 static PyObject *_wrap_ART_FOLDER_get() {
14492 PyObject *pyobj;
14493
14494 {
14495 #if wxUSE_UNICODE
14496 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14497 #else
14498 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14499 #endif
14500 }
14501 return pyobj;
14502 }
14503
14504
14505 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
14506 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14507 return 1;
14508 }
14509
14510
14511 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14512 PyObject *pyobj;
14513
14514 {
14515 #if wxUSE_UNICODE
14516 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14517 #else
14518 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14519 #endif
14520 }
14521 return pyobj;
14522 }
14523
14524
14525 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
14526 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14527 return 1;
14528 }
14529
14530
14531 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14532 PyObject *pyobj;
14533
14534 {
14535 #if wxUSE_UNICODE
14536 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14537 #else
14538 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14539 #endif
14540 }
14541 return pyobj;
14542 }
14543
14544
14545 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
14546 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14547 return 1;
14548 }
14549
14550
14551 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14552 PyObject *pyobj;
14553
14554 {
14555 #if wxUSE_UNICODE
14556 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14557 #else
14558 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14559 #endif
14560 }
14561 return pyobj;
14562 }
14563
14564
14565 static int _wrap_ART_TICK_MARK_set(PyObject *) {
14566 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14567 return 1;
14568 }
14569
14570
14571 static PyObject *_wrap_ART_TICK_MARK_get() {
14572 PyObject *pyobj;
14573
14574 {
14575 #if wxUSE_UNICODE
14576 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14577 #else
14578 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14579 #endif
14580 }
14581 return pyobj;
14582 }
14583
14584
14585 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
14586 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14587 return 1;
14588 }
14589
14590
14591 static PyObject *_wrap_ART_CROSS_MARK_get() {
14592 PyObject *pyobj;
14593
14594 {
14595 #if wxUSE_UNICODE
14596 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14597 #else
14598 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14599 #endif
14600 }
14601 return pyobj;
14602 }
14603
14604
14605 static int _wrap_ART_ERROR_set(PyObject *) {
14606 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14607 return 1;
14608 }
14609
14610
14611 static PyObject *_wrap_ART_ERROR_get() {
14612 PyObject *pyobj;
14613
14614 {
14615 #if wxUSE_UNICODE
14616 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14617 #else
14618 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14619 #endif
14620 }
14621 return pyobj;
14622 }
14623
14624
14625 static int _wrap_ART_QUESTION_set(PyObject *) {
14626 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14627 return 1;
14628 }
14629
14630
14631 static PyObject *_wrap_ART_QUESTION_get() {
14632 PyObject *pyobj;
14633
14634 {
14635 #if wxUSE_UNICODE
14636 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14637 #else
14638 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14639 #endif
14640 }
14641 return pyobj;
14642 }
14643
14644
14645 static int _wrap_ART_WARNING_set(PyObject *) {
14646 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14647 return 1;
14648 }
14649
14650
14651 static PyObject *_wrap_ART_WARNING_get() {
14652 PyObject *pyobj;
14653
14654 {
14655 #if wxUSE_UNICODE
14656 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14657 #else
14658 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14659 #endif
14660 }
14661 return pyobj;
14662 }
14663
14664
14665 static int _wrap_ART_INFORMATION_set(PyObject *) {
14666 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14667 return 1;
14668 }
14669
14670
14671 static PyObject *_wrap_ART_INFORMATION_get() {
14672 PyObject *pyobj;
14673
14674 {
14675 #if wxUSE_UNICODE
14676 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14677 #else
14678 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14679 #endif
14680 }
14681 return pyobj;
14682 }
14683
14684
14685 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
14686 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14687 return 1;
14688 }
14689
14690
14691 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14692 PyObject *pyobj;
14693
14694 {
14695 #if wxUSE_UNICODE
14696 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14697 #else
14698 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14699 #endif
14700 }
14701 return pyobj;
14702 }
14703
14704
14705 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxPyArtProvider *result;
14708 char *kwnames[] = {
14709 NULL
14710 };
14711
14712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14713 {
14714 if (!wxPyCheckForApp()) SWIG_fail;
14715 PyThreadState* __tstate = wxPyBeginAllowThreads();
14716 result = (wxPyArtProvider *)new wxPyArtProvider();
14717
14718 wxPyEndAllowThreads(__tstate);
14719 if (PyErr_Occurred()) SWIG_fail;
14720 }
14721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14722 return resultobj;
14723 fail:
14724 return NULL;
14725 }
14726
14727
14728 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj;
14730 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14731 PyObject *arg2 = (PyObject *) 0 ;
14732 PyObject *arg3 = (PyObject *) 0 ;
14733 PyObject * obj0 = 0 ;
14734 PyObject * obj1 = 0 ;
14735 PyObject * obj2 = 0 ;
14736 char *kwnames[] = {
14737 (char *) "self",(char *) "self",(char *) "_class", NULL
14738 };
14739
14740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14743 arg2 = obj1;
14744 arg3 = obj2;
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 (arg1)->_setCallbackInfo(arg2,arg3);
14748
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 Py_INCREF(Py_None); resultobj = Py_None;
14753 return resultobj;
14754 fail:
14755 return NULL;
14756 }
14757
14758
14759 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14762 PyObject * obj0 = 0 ;
14763 char *kwnames[] = {
14764 (char *) "provider", NULL
14765 };
14766
14767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 wxPyArtProvider::PushProvider(arg1);
14773
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 Py_INCREF(Py_None); resultobj = Py_None;
14778 return resultobj;
14779 fail:
14780 return NULL;
14781 }
14782
14783
14784 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14785 PyObject *resultobj;
14786 bool result;
14787 char *kwnames[] = {
14788 NULL
14789 };
14790
14791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14792 {
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = (bool)wxPyArtProvider::PopProvider();
14795
14796 wxPyEndAllowThreads(__tstate);
14797 if (PyErr_Occurred()) SWIG_fail;
14798 }
14799 {
14800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14801 }
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj;
14810 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14811 bool result;
14812 PyObject * obj0 = 0 ;
14813 char *kwnames[] = {
14814 (char *) "provider", NULL
14815 };
14816
14817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14823
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 {
14828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14829 }
14830 return resultobj;
14831 fail:
14832 return NULL;
14833 }
14834
14835
14836 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14837 PyObject *resultobj;
14838 wxString *arg1 = 0 ;
14839 wxString const &arg2_defvalue = wxPyART_OTHER ;
14840 wxString *arg2 = (wxString *) &arg2_defvalue ;
14841 wxSize const &arg3_defvalue = wxDefaultSize ;
14842 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14843 wxBitmap result;
14844 bool temp1 = false ;
14845 bool temp2 = false ;
14846 wxSize temp3 ;
14847 PyObject * obj0 = 0 ;
14848 PyObject * obj1 = 0 ;
14849 PyObject * obj2 = 0 ;
14850 char *kwnames[] = {
14851 (char *) "id",(char *) "client",(char *) "size", NULL
14852 };
14853
14854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14855 {
14856 arg1 = wxString_in_helper(obj0);
14857 if (arg1 == NULL) SWIG_fail;
14858 temp1 = true;
14859 }
14860 if (obj1) {
14861 {
14862 arg2 = wxString_in_helper(obj1);
14863 if (arg2 == NULL) SWIG_fail;
14864 temp2 = true;
14865 }
14866 }
14867 if (obj2) {
14868 {
14869 arg3 = &temp3;
14870 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14871 }
14872 }
14873 {
14874 if (!wxPyCheckForApp()) SWIG_fail;
14875 PyThreadState* __tstate = wxPyBeginAllowThreads();
14876 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14877
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 {
14882 wxBitmap * resultptr;
14883 resultptr = new wxBitmap((wxBitmap &) result);
14884 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14885 }
14886 {
14887 if (temp1)
14888 delete arg1;
14889 }
14890 {
14891 if (temp2)
14892 delete arg2;
14893 }
14894 return resultobj;
14895 fail:
14896 {
14897 if (temp1)
14898 delete arg1;
14899 }
14900 {
14901 if (temp2)
14902 delete arg2;
14903 }
14904 return NULL;
14905 }
14906
14907
14908 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14909 PyObject *resultobj;
14910 wxString *arg1 = 0 ;
14911 wxString const &arg2_defvalue = wxPyART_OTHER ;
14912 wxString *arg2 = (wxString *) &arg2_defvalue ;
14913 wxSize const &arg3_defvalue = wxDefaultSize ;
14914 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14915 wxIcon result;
14916 bool temp1 = false ;
14917 bool temp2 = false ;
14918 wxSize temp3 ;
14919 PyObject * obj0 = 0 ;
14920 PyObject * obj1 = 0 ;
14921 PyObject * obj2 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "id",(char *) "client",(char *) "size", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14927 {
14928 arg1 = wxString_in_helper(obj0);
14929 if (arg1 == NULL) SWIG_fail;
14930 temp1 = true;
14931 }
14932 if (obj1) {
14933 {
14934 arg2 = wxString_in_helper(obj1);
14935 if (arg2 == NULL) SWIG_fail;
14936 temp2 = true;
14937 }
14938 }
14939 if (obj2) {
14940 {
14941 arg3 = &temp3;
14942 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14943 }
14944 }
14945 {
14946 if (!wxPyCheckForApp()) SWIG_fail;
14947 PyThreadState* __tstate = wxPyBeginAllowThreads();
14948 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14949
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 {
14954 wxIcon * resultptr;
14955 resultptr = new wxIcon((wxIcon &) result);
14956 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14957 }
14958 {
14959 if (temp1)
14960 delete arg1;
14961 }
14962 {
14963 if (temp2)
14964 delete arg2;
14965 }
14966 return resultobj;
14967 fail:
14968 {
14969 if (temp1)
14970 delete arg1;
14971 }
14972 {
14973 if (temp2)
14974 delete arg2;
14975 }
14976 return NULL;
14977 }
14978
14979
14980 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
14981 PyObject *resultobj;
14982 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14983 PyObject * obj0 = 0 ;
14984 char *kwnames[] = {
14985 (char *) "self", NULL
14986 };
14987
14988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 wxPyArtProvider_Destroy(arg1);
14994
14995 wxPyEndAllowThreads(__tstate);
14996 if (PyErr_Occurred()) SWIG_fail;
14997 }
14998 Py_INCREF(Py_None); resultobj = Py_None;
14999 return resultobj;
15000 fail:
15001 return NULL;
15002 }
15003
15004
15005 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
15006 PyObject *obj;
15007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15008 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
15009 Py_INCREF(obj);
15010 return Py_BuildValue((char *)"");
15011 }
15012 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj;
15014 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15015 PyObject * obj0 = 0 ;
15016 char *kwnames[] = {
15017 (char *) "self", NULL
15018 };
15019
15020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
15021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15023 {
15024 PyThreadState* __tstate = wxPyBeginAllowThreads();
15025 delete arg1;
15026
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 Py_INCREF(Py_None); resultobj = Py_None;
15031 return resultobj;
15032 fail:
15033 return NULL;
15034 }
15035
15036
15037 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
15038 PyObject *resultobj;
15039 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15040 wxConfigBase *result;
15041 PyObject * obj0 = 0 ;
15042 char *kwnames[] = {
15043 (char *) "config", NULL
15044 };
15045
15046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
15047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15049 {
15050 PyThreadState* __tstate = wxPyBeginAllowThreads();
15051 result = (wxConfigBase *)wxConfigBase::Set(arg1);
15052
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15057 return resultobj;
15058 fail:
15059 return NULL;
15060 }
15061
15062
15063 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
15064 PyObject *resultobj;
15065 bool arg1 = (bool) true ;
15066 wxConfigBase *result;
15067 PyObject * obj0 = 0 ;
15068 char *kwnames[] = {
15069 (char *) "createOnDemand", NULL
15070 };
15071
15072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
15073 if (obj0) {
15074 arg1 = (bool)SWIG_As_bool(obj0);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = (wxConfigBase *)wxConfigBase::Get(arg1);
15080
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15085 return resultobj;
15086 fail:
15087 return NULL;
15088 }
15089
15090
15091 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15092 PyObject *resultobj;
15093 wxConfigBase *result;
15094 char *kwnames[] = {
15095 NULL
15096 };
15097
15098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
15099 {
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 result = (wxConfigBase *)wxConfigBase::Create();
15102
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15107 return resultobj;
15108 fail:
15109 return NULL;
15110 }
15111
15112
15113 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj;
15115 char *kwnames[] = {
15116 NULL
15117 };
15118
15119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
15120 {
15121 PyThreadState* __tstate = wxPyBeginAllowThreads();
15122 wxConfigBase::DontCreateOnDemand();
15123
15124 wxPyEndAllowThreads(__tstate);
15125 if (PyErr_Occurred()) SWIG_fail;
15126 }
15127 Py_INCREF(Py_None); resultobj = Py_None;
15128 return resultobj;
15129 fail:
15130 return NULL;
15131 }
15132
15133
15134 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15135 PyObject *resultobj;
15136 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15137 wxString *arg2 = 0 ;
15138 bool temp2 = false ;
15139 PyObject * obj0 = 0 ;
15140 PyObject * obj1 = 0 ;
15141 char *kwnames[] = {
15142 (char *) "self",(char *) "path", NULL
15143 };
15144
15145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15148 {
15149 arg2 = wxString_in_helper(obj1);
15150 if (arg2 == NULL) SWIG_fail;
15151 temp2 = true;
15152 }
15153 {
15154 PyThreadState* __tstate = wxPyBeginAllowThreads();
15155 (arg1)->SetPath((wxString const &)*arg2);
15156
15157 wxPyEndAllowThreads(__tstate);
15158 if (PyErr_Occurred()) SWIG_fail;
15159 }
15160 Py_INCREF(Py_None); resultobj = Py_None;
15161 {
15162 if (temp2)
15163 delete arg2;
15164 }
15165 return resultobj;
15166 fail:
15167 {
15168 if (temp2)
15169 delete arg2;
15170 }
15171 return NULL;
15172 }
15173
15174
15175 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15176 PyObject *resultobj;
15177 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15178 wxString *result;
15179 PyObject * obj0 = 0 ;
15180 char *kwnames[] = {
15181 (char *) "self", NULL
15182 };
15183
15184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15187 {
15188 PyThreadState* __tstate = wxPyBeginAllowThreads();
15189 {
15190 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15191 result = (wxString *) &_result_ref;
15192 }
15193
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 {
15198 #if wxUSE_UNICODE
15199 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15200 #else
15201 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15202 #endif
15203 }
15204 return resultobj;
15205 fail:
15206 return NULL;
15207 }
15208
15209
15210 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15211 PyObject *resultobj;
15212 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15213 PyObject *result;
15214 PyObject * obj0 = 0 ;
15215 char *kwnames[] = {
15216 (char *) "self", NULL
15217 };
15218
15219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15222 {
15223 PyThreadState* __tstate = wxPyBeginAllowThreads();
15224 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15225
15226 wxPyEndAllowThreads(__tstate);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 resultobj = result;
15230 return resultobj;
15231 fail:
15232 return NULL;
15233 }
15234
15235
15236 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj;
15238 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15239 long arg2 ;
15240 PyObject *result;
15241 PyObject * obj0 = 0 ;
15242 PyObject * obj1 = 0 ;
15243 char *kwnames[] = {
15244 (char *) "self",(char *) "index", NULL
15245 };
15246
15247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15250 arg2 = (long)SWIG_As_long(obj1);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 {
15253 PyThreadState* __tstate = wxPyBeginAllowThreads();
15254 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15255
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = result;
15260 return resultobj;
15261 fail:
15262 return NULL;
15263 }
15264
15265
15266 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15267 PyObject *resultobj;
15268 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15269 PyObject *result;
15270 PyObject * obj0 = 0 ;
15271 char *kwnames[] = {
15272 (char *) "self", NULL
15273 };
15274
15275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15278 {
15279 PyThreadState* __tstate = wxPyBeginAllowThreads();
15280 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15281
15282 wxPyEndAllowThreads(__tstate);
15283 if (PyErr_Occurred()) SWIG_fail;
15284 }
15285 resultobj = result;
15286 return resultobj;
15287 fail:
15288 return NULL;
15289 }
15290
15291
15292 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15293 PyObject *resultobj;
15294 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15295 long arg2 ;
15296 PyObject *result;
15297 PyObject * obj0 = 0 ;
15298 PyObject * obj1 = 0 ;
15299 char *kwnames[] = {
15300 (char *) "self",(char *) "index", NULL
15301 };
15302
15303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15306 arg2 = (long)SWIG_As_long(obj1);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 {
15309 PyThreadState* __tstate = wxPyBeginAllowThreads();
15310 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15311
15312 wxPyEndAllowThreads(__tstate);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
15315 resultobj = result;
15316 return resultobj;
15317 fail:
15318 return NULL;
15319 }
15320
15321
15322 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
15323 PyObject *resultobj;
15324 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15325 bool arg2 = (bool) false ;
15326 size_t result;
15327 PyObject * obj0 = 0 ;
15328 PyObject * obj1 = 0 ;
15329 char *kwnames[] = {
15330 (char *) "self",(char *) "recursive", NULL
15331 };
15332
15333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15336 if (obj1) {
15337 arg2 = (bool)SWIG_As_bool(obj1);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 {
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15343
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15348 return resultobj;
15349 fail:
15350 return NULL;
15351 }
15352
15353
15354 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj;
15356 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15357 bool arg2 = (bool) false ;
15358 size_t result;
15359 PyObject * obj0 = 0 ;
15360 PyObject * obj1 = 0 ;
15361 char *kwnames[] = {
15362 (char *) "self",(char *) "recursive", NULL
15363 };
15364
15365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15368 if (obj1) {
15369 arg2 = (bool)SWIG_As_bool(obj1);
15370 if (PyErr_Occurred()) SWIG_fail;
15371 }
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj;
15388 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15389 wxString *arg2 = 0 ;
15390 bool result;
15391 bool temp2 = false ;
15392 PyObject * obj0 = 0 ;
15393 PyObject * obj1 = 0 ;
15394 char *kwnames[] = {
15395 (char *) "self",(char *) "name", NULL
15396 };
15397
15398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15401 {
15402 arg2 = wxString_in_helper(obj1);
15403 if (arg2 == NULL) SWIG_fail;
15404 temp2 = true;
15405 }
15406 {
15407 PyThreadState* __tstate = wxPyBeginAllowThreads();
15408 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15409
15410 wxPyEndAllowThreads(__tstate);
15411 if (PyErr_Occurred()) SWIG_fail;
15412 }
15413 {
15414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15415 }
15416 {
15417 if (temp2)
15418 delete arg2;
15419 }
15420 return resultobj;
15421 fail:
15422 {
15423 if (temp2)
15424 delete arg2;
15425 }
15426 return NULL;
15427 }
15428
15429
15430 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj;
15432 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15433 wxString *arg2 = 0 ;
15434 bool result;
15435 bool temp2 = false ;
15436 PyObject * obj0 = 0 ;
15437 PyObject * obj1 = 0 ;
15438 char *kwnames[] = {
15439 (char *) "self",(char *) "name", NULL
15440 };
15441
15442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15445 {
15446 arg2 = wxString_in_helper(obj1);
15447 if (arg2 == NULL) SWIG_fail;
15448 temp2 = true;
15449 }
15450 {
15451 PyThreadState* __tstate = wxPyBeginAllowThreads();
15452 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15453
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 {
15458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15459 }
15460 {
15461 if (temp2)
15462 delete arg2;
15463 }
15464 return resultobj;
15465 fail:
15466 {
15467 if (temp2)
15468 delete arg2;
15469 }
15470 return NULL;
15471 }
15472
15473
15474 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
15475 PyObject *resultobj;
15476 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15477 wxString *arg2 = 0 ;
15478 bool result;
15479 bool temp2 = false ;
15480 PyObject * obj0 = 0 ;
15481 PyObject * obj1 = 0 ;
15482 char *kwnames[] = {
15483 (char *) "self",(char *) "name", NULL
15484 };
15485
15486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15489 {
15490 arg2 = wxString_in_helper(obj1);
15491 if (arg2 == NULL) SWIG_fail;
15492 temp2 = true;
15493 }
15494 {
15495 PyThreadState* __tstate = wxPyBeginAllowThreads();
15496 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15497
15498 wxPyEndAllowThreads(__tstate);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 {
15502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15503 }
15504 {
15505 if (temp2)
15506 delete arg2;
15507 }
15508 return resultobj;
15509 fail:
15510 {
15511 if (temp2)
15512 delete arg2;
15513 }
15514 return NULL;
15515 }
15516
15517
15518 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
15519 PyObject *resultobj;
15520 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15521 wxString *arg2 = 0 ;
15522 int result;
15523 bool temp2 = false ;
15524 PyObject * obj0 = 0 ;
15525 PyObject * obj1 = 0 ;
15526 char *kwnames[] = {
15527 (char *) "self",(char *) "name", NULL
15528 };
15529
15530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15533 {
15534 arg2 = wxString_in_helper(obj1);
15535 if (arg2 == NULL) SWIG_fail;
15536 temp2 = true;
15537 }
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15541
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 resultobj = SWIG_From_int((int)result);
15546 {
15547 if (temp2)
15548 delete arg2;
15549 }
15550 return resultobj;
15551 fail:
15552 {
15553 if (temp2)
15554 delete arg2;
15555 }
15556 return NULL;
15557 }
15558
15559
15560 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
15561 PyObject *resultobj;
15562 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15563 wxString *arg2 = 0 ;
15564 wxString const &arg3_defvalue = wxPyEmptyString ;
15565 wxString *arg3 = (wxString *) &arg3_defvalue ;
15566 wxString result;
15567 bool temp2 = false ;
15568 bool temp3 = false ;
15569 PyObject * obj0 = 0 ;
15570 PyObject * obj1 = 0 ;
15571 PyObject * obj2 = 0 ;
15572 char *kwnames[] = {
15573 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15574 };
15575
15576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15579 {
15580 arg2 = wxString_in_helper(obj1);
15581 if (arg2 == NULL) SWIG_fail;
15582 temp2 = true;
15583 }
15584 if (obj2) {
15585 {
15586 arg3 = wxString_in_helper(obj2);
15587 if (arg3 == NULL) SWIG_fail;
15588 temp3 = true;
15589 }
15590 }
15591 {
15592 PyThreadState* __tstate = wxPyBeginAllowThreads();
15593 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15594
15595 wxPyEndAllowThreads(__tstate);
15596 if (PyErr_Occurred()) SWIG_fail;
15597 }
15598 {
15599 #if wxUSE_UNICODE
15600 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15601 #else
15602 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15603 #endif
15604 }
15605 {
15606 if (temp2)
15607 delete arg2;
15608 }
15609 {
15610 if (temp3)
15611 delete arg3;
15612 }
15613 return resultobj;
15614 fail:
15615 {
15616 if (temp2)
15617 delete arg2;
15618 }
15619 {
15620 if (temp3)
15621 delete arg3;
15622 }
15623 return NULL;
15624 }
15625
15626
15627 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
15628 PyObject *resultobj;
15629 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15630 wxString *arg2 = 0 ;
15631 long arg3 = (long) 0 ;
15632 long result;
15633 bool temp2 = false ;
15634 PyObject * obj0 = 0 ;
15635 PyObject * obj1 = 0 ;
15636 PyObject * obj2 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 {
15645 arg2 = wxString_in_helper(obj1);
15646 if (arg2 == NULL) SWIG_fail;
15647 temp2 = true;
15648 }
15649 if (obj2) {
15650 arg3 = (long)SWIG_As_long(obj2);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 {
15654 PyThreadState* __tstate = wxPyBeginAllowThreads();
15655 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15656
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 resultobj = SWIG_From_long((long)result);
15661 {
15662 if (temp2)
15663 delete arg2;
15664 }
15665 return resultobj;
15666 fail:
15667 {
15668 if (temp2)
15669 delete arg2;
15670 }
15671 return NULL;
15672 }
15673
15674
15675 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15676 PyObject *resultobj;
15677 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15678 wxString *arg2 = 0 ;
15679 double arg3 = (double) 0.0 ;
15680 double result;
15681 bool temp2 = false ;
15682 PyObject * obj0 = 0 ;
15683 PyObject * obj1 = 0 ;
15684 PyObject * obj2 = 0 ;
15685 char *kwnames[] = {
15686 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15687 };
15688
15689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15692 {
15693 arg2 = wxString_in_helper(obj1);
15694 if (arg2 == NULL) SWIG_fail;
15695 temp2 = true;
15696 }
15697 if (obj2) {
15698 arg3 = (double)SWIG_As_double(obj2);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 {
15702 PyThreadState* __tstate = wxPyBeginAllowThreads();
15703 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15704
15705 wxPyEndAllowThreads(__tstate);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 resultobj = SWIG_From_double((double)result);
15709 {
15710 if (temp2)
15711 delete arg2;
15712 }
15713 return resultobj;
15714 fail:
15715 {
15716 if (temp2)
15717 delete arg2;
15718 }
15719 return NULL;
15720 }
15721
15722
15723 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
15724 PyObject *resultobj;
15725 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15726 wxString *arg2 = 0 ;
15727 bool arg3 = (bool) false ;
15728 bool result;
15729 bool temp2 = false ;
15730 PyObject * obj0 = 0 ;
15731 PyObject * obj1 = 0 ;
15732 PyObject * obj2 = 0 ;
15733 char *kwnames[] = {
15734 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15735 };
15736
15737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15740 {
15741 arg2 = wxString_in_helper(obj1);
15742 if (arg2 == NULL) SWIG_fail;
15743 temp2 = true;
15744 }
15745 if (obj2) {
15746 arg3 = (bool)SWIG_As_bool(obj2);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15752
15753 wxPyEndAllowThreads(__tstate);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
15756 {
15757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15758 }
15759 {
15760 if (temp2)
15761 delete arg2;
15762 }
15763 return resultobj;
15764 fail:
15765 {
15766 if (temp2)
15767 delete arg2;
15768 }
15769 return NULL;
15770 }
15771
15772
15773 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj;
15775 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15776 wxString *arg2 = 0 ;
15777 wxString *arg3 = 0 ;
15778 bool result;
15779 bool temp2 = false ;
15780 bool temp3 = false ;
15781 PyObject * obj0 = 0 ;
15782 PyObject * obj1 = 0 ;
15783 PyObject * obj2 = 0 ;
15784 char *kwnames[] = {
15785 (char *) "self",(char *) "key",(char *) "value", NULL
15786 };
15787
15788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15791 {
15792 arg2 = wxString_in_helper(obj1);
15793 if (arg2 == NULL) SWIG_fail;
15794 temp2 = true;
15795 }
15796 {
15797 arg3 = wxString_in_helper(obj2);
15798 if (arg3 == NULL) SWIG_fail;
15799 temp3 = true;
15800 }
15801 {
15802 PyThreadState* __tstate = wxPyBeginAllowThreads();
15803 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15804
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 {
15809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15810 }
15811 {
15812 if (temp2)
15813 delete arg2;
15814 }
15815 {
15816 if (temp3)
15817 delete arg3;
15818 }
15819 return resultobj;
15820 fail:
15821 {
15822 if (temp2)
15823 delete arg2;
15824 }
15825 {
15826 if (temp3)
15827 delete arg3;
15828 }
15829 return NULL;
15830 }
15831
15832
15833 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
15834 PyObject *resultobj;
15835 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15836 wxString *arg2 = 0 ;
15837 long arg3 ;
15838 bool result;
15839 bool temp2 = false ;
15840 PyObject * obj0 = 0 ;
15841 PyObject * obj1 = 0 ;
15842 PyObject * obj2 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self",(char *) "key",(char *) "value", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15850 {
15851 arg2 = wxString_in_helper(obj1);
15852 if (arg2 == NULL) SWIG_fail;
15853 temp2 = true;
15854 }
15855 arg3 = (long)SWIG_As_long(obj2);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 {
15858 PyThreadState* __tstate = wxPyBeginAllowThreads();
15859 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15860
15861 wxPyEndAllowThreads(__tstate);
15862 if (PyErr_Occurred()) SWIG_fail;
15863 }
15864 {
15865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15866 }
15867 {
15868 if (temp2)
15869 delete arg2;
15870 }
15871 return resultobj;
15872 fail:
15873 {
15874 if (temp2)
15875 delete arg2;
15876 }
15877 return NULL;
15878 }
15879
15880
15881 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15882 PyObject *resultobj;
15883 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15884 wxString *arg2 = 0 ;
15885 double arg3 ;
15886 bool result;
15887 bool temp2 = false ;
15888 PyObject * obj0 = 0 ;
15889 PyObject * obj1 = 0 ;
15890 PyObject * obj2 = 0 ;
15891 char *kwnames[] = {
15892 (char *) "self",(char *) "key",(char *) "value", NULL
15893 };
15894
15895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15898 {
15899 arg2 = wxString_in_helper(obj1);
15900 if (arg2 == NULL) SWIG_fail;
15901 temp2 = true;
15902 }
15903 arg3 = (double)SWIG_As_double(obj2);
15904 if (PyErr_Occurred()) SWIG_fail;
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15908
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 {
15913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15914 }
15915 {
15916 if (temp2)
15917 delete arg2;
15918 }
15919 return resultobj;
15920 fail:
15921 {
15922 if (temp2)
15923 delete arg2;
15924 }
15925 return NULL;
15926 }
15927
15928
15929 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
15930 PyObject *resultobj;
15931 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15932 wxString *arg2 = 0 ;
15933 bool arg3 ;
15934 bool result;
15935 bool temp2 = false ;
15936 PyObject * obj0 = 0 ;
15937 PyObject * obj1 = 0 ;
15938 PyObject * obj2 = 0 ;
15939 char *kwnames[] = {
15940 (char *) "self",(char *) "key",(char *) "value", NULL
15941 };
15942
15943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15946 {
15947 arg2 = wxString_in_helper(obj1);
15948 if (arg2 == NULL) SWIG_fail;
15949 temp2 = true;
15950 }
15951 arg3 = (bool)SWIG_As_bool(obj2);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 {
15954 PyThreadState* __tstate = wxPyBeginAllowThreads();
15955 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15956
15957 wxPyEndAllowThreads(__tstate);
15958 if (PyErr_Occurred()) SWIG_fail;
15959 }
15960 {
15961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15962 }
15963 {
15964 if (temp2)
15965 delete arg2;
15966 }
15967 return resultobj;
15968 fail:
15969 {
15970 if (temp2)
15971 delete arg2;
15972 }
15973 return NULL;
15974 }
15975
15976
15977 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
15978 PyObject *resultobj;
15979 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15980 bool arg2 = (bool) false ;
15981 bool result;
15982 PyObject * obj0 = 0 ;
15983 PyObject * obj1 = 0 ;
15984 char *kwnames[] = {
15985 (char *) "self",(char *) "currentOnly", NULL
15986 };
15987
15988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15991 if (obj1) {
15992 arg2 = (bool)SWIG_As_bool(obj1);
15993 if (PyErr_Occurred()) SWIG_fail;
15994 }
15995 {
15996 PyThreadState* __tstate = wxPyBeginAllowThreads();
15997 result = (bool)(arg1)->Flush(arg2);
15998
15999 wxPyEndAllowThreads(__tstate);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 {
16003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16004 }
16005 return resultobj;
16006 fail:
16007 return NULL;
16008 }
16009
16010
16011 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
16012 PyObject *resultobj;
16013 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16014 wxString *arg2 = 0 ;
16015 wxString *arg3 = 0 ;
16016 bool result;
16017 bool temp2 = false ;
16018 bool temp3 = false ;
16019 PyObject * obj0 = 0 ;
16020 PyObject * obj1 = 0 ;
16021 PyObject * obj2 = 0 ;
16022 char *kwnames[] = {
16023 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16024 };
16025
16026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16029 {
16030 arg2 = wxString_in_helper(obj1);
16031 if (arg2 == NULL) SWIG_fail;
16032 temp2 = true;
16033 }
16034 {
16035 arg3 = wxString_in_helper(obj2);
16036 if (arg3 == NULL) SWIG_fail;
16037 temp3 = true;
16038 }
16039 {
16040 PyThreadState* __tstate = wxPyBeginAllowThreads();
16041 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
16042
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 {
16047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16048 }
16049 {
16050 if (temp2)
16051 delete arg2;
16052 }
16053 {
16054 if (temp3)
16055 delete arg3;
16056 }
16057 return resultobj;
16058 fail:
16059 {
16060 if (temp2)
16061 delete arg2;
16062 }
16063 {
16064 if (temp3)
16065 delete arg3;
16066 }
16067 return NULL;
16068 }
16069
16070
16071 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16072 PyObject *resultobj;
16073 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16074 wxString *arg2 = 0 ;
16075 wxString *arg3 = 0 ;
16076 bool result;
16077 bool temp2 = false ;
16078 bool temp3 = false ;
16079 PyObject * obj0 = 0 ;
16080 PyObject * obj1 = 0 ;
16081 PyObject * obj2 = 0 ;
16082 char *kwnames[] = {
16083 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16084 };
16085
16086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
16087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16089 {
16090 arg2 = wxString_in_helper(obj1);
16091 if (arg2 == NULL) SWIG_fail;
16092 temp2 = true;
16093 }
16094 {
16095 arg3 = wxString_in_helper(obj2);
16096 if (arg3 == NULL) SWIG_fail;
16097 temp3 = true;
16098 }
16099 {
16100 PyThreadState* __tstate = wxPyBeginAllowThreads();
16101 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
16102
16103 wxPyEndAllowThreads(__tstate);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 }
16106 {
16107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16108 }
16109 {
16110 if (temp2)
16111 delete arg2;
16112 }
16113 {
16114 if (temp3)
16115 delete arg3;
16116 }
16117 return resultobj;
16118 fail:
16119 {
16120 if (temp2)
16121 delete arg2;
16122 }
16123 {
16124 if (temp3)
16125 delete arg3;
16126 }
16127 return NULL;
16128 }
16129
16130
16131 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
16132 PyObject *resultobj;
16133 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16134 wxString *arg2 = 0 ;
16135 bool arg3 = (bool) true ;
16136 bool result;
16137 bool temp2 = false ;
16138 PyObject * obj0 = 0 ;
16139 PyObject * obj1 = 0 ;
16140 PyObject * obj2 = 0 ;
16141 char *kwnames[] = {
16142 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
16143 };
16144
16145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16148 {
16149 arg2 = wxString_in_helper(obj1);
16150 if (arg2 == NULL) SWIG_fail;
16151 temp2 = true;
16152 }
16153 if (obj2) {
16154 arg3 = (bool)SWIG_As_bool(obj2);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 {
16158 PyThreadState* __tstate = wxPyBeginAllowThreads();
16159 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16160
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 {
16165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16166 }
16167 {
16168 if (temp2)
16169 delete arg2;
16170 }
16171 return resultobj;
16172 fail:
16173 {
16174 if (temp2)
16175 delete arg2;
16176 }
16177 return NULL;
16178 }
16179
16180
16181 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16182 PyObject *resultobj;
16183 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16184 wxString *arg2 = 0 ;
16185 bool result;
16186 bool temp2 = false ;
16187 PyObject * obj0 = 0 ;
16188 PyObject * obj1 = 0 ;
16189 char *kwnames[] = {
16190 (char *) "self",(char *) "key", NULL
16191 };
16192
16193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16196 {
16197 arg2 = wxString_in_helper(obj1);
16198 if (arg2 == NULL) SWIG_fail;
16199 temp2 = true;
16200 }
16201 {
16202 PyThreadState* __tstate = wxPyBeginAllowThreads();
16203 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16204
16205 wxPyEndAllowThreads(__tstate);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 }
16208 {
16209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16210 }
16211 {
16212 if (temp2)
16213 delete arg2;
16214 }
16215 return resultobj;
16216 fail:
16217 {
16218 if (temp2)
16219 delete arg2;
16220 }
16221 return NULL;
16222 }
16223
16224
16225 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
16226 PyObject *resultobj;
16227 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16228 bool result;
16229 PyObject * obj0 = 0 ;
16230 char *kwnames[] = {
16231 (char *) "self", NULL
16232 };
16233
16234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16237 {
16238 PyThreadState* __tstate = wxPyBeginAllowThreads();
16239 result = (bool)(arg1)->DeleteAll();
16240
16241 wxPyEndAllowThreads(__tstate);
16242 if (PyErr_Occurred()) SWIG_fail;
16243 }
16244 {
16245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16246 }
16247 return resultobj;
16248 fail:
16249 return NULL;
16250 }
16251
16252
16253 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16254 PyObject *resultobj;
16255 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16256 bool arg2 = (bool) true ;
16257 PyObject * obj0 = 0 ;
16258 PyObject * obj1 = 0 ;
16259 char *kwnames[] = {
16260 (char *) "self",(char *) "doIt", NULL
16261 };
16262
16263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16266 if (obj1) {
16267 arg2 = (bool)SWIG_As_bool(obj1);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 {
16271 PyThreadState* __tstate = wxPyBeginAllowThreads();
16272 (arg1)->SetExpandEnvVars(arg2);
16273
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 Py_INCREF(Py_None); resultobj = Py_None;
16278 return resultobj;
16279 fail:
16280 return NULL;
16281 }
16282
16283
16284 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16285 PyObject *resultobj;
16286 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16287 bool result;
16288 PyObject * obj0 = 0 ;
16289 char *kwnames[] = {
16290 (char *) "self", NULL
16291 };
16292
16293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16296 {
16297 PyThreadState* __tstate = wxPyBeginAllowThreads();
16298 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16299
16300 wxPyEndAllowThreads(__tstate);
16301 if (PyErr_Occurred()) SWIG_fail;
16302 }
16303 {
16304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16305 }
16306 return resultobj;
16307 fail:
16308 return NULL;
16309 }
16310
16311
16312 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16313 PyObject *resultobj;
16314 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16315 bool arg2 = (bool) true ;
16316 PyObject * obj0 = 0 ;
16317 PyObject * obj1 = 0 ;
16318 char *kwnames[] = {
16319 (char *) "self",(char *) "doIt", NULL
16320 };
16321
16322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16325 if (obj1) {
16326 arg2 = (bool)SWIG_As_bool(obj1);
16327 if (PyErr_Occurred()) SWIG_fail;
16328 }
16329 {
16330 PyThreadState* __tstate = wxPyBeginAllowThreads();
16331 (arg1)->SetRecordDefaults(arg2);
16332
16333 wxPyEndAllowThreads(__tstate);
16334 if (PyErr_Occurred()) SWIG_fail;
16335 }
16336 Py_INCREF(Py_None); resultobj = Py_None;
16337 return resultobj;
16338 fail:
16339 return NULL;
16340 }
16341
16342
16343 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16344 PyObject *resultobj;
16345 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16346 bool result;
16347 PyObject * obj0 = 0 ;
16348 char *kwnames[] = {
16349 (char *) "self", NULL
16350 };
16351
16352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
16357 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16358
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 {
16363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16364 }
16365 return resultobj;
16366 fail:
16367 return NULL;
16368 }
16369
16370
16371 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16372 PyObject *resultobj;
16373 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16374 wxString *arg2 = 0 ;
16375 wxString result;
16376 bool temp2 = false ;
16377 PyObject * obj0 = 0 ;
16378 PyObject * obj1 = 0 ;
16379 char *kwnames[] = {
16380 (char *) "self",(char *) "str", NULL
16381 };
16382
16383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16386 {
16387 arg2 = wxString_in_helper(obj1);
16388 if (arg2 == NULL) SWIG_fail;
16389 temp2 = true;
16390 }
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
16393 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16394
16395 wxPyEndAllowThreads(__tstate);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 {
16399 #if wxUSE_UNICODE
16400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16401 #else
16402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16403 #endif
16404 }
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return resultobj;
16410 fail:
16411 {
16412 if (temp2)
16413 delete arg2;
16414 }
16415 return NULL;
16416 }
16417
16418
16419 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj;
16421 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16422 wxString result;
16423 PyObject * obj0 = 0 ;
16424 char *kwnames[] = {
16425 (char *) "self", NULL
16426 };
16427
16428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16431 {
16432 PyThreadState* __tstate = wxPyBeginAllowThreads();
16433 result = ((wxConfigBase const *)arg1)->GetAppName();
16434
16435 wxPyEndAllowThreads(__tstate);
16436 if (PyErr_Occurred()) SWIG_fail;
16437 }
16438 {
16439 #if wxUSE_UNICODE
16440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16441 #else
16442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16443 #endif
16444 }
16445 return resultobj;
16446 fail:
16447 return NULL;
16448 }
16449
16450
16451 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16452 PyObject *resultobj;
16453 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16454 wxString result;
16455 PyObject * obj0 = 0 ;
16456 char *kwnames[] = {
16457 (char *) "self", NULL
16458 };
16459
16460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16463 {
16464 PyThreadState* __tstate = wxPyBeginAllowThreads();
16465 result = ((wxConfigBase const *)arg1)->GetVendorName();
16466
16467 wxPyEndAllowThreads(__tstate);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 }
16470 {
16471 #if wxUSE_UNICODE
16472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16473 #else
16474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16475 #endif
16476 }
16477 return resultobj;
16478 fail:
16479 return NULL;
16480 }
16481
16482
16483 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16484 PyObject *resultobj;
16485 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16486 wxString *arg2 = 0 ;
16487 bool temp2 = false ;
16488 PyObject * obj0 = 0 ;
16489 PyObject * obj1 = 0 ;
16490 char *kwnames[] = {
16491 (char *) "self",(char *) "appName", NULL
16492 };
16493
16494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16497 {
16498 arg2 = wxString_in_helper(obj1);
16499 if (arg2 == NULL) SWIG_fail;
16500 temp2 = true;
16501 }
16502 {
16503 PyThreadState* __tstate = wxPyBeginAllowThreads();
16504 (arg1)->SetAppName((wxString const &)*arg2);
16505
16506 wxPyEndAllowThreads(__tstate);
16507 if (PyErr_Occurred()) SWIG_fail;
16508 }
16509 Py_INCREF(Py_None); resultobj = Py_None;
16510 {
16511 if (temp2)
16512 delete arg2;
16513 }
16514 return resultobj;
16515 fail:
16516 {
16517 if (temp2)
16518 delete arg2;
16519 }
16520 return NULL;
16521 }
16522
16523
16524 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16525 PyObject *resultobj;
16526 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16527 wxString *arg2 = 0 ;
16528 bool temp2 = false ;
16529 PyObject * obj0 = 0 ;
16530 PyObject * obj1 = 0 ;
16531 char *kwnames[] = {
16532 (char *) "self",(char *) "vendorName", NULL
16533 };
16534
16535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16538 {
16539 arg2 = wxString_in_helper(obj1);
16540 if (arg2 == NULL) SWIG_fail;
16541 temp2 = true;
16542 }
16543 {
16544 PyThreadState* __tstate = wxPyBeginAllowThreads();
16545 (arg1)->SetVendorName((wxString const &)*arg2);
16546
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 Py_INCREF(Py_None); resultobj = Py_None;
16551 {
16552 if (temp2)
16553 delete arg2;
16554 }
16555 return resultobj;
16556 fail:
16557 {
16558 if (temp2)
16559 delete arg2;
16560 }
16561 return NULL;
16562 }
16563
16564
16565 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16566 PyObject *resultobj;
16567 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16568 long arg2 ;
16569 PyObject * obj0 = 0 ;
16570 PyObject * obj1 = 0 ;
16571 char *kwnames[] = {
16572 (char *) "self",(char *) "style", NULL
16573 };
16574
16575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16578 arg2 = (long)SWIG_As_long(obj1);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 {
16581 PyThreadState* __tstate = wxPyBeginAllowThreads();
16582 (arg1)->SetStyle(arg2);
16583
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 Py_INCREF(Py_None); resultobj = Py_None;
16588 return resultobj;
16589 fail:
16590 return NULL;
16591 }
16592
16593
16594 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj;
16596 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16597 long result;
16598 PyObject * obj0 = 0 ;
16599 char *kwnames[] = {
16600 (char *) "self", NULL
16601 };
16602
16603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16609
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
16613 resultobj = SWIG_From_long((long)result);
16614 return resultobj;
16615 fail:
16616 return NULL;
16617 }
16618
16619
16620 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
16621 PyObject *obj;
16622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16623 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16624 Py_INCREF(obj);
16625 return Py_BuildValue((char *)"");
16626 }
16627 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16628 PyObject *resultobj;
16629 wxString const &arg1_defvalue = wxPyEmptyString ;
16630 wxString *arg1 = (wxString *) &arg1_defvalue ;
16631 wxString const &arg2_defvalue = wxPyEmptyString ;
16632 wxString *arg2 = (wxString *) &arg2_defvalue ;
16633 wxString const &arg3_defvalue = wxPyEmptyString ;
16634 wxString *arg3 = (wxString *) &arg3_defvalue ;
16635 wxString const &arg4_defvalue = wxPyEmptyString ;
16636 wxString *arg4 = (wxString *) &arg4_defvalue ;
16637 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16638 wxConfig *result;
16639 bool temp1 = false ;
16640 bool temp2 = false ;
16641 bool temp3 = false ;
16642 bool temp4 = false ;
16643 PyObject * obj0 = 0 ;
16644 PyObject * obj1 = 0 ;
16645 PyObject * obj2 = 0 ;
16646 PyObject * obj3 = 0 ;
16647 PyObject * obj4 = 0 ;
16648 char *kwnames[] = {
16649 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16650 };
16651
16652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16653 if (obj0) {
16654 {
16655 arg1 = wxString_in_helper(obj0);
16656 if (arg1 == NULL) SWIG_fail;
16657 temp1 = true;
16658 }
16659 }
16660 if (obj1) {
16661 {
16662 arg2 = wxString_in_helper(obj1);
16663 if (arg2 == NULL) SWIG_fail;
16664 temp2 = true;
16665 }
16666 }
16667 if (obj2) {
16668 {
16669 arg3 = wxString_in_helper(obj2);
16670 if (arg3 == NULL) SWIG_fail;
16671 temp3 = true;
16672 }
16673 }
16674 if (obj3) {
16675 {
16676 arg4 = wxString_in_helper(obj3);
16677 if (arg4 == NULL) SWIG_fail;
16678 temp4 = true;
16679 }
16680 }
16681 if (obj4) {
16682 arg5 = (long)SWIG_As_long(obj4);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16693 {
16694 if (temp1)
16695 delete arg1;
16696 }
16697 {
16698 if (temp2)
16699 delete arg2;
16700 }
16701 {
16702 if (temp3)
16703 delete arg3;
16704 }
16705 {
16706 if (temp4)
16707 delete arg4;
16708 }
16709 return resultobj;
16710 fail:
16711 {
16712 if (temp1)
16713 delete arg1;
16714 }
16715 {
16716 if (temp2)
16717 delete arg2;
16718 }
16719 {
16720 if (temp3)
16721 delete arg3;
16722 }
16723 {
16724 if (temp4)
16725 delete arg4;
16726 }
16727 return NULL;
16728 }
16729
16730
16731 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16732 PyObject *resultobj;
16733 wxConfig *arg1 = (wxConfig *) 0 ;
16734 PyObject * obj0 = 0 ;
16735 char *kwnames[] = {
16736 (char *) "self", NULL
16737 };
16738
16739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16742 {
16743 PyThreadState* __tstate = wxPyBeginAllowThreads();
16744 delete arg1;
16745
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 Py_INCREF(Py_None); resultobj = Py_None;
16750 return resultobj;
16751 fail:
16752 return NULL;
16753 }
16754
16755
16756 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
16757 PyObject *obj;
16758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16759 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16760 Py_INCREF(obj);
16761 return Py_BuildValue((char *)"");
16762 }
16763 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16764 PyObject *resultobj;
16765 wxString const &arg1_defvalue = wxPyEmptyString ;
16766 wxString *arg1 = (wxString *) &arg1_defvalue ;
16767 wxString const &arg2_defvalue = wxPyEmptyString ;
16768 wxString *arg2 = (wxString *) &arg2_defvalue ;
16769 wxString const &arg3_defvalue = wxPyEmptyString ;
16770 wxString *arg3 = (wxString *) &arg3_defvalue ;
16771 wxString const &arg4_defvalue = wxPyEmptyString ;
16772 wxString *arg4 = (wxString *) &arg4_defvalue ;
16773 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16774 wxFileConfig *result;
16775 bool temp1 = false ;
16776 bool temp2 = false ;
16777 bool temp3 = false ;
16778 bool temp4 = false ;
16779 PyObject * obj0 = 0 ;
16780 PyObject * obj1 = 0 ;
16781 PyObject * obj2 = 0 ;
16782 PyObject * obj3 = 0 ;
16783 PyObject * obj4 = 0 ;
16784 char *kwnames[] = {
16785 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16786 };
16787
16788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16789 if (obj0) {
16790 {
16791 arg1 = wxString_in_helper(obj0);
16792 if (arg1 == NULL) SWIG_fail;
16793 temp1 = true;
16794 }
16795 }
16796 if (obj1) {
16797 {
16798 arg2 = wxString_in_helper(obj1);
16799 if (arg2 == NULL) SWIG_fail;
16800 temp2 = true;
16801 }
16802 }
16803 if (obj2) {
16804 {
16805 arg3 = wxString_in_helper(obj2);
16806 if (arg3 == NULL) SWIG_fail;
16807 temp3 = true;
16808 }
16809 }
16810 if (obj3) {
16811 {
16812 arg4 = wxString_in_helper(obj3);
16813 if (arg4 == NULL) SWIG_fail;
16814 temp4 = true;
16815 }
16816 }
16817 if (obj4) {
16818 arg5 = (long)SWIG_As_long(obj4);
16819 if (PyErr_Occurred()) SWIG_fail;
16820 }
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16824
16825 wxPyEndAllowThreads(__tstate);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16829 {
16830 if (temp1)
16831 delete arg1;
16832 }
16833 {
16834 if (temp2)
16835 delete arg2;
16836 }
16837 {
16838 if (temp3)
16839 delete arg3;
16840 }
16841 {
16842 if (temp4)
16843 delete arg4;
16844 }
16845 return resultobj;
16846 fail:
16847 {
16848 if (temp1)
16849 delete arg1;
16850 }
16851 {
16852 if (temp2)
16853 delete arg2;
16854 }
16855 {
16856 if (temp3)
16857 delete arg3;
16858 }
16859 {
16860 if (temp4)
16861 delete arg4;
16862 }
16863 return NULL;
16864 }
16865
16866
16867 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16868 PyObject *resultobj;
16869 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16870 PyObject * obj0 = 0 ;
16871 char *kwnames[] = {
16872 (char *) "self", NULL
16873 };
16874
16875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
16880 delete arg1;
16881
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 Py_INCREF(Py_None); resultobj = Py_None;
16886 return resultobj;
16887 fail:
16888 return NULL;
16889 }
16890
16891
16892 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
16893 PyObject *obj;
16894 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16895 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16896 Py_INCREF(obj);
16897 return Py_BuildValue((char *)"");
16898 }
16899 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16900 PyObject *resultobj;
16901 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16902 wxString *arg2 = 0 ;
16903 wxConfigPathChanger *result;
16904 bool temp2 = false ;
16905 PyObject * obj0 = 0 ;
16906 PyObject * obj1 = 0 ;
16907 char *kwnames[] = {
16908 (char *) "config",(char *) "entry", NULL
16909 };
16910
16911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16914 {
16915 arg2 = wxString_in_helper(obj1);
16916 if (arg2 == NULL) SWIG_fail;
16917 temp2 = true;
16918 }
16919 {
16920 PyThreadState* __tstate = wxPyBeginAllowThreads();
16921 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16922
16923 wxPyEndAllowThreads(__tstate);
16924 if (PyErr_Occurred()) SWIG_fail;
16925 }
16926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16927 {
16928 if (temp2)
16929 delete arg2;
16930 }
16931 return resultobj;
16932 fail:
16933 {
16934 if (temp2)
16935 delete arg2;
16936 }
16937 return NULL;
16938 }
16939
16940
16941 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16942 PyObject *resultobj;
16943 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16944 PyObject * obj0 = 0 ;
16945 char *kwnames[] = {
16946 (char *) "self", NULL
16947 };
16948
16949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16952 {
16953 PyThreadState* __tstate = wxPyBeginAllowThreads();
16954 delete arg1;
16955
16956 wxPyEndAllowThreads(__tstate);
16957 if (PyErr_Occurred()) SWIG_fail;
16958 }
16959 Py_INCREF(Py_None); resultobj = Py_None;
16960 return resultobj;
16961 fail:
16962 return NULL;
16963 }
16964
16965
16966 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
16967 PyObject *resultobj;
16968 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16969 wxString *result;
16970 PyObject * obj0 = 0 ;
16971 char *kwnames[] = {
16972 (char *) "self", NULL
16973 };
16974
16975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16978 {
16979 PyThreadState* __tstate = wxPyBeginAllowThreads();
16980 {
16981 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16982 result = (wxString *) &_result_ref;
16983 }
16984
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 {
16989 #if wxUSE_UNICODE
16990 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16991 #else
16992 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16993 #endif
16994 }
16995 return resultobj;
16996 fail:
16997 return NULL;
16998 }
16999
17000
17001 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
17002 PyObject *obj;
17003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17004 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
17005 Py_INCREF(obj);
17006 return Py_BuildValue((char *)"");
17007 }
17008 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj;
17010 wxString *arg1 = 0 ;
17011 wxString result;
17012 bool temp1 = false ;
17013 PyObject * obj0 = 0 ;
17014 char *kwnames[] = {
17015 (char *) "sz", NULL
17016 };
17017
17018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
17019 {
17020 arg1 = wxString_in_helper(obj0);
17021 if (arg1 == NULL) SWIG_fail;
17022 temp1 = true;
17023 }
17024 {
17025 PyThreadState* __tstate = wxPyBeginAllowThreads();
17026 result = wxExpandEnvVars((wxString const &)*arg1);
17027
17028 wxPyEndAllowThreads(__tstate);
17029 if (PyErr_Occurred()) SWIG_fail;
17030 }
17031 {
17032 #if wxUSE_UNICODE
17033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17034 #else
17035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17036 #endif
17037 }
17038 {
17039 if (temp1)
17040 delete arg1;
17041 }
17042 return resultobj;
17043 fail:
17044 {
17045 if (temp1)
17046 delete arg1;
17047 }
17048 return NULL;
17049 }
17050
17051
17052 static int _wrap_DateFormatStr_set(PyObject *) {
17053 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
17054 return 1;
17055 }
17056
17057
17058 static PyObject *_wrap_DateFormatStr_get() {
17059 PyObject *pyobj;
17060
17061 {
17062 #if wxUSE_UNICODE
17063 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17064 #else
17065 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17066 #endif
17067 }
17068 return pyobj;
17069 }
17070
17071
17072 static int _wrap_TimeSpanFormatStr_set(PyObject *) {
17073 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
17074 return 1;
17075 }
17076
17077
17078 static PyObject *_wrap_TimeSpanFormatStr_get() {
17079 PyObject *pyobj;
17080
17081 {
17082 #if wxUSE_UNICODE
17083 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17084 #else
17085 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17086 #endif
17087 }
17088 return pyobj;
17089 }
17090
17091
17092 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17093 PyObject *resultobj;
17094 int arg1 ;
17095 PyObject * obj0 = 0 ;
17096 char *kwnames[] = {
17097 (char *) "country", NULL
17098 };
17099
17100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
17101 arg1 = (int)SWIG_As_int(obj0);
17102 if (PyErr_Occurred()) SWIG_fail;
17103 {
17104 PyThreadState* __tstate = wxPyBeginAllowThreads();
17105 wxDateTime::SetCountry((wxDateTime::Country )arg1);
17106
17107 wxPyEndAllowThreads(__tstate);
17108 if (PyErr_Occurred()) SWIG_fail;
17109 }
17110 Py_INCREF(Py_None); resultobj = Py_None;
17111 return resultobj;
17112 fail:
17113 return NULL;
17114 }
17115
17116
17117 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17118 PyObject *resultobj;
17119 int result;
17120 char *kwnames[] = {
17121 NULL
17122 };
17123
17124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
17125 {
17126 PyThreadState* __tstate = wxPyBeginAllowThreads();
17127 result = (int)wxDateTime::GetCountry();
17128
17129 wxPyEndAllowThreads(__tstate);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 }
17132 resultobj = SWIG_From_int((int)result);
17133 return resultobj;
17134 fail:
17135 return NULL;
17136 }
17137
17138
17139 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17140 PyObject *resultobj;
17141 int arg1 = (int) wxDateTime::Country_Default ;
17142 bool result;
17143 PyObject * obj0 = 0 ;
17144 char *kwnames[] = {
17145 (char *) "country", NULL
17146 };
17147
17148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17149 if (obj0) {
17150 arg1 = (int)SWIG_As_int(obj0);
17151 if (PyErr_Occurred()) SWIG_fail;
17152 }
17153 {
17154 PyThreadState* __tstate = wxPyBeginAllowThreads();
17155 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17156
17157 wxPyEndAllowThreads(__tstate);
17158 if (PyErr_Occurred()) SWIG_fail;
17159 }
17160 {
17161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17162 }
17163 return resultobj;
17164 fail:
17165 return NULL;
17166 }
17167
17168
17169 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
17170 PyObject *resultobj;
17171 int arg1 = (int) wxDateTime::Gregorian ;
17172 int result;
17173 PyObject * obj0 = 0 ;
17174 char *kwnames[] = {
17175 (char *) "cal", NULL
17176 };
17177
17178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17179 if (obj0) {
17180 arg1 = (int)SWIG_As_int(obj0);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17186
17187 wxPyEndAllowThreads(__tstate);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 resultobj = SWIG_From_int((int)result);
17191 return resultobj;
17192 fail:
17193 return NULL;
17194 }
17195
17196
17197 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
17198 PyObject *resultobj;
17199 int arg1 ;
17200 int result;
17201 PyObject * obj0 = 0 ;
17202 char *kwnames[] = {
17203 (char *) "year", NULL
17204 };
17205
17206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
17207 arg1 = (int)SWIG_As_int(obj0);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 {
17210 PyThreadState* __tstate = wxPyBeginAllowThreads();
17211 result = (int)wxDateTime::ConvertYearToBC(arg1);
17212
17213 wxPyEndAllowThreads(__tstate);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 }
17216 resultobj = SWIG_From_int((int)result);
17217 return resultobj;
17218 fail:
17219 return NULL;
17220 }
17221
17222
17223 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17224 PyObject *resultobj;
17225 int arg1 = (int) wxDateTime::Gregorian ;
17226 int result;
17227 PyObject * obj0 = 0 ;
17228 char *kwnames[] = {
17229 (char *) "cal", NULL
17230 };
17231
17232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17233 if (obj0) {
17234 arg1 = (int)SWIG_As_int(obj0);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 resultobj = SWIG_From_int((int)result);
17245 return resultobj;
17246 fail:
17247 return NULL;
17248 }
17249
17250
17251 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
17252 PyObject *resultobj;
17253 int arg1 = (int) wxDateTime::Inv_Year ;
17254 int arg2 = (int) wxDateTime::Gregorian ;
17255 bool result;
17256 PyObject * obj0 = 0 ;
17257 PyObject * obj1 = 0 ;
17258 char *kwnames[] = {
17259 (char *) "year",(char *) "cal", NULL
17260 };
17261
17262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17263 if (obj0) {
17264 arg1 = (int)SWIG_As_int(obj0);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 if (obj1) {
17268 arg2 = (int)SWIG_As_int(obj1);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 }
17271 {
17272 PyThreadState* __tstate = wxPyBeginAllowThreads();
17273 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17274
17275 wxPyEndAllowThreads(__tstate);
17276 if (PyErr_Occurred()) SWIG_fail;
17277 }
17278 {
17279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17280 }
17281 return resultobj;
17282 fail:
17283 return NULL;
17284 }
17285
17286
17287 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
17288 PyObject *resultobj;
17289 int arg1 = (int) wxDateTime::Inv_Year ;
17290 int result;
17291 PyObject * obj0 = 0 ;
17292 char *kwnames[] = {
17293 (char *) "year", NULL
17294 };
17295
17296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17297 if (obj0) {
17298 arg1 = (int)SWIG_As_int(obj0);
17299 if (PyErr_Occurred()) SWIG_fail;
17300 }
17301 {
17302 PyThreadState* __tstate = wxPyBeginAllowThreads();
17303 result = (int)wxDateTime::GetCentury(arg1);
17304
17305 wxPyEndAllowThreads(__tstate);
17306 if (PyErr_Occurred()) SWIG_fail;
17307 }
17308 resultobj = SWIG_From_int((int)result);
17309 return resultobj;
17310 fail:
17311 return NULL;
17312 }
17313
17314
17315 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
17316 PyObject *resultobj;
17317 int arg1 ;
17318 int arg2 = (int) wxDateTime::Gregorian ;
17319 int result;
17320 PyObject * obj0 = 0 ;
17321 PyObject * obj1 = 0 ;
17322 char *kwnames[] = {
17323 (char *) "year",(char *) "cal", NULL
17324 };
17325
17326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17327 arg1 = (int)SWIG_As_int(obj0);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 if (obj1) {
17330 arg2 = (int)SWIG_As_int(obj1);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 {
17334 PyThreadState* __tstate = wxPyBeginAllowThreads();
17335 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17336
17337 wxPyEndAllowThreads(__tstate);
17338 if (PyErr_Occurred()) SWIG_fail;
17339 }
17340 resultobj = SWIG_From_int((int)result);
17341 return resultobj;
17342 fail:
17343 return NULL;
17344 }
17345
17346
17347 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17348 PyObject *resultobj;
17349 int arg1 ;
17350 int arg2 = (int) wxDateTime::Inv_Year ;
17351 int arg3 = (int) wxDateTime::Gregorian ;
17352 int result;
17353 PyObject * obj0 = 0 ;
17354 PyObject * obj1 = 0 ;
17355 PyObject * obj2 = 0 ;
17356 char *kwnames[] = {
17357 (char *) "month",(char *) "year",(char *) "cal", NULL
17358 };
17359
17360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17361 arg1 = (int)SWIG_As_int(obj0);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 if (obj1) {
17364 arg2 = (int)SWIG_As_int(obj1);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 if (obj2) {
17368 arg3 = (int)SWIG_As_int(obj2);
17369 if (PyErr_Occurred()) SWIG_fail;
17370 }
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 resultobj = SWIG_From_int((int)result);
17379 return resultobj;
17380 fail:
17381 return NULL;
17382 }
17383
17384
17385 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
17386 PyObject *resultobj;
17387 int arg1 ;
17388 int arg2 = (int) wxDateTime::Name_Full ;
17389 wxString result;
17390 PyObject * obj0 = 0 ;
17391 PyObject * obj1 = 0 ;
17392 char *kwnames[] = {
17393 (char *) "month",(char *) "flags", NULL
17394 };
17395
17396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17397 arg1 = (int)SWIG_As_int(obj0);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 if (obj1) {
17400 arg2 = (int)SWIG_As_int(obj1);
17401 if (PyErr_Occurred()) SWIG_fail;
17402 }
17403 {
17404 PyThreadState* __tstate = wxPyBeginAllowThreads();
17405 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17406
17407 wxPyEndAllowThreads(__tstate);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 }
17410 {
17411 #if wxUSE_UNICODE
17412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17413 #else
17414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17415 #endif
17416 }
17417 return resultobj;
17418 fail:
17419 return NULL;
17420 }
17421
17422
17423 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
17424 PyObject *resultobj;
17425 int arg1 ;
17426 int arg2 = (int) wxDateTime::Name_Full ;
17427 wxString result;
17428 PyObject * obj0 = 0 ;
17429 PyObject * obj1 = 0 ;
17430 char *kwnames[] = {
17431 (char *) "weekday",(char *) "flags", NULL
17432 };
17433
17434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17435 arg1 = (int)SWIG_As_int(obj0);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 if (obj1) {
17438 arg2 = (int)SWIG_As_int(obj1);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 {
17442 PyThreadState* __tstate = wxPyBeginAllowThreads();
17443 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17444
17445 wxPyEndAllowThreads(__tstate);
17446 if (PyErr_Occurred()) SWIG_fail;
17447 }
17448 {
17449 #if wxUSE_UNICODE
17450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17451 #else
17452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17453 #endif
17454 }
17455 return resultobj;
17456 fail:
17457 return NULL;
17458 }
17459
17460
17461 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
17462 PyObject *resultobj;
17463 wxString *arg1 = (wxString *) 0 ;
17464 wxString *arg2 = (wxString *) 0 ;
17465 bool temp1 = false ;
17466 bool temp2 = false ;
17467 PyObject * obj0 = 0 ;
17468 PyObject * obj1 = 0 ;
17469 char *kwnames[] = {
17470 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17471 };
17472
17473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17474 {
17475 arg1 = wxString_in_helper(obj0);
17476 if (arg1 == NULL) SWIG_fail;
17477 temp1 = true;
17478 }
17479 {
17480 arg2 = wxString_in_helper(obj1);
17481 if (arg2 == NULL) SWIG_fail;
17482 temp2 = true;
17483 }
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 wxDateTime::GetAmPmStrings(arg1,arg2);
17487
17488 wxPyEndAllowThreads(__tstate);
17489 if (PyErr_Occurred()) SWIG_fail;
17490 }
17491 Py_INCREF(Py_None); resultobj = Py_None;
17492 {
17493 if (temp1)
17494 delete arg1;
17495 }
17496 {
17497 if (temp2)
17498 delete arg2;
17499 }
17500 return resultobj;
17501 fail:
17502 {
17503 if (temp1)
17504 delete arg1;
17505 }
17506 {
17507 if (temp2)
17508 delete arg2;
17509 }
17510 return NULL;
17511 }
17512
17513
17514 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
17515 PyObject *resultobj;
17516 int arg1 = (int) wxDateTime::Inv_Year ;
17517 int arg2 = (int) wxDateTime::Country_Default ;
17518 bool result;
17519 PyObject * obj0 = 0 ;
17520 PyObject * obj1 = 0 ;
17521 char *kwnames[] = {
17522 (char *) "year",(char *) "country", NULL
17523 };
17524
17525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17526 if (obj0) {
17527 arg1 = (int)SWIG_As_int(obj0);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 if (obj1) {
17531 arg2 = (int)SWIG_As_int(obj1);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 }
17534 {
17535 PyThreadState* __tstate = wxPyBeginAllowThreads();
17536 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17537
17538 wxPyEndAllowThreads(__tstate);
17539 if (PyErr_Occurred()) SWIG_fail;
17540 }
17541 {
17542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17543 }
17544 return resultobj;
17545 fail:
17546 return NULL;
17547 }
17548
17549
17550 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
17551 PyObject *resultobj;
17552 int arg1 = (int) wxDateTime::Inv_Year ;
17553 int arg2 = (int) wxDateTime::Country_Default ;
17554 wxDateTime result;
17555 PyObject * obj0 = 0 ;
17556 PyObject * obj1 = 0 ;
17557 char *kwnames[] = {
17558 (char *) "year",(char *) "country", NULL
17559 };
17560
17561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17562 if (obj0) {
17563 arg1 = (int)SWIG_As_int(obj0);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 if (obj1) {
17567 arg2 = (int)SWIG_As_int(obj1);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 }
17570 {
17571 PyThreadState* __tstate = wxPyBeginAllowThreads();
17572 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17573
17574 wxPyEndAllowThreads(__tstate);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 {
17578 wxDateTime * resultptr;
17579 resultptr = new wxDateTime((wxDateTime &) result);
17580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17581 }
17582 return resultobj;
17583 fail:
17584 return NULL;
17585 }
17586
17587
17588 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
17589 PyObject *resultobj;
17590 int arg1 = (int) wxDateTime::Inv_Year ;
17591 int arg2 = (int) wxDateTime::Country_Default ;
17592 wxDateTime result;
17593 PyObject * obj0 = 0 ;
17594 PyObject * obj1 = 0 ;
17595 char *kwnames[] = {
17596 (char *) "year",(char *) "country", NULL
17597 };
17598
17599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17600 if (obj0) {
17601 arg1 = (int)SWIG_As_int(obj0);
17602 if (PyErr_Occurred()) SWIG_fail;
17603 }
17604 if (obj1) {
17605 arg2 = (int)SWIG_As_int(obj1);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 {
17609 PyThreadState* __tstate = wxPyBeginAllowThreads();
17610 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17611
17612 wxPyEndAllowThreads(__tstate);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 {
17616 wxDateTime * resultptr;
17617 resultptr = new wxDateTime((wxDateTime &) result);
17618 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17619 }
17620 return resultobj;
17621 fail:
17622 return NULL;
17623 }
17624
17625
17626 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
17627 PyObject *resultobj;
17628 wxDateTime result;
17629 char *kwnames[] = {
17630 NULL
17631 };
17632
17633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17634 {
17635 PyThreadState* __tstate = wxPyBeginAllowThreads();
17636 result = wxDateTime::Now();
17637
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 {
17642 wxDateTime * resultptr;
17643 resultptr = new wxDateTime((wxDateTime &) result);
17644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17645 }
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj;
17654 wxDateTime result;
17655 char *kwnames[] = {
17656 NULL
17657 };
17658
17659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = wxDateTime::UNow();
17663
17664 wxPyEndAllowThreads(__tstate);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 }
17667 {
17668 wxDateTime * resultptr;
17669 resultptr = new wxDateTime((wxDateTime &) result);
17670 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17671 }
17672 return resultobj;
17673 fail:
17674 return NULL;
17675 }
17676
17677
17678 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
17679 PyObject *resultobj;
17680 wxDateTime result;
17681 char *kwnames[] = {
17682 NULL
17683 };
17684
17685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17686 {
17687 PyThreadState* __tstate = wxPyBeginAllowThreads();
17688 result = wxDateTime::Today();
17689
17690 wxPyEndAllowThreads(__tstate);
17691 if (PyErr_Occurred()) SWIG_fail;
17692 }
17693 {
17694 wxDateTime * resultptr;
17695 resultptr = new wxDateTime((wxDateTime &) result);
17696 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17697 }
17698 return resultobj;
17699 fail:
17700 return NULL;
17701 }
17702
17703
17704 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17705 PyObject *resultobj;
17706 wxDateTime *result;
17707 char *kwnames[] = {
17708 NULL
17709 };
17710
17711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17712 {
17713 PyThreadState* __tstate = wxPyBeginAllowThreads();
17714 result = (wxDateTime *)new wxDateTime();
17715
17716 wxPyEndAllowThreads(__tstate);
17717 if (PyErr_Occurred()) SWIG_fail;
17718 }
17719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17720 return resultobj;
17721 fail:
17722 return NULL;
17723 }
17724
17725
17726 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17727 PyObject *resultobj;
17728 time_t arg1 ;
17729 wxDateTime *result;
17730 PyObject * obj0 = 0 ;
17731 char *kwnames[] = {
17732 (char *) "timet", NULL
17733 };
17734
17735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17736 arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 result = (wxDateTime *)new wxDateTime(arg1);
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj;
17754 double arg1 ;
17755 wxDateTime *result;
17756 PyObject * obj0 = 0 ;
17757 char *kwnames[] = {
17758 (char *) "jdn", NULL
17759 };
17760
17761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17762 arg1 = (double)SWIG_As_double(obj0);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = (wxDateTime *)new wxDateTime(arg1);
17767
17768 wxPyEndAllowThreads(__tstate);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 }
17771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17772 return resultobj;
17773 fail:
17774 return NULL;
17775 }
17776
17777
17778 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17779 PyObject *resultobj;
17780 int arg1 ;
17781 int arg2 = (int) 0 ;
17782 int arg3 = (int) 0 ;
17783 int arg4 = (int) 0 ;
17784 wxDateTime *result;
17785 PyObject * obj0 = 0 ;
17786 PyObject * obj1 = 0 ;
17787 PyObject * obj2 = 0 ;
17788 PyObject * obj3 = 0 ;
17789 char *kwnames[] = {
17790 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17791 };
17792
17793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17794 arg1 = (int)SWIG_As_int(obj0);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 if (obj1) {
17797 arg2 = (int)SWIG_As_int(obj1);
17798 if (PyErr_Occurred()) SWIG_fail;
17799 }
17800 if (obj2) {
17801 arg3 = (int)SWIG_As_int(obj2);
17802 if (PyErr_Occurred()) SWIG_fail;
17803 }
17804 if (obj3) {
17805 arg4 = (int)SWIG_As_int(obj3);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 {
17809 PyThreadState* __tstate = wxPyBeginAllowThreads();
17810 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17811
17812 wxPyEndAllowThreads(__tstate);
17813 if (PyErr_Occurred()) SWIG_fail;
17814 }
17815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17816 return resultobj;
17817 fail:
17818 return NULL;
17819 }
17820
17821
17822 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
17823 PyObject *resultobj;
17824 int arg1 ;
17825 int arg2 = (int) wxDateTime::Inv_Month ;
17826 int arg3 = (int) wxDateTime::Inv_Year ;
17827 int arg4 = (int) 0 ;
17828 int arg5 = (int) 0 ;
17829 int arg6 = (int) 0 ;
17830 int arg7 = (int) 0 ;
17831 wxDateTime *result;
17832 PyObject * obj0 = 0 ;
17833 PyObject * obj1 = 0 ;
17834 PyObject * obj2 = 0 ;
17835 PyObject * obj3 = 0 ;
17836 PyObject * obj4 = 0 ;
17837 PyObject * obj5 = 0 ;
17838 PyObject * obj6 = 0 ;
17839 char *kwnames[] = {
17840 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17841 };
17842
17843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17844 arg1 = (int)SWIG_As_int(obj0);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 if (obj1) {
17847 arg2 = (int)SWIG_As_int(obj1);
17848 if (PyErr_Occurred()) SWIG_fail;
17849 }
17850 if (obj2) {
17851 arg3 = (int)SWIG_As_int(obj2);
17852 if (PyErr_Occurred()) SWIG_fail;
17853 }
17854 if (obj3) {
17855 arg4 = (int)SWIG_As_int(obj3);
17856 if (PyErr_Occurred()) SWIG_fail;
17857 }
17858 if (obj4) {
17859 arg5 = (int)SWIG_As_int(obj4);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 if (obj5) {
17863 arg6 = (int)SWIG_As_int(obj5);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 if (obj6) {
17867 arg7 = (int)SWIG_As_int(obj6);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 {
17871 PyThreadState* __tstate = wxPyBeginAllowThreads();
17872 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17873
17874 wxPyEndAllowThreads(__tstate);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 }
17877 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17878 return resultobj;
17879 fail:
17880 return NULL;
17881 }
17882
17883
17884 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17885 PyObject *resultobj;
17886 wxDateTime *arg1 = (wxDateTime *) 0 ;
17887 PyObject * obj0 = 0 ;
17888 char *kwnames[] = {
17889 (char *) "self", NULL
17890 };
17891
17892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17895 {
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 delete arg1;
17898
17899 wxPyEndAllowThreads(__tstate);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 }
17902 Py_INCREF(Py_None); resultobj = Py_None;
17903 return resultobj;
17904 fail:
17905 return NULL;
17906 }
17907
17908
17909 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxDateTime *arg1 = (wxDateTime *) 0 ;
17912 wxDateTime *result;
17913 PyObject * obj0 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 {
17924 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17925 result = (wxDateTime *) &_result_ref;
17926 }
17927
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17932 return resultobj;
17933 fail:
17934 return NULL;
17935 }
17936
17937
17938 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj;
17940 wxDateTime *arg1 = (wxDateTime *) 0 ;
17941 time_t arg2 ;
17942 wxDateTime *result;
17943 PyObject * obj0 = 0 ;
17944 PyObject * obj1 = 0 ;
17945 char *kwnames[] = {
17946 (char *) "self",(char *) "timet", NULL
17947 };
17948
17949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17952 arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 {
17955 PyThreadState* __tstate = wxPyBeginAllowThreads();
17956 {
17957 wxDateTime &_result_ref = (arg1)->Set(arg2);
17958 result = (wxDateTime *) &_result_ref;
17959 }
17960
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17965 return resultobj;
17966 fail:
17967 return NULL;
17968 }
17969
17970
17971 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17972 PyObject *resultobj;
17973 wxDateTime *arg1 = (wxDateTime *) 0 ;
17974 double arg2 ;
17975 wxDateTime *result;
17976 PyObject * obj0 = 0 ;
17977 PyObject * obj1 = 0 ;
17978 char *kwnames[] = {
17979 (char *) "self",(char *) "jdn", NULL
17980 };
17981
17982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17985 arg2 = (double)SWIG_As_double(obj1);
17986 if (PyErr_Occurred()) SWIG_fail;
17987 {
17988 PyThreadState* __tstate = wxPyBeginAllowThreads();
17989 {
17990 wxDateTime &_result_ref = (arg1)->Set(arg2);
17991 result = (wxDateTime *) &_result_ref;
17992 }
17993
17994 wxPyEndAllowThreads(__tstate);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17998 return resultobj;
17999 fail:
18000 return NULL;
18001 }
18002
18003
18004 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
18005 PyObject *resultobj;
18006 wxDateTime *arg1 = (wxDateTime *) 0 ;
18007 int arg2 ;
18008 int arg3 = (int) 0 ;
18009 int arg4 = (int) 0 ;
18010 int arg5 = (int) 0 ;
18011 wxDateTime *result;
18012 PyObject * obj0 = 0 ;
18013 PyObject * obj1 = 0 ;
18014 PyObject * obj2 = 0 ;
18015 PyObject * obj3 = 0 ;
18016 PyObject * obj4 = 0 ;
18017 char *kwnames[] = {
18018 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18019 };
18020
18021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18024 arg2 = (int)SWIG_As_int(obj1);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 if (obj2) {
18027 arg3 = (int)SWIG_As_int(obj2);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 }
18030 if (obj3) {
18031 arg4 = (int)SWIG_As_int(obj3);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 if (obj4) {
18035 arg5 = (int)SWIG_As_int(obj4);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 {
18041 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
18042 result = (wxDateTime *) &_result_ref;
18043 }
18044
18045 wxPyEndAllowThreads(__tstate);
18046 if (PyErr_Occurred()) SWIG_fail;
18047 }
18048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18049 return resultobj;
18050 fail:
18051 return NULL;
18052 }
18053
18054
18055 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18056 PyObject *resultobj;
18057 wxDateTime *arg1 = (wxDateTime *) 0 ;
18058 int arg2 ;
18059 int arg3 = (int) wxDateTime::Inv_Month ;
18060 int arg4 = (int) wxDateTime::Inv_Year ;
18061 int arg5 = (int) 0 ;
18062 int arg6 = (int) 0 ;
18063 int arg7 = (int) 0 ;
18064 int arg8 = (int) 0 ;
18065 wxDateTime *result;
18066 PyObject * obj0 = 0 ;
18067 PyObject * obj1 = 0 ;
18068 PyObject * obj2 = 0 ;
18069 PyObject * obj3 = 0 ;
18070 PyObject * obj4 = 0 ;
18071 PyObject * obj5 = 0 ;
18072 PyObject * obj6 = 0 ;
18073 PyObject * obj7 = 0 ;
18074 char *kwnames[] = {
18075 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18076 };
18077
18078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18081 arg2 = (int)SWIG_As_int(obj1);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 if (obj2) {
18084 arg3 = (int)SWIG_As_int(obj2);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 if (obj3) {
18088 arg4 = (int)SWIG_As_int(obj3);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 if (obj4) {
18092 arg5 = (int)SWIG_As_int(obj4);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 if (obj5) {
18096 arg6 = (int)SWIG_As_int(obj5);
18097 if (PyErr_Occurred()) SWIG_fail;
18098 }
18099 if (obj6) {
18100 arg7 = (int)SWIG_As_int(obj6);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 if (obj7) {
18104 arg8 = (int)SWIG_As_int(obj7);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 {
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 {
18110 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
18111 result = (wxDateTime *) &_result_ref;
18112 }
18113
18114 wxPyEndAllowThreads(__tstate);
18115 if (PyErr_Occurred()) SWIG_fail;
18116 }
18117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18118 return resultobj;
18119 fail:
18120 return NULL;
18121 }
18122
18123
18124 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
18125 PyObject *resultobj;
18126 wxDateTime *arg1 = (wxDateTime *) 0 ;
18127 wxDateTime *result;
18128 PyObject * obj0 = 0 ;
18129 char *kwnames[] = {
18130 (char *) "self", NULL
18131 };
18132
18133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
18134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 {
18139 wxDateTime &_result_ref = (arg1)->ResetTime();
18140 result = (wxDateTime *) &_result_ref;
18141 }
18142
18143 wxPyEndAllowThreads(__tstate);
18144 if (PyErr_Occurred()) SWIG_fail;
18145 }
18146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18147 return resultobj;
18148 fail:
18149 return NULL;
18150 }
18151
18152
18153 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
18154 PyObject *resultobj;
18155 wxDateTime *arg1 = (wxDateTime *) 0 ;
18156 int arg2 ;
18157 wxDateTime *result;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 char *kwnames[] = {
18161 (char *) "self",(char *) "year", NULL
18162 };
18163
18164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18167 arg2 = (int)SWIG_As_int(obj1);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 {
18170 PyThreadState* __tstate = wxPyBeginAllowThreads();
18171 {
18172 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18173 result = (wxDateTime *) &_result_ref;
18174 }
18175
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18180 return resultobj;
18181 fail:
18182 return NULL;
18183 }
18184
18185
18186 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
18187 PyObject *resultobj;
18188 wxDateTime *arg1 = (wxDateTime *) 0 ;
18189 int arg2 ;
18190 wxDateTime *result;
18191 PyObject * obj0 = 0 ;
18192 PyObject * obj1 = 0 ;
18193 char *kwnames[] = {
18194 (char *) "self",(char *) "month", NULL
18195 };
18196
18197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18200 arg2 = (int)SWIG_As_int(obj1);
18201 if (PyErr_Occurred()) SWIG_fail;
18202 {
18203 PyThreadState* __tstate = wxPyBeginAllowThreads();
18204 {
18205 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18206 result = (wxDateTime *) &_result_ref;
18207 }
18208
18209 wxPyEndAllowThreads(__tstate);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18213 return resultobj;
18214 fail:
18215 return NULL;
18216 }
18217
18218
18219 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
18220 PyObject *resultobj;
18221 wxDateTime *arg1 = (wxDateTime *) 0 ;
18222 int arg2 ;
18223 wxDateTime *result;
18224 PyObject * obj0 = 0 ;
18225 PyObject * obj1 = 0 ;
18226 char *kwnames[] = {
18227 (char *) "self",(char *) "day", NULL
18228 };
18229
18230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18233 arg2 = (int)SWIG_As_int(obj1);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 {
18238 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18239 result = (wxDateTime *) &_result_ref;
18240 }
18241
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18246 return resultobj;
18247 fail:
18248 return NULL;
18249 }
18250
18251
18252 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
18253 PyObject *resultobj;
18254 wxDateTime *arg1 = (wxDateTime *) 0 ;
18255 int arg2 ;
18256 wxDateTime *result;
18257 PyObject * obj0 = 0 ;
18258 PyObject * obj1 = 0 ;
18259 char *kwnames[] = {
18260 (char *) "self",(char *) "hour", NULL
18261 };
18262
18263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18266 arg2 = (int)SWIG_As_int(obj1);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 {
18271 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18272 result = (wxDateTime *) &_result_ref;
18273 }
18274
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18279 return resultobj;
18280 fail:
18281 return NULL;
18282 }
18283
18284
18285 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
18286 PyObject *resultobj;
18287 wxDateTime *arg1 = (wxDateTime *) 0 ;
18288 int arg2 ;
18289 wxDateTime *result;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 char *kwnames[] = {
18293 (char *) "self",(char *) "minute", NULL
18294 };
18295
18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 arg2 = (int)SWIG_As_int(obj1);
18300 if (PyErr_Occurred()) SWIG_fail;
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 {
18304 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18305 result = (wxDateTime *) &_result_ref;
18306 }
18307
18308 wxPyEndAllowThreads(__tstate);
18309 if (PyErr_Occurred()) SWIG_fail;
18310 }
18311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18312 return resultobj;
18313 fail:
18314 return NULL;
18315 }
18316
18317
18318 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
18319 PyObject *resultobj;
18320 wxDateTime *arg1 = (wxDateTime *) 0 ;
18321 int arg2 ;
18322 wxDateTime *result;
18323 PyObject * obj0 = 0 ;
18324 PyObject * obj1 = 0 ;
18325 char *kwnames[] = {
18326 (char *) "self",(char *) "second", NULL
18327 };
18328
18329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18332 arg2 = (int)SWIG_As_int(obj1);
18333 if (PyErr_Occurred()) SWIG_fail;
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 {
18337 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18338 result = (wxDateTime *) &_result_ref;
18339 }
18340
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18345 return resultobj;
18346 fail:
18347 return NULL;
18348 }
18349
18350
18351 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
18352 PyObject *resultobj;
18353 wxDateTime *arg1 = (wxDateTime *) 0 ;
18354 int arg2 ;
18355 wxDateTime *result;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 char *kwnames[] = {
18359 (char *) "self",(char *) "millisecond", NULL
18360 };
18361
18362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18365 arg2 = (int)SWIG_As_int(obj1);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 {
18368 PyThreadState* __tstate = wxPyBeginAllowThreads();
18369 {
18370 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18371 result = (wxDateTime *) &_result_ref;
18372 }
18373
18374 wxPyEndAllowThreads(__tstate);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18378 return resultobj;
18379 fail:
18380 return NULL;
18381 }
18382
18383
18384 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18385 PyObject *resultobj;
18386 wxDateTime *arg1 = (wxDateTime *) 0 ;
18387 int arg2 ;
18388 int arg3 = (int) wxDateTime::Monday_First ;
18389 wxDateTime *result;
18390 PyObject * obj0 = 0 ;
18391 PyObject * obj1 = 0 ;
18392 PyObject * obj2 = 0 ;
18393 char *kwnames[] = {
18394 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18395 };
18396
18397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18400 arg2 = (int)SWIG_As_int(obj1);
18401 if (PyErr_Occurred()) SWIG_fail;
18402 if (obj2) {
18403 arg3 = (int)SWIG_As_int(obj2);
18404 if (PyErr_Occurred()) SWIG_fail;
18405 }
18406 {
18407 PyThreadState* __tstate = wxPyBeginAllowThreads();
18408 {
18409 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18410 result = (wxDateTime *) &_result_ref;
18411 }
18412
18413 wxPyEndAllowThreads(__tstate);
18414 if (PyErr_Occurred()) SWIG_fail;
18415 }
18416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18417 return resultobj;
18418 fail:
18419 return NULL;
18420 }
18421
18422
18423 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18424 PyObject *resultobj;
18425 wxDateTime *arg1 = (wxDateTime *) 0 ;
18426 int arg2 ;
18427 int arg3 = (int) wxDateTime::Monday_First ;
18428 wxDateTime result;
18429 PyObject * obj0 = 0 ;
18430 PyObject * obj1 = 0 ;
18431 PyObject * obj2 = 0 ;
18432 char *kwnames[] = {
18433 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18434 };
18435
18436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18439 arg2 = (int)SWIG_As_int(obj1);
18440 if (PyErr_Occurred()) SWIG_fail;
18441 if (obj2) {
18442 arg3 = (int)SWIG_As_int(obj2);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 {
18446 PyThreadState* __tstate = wxPyBeginAllowThreads();
18447 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18448
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 {
18453 wxDateTime * resultptr;
18454 resultptr = new wxDateTime((wxDateTime &) result);
18455 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18456 }
18457 return resultobj;
18458 fail:
18459 return NULL;
18460 }
18461
18462
18463 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18464 PyObject *resultobj;
18465 wxDateTime *arg1 = (wxDateTime *) 0 ;
18466 int arg2 ;
18467 wxDateTime *result;
18468 PyObject * obj0 = 0 ;
18469 PyObject * obj1 = 0 ;
18470 char *kwnames[] = {
18471 (char *) "self",(char *) "weekday", NULL
18472 };
18473
18474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18477 arg2 = (int)SWIG_As_int(obj1);
18478 if (PyErr_Occurred()) SWIG_fail;
18479 {
18480 PyThreadState* __tstate = wxPyBeginAllowThreads();
18481 {
18482 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18483 result = (wxDateTime *) &_result_ref;
18484 }
18485
18486 wxPyEndAllowThreads(__tstate);
18487 if (PyErr_Occurred()) SWIG_fail;
18488 }
18489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18490 return resultobj;
18491 fail:
18492 return NULL;
18493 }
18494
18495
18496 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18497 PyObject *resultobj;
18498 wxDateTime *arg1 = (wxDateTime *) 0 ;
18499 int arg2 ;
18500 wxDateTime result;
18501 PyObject * obj0 = 0 ;
18502 PyObject * obj1 = 0 ;
18503 char *kwnames[] = {
18504 (char *) "self",(char *) "weekday", NULL
18505 };
18506
18507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18510 arg2 = (int)SWIG_As_int(obj1);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18515
18516 wxPyEndAllowThreads(__tstate);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 }
18519 {
18520 wxDateTime * resultptr;
18521 resultptr = new wxDateTime((wxDateTime &) result);
18522 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18523 }
18524 return resultobj;
18525 fail:
18526 return NULL;
18527 }
18528
18529
18530 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18531 PyObject *resultobj;
18532 wxDateTime *arg1 = (wxDateTime *) 0 ;
18533 int arg2 ;
18534 wxDateTime *result;
18535 PyObject * obj0 = 0 ;
18536 PyObject * obj1 = 0 ;
18537 char *kwnames[] = {
18538 (char *) "self",(char *) "weekday", NULL
18539 };
18540
18541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18544 arg2 = (int)SWIG_As_int(obj1);
18545 if (PyErr_Occurred()) SWIG_fail;
18546 {
18547 PyThreadState* __tstate = wxPyBeginAllowThreads();
18548 {
18549 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18550 result = (wxDateTime *) &_result_ref;
18551 }
18552
18553 wxPyEndAllowThreads(__tstate);
18554 if (PyErr_Occurred()) SWIG_fail;
18555 }
18556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18557 return resultobj;
18558 fail:
18559 return NULL;
18560 }
18561
18562
18563 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18564 PyObject *resultobj;
18565 wxDateTime *arg1 = (wxDateTime *) 0 ;
18566 int arg2 ;
18567 wxDateTime result;
18568 PyObject * obj0 = 0 ;
18569 PyObject * obj1 = 0 ;
18570 char *kwnames[] = {
18571 (char *) "self",(char *) "weekday", NULL
18572 };
18573
18574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18577 arg2 = (int)SWIG_As_int(obj1);
18578 if (PyErr_Occurred()) SWIG_fail;
18579 {
18580 PyThreadState* __tstate = wxPyBeginAllowThreads();
18581 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18582
18583 wxPyEndAllowThreads(__tstate);
18584 if (PyErr_Occurred()) SWIG_fail;
18585 }
18586 {
18587 wxDateTime * resultptr;
18588 resultptr = new wxDateTime((wxDateTime &) result);
18589 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18590 }
18591 return resultobj;
18592 fail:
18593 return NULL;
18594 }
18595
18596
18597 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18598 PyObject *resultobj;
18599 wxDateTime *arg1 = (wxDateTime *) 0 ;
18600 int arg2 ;
18601 int arg3 = (int) 1 ;
18602 int arg4 = (int) wxDateTime::Inv_Month ;
18603 int arg5 = (int) wxDateTime::Inv_Year ;
18604 bool result;
18605 PyObject * obj0 = 0 ;
18606 PyObject * obj1 = 0 ;
18607 PyObject * obj2 = 0 ;
18608 PyObject * obj3 = 0 ;
18609 PyObject * obj4 = 0 ;
18610 char *kwnames[] = {
18611 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18612 };
18613
18614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18617 arg2 = (int)SWIG_As_int(obj1);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 if (obj2) {
18620 arg3 = (int)SWIG_As_int(obj2);
18621 if (PyErr_Occurred()) SWIG_fail;
18622 }
18623 if (obj3) {
18624 arg4 = (int)SWIG_As_int(obj3);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 if (obj4) {
18628 arg5 = (int)SWIG_As_int(obj4);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18634
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 {
18639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18640 }
18641 return resultobj;
18642 fail:
18643 return NULL;
18644 }
18645
18646
18647 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18648 PyObject *resultobj;
18649 wxDateTime *arg1 = (wxDateTime *) 0 ;
18650 int arg2 ;
18651 int arg3 = (int) wxDateTime::Inv_Month ;
18652 int arg4 = (int) wxDateTime::Inv_Year ;
18653 bool result;
18654 PyObject * obj0 = 0 ;
18655 PyObject * obj1 = 0 ;
18656 PyObject * obj2 = 0 ;
18657 PyObject * obj3 = 0 ;
18658 char *kwnames[] = {
18659 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18660 };
18661
18662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18665 arg2 = (int)SWIG_As_int(obj1);
18666 if (PyErr_Occurred()) SWIG_fail;
18667 if (obj2) {
18668 arg3 = (int)SWIG_As_int(obj2);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 if (obj3) {
18672 arg4 = (int)SWIG_As_int(obj3);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 }
18675 {
18676 PyThreadState* __tstate = wxPyBeginAllowThreads();
18677 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18678
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 {
18683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18684 }
18685 return resultobj;
18686 fail:
18687 return NULL;
18688 }
18689
18690
18691 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18692 PyObject *resultobj;
18693 wxDateTime *arg1 = (wxDateTime *) 0 ;
18694 int arg2 ;
18695 int arg3 = (int) wxDateTime::Inv_Month ;
18696 int arg4 = (int) wxDateTime::Inv_Year ;
18697 wxDateTime result;
18698 PyObject * obj0 = 0 ;
18699 PyObject * obj1 = 0 ;
18700 PyObject * obj2 = 0 ;
18701 PyObject * obj3 = 0 ;
18702 char *kwnames[] = {
18703 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18704 };
18705
18706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18709 arg2 = (int)SWIG_As_int(obj1);
18710 if (PyErr_Occurred()) SWIG_fail;
18711 if (obj2) {
18712 arg3 = (int)SWIG_As_int(obj2);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 if (obj3) {
18716 arg4 = (int)SWIG_As_int(obj3);
18717 if (PyErr_Occurred()) SWIG_fail;
18718 }
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18722
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 {
18727 wxDateTime * resultptr;
18728 resultptr = new wxDateTime((wxDateTime &) result);
18729 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18730 }
18731 return resultobj;
18732 fail:
18733 return NULL;
18734 }
18735
18736
18737 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18738 PyObject *resultobj;
18739 wxDateTime *arg1 = (wxDateTime *) 0 ;
18740 int arg2 ;
18741 int arg3 = (int) wxDateTime::Mon ;
18742 int arg4 = (int) wxDateTime::Monday_First ;
18743 bool result;
18744 PyObject * obj0 = 0 ;
18745 PyObject * obj1 = 0 ;
18746 PyObject * obj2 = 0 ;
18747 PyObject * obj3 = 0 ;
18748 char *kwnames[] = {
18749 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18750 };
18751
18752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18755 arg2 = (int)SWIG_As_int(obj1);
18756 if (PyErr_Occurred()) SWIG_fail;
18757 if (obj2) {
18758 arg3 = (int)SWIG_As_int(obj2);
18759 if (PyErr_Occurred()) SWIG_fail;
18760 }
18761 if (obj3) {
18762 arg4 = (int)SWIG_As_int(obj3);
18763 if (PyErr_Occurred()) SWIG_fail;
18764 }
18765 {
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18768
18769 wxPyEndAllowThreads(__tstate);
18770 if (PyErr_Occurred()) SWIG_fail;
18771 }
18772 {
18773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18774 }
18775 return resultobj;
18776 fail:
18777 return NULL;
18778 }
18779
18780
18781 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj;
18783 wxDateTime *arg1 = (wxDateTime *) 0 ;
18784 int arg2 ;
18785 int arg3 = (int) wxDateTime::Mon ;
18786 int arg4 = (int) wxDateTime::Monday_First ;
18787 wxDateTime result;
18788 PyObject * obj0 = 0 ;
18789 PyObject * obj1 = 0 ;
18790 PyObject * obj2 = 0 ;
18791 PyObject * obj3 = 0 ;
18792 char *kwnames[] = {
18793 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18794 };
18795
18796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18799 arg2 = (int)SWIG_As_int(obj1);
18800 if (PyErr_Occurred()) SWIG_fail;
18801 if (obj2) {
18802 arg3 = (int)SWIG_As_int(obj2);
18803 if (PyErr_Occurred()) SWIG_fail;
18804 }
18805 if (obj3) {
18806 arg4 = (int)SWIG_As_int(obj3);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 {
18810 PyThreadState* __tstate = wxPyBeginAllowThreads();
18811 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18812
18813 wxPyEndAllowThreads(__tstate);
18814 if (PyErr_Occurred()) SWIG_fail;
18815 }
18816 {
18817 wxDateTime * resultptr;
18818 resultptr = new wxDateTime((wxDateTime &) result);
18819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18820 }
18821 return resultobj;
18822 fail:
18823 return NULL;
18824 }
18825
18826
18827 static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
18828 PyObject *resultobj;
18829 int arg1 ;
18830 int arg2 ;
18831 int arg3 = (int) wxDateTime::Mon ;
18832 wxDateTime result;
18833 PyObject * obj0 = 0 ;
18834 PyObject * obj1 = 0 ;
18835 PyObject * obj2 = 0 ;
18836 char *kwnames[] = {
18837 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
18838 };
18839
18840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
18841 arg1 = (int)SWIG_As_int(obj0);
18842 if (PyErr_Occurred()) SWIG_fail;
18843 arg2 = (int)SWIG_As_int(obj1);
18844 if (PyErr_Occurred()) SWIG_fail;
18845 if (obj2) {
18846 arg3 = (int)SWIG_As_int(obj2);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 {
18850 PyThreadState* __tstate = wxPyBeginAllowThreads();
18851 result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3);
18852
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 {
18857 wxDateTime * resultptr;
18858 resultptr = new wxDateTime((wxDateTime &) result);
18859 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18860 }
18861 return resultobj;
18862 fail:
18863 return NULL;
18864 }
18865
18866
18867 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18868 PyObject *resultobj;
18869 wxDateTime *arg1 = (wxDateTime *) 0 ;
18870 int arg2 = (int) wxDateTime::Inv_Month ;
18871 int arg3 = (int) wxDateTime::Inv_Year ;
18872 wxDateTime *result;
18873 PyObject * obj0 = 0 ;
18874 PyObject * obj1 = 0 ;
18875 PyObject * obj2 = 0 ;
18876 char *kwnames[] = {
18877 (char *) "self",(char *) "month",(char *) "year", NULL
18878 };
18879
18880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18883 if (obj1) {
18884 arg2 = (int)SWIG_As_int(obj1);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 if (obj2) {
18888 arg3 = (int)SWIG_As_int(obj2);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 {
18894 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18895 result = (wxDateTime *) &_result_ref;
18896 }
18897
18898 wxPyEndAllowThreads(__tstate);
18899 if (PyErr_Occurred()) SWIG_fail;
18900 }
18901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18902 return resultobj;
18903 fail:
18904 return NULL;
18905 }
18906
18907
18908 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18909 PyObject *resultobj;
18910 wxDateTime *arg1 = (wxDateTime *) 0 ;
18911 int arg2 = (int) wxDateTime::Inv_Month ;
18912 int arg3 = (int) wxDateTime::Inv_Year ;
18913 wxDateTime result;
18914 PyObject * obj0 = 0 ;
18915 PyObject * obj1 = 0 ;
18916 PyObject * obj2 = 0 ;
18917 char *kwnames[] = {
18918 (char *) "self",(char *) "month",(char *) "year", NULL
18919 };
18920
18921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18924 if (obj1) {
18925 arg2 = (int)SWIG_As_int(obj1);
18926 if (PyErr_Occurred()) SWIG_fail;
18927 }
18928 if (obj2) {
18929 arg3 = (int)SWIG_As_int(obj2);
18930 if (PyErr_Occurred()) SWIG_fail;
18931 }
18932 {
18933 PyThreadState* __tstate = wxPyBeginAllowThreads();
18934 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18935
18936 wxPyEndAllowThreads(__tstate);
18937 if (PyErr_Occurred()) SWIG_fail;
18938 }
18939 {
18940 wxDateTime * resultptr;
18941 resultptr = new wxDateTime((wxDateTime &) result);
18942 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18943 }
18944 return resultobj;
18945 fail:
18946 return NULL;
18947 }
18948
18949
18950 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18951 PyObject *resultobj;
18952 wxDateTime *arg1 = (wxDateTime *) 0 ;
18953 int arg2 ;
18954 wxDateTime *result;
18955 PyObject * obj0 = 0 ;
18956 PyObject * obj1 = 0 ;
18957 char *kwnames[] = {
18958 (char *) "self",(char *) "yday", NULL
18959 };
18960
18961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18964 arg2 = (int)SWIG_As_int(obj1);
18965 if (PyErr_Occurred()) SWIG_fail;
18966 {
18967 PyThreadState* __tstate = wxPyBeginAllowThreads();
18968 {
18969 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18970 result = (wxDateTime *) &_result_ref;
18971 }
18972
18973 wxPyEndAllowThreads(__tstate);
18974 if (PyErr_Occurred()) SWIG_fail;
18975 }
18976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18977 return resultobj;
18978 fail:
18979 return NULL;
18980 }
18981
18982
18983 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18984 PyObject *resultobj;
18985 wxDateTime *arg1 = (wxDateTime *) 0 ;
18986 int arg2 ;
18987 wxDateTime result;
18988 PyObject * obj0 = 0 ;
18989 PyObject * obj1 = 0 ;
18990 char *kwnames[] = {
18991 (char *) "self",(char *) "yday", NULL
18992 };
18993
18994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18997 arg2 = (int)SWIG_As_int(obj1);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 result = (arg1)->GetYearDay(arg2);
19002
19003 wxPyEndAllowThreads(__tstate);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
19006 {
19007 wxDateTime * resultptr;
19008 resultptr = new wxDateTime((wxDateTime &) result);
19009 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19010 }
19011 return resultobj;
19012 fail:
19013 return NULL;
19014 }
19015
19016
19017 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
19018 PyObject *resultobj;
19019 wxDateTime *arg1 = (wxDateTime *) 0 ;
19020 double result;
19021 PyObject * obj0 = 0 ;
19022 char *kwnames[] = {
19023 (char *) "self", NULL
19024 };
19025
19026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
19027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 result = (double)(arg1)->GetJulianDayNumber();
19032
19033 wxPyEndAllowThreads(__tstate);
19034 if (PyErr_Occurred()) SWIG_fail;
19035 }
19036 resultobj = SWIG_From_double((double)result);
19037 return resultobj;
19038 fail:
19039 return NULL;
19040 }
19041
19042
19043 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
19044 PyObject *resultobj;
19045 wxDateTime *arg1 = (wxDateTime *) 0 ;
19046 double result;
19047 PyObject * obj0 = 0 ;
19048 char *kwnames[] = {
19049 (char *) "self", NULL
19050 };
19051
19052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
19053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 result = (double)(arg1)->GetJDN();
19058
19059 wxPyEndAllowThreads(__tstate);
19060 if (PyErr_Occurred()) SWIG_fail;
19061 }
19062 resultobj = SWIG_From_double((double)result);
19063 return resultobj;
19064 fail:
19065 return NULL;
19066 }
19067
19068
19069 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj;
19071 wxDateTime *arg1 = (wxDateTime *) 0 ;
19072 double result;
19073 PyObject * obj0 = 0 ;
19074 char *kwnames[] = {
19075 (char *) "self", NULL
19076 };
19077
19078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
19079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19081 {
19082 PyThreadState* __tstate = wxPyBeginAllowThreads();
19083 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
19084
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
19088 resultobj = SWIG_From_double((double)result);
19089 return resultobj;
19090 fail:
19091 return NULL;
19092 }
19093
19094
19095 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
19096 PyObject *resultobj;
19097 wxDateTime *arg1 = (wxDateTime *) 0 ;
19098 double result;
19099 PyObject * obj0 = 0 ;
19100 char *kwnames[] = {
19101 (char *) "self", NULL
19102 };
19103
19104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
19105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19107 {
19108 PyThreadState* __tstate = wxPyBeginAllowThreads();
19109 result = (double)(arg1)->GetMJD();
19110
19111 wxPyEndAllowThreads(__tstate);
19112 if (PyErr_Occurred()) SWIG_fail;
19113 }
19114 resultobj = SWIG_From_double((double)result);
19115 return resultobj;
19116 fail:
19117 return NULL;
19118 }
19119
19120
19121 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
19122 PyObject *resultobj;
19123 wxDateTime *arg1 = (wxDateTime *) 0 ;
19124 double result;
19125 PyObject * obj0 = 0 ;
19126 char *kwnames[] = {
19127 (char *) "self", NULL
19128 };
19129
19130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
19131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 result = (double)(arg1)->GetRataDie();
19136
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_From_double((double)result);
19141 return resultobj;
19142 fail:
19143 return NULL;
19144 }
19145
19146
19147 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19148 PyObject *resultobj;
19149 wxDateTime *arg1 = (wxDateTime *) 0 ;
19150 wxDateTime::TimeZone *arg2 = 0 ;
19151 bool arg3 = (bool) false ;
19152 wxDateTime result;
19153 bool temp2 = false ;
19154 PyObject * obj0 = 0 ;
19155 PyObject * obj1 = 0 ;
19156 PyObject * obj2 = 0 ;
19157 char *kwnames[] = {
19158 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19159 };
19160
19161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19164 {
19165 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19166 temp2 = true;
19167 }
19168 if (obj2) {
19169 arg3 = (bool)SWIG_As_bool(obj2);
19170 if (PyErr_Occurred()) SWIG_fail;
19171 }
19172 {
19173 PyThreadState* __tstate = wxPyBeginAllowThreads();
19174 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19175
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 {
19180 wxDateTime * resultptr;
19181 resultptr = new wxDateTime((wxDateTime &) result);
19182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19183 }
19184 {
19185 if (temp2) delete arg2;
19186 }
19187 return resultobj;
19188 fail:
19189 {
19190 if (temp2) delete arg2;
19191 }
19192 return NULL;
19193 }
19194
19195
19196 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19197 PyObject *resultobj;
19198 wxDateTime *arg1 = (wxDateTime *) 0 ;
19199 wxDateTime::TimeZone *arg2 = 0 ;
19200 bool arg3 = (bool) false ;
19201 wxDateTime *result;
19202 bool temp2 = false ;
19203 PyObject * obj0 = 0 ;
19204 PyObject * obj1 = 0 ;
19205 PyObject * obj2 = 0 ;
19206 char *kwnames[] = {
19207 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19208 };
19209
19210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19213 {
19214 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19215 temp2 = true;
19216 }
19217 if (obj2) {
19218 arg3 = (bool)SWIG_As_bool(obj2);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 {
19222 PyThreadState* __tstate = wxPyBeginAllowThreads();
19223 {
19224 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19225 result = (wxDateTime *) &_result_ref;
19226 }
19227
19228 wxPyEndAllowThreads(__tstate);
19229 if (PyErr_Occurred()) SWIG_fail;
19230 }
19231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19232 {
19233 if (temp2) delete arg2;
19234 }
19235 return resultobj;
19236 fail:
19237 {
19238 if (temp2) delete arg2;
19239 }
19240 return NULL;
19241 }
19242
19243
19244 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19245 PyObject *resultobj;
19246 wxDateTime *arg1 = (wxDateTime *) 0 ;
19247 bool arg2 = (bool) false ;
19248 wxDateTime result;
19249 PyObject * obj0 = 0 ;
19250 PyObject * obj1 = 0 ;
19251 char *kwnames[] = {
19252 (char *) "self",(char *) "noDST", NULL
19253 };
19254
19255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19258 if (obj1) {
19259 arg2 = (bool)SWIG_As_bool(obj1);
19260 if (PyErr_Occurred()) SWIG_fail;
19261 }
19262 {
19263 PyThreadState* __tstate = wxPyBeginAllowThreads();
19264 result = (arg1)->ToGMT(arg2);
19265
19266 wxPyEndAllowThreads(__tstate);
19267 if (PyErr_Occurred()) SWIG_fail;
19268 }
19269 {
19270 wxDateTime * resultptr;
19271 resultptr = new wxDateTime((wxDateTime &) result);
19272 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19273 }
19274 return resultobj;
19275 fail:
19276 return NULL;
19277 }
19278
19279
19280 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19281 PyObject *resultobj;
19282 wxDateTime *arg1 = (wxDateTime *) 0 ;
19283 bool arg2 = (bool) false ;
19284 wxDateTime *result;
19285 PyObject * obj0 = 0 ;
19286 PyObject * obj1 = 0 ;
19287 char *kwnames[] = {
19288 (char *) "self",(char *) "noDST", NULL
19289 };
19290
19291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19294 if (obj1) {
19295 arg2 = (bool)SWIG_As_bool(obj1);
19296 if (PyErr_Occurred()) SWIG_fail;
19297 }
19298 {
19299 PyThreadState* __tstate = wxPyBeginAllowThreads();
19300 {
19301 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19302 result = (wxDateTime *) &_result_ref;
19303 }
19304
19305 wxPyEndAllowThreads(__tstate);
19306 if (PyErr_Occurred()) SWIG_fail;
19307 }
19308 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19309 return resultobj;
19310 fail:
19311 return NULL;
19312 }
19313
19314
19315 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
19316 PyObject *resultobj;
19317 wxDateTime *arg1 = (wxDateTime *) 0 ;
19318 int arg2 = (int) wxDateTime::Country_Default ;
19319 int result;
19320 PyObject * obj0 = 0 ;
19321 PyObject * obj1 = 0 ;
19322 char *kwnames[] = {
19323 (char *) "self",(char *) "country", NULL
19324 };
19325
19326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19329 if (obj1) {
19330 arg2 = (int)SWIG_As_int(obj1);
19331 if (PyErr_Occurred()) SWIG_fail;
19332 }
19333 {
19334 PyThreadState* __tstate = wxPyBeginAllowThreads();
19335 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19336
19337 wxPyEndAllowThreads(__tstate);
19338 if (PyErr_Occurred()) SWIG_fail;
19339 }
19340 resultobj = SWIG_From_int((int)result);
19341 return resultobj;
19342 fail:
19343 return NULL;
19344 }
19345
19346
19347 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
19348 PyObject *resultobj;
19349 wxDateTime *arg1 = (wxDateTime *) 0 ;
19350 bool result;
19351 PyObject * obj0 = 0 ;
19352 char *kwnames[] = {
19353 (char *) "self", NULL
19354 };
19355
19356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19359 {
19360 PyThreadState* __tstate = wxPyBeginAllowThreads();
19361 result = (bool)((wxDateTime const *)arg1)->IsValid();
19362
19363 wxPyEndAllowThreads(__tstate);
19364 if (PyErr_Occurred()) SWIG_fail;
19365 }
19366 {
19367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19368 }
19369 return resultobj;
19370 fail:
19371 return NULL;
19372 }
19373
19374
19375 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
19376 PyObject *resultobj;
19377 wxDateTime *arg1 = (wxDateTime *) 0 ;
19378 time_t result;
19379 PyObject * obj0 = 0 ;
19380 char *kwnames[] = {
19381 (char *) "self", NULL
19382 };
19383
19384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19387 {
19388 PyThreadState* __tstate = wxPyBeginAllowThreads();
19389 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19390
19391 wxPyEndAllowThreads(__tstate);
19392 if (PyErr_Occurred()) SWIG_fail;
19393 }
19394 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
19395 return resultobj;
19396 fail:
19397 return NULL;
19398 }
19399
19400
19401 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
19402 PyObject *resultobj;
19403 wxDateTime *arg1 = (wxDateTime *) 0 ;
19404 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19405 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19406 int result;
19407 bool temp2 = false ;
19408 PyObject * obj0 = 0 ;
19409 PyObject * obj1 = 0 ;
19410 char *kwnames[] = {
19411 (char *) "self",(char *) "tz", NULL
19412 };
19413
19414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19417 if (obj1) {
19418 {
19419 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19420 temp2 = true;
19421 }
19422 }
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19426
19427 wxPyEndAllowThreads(__tstate);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
19430 resultobj = SWIG_From_int((int)result);
19431 {
19432 if (temp2) delete arg2;
19433 }
19434 return resultobj;
19435 fail:
19436 {
19437 if (temp2) delete arg2;
19438 }
19439 return NULL;
19440 }
19441
19442
19443 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19444 PyObject *resultobj;
19445 wxDateTime *arg1 = (wxDateTime *) 0 ;
19446 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19447 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19448 int result;
19449 bool temp2 = false ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 char *kwnames[] = {
19453 (char *) "self",(char *) "tz", NULL
19454 };
19455
19456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19459 if (obj1) {
19460 {
19461 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19462 temp2 = true;
19463 }
19464 }
19465 {
19466 PyThreadState* __tstate = wxPyBeginAllowThreads();
19467 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19468
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 resultobj = SWIG_From_int((int)result);
19473 {
19474 if (temp2) delete arg2;
19475 }
19476 return resultobj;
19477 fail:
19478 {
19479 if (temp2) delete arg2;
19480 }
19481 return NULL;
19482 }
19483
19484
19485 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
19486 PyObject *resultobj;
19487 wxDateTime *arg1 = (wxDateTime *) 0 ;
19488 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19489 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19490 int result;
19491 bool temp2 = false ;
19492 PyObject * obj0 = 0 ;
19493 PyObject * obj1 = 0 ;
19494 char *kwnames[] = {
19495 (char *) "self",(char *) "tz", NULL
19496 };
19497
19498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19501 if (obj1) {
19502 {
19503 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19504 temp2 = true;
19505 }
19506 }
19507 {
19508 PyThreadState* __tstate = wxPyBeginAllowThreads();
19509 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19510
19511 wxPyEndAllowThreads(__tstate);
19512 if (PyErr_Occurred()) SWIG_fail;
19513 }
19514 resultobj = SWIG_From_int((int)result);
19515 {
19516 if (temp2) delete arg2;
19517 }
19518 return resultobj;
19519 fail:
19520 {
19521 if (temp2) delete arg2;
19522 }
19523 return NULL;
19524 }
19525
19526
19527 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
19528 PyObject *resultobj;
19529 wxDateTime *arg1 = (wxDateTime *) 0 ;
19530 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19531 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19532 int result;
19533 bool temp2 = false ;
19534 PyObject * obj0 = 0 ;
19535 PyObject * obj1 = 0 ;
19536 char *kwnames[] = {
19537 (char *) "self",(char *) "tz", NULL
19538 };
19539
19540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19543 if (obj1) {
19544 {
19545 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19546 temp2 = true;
19547 }
19548 }
19549 {
19550 PyThreadState* __tstate = wxPyBeginAllowThreads();
19551 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19552
19553 wxPyEndAllowThreads(__tstate);
19554 if (PyErr_Occurred()) SWIG_fail;
19555 }
19556 resultobj = SWIG_From_int((int)result);
19557 {
19558 if (temp2) delete arg2;
19559 }
19560 return resultobj;
19561 fail:
19562 {
19563 if (temp2) delete arg2;
19564 }
19565 return NULL;
19566 }
19567
19568
19569 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
19570 PyObject *resultobj;
19571 wxDateTime *arg1 = (wxDateTime *) 0 ;
19572 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19573 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19574 int result;
19575 bool temp2 = false ;
19576 PyObject * obj0 = 0 ;
19577 PyObject * obj1 = 0 ;
19578 char *kwnames[] = {
19579 (char *) "self",(char *) "tz", NULL
19580 };
19581
19582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19585 if (obj1) {
19586 {
19587 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19588 temp2 = true;
19589 }
19590 }
19591 {
19592 PyThreadState* __tstate = wxPyBeginAllowThreads();
19593 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19594
19595 wxPyEndAllowThreads(__tstate);
19596 if (PyErr_Occurred()) SWIG_fail;
19597 }
19598 resultobj = SWIG_From_int((int)result);
19599 {
19600 if (temp2) delete arg2;
19601 }
19602 return resultobj;
19603 fail:
19604 {
19605 if (temp2) delete arg2;
19606 }
19607 return NULL;
19608 }
19609
19610
19611 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
19612 PyObject *resultobj;
19613 wxDateTime *arg1 = (wxDateTime *) 0 ;
19614 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19615 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19616 int result;
19617 bool temp2 = false ;
19618 PyObject * obj0 = 0 ;
19619 PyObject * obj1 = 0 ;
19620 char *kwnames[] = {
19621 (char *) "self",(char *) "tz", NULL
19622 };
19623
19624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19627 if (obj1) {
19628 {
19629 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19630 temp2 = true;
19631 }
19632 }
19633 {
19634 PyThreadState* __tstate = wxPyBeginAllowThreads();
19635 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19636
19637 wxPyEndAllowThreads(__tstate);
19638 if (PyErr_Occurred()) SWIG_fail;
19639 }
19640 resultobj = SWIG_From_int((int)result);
19641 {
19642 if (temp2) delete arg2;
19643 }
19644 return resultobj;
19645 fail:
19646 {
19647 if (temp2) delete arg2;
19648 }
19649 return NULL;
19650 }
19651
19652
19653 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
19654 PyObject *resultobj;
19655 wxDateTime *arg1 = (wxDateTime *) 0 ;
19656 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19657 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19658 int result;
19659 bool temp2 = false ;
19660 PyObject * obj0 = 0 ;
19661 PyObject * obj1 = 0 ;
19662 char *kwnames[] = {
19663 (char *) "self",(char *) "tz", NULL
19664 };
19665
19666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19669 if (obj1) {
19670 {
19671 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19672 temp2 = true;
19673 }
19674 }
19675 {
19676 PyThreadState* __tstate = wxPyBeginAllowThreads();
19677 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19678
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 resultobj = SWIG_From_int((int)result);
19683 {
19684 if (temp2) delete arg2;
19685 }
19686 return resultobj;
19687 fail:
19688 {
19689 if (temp2) delete arg2;
19690 }
19691 return NULL;
19692 }
19693
19694
19695 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
19696 PyObject *resultobj;
19697 wxDateTime *arg1 = (wxDateTime *) 0 ;
19698 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19699 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19700 int result;
19701 bool temp2 = false ;
19702 PyObject * obj0 = 0 ;
19703 PyObject * obj1 = 0 ;
19704 char *kwnames[] = {
19705 (char *) "self",(char *) "tz", NULL
19706 };
19707
19708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19711 if (obj1) {
19712 {
19713 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19714 temp2 = true;
19715 }
19716 }
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19720
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 resultobj = SWIG_From_int((int)result);
19725 {
19726 if (temp2) delete arg2;
19727 }
19728 return resultobj;
19729 fail:
19730 {
19731 if (temp2) delete arg2;
19732 }
19733 return NULL;
19734 }
19735
19736
19737 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19738 PyObject *resultobj;
19739 wxDateTime *arg1 = (wxDateTime *) 0 ;
19740 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19741 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19742 int result;
19743 bool temp2 = false ;
19744 PyObject * obj0 = 0 ;
19745 PyObject * obj1 = 0 ;
19746 char *kwnames[] = {
19747 (char *) "self",(char *) "tz", NULL
19748 };
19749
19750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19753 if (obj1) {
19754 {
19755 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19756 temp2 = true;
19757 }
19758 }
19759 {
19760 PyThreadState* __tstate = wxPyBeginAllowThreads();
19761 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19762
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
19766 resultobj = SWIG_From_int((int)result);
19767 {
19768 if (temp2) delete arg2;
19769 }
19770 return resultobj;
19771 fail:
19772 {
19773 if (temp2) delete arg2;
19774 }
19775 return NULL;
19776 }
19777
19778
19779 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19780 PyObject *resultobj;
19781 wxDateTime *arg1 = (wxDateTime *) 0 ;
19782 int arg2 = (int) wxDateTime::Monday_First ;
19783 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19784 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19785 int result;
19786 bool temp3 = false ;
19787 PyObject * obj0 = 0 ;
19788 PyObject * obj1 = 0 ;
19789 PyObject * obj2 = 0 ;
19790 char *kwnames[] = {
19791 (char *) "self",(char *) "flags",(char *) "tz", NULL
19792 };
19793
19794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19797 if (obj1) {
19798 arg2 = (int)SWIG_As_int(obj1);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 if (obj2) {
19802 {
19803 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19804 temp3 = true;
19805 }
19806 }
19807 {
19808 PyThreadState* __tstate = wxPyBeginAllowThreads();
19809 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19810
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 resultobj = SWIG_From_int((int)result);
19815 {
19816 if (temp3) delete arg3;
19817 }
19818 return resultobj;
19819 fail:
19820 {
19821 if (temp3) delete arg3;
19822 }
19823 return NULL;
19824 }
19825
19826
19827 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19828 PyObject *resultobj;
19829 wxDateTime *arg1 = (wxDateTime *) 0 ;
19830 int arg2 = (int) wxDateTime::Monday_First ;
19831 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19832 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19833 int result;
19834 bool temp3 = false ;
19835 PyObject * obj0 = 0 ;
19836 PyObject * obj1 = 0 ;
19837 PyObject * obj2 = 0 ;
19838 char *kwnames[] = {
19839 (char *) "self",(char *) "flags",(char *) "tz", NULL
19840 };
19841
19842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19845 if (obj1) {
19846 arg2 = (int)SWIG_As_int(obj1);
19847 if (PyErr_Occurred()) SWIG_fail;
19848 }
19849 if (obj2) {
19850 {
19851 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19852 temp3 = true;
19853 }
19854 }
19855 {
19856 PyThreadState* __tstate = wxPyBeginAllowThreads();
19857 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19858
19859 wxPyEndAllowThreads(__tstate);
19860 if (PyErr_Occurred()) SWIG_fail;
19861 }
19862 resultobj = SWIG_From_int((int)result);
19863 {
19864 if (temp3) delete arg3;
19865 }
19866 return resultobj;
19867 fail:
19868 {
19869 if (temp3) delete arg3;
19870 }
19871 return NULL;
19872 }
19873
19874
19875 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
19876 PyObject *resultobj;
19877 wxDateTime *arg1 = (wxDateTime *) 0 ;
19878 int arg2 = (int) wxDateTime::Country_Default ;
19879 bool result;
19880 PyObject * obj0 = 0 ;
19881 PyObject * obj1 = 0 ;
19882 char *kwnames[] = {
19883 (char *) "self",(char *) "country", NULL
19884 };
19885
19886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19889 if (obj1) {
19890 arg2 = (int)SWIG_As_int(obj1);
19891 if (PyErr_Occurred()) SWIG_fail;
19892 }
19893 {
19894 PyThreadState* __tstate = wxPyBeginAllowThreads();
19895 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19896
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 {
19901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19902 }
19903 return resultobj;
19904 fail:
19905 return NULL;
19906 }
19907
19908
19909 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
19910 PyObject *resultobj;
19911 wxDateTime *arg1 = (wxDateTime *) 0 ;
19912 wxDateTime *arg2 = 0 ;
19913 bool result;
19914 PyObject * obj0 = 0 ;
19915 PyObject * obj1 = 0 ;
19916 char *kwnames[] = {
19917 (char *) "self",(char *) "datetime", NULL
19918 };
19919
19920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19924 SWIG_POINTER_EXCEPTION | 0)) == -1)
19925 SWIG_fail;
19926 if (arg2 == NULL) {
19927 PyErr_SetString(PyExc_TypeError,"null reference");
19928 SWIG_fail;
19929 }
19930 {
19931 PyThreadState* __tstate = wxPyBeginAllowThreads();
19932 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19933
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 {
19938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19939 }
19940 return resultobj;
19941 fail:
19942 return NULL;
19943 }
19944
19945
19946 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
19947 PyObject *resultobj;
19948 wxDateTime *arg1 = (wxDateTime *) 0 ;
19949 wxDateTime *arg2 = 0 ;
19950 bool result;
19951 PyObject * obj0 = 0 ;
19952 PyObject * obj1 = 0 ;
19953 char *kwnames[] = {
19954 (char *) "self",(char *) "datetime", NULL
19955 };
19956
19957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19961 SWIG_POINTER_EXCEPTION | 0)) == -1)
19962 SWIG_fail;
19963 if (arg2 == NULL) {
19964 PyErr_SetString(PyExc_TypeError,"null reference");
19965 SWIG_fail;
19966 }
19967 {
19968 PyThreadState* __tstate = wxPyBeginAllowThreads();
19969 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19970
19971 wxPyEndAllowThreads(__tstate);
19972 if (PyErr_Occurred()) SWIG_fail;
19973 }
19974 {
19975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19976 }
19977 return resultobj;
19978 fail:
19979 return NULL;
19980 }
19981
19982
19983 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
19984 PyObject *resultobj;
19985 wxDateTime *arg1 = (wxDateTime *) 0 ;
19986 wxDateTime *arg2 = 0 ;
19987 bool result;
19988 PyObject * obj0 = 0 ;
19989 PyObject * obj1 = 0 ;
19990 char *kwnames[] = {
19991 (char *) "self",(char *) "datetime", NULL
19992 };
19993
19994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19998 SWIG_POINTER_EXCEPTION | 0)) == -1)
19999 SWIG_fail;
20000 if (arg2 == NULL) {
20001 PyErr_SetString(PyExc_TypeError,"null reference");
20002 SWIG_fail;
20003 }
20004 {
20005 PyThreadState* __tstate = wxPyBeginAllowThreads();
20006 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
20007
20008 wxPyEndAllowThreads(__tstate);
20009 if (PyErr_Occurred()) SWIG_fail;
20010 }
20011 {
20012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20013 }
20014 return resultobj;
20015 fail:
20016 return NULL;
20017 }
20018
20019
20020 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
20021 PyObject *resultobj;
20022 wxDateTime *arg1 = (wxDateTime *) 0 ;
20023 wxDateTime *arg2 = 0 ;
20024 wxDateTime *arg3 = 0 ;
20025 bool result;
20026 PyObject * obj0 = 0 ;
20027 PyObject * obj1 = 0 ;
20028 PyObject * obj2 = 0 ;
20029 char *kwnames[] = {
20030 (char *) "self",(char *) "t1",(char *) "t2", NULL
20031 };
20032
20033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20036 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20037 SWIG_POINTER_EXCEPTION | 0)) == -1)
20038 SWIG_fail;
20039 if (arg2 == NULL) {
20040 PyErr_SetString(PyExc_TypeError,"null reference");
20041 SWIG_fail;
20042 }
20043 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20044 SWIG_POINTER_EXCEPTION | 0)) == -1)
20045 SWIG_fail;
20046 if (arg3 == NULL) {
20047 PyErr_SetString(PyExc_TypeError,"null reference");
20048 SWIG_fail;
20049 }
20050 {
20051 PyThreadState* __tstate = wxPyBeginAllowThreads();
20052 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20053
20054 wxPyEndAllowThreads(__tstate);
20055 if (PyErr_Occurred()) SWIG_fail;
20056 }
20057 {
20058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20059 }
20060 return resultobj;
20061 fail:
20062 return NULL;
20063 }
20064
20065
20066 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj;
20068 wxDateTime *arg1 = (wxDateTime *) 0 ;
20069 wxDateTime *arg2 = 0 ;
20070 wxDateTime *arg3 = 0 ;
20071 bool result;
20072 PyObject * obj0 = 0 ;
20073 PyObject * obj1 = 0 ;
20074 PyObject * obj2 = 0 ;
20075 char *kwnames[] = {
20076 (char *) "self",(char *) "t1",(char *) "t2", NULL
20077 };
20078
20079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20083 SWIG_POINTER_EXCEPTION | 0)) == -1)
20084 SWIG_fail;
20085 if (arg2 == NULL) {
20086 PyErr_SetString(PyExc_TypeError,"null reference");
20087 SWIG_fail;
20088 }
20089 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20090 SWIG_POINTER_EXCEPTION | 0)) == -1)
20091 SWIG_fail;
20092 if (arg3 == NULL) {
20093 PyErr_SetString(PyExc_TypeError,"null reference");
20094 SWIG_fail;
20095 }
20096 {
20097 PyThreadState* __tstate = wxPyBeginAllowThreads();
20098 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20099
20100 wxPyEndAllowThreads(__tstate);
20101 if (PyErr_Occurred()) SWIG_fail;
20102 }
20103 {
20104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20105 }
20106 return resultobj;
20107 fail:
20108 return NULL;
20109 }
20110
20111
20112 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
20113 PyObject *resultobj;
20114 wxDateTime *arg1 = (wxDateTime *) 0 ;
20115 wxDateTime *arg2 = 0 ;
20116 bool result;
20117 PyObject * obj0 = 0 ;
20118 PyObject * obj1 = 0 ;
20119 char *kwnames[] = {
20120 (char *) "self",(char *) "dt", NULL
20121 };
20122
20123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
20124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20127 SWIG_POINTER_EXCEPTION | 0)) == -1)
20128 SWIG_fail;
20129 if (arg2 == NULL) {
20130 PyErr_SetString(PyExc_TypeError,"null reference");
20131 SWIG_fail;
20132 }
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
20136
20137 wxPyEndAllowThreads(__tstate);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 {
20141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20142 }
20143 return resultobj;
20144 fail:
20145 return NULL;
20146 }
20147
20148
20149 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
20150 PyObject *resultobj;
20151 wxDateTime *arg1 = (wxDateTime *) 0 ;
20152 wxDateTime *arg2 = 0 ;
20153 bool result;
20154 PyObject * obj0 = 0 ;
20155 PyObject * obj1 = 0 ;
20156 char *kwnames[] = {
20157 (char *) "self",(char *) "dt", NULL
20158 };
20159
20160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
20161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20164 SWIG_POINTER_EXCEPTION | 0)) == -1)
20165 SWIG_fail;
20166 if (arg2 == NULL) {
20167 PyErr_SetString(PyExc_TypeError,"null reference");
20168 SWIG_fail;
20169 }
20170 {
20171 PyThreadState* __tstate = wxPyBeginAllowThreads();
20172 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
20173
20174 wxPyEndAllowThreads(__tstate);
20175 if (PyErr_Occurred()) SWIG_fail;
20176 }
20177 {
20178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20179 }
20180 return resultobj;
20181 fail:
20182 return NULL;
20183 }
20184
20185
20186 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
20187 PyObject *resultobj;
20188 wxDateTime *arg1 = (wxDateTime *) 0 ;
20189 wxDateTime *arg2 = 0 ;
20190 wxTimeSpan *arg3 = 0 ;
20191 bool result;
20192 PyObject * obj0 = 0 ;
20193 PyObject * obj1 = 0 ;
20194 PyObject * obj2 = 0 ;
20195 char *kwnames[] = {
20196 (char *) "self",(char *) "dt",(char *) "ts", NULL
20197 };
20198
20199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20203 SWIG_POINTER_EXCEPTION | 0)) == -1)
20204 SWIG_fail;
20205 if (arg2 == NULL) {
20206 PyErr_SetString(PyExc_TypeError,"null reference");
20207 SWIG_fail;
20208 }
20209 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20210 SWIG_POINTER_EXCEPTION | 0)) == -1)
20211 SWIG_fail;
20212 if (arg3 == NULL) {
20213 PyErr_SetString(PyExc_TypeError,"null reference");
20214 SWIG_fail;
20215 }
20216 {
20217 PyThreadState* __tstate = wxPyBeginAllowThreads();
20218 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20219
20220 wxPyEndAllowThreads(__tstate);
20221 if (PyErr_Occurred()) SWIG_fail;
20222 }
20223 {
20224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20225 }
20226 return resultobj;
20227 fail:
20228 return NULL;
20229 }
20230
20231
20232 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj;
20234 wxDateTime *arg1 = (wxDateTime *) 0 ;
20235 wxTimeSpan *arg2 = 0 ;
20236 wxDateTime *result;
20237 PyObject * obj0 = 0 ;
20238 PyObject * obj1 = 0 ;
20239 char *kwnames[] = {
20240 (char *) "self",(char *) "diff", NULL
20241 };
20242
20243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20247 SWIG_POINTER_EXCEPTION | 0)) == -1)
20248 SWIG_fail;
20249 if (arg2 == NULL) {
20250 PyErr_SetString(PyExc_TypeError,"null reference");
20251 SWIG_fail;
20252 }
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 {
20256 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20257 result = (wxDateTime *) &_result_ref;
20258 }
20259
20260 wxPyEndAllowThreads(__tstate);
20261 if (PyErr_Occurred()) SWIG_fail;
20262 }
20263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20264 return resultobj;
20265 fail:
20266 return NULL;
20267 }
20268
20269
20270 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
20271 PyObject *resultobj;
20272 wxDateTime *arg1 = (wxDateTime *) 0 ;
20273 wxDateSpan *arg2 = 0 ;
20274 wxDateTime *result;
20275 PyObject * obj0 = 0 ;
20276 PyObject * obj1 = 0 ;
20277 char *kwnames[] = {
20278 (char *) "self",(char *) "diff", NULL
20279 };
20280
20281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20285 SWIG_POINTER_EXCEPTION | 0)) == -1)
20286 SWIG_fail;
20287 if (arg2 == NULL) {
20288 PyErr_SetString(PyExc_TypeError,"null reference");
20289 SWIG_fail;
20290 }
20291 {
20292 PyThreadState* __tstate = wxPyBeginAllowThreads();
20293 {
20294 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20295 result = (wxDateTime *) &_result_ref;
20296 }
20297
20298 wxPyEndAllowThreads(__tstate);
20299 if (PyErr_Occurred()) SWIG_fail;
20300 }
20301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20302 return resultobj;
20303 fail:
20304 return NULL;
20305 }
20306
20307
20308 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
20309 PyObject *resultobj;
20310 wxDateTime *arg1 = (wxDateTime *) 0 ;
20311 wxTimeSpan *arg2 = 0 ;
20312 wxDateTime *result;
20313 PyObject * obj0 = 0 ;
20314 PyObject * obj1 = 0 ;
20315 char *kwnames[] = {
20316 (char *) "self",(char *) "diff", NULL
20317 };
20318
20319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20323 SWIG_POINTER_EXCEPTION | 0)) == -1)
20324 SWIG_fail;
20325 if (arg2 == NULL) {
20326 PyErr_SetString(PyExc_TypeError,"null reference");
20327 SWIG_fail;
20328 }
20329 {
20330 PyThreadState* __tstate = wxPyBeginAllowThreads();
20331 {
20332 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20333 result = (wxDateTime *) &_result_ref;
20334 }
20335
20336 wxPyEndAllowThreads(__tstate);
20337 if (PyErr_Occurred()) SWIG_fail;
20338 }
20339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20340 return resultobj;
20341 fail:
20342 return NULL;
20343 }
20344
20345
20346 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
20347 PyObject *resultobj;
20348 wxDateTime *arg1 = (wxDateTime *) 0 ;
20349 wxDateSpan *arg2 = 0 ;
20350 wxDateTime *result;
20351 PyObject * obj0 = 0 ;
20352 PyObject * obj1 = 0 ;
20353 char *kwnames[] = {
20354 (char *) "self",(char *) "diff", NULL
20355 };
20356
20357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20360 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20361 SWIG_POINTER_EXCEPTION | 0)) == -1)
20362 SWIG_fail;
20363 if (arg2 == NULL) {
20364 PyErr_SetString(PyExc_TypeError,"null reference");
20365 SWIG_fail;
20366 }
20367 {
20368 PyThreadState* __tstate = wxPyBeginAllowThreads();
20369 {
20370 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20371 result = (wxDateTime *) &_result_ref;
20372 }
20373
20374 wxPyEndAllowThreads(__tstate);
20375 if (PyErr_Occurred()) SWIG_fail;
20376 }
20377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20378 return resultobj;
20379 fail:
20380 return NULL;
20381 }
20382
20383
20384 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
20385 PyObject *resultobj;
20386 wxDateTime *arg1 = (wxDateTime *) 0 ;
20387 wxDateTime *arg2 = 0 ;
20388 wxTimeSpan result;
20389 PyObject * obj0 = 0 ;
20390 PyObject * obj1 = 0 ;
20391 char *kwnames[] = {
20392 (char *) "self",(char *) "dt", NULL
20393 };
20394
20395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20399 SWIG_POINTER_EXCEPTION | 0)) == -1)
20400 SWIG_fail;
20401 if (arg2 == NULL) {
20402 PyErr_SetString(PyExc_TypeError,"null reference");
20403 SWIG_fail;
20404 }
20405 {
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20408
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 {
20413 wxTimeSpan * resultptr;
20414 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20416 }
20417 return resultobj;
20418 fail:
20419 return NULL;
20420 }
20421
20422
20423 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
20424 PyObject *resultobj;
20425 wxDateTime *arg1 = (wxDateTime *) 0 ;
20426 wxTimeSpan *arg2 = 0 ;
20427 wxDateTime *result;
20428 PyObject * obj0 = 0 ;
20429 PyObject * obj1 = 0 ;
20430
20431 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20433 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20435 SWIG_POINTER_EXCEPTION | 0)) == -1)
20436 SWIG_fail;
20437 if (arg2 == NULL) {
20438 PyErr_SetString(PyExc_TypeError,"null reference");
20439 SWIG_fail;
20440 }
20441 {
20442 PyThreadState* __tstate = wxPyBeginAllowThreads();
20443 {
20444 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20445 result = (wxDateTime *) &_result_ref;
20446 }
20447
20448 wxPyEndAllowThreads(__tstate);
20449 if (PyErr_Occurred()) SWIG_fail;
20450 }
20451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20452 return resultobj;
20453 fail:
20454 return NULL;
20455 }
20456
20457
20458 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
20459 PyObject *resultobj;
20460 wxDateTime *arg1 = (wxDateTime *) 0 ;
20461 wxDateSpan *arg2 = 0 ;
20462 wxDateTime *result;
20463 PyObject * obj0 = 0 ;
20464 PyObject * obj1 = 0 ;
20465
20466 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20468 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20470 SWIG_POINTER_EXCEPTION | 0)) == -1)
20471 SWIG_fail;
20472 if (arg2 == NULL) {
20473 PyErr_SetString(PyExc_TypeError,"null reference");
20474 SWIG_fail;
20475 }
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 {
20479 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20480 result = (wxDateTime *) &_result_ref;
20481 }
20482
20483 wxPyEndAllowThreads(__tstate);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 }
20486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20487 return resultobj;
20488 fail:
20489 return NULL;
20490 }
20491
20492
20493 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20494 int argc;
20495 PyObject *argv[3];
20496 int ii;
20497
20498 argc = PyObject_Length(args);
20499 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20500 argv[ii] = PyTuple_GetItem(args,ii);
20501 }
20502 if (argc == 2) {
20503 int _v;
20504 {
20505 void *ptr;
20506 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20507 _v = 0;
20508 PyErr_Clear();
20509 } else {
20510 _v = 1;
20511 }
20512 }
20513 if (_v) {
20514 {
20515 void *ptr;
20516 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20517 _v = 0;
20518 PyErr_Clear();
20519 } else {
20520 _v = 1;
20521 }
20522 }
20523 if (_v) {
20524 return _wrap_DateTime___iadd____SWIG_0(self,args);
20525 }
20526 }
20527 }
20528 if (argc == 2) {
20529 int _v;
20530 {
20531 void *ptr;
20532 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20533 _v = 0;
20534 PyErr_Clear();
20535 } else {
20536 _v = 1;
20537 }
20538 }
20539 if (_v) {
20540 {
20541 void *ptr;
20542 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20543 _v = 0;
20544 PyErr_Clear();
20545 } else {
20546 _v = 1;
20547 }
20548 }
20549 if (_v) {
20550 return _wrap_DateTime___iadd____SWIG_1(self,args);
20551 }
20552 }
20553 }
20554
20555 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20556 return NULL;
20557 }
20558
20559
20560 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
20561 PyObject *resultobj;
20562 wxDateTime *arg1 = (wxDateTime *) 0 ;
20563 wxTimeSpan *arg2 = 0 ;
20564 wxDateTime *result;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567
20568 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20570 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20572 SWIG_POINTER_EXCEPTION | 0)) == -1)
20573 SWIG_fail;
20574 if (arg2 == NULL) {
20575 PyErr_SetString(PyExc_TypeError,"null reference");
20576 SWIG_fail;
20577 }
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 {
20581 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20582 result = (wxDateTime *) &_result_ref;
20583 }
20584
20585 wxPyEndAllowThreads(__tstate);
20586 if (PyErr_Occurred()) SWIG_fail;
20587 }
20588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20589 return resultobj;
20590 fail:
20591 return NULL;
20592 }
20593
20594
20595 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
20596 PyObject *resultobj;
20597 wxDateTime *arg1 = (wxDateTime *) 0 ;
20598 wxDateSpan *arg2 = 0 ;
20599 wxDateTime *result;
20600 PyObject * obj0 = 0 ;
20601 PyObject * obj1 = 0 ;
20602
20603 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20605 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20607 SWIG_POINTER_EXCEPTION | 0)) == -1)
20608 SWIG_fail;
20609 if (arg2 == NULL) {
20610 PyErr_SetString(PyExc_TypeError,"null reference");
20611 SWIG_fail;
20612 }
20613 {
20614 PyThreadState* __tstate = wxPyBeginAllowThreads();
20615 {
20616 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20617 result = (wxDateTime *) &_result_ref;
20618 }
20619
20620 wxPyEndAllowThreads(__tstate);
20621 if (PyErr_Occurred()) SWIG_fail;
20622 }
20623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20624 return resultobj;
20625 fail:
20626 return NULL;
20627 }
20628
20629
20630 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20631 int argc;
20632 PyObject *argv[3];
20633 int ii;
20634
20635 argc = PyObject_Length(args);
20636 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20637 argv[ii] = PyTuple_GetItem(args,ii);
20638 }
20639 if (argc == 2) {
20640 int _v;
20641 {
20642 void *ptr;
20643 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20644 _v = 0;
20645 PyErr_Clear();
20646 } else {
20647 _v = 1;
20648 }
20649 }
20650 if (_v) {
20651 {
20652 void *ptr;
20653 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20654 _v = 0;
20655 PyErr_Clear();
20656 } else {
20657 _v = 1;
20658 }
20659 }
20660 if (_v) {
20661 return _wrap_DateTime___isub____SWIG_0(self,args);
20662 }
20663 }
20664 }
20665 if (argc == 2) {
20666 int _v;
20667 {
20668 void *ptr;
20669 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20670 _v = 0;
20671 PyErr_Clear();
20672 } else {
20673 _v = 1;
20674 }
20675 }
20676 if (_v) {
20677 {
20678 void *ptr;
20679 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20680 _v = 0;
20681 PyErr_Clear();
20682 } else {
20683 _v = 1;
20684 }
20685 }
20686 if (_v) {
20687 return _wrap_DateTime___isub____SWIG_1(self,args);
20688 }
20689 }
20690 }
20691
20692 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20693 return NULL;
20694 }
20695
20696
20697 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
20698 PyObject *resultobj;
20699 wxDateTime *arg1 = (wxDateTime *) 0 ;
20700 wxTimeSpan *arg2 = 0 ;
20701 wxDateTime result;
20702 PyObject * obj0 = 0 ;
20703 PyObject * obj1 = 0 ;
20704
20705 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20709 SWIG_POINTER_EXCEPTION | 0)) == -1)
20710 SWIG_fail;
20711 if (arg2 == NULL) {
20712 PyErr_SetString(PyExc_TypeError,"null reference");
20713 SWIG_fail;
20714 }
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20718
20719 wxPyEndAllowThreads(__tstate);
20720 if (PyErr_Occurred()) SWIG_fail;
20721 }
20722 {
20723 wxDateTime * resultptr;
20724 resultptr = new wxDateTime((wxDateTime &) result);
20725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20726 }
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
20734 PyObject *resultobj;
20735 wxDateTime *arg1 = (wxDateTime *) 0 ;
20736 wxDateSpan *arg2 = 0 ;
20737 wxDateTime result;
20738 PyObject * obj0 = 0 ;
20739 PyObject * obj1 = 0 ;
20740
20741 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20744 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20745 SWIG_POINTER_EXCEPTION | 0)) == -1)
20746 SWIG_fail;
20747 if (arg2 == NULL) {
20748 PyErr_SetString(PyExc_TypeError,"null reference");
20749 SWIG_fail;
20750 }
20751 {
20752 PyThreadState* __tstate = wxPyBeginAllowThreads();
20753 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20754
20755 wxPyEndAllowThreads(__tstate);
20756 if (PyErr_Occurred()) SWIG_fail;
20757 }
20758 {
20759 wxDateTime * resultptr;
20760 resultptr = new wxDateTime((wxDateTime &) result);
20761 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20762 }
20763 return resultobj;
20764 fail:
20765 return NULL;
20766 }
20767
20768
20769 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20770 int argc;
20771 PyObject *argv[3];
20772 int ii;
20773
20774 argc = PyObject_Length(args);
20775 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20776 argv[ii] = PyTuple_GetItem(args,ii);
20777 }
20778 if (argc == 2) {
20779 int _v;
20780 {
20781 void *ptr;
20782 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20783 _v = 0;
20784 PyErr_Clear();
20785 } else {
20786 _v = 1;
20787 }
20788 }
20789 if (_v) {
20790 {
20791 void *ptr;
20792 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20793 _v = 0;
20794 PyErr_Clear();
20795 } else {
20796 _v = 1;
20797 }
20798 }
20799 if (_v) {
20800 return _wrap_DateTime___add____SWIG_0(self,args);
20801 }
20802 }
20803 }
20804 if (argc == 2) {
20805 int _v;
20806 {
20807 void *ptr;
20808 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20809 _v = 0;
20810 PyErr_Clear();
20811 } else {
20812 _v = 1;
20813 }
20814 }
20815 if (_v) {
20816 {
20817 void *ptr;
20818 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20819 _v = 0;
20820 PyErr_Clear();
20821 } else {
20822 _v = 1;
20823 }
20824 }
20825 if (_v) {
20826 return _wrap_DateTime___add____SWIG_1(self,args);
20827 }
20828 }
20829 }
20830
20831 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20832 return NULL;
20833 }
20834
20835
20836 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
20837 PyObject *resultobj;
20838 wxDateTime *arg1 = (wxDateTime *) 0 ;
20839 wxDateTime *arg2 = 0 ;
20840 wxTimeSpan result;
20841 PyObject * obj0 = 0 ;
20842 PyObject * obj1 = 0 ;
20843
20844 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20848 SWIG_POINTER_EXCEPTION | 0)) == -1)
20849 SWIG_fail;
20850 if (arg2 == NULL) {
20851 PyErr_SetString(PyExc_TypeError,"null reference");
20852 SWIG_fail;
20853 }
20854 {
20855 PyThreadState* __tstate = wxPyBeginAllowThreads();
20856 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20857
20858 wxPyEndAllowThreads(__tstate);
20859 if (PyErr_Occurred()) SWIG_fail;
20860 }
20861 {
20862 wxTimeSpan * resultptr;
20863 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20864 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20865 }
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
20873 PyObject *resultobj;
20874 wxDateTime *arg1 = (wxDateTime *) 0 ;
20875 wxTimeSpan *arg2 = 0 ;
20876 wxDateTime result;
20877 PyObject * obj0 = 0 ;
20878 PyObject * obj1 = 0 ;
20879
20880 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20884 SWIG_POINTER_EXCEPTION | 0)) == -1)
20885 SWIG_fail;
20886 if (arg2 == NULL) {
20887 PyErr_SetString(PyExc_TypeError,"null reference");
20888 SWIG_fail;
20889 }
20890 {
20891 PyThreadState* __tstate = wxPyBeginAllowThreads();
20892 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20893
20894 wxPyEndAllowThreads(__tstate);
20895 if (PyErr_Occurred()) SWIG_fail;
20896 }
20897 {
20898 wxDateTime * resultptr;
20899 resultptr = new wxDateTime((wxDateTime &) result);
20900 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20901 }
20902 return resultobj;
20903 fail:
20904 return NULL;
20905 }
20906
20907
20908 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
20909 PyObject *resultobj;
20910 wxDateTime *arg1 = (wxDateTime *) 0 ;
20911 wxDateSpan *arg2 = 0 ;
20912 wxDateTime result;
20913 PyObject * obj0 = 0 ;
20914 PyObject * obj1 = 0 ;
20915
20916 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20920 SWIG_POINTER_EXCEPTION | 0)) == -1)
20921 SWIG_fail;
20922 if (arg2 == NULL) {
20923 PyErr_SetString(PyExc_TypeError,"null reference");
20924 SWIG_fail;
20925 }
20926 {
20927 PyThreadState* __tstate = wxPyBeginAllowThreads();
20928 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20929
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 {
20934 wxDateTime * resultptr;
20935 resultptr = new wxDateTime((wxDateTime &) result);
20936 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20937 }
20938 return resultobj;
20939 fail:
20940 return NULL;
20941 }
20942
20943
20944 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20945 int argc;
20946 PyObject *argv[3];
20947 int ii;
20948
20949 argc = PyObject_Length(args);
20950 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20951 argv[ii] = PyTuple_GetItem(args,ii);
20952 }
20953 if (argc == 2) {
20954 int _v;
20955 {
20956 void *ptr;
20957 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20958 _v = 0;
20959 PyErr_Clear();
20960 } else {
20961 _v = 1;
20962 }
20963 }
20964 if (_v) {
20965 {
20966 void *ptr;
20967 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20968 _v = 0;
20969 PyErr_Clear();
20970 } else {
20971 _v = 1;
20972 }
20973 }
20974 if (_v) {
20975 return _wrap_DateTime___sub____SWIG_0(self,args);
20976 }
20977 }
20978 }
20979 if (argc == 2) {
20980 int _v;
20981 {
20982 void *ptr;
20983 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20984 _v = 0;
20985 PyErr_Clear();
20986 } else {
20987 _v = 1;
20988 }
20989 }
20990 if (_v) {
20991 {
20992 void *ptr;
20993 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20994 _v = 0;
20995 PyErr_Clear();
20996 } else {
20997 _v = 1;
20998 }
20999 }
21000 if (_v) {
21001 return _wrap_DateTime___sub____SWIG_1(self,args);
21002 }
21003 }
21004 }
21005 if (argc == 2) {
21006 int _v;
21007 {
21008 void *ptr;
21009 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21010 _v = 0;
21011 PyErr_Clear();
21012 } else {
21013 _v = 1;
21014 }
21015 }
21016 if (_v) {
21017 {
21018 void *ptr;
21019 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
21020 _v = 0;
21021 PyErr_Clear();
21022 } else {
21023 _v = 1;
21024 }
21025 }
21026 if (_v) {
21027 return _wrap_DateTime___sub____SWIG_2(self,args);
21028 }
21029 }
21030 }
21031
21032 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
21033 return NULL;
21034 }
21035
21036
21037 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
21038 PyObject *resultobj;
21039 wxDateTime *arg1 = (wxDateTime *) 0 ;
21040 wxDateTime *arg2 = (wxDateTime *) 0 ;
21041 bool result;
21042 PyObject * obj0 = 0 ;
21043 PyObject * obj1 = 0 ;
21044
21045 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
21046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21048 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21050 {
21051 PyThreadState* __tstate = wxPyBeginAllowThreads();
21052 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
21053
21054 wxPyEndAllowThreads(__tstate);
21055 if (PyErr_Occurred()) SWIG_fail;
21056 }
21057 {
21058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21059 }
21060 return resultobj;
21061 fail:
21062 return NULL;
21063 }
21064
21065
21066 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
21067 PyObject *resultobj;
21068 wxDateTime *arg1 = (wxDateTime *) 0 ;
21069 wxDateTime *arg2 = (wxDateTime *) 0 ;
21070 bool result;
21071 PyObject * obj0 = 0 ;
21072 PyObject * obj1 = 0 ;
21073
21074 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
21075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21079 {
21080 PyThreadState* __tstate = wxPyBeginAllowThreads();
21081 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
21082
21083 wxPyEndAllowThreads(__tstate);
21084 if (PyErr_Occurred()) SWIG_fail;
21085 }
21086 {
21087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21088 }
21089 return resultobj;
21090 fail:
21091 return NULL;
21092 }
21093
21094
21095 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
21096 PyObject *resultobj;
21097 wxDateTime *arg1 = (wxDateTime *) 0 ;
21098 wxDateTime *arg2 = (wxDateTime *) 0 ;
21099 bool result;
21100 PyObject * obj0 = 0 ;
21101 PyObject * obj1 = 0 ;
21102
21103 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
21104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
21111
21112 wxPyEndAllowThreads(__tstate);
21113 if (PyErr_Occurred()) SWIG_fail;
21114 }
21115 {
21116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21117 }
21118 return resultobj;
21119 fail:
21120 return NULL;
21121 }
21122
21123
21124 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
21125 PyObject *resultobj;
21126 wxDateTime *arg1 = (wxDateTime *) 0 ;
21127 wxDateTime *arg2 = (wxDateTime *) 0 ;
21128 bool result;
21129 PyObject * obj0 = 0 ;
21130 PyObject * obj1 = 0 ;
21131
21132 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
21133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21135 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21137 {
21138 PyThreadState* __tstate = wxPyBeginAllowThreads();
21139 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
21140
21141 wxPyEndAllowThreads(__tstate);
21142 if (PyErr_Occurred()) SWIG_fail;
21143 }
21144 {
21145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21146 }
21147 return resultobj;
21148 fail:
21149 return NULL;
21150 }
21151
21152
21153 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
21154 PyObject *resultobj;
21155 wxDateTime *arg1 = (wxDateTime *) 0 ;
21156 wxDateTime *arg2 = (wxDateTime *) 0 ;
21157 bool result;
21158 PyObject * obj0 = 0 ;
21159 PyObject * obj1 = 0 ;
21160
21161 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
21162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21166 {
21167 PyThreadState* __tstate = wxPyBeginAllowThreads();
21168 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
21169
21170 wxPyEndAllowThreads(__tstate);
21171 if (PyErr_Occurred()) SWIG_fail;
21172 }
21173 {
21174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21175 }
21176 return resultobj;
21177 fail:
21178 return NULL;
21179 }
21180
21181
21182 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
21183 PyObject *resultobj;
21184 wxDateTime *arg1 = (wxDateTime *) 0 ;
21185 wxDateTime *arg2 = (wxDateTime *) 0 ;
21186 bool result;
21187 PyObject * obj0 = 0 ;
21188 PyObject * obj1 = 0 ;
21189
21190 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21195 {
21196 PyThreadState* __tstate = wxPyBeginAllowThreads();
21197 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21198
21199 wxPyEndAllowThreads(__tstate);
21200 if (PyErr_Occurred()) SWIG_fail;
21201 }
21202 {
21203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21204 }
21205 return resultobj;
21206 fail:
21207 return NULL;
21208 }
21209
21210
21211 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
21212 PyObject *resultobj;
21213 wxDateTime *arg1 = (wxDateTime *) 0 ;
21214 wxString *arg2 = 0 ;
21215 int result;
21216 bool temp2 = false ;
21217 PyObject * obj0 = 0 ;
21218 PyObject * obj1 = 0 ;
21219 char *kwnames[] = {
21220 (char *) "self",(char *) "date", NULL
21221 };
21222
21223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21226 {
21227 arg2 = wxString_in_helper(obj1);
21228 if (arg2 == NULL) SWIG_fail;
21229 temp2 = true;
21230 }
21231 {
21232 PyThreadState* __tstate = wxPyBeginAllowThreads();
21233 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21234
21235 wxPyEndAllowThreads(__tstate);
21236 if (PyErr_Occurred()) SWIG_fail;
21237 }
21238 resultobj = SWIG_From_int((int)result);
21239 {
21240 if (temp2)
21241 delete arg2;
21242 }
21243 return resultobj;
21244 fail:
21245 {
21246 if (temp2)
21247 delete arg2;
21248 }
21249 return NULL;
21250 }
21251
21252
21253 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
21254 PyObject *resultobj;
21255 wxDateTime *arg1 = (wxDateTime *) 0 ;
21256 wxString *arg2 = 0 ;
21257 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21258 wxString *arg3 = (wxString *) &arg3_defvalue ;
21259 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21260 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21261 int result;
21262 bool temp2 = false ;
21263 bool temp3 = false ;
21264 PyObject * obj0 = 0 ;
21265 PyObject * obj1 = 0 ;
21266 PyObject * obj2 = 0 ;
21267 PyObject * obj3 = 0 ;
21268 char *kwnames[] = {
21269 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21270 };
21271
21272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21275 {
21276 arg2 = wxString_in_helper(obj1);
21277 if (arg2 == NULL) SWIG_fail;
21278 temp2 = true;
21279 }
21280 if (obj2) {
21281 {
21282 arg3 = wxString_in_helper(obj2);
21283 if (arg3 == NULL) SWIG_fail;
21284 temp3 = true;
21285 }
21286 }
21287 if (obj3) {
21288 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21289 SWIG_POINTER_EXCEPTION | 0)) == -1)
21290 SWIG_fail;
21291 if (arg4 == NULL) {
21292 PyErr_SetString(PyExc_TypeError,"null reference");
21293 SWIG_fail;
21294 }
21295 }
21296 {
21297 PyThreadState* __tstate = wxPyBeginAllowThreads();
21298 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21299
21300 wxPyEndAllowThreads(__tstate);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 resultobj = SWIG_From_int((int)result);
21304 {
21305 if (temp2)
21306 delete arg2;
21307 }
21308 {
21309 if (temp3)
21310 delete arg3;
21311 }
21312 return resultobj;
21313 fail:
21314 {
21315 if (temp2)
21316 delete arg2;
21317 }
21318 {
21319 if (temp3)
21320 delete arg3;
21321 }
21322 return NULL;
21323 }
21324
21325
21326 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
21327 PyObject *resultobj;
21328 wxDateTime *arg1 = (wxDateTime *) 0 ;
21329 wxString *arg2 = 0 ;
21330 int result;
21331 bool temp2 = false ;
21332 PyObject * obj0 = 0 ;
21333 PyObject * obj1 = 0 ;
21334 char *kwnames[] = {
21335 (char *) "self",(char *) "datetime", NULL
21336 };
21337
21338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21341 {
21342 arg2 = wxString_in_helper(obj1);
21343 if (arg2 == NULL) SWIG_fail;
21344 temp2 = true;
21345 }
21346 {
21347 PyThreadState* __tstate = wxPyBeginAllowThreads();
21348 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21349
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 resultobj = SWIG_From_int((int)result);
21354 {
21355 if (temp2)
21356 delete arg2;
21357 }
21358 return resultobj;
21359 fail:
21360 {
21361 if (temp2)
21362 delete arg2;
21363 }
21364 return NULL;
21365 }
21366
21367
21368 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
21369 PyObject *resultobj;
21370 wxDateTime *arg1 = (wxDateTime *) 0 ;
21371 wxString *arg2 = 0 ;
21372 int result;
21373 bool temp2 = false ;
21374 PyObject * obj0 = 0 ;
21375 PyObject * obj1 = 0 ;
21376 char *kwnames[] = {
21377 (char *) "self",(char *) "date", NULL
21378 };
21379
21380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21383 {
21384 arg2 = wxString_in_helper(obj1);
21385 if (arg2 == NULL) SWIG_fail;
21386 temp2 = true;
21387 }
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21391
21392 wxPyEndAllowThreads(__tstate);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 }
21395 resultobj = SWIG_From_int((int)result);
21396 {
21397 if (temp2)
21398 delete arg2;
21399 }
21400 return resultobj;
21401 fail:
21402 {
21403 if (temp2)
21404 delete arg2;
21405 }
21406 return NULL;
21407 }
21408
21409
21410 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
21411 PyObject *resultobj;
21412 wxDateTime *arg1 = (wxDateTime *) 0 ;
21413 wxString *arg2 = 0 ;
21414 int result;
21415 bool temp2 = false ;
21416 PyObject * obj0 = 0 ;
21417 PyObject * obj1 = 0 ;
21418 char *kwnames[] = {
21419 (char *) "self",(char *) "time", NULL
21420 };
21421
21422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21425 {
21426 arg2 = wxString_in_helper(obj1);
21427 if (arg2 == NULL) SWIG_fail;
21428 temp2 = true;
21429 }
21430 {
21431 PyThreadState* __tstate = wxPyBeginAllowThreads();
21432 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21433
21434 wxPyEndAllowThreads(__tstate);
21435 if (PyErr_Occurred()) SWIG_fail;
21436 }
21437 resultobj = SWIG_From_int((int)result);
21438 {
21439 if (temp2)
21440 delete arg2;
21441 }
21442 return resultobj;
21443 fail:
21444 {
21445 if (temp2)
21446 delete arg2;
21447 }
21448 return NULL;
21449 }
21450
21451
21452 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
21453 PyObject *resultobj;
21454 wxDateTime *arg1 = (wxDateTime *) 0 ;
21455 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21456 wxString *arg2 = (wxString *) &arg2_defvalue ;
21457 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21458 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21459 wxString result;
21460 bool temp2 = false ;
21461 bool temp3 = false ;
21462 PyObject * obj0 = 0 ;
21463 PyObject * obj1 = 0 ;
21464 PyObject * obj2 = 0 ;
21465 char *kwnames[] = {
21466 (char *) "self",(char *) "format",(char *) "tz", NULL
21467 };
21468
21469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21472 if (obj1) {
21473 {
21474 arg2 = wxString_in_helper(obj1);
21475 if (arg2 == NULL) SWIG_fail;
21476 temp2 = true;
21477 }
21478 }
21479 if (obj2) {
21480 {
21481 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21482 temp3 = true;
21483 }
21484 }
21485 {
21486 PyThreadState* __tstate = wxPyBeginAllowThreads();
21487 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21488
21489 wxPyEndAllowThreads(__tstate);
21490 if (PyErr_Occurred()) SWIG_fail;
21491 }
21492 {
21493 #if wxUSE_UNICODE
21494 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21495 #else
21496 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21497 #endif
21498 }
21499 {
21500 if (temp2)
21501 delete arg2;
21502 }
21503 {
21504 if (temp3) delete arg3;
21505 }
21506 return resultobj;
21507 fail:
21508 {
21509 if (temp2)
21510 delete arg2;
21511 }
21512 {
21513 if (temp3) delete arg3;
21514 }
21515 return NULL;
21516 }
21517
21518
21519 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
21520 PyObject *resultobj;
21521 wxDateTime *arg1 = (wxDateTime *) 0 ;
21522 wxString result;
21523 PyObject * obj0 = 0 ;
21524 char *kwnames[] = {
21525 (char *) "self", NULL
21526 };
21527
21528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21531 {
21532 PyThreadState* __tstate = wxPyBeginAllowThreads();
21533 result = ((wxDateTime const *)arg1)->FormatDate();
21534
21535 wxPyEndAllowThreads(__tstate);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 }
21538 {
21539 #if wxUSE_UNICODE
21540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21541 #else
21542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21543 #endif
21544 }
21545 return resultobj;
21546 fail:
21547 return NULL;
21548 }
21549
21550
21551 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
21552 PyObject *resultobj;
21553 wxDateTime *arg1 = (wxDateTime *) 0 ;
21554 wxString result;
21555 PyObject * obj0 = 0 ;
21556 char *kwnames[] = {
21557 (char *) "self", NULL
21558 };
21559
21560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21563 {
21564 PyThreadState* __tstate = wxPyBeginAllowThreads();
21565 result = ((wxDateTime const *)arg1)->FormatTime();
21566
21567 wxPyEndAllowThreads(__tstate);
21568 if (PyErr_Occurred()) SWIG_fail;
21569 }
21570 {
21571 #if wxUSE_UNICODE
21572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21573 #else
21574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21575 #endif
21576 }
21577 return resultobj;
21578 fail:
21579 return NULL;
21580 }
21581
21582
21583 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
21584 PyObject *resultobj;
21585 wxDateTime *arg1 = (wxDateTime *) 0 ;
21586 wxString result;
21587 PyObject * obj0 = 0 ;
21588 char *kwnames[] = {
21589 (char *) "self", NULL
21590 };
21591
21592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21595 {
21596 PyThreadState* __tstate = wxPyBeginAllowThreads();
21597 result = ((wxDateTime const *)arg1)->FormatISODate();
21598
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 {
21603 #if wxUSE_UNICODE
21604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21605 #else
21606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21607 #endif
21608 }
21609 return resultobj;
21610 fail:
21611 return NULL;
21612 }
21613
21614
21615 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
21616 PyObject *resultobj;
21617 wxDateTime *arg1 = (wxDateTime *) 0 ;
21618 wxString result;
21619 PyObject * obj0 = 0 ;
21620 char *kwnames[] = {
21621 (char *) "self", NULL
21622 };
21623
21624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21627 {
21628 PyThreadState* __tstate = wxPyBeginAllowThreads();
21629 result = ((wxDateTime const *)arg1)->FormatISOTime();
21630
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 {
21635 #if wxUSE_UNICODE
21636 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21637 #else
21638 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21639 #endif
21640 }
21641 return resultobj;
21642 fail:
21643 return NULL;
21644 }
21645
21646
21647 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
21648 PyObject *obj;
21649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21650 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21651 Py_INCREF(obj);
21652 return Py_BuildValue((char *)"");
21653 }
21654 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
21655 PyObject *resultobj;
21656 long arg1 ;
21657 wxTimeSpan result;
21658 PyObject * obj0 = 0 ;
21659 char *kwnames[] = {
21660 (char *) "sec", NULL
21661 };
21662
21663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21664 arg1 = (long)SWIG_As_long(obj0);
21665 if (PyErr_Occurred()) SWIG_fail;
21666 {
21667 PyThreadState* __tstate = wxPyBeginAllowThreads();
21668 result = wxTimeSpan::Seconds(arg1);
21669
21670 wxPyEndAllowThreads(__tstate);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 {
21674 wxTimeSpan * resultptr;
21675 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21676 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21677 }
21678 return resultobj;
21679 fail:
21680 return NULL;
21681 }
21682
21683
21684 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
21685 PyObject *resultobj;
21686 wxTimeSpan result;
21687 char *kwnames[] = {
21688 NULL
21689 };
21690
21691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21692 {
21693 PyThreadState* __tstate = wxPyBeginAllowThreads();
21694 result = wxTimeSpan::Second();
21695
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 {
21700 wxTimeSpan * resultptr;
21701 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21703 }
21704 return resultobj;
21705 fail:
21706 return NULL;
21707 }
21708
21709
21710 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
21711 PyObject *resultobj;
21712 long arg1 ;
21713 wxTimeSpan result;
21714 PyObject * obj0 = 0 ;
21715 char *kwnames[] = {
21716 (char *) "min", NULL
21717 };
21718
21719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21720 arg1 = (long)SWIG_As_long(obj0);
21721 if (PyErr_Occurred()) SWIG_fail;
21722 {
21723 PyThreadState* __tstate = wxPyBeginAllowThreads();
21724 result = wxTimeSpan::Minutes(arg1);
21725
21726 wxPyEndAllowThreads(__tstate);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 }
21729 {
21730 wxTimeSpan * resultptr;
21731 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21732 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21733 }
21734 return resultobj;
21735 fail:
21736 return NULL;
21737 }
21738
21739
21740 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
21741 PyObject *resultobj;
21742 wxTimeSpan result;
21743 char *kwnames[] = {
21744 NULL
21745 };
21746
21747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21748 {
21749 PyThreadState* __tstate = wxPyBeginAllowThreads();
21750 result = wxTimeSpan::Minute();
21751
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 {
21756 wxTimeSpan * resultptr;
21757 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21759 }
21760 return resultobj;
21761 fail:
21762 return NULL;
21763 }
21764
21765
21766 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
21767 PyObject *resultobj;
21768 long arg1 ;
21769 wxTimeSpan result;
21770 PyObject * obj0 = 0 ;
21771 char *kwnames[] = {
21772 (char *) "hours", NULL
21773 };
21774
21775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21776 arg1 = (long)SWIG_As_long(obj0);
21777 if (PyErr_Occurred()) SWIG_fail;
21778 {
21779 PyThreadState* __tstate = wxPyBeginAllowThreads();
21780 result = wxTimeSpan::Hours(arg1);
21781
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 {
21786 wxTimeSpan * resultptr;
21787 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21789 }
21790 return resultobj;
21791 fail:
21792 return NULL;
21793 }
21794
21795
21796 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
21797 PyObject *resultobj;
21798 wxTimeSpan result;
21799 char *kwnames[] = {
21800 NULL
21801 };
21802
21803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21804 {
21805 PyThreadState* __tstate = wxPyBeginAllowThreads();
21806 result = wxTimeSpan::Hour();
21807
21808 wxPyEndAllowThreads(__tstate);
21809 if (PyErr_Occurred()) SWIG_fail;
21810 }
21811 {
21812 wxTimeSpan * resultptr;
21813 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21814 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21815 }
21816 return resultobj;
21817 fail:
21818 return NULL;
21819 }
21820
21821
21822 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
21823 PyObject *resultobj;
21824 long arg1 ;
21825 wxTimeSpan result;
21826 PyObject * obj0 = 0 ;
21827 char *kwnames[] = {
21828 (char *) "days", NULL
21829 };
21830
21831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21832 arg1 = (long)SWIG_As_long(obj0);
21833 if (PyErr_Occurred()) SWIG_fail;
21834 {
21835 PyThreadState* __tstate = wxPyBeginAllowThreads();
21836 result = wxTimeSpan::Days(arg1);
21837
21838 wxPyEndAllowThreads(__tstate);
21839 if (PyErr_Occurred()) SWIG_fail;
21840 }
21841 {
21842 wxTimeSpan * resultptr;
21843 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21844 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21845 }
21846 return resultobj;
21847 fail:
21848 return NULL;
21849 }
21850
21851
21852 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
21853 PyObject *resultobj;
21854 wxTimeSpan result;
21855 char *kwnames[] = {
21856 NULL
21857 };
21858
21859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = wxTimeSpan::Day();
21863
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 {
21868 wxTimeSpan * resultptr;
21869 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21871 }
21872 return resultobj;
21873 fail:
21874 return NULL;
21875 }
21876
21877
21878 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj;
21880 long arg1 ;
21881 wxTimeSpan result;
21882 PyObject * obj0 = 0 ;
21883 char *kwnames[] = {
21884 (char *) "days", NULL
21885 };
21886
21887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21888 arg1 = (long)SWIG_As_long(obj0);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 {
21891 PyThreadState* __tstate = wxPyBeginAllowThreads();
21892 result = wxTimeSpan::Weeks(arg1);
21893
21894 wxPyEndAllowThreads(__tstate);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 }
21897 {
21898 wxTimeSpan * resultptr;
21899 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21900 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21901 }
21902 return resultobj;
21903 fail:
21904 return NULL;
21905 }
21906
21907
21908 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
21909 PyObject *resultobj;
21910 wxTimeSpan result;
21911 char *kwnames[] = {
21912 NULL
21913 };
21914
21915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21916 {
21917 PyThreadState* __tstate = wxPyBeginAllowThreads();
21918 result = wxTimeSpan::Week();
21919
21920 wxPyEndAllowThreads(__tstate);
21921 if (PyErr_Occurred()) SWIG_fail;
21922 }
21923 {
21924 wxTimeSpan * resultptr;
21925 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21926 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21927 }
21928 return resultobj;
21929 fail:
21930 return NULL;
21931 }
21932
21933
21934 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21935 PyObject *resultobj;
21936 long arg1 = (long) 0 ;
21937 long arg2 = (long) 0 ;
21938 long arg3 = (long) 0 ;
21939 long arg4 = (long) 0 ;
21940 wxTimeSpan *result;
21941 PyObject * obj0 = 0 ;
21942 PyObject * obj1 = 0 ;
21943 PyObject * obj2 = 0 ;
21944 PyObject * obj3 = 0 ;
21945 char *kwnames[] = {
21946 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21947 };
21948
21949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21950 if (obj0) {
21951 arg1 = (long)SWIG_As_long(obj0);
21952 if (PyErr_Occurred()) SWIG_fail;
21953 }
21954 if (obj1) {
21955 arg2 = (long)SWIG_As_long(obj1);
21956 if (PyErr_Occurred()) SWIG_fail;
21957 }
21958 if (obj2) {
21959 arg3 = (long)SWIG_As_long(obj2);
21960 if (PyErr_Occurred()) SWIG_fail;
21961 }
21962 if (obj3) {
21963 arg4 = (long)SWIG_As_long(obj3);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 {
21967 PyThreadState* __tstate = wxPyBeginAllowThreads();
21968 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21969
21970 wxPyEndAllowThreads(__tstate);
21971 if (PyErr_Occurred()) SWIG_fail;
21972 }
21973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21974 return resultobj;
21975 fail:
21976 return NULL;
21977 }
21978
21979
21980 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21981 PyObject *resultobj;
21982 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21983 PyObject * obj0 = 0 ;
21984 char *kwnames[] = {
21985 (char *) "self", NULL
21986 };
21987
21988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21991 {
21992 PyThreadState* __tstate = wxPyBeginAllowThreads();
21993 delete arg1;
21994
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 Py_INCREF(Py_None); resultobj = Py_None;
21999 return resultobj;
22000 fail:
22001 return NULL;
22002 }
22003
22004
22005 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
22006 PyObject *resultobj;
22007 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22008 wxTimeSpan *arg2 = 0 ;
22009 wxTimeSpan *result;
22010 PyObject * obj0 = 0 ;
22011 PyObject * obj1 = 0 ;
22012 char *kwnames[] = {
22013 (char *) "self",(char *) "diff", NULL
22014 };
22015
22016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22020 SWIG_POINTER_EXCEPTION | 0)) == -1)
22021 SWIG_fail;
22022 if (arg2 == NULL) {
22023 PyErr_SetString(PyExc_TypeError,"null reference");
22024 SWIG_fail;
22025 }
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 {
22029 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
22030 result = (wxTimeSpan *) &_result_ref;
22031 }
22032
22033 wxPyEndAllowThreads(__tstate);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22037 return resultobj;
22038 fail:
22039 return NULL;
22040 }
22041
22042
22043 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
22044 PyObject *resultobj;
22045 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22046 wxTimeSpan *arg2 = 0 ;
22047 wxTimeSpan *result;
22048 PyObject * obj0 = 0 ;
22049 PyObject * obj1 = 0 ;
22050 char *kwnames[] = {
22051 (char *) "self",(char *) "diff", NULL
22052 };
22053
22054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22057 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22058 SWIG_POINTER_EXCEPTION | 0)) == -1)
22059 SWIG_fail;
22060 if (arg2 == NULL) {
22061 PyErr_SetString(PyExc_TypeError,"null reference");
22062 SWIG_fail;
22063 }
22064 {
22065 PyThreadState* __tstate = wxPyBeginAllowThreads();
22066 {
22067 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
22068 result = (wxTimeSpan *) &_result_ref;
22069 }
22070
22071 wxPyEndAllowThreads(__tstate);
22072 if (PyErr_Occurred()) SWIG_fail;
22073 }
22074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22075 return resultobj;
22076 fail:
22077 return NULL;
22078 }
22079
22080
22081 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
22082 PyObject *resultobj;
22083 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22084 int arg2 ;
22085 wxTimeSpan *result;
22086 PyObject * obj0 = 0 ;
22087 PyObject * obj1 = 0 ;
22088 char *kwnames[] = {
22089 (char *) "self",(char *) "n", NULL
22090 };
22091
22092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
22093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22095 arg2 = (int)SWIG_As_int(obj1);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 {
22100 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
22101 result = (wxTimeSpan *) &_result_ref;
22102 }
22103
22104 wxPyEndAllowThreads(__tstate);
22105 if (PyErr_Occurred()) SWIG_fail;
22106 }
22107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22108 return resultobj;
22109 fail:
22110 return NULL;
22111 }
22112
22113
22114 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
22115 PyObject *resultobj;
22116 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22117 wxTimeSpan *result;
22118 PyObject * obj0 = 0 ;
22119 char *kwnames[] = {
22120 (char *) "self", NULL
22121 };
22122
22123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
22124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 {
22129 wxTimeSpan &_result_ref = (arg1)->Neg();
22130 result = (wxTimeSpan *) &_result_ref;
22131 }
22132
22133 wxPyEndAllowThreads(__tstate);
22134 if (PyErr_Occurred()) SWIG_fail;
22135 }
22136 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22137 return resultobj;
22138 fail:
22139 return NULL;
22140 }
22141
22142
22143 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj;
22145 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22146 wxTimeSpan result;
22147 PyObject * obj0 = 0 ;
22148 char *kwnames[] = {
22149 (char *) "self", NULL
22150 };
22151
22152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
22153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22155 {
22156 PyThreadState* __tstate = wxPyBeginAllowThreads();
22157 result = ((wxTimeSpan const *)arg1)->Abs();
22158
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 {
22163 wxTimeSpan * resultptr;
22164 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22166 }
22167 return resultobj;
22168 fail:
22169 return NULL;
22170 }
22171
22172
22173 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
22174 PyObject *resultobj;
22175 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22176 wxTimeSpan *arg2 = 0 ;
22177 wxTimeSpan *result;
22178 PyObject * obj0 = 0 ;
22179 PyObject * obj1 = 0 ;
22180 char *kwnames[] = {
22181 (char *) "self",(char *) "diff", NULL
22182 };
22183
22184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
22185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22186 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22188 SWIG_POINTER_EXCEPTION | 0)) == -1)
22189 SWIG_fail;
22190 if (arg2 == NULL) {
22191 PyErr_SetString(PyExc_TypeError,"null reference");
22192 SWIG_fail;
22193 }
22194 {
22195 PyThreadState* __tstate = wxPyBeginAllowThreads();
22196 {
22197 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22198 result = (wxTimeSpan *) &_result_ref;
22199 }
22200
22201 wxPyEndAllowThreads(__tstate);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 }
22204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22205 return resultobj;
22206 fail:
22207 return NULL;
22208 }
22209
22210
22211 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
22212 PyObject *resultobj;
22213 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22214 wxTimeSpan *arg2 = 0 ;
22215 wxTimeSpan *result;
22216 PyObject * obj0 = 0 ;
22217 PyObject * obj1 = 0 ;
22218 char *kwnames[] = {
22219 (char *) "self",(char *) "diff", NULL
22220 };
22221
22222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22224 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22225 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22226 SWIG_POINTER_EXCEPTION | 0)) == -1)
22227 SWIG_fail;
22228 if (arg2 == NULL) {
22229 PyErr_SetString(PyExc_TypeError,"null reference");
22230 SWIG_fail;
22231 }
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 {
22235 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22236 result = (wxTimeSpan *) &_result_ref;
22237 }
22238
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22243 return resultobj;
22244 fail:
22245 return NULL;
22246 }
22247
22248
22249 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
22250 PyObject *resultobj;
22251 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22252 int arg2 ;
22253 wxTimeSpan *result;
22254 PyObject * obj0 = 0 ;
22255 PyObject * obj1 = 0 ;
22256 char *kwnames[] = {
22257 (char *) "self",(char *) "n", NULL
22258 };
22259
22260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22262 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22263 arg2 = (int)SWIG_As_int(obj1);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 {
22266 PyThreadState* __tstate = wxPyBeginAllowThreads();
22267 {
22268 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22269 result = (wxTimeSpan *) &_result_ref;
22270 }
22271
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22276 return resultobj;
22277 fail:
22278 return NULL;
22279 }
22280
22281
22282 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
22283 PyObject *resultobj;
22284 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22285 wxTimeSpan *result;
22286 PyObject * obj0 = 0 ;
22287 char *kwnames[] = {
22288 (char *) "self", NULL
22289 };
22290
22291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22294 {
22295 PyThreadState* __tstate = wxPyBeginAllowThreads();
22296 {
22297 wxTimeSpan &_result_ref = (arg1)->operator -();
22298 result = (wxTimeSpan *) &_result_ref;
22299 }
22300
22301 wxPyEndAllowThreads(__tstate);
22302 if (PyErr_Occurred()) SWIG_fail;
22303 }
22304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22305 return resultobj;
22306 fail:
22307 return NULL;
22308 }
22309
22310
22311 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
22312 PyObject *resultobj;
22313 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22314 wxTimeSpan *arg2 = 0 ;
22315 wxTimeSpan result;
22316 PyObject * obj0 = 0 ;
22317 PyObject * obj1 = 0 ;
22318 char *kwnames[] = {
22319 (char *) "self",(char *) "other", NULL
22320 };
22321
22322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22326 SWIG_POINTER_EXCEPTION | 0)) == -1)
22327 SWIG_fail;
22328 if (arg2 == NULL) {
22329 PyErr_SetString(PyExc_TypeError,"null reference");
22330 SWIG_fail;
22331 }
22332 {
22333 PyThreadState* __tstate = wxPyBeginAllowThreads();
22334 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22335
22336 wxPyEndAllowThreads(__tstate);
22337 if (PyErr_Occurred()) SWIG_fail;
22338 }
22339 {
22340 wxTimeSpan * resultptr;
22341 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22342 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22343 }
22344 return resultobj;
22345 fail:
22346 return NULL;
22347 }
22348
22349
22350 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
22351 PyObject *resultobj;
22352 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22353 wxTimeSpan *arg2 = 0 ;
22354 wxTimeSpan result;
22355 PyObject * obj0 = 0 ;
22356 PyObject * obj1 = 0 ;
22357 char *kwnames[] = {
22358 (char *) "self",(char *) "other", NULL
22359 };
22360
22361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22365 SWIG_POINTER_EXCEPTION | 0)) == -1)
22366 SWIG_fail;
22367 if (arg2 == NULL) {
22368 PyErr_SetString(PyExc_TypeError,"null reference");
22369 SWIG_fail;
22370 }
22371 {
22372 PyThreadState* __tstate = wxPyBeginAllowThreads();
22373 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22374
22375 wxPyEndAllowThreads(__tstate);
22376 if (PyErr_Occurred()) SWIG_fail;
22377 }
22378 {
22379 wxTimeSpan * resultptr;
22380 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22381 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22382 }
22383 return resultobj;
22384 fail:
22385 return NULL;
22386 }
22387
22388
22389 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
22390 PyObject *resultobj;
22391 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22392 int arg2 ;
22393 wxTimeSpan result;
22394 PyObject * obj0 = 0 ;
22395 PyObject * obj1 = 0 ;
22396 char *kwnames[] = {
22397 (char *) "self",(char *) "n", NULL
22398 };
22399
22400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22403 arg2 = (int)SWIG_As_int(obj1);
22404 if (PyErr_Occurred()) SWIG_fail;
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 result = wxTimeSpan___mul__(arg1,arg2);
22408
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 {
22413 wxTimeSpan * resultptr;
22414 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22416 }
22417 return resultobj;
22418 fail:
22419 return NULL;
22420 }
22421
22422
22423 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
22424 PyObject *resultobj;
22425 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22426 int arg2 ;
22427 wxTimeSpan result;
22428 PyObject * obj0 = 0 ;
22429 PyObject * obj1 = 0 ;
22430 char *kwnames[] = {
22431 (char *) "self",(char *) "n", NULL
22432 };
22433
22434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22437 arg2 = (int)SWIG_As_int(obj1);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 result = wxTimeSpan___rmul__(arg1,arg2);
22442
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 {
22447 wxTimeSpan * resultptr;
22448 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22449 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22450 }
22451 return resultobj;
22452 fail:
22453 return NULL;
22454 }
22455
22456
22457 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
22458 PyObject *resultobj;
22459 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22460 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22461 bool result;
22462 PyObject * obj0 = 0 ;
22463 PyObject * obj1 = 0 ;
22464 char *kwnames[] = {
22465 (char *) "self",(char *) "other", NULL
22466 };
22467
22468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22473 {
22474 PyThreadState* __tstate = wxPyBeginAllowThreads();
22475 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22476
22477 wxPyEndAllowThreads(__tstate);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 }
22480 {
22481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22482 }
22483 return resultobj;
22484 fail:
22485 return NULL;
22486 }
22487
22488
22489 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
22490 PyObject *resultobj;
22491 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22492 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22493 bool result;
22494 PyObject * obj0 = 0 ;
22495 PyObject * obj1 = 0 ;
22496 char *kwnames[] = {
22497 (char *) "self",(char *) "other", NULL
22498 };
22499
22500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22505 {
22506 PyThreadState* __tstate = wxPyBeginAllowThreads();
22507 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22508
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 {
22513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22514 }
22515 return resultobj;
22516 fail:
22517 return NULL;
22518 }
22519
22520
22521 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
22522 PyObject *resultobj;
22523 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22524 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22525 bool result;
22526 PyObject * obj0 = 0 ;
22527 PyObject * obj1 = 0 ;
22528 char *kwnames[] = {
22529 (char *) "self",(char *) "other", NULL
22530 };
22531
22532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22540
22541 wxPyEndAllowThreads(__tstate);
22542 if (PyErr_Occurred()) SWIG_fail;
22543 }
22544 {
22545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22546 }
22547 return resultobj;
22548 fail:
22549 return NULL;
22550 }
22551
22552
22553 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
22554 PyObject *resultobj;
22555 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22556 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22557 bool result;
22558 PyObject * obj0 = 0 ;
22559 PyObject * obj1 = 0 ;
22560 char *kwnames[] = {
22561 (char *) "self",(char *) "other", NULL
22562 };
22563
22564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22569 {
22570 PyThreadState* __tstate = wxPyBeginAllowThreads();
22571 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22572
22573 wxPyEndAllowThreads(__tstate);
22574 if (PyErr_Occurred()) SWIG_fail;
22575 }
22576 {
22577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22578 }
22579 return resultobj;
22580 fail:
22581 return NULL;
22582 }
22583
22584
22585 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
22586 PyObject *resultobj;
22587 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22588 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22589 bool result;
22590 PyObject * obj0 = 0 ;
22591 PyObject * obj1 = 0 ;
22592 char *kwnames[] = {
22593 (char *) "self",(char *) "other", NULL
22594 };
22595
22596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22604
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 {
22609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22610 }
22611 return resultobj;
22612 fail:
22613 return NULL;
22614 }
22615
22616
22617 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
22618 PyObject *resultobj;
22619 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22620 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22621 bool result;
22622 PyObject * obj0 = 0 ;
22623 PyObject * obj1 = 0 ;
22624 char *kwnames[] = {
22625 (char *) "self",(char *) "other", NULL
22626 };
22627
22628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22633 {
22634 PyThreadState* __tstate = wxPyBeginAllowThreads();
22635 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22636
22637 wxPyEndAllowThreads(__tstate);
22638 if (PyErr_Occurred()) SWIG_fail;
22639 }
22640 {
22641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22642 }
22643 return resultobj;
22644 fail:
22645 return NULL;
22646 }
22647
22648
22649 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
22650 PyObject *resultobj;
22651 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22652 bool result;
22653 PyObject * obj0 = 0 ;
22654 char *kwnames[] = {
22655 (char *) "self", NULL
22656 };
22657
22658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22661 {
22662 PyThreadState* __tstate = wxPyBeginAllowThreads();
22663 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22664
22665 wxPyEndAllowThreads(__tstate);
22666 if (PyErr_Occurred()) SWIG_fail;
22667 }
22668 {
22669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22670 }
22671 return resultobj;
22672 fail:
22673 return NULL;
22674 }
22675
22676
22677 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
22678 PyObject *resultobj;
22679 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22680 bool result;
22681 PyObject * obj0 = 0 ;
22682 char *kwnames[] = {
22683 (char *) "self", NULL
22684 };
22685
22686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22689 {
22690 PyThreadState* __tstate = wxPyBeginAllowThreads();
22691 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22692
22693 wxPyEndAllowThreads(__tstate);
22694 if (PyErr_Occurred()) SWIG_fail;
22695 }
22696 {
22697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22698 }
22699 return resultobj;
22700 fail:
22701 return NULL;
22702 }
22703
22704
22705 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
22706 PyObject *resultobj;
22707 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22708 bool result;
22709 PyObject * obj0 = 0 ;
22710 char *kwnames[] = {
22711 (char *) "self", NULL
22712 };
22713
22714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22717 {
22718 PyThreadState* __tstate = wxPyBeginAllowThreads();
22719 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22720
22721 wxPyEndAllowThreads(__tstate);
22722 if (PyErr_Occurred()) SWIG_fail;
22723 }
22724 {
22725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22726 }
22727 return resultobj;
22728 fail:
22729 return NULL;
22730 }
22731
22732
22733 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
22734 PyObject *resultobj;
22735 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22736 wxTimeSpan *arg2 = 0 ;
22737 bool result;
22738 PyObject * obj0 = 0 ;
22739 PyObject * obj1 = 0 ;
22740 char *kwnames[] = {
22741 (char *) "self",(char *) "ts", NULL
22742 };
22743
22744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22747 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22748 SWIG_POINTER_EXCEPTION | 0)) == -1)
22749 SWIG_fail;
22750 if (arg2 == NULL) {
22751 PyErr_SetString(PyExc_TypeError,"null reference");
22752 SWIG_fail;
22753 }
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
22756 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22757
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 {
22762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22763 }
22764 return resultobj;
22765 fail:
22766 return NULL;
22767 }
22768
22769
22770 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
22771 PyObject *resultobj;
22772 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22773 wxTimeSpan *arg2 = 0 ;
22774 bool result;
22775 PyObject * obj0 = 0 ;
22776 PyObject * obj1 = 0 ;
22777 char *kwnames[] = {
22778 (char *) "self",(char *) "ts", NULL
22779 };
22780
22781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22784 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22785 SWIG_POINTER_EXCEPTION | 0)) == -1)
22786 SWIG_fail;
22787 if (arg2 == NULL) {
22788 PyErr_SetString(PyExc_TypeError,"null reference");
22789 SWIG_fail;
22790 }
22791 {
22792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22793 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22794
22795 wxPyEndAllowThreads(__tstate);
22796 if (PyErr_Occurred()) SWIG_fail;
22797 }
22798 {
22799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22800 }
22801 return resultobj;
22802 fail:
22803 return NULL;
22804 }
22805
22806
22807 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
22808 PyObject *resultobj;
22809 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22810 wxTimeSpan *arg2 = 0 ;
22811 bool result;
22812 PyObject * obj0 = 0 ;
22813 PyObject * obj1 = 0 ;
22814 char *kwnames[] = {
22815 (char *) "self",(char *) "t", NULL
22816 };
22817
22818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22821 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22822 SWIG_POINTER_EXCEPTION | 0)) == -1)
22823 SWIG_fail;
22824 if (arg2 == NULL) {
22825 PyErr_SetString(PyExc_TypeError,"null reference");
22826 SWIG_fail;
22827 }
22828 {
22829 PyThreadState* __tstate = wxPyBeginAllowThreads();
22830 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22831
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 {
22836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22837 }
22838 return resultobj;
22839 fail:
22840 return NULL;
22841 }
22842
22843
22844 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj;
22846 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22847 int result;
22848 PyObject * obj0 = 0 ;
22849 char *kwnames[] = {
22850 (char *) "self", NULL
22851 };
22852
22853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22856 {
22857 PyThreadState* __tstate = wxPyBeginAllowThreads();
22858 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22859
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_From_int((int)result);
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
22871 PyObject *resultobj;
22872 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22873 int result;
22874 PyObject * obj0 = 0 ;
22875 char *kwnames[] = {
22876 (char *) "self", NULL
22877 };
22878
22879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22882 {
22883 PyThreadState* __tstate = wxPyBeginAllowThreads();
22884 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22885
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 resultobj = SWIG_From_int((int)result);
22890 return resultobj;
22891 fail:
22892 return NULL;
22893 }
22894
22895
22896 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
22897 PyObject *resultobj;
22898 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22899 int result;
22900 PyObject * obj0 = 0 ;
22901 char *kwnames[] = {
22902 (char *) "self", NULL
22903 };
22904
22905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22911
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 resultobj = SWIG_From_int((int)result);
22916 return resultobj;
22917 fail:
22918 return NULL;
22919 }
22920
22921
22922 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
22923 PyObject *resultobj;
22924 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22925 int result;
22926 PyObject * obj0 = 0 ;
22927 char *kwnames[] = {
22928 (char *) "self", NULL
22929 };
22930
22931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22934 {
22935 PyThreadState* __tstate = wxPyBeginAllowThreads();
22936 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22937
22938 wxPyEndAllowThreads(__tstate);
22939 if (PyErr_Occurred()) SWIG_fail;
22940 }
22941 resultobj = SWIG_From_int((int)result);
22942 return resultobj;
22943 fail:
22944 return NULL;
22945 }
22946
22947
22948 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
22949 PyObject *resultobj;
22950 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22951 wxLongLong result;
22952 PyObject * obj0 = 0 ;
22953 char *kwnames[] = {
22954 (char *) "self", NULL
22955 };
22956
22957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22963
22964 wxPyEndAllowThreads(__tstate);
22965 if (PyErr_Occurred()) SWIG_fail;
22966 }
22967 {
22968 PyObject *hi, *lo, *shifter, *shifted;
22969 hi = PyLong_FromLong( (&result)->GetHi() );
22970 lo = PyLong_FromLong( (&result)->GetLo() );
22971 shifter = PyLong_FromLong(32);
22972 shifted = PyNumber_Lshift(hi, shifter);
22973 resultobj = PyNumber_Or(shifted, lo);
22974 Py_DECREF(hi);
22975 Py_DECREF(lo);
22976 Py_DECREF(shifter);
22977 Py_DECREF(shifted);
22978 }
22979 return resultobj;
22980 fail:
22981 return NULL;
22982 }
22983
22984
22985 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
22986 PyObject *resultobj;
22987 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22988 wxLongLong result;
22989 PyObject * obj0 = 0 ;
22990 char *kwnames[] = {
22991 (char *) "self", NULL
22992 };
22993
22994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22997 {
22998 PyThreadState* __tstate = wxPyBeginAllowThreads();
22999 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
23000
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 {
23005 PyObject *hi, *lo, *shifter, *shifted;
23006 hi = PyLong_FromLong( (&result)->GetHi() );
23007 lo = PyLong_FromLong( (&result)->GetLo() );
23008 shifter = PyLong_FromLong(32);
23009 shifted = PyNumber_Lshift(hi, shifter);
23010 resultobj = PyNumber_Or(shifted, lo);
23011 Py_DECREF(hi);
23012 Py_DECREF(lo);
23013 Py_DECREF(shifter);
23014 Py_DECREF(shifted);
23015 }
23016 return resultobj;
23017 fail:
23018 return NULL;
23019 }
23020
23021
23022 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
23023 PyObject *resultobj;
23024 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23025 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
23026 wxString *arg2 = (wxString *) &arg2_defvalue ;
23027 wxString result;
23028 bool temp2 = false ;
23029 PyObject * obj0 = 0 ;
23030 PyObject * obj1 = 0 ;
23031 char *kwnames[] = {
23032 (char *) "self",(char *) "format", NULL
23033 };
23034
23035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
23036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23038 if (obj1) {
23039 {
23040 arg2 = wxString_in_helper(obj1);
23041 if (arg2 == NULL) SWIG_fail;
23042 temp2 = true;
23043 }
23044 }
23045 {
23046 PyThreadState* __tstate = wxPyBeginAllowThreads();
23047 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
23048
23049 wxPyEndAllowThreads(__tstate);
23050 if (PyErr_Occurred()) SWIG_fail;
23051 }
23052 {
23053 #if wxUSE_UNICODE
23054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23055 #else
23056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23057 #endif
23058 }
23059 {
23060 if (temp2)
23061 delete arg2;
23062 }
23063 return resultobj;
23064 fail:
23065 {
23066 if (temp2)
23067 delete arg2;
23068 }
23069 return NULL;
23070 }
23071
23072
23073 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
23074 PyObject *obj;
23075 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23076 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
23077 Py_INCREF(obj);
23078 return Py_BuildValue((char *)"");
23079 }
23080 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23081 PyObject *resultobj;
23082 int arg1 = (int) 0 ;
23083 int arg2 = (int) 0 ;
23084 int arg3 = (int) 0 ;
23085 int arg4 = (int) 0 ;
23086 wxDateSpan *result;
23087 PyObject * obj0 = 0 ;
23088 PyObject * obj1 = 0 ;
23089 PyObject * obj2 = 0 ;
23090 PyObject * obj3 = 0 ;
23091 char *kwnames[] = {
23092 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
23093 };
23094
23095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23096 if (obj0) {
23097 arg1 = (int)SWIG_As_int(obj0);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 }
23100 if (obj1) {
23101 arg2 = (int)SWIG_As_int(obj1);
23102 if (PyErr_Occurred()) SWIG_fail;
23103 }
23104 if (obj2) {
23105 arg3 = (int)SWIG_As_int(obj2);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 if (obj3) {
23109 arg4 = (int)SWIG_As_int(obj3);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
23115
23116 wxPyEndAllowThreads(__tstate);
23117 if (PyErr_Occurred()) SWIG_fail;
23118 }
23119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23120 return resultobj;
23121 fail:
23122 return NULL;
23123 }
23124
23125
23126 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23127 PyObject *resultobj;
23128 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23129 PyObject * obj0 = 0 ;
23130 char *kwnames[] = {
23131 (char *) "self", NULL
23132 };
23133
23134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
23135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23137 {
23138 PyThreadState* __tstate = wxPyBeginAllowThreads();
23139 delete arg1;
23140
23141 wxPyEndAllowThreads(__tstate);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 }
23144 Py_INCREF(Py_None); resultobj = Py_None;
23145 return resultobj;
23146 fail:
23147 return NULL;
23148 }
23149
23150
23151 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
23152 PyObject *resultobj;
23153 int arg1 ;
23154 wxDateSpan result;
23155 PyObject * obj0 = 0 ;
23156 char *kwnames[] = {
23157 (char *) "days", NULL
23158 };
23159
23160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
23161 arg1 = (int)SWIG_As_int(obj0);
23162 if (PyErr_Occurred()) SWIG_fail;
23163 {
23164 PyThreadState* __tstate = wxPyBeginAllowThreads();
23165 result = wxDateSpan::Days(arg1);
23166
23167 wxPyEndAllowThreads(__tstate);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 }
23170 {
23171 wxDateSpan * resultptr;
23172 resultptr = new wxDateSpan((wxDateSpan &) result);
23173 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23174 }
23175 return resultobj;
23176 fail:
23177 return NULL;
23178 }
23179
23180
23181 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
23182 PyObject *resultobj;
23183 wxDateSpan result;
23184 char *kwnames[] = {
23185 NULL
23186 };
23187
23188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23189 {
23190 PyThreadState* __tstate = wxPyBeginAllowThreads();
23191 result = wxDateSpan::Day();
23192
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 {
23197 wxDateSpan * resultptr;
23198 resultptr = new wxDateSpan((wxDateSpan &) result);
23199 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23200 }
23201 return resultobj;
23202 fail:
23203 return NULL;
23204 }
23205
23206
23207 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
23208 PyObject *resultobj;
23209 int arg1 ;
23210 wxDateSpan result;
23211 PyObject * obj0 = 0 ;
23212 char *kwnames[] = {
23213 (char *) "weeks", NULL
23214 };
23215
23216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
23217 arg1 = (int)SWIG_As_int(obj0);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 {
23220 PyThreadState* __tstate = wxPyBeginAllowThreads();
23221 result = wxDateSpan::Weeks(arg1);
23222
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 {
23227 wxDateSpan * resultptr;
23228 resultptr = new wxDateSpan((wxDateSpan &) result);
23229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23230 }
23231 return resultobj;
23232 fail:
23233 return NULL;
23234 }
23235
23236
23237 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
23238 PyObject *resultobj;
23239 wxDateSpan result;
23240 char *kwnames[] = {
23241 NULL
23242 };
23243
23244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23245 {
23246 PyThreadState* __tstate = wxPyBeginAllowThreads();
23247 result = wxDateSpan::Week();
23248
23249 wxPyEndAllowThreads(__tstate);
23250 if (PyErr_Occurred()) SWIG_fail;
23251 }
23252 {
23253 wxDateSpan * resultptr;
23254 resultptr = new wxDateSpan((wxDateSpan &) result);
23255 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23256 }
23257 return resultobj;
23258 fail:
23259 return NULL;
23260 }
23261
23262
23263 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
23264 PyObject *resultobj;
23265 int arg1 ;
23266 wxDateSpan result;
23267 PyObject * obj0 = 0 ;
23268 char *kwnames[] = {
23269 (char *) "mon", NULL
23270 };
23271
23272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
23273 arg1 = (int)SWIG_As_int(obj0);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 {
23276 PyThreadState* __tstate = wxPyBeginAllowThreads();
23277 result = wxDateSpan::Months(arg1);
23278
23279 wxPyEndAllowThreads(__tstate);
23280 if (PyErr_Occurred()) SWIG_fail;
23281 }
23282 {
23283 wxDateSpan * resultptr;
23284 resultptr = new wxDateSpan((wxDateSpan &) result);
23285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23286 }
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
23294 PyObject *resultobj;
23295 wxDateSpan result;
23296 char *kwnames[] = {
23297 NULL
23298 };
23299
23300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23301 {
23302 PyThreadState* __tstate = wxPyBeginAllowThreads();
23303 result = wxDateSpan::Month();
23304
23305 wxPyEndAllowThreads(__tstate);
23306 if (PyErr_Occurred()) SWIG_fail;
23307 }
23308 {
23309 wxDateSpan * resultptr;
23310 resultptr = new wxDateSpan((wxDateSpan &) result);
23311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23312 }
23313 return resultobj;
23314 fail:
23315 return NULL;
23316 }
23317
23318
23319 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
23320 PyObject *resultobj;
23321 int arg1 ;
23322 wxDateSpan result;
23323 PyObject * obj0 = 0 ;
23324 char *kwnames[] = {
23325 (char *) "years", NULL
23326 };
23327
23328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23329 arg1 = (int)SWIG_As_int(obj0);
23330 if (PyErr_Occurred()) SWIG_fail;
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 result = wxDateSpan::Years(arg1);
23334
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 {
23339 wxDateSpan * resultptr;
23340 resultptr = new wxDateSpan((wxDateSpan &) result);
23341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23342 }
23343 return resultobj;
23344 fail:
23345 return NULL;
23346 }
23347
23348
23349 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
23350 PyObject *resultobj;
23351 wxDateSpan result;
23352 char *kwnames[] = {
23353 NULL
23354 };
23355
23356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23357 {
23358 PyThreadState* __tstate = wxPyBeginAllowThreads();
23359 result = wxDateSpan::Year();
23360
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 {
23365 wxDateSpan * resultptr;
23366 resultptr = new wxDateSpan((wxDateSpan &) result);
23367 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23368 }
23369 return resultobj;
23370 fail:
23371 return NULL;
23372 }
23373
23374
23375 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23376 PyObject *resultobj;
23377 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23378 int arg2 ;
23379 wxDateSpan *result;
23380 PyObject * obj0 = 0 ;
23381 PyObject * obj1 = 0 ;
23382 char *kwnames[] = {
23383 (char *) "self",(char *) "n", NULL
23384 };
23385
23386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23389 arg2 = (int)SWIG_As_int(obj1);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 {
23392 PyThreadState* __tstate = wxPyBeginAllowThreads();
23393 {
23394 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23395 result = (wxDateSpan *) &_result_ref;
23396 }
23397
23398 wxPyEndAllowThreads(__tstate);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 }
23401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23402 return resultobj;
23403 fail:
23404 return NULL;
23405 }
23406
23407
23408 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23409 PyObject *resultobj;
23410 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23411 int arg2 ;
23412 wxDateSpan *result;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 char *kwnames[] = {
23416 (char *) "self",(char *) "n", NULL
23417 };
23418
23419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23422 arg2 = (int)SWIG_As_int(obj1);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 {
23425 PyThreadState* __tstate = wxPyBeginAllowThreads();
23426 {
23427 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23428 result = (wxDateSpan *) &_result_ref;
23429 }
23430
23431 wxPyEndAllowThreads(__tstate);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 }
23434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23435 return resultobj;
23436 fail:
23437 return NULL;
23438 }
23439
23440
23441 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23442 PyObject *resultobj;
23443 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23444 int arg2 ;
23445 wxDateSpan *result;
23446 PyObject * obj0 = 0 ;
23447 PyObject * obj1 = 0 ;
23448 char *kwnames[] = {
23449 (char *) "self",(char *) "n", NULL
23450 };
23451
23452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23455 arg2 = (int)SWIG_As_int(obj1);
23456 if (PyErr_Occurred()) SWIG_fail;
23457 {
23458 PyThreadState* __tstate = wxPyBeginAllowThreads();
23459 {
23460 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23461 result = (wxDateSpan *) &_result_ref;
23462 }
23463
23464 wxPyEndAllowThreads(__tstate);
23465 if (PyErr_Occurred()) SWIG_fail;
23466 }
23467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23468 return resultobj;
23469 fail:
23470 return NULL;
23471 }
23472
23473
23474 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23475 PyObject *resultobj;
23476 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23477 int arg2 ;
23478 wxDateSpan *result;
23479 PyObject * obj0 = 0 ;
23480 PyObject * obj1 = 0 ;
23481 char *kwnames[] = {
23482 (char *) "self",(char *) "n", NULL
23483 };
23484
23485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23488 arg2 = (int)SWIG_As_int(obj1);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 {
23491 PyThreadState* __tstate = wxPyBeginAllowThreads();
23492 {
23493 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23494 result = (wxDateSpan *) &_result_ref;
23495 }
23496
23497 wxPyEndAllowThreads(__tstate);
23498 if (PyErr_Occurred()) SWIG_fail;
23499 }
23500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23501 return resultobj;
23502 fail:
23503 return NULL;
23504 }
23505
23506
23507 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23508 PyObject *resultobj;
23509 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23510 int result;
23511 PyObject * obj0 = 0 ;
23512 char *kwnames[] = {
23513 (char *) "self", NULL
23514 };
23515
23516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23519 {
23520 PyThreadState* __tstate = wxPyBeginAllowThreads();
23521 result = (int)((wxDateSpan const *)arg1)->GetYears();
23522
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 resultobj = SWIG_From_int((int)result);
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23534 PyObject *resultobj;
23535 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23536 int result;
23537 PyObject * obj0 = 0 ;
23538 char *kwnames[] = {
23539 (char *) "self", NULL
23540 };
23541
23542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23545 {
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23548
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 resultobj = SWIG_From_int((int)result);
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj;
23561 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23562 int result;
23563 PyObject * obj0 = 0 ;
23564 char *kwnames[] = {
23565 (char *) "self", NULL
23566 };
23567
23568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23574
23575 wxPyEndAllowThreads(__tstate);
23576 if (PyErr_Occurred()) SWIG_fail;
23577 }
23578 resultobj = SWIG_From_int((int)result);
23579 return resultobj;
23580 fail:
23581 return NULL;
23582 }
23583
23584
23585 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23586 PyObject *resultobj;
23587 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23588 int result;
23589 PyObject * obj0 = 0 ;
23590 char *kwnames[] = {
23591 (char *) "self", NULL
23592 };
23593
23594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23597 {
23598 PyThreadState* __tstate = wxPyBeginAllowThreads();
23599 result = (int)((wxDateSpan const *)arg1)->GetDays();
23600
23601 wxPyEndAllowThreads(__tstate);
23602 if (PyErr_Occurred()) SWIG_fail;
23603 }
23604 resultobj = SWIG_From_int((int)result);
23605 return resultobj;
23606 fail:
23607 return NULL;
23608 }
23609
23610
23611 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
23612 PyObject *resultobj;
23613 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23614 int result;
23615 PyObject * obj0 = 0 ;
23616 char *kwnames[] = {
23617 (char *) "self", NULL
23618 };
23619
23620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23623 {
23624 PyThreadState* __tstate = wxPyBeginAllowThreads();
23625 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23626
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 resultobj = SWIG_From_int((int)result);
23631 return resultobj;
23632 fail:
23633 return NULL;
23634 }
23635
23636
23637 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj;
23639 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23640 wxDateSpan *arg2 = 0 ;
23641 wxDateSpan *result;
23642 PyObject * obj0 = 0 ;
23643 PyObject * obj1 = 0 ;
23644 char *kwnames[] = {
23645 (char *) "self",(char *) "other", NULL
23646 };
23647
23648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23651 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23652 SWIG_POINTER_EXCEPTION | 0)) == -1)
23653 SWIG_fail;
23654 if (arg2 == NULL) {
23655 PyErr_SetString(PyExc_TypeError,"null reference");
23656 SWIG_fail;
23657 }
23658 {
23659 PyThreadState* __tstate = wxPyBeginAllowThreads();
23660 {
23661 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23662 result = (wxDateSpan *) &_result_ref;
23663 }
23664
23665 wxPyEndAllowThreads(__tstate);
23666 if (PyErr_Occurred()) SWIG_fail;
23667 }
23668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23669 return resultobj;
23670 fail:
23671 return NULL;
23672 }
23673
23674
23675 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23676 PyObject *resultobj;
23677 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23678 wxDateSpan *arg2 = 0 ;
23679 wxDateSpan *result;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682 char *kwnames[] = {
23683 (char *) "self",(char *) "other", NULL
23684 };
23685
23686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23690 SWIG_POINTER_EXCEPTION | 0)) == -1)
23691 SWIG_fail;
23692 if (arg2 == NULL) {
23693 PyErr_SetString(PyExc_TypeError,"null reference");
23694 SWIG_fail;
23695 }
23696 {
23697 PyThreadState* __tstate = wxPyBeginAllowThreads();
23698 {
23699 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23700 result = (wxDateSpan *) &_result_ref;
23701 }
23702
23703 wxPyEndAllowThreads(__tstate);
23704 if (PyErr_Occurred()) SWIG_fail;
23705 }
23706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23707 return resultobj;
23708 fail:
23709 return NULL;
23710 }
23711
23712
23713 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
23714 PyObject *resultobj;
23715 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23716 wxDateSpan *result;
23717 PyObject * obj0 = 0 ;
23718 char *kwnames[] = {
23719 (char *) "self", NULL
23720 };
23721
23722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 {
23728 wxDateSpan &_result_ref = (arg1)->Neg();
23729 result = (wxDateSpan *) &_result_ref;
23730 }
23731
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23736 return resultobj;
23737 fail:
23738 return NULL;
23739 }
23740
23741
23742 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
23743 PyObject *resultobj;
23744 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23745 int arg2 ;
23746 wxDateSpan *result;
23747 PyObject * obj0 = 0 ;
23748 PyObject * obj1 = 0 ;
23749 char *kwnames[] = {
23750 (char *) "self",(char *) "factor", NULL
23751 };
23752
23753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23756 arg2 = (int)SWIG_As_int(obj1);
23757 if (PyErr_Occurred()) SWIG_fail;
23758 {
23759 PyThreadState* __tstate = wxPyBeginAllowThreads();
23760 {
23761 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23762 result = (wxDateSpan *) &_result_ref;
23763 }
23764
23765 wxPyEndAllowThreads(__tstate);
23766 if (PyErr_Occurred()) SWIG_fail;
23767 }
23768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23769 return resultobj;
23770 fail:
23771 return NULL;
23772 }
23773
23774
23775 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
23776 PyObject *resultobj;
23777 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23778 wxDateSpan *arg2 = 0 ;
23779 wxDateSpan *result;
23780 PyObject * obj0 = 0 ;
23781 PyObject * obj1 = 0 ;
23782 char *kwnames[] = {
23783 (char *) "self",(char *) "other", NULL
23784 };
23785
23786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23788 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23789 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23790 SWIG_POINTER_EXCEPTION | 0)) == -1)
23791 SWIG_fail;
23792 if (arg2 == NULL) {
23793 PyErr_SetString(PyExc_TypeError,"null reference");
23794 SWIG_fail;
23795 }
23796 {
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 {
23799 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23800 result = (wxDateSpan *) &_result_ref;
23801 }
23802
23803 wxPyEndAllowThreads(__tstate);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23807 return resultobj;
23808 fail:
23809 return NULL;
23810 }
23811
23812
23813 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
23814 PyObject *resultobj;
23815 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23816 wxDateSpan *arg2 = 0 ;
23817 wxDateSpan *result;
23818 PyObject * obj0 = 0 ;
23819 PyObject * obj1 = 0 ;
23820 char *kwnames[] = {
23821 (char *) "self",(char *) "other", NULL
23822 };
23823
23824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23826 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23828 SWIG_POINTER_EXCEPTION | 0)) == -1)
23829 SWIG_fail;
23830 if (arg2 == NULL) {
23831 PyErr_SetString(PyExc_TypeError,"null reference");
23832 SWIG_fail;
23833 }
23834 {
23835 PyThreadState* __tstate = wxPyBeginAllowThreads();
23836 {
23837 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23838 result = (wxDateSpan *) &_result_ref;
23839 }
23840
23841 wxPyEndAllowThreads(__tstate);
23842 if (PyErr_Occurred()) SWIG_fail;
23843 }
23844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23845 return resultobj;
23846 fail:
23847 return NULL;
23848 }
23849
23850
23851 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj;
23853 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23854 wxDateSpan *result;
23855 PyObject * obj0 = 0 ;
23856 char *kwnames[] = {
23857 (char *) "self", NULL
23858 };
23859
23860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23863 {
23864 PyThreadState* __tstate = wxPyBeginAllowThreads();
23865 {
23866 wxDateSpan &_result_ref = (arg1)->operator -();
23867 result = (wxDateSpan *) &_result_ref;
23868 }
23869
23870 wxPyEndAllowThreads(__tstate);
23871 if (PyErr_Occurred()) SWIG_fail;
23872 }
23873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23874 return resultobj;
23875 fail:
23876 return NULL;
23877 }
23878
23879
23880 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
23881 PyObject *resultobj;
23882 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23883 int arg2 ;
23884 wxDateSpan *result;
23885 PyObject * obj0 = 0 ;
23886 PyObject * obj1 = 0 ;
23887 char *kwnames[] = {
23888 (char *) "self",(char *) "factor", NULL
23889 };
23890
23891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23893 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23894 arg2 = (int)SWIG_As_int(obj1);
23895 if (PyErr_Occurred()) SWIG_fail;
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 {
23899 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23900 result = (wxDateSpan *) &_result_ref;
23901 }
23902
23903 wxPyEndAllowThreads(__tstate);
23904 if (PyErr_Occurred()) SWIG_fail;
23905 }
23906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23907 return resultobj;
23908 fail:
23909 return NULL;
23910 }
23911
23912
23913 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
23914 PyObject *resultobj;
23915 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23916 wxDateSpan *arg2 = 0 ;
23917 wxDateSpan result;
23918 PyObject * obj0 = 0 ;
23919 PyObject * obj1 = 0 ;
23920 char *kwnames[] = {
23921 (char *) "self",(char *) "other", NULL
23922 };
23923
23924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23927 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23928 SWIG_POINTER_EXCEPTION | 0)) == -1)
23929 SWIG_fail;
23930 if (arg2 == NULL) {
23931 PyErr_SetString(PyExc_TypeError,"null reference");
23932 SWIG_fail;
23933 }
23934 {
23935 PyThreadState* __tstate = wxPyBeginAllowThreads();
23936 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23937
23938 wxPyEndAllowThreads(__tstate);
23939 if (PyErr_Occurred()) SWIG_fail;
23940 }
23941 {
23942 wxDateSpan * resultptr;
23943 resultptr = new wxDateSpan((wxDateSpan &) result);
23944 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23945 }
23946 return resultobj;
23947 fail:
23948 return NULL;
23949 }
23950
23951
23952 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23955 wxDateSpan *arg2 = 0 ;
23956 wxDateSpan result;
23957 PyObject * obj0 = 0 ;
23958 PyObject * obj1 = 0 ;
23959 char *kwnames[] = {
23960 (char *) "self",(char *) "other", NULL
23961 };
23962
23963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23967 SWIG_POINTER_EXCEPTION | 0)) == -1)
23968 SWIG_fail;
23969 if (arg2 == NULL) {
23970 PyErr_SetString(PyExc_TypeError,"null reference");
23971 SWIG_fail;
23972 }
23973 {
23974 PyThreadState* __tstate = wxPyBeginAllowThreads();
23975 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23976
23977 wxPyEndAllowThreads(__tstate);
23978 if (PyErr_Occurred()) SWIG_fail;
23979 }
23980 {
23981 wxDateSpan * resultptr;
23982 resultptr = new wxDateSpan((wxDateSpan &) result);
23983 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23984 }
23985 return resultobj;
23986 fail:
23987 return NULL;
23988 }
23989
23990
23991 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
23992 PyObject *resultobj;
23993 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23994 int arg2 ;
23995 wxDateSpan result;
23996 PyObject * obj0 = 0 ;
23997 PyObject * obj1 = 0 ;
23998 char *kwnames[] = {
23999 (char *) "self",(char *) "n", NULL
24000 };
24001
24002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
24003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24005 arg2 = (int)SWIG_As_int(obj1);
24006 if (PyErr_Occurred()) SWIG_fail;
24007 {
24008 PyThreadState* __tstate = wxPyBeginAllowThreads();
24009 result = wxDateSpan___mul__(arg1,arg2);
24010
24011 wxPyEndAllowThreads(__tstate);
24012 if (PyErr_Occurred()) SWIG_fail;
24013 }
24014 {
24015 wxDateSpan * resultptr;
24016 resultptr = new wxDateSpan((wxDateSpan &) result);
24017 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24018 }
24019 return resultobj;
24020 fail:
24021 return NULL;
24022 }
24023
24024
24025 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
24026 PyObject *resultobj;
24027 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24028 int arg2 ;
24029 wxDateSpan result;
24030 PyObject * obj0 = 0 ;
24031 PyObject * obj1 = 0 ;
24032 char *kwnames[] = {
24033 (char *) "self",(char *) "n", NULL
24034 };
24035
24036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
24037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24039 arg2 = (int)SWIG_As_int(obj1);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 {
24042 PyThreadState* __tstate = wxPyBeginAllowThreads();
24043 result = wxDateSpan___rmul__(arg1,arg2);
24044
24045 wxPyEndAllowThreads(__tstate);
24046 if (PyErr_Occurred()) SWIG_fail;
24047 }
24048 {
24049 wxDateSpan * resultptr;
24050 resultptr = new wxDateSpan((wxDateSpan &) result);
24051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24052 }
24053 return resultobj;
24054 fail:
24055 return NULL;
24056 }
24057
24058
24059 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24060 PyObject *resultobj;
24061 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24062 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24063 bool result;
24064 PyObject * obj0 = 0 ;
24065 PyObject * obj1 = 0 ;
24066 char *kwnames[] = {
24067 (char *) "self",(char *) "other", NULL
24068 };
24069
24070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
24071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24075 {
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
24078
24079 wxPyEndAllowThreads(__tstate);
24080 if (PyErr_Occurred()) SWIG_fail;
24081 }
24082 {
24083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24084 }
24085 return resultobj;
24086 fail:
24087 return NULL;
24088 }
24089
24090
24091 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24092 PyObject *resultobj;
24093 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24094 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24095 bool result;
24096 PyObject * obj0 = 0 ;
24097 PyObject * obj1 = 0 ;
24098 char *kwnames[] = {
24099 (char *) "self",(char *) "other", NULL
24100 };
24101
24102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
24103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24105 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
24110
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 {
24115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24116 }
24117 return resultobj;
24118 fail:
24119 return NULL;
24120 }
24121
24122
24123 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
24124 PyObject *obj;
24125 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24126 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
24127 Py_INCREF(obj);
24128 return Py_BuildValue((char *)"");
24129 }
24130 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
24131 PyObject *resultobj;
24132 long result;
24133 char *kwnames[] = {
24134 NULL
24135 };
24136
24137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
24138 {
24139 PyThreadState* __tstate = wxPyBeginAllowThreads();
24140 result = (long)wxGetLocalTime();
24141
24142 wxPyEndAllowThreads(__tstate);
24143 if (PyErr_Occurred()) SWIG_fail;
24144 }
24145 resultobj = SWIG_From_long((long)result);
24146 return resultobj;
24147 fail:
24148 return NULL;
24149 }
24150
24151
24152 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
24153 PyObject *resultobj;
24154 long result;
24155 char *kwnames[] = {
24156 NULL
24157 };
24158
24159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
24160 {
24161 PyThreadState* __tstate = wxPyBeginAllowThreads();
24162 result = (long)wxGetUTCTime();
24163
24164 wxPyEndAllowThreads(__tstate);
24165 if (PyErr_Occurred()) SWIG_fail;
24166 }
24167 resultobj = SWIG_From_long((long)result);
24168 return resultobj;
24169 fail:
24170 return NULL;
24171 }
24172
24173
24174 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
24175 PyObject *resultobj;
24176 long result;
24177 char *kwnames[] = {
24178 NULL
24179 };
24180
24181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
24182 {
24183 PyThreadState* __tstate = wxPyBeginAllowThreads();
24184 result = (long)wxGetCurrentTime();
24185
24186 wxPyEndAllowThreads(__tstate);
24187 if (PyErr_Occurred()) SWIG_fail;
24188 }
24189 resultobj = SWIG_From_long((long)result);
24190 return resultobj;
24191 fail:
24192 return NULL;
24193 }
24194
24195
24196 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj;
24198 wxLongLong result;
24199 char *kwnames[] = {
24200 NULL
24201 };
24202
24203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24204 {
24205 PyThreadState* __tstate = wxPyBeginAllowThreads();
24206 result = wxGetLocalTimeMillis();
24207
24208 wxPyEndAllowThreads(__tstate);
24209 if (PyErr_Occurred()) SWIG_fail;
24210 }
24211 {
24212 PyObject *hi, *lo, *shifter, *shifted;
24213 hi = PyLong_FromLong( (&result)->GetHi() );
24214 lo = PyLong_FromLong( (&result)->GetLo() );
24215 shifter = PyLong_FromLong(32);
24216 shifted = PyNumber_Lshift(hi, shifter);
24217 resultobj = PyNumber_Or(shifted, lo);
24218 Py_DECREF(hi);
24219 Py_DECREF(lo);
24220 Py_DECREF(shifter);
24221 Py_DECREF(shifted);
24222 }
24223 return resultobj;
24224 fail:
24225 return NULL;
24226 }
24227
24228
24229 static int _wrap_DefaultDateTime_set(PyObject *) {
24230 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24231 return 1;
24232 }
24233
24234
24235 static PyObject *_wrap_DefaultDateTime_get() {
24236 PyObject *pyobj;
24237
24238 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24239 return pyobj;
24240 }
24241
24242
24243 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24244 PyObject *resultobj;
24245 int arg1 ;
24246 wxDataFormat *result;
24247 PyObject * obj0 = 0 ;
24248 char *kwnames[] = {
24249 (char *) "type", NULL
24250 };
24251
24252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
24253 arg1 = (int)SWIG_As_int(obj0);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24258
24259 wxPyEndAllowThreads(__tstate);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 }
24262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24263 return resultobj;
24264 fail:
24265 return NULL;
24266 }
24267
24268
24269 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24270 PyObject *resultobj;
24271 wxString *arg1 = 0 ;
24272 wxDataFormat *result;
24273 bool temp1 = false ;
24274 PyObject * obj0 = 0 ;
24275 char *kwnames[] = {
24276 (char *) "format", NULL
24277 };
24278
24279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24280 {
24281 arg1 = wxString_in_helper(obj0);
24282 if (arg1 == NULL) SWIG_fail;
24283 temp1 = true;
24284 }
24285 {
24286 PyThreadState* __tstate = wxPyBeginAllowThreads();
24287 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24288
24289 wxPyEndAllowThreads(__tstate);
24290 if (PyErr_Occurred()) SWIG_fail;
24291 }
24292 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24293 {
24294 if (temp1)
24295 delete arg1;
24296 }
24297 return resultobj;
24298 fail:
24299 {
24300 if (temp1)
24301 delete arg1;
24302 }
24303 return NULL;
24304 }
24305
24306
24307 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24308 PyObject *resultobj;
24309 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24310 PyObject * obj0 = 0 ;
24311 char *kwnames[] = {
24312 (char *) "self", NULL
24313 };
24314
24315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24318 {
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 delete arg1;
24321
24322 wxPyEndAllowThreads(__tstate);
24323 if (PyErr_Occurred()) SWIG_fail;
24324 }
24325 Py_INCREF(Py_None); resultobj = Py_None;
24326 return resultobj;
24327 fail:
24328 return NULL;
24329 }
24330
24331
24332 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
24333 PyObject *resultobj;
24334 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24335 int arg2 ;
24336 bool result;
24337 PyObject * obj0 = 0 ;
24338 PyObject * obj1 = 0 ;
24339
24340 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24343 arg2 = (int)SWIG_As_int(obj1);
24344 if (PyErr_Occurred()) SWIG_fail;
24345 {
24346 PyThreadState* __tstate = wxPyBeginAllowThreads();
24347 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24348
24349 wxPyEndAllowThreads(__tstate);
24350 if (PyErr_Occurred()) SWIG_fail;
24351 }
24352 {
24353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24354 }
24355 return resultobj;
24356 fail:
24357 return NULL;
24358 }
24359
24360
24361 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
24362 PyObject *resultobj;
24363 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24364 int arg2 ;
24365 bool result;
24366 PyObject * obj0 = 0 ;
24367 PyObject * obj1 = 0 ;
24368
24369 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24372 arg2 = (int)SWIG_As_int(obj1);
24373 if (PyErr_Occurred()) SWIG_fail;
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24377
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 {
24382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24383 }
24384 return resultobj;
24385 fail:
24386 return NULL;
24387 }
24388
24389
24390 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
24391 PyObject *resultobj;
24392 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24393 wxDataFormat *arg2 = 0 ;
24394 bool result;
24395 PyObject * obj0 = 0 ;
24396 PyObject * obj1 = 0 ;
24397
24398 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24402 SWIG_POINTER_EXCEPTION | 0)) == -1)
24403 SWIG_fail;
24404 if (arg2 == NULL) {
24405 PyErr_SetString(PyExc_TypeError,"null reference");
24406 SWIG_fail;
24407 }
24408 {
24409 PyThreadState* __tstate = wxPyBeginAllowThreads();
24410 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24411
24412 wxPyEndAllowThreads(__tstate);
24413 if (PyErr_Occurred()) SWIG_fail;
24414 }
24415 {
24416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24417 }
24418 return resultobj;
24419 fail:
24420 return NULL;
24421 }
24422
24423
24424 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24425 int argc;
24426 PyObject *argv[3];
24427 int ii;
24428
24429 argc = PyObject_Length(args);
24430 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24431 argv[ii] = PyTuple_GetItem(args,ii);
24432 }
24433 if (argc == 2) {
24434 int _v;
24435 {
24436 void *ptr;
24437 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24438 _v = 0;
24439 PyErr_Clear();
24440 } else {
24441 _v = 1;
24442 }
24443 }
24444 if (_v) {
24445 {
24446 void *ptr;
24447 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24448 _v = 0;
24449 PyErr_Clear();
24450 } else {
24451 _v = 1;
24452 }
24453 }
24454 if (_v) {
24455 return _wrap_DataFormat___eq____SWIG_1(self,args);
24456 }
24457 }
24458 }
24459 if (argc == 2) {
24460 int _v;
24461 {
24462 void *ptr;
24463 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24464 _v = 0;
24465 PyErr_Clear();
24466 } else {
24467 _v = 1;
24468 }
24469 }
24470 if (_v) {
24471 _v = SWIG_Check_int(argv[1]);
24472 if (_v) {
24473 return _wrap_DataFormat___eq____SWIG_0(self,args);
24474 }
24475 }
24476 }
24477
24478 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24479 return NULL;
24480 }
24481
24482
24483 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
24484 PyObject *resultobj;
24485 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24486 wxDataFormat *arg2 = 0 ;
24487 bool result;
24488 PyObject * obj0 = 0 ;
24489 PyObject * obj1 = 0 ;
24490
24491 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24495 SWIG_POINTER_EXCEPTION | 0)) == -1)
24496 SWIG_fail;
24497 if (arg2 == NULL) {
24498 PyErr_SetString(PyExc_TypeError,"null reference");
24499 SWIG_fail;
24500 }
24501 {
24502 PyThreadState* __tstate = wxPyBeginAllowThreads();
24503 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24504
24505 wxPyEndAllowThreads(__tstate);
24506 if (PyErr_Occurred()) SWIG_fail;
24507 }
24508 {
24509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24510 }
24511 return resultobj;
24512 fail:
24513 return NULL;
24514 }
24515
24516
24517 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24518 int argc;
24519 PyObject *argv[3];
24520 int ii;
24521
24522 argc = PyObject_Length(args);
24523 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24524 argv[ii] = PyTuple_GetItem(args,ii);
24525 }
24526 if (argc == 2) {
24527 int _v;
24528 {
24529 void *ptr;
24530 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24531 _v = 0;
24532 PyErr_Clear();
24533 } else {
24534 _v = 1;
24535 }
24536 }
24537 if (_v) {
24538 {
24539 void *ptr;
24540 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24541 _v = 0;
24542 PyErr_Clear();
24543 } else {
24544 _v = 1;
24545 }
24546 }
24547 if (_v) {
24548 return _wrap_DataFormat___ne____SWIG_1(self,args);
24549 }
24550 }
24551 }
24552 if (argc == 2) {
24553 int _v;
24554 {
24555 void *ptr;
24556 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24557 _v = 0;
24558 PyErr_Clear();
24559 } else {
24560 _v = 1;
24561 }
24562 }
24563 if (_v) {
24564 _v = SWIG_Check_int(argv[1]);
24565 if (_v) {
24566 return _wrap_DataFormat___ne____SWIG_0(self,args);
24567 }
24568 }
24569 }
24570
24571 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24572 return NULL;
24573 }
24574
24575
24576 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
24577 PyObject *resultobj;
24578 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24579 int arg2 ;
24580 PyObject * obj0 = 0 ;
24581 PyObject * obj1 = 0 ;
24582 char *kwnames[] = {
24583 (char *) "self",(char *) "format", NULL
24584 };
24585
24586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24589 arg2 = (int)SWIG_As_int(obj1);
24590 if (PyErr_Occurred()) SWIG_fail;
24591 {
24592 PyThreadState* __tstate = wxPyBeginAllowThreads();
24593 (arg1)->SetType((wxDataFormatId )arg2);
24594
24595 wxPyEndAllowThreads(__tstate);
24596 if (PyErr_Occurred()) SWIG_fail;
24597 }
24598 Py_INCREF(Py_None); resultobj = Py_None;
24599 return resultobj;
24600 fail:
24601 return NULL;
24602 }
24603
24604
24605 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
24606 PyObject *resultobj;
24607 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24608 int result;
24609 PyObject * obj0 = 0 ;
24610 char *kwnames[] = {
24611 (char *) "self", NULL
24612 };
24613
24614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 result = (int)((wxDataFormat const *)arg1)->GetType();
24620
24621 wxPyEndAllowThreads(__tstate);
24622 if (PyErr_Occurred()) SWIG_fail;
24623 }
24624 resultobj = SWIG_From_int((int)result);
24625 return resultobj;
24626 fail:
24627 return NULL;
24628 }
24629
24630
24631 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj;
24633 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24634 wxString result;
24635 PyObject * obj0 = 0 ;
24636 char *kwnames[] = {
24637 (char *) "self", NULL
24638 };
24639
24640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24643 {
24644 PyThreadState* __tstate = wxPyBeginAllowThreads();
24645 result = ((wxDataFormat const *)arg1)->GetId();
24646
24647 wxPyEndAllowThreads(__tstate);
24648 if (PyErr_Occurred()) SWIG_fail;
24649 }
24650 {
24651 #if wxUSE_UNICODE
24652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24653 #else
24654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24655 #endif
24656 }
24657 return resultobj;
24658 fail:
24659 return NULL;
24660 }
24661
24662
24663 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj;
24665 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24666 wxString *arg2 = 0 ;
24667 bool temp2 = false ;
24668 PyObject * obj0 = 0 ;
24669 PyObject * obj1 = 0 ;
24670 char *kwnames[] = {
24671 (char *) "self",(char *) "format", NULL
24672 };
24673
24674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24677 {
24678 arg2 = wxString_in_helper(obj1);
24679 if (arg2 == NULL) SWIG_fail;
24680 temp2 = true;
24681 }
24682 {
24683 PyThreadState* __tstate = wxPyBeginAllowThreads();
24684 (arg1)->SetId((wxString const &)*arg2);
24685
24686 wxPyEndAllowThreads(__tstate);
24687 if (PyErr_Occurred()) SWIG_fail;
24688 }
24689 Py_INCREF(Py_None); resultobj = Py_None;
24690 {
24691 if (temp2)
24692 delete arg2;
24693 }
24694 return resultobj;
24695 fail:
24696 {
24697 if (temp2)
24698 delete arg2;
24699 }
24700 return NULL;
24701 }
24702
24703
24704 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
24705 PyObject *obj;
24706 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24707 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24708 Py_INCREF(obj);
24709 return Py_BuildValue((char *)"");
24710 }
24711 static int _wrap_FormatInvalid_set(PyObject *) {
24712 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24713 return 1;
24714 }
24715
24716
24717 static PyObject *_wrap_FormatInvalid_get() {
24718 PyObject *pyobj;
24719
24720 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24721 return pyobj;
24722 }
24723
24724
24725 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24726 PyObject *resultobj;
24727 wxDataObject *arg1 = (wxDataObject *) 0 ;
24728 PyObject * obj0 = 0 ;
24729 char *kwnames[] = {
24730 (char *) "self", NULL
24731 };
24732
24733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 delete arg1;
24739
24740 wxPyEndAllowThreads(__tstate);
24741 if (PyErr_Occurred()) SWIG_fail;
24742 }
24743 Py_INCREF(Py_None); resultobj = Py_None;
24744 return resultobj;
24745 fail:
24746 return NULL;
24747 }
24748
24749
24750 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24751 PyObject *resultobj;
24752 wxDataObject *arg1 = (wxDataObject *) 0 ;
24753 int arg2 = (int) wxDataObject::Get ;
24754 SwigValueWrapper< wxDataFormat > result;
24755 PyObject * obj0 = 0 ;
24756 PyObject * obj1 = 0 ;
24757 char *kwnames[] = {
24758 (char *) "self",(char *) "dir", NULL
24759 };
24760
24761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24764 if (obj1) {
24765 arg2 = (int)SWIG_As_int(obj1);
24766 if (PyErr_Occurred()) SWIG_fail;
24767 }
24768 {
24769 PyThreadState* __tstate = wxPyBeginAllowThreads();
24770 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24771
24772 wxPyEndAllowThreads(__tstate);
24773 if (PyErr_Occurred()) SWIG_fail;
24774 }
24775 {
24776 wxDataFormat * resultptr;
24777 resultptr = new wxDataFormat((wxDataFormat &) result);
24778 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24779 }
24780 return resultobj;
24781 fail:
24782 return NULL;
24783 }
24784
24785
24786 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
24787 PyObject *resultobj;
24788 wxDataObject *arg1 = (wxDataObject *) 0 ;
24789 int arg2 = (int) wxDataObject::Get ;
24790 size_t result;
24791 PyObject * obj0 = 0 ;
24792 PyObject * obj1 = 0 ;
24793 char *kwnames[] = {
24794 (char *) "self",(char *) "dir", NULL
24795 };
24796
24797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24800 if (obj1) {
24801 arg2 = (int)SWIG_As_int(obj1);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 {
24805 PyThreadState* __tstate = wxPyBeginAllowThreads();
24806 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24807
24808 wxPyEndAllowThreads(__tstate);
24809 if (PyErr_Occurred()) SWIG_fail;
24810 }
24811 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
24812 return resultobj;
24813 fail:
24814 return NULL;
24815 }
24816
24817
24818 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
24819 PyObject *resultobj;
24820 wxDataObject *arg1 = (wxDataObject *) 0 ;
24821 wxDataFormat *arg2 = 0 ;
24822 int arg3 = (int) wxDataObject::Get ;
24823 bool result;
24824 PyObject * obj0 = 0 ;
24825 PyObject * obj1 = 0 ;
24826 PyObject * obj2 = 0 ;
24827 char *kwnames[] = {
24828 (char *) "self",(char *) "format",(char *) "dir", NULL
24829 };
24830
24831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24834 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24835 SWIG_POINTER_EXCEPTION | 0)) == -1)
24836 SWIG_fail;
24837 if (arg2 == NULL) {
24838 PyErr_SetString(PyExc_TypeError,"null reference");
24839 SWIG_fail;
24840 }
24841 if (obj2) {
24842 arg3 = (int)SWIG_As_int(obj2);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 {
24846 PyThreadState* __tstate = wxPyBeginAllowThreads();
24847 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24848
24849 wxPyEndAllowThreads(__tstate);
24850 if (PyErr_Occurred()) SWIG_fail;
24851 }
24852 {
24853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24854 }
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
24862 PyObject *resultobj;
24863 wxDataObject *arg1 = (wxDataObject *) 0 ;
24864 wxDataFormat *arg2 = 0 ;
24865 size_t result;
24866 PyObject * obj0 = 0 ;
24867 PyObject * obj1 = 0 ;
24868 char *kwnames[] = {
24869 (char *) "self",(char *) "format", NULL
24870 };
24871
24872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24875 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24876 SWIG_POINTER_EXCEPTION | 0)) == -1)
24877 SWIG_fail;
24878 if (arg2 == NULL) {
24879 PyErr_SetString(PyExc_TypeError,"null reference");
24880 SWIG_fail;
24881 }
24882 {
24883 PyThreadState* __tstate = wxPyBeginAllowThreads();
24884 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24885
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
24890 return resultobj;
24891 fail:
24892 return NULL;
24893 }
24894
24895
24896 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
24897 PyObject *resultobj;
24898 wxDataObject *arg1 = (wxDataObject *) 0 ;
24899 int arg2 = (int) wxDataObject::Get ;
24900 PyObject *result;
24901 PyObject * obj0 = 0 ;
24902 PyObject * obj1 = 0 ;
24903 char *kwnames[] = {
24904 (char *) "self",(char *) "dir", NULL
24905 };
24906
24907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24910 if (obj1) {
24911 arg2 = (int)SWIG_As_int(obj1);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 {
24915 PyThreadState* __tstate = wxPyBeginAllowThreads();
24916 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24917
24918 wxPyEndAllowThreads(__tstate);
24919 if (PyErr_Occurred()) SWIG_fail;
24920 }
24921 resultobj = result;
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
24929 PyObject *resultobj;
24930 wxDataObject *arg1 = (wxDataObject *) 0 ;
24931 wxDataFormat *arg2 = 0 ;
24932 PyObject *result;
24933 PyObject * obj0 = 0 ;
24934 PyObject * obj1 = 0 ;
24935 char *kwnames[] = {
24936 (char *) "self",(char *) "format", NULL
24937 };
24938
24939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24943 SWIG_POINTER_EXCEPTION | 0)) == -1)
24944 SWIG_fail;
24945 if (arg2 == NULL) {
24946 PyErr_SetString(PyExc_TypeError,"null reference");
24947 SWIG_fail;
24948 }
24949 {
24950 PyThreadState* __tstate = wxPyBeginAllowThreads();
24951 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24952
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 resultobj = result;
24957 return resultobj;
24958 fail:
24959 return NULL;
24960 }
24961
24962
24963 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24964 PyObject *resultobj;
24965 wxDataObject *arg1 = (wxDataObject *) 0 ;
24966 wxDataFormat *arg2 = 0 ;
24967 PyObject *arg3 = (PyObject *) 0 ;
24968 bool result;
24969 PyObject * obj0 = 0 ;
24970 PyObject * obj1 = 0 ;
24971 PyObject * obj2 = 0 ;
24972 char *kwnames[] = {
24973 (char *) "self",(char *) "format",(char *) "data", NULL
24974 };
24975
24976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24979 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24980 SWIG_POINTER_EXCEPTION | 0)) == -1)
24981 SWIG_fail;
24982 if (arg2 == NULL) {
24983 PyErr_SetString(PyExc_TypeError,"null reference");
24984 SWIG_fail;
24985 }
24986 arg3 = obj2;
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24990
24991 wxPyEndAllowThreads(__tstate);
24992 if (PyErr_Occurred()) SWIG_fail;
24993 }
24994 {
24995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24996 }
24997 return resultobj;
24998 fail:
24999 return NULL;
25000 }
25001
25002
25003 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
25004 PyObject *obj;
25005 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25006 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
25007 Py_INCREF(obj);
25008 return Py_BuildValue((char *)"");
25009 }
25010 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
25011 PyObject *resultobj;
25012 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25013 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25014 wxDataObjectSimple *result;
25015 PyObject * obj0 = 0 ;
25016 char *kwnames[] = {
25017 (char *) "format", NULL
25018 };
25019
25020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
25021 if (obj0) {
25022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25023 SWIG_POINTER_EXCEPTION | 0)) == -1)
25024 SWIG_fail;
25025 if (arg1 == NULL) {
25026 PyErr_SetString(PyExc_TypeError,"null reference");
25027 SWIG_fail;
25028 }
25029 }
25030 {
25031 PyThreadState* __tstate = wxPyBeginAllowThreads();
25032 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
25033
25034 wxPyEndAllowThreads(__tstate);
25035 if (PyErr_Occurred()) SWIG_fail;
25036 }
25037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
25038 return resultobj;
25039 fail:
25040 return NULL;
25041 }
25042
25043
25044 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
25045 PyObject *resultobj;
25046 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25047 wxDataFormat *result;
25048 PyObject * obj0 = 0 ;
25049 char *kwnames[] = {
25050 (char *) "self", NULL
25051 };
25052
25053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
25054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25056 {
25057 PyThreadState* __tstate = wxPyBeginAllowThreads();
25058 {
25059 wxDataFormat const &_result_ref = (arg1)->GetFormat();
25060 result = (wxDataFormat *) &_result_ref;
25061 }
25062
25063 wxPyEndAllowThreads(__tstate);
25064 if (PyErr_Occurred()) SWIG_fail;
25065 }
25066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
25067 return resultobj;
25068 fail:
25069 return NULL;
25070 }
25071
25072
25073 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
25074 PyObject *resultobj;
25075 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25076 wxDataFormat *arg2 = 0 ;
25077 PyObject * obj0 = 0 ;
25078 PyObject * obj1 = 0 ;
25079 char *kwnames[] = {
25080 (char *) "self",(char *) "format", NULL
25081 };
25082
25083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
25084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25086 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25087 SWIG_POINTER_EXCEPTION | 0)) == -1)
25088 SWIG_fail;
25089 if (arg2 == NULL) {
25090 PyErr_SetString(PyExc_TypeError,"null reference");
25091 SWIG_fail;
25092 }
25093 {
25094 PyThreadState* __tstate = wxPyBeginAllowThreads();
25095 (arg1)->SetFormat((wxDataFormat const &)*arg2);
25096
25097 wxPyEndAllowThreads(__tstate);
25098 if (PyErr_Occurred()) SWIG_fail;
25099 }
25100 Py_INCREF(Py_None); resultobj = Py_None;
25101 return resultobj;
25102 fail:
25103 return NULL;
25104 }
25105
25106
25107 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
25108 PyObject *resultobj;
25109 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25110 size_t result;
25111 PyObject * obj0 = 0 ;
25112 char *kwnames[] = {
25113 (char *) "self", NULL
25114 };
25115
25116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
25117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25119 {
25120 PyThreadState* __tstate = wxPyBeginAllowThreads();
25121 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
25122
25123 wxPyEndAllowThreads(__tstate);
25124 if (PyErr_Occurred()) SWIG_fail;
25125 }
25126 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25127 return resultobj;
25128 fail:
25129 return NULL;
25130 }
25131
25132
25133 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
25134 PyObject *resultobj;
25135 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25136 PyObject *result;
25137 PyObject * obj0 = 0 ;
25138 char *kwnames[] = {
25139 (char *) "self", NULL
25140 };
25141
25142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
25143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25145 {
25146 PyThreadState* __tstate = wxPyBeginAllowThreads();
25147 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
25148
25149 wxPyEndAllowThreads(__tstate);
25150 if (PyErr_Occurred()) SWIG_fail;
25151 }
25152 resultobj = result;
25153 return resultobj;
25154 fail:
25155 return NULL;
25156 }
25157
25158
25159 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25160 PyObject *resultobj;
25161 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25162 PyObject *arg2 = (PyObject *) 0 ;
25163 bool result;
25164 PyObject * obj0 = 0 ;
25165 PyObject * obj1 = 0 ;
25166 char *kwnames[] = {
25167 (char *) "self",(char *) "data", NULL
25168 };
25169
25170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
25171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25173 arg2 = obj1;
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
25177
25178 wxPyEndAllowThreads(__tstate);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 {
25182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25183 }
25184 return resultobj;
25185 fail:
25186 return NULL;
25187 }
25188
25189
25190 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
25191 PyObject *obj;
25192 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25193 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25194 Py_INCREF(obj);
25195 return Py_BuildValue((char *)"");
25196 }
25197 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
25198 PyObject *resultobj;
25199 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25200 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25201 wxPyDataObjectSimple *result;
25202 PyObject * obj0 = 0 ;
25203 char *kwnames[] = {
25204 (char *) "format", NULL
25205 };
25206
25207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25208 if (obj0) {
25209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25210 SWIG_POINTER_EXCEPTION | 0)) == -1)
25211 SWIG_fail;
25212 if (arg1 == NULL) {
25213 PyErr_SetString(PyExc_TypeError,"null reference");
25214 SWIG_fail;
25215 }
25216 }
25217 {
25218 PyThreadState* __tstate = wxPyBeginAllowThreads();
25219 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25220
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25225 return resultobj;
25226 fail:
25227 return NULL;
25228 }
25229
25230
25231 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj;
25233 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25234 PyObject *arg2 = (PyObject *) 0 ;
25235 PyObject *arg3 = (PyObject *) 0 ;
25236 PyObject * obj0 = 0 ;
25237 PyObject * obj1 = 0 ;
25238 PyObject * obj2 = 0 ;
25239 char *kwnames[] = {
25240 (char *) "self",(char *) "self",(char *) "_class", NULL
25241 };
25242
25243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25246 arg2 = obj1;
25247 arg3 = obj2;
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 (arg1)->_setCallbackInfo(arg2,arg3);
25251
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 Py_INCREF(Py_None); resultobj = Py_None;
25256 return resultobj;
25257 fail:
25258 return NULL;
25259 }
25260
25261
25262 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
25263 PyObject *obj;
25264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25265 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25266 Py_INCREF(obj);
25267 return Py_BuildValue((char *)"");
25268 }
25269 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
25270 PyObject *resultobj;
25271 wxDataObjectComposite *result;
25272 char *kwnames[] = {
25273 NULL
25274 };
25275
25276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25277 {
25278 PyThreadState* __tstate = wxPyBeginAllowThreads();
25279 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25280
25281 wxPyEndAllowThreads(__tstate);
25282 if (PyErr_Occurred()) SWIG_fail;
25283 }
25284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25285 return resultobj;
25286 fail:
25287 return NULL;
25288 }
25289
25290
25291 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
25292 PyObject *resultobj;
25293 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25294 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25295 bool arg3 = (bool) false ;
25296 PyObject * obj0 = 0 ;
25297 PyObject * obj1 = 0 ;
25298 PyObject * obj2 = 0 ;
25299 char *kwnames[] = {
25300 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25301 };
25302
25303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25307 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25308 if (obj2) {
25309 arg3 = (bool)SWIG_As_bool(obj2);
25310 if (PyErr_Occurred()) SWIG_fail;
25311 }
25312 {
25313 PyThreadState* __tstate = wxPyBeginAllowThreads();
25314 (arg1)->Add(arg2,arg3);
25315
25316 wxPyEndAllowThreads(__tstate);
25317 if (PyErr_Occurred()) SWIG_fail;
25318 }
25319 Py_INCREF(Py_None); resultobj = Py_None;
25320 return resultobj;
25321 fail:
25322 return NULL;
25323 }
25324
25325
25326 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
25327 PyObject *obj;
25328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25329 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25330 Py_INCREF(obj);
25331 return Py_BuildValue((char *)"");
25332 }
25333 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25334 PyObject *resultobj;
25335 wxString const &arg1_defvalue = wxPyEmptyString ;
25336 wxString *arg1 = (wxString *) &arg1_defvalue ;
25337 wxTextDataObject *result;
25338 bool temp1 = false ;
25339 PyObject * obj0 = 0 ;
25340 char *kwnames[] = {
25341 (char *) "text", NULL
25342 };
25343
25344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25345 if (obj0) {
25346 {
25347 arg1 = wxString_in_helper(obj0);
25348 if (arg1 == NULL) SWIG_fail;
25349 temp1 = true;
25350 }
25351 }
25352 {
25353 PyThreadState* __tstate = wxPyBeginAllowThreads();
25354 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25355
25356 wxPyEndAllowThreads(__tstate);
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
25359 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25360 {
25361 if (temp1)
25362 delete arg1;
25363 }
25364 return resultobj;
25365 fail:
25366 {
25367 if (temp1)
25368 delete arg1;
25369 }
25370 return NULL;
25371 }
25372
25373
25374 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
25375 PyObject *resultobj;
25376 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25377 size_t result;
25378 PyObject * obj0 = 0 ;
25379 char *kwnames[] = {
25380 (char *) "self", NULL
25381 };
25382
25383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25386 {
25387 PyThreadState* __tstate = wxPyBeginAllowThreads();
25388 result = (size_t)(arg1)->GetTextLength();
25389
25390 wxPyEndAllowThreads(__tstate);
25391 if (PyErr_Occurred()) SWIG_fail;
25392 }
25393 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25394 return resultobj;
25395 fail:
25396 return NULL;
25397 }
25398
25399
25400 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
25401 PyObject *resultobj;
25402 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25403 wxString result;
25404 PyObject * obj0 = 0 ;
25405 char *kwnames[] = {
25406 (char *) "self", NULL
25407 };
25408
25409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25412 {
25413 PyThreadState* __tstate = wxPyBeginAllowThreads();
25414 result = (arg1)->GetText();
25415
25416 wxPyEndAllowThreads(__tstate);
25417 if (PyErr_Occurred()) SWIG_fail;
25418 }
25419 {
25420 #if wxUSE_UNICODE
25421 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25422 #else
25423 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25424 #endif
25425 }
25426 return resultobj;
25427 fail:
25428 return NULL;
25429 }
25430
25431
25432 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
25433 PyObject *resultobj;
25434 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25435 wxString *arg2 = 0 ;
25436 bool temp2 = false ;
25437 PyObject * obj0 = 0 ;
25438 PyObject * obj1 = 0 ;
25439 char *kwnames[] = {
25440 (char *) "self",(char *) "text", NULL
25441 };
25442
25443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25446 {
25447 arg2 = wxString_in_helper(obj1);
25448 if (arg2 == NULL) SWIG_fail;
25449 temp2 = true;
25450 }
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 (arg1)->SetText((wxString const &)*arg2);
25454
25455 wxPyEndAllowThreads(__tstate);
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 Py_INCREF(Py_None); resultobj = Py_None;
25459 {
25460 if (temp2)
25461 delete arg2;
25462 }
25463 return resultobj;
25464 fail:
25465 {
25466 if (temp2)
25467 delete arg2;
25468 }
25469 return NULL;
25470 }
25471
25472
25473 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
25474 PyObject *obj;
25475 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25476 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25477 Py_INCREF(obj);
25478 return Py_BuildValue((char *)"");
25479 }
25480 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25481 PyObject *resultobj;
25482 wxString const &arg1_defvalue = wxPyEmptyString ;
25483 wxString *arg1 = (wxString *) &arg1_defvalue ;
25484 wxPyTextDataObject *result;
25485 bool temp1 = false ;
25486 PyObject * obj0 = 0 ;
25487 char *kwnames[] = {
25488 (char *) "text", NULL
25489 };
25490
25491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25492 if (obj0) {
25493 {
25494 arg1 = wxString_in_helper(obj0);
25495 if (arg1 == NULL) SWIG_fail;
25496 temp1 = true;
25497 }
25498 }
25499 {
25500 PyThreadState* __tstate = wxPyBeginAllowThreads();
25501 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25502
25503 wxPyEndAllowThreads(__tstate);
25504 if (PyErr_Occurred()) SWIG_fail;
25505 }
25506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25507 {
25508 if (temp1)
25509 delete arg1;
25510 }
25511 return resultobj;
25512 fail:
25513 {
25514 if (temp1)
25515 delete arg1;
25516 }
25517 return NULL;
25518 }
25519
25520
25521 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25522 PyObject *resultobj;
25523 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25524 PyObject *arg2 = (PyObject *) 0 ;
25525 PyObject *arg3 = (PyObject *) 0 ;
25526 PyObject * obj0 = 0 ;
25527 PyObject * obj1 = 0 ;
25528 PyObject * obj2 = 0 ;
25529 char *kwnames[] = {
25530 (char *) "self",(char *) "self",(char *) "_class", NULL
25531 };
25532
25533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25536 arg2 = obj1;
25537 arg3 = obj2;
25538 {
25539 PyThreadState* __tstate = wxPyBeginAllowThreads();
25540 (arg1)->_setCallbackInfo(arg2,arg3);
25541
25542 wxPyEndAllowThreads(__tstate);
25543 if (PyErr_Occurred()) SWIG_fail;
25544 }
25545 Py_INCREF(Py_None); resultobj = Py_None;
25546 return resultobj;
25547 fail:
25548 return NULL;
25549 }
25550
25551
25552 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
25553 PyObject *obj;
25554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25555 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25556 Py_INCREF(obj);
25557 return Py_BuildValue((char *)"");
25558 }
25559 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25560 PyObject *resultobj;
25561 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25562 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25563 wxBitmapDataObject *result;
25564 PyObject * obj0 = 0 ;
25565 char *kwnames[] = {
25566 (char *) "bitmap", NULL
25567 };
25568
25569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25570 if (obj0) {
25571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25572 SWIG_POINTER_EXCEPTION | 0)) == -1)
25573 SWIG_fail;
25574 if (arg1 == NULL) {
25575 PyErr_SetString(PyExc_TypeError,"null reference");
25576 SWIG_fail;
25577 }
25578 }
25579 {
25580 PyThreadState* __tstate = wxPyBeginAllowThreads();
25581 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25582
25583 wxPyEndAllowThreads(__tstate);
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25587 return resultobj;
25588 fail:
25589 return NULL;
25590 }
25591
25592
25593 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj;
25595 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25596 wxBitmap result;
25597 PyObject * obj0 = 0 ;
25598 char *kwnames[] = {
25599 (char *) "self", NULL
25600 };
25601
25602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25605 {
25606 PyThreadState* __tstate = wxPyBeginAllowThreads();
25607 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25608
25609 wxPyEndAllowThreads(__tstate);
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 {
25613 wxBitmap * resultptr;
25614 resultptr = new wxBitmap((wxBitmap &) result);
25615 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25616 }
25617 return resultobj;
25618 fail:
25619 return NULL;
25620 }
25621
25622
25623 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25624 PyObject *resultobj;
25625 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25626 wxBitmap *arg2 = 0 ;
25627 PyObject * obj0 = 0 ;
25628 PyObject * obj1 = 0 ;
25629 char *kwnames[] = {
25630 (char *) "self",(char *) "bitmap", NULL
25631 };
25632
25633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25636 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25637 SWIG_POINTER_EXCEPTION | 0)) == -1)
25638 SWIG_fail;
25639 if (arg2 == NULL) {
25640 PyErr_SetString(PyExc_TypeError,"null reference");
25641 SWIG_fail;
25642 }
25643 {
25644 PyThreadState* __tstate = wxPyBeginAllowThreads();
25645 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25646
25647 wxPyEndAllowThreads(__tstate);
25648 if (PyErr_Occurred()) SWIG_fail;
25649 }
25650 Py_INCREF(Py_None); resultobj = Py_None;
25651 return resultobj;
25652 fail:
25653 return NULL;
25654 }
25655
25656
25657 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
25658 PyObject *obj;
25659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25660 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25661 Py_INCREF(obj);
25662 return Py_BuildValue((char *)"");
25663 }
25664 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25665 PyObject *resultobj;
25666 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25667 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25668 wxPyBitmapDataObject *result;
25669 PyObject * obj0 = 0 ;
25670 char *kwnames[] = {
25671 (char *) "bitmap", NULL
25672 };
25673
25674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25675 if (obj0) {
25676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25677 SWIG_POINTER_EXCEPTION | 0)) == -1)
25678 SWIG_fail;
25679 if (arg1 == NULL) {
25680 PyErr_SetString(PyExc_TypeError,"null reference");
25681 SWIG_fail;
25682 }
25683 }
25684 {
25685 PyThreadState* __tstate = wxPyBeginAllowThreads();
25686 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25687
25688 wxPyEndAllowThreads(__tstate);
25689 if (PyErr_Occurred()) SWIG_fail;
25690 }
25691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25692 return resultobj;
25693 fail:
25694 return NULL;
25695 }
25696
25697
25698 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25699 PyObject *resultobj;
25700 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25701 PyObject *arg2 = (PyObject *) 0 ;
25702 PyObject *arg3 = (PyObject *) 0 ;
25703 PyObject * obj0 = 0 ;
25704 PyObject * obj1 = 0 ;
25705 PyObject * obj2 = 0 ;
25706 char *kwnames[] = {
25707 (char *) "self",(char *) "self",(char *) "_class", NULL
25708 };
25709
25710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25713 arg2 = obj1;
25714 arg3 = obj2;
25715 {
25716 PyThreadState* __tstate = wxPyBeginAllowThreads();
25717 (arg1)->_setCallbackInfo(arg2,arg3);
25718
25719 wxPyEndAllowThreads(__tstate);
25720 if (PyErr_Occurred()) SWIG_fail;
25721 }
25722 Py_INCREF(Py_None); resultobj = Py_None;
25723 return resultobj;
25724 fail:
25725 return NULL;
25726 }
25727
25728
25729 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
25730 PyObject *obj;
25731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25732 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25733 Py_INCREF(obj);
25734 return Py_BuildValue((char *)"");
25735 }
25736 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25737 PyObject *resultobj;
25738 wxFileDataObject *result;
25739 char *kwnames[] = {
25740 NULL
25741 };
25742
25743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25744 {
25745 PyThreadState* __tstate = wxPyBeginAllowThreads();
25746 result = (wxFileDataObject *)new wxFileDataObject();
25747
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25752 return resultobj;
25753 fail:
25754 return NULL;
25755 }
25756
25757
25758 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
25759 PyObject *resultobj;
25760 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25761 wxArrayString *result;
25762 PyObject * obj0 = 0 ;
25763 char *kwnames[] = {
25764 (char *) "self", NULL
25765 };
25766
25767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25770 {
25771 PyThreadState* __tstate = wxPyBeginAllowThreads();
25772 {
25773 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25774 result = (wxArrayString *) &_result_ref;
25775 }
25776
25777 wxPyEndAllowThreads(__tstate);
25778 if (PyErr_Occurred()) SWIG_fail;
25779 }
25780 {
25781 resultobj = wxArrayString2PyList_helper(*result);
25782 }
25783 return resultobj;
25784 fail:
25785 return NULL;
25786 }
25787
25788
25789 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
25790 PyObject *resultobj;
25791 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25792 wxString *arg2 = 0 ;
25793 bool temp2 = false ;
25794 PyObject * obj0 = 0 ;
25795 PyObject * obj1 = 0 ;
25796 char *kwnames[] = {
25797 (char *) "self",(char *) "filename", NULL
25798 };
25799
25800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25803 {
25804 arg2 = wxString_in_helper(obj1);
25805 if (arg2 == NULL) SWIG_fail;
25806 temp2 = true;
25807 }
25808 {
25809 PyThreadState* __tstate = wxPyBeginAllowThreads();
25810 (arg1)->AddFile((wxString const &)*arg2);
25811
25812 wxPyEndAllowThreads(__tstate);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 Py_INCREF(Py_None); resultobj = Py_None;
25816 {
25817 if (temp2)
25818 delete arg2;
25819 }
25820 return resultobj;
25821 fail:
25822 {
25823 if (temp2)
25824 delete arg2;
25825 }
25826 return NULL;
25827 }
25828
25829
25830 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
25831 PyObject *obj;
25832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25833 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25834 Py_INCREF(obj);
25835 return Py_BuildValue((char *)"");
25836 }
25837 static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25838 PyObject *resultobj;
25839 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25840 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25841 wxCustomDataObject *result;
25842 PyObject * obj0 = 0 ;
25843 char *kwnames[] = {
25844 (char *) "format", NULL
25845 };
25846
25847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25848 if (obj0) {
25849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25850 SWIG_POINTER_EXCEPTION | 0)) == -1)
25851 SWIG_fail;
25852 if (arg1 == NULL) {
25853 PyErr_SetString(PyExc_TypeError,"null reference");
25854 SWIG_fail;
25855 }
25856 }
25857 {
25858 PyThreadState* __tstate = wxPyBeginAllowThreads();
25859 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25860
25861 wxPyEndAllowThreads(__tstate);
25862 if (PyErr_Occurred()) SWIG_fail;
25863 }
25864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25865 return resultobj;
25866 fail:
25867 return NULL;
25868 }
25869
25870
25871 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25872 PyObject *resultobj;
25873 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25874 PyObject *arg2 = (PyObject *) 0 ;
25875 bool result;
25876 PyObject * obj0 = 0 ;
25877 PyObject * obj1 = 0 ;
25878 char *kwnames[] = {
25879 (char *) "self",(char *) "data", NULL
25880 };
25881
25882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25885 arg2 = obj1;
25886 {
25887 PyThreadState* __tstate = wxPyBeginAllowThreads();
25888 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25889
25890 wxPyEndAllowThreads(__tstate);
25891 if (PyErr_Occurred()) SWIG_fail;
25892 }
25893 {
25894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25895 }
25896 return resultobj;
25897 fail:
25898 return NULL;
25899 }
25900
25901
25902 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
25903 PyObject *resultobj;
25904 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25905 size_t result;
25906 PyObject * obj0 = 0 ;
25907 char *kwnames[] = {
25908 (char *) "self", NULL
25909 };
25910
25911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25914 {
25915 PyThreadState* __tstate = wxPyBeginAllowThreads();
25916 result = (size_t)(arg1)->GetSize();
25917
25918 wxPyEndAllowThreads(__tstate);
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
25921 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25922 return resultobj;
25923 fail:
25924 return NULL;
25925 }
25926
25927
25928 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25929 PyObject *resultobj;
25930 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25931 PyObject *result;
25932 PyObject * obj0 = 0 ;
25933 char *kwnames[] = {
25934 (char *) "self", NULL
25935 };
25936
25937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25940 {
25941 PyThreadState* __tstate = wxPyBeginAllowThreads();
25942 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25943
25944 wxPyEndAllowThreads(__tstate);
25945 if (PyErr_Occurred()) SWIG_fail;
25946 }
25947 resultobj = result;
25948 return resultobj;
25949 fail:
25950 return NULL;
25951 }
25952
25953
25954 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
25955 PyObject *obj;
25956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25957 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25958 Py_INCREF(obj);
25959 return Py_BuildValue((char *)"");
25960 }
25961 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25962 PyObject *resultobj;
25963 wxURLDataObject *result;
25964 char *kwnames[] = {
25965 NULL
25966 };
25967
25968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25969 {
25970 PyThreadState* __tstate = wxPyBeginAllowThreads();
25971 result = (wxURLDataObject *)new wxURLDataObject();
25972
25973 wxPyEndAllowThreads(__tstate);
25974 if (PyErr_Occurred()) SWIG_fail;
25975 }
25976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25977 return resultobj;
25978 fail:
25979 return NULL;
25980 }
25981
25982
25983 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25984 PyObject *resultobj;
25985 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25986 wxString result;
25987 PyObject * obj0 = 0 ;
25988 char *kwnames[] = {
25989 (char *) "self", NULL
25990 };
25991
25992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25995 {
25996 PyThreadState* __tstate = wxPyBeginAllowThreads();
25997 result = (arg1)->GetURL();
25998
25999 wxPyEndAllowThreads(__tstate);
26000 if (PyErr_Occurred()) SWIG_fail;
26001 }
26002 {
26003 #if wxUSE_UNICODE
26004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26005 #else
26006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26007 #endif
26008 }
26009 return resultobj;
26010 fail:
26011 return NULL;
26012 }
26013
26014
26015 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
26016 PyObject *resultobj;
26017 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
26018 wxString *arg2 = 0 ;
26019 bool temp2 = false ;
26020 PyObject * obj0 = 0 ;
26021 PyObject * obj1 = 0 ;
26022 char *kwnames[] = {
26023 (char *) "self",(char *) "url", NULL
26024 };
26025
26026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
26027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
26028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26029 {
26030 arg2 = wxString_in_helper(obj1);
26031 if (arg2 == NULL) SWIG_fail;
26032 temp2 = true;
26033 }
26034 {
26035 PyThreadState* __tstate = wxPyBeginAllowThreads();
26036 (arg1)->SetURL((wxString const &)*arg2);
26037
26038 wxPyEndAllowThreads(__tstate);
26039 if (PyErr_Occurred()) SWIG_fail;
26040 }
26041 Py_INCREF(Py_None); resultobj = Py_None;
26042 {
26043 if (temp2)
26044 delete arg2;
26045 }
26046 return resultobj;
26047 fail:
26048 {
26049 if (temp2)
26050 delete arg2;
26051 }
26052 return NULL;
26053 }
26054
26055
26056 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
26057 PyObject *obj;
26058 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26059 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
26060 Py_INCREF(obj);
26061 return Py_BuildValue((char *)"");
26062 }
26063 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26064 PyObject *resultobj;
26065 wxMetafileDataObject *result;
26066 char *kwnames[] = {
26067 NULL
26068 };
26069
26070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
26071 {
26072 PyThreadState* __tstate = wxPyBeginAllowThreads();
26073 result = (wxMetafileDataObject *)new wxMetafileDataObject();
26074
26075 wxPyEndAllowThreads(__tstate);
26076 if (PyErr_Occurred()) SWIG_fail;
26077 }
26078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
26079 return resultobj;
26080 fail:
26081 return NULL;
26082 }
26083
26084
26085 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
26086 PyObject *resultobj;
26087 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26088 wxMetafile *arg2 = 0 ;
26089 PyObject * obj0 = 0 ;
26090 PyObject * obj1 = 0 ;
26091 char *kwnames[] = {
26092 (char *) "self",(char *) "metafile", NULL
26093 };
26094
26095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
26096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
26099 SWIG_POINTER_EXCEPTION | 0)) == -1)
26100 SWIG_fail;
26101 if (arg2 == NULL) {
26102 PyErr_SetString(PyExc_TypeError,"null reference");
26103 SWIG_fail;
26104 }
26105 {
26106 PyThreadState* __tstate = wxPyBeginAllowThreads();
26107 (arg1)->SetMetafile((wxMetafile const &)*arg2);
26108
26109 wxPyEndAllowThreads(__tstate);
26110 if (PyErr_Occurred()) SWIG_fail;
26111 }
26112 Py_INCREF(Py_None); resultobj = Py_None;
26113 return resultobj;
26114 fail:
26115 return NULL;
26116 }
26117
26118
26119 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
26120 PyObject *resultobj;
26121 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26122 wxMetafile result;
26123 PyObject * obj0 = 0 ;
26124 char *kwnames[] = {
26125 (char *) "self", NULL
26126 };
26127
26128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
26129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26131 {
26132 PyThreadState* __tstate = wxPyBeginAllowThreads();
26133 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
26134
26135 wxPyEndAllowThreads(__tstate);
26136 if (PyErr_Occurred()) SWIG_fail;
26137 }
26138 {
26139 wxMetafile * resultptr;
26140 resultptr = new wxMetafile((wxMetafile &) result);
26141 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
26142 }
26143 return resultobj;
26144 fail:
26145 return NULL;
26146 }
26147
26148
26149 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
26150 PyObject *obj;
26151 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26152 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
26153 Py_INCREF(obj);
26154 return Py_BuildValue((char *)"");
26155 }
26156 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
26157 PyObject *resultobj;
26158 int arg1 ;
26159 bool result;
26160 PyObject * obj0 = 0 ;
26161 char *kwnames[] = {
26162 (char *) "res", NULL
26163 };
26164
26165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
26166 arg1 = (int)SWIG_As_int(obj0);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 {
26169 PyThreadState* __tstate = wxPyBeginAllowThreads();
26170 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
26171
26172 wxPyEndAllowThreads(__tstate);
26173 if (PyErr_Occurred()) SWIG_fail;
26174 }
26175 {
26176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26177 }
26178 return resultobj;
26179 fail:
26180 return NULL;
26181 }
26182
26183
26184 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26185 PyObject *resultobj;
26186 wxWindow *arg1 = (wxWindow *) 0 ;
26187 wxCursor const &arg2_defvalue = wxNullCursor ;
26188 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
26189 wxCursor const &arg3_defvalue = wxNullCursor ;
26190 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
26191 wxCursor const &arg4_defvalue = wxNullCursor ;
26192 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
26193 wxPyDropSource *result;
26194 PyObject * obj0 = 0 ;
26195 PyObject * obj1 = 0 ;
26196 PyObject * obj2 = 0 ;
26197 PyObject * obj3 = 0 ;
26198 char *kwnames[] = {
26199 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26200 };
26201
26202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26205 if (obj1) {
26206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26207 SWIG_POINTER_EXCEPTION | 0)) == -1)
26208 SWIG_fail;
26209 if (arg2 == NULL) {
26210 PyErr_SetString(PyExc_TypeError,"null reference");
26211 SWIG_fail;
26212 }
26213 }
26214 if (obj2) {
26215 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26216 SWIG_POINTER_EXCEPTION | 0)) == -1)
26217 SWIG_fail;
26218 if (arg3 == NULL) {
26219 PyErr_SetString(PyExc_TypeError,"null reference");
26220 SWIG_fail;
26221 }
26222 }
26223 if (obj3) {
26224 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
26225 SWIG_POINTER_EXCEPTION | 0)) == -1)
26226 SWIG_fail;
26227 if (arg4 == NULL) {
26228 PyErr_SetString(PyExc_TypeError,"null reference");
26229 SWIG_fail;
26230 }
26231 }
26232 {
26233 PyThreadState* __tstate = wxPyBeginAllowThreads();
26234 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
26235
26236 wxPyEndAllowThreads(__tstate);
26237 if (PyErr_Occurred()) SWIG_fail;
26238 }
26239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26240 return resultobj;
26241 fail:
26242 return NULL;
26243 }
26244
26245
26246 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26247 PyObject *resultobj;
26248 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26249 PyObject *arg2 = (PyObject *) 0 ;
26250 PyObject *arg3 = (PyObject *) 0 ;
26251 int arg4 ;
26252 PyObject * obj0 = 0 ;
26253 PyObject * obj1 = 0 ;
26254 PyObject * obj2 = 0 ;
26255 PyObject * obj3 = 0 ;
26256 char *kwnames[] = {
26257 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26258 };
26259
26260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26263 arg2 = obj1;
26264 arg3 = obj2;
26265 arg4 = (int)SWIG_As_int(obj3);
26266 if (PyErr_Occurred()) SWIG_fail;
26267 {
26268 PyThreadState* __tstate = wxPyBeginAllowThreads();
26269 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26270
26271 wxPyEndAllowThreads(__tstate);
26272 if (PyErr_Occurred()) SWIG_fail;
26273 }
26274 Py_INCREF(Py_None); resultobj = Py_None;
26275 return resultobj;
26276 fail:
26277 return NULL;
26278 }
26279
26280
26281 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26282 PyObject *resultobj;
26283 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26284 PyObject * obj0 = 0 ;
26285 char *kwnames[] = {
26286 (char *) "self", NULL
26287 };
26288
26289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26292 {
26293 PyThreadState* __tstate = wxPyBeginAllowThreads();
26294 delete arg1;
26295
26296 wxPyEndAllowThreads(__tstate);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
26299 Py_INCREF(Py_None); resultobj = Py_None;
26300 return resultobj;
26301 fail:
26302 return NULL;
26303 }
26304
26305
26306 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
26307 PyObject *resultobj;
26308 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26309 wxDataObject *arg2 = 0 ;
26310 PyObject * obj0 = 0 ;
26311 PyObject * obj1 = 0 ;
26312 char *kwnames[] = {
26313 (char *) "self",(char *) "data", NULL
26314 };
26315
26316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26320 SWIG_POINTER_EXCEPTION | 0)) == -1)
26321 SWIG_fail;
26322 if (arg2 == NULL) {
26323 PyErr_SetString(PyExc_TypeError,"null reference");
26324 SWIG_fail;
26325 }
26326 {
26327 PyThreadState* __tstate = wxPyBeginAllowThreads();
26328 (arg1)->SetData(*arg2);
26329
26330 wxPyEndAllowThreads(__tstate);
26331 if (PyErr_Occurred()) SWIG_fail;
26332 }
26333 Py_INCREF(Py_None); resultobj = Py_None;
26334 return resultobj;
26335 fail:
26336 return NULL;
26337 }
26338
26339
26340 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26341 PyObject *resultobj;
26342 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26343 wxDataObject *result;
26344 PyObject * obj0 = 0 ;
26345 char *kwnames[] = {
26346 (char *) "self", NULL
26347 };
26348
26349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26352 {
26353 PyThreadState* __tstate = wxPyBeginAllowThreads();
26354 result = (wxDataObject *)(arg1)->GetDataObject();
26355
26356 wxPyEndAllowThreads(__tstate);
26357 if (PyErr_Occurred()) SWIG_fail;
26358 }
26359 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26360 return resultobj;
26361 fail:
26362 return NULL;
26363 }
26364
26365
26366 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
26367 PyObject *resultobj;
26368 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26369 int arg2 ;
26370 wxCursor *arg3 = 0 ;
26371 PyObject * obj0 = 0 ;
26372 PyObject * obj1 = 0 ;
26373 PyObject * obj2 = 0 ;
26374 char *kwnames[] = {
26375 (char *) "self",(char *) "res",(char *) "cursor", NULL
26376 };
26377
26378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26381 arg2 = (int)SWIG_As_int(obj1);
26382 if (PyErr_Occurred()) SWIG_fail;
26383 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26384 SWIG_POINTER_EXCEPTION | 0)) == -1)
26385 SWIG_fail;
26386 if (arg3 == NULL) {
26387 PyErr_SetString(PyExc_TypeError,"null reference");
26388 SWIG_fail;
26389 }
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26393
26394 wxPyEndAllowThreads(__tstate);
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 Py_INCREF(Py_None); resultobj = Py_None;
26398 return resultobj;
26399 fail:
26400 return NULL;
26401 }
26402
26403
26404 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26405 PyObject *resultobj;
26406 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26407 int arg2 = (int) wxDrag_CopyOnly ;
26408 int result;
26409 PyObject * obj0 = 0 ;
26410 PyObject * obj1 = 0 ;
26411 char *kwnames[] = {
26412 (char *) "self",(char *) "flags", NULL
26413 };
26414
26415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26418 if (obj1) {
26419 arg2 = (int)SWIG_As_int(obj1);
26420 if (PyErr_Occurred()) SWIG_fail;
26421 }
26422 {
26423 PyThreadState* __tstate = wxPyBeginAllowThreads();
26424 result = (int)(arg1)->DoDragDrop(arg2);
26425
26426 wxPyEndAllowThreads(__tstate);
26427 if (PyErr_Occurred()) SWIG_fail;
26428 }
26429 resultobj = SWIG_From_int((int)result);
26430 return resultobj;
26431 fail:
26432 return NULL;
26433 }
26434
26435
26436 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
26437 PyObject *resultobj;
26438 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26439 int arg2 ;
26440 bool result;
26441 PyObject * obj0 = 0 ;
26442 PyObject * obj1 = 0 ;
26443 char *kwnames[] = {
26444 (char *) "self",(char *) "effect", NULL
26445 };
26446
26447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26450 arg2 = (int)SWIG_As_int(obj1);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 {
26453 PyThreadState* __tstate = wxPyBeginAllowThreads();
26454 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26455
26456 wxPyEndAllowThreads(__tstate);
26457 if (PyErr_Occurred()) SWIG_fail;
26458 }
26459 {
26460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26461 }
26462 return resultobj;
26463 fail:
26464 return NULL;
26465 }
26466
26467
26468 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
26469 PyObject *obj;
26470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26471 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26472 Py_INCREF(obj);
26473 return Py_BuildValue((char *)"");
26474 }
26475 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26476 PyObject *resultobj;
26477 wxDataObject *arg1 = (wxDataObject *) NULL ;
26478 wxPyDropTarget *result;
26479 PyObject * obj0 = 0 ;
26480 char *kwnames[] = {
26481 (char *) "dataObject", NULL
26482 };
26483
26484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26485 if (obj0) {
26486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26487 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26488 }
26489 {
26490 PyThreadState* __tstate = wxPyBeginAllowThreads();
26491 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26492
26493 wxPyEndAllowThreads(__tstate);
26494 if (PyErr_Occurred()) SWIG_fail;
26495 }
26496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26497 return resultobj;
26498 fail:
26499 return NULL;
26500 }
26501
26502
26503 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26504 PyObject *resultobj;
26505 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26506 PyObject *arg2 = (PyObject *) 0 ;
26507 PyObject *arg3 = (PyObject *) 0 ;
26508 PyObject * obj0 = 0 ;
26509 PyObject * obj1 = 0 ;
26510 PyObject * obj2 = 0 ;
26511 char *kwnames[] = {
26512 (char *) "self",(char *) "self",(char *) "_class", NULL
26513 };
26514
26515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26518 arg2 = obj1;
26519 arg3 = obj2;
26520 {
26521 PyThreadState* __tstate = wxPyBeginAllowThreads();
26522 (arg1)->_setCallbackInfo(arg2,arg3);
26523
26524 wxPyEndAllowThreads(__tstate);
26525 if (PyErr_Occurred()) SWIG_fail;
26526 }
26527 Py_INCREF(Py_None); resultobj = Py_None;
26528 return resultobj;
26529 fail:
26530 return NULL;
26531 }
26532
26533
26534 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26535 PyObject *resultobj;
26536 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26537 PyObject * obj0 = 0 ;
26538 char *kwnames[] = {
26539 (char *) "self", NULL
26540 };
26541
26542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26545 {
26546 PyThreadState* __tstate = wxPyBeginAllowThreads();
26547 delete arg1;
26548
26549 wxPyEndAllowThreads(__tstate);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 }
26552 Py_INCREF(Py_None); resultobj = Py_None;
26553 return resultobj;
26554 fail:
26555 return NULL;
26556 }
26557
26558
26559 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26560 PyObject *resultobj;
26561 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26562 wxDataObject *result;
26563 PyObject * obj0 = 0 ;
26564 char *kwnames[] = {
26565 (char *) "self", NULL
26566 };
26567
26568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26571 {
26572 PyThreadState* __tstate = wxPyBeginAllowThreads();
26573 result = (wxDataObject *)(arg1)->GetDataObject();
26574
26575 wxPyEndAllowThreads(__tstate);
26576 if (PyErr_Occurred()) SWIG_fail;
26577 }
26578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26579 return resultobj;
26580 fail:
26581 return NULL;
26582 }
26583
26584
26585 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26586 PyObject *resultobj;
26587 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26588 wxDataObject *arg2 = (wxDataObject *) 0 ;
26589 PyObject * obj0 = 0 ;
26590 PyObject * obj1 = 0 ;
26591 char *kwnames[] = {
26592 (char *) "self",(char *) "dataObject", NULL
26593 };
26594
26595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26599 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26600 {
26601 PyThreadState* __tstate = wxPyBeginAllowThreads();
26602 (arg1)->SetDataObject(arg2);
26603
26604 wxPyEndAllowThreads(__tstate);
26605 if (PyErr_Occurred()) SWIG_fail;
26606 }
26607 Py_INCREF(Py_None); resultobj = Py_None;
26608 return resultobj;
26609 fail:
26610 return NULL;
26611 }
26612
26613
26614 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26615 PyObject *resultobj;
26616 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26617 int arg2 ;
26618 int arg3 ;
26619 int arg4 ;
26620 int result;
26621 PyObject * obj0 = 0 ;
26622 PyObject * obj1 = 0 ;
26623 PyObject * obj2 = 0 ;
26624 PyObject * obj3 = 0 ;
26625 char *kwnames[] = {
26626 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26627 };
26628
26629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26632 arg2 = (int)SWIG_As_int(obj1);
26633 if (PyErr_Occurred()) SWIG_fail;
26634 arg3 = (int)SWIG_As_int(obj2);
26635 if (PyErr_Occurred()) SWIG_fail;
26636 arg4 = (int)SWIG_As_int(obj3);
26637 if (PyErr_Occurred()) SWIG_fail;
26638 {
26639 PyThreadState* __tstate = wxPyBeginAllowThreads();
26640 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26641
26642 wxPyEndAllowThreads(__tstate);
26643 if (PyErr_Occurred()) SWIG_fail;
26644 }
26645 resultobj = SWIG_From_int((int)result);
26646 return resultobj;
26647 fail:
26648 return NULL;
26649 }
26650
26651
26652 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26653 PyObject *resultobj;
26654 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26655 int arg2 ;
26656 int arg3 ;
26657 int arg4 ;
26658 int result;
26659 PyObject * obj0 = 0 ;
26660 PyObject * obj1 = 0 ;
26661 PyObject * obj2 = 0 ;
26662 PyObject * obj3 = 0 ;
26663 char *kwnames[] = {
26664 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26665 };
26666
26667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26670 arg2 = (int)SWIG_As_int(obj1);
26671 if (PyErr_Occurred()) SWIG_fail;
26672 arg3 = (int)SWIG_As_int(obj2);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 arg4 = (int)SWIG_As_int(obj3);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 {
26677 PyThreadState* __tstate = wxPyBeginAllowThreads();
26678 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26679
26680 wxPyEndAllowThreads(__tstate);
26681 if (PyErr_Occurred()) SWIG_fail;
26682 }
26683 resultobj = SWIG_From_int((int)result);
26684 return resultobj;
26685 fail:
26686 return NULL;
26687 }
26688
26689
26690 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26691 PyObject *resultobj;
26692 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26693 PyObject * obj0 = 0 ;
26694 char *kwnames[] = {
26695 (char *) "self", NULL
26696 };
26697
26698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26701 {
26702 PyThreadState* __tstate = wxPyBeginAllowThreads();
26703 (arg1)->base_OnLeave();
26704
26705 wxPyEndAllowThreads(__tstate);
26706 if (PyErr_Occurred()) SWIG_fail;
26707 }
26708 Py_INCREF(Py_None); resultobj = Py_None;
26709 return resultobj;
26710 fail:
26711 return NULL;
26712 }
26713
26714
26715 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26716 PyObject *resultobj;
26717 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26718 int arg2 ;
26719 int arg3 ;
26720 bool result;
26721 PyObject * obj0 = 0 ;
26722 PyObject * obj1 = 0 ;
26723 PyObject * obj2 = 0 ;
26724 char *kwnames[] = {
26725 (char *) "self",(char *) "x",(char *) "y", NULL
26726 };
26727
26728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26731 arg2 = (int)SWIG_As_int(obj1);
26732 if (PyErr_Occurred()) SWIG_fail;
26733 arg3 = (int)SWIG_As_int(obj2);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 {
26736 PyThreadState* __tstate = wxPyBeginAllowThreads();
26737 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26738
26739 wxPyEndAllowThreads(__tstate);
26740 if (PyErr_Occurred()) SWIG_fail;
26741 }
26742 {
26743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26744 }
26745 return resultobj;
26746 fail:
26747 return NULL;
26748 }
26749
26750
26751 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26752 PyObject *resultobj;
26753 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26754 bool result;
26755 PyObject * obj0 = 0 ;
26756 char *kwnames[] = {
26757 (char *) "self", NULL
26758 };
26759
26760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26763 {
26764 PyThreadState* __tstate = wxPyBeginAllowThreads();
26765 result = (bool)(arg1)->GetData();
26766
26767 wxPyEndAllowThreads(__tstate);
26768 if (PyErr_Occurred()) SWIG_fail;
26769 }
26770 {
26771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26772 }
26773 return resultobj;
26774 fail:
26775 return NULL;
26776 }
26777
26778
26779 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
26780 PyObject *obj;
26781 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26782 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26783 Py_INCREF(obj);
26784 return Py_BuildValue((char *)"");
26785 }
26786 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26787 PyObject *resultobj;
26788 wxPyTextDropTarget *result;
26789 char *kwnames[] = {
26790 NULL
26791 };
26792
26793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26794 {
26795 PyThreadState* __tstate = wxPyBeginAllowThreads();
26796 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26797
26798 wxPyEndAllowThreads(__tstate);
26799 if (PyErr_Occurred()) SWIG_fail;
26800 }
26801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26802 return resultobj;
26803 fail:
26804 return NULL;
26805 }
26806
26807
26808 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26809 PyObject *resultobj;
26810 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26811 PyObject *arg2 = (PyObject *) 0 ;
26812 PyObject *arg3 = (PyObject *) 0 ;
26813 PyObject * obj0 = 0 ;
26814 PyObject * obj1 = 0 ;
26815 PyObject * obj2 = 0 ;
26816 char *kwnames[] = {
26817 (char *) "self",(char *) "self",(char *) "_class", NULL
26818 };
26819
26820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26823 arg2 = obj1;
26824 arg3 = obj2;
26825 {
26826 PyThreadState* __tstate = wxPyBeginAllowThreads();
26827 (arg1)->_setCallbackInfo(arg2,arg3);
26828
26829 wxPyEndAllowThreads(__tstate);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 Py_INCREF(Py_None); resultobj = Py_None;
26833 return resultobj;
26834 fail:
26835 return NULL;
26836 }
26837
26838
26839 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26840 PyObject *resultobj;
26841 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26842 int arg2 ;
26843 int arg3 ;
26844 int arg4 ;
26845 int result;
26846 PyObject * obj0 = 0 ;
26847 PyObject * obj1 = 0 ;
26848 PyObject * obj2 = 0 ;
26849 PyObject * obj3 = 0 ;
26850 char *kwnames[] = {
26851 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26852 };
26853
26854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26857 arg2 = (int)SWIG_As_int(obj1);
26858 if (PyErr_Occurred()) SWIG_fail;
26859 arg3 = (int)SWIG_As_int(obj2);
26860 if (PyErr_Occurred()) SWIG_fail;
26861 arg4 = (int)SWIG_As_int(obj3);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 {
26864 PyThreadState* __tstate = wxPyBeginAllowThreads();
26865 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26866
26867 wxPyEndAllowThreads(__tstate);
26868 if (PyErr_Occurred()) SWIG_fail;
26869 }
26870 resultobj = SWIG_From_int((int)result);
26871 return resultobj;
26872 fail:
26873 return NULL;
26874 }
26875
26876
26877 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26878 PyObject *resultobj;
26879 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26880 int arg2 ;
26881 int arg3 ;
26882 int arg4 ;
26883 int result;
26884 PyObject * obj0 = 0 ;
26885 PyObject * obj1 = 0 ;
26886 PyObject * obj2 = 0 ;
26887 PyObject * obj3 = 0 ;
26888 char *kwnames[] = {
26889 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26890 };
26891
26892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26895 arg2 = (int)SWIG_As_int(obj1);
26896 if (PyErr_Occurred()) SWIG_fail;
26897 arg3 = (int)SWIG_As_int(obj2);
26898 if (PyErr_Occurred()) SWIG_fail;
26899 arg4 = (int)SWIG_As_int(obj3);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 {
26902 PyThreadState* __tstate = wxPyBeginAllowThreads();
26903 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26904
26905 wxPyEndAllowThreads(__tstate);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 resultobj = SWIG_From_int((int)result);
26909 return resultobj;
26910 fail:
26911 return NULL;
26912 }
26913
26914
26915 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26916 PyObject *resultobj;
26917 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26918 PyObject * obj0 = 0 ;
26919 char *kwnames[] = {
26920 (char *) "self", NULL
26921 };
26922
26923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26926 {
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 (arg1)->base_OnLeave();
26929
26930 wxPyEndAllowThreads(__tstate);
26931 if (PyErr_Occurred()) SWIG_fail;
26932 }
26933 Py_INCREF(Py_None); resultobj = Py_None;
26934 return resultobj;
26935 fail:
26936 return NULL;
26937 }
26938
26939
26940 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26941 PyObject *resultobj;
26942 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26943 int arg2 ;
26944 int arg3 ;
26945 bool result;
26946 PyObject * obj0 = 0 ;
26947 PyObject * obj1 = 0 ;
26948 PyObject * obj2 = 0 ;
26949 char *kwnames[] = {
26950 (char *) "self",(char *) "x",(char *) "y", NULL
26951 };
26952
26953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26956 arg2 = (int)SWIG_As_int(obj1);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 arg3 = (int)SWIG_As_int(obj2);
26959 if (PyErr_Occurred()) SWIG_fail;
26960 {
26961 PyThreadState* __tstate = wxPyBeginAllowThreads();
26962 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26963
26964 wxPyEndAllowThreads(__tstate);
26965 if (PyErr_Occurred()) SWIG_fail;
26966 }
26967 {
26968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26969 }
26970 return resultobj;
26971 fail:
26972 return NULL;
26973 }
26974
26975
26976 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
26977 PyObject *resultobj;
26978 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26979 int arg2 ;
26980 int arg3 ;
26981 int arg4 ;
26982 int result;
26983 PyObject * obj0 = 0 ;
26984 PyObject * obj1 = 0 ;
26985 PyObject * obj2 = 0 ;
26986 PyObject * obj3 = 0 ;
26987 char *kwnames[] = {
26988 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26989 };
26990
26991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26994 arg2 = (int)SWIG_As_int(obj1);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 arg3 = (int)SWIG_As_int(obj2);
26997 if (PyErr_Occurred()) SWIG_fail;
26998 arg4 = (int)SWIG_As_int(obj3);
26999 if (PyErr_Occurred()) SWIG_fail;
27000 {
27001 PyThreadState* __tstate = wxPyBeginAllowThreads();
27002 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27003
27004 wxPyEndAllowThreads(__tstate);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
27007 resultobj = SWIG_From_int((int)result);
27008 return resultobj;
27009 fail:
27010 return NULL;
27011 }
27012
27013
27014 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
27015 PyObject *obj;
27016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27017 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
27018 Py_INCREF(obj);
27019 return Py_BuildValue((char *)"");
27020 }
27021 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
27022 PyObject *resultobj;
27023 wxPyFileDropTarget *result;
27024 char *kwnames[] = {
27025 NULL
27026 };
27027
27028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
27029 {
27030 PyThreadState* __tstate = wxPyBeginAllowThreads();
27031 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
27032
27033 wxPyEndAllowThreads(__tstate);
27034 if (PyErr_Occurred()) SWIG_fail;
27035 }
27036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
27037 return resultobj;
27038 fail:
27039 return NULL;
27040 }
27041
27042
27043 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
27044 PyObject *resultobj;
27045 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27046 PyObject *arg2 = (PyObject *) 0 ;
27047 PyObject *arg3 = (PyObject *) 0 ;
27048 PyObject * obj0 = 0 ;
27049 PyObject * obj1 = 0 ;
27050 PyObject * obj2 = 0 ;
27051 char *kwnames[] = {
27052 (char *) "self",(char *) "self",(char *) "_class", NULL
27053 };
27054
27055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27058 arg2 = obj1;
27059 arg3 = obj2;
27060 {
27061 PyThreadState* __tstate = wxPyBeginAllowThreads();
27062 (arg1)->_setCallbackInfo(arg2,arg3);
27063
27064 wxPyEndAllowThreads(__tstate);
27065 if (PyErr_Occurred()) SWIG_fail;
27066 }
27067 Py_INCREF(Py_None); resultobj = Py_None;
27068 return resultobj;
27069 fail:
27070 return NULL;
27071 }
27072
27073
27074 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
27075 PyObject *resultobj;
27076 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27077 int arg2 ;
27078 int arg3 ;
27079 int arg4 ;
27080 int result;
27081 PyObject * obj0 = 0 ;
27082 PyObject * obj1 = 0 ;
27083 PyObject * obj2 = 0 ;
27084 PyObject * obj3 = 0 ;
27085 char *kwnames[] = {
27086 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27087 };
27088
27089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27092 arg2 = (int)SWIG_As_int(obj1);
27093 if (PyErr_Occurred()) SWIG_fail;
27094 arg3 = (int)SWIG_As_int(obj2);
27095 if (PyErr_Occurred()) SWIG_fail;
27096 arg4 = (int)SWIG_As_int(obj3);
27097 if (PyErr_Occurred()) SWIG_fail;
27098 {
27099 PyThreadState* __tstate = wxPyBeginAllowThreads();
27100 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
27101
27102 wxPyEndAllowThreads(__tstate);
27103 if (PyErr_Occurred()) SWIG_fail;
27104 }
27105 resultobj = SWIG_From_int((int)result);
27106 return resultobj;
27107 fail:
27108 return NULL;
27109 }
27110
27111
27112 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
27113 PyObject *resultobj;
27114 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27115 int arg2 ;
27116 int arg3 ;
27117 int arg4 ;
27118 int result;
27119 PyObject * obj0 = 0 ;
27120 PyObject * obj1 = 0 ;
27121 PyObject * obj2 = 0 ;
27122 PyObject * obj3 = 0 ;
27123 char *kwnames[] = {
27124 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27125 };
27126
27127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27130 arg2 = (int)SWIG_As_int(obj1);
27131 if (PyErr_Occurred()) SWIG_fail;
27132 arg3 = (int)SWIG_As_int(obj2);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 arg4 = (int)SWIG_As_int(obj3);
27135 if (PyErr_Occurred()) SWIG_fail;
27136 {
27137 PyThreadState* __tstate = wxPyBeginAllowThreads();
27138 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27139
27140 wxPyEndAllowThreads(__tstate);
27141 if (PyErr_Occurred()) SWIG_fail;
27142 }
27143 resultobj = SWIG_From_int((int)result);
27144 return resultobj;
27145 fail:
27146 return NULL;
27147 }
27148
27149
27150 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
27151 PyObject *resultobj;
27152 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27153 PyObject * obj0 = 0 ;
27154 char *kwnames[] = {
27155 (char *) "self", NULL
27156 };
27157
27158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27161 {
27162 PyThreadState* __tstate = wxPyBeginAllowThreads();
27163 (arg1)->base_OnLeave();
27164
27165 wxPyEndAllowThreads(__tstate);
27166 if (PyErr_Occurred()) SWIG_fail;
27167 }
27168 Py_INCREF(Py_None); resultobj = Py_None;
27169 return resultobj;
27170 fail:
27171 return NULL;
27172 }
27173
27174
27175 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
27176 PyObject *resultobj;
27177 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27178 int arg2 ;
27179 int arg3 ;
27180 bool result;
27181 PyObject * obj0 = 0 ;
27182 PyObject * obj1 = 0 ;
27183 PyObject * obj2 = 0 ;
27184 char *kwnames[] = {
27185 (char *) "self",(char *) "x",(char *) "y", NULL
27186 };
27187
27188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27191 arg2 = (int)SWIG_As_int(obj1);
27192 if (PyErr_Occurred()) SWIG_fail;
27193 arg3 = (int)SWIG_As_int(obj2);
27194 if (PyErr_Occurred()) SWIG_fail;
27195 {
27196 PyThreadState* __tstate = wxPyBeginAllowThreads();
27197 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27198
27199 wxPyEndAllowThreads(__tstate);
27200 if (PyErr_Occurred()) SWIG_fail;
27201 }
27202 {
27203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27204 }
27205 return resultobj;
27206 fail:
27207 return NULL;
27208 }
27209
27210
27211 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
27212 PyObject *resultobj;
27213 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27214 int arg2 ;
27215 int arg3 ;
27216 int arg4 ;
27217 int result;
27218 PyObject * obj0 = 0 ;
27219 PyObject * obj1 = 0 ;
27220 PyObject * obj2 = 0 ;
27221 PyObject * obj3 = 0 ;
27222 char *kwnames[] = {
27223 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27224 };
27225
27226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27229 arg2 = (int)SWIG_As_int(obj1);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 arg3 = (int)SWIG_As_int(obj2);
27232 if (PyErr_Occurred()) SWIG_fail;
27233 arg4 = (int)SWIG_As_int(obj3);
27234 if (PyErr_Occurred()) SWIG_fail;
27235 {
27236 PyThreadState* __tstate = wxPyBeginAllowThreads();
27237 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27238
27239 wxPyEndAllowThreads(__tstate);
27240 if (PyErr_Occurred()) SWIG_fail;
27241 }
27242 resultobj = SWIG_From_int((int)result);
27243 return resultobj;
27244 fail:
27245 return NULL;
27246 }
27247
27248
27249 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
27250 PyObject *obj;
27251 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27252 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27253 Py_INCREF(obj);
27254 return Py_BuildValue((char *)"");
27255 }
27256 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27257 PyObject *resultobj;
27258 wxClipboard *result;
27259 char *kwnames[] = {
27260 NULL
27261 };
27262
27263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27264 {
27265 PyThreadState* __tstate = wxPyBeginAllowThreads();
27266 result = (wxClipboard *)new wxClipboard();
27267
27268 wxPyEndAllowThreads(__tstate);
27269 if (PyErr_Occurred()) SWIG_fail;
27270 }
27271 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27272 return resultobj;
27273 fail:
27274 return NULL;
27275 }
27276
27277
27278 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27279 PyObject *resultobj;
27280 wxClipboard *arg1 = (wxClipboard *) 0 ;
27281 PyObject * obj0 = 0 ;
27282 char *kwnames[] = {
27283 (char *) "self", NULL
27284 };
27285
27286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27289 {
27290 PyThreadState* __tstate = wxPyBeginAllowThreads();
27291 delete arg1;
27292
27293 wxPyEndAllowThreads(__tstate);
27294 if (PyErr_Occurred()) SWIG_fail;
27295 }
27296 Py_INCREF(Py_None); resultobj = Py_None;
27297 return resultobj;
27298 fail:
27299 return NULL;
27300 }
27301
27302
27303 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
27304 PyObject *resultobj;
27305 wxClipboard *arg1 = (wxClipboard *) 0 ;
27306 bool result;
27307 PyObject * obj0 = 0 ;
27308 char *kwnames[] = {
27309 (char *) "self", NULL
27310 };
27311
27312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 result = (bool)(arg1)->Open();
27318
27319 wxPyEndAllowThreads(__tstate);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 {
27323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27324 }
27325 return resultobj;
27326 fail:
27327 return NULL;
27328 }
27329
27330
27331 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
27332 PyObject *resultobj;
27333 wxClipboard *arg1 = (wxClipboard *) 0 ;
27334 PyObject * obj0 = 0 ;
27335 char *kwnames[] = {
27336 (char *) "self", NULL
27337 };
27338
27339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27342 {
27343 PyThreadState* __tstate = wxPyBeginAllowThreads();
27344 (arg1)->Close();
27345
27346 wxPyEndAllowThreads(__tstate);
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 Py_INCREF(Py_None); resultobj = Py_None;
27350 return resultobj;
27351 fail:
27352 return NULL;
27353 }
27354
27355
27356 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
27357 PyObject *resultobj;
27358 wxClipboard *arg1 = (wxClipboard *) 0 ;
27359 bool result;
27360 PyObject * obj0 = 0 ;
27361 char *kwnames[] = {
27362 (char *) "self", NULL
27363 };
27364
27365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27368 {
27369 PyThreadState* __tstate = wxPyBeginAllowThreads();
27370 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27371
27372 wxPyEndAllowThreads(__tstate);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 }
27375 {
27376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27377 }
27378 return resultobj;
27379 fail:
27380 return NULL;
27381 }
27382
27383
27384 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
27385 PyObject *resultobj;
27386 wxClipboard *arg1 = (wxClipboard *) 0 ;
27387 wxDataObject *arg2 = (wxDataObject *) 0 ;
27388 bool result;
27389 PyObject * obj0 = 0 ;
27390 PyObject * obj1 = 0 ;
27391 char *kwnames[] = {
27392 (char *) "self",(char *) "data", NULL
27393 };
27394
27395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27399 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27400 {
27401 PyThreadState* __tstate = wxPyBeginAllowThreads();
27402 result = (bool)(arg1)->AddData(arg2);
27403
27404 wxPyEndAllowThreads(__tstate);
27405 if (PyErr_Occurred()) SWIG_fail;
27406 }
27407 {
27408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27409 }
27410 return resultobj;
27411 fail:
27412 return NULL;
27413 }
27414
27415
27416 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
27417 PyObject *resultobj;
27418 wxClipboard *arg1 = (wxClipboard *) 0 ;
27419 wxDataObject *arg2 = (wxDataObject *) 0 ;
27420 bool result;
27421 PyObject * obj0 = 0 ;
27422 PyObject * obj1 = 0 ;
27423 char *kwnames[] = {
27424 (char *) "self",(char *) "data", NULL
27425 };
27426
27427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27430 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27431 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27432 {
27433 PyThreadState* __tstate = wxPyBeginAllowThreads();
27434 result = (bool)(arg1)->SetData(arg2);
27435
27436 wxPyEndAllowThreads(__tstate);
27437 if (PyErr_Occurred()) SWIG_fail;
27438 }
27439 {
27440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27441 }
27442 return resultobj;
27443 fail:
27444 return NULL;
27445 }
27446
27447
27448 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
27449 PyObject *resultobj;
27450 wxClipboard *arg1 = (wxClipboard *) 0 ;
27451 wxDataFormat *arg2 = 0 ;
27452 bool result;
27453 PyObject * obj0 = 0 ;
27454 PyObject * obj1 = 0 ;
27455 char *kwnames[] = {
27456 (char *) "self",(char *) "format", NULL
27457 };
27458
27459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27463 SWIG_POINTER_EXCEPTION | 0)) == -1)
27464 SWIG_fail;
27465 if (arg2 == NULL) {
27466 PyErr_SetString(PyExc_TypeError,"null reference");
27467 SWIG_fail;
27468 }
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27472
27473 wxPyEndAllowThreads(__tstate);
27474 if (PyErr_Occurred()) SWIG_fail;
27475 }
27476 {
27477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27478 }
27479 return resultobj;
27480 fail:
27481 return NULL;
27482 }
27483
27484
27485 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
27486 PyObject *resultobj;
27487 wxClipboard *arg1 = (wxClipboard *) 0 ;
27488 wxDataObject *arg2 = 0 ;
27489 bool result;
27490 PyObject * obj0 = 0 ;
27491 PyObject * obj1 = 0 ;
27492 char *kwnames[] = {
27493 (char *) "self",(char *) "data", NULL
27494 };
27495
27496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27500 SWIG_POINTER_EXCEPTION | 0)) == -1)
27501 SWIG_fail;
27502 if (arg2 == NULL) {
27503 PyErr_SetString(PyExc_TypeError,"null reference");
27504 SWIG_fail;
27505 }
27506 {
27507 PyThreadState* __tstate = wxPyBeginAllowThreads();
27508 result = (bool)(arg1)->GetData(*arg2);
27509
27510 wxPyEndAllowThreads(__tstate);
27511 if (PyErr_Occurred()) SWIG_fail;
27512 }
27513 {
27514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27515 }
27516 return resultobj;
27517 fail:
27518 return NULL;
27519 }
27520
27521
27522 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
27523 PyObject *resultobj;
27524 wxClipboard *arg1 = (wxClipboard *) 0 ;
27525 PyObject * obj0 = 0 ;
27526 char *kwnames[] = {
27527 (char *) "self", NULL
27528 };
27529
27530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27533 {
27534 PyThreadState* __tstate = wxPyBeginAllowThreads();
27535 (arg1)->Clear();
27536
27537 wxPyEndAllowThreads(__tstate);
27538 if (PyErr_Occurred()) SWIG_fail;
27539 }
27540 Py_INCREF(Py_None); resultobj = Py_None;
27541 return resultobj;
27542 fail:
27543 return NULL;
27544 }
27545
27546
27547 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
27548 PyObject *resultobj;
27549 wxClipboard *arg1 = (wxClipboard *) 0 ;
27550 bool result;
27551 PyObject * obj0 = 0 ;
27552 char *kwnames[] = {
27553 (char *) "self", NULL
27554 };
27555
27556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27559 {
27560 PyThreadState* __tstate = wxPyBeginAllowThreads();
27561 result = (bool)(arg1)->Flush();
27562
27563 wxPyEndAllowThreads(__tstate);
27564 if (PyErr_Occurred()) SWIG_fail;
27565 }
27566 {
27567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27568 }
27569 return resultobj;
27570 fail:
27571 return NULL;
27572 }
27573
27574
27575 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
27576 PyObject *resultobj;
27577 wxClipboard *arg1 = (wxClipboard *) 0 ;
27578 bool arg2 = (bool) true ;
27579 PyObject * obj0 = 0 ;
27580 PyObject * obj1 = 0 ;
27581 char *kwnames[] = {
27582 (char *) "self",(char *) "primary", NULL
27583 };
27584
27585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27588 if (obj1) {
27589 arg2 = (bool)SWIG_As_bool(obj1);
27590 if (PyErr_Occurred()) SWIG_fail;
27591 }
27592 {
27593 PyThreadState* __tstate = wxPyBeginAllowThreads();
27594 (arg1)->UsePrimarySelection(arg2);
27595
27596 wxPyEndAllowThreads(__tstate);
27597 if (PyErr_Occurred()) SWIG_fail;
27598 }
27599 Py_INCREF(Py_None); resultobj = Py_None;
27600 return resultobj;
27601 fail:
27602 return NULL;
27603 }
27604
27605
27606 static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
27607 PyObject *resultobj;
27608 wxClipboard *result;
27609 char *kwnames[] = {
27610 NULL
27611 };
27612
27613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27614 {
27615 PyThreadState* __tstate = wxPyBeginAllowThreads();
27616 result = (wxClipboard *)wxClipboard::Get();
27617
27618 wxPyEndAllowThreads(__tstate);
27619 if (PyErr_Occurred()) SWIG_fail;
27620 }
27621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27622 return resultobj;
27623 fail:
27624 return NULL;
27625 }
27626
27627
27628 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
27629 PyObject *obj;
27630 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27631 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27632 Py_INCREF(obj);
27633 return Py_BuildValue((char *)"");
27634 }
27635 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27636 PyObject *resultobj;
27637 wxClipboard *arg1 = (wxClipboard *) NULL ;
27638 wxClipboardLocker *result;
27639 PyObject * obj0 = 0 ;
27640 char *kwnames[] = {
27641 (char *) "clipboard", NULL
27642 };
27643
27644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27645 if (obj0) {
27646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27648 }
27649 {
27650 PyThreadState* __tstate = wxPyBeginAllowThreads();
27651 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27652
27653 wxPyEndAllowThreads(__tstate);
27654 if (PyErr_Occurred()) SWIG_fail;
27655 }
27656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27657 return resultobj;
27658 fail:
27659 return NULL;
27660 }
27661
27662
27663 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27664 PyObject *resultobj;
27665 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27666 PyObject * obj0 = 0 ;
27667 char *kwnames[] = {
27668 (char *) "self", NULL
27669 };
27670
27671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27674 {
27675 PyThreadState* __tstate = wxPyBeginAllowThreads();
27676 delete arg1;
27677
27678 wxPyEndAllowThreads(__tstate);
27679 if (PyErr_Occurred()) SWIG_fail;
27680 }
27681 Py_INCREF(Py_None); resultobj = Py_None;
27682 return resultobj;
27683 fail:
27684 return NULL;
27685 }
27686
27687
27688 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
27689 PyObject *resultobj;
27690 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27691 bool result;
27692 PyObject * obj0 = 0 ;
27693 char *kwnames[] = {
27694 (char *) "self", NULL
27695 };
27696
27697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27700 {
27701 PyThreadState* __tstate = wxPyBeginAllowThreads();
27702 result = (bool)wxClipboardLocker___nonzero__(arg1);
27703
27704 wxPyEndAllowThreads(__tstate);
27705 if (PyErr_Occurred()) SWIG_fail;
27706 }
27707 {
27708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27709 }
27710 return resultobj;
27711 fail:
27712 return NULL;
27713 }
27714
27715
27716 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
27717 PyObject *obj;
27718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27719 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27720 Py_INCREF(obj);
27721 return Py_BuildValue((char *)"");
27722 }
27723 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27724 PyObject *resultobj;
27725 int arg1 = (int) 0 ;
27726 int arg2 = (int) 0 ;
27727 int arg3 = (int) 0 ;
27728 int arg4 = (int) 0 ;
27729 wxVideoMode *result;
27730 PyObject * obj0 = 0 ;
27731 PyObject * obj1 = 0 ;
27732 PyObject * obj2 = 0 ;
27733 PyObject * obj3 = 0 ;
27734 char *kwnames[] = {
27735 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27736 };
27737
27738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27739 if (obj0) {
27740 arg1 = (int)SWIG_As_int(obj0);
27741 if (PyErr_Occurred()) SWIG_fail;
27742 }
27743 if (obj1) {
27744 arg2 = (int)SWIG_As_int(obj1);
27745 if (PyErr_Occurred()) SWIG_fail;
27746 }
27747 if (obj2) {
27748 arg3 = (int)SWIG_As_int(obj2);
27749 if (PyErr_Occurred()) SWIG_fail;
27750 }
27751 if (obj3) {
27752 arg4 = (int)SWIG_As_int(obj3);
27753 if (PyErr_Occurred()) SWIG_fail;
27754 }
27755 {
27756 PyThreadState* __tstate = wxPyBeginAllowThreads();
27757 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27758
27759 wxPyEndAllowThreads(__tstate);
27760 if (PyErr_Occurred()) SWIG_fail;
27761 }
27762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27763 return resultobj;
27764 fail:
27765 return NULL;
27766 }
27767
27768
27769 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27770 PyObject *resultobj;
27771 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27772 PyObject * obj0 = 0 ;
27773 char *kwnames[] = {
27774 (char *) "self", NULL
27775 };
27776
27777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27780 {
27781 PyThreadState* __tstate = wxPyBeginAllowThreads();
27782 delete arg1;
27783
27784 wxPyEndAllowThreads(__tstate);
27785 if (PyErr_Occurred()) SWIG_fail;
27786 }
27787 Py_INCREF(Py_None); resultobj = Py_None;
27788 return resultobj;
27789 fail:
27790 return NULL;
27791 }
27792
27793
27794 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
27795 PyObject *resultobj;
27796 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27797 wxVideoMode *arg2 = 0 ;
27798 bool result;
27799 PyObject * obj0 = 0 ;
27800 PyObject * obj1 = 0 ;
27801 char *kwnames[] = {
27802 (char *) "self",(char *) "other", NULL
27803 };
27804
27805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27808 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27809 SWIG_POINTER_EXCEPTION | 0)) == -1)
27810 SWIG_fail;
27811 if (arg2 == NULL) {
27812 PyErr_SetString(PyExc_TypeError,"null reference");
27813 SWIG_fail;
27814 }
27815 {
27816 PyThreadState* __tstate = wxPyBeginAllowThreads();
27817 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27818
27819 wxPyEndAllowThreads(__tstate);
27820 if (PyErr_Occurred()) SWIG_fail;
27821 }
27822 {
27823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27824 }
27825 return resultobj;
27826 fail:
27827 return NULL;
27828 }
27829
27830
27831 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27832 PyObject *resultobj;
27833 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27834 int result;
27835 PyObject * obj0 = 0 ;
27836 char *kwnames[] = {
27837 (char *) "self", NULL
27838 };
27839
27840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27843 {
27844 PyThreadState* __tstate = wxPyBeginAllowThreads();
27845 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27846
27847 wxPyEndAllowThreads(__tstate);
27848 if (PyErr_Occurred()) SWIG_fail;
27849 }
27850 resultobj = SWIG_From_int((int)result);
27851 return resultobj;
27852 fail:
27853 return NULL;
27854 }
27855
27856
27857 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
27858 PyObject *resultobj;
27859 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27860 int result;
27861 PyObject * obj0 = 0 ;
27862 char *kwnames[] = {
27863 (char *) "self", NULL
27864 };
27865
27866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27872
27873 wxPyEndAllowThreads(__tstate);
27874 if (PyErr_Occurred()) SWIG_fail;
27875 }
27876 resultobj = SWIG_From_int((int)result);
27877 return resultobj;
27878 fail:
27879 return NULL;
27880 }
27881
27882
27883 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
27884 PyObject *resultobj;
27885 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27886 int result;
27887 PyObject * obj0 = 0 ;
27888 char *kwnames[] = {
27889 (char *) "self", NULL
27890 };
27891
27892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27895 {
27896 PyThreadState* __tstate = wxPyBeginAllowThreads();
27897 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27898
27899 wxPyEndAllowThreads(__tstate);
27900 if (PyErr_Occurred()) SWIG_fail;
27901 }
27902 resultobj = SWIG_From_int((int)result);
27903 return resultobj;
27904 fail:
27905 return NULL;
27906 }
27907
27908
27909 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
27910 PyObject *resultobj;
27911 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27912 bool result;
27913 PyObject * obj0 = 0 ;
27914 char *kwnames[] = {
27915 (char *) "self", NULL
27916 };
27917
27918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27921 {
27922 PyThreadState* __tstate = wxPyBeginAllowThreads();
27923 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27924
27925 wxPyEndAllowThreads(__tstate);
27926 if (PyErr_Occurred()) SWIG_fail;
27927 }
27928 {
27929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27930 }
27931 return resultobj;
27932 fail:
27933 return NULL;
27934 }
27935
27936
27937 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
27938 PyObject *resultobj;
27939 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27940 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27941 bool result;
27942 PyObject * obj0 = 0 ;
27943 PyObject * obj1 = 0 ;
27944 char *kwnames[] = {
27945 (char *) "self",(char *) "other", NULL
27946 };
27947
27948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27953 {
27954 PyThreadState* __tstate = wxPyBeginAllowThreads();
27955 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27956
27957 wxPyEndAllowThreads(__tstate);
27958 if (PyErr_Occurred()) SWIG_fail;
27959 }
27960 {
27961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27962 }
27963 return resultobj;
27964 fail:
27965 return NULL;
27966 }
27967
27968
27969 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
27970 PyObject *resultobj;
27971 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27972 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27973 bool result;
27974 PyObject * obj0 = 0 ;
27975 PyObject * obj1 = 0 ;
27976 char *kwnames[] = {
27977 (char *) "self",(char *) "other", NULL
27978 };
27979
27980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27983 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27985 {
27986 PyThreadState* __tstate = wxPyBeginAllowThreads();
27987 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27988
27989 wxPyEndAllowThreads(__tstate);
27990 if (PyErr_Occurred()) SWIG_fail;
27991 }
27992 {
27993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27994 }
27995 return resultobj;
27996 fail:
27997 return NULL;
27998 }
27999
28000
28001 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
28002 PyObject *resultobj;
28003 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28004 int arg2 ;
28005 PyObject * obj0 = 0 ;
28006 PyObject * obj1 = 0 ;
28007 char *kwnames[] = {
28008 (char *) "self",(char *) "w", NULL
28009 };
28010
28011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
28012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28014 arg2 = (int)SWIG_As_int(obj1);
28015 if (PyErr_Occurred()) SWIG_fail;
28016 if (arg1) (arg1)->w = arg2;
28017
28018 Py_INCREF(Py_None); resultobj = Py_None;
28019 return resultobj;
28020 fail:
28021 return NULL;
28022 }
28023
28024
28025 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
28026 PyObject *resultobj;
28027 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28028 int result;
28029 PyObject * obj0 = 0 ;
28030 char *kwnames[] = {
28031 (char *) "self", NULL
28032 };
28033
28034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
28035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28037 result = (int) ((arg1)->w);
28038
28039 resultobj = SWIG_From_int((int)result);
28040 return resultobj;
28041 fail:
28042 return NULL;
28043 }
28044
28045
28046 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
28047 PyObject *resultobj;
28048 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28049 int arg2 ;
28050 PyObject * obj0 = 0 ;
28051 PyObject * obj1 = 0 ;
28052 char *kwnames[] = {
28053 (char *) "self",(char *) "h", NULL
28054 };
28055
28056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
28057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28059 arg2 = (int)SWIG_As_int(obj1);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 if (arg1) (arg1)->h = arg2;
28062
28063 Py_INCREF(Py_None); resultobj = Py_None;
28064 return resultobj;
28065 fail:
28066 return NULL;
28067 }
28068
28069
28070 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
28071 PyObject *resultobj;
28072 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28073 int result;
28074 PyObject * obj0 = 0 ;
28075 char *kwnames[] = {
28076 (char *) "self", NULL
28077 };
28078
28079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
28080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28082 result = (int) ((arg1)->h);
28083
28084 resultobj = SWIG_From_int((int)result);
28085 return resultobj;
28086 fail:
28087 return NULL;
28088 }
28089
28090
28091 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
28092 PyObject *resultobj;
28093 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28094 int arg2 ;
28095 PyObject * obj0 = 0 ;
28096 PyObject * obj1 = 0 ;
28097 char *kwnames[] = {
28098 (char *) "self",(char *) "bpp", NULL
28099 };
28100
28101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
28102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28104 arg2 = (int)SWIG_As_int(obj1);
28105 if (PyErr_Occurred()) SWIG_fail;
28106 if (arg1) (arg1)->bpp = arg2;
28107
28108 Py_INCREF(Py_None); resultobj = Py_None;
28109 return resultobj;
28110 fail:
28111 return NULL;
28112 }
28113
28114
28115 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
28116 PyObject *resultobj;
28117 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28118 int result;
28119 PyObject * obj0 = 0 ;
28120 char *kwnames[] = {
28121 (char *) "self", NULL
28122 };
28123
28124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
28125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28127 result = (int) ((arg1)->bpp);
28128
28129 resultobj = SWIG_From_int((int)result);
28130 return resultobj;
28131 fail:
28132 return NULL;
28133 }
28134
28135
28136 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
28137 PyObject *resultobj;
28138 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28139 int arg2 ;
28140 PyObject * obj0 = 0 ;
28141 PyObject * obj1 = 0 ;
28142 char *kwnames[] = {
28143 (char *) "self",(char *) "refresh", NULL
28144 };
28145
28146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
28147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28149 arg2 = (int)SWIG_As_int(obj1);
28150 if (PyErr_Occurred()) SWIG_fail;
28151 if (arg1) (arg1)->refresh = arg2;
28152
28153 Py_INCREF(Py_None); resultobj = Py_None;
28154 return resultobj;
28155 fail:
28156 return NULL;
28157 }
28158
28159
28160 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
28161 PyObject *resultobj;
28162 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28163 int result;
28164 PyObject * obj0 = 0 ;
28165 char *kwnames[] = {
28166 (char *) "self", NULL
28167 };
28168
28169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
28170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28172 result = (int) ((arg1)->refresh);
28173
28174 resultobj = SWIG_From_int((int)result);
28175 return resultobj;
28176 fail:
28177 return NULL;
28178 }
28179
28180
28181 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
28182 PyObject *obj;
28183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28184 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
28185 Py_INCREF(obj);
28186 return Py_BuildValue((char *)"");
28187 }
28188 static int _wrap_DefaultVideoMode_set(PyObject *) {
28189 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28190 return 1;
28191 }
28192
28193
28194 static PyObject *_wrap_DefaultVideoMode_get() {
28195 PyObject *pyobj;
28196
28197 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28198 return pyobj;
28199 }
28200
28201
28202 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28203 PyObject *resultobj;
28204 size_t arg1 = (size_t) 0 ;
28205 wxDisplay *result;
28206 PyObject * obj0 = 0 ;
28207 char *kwnames[] = {
28208 (char *) "index", NULL
28209 };
28210
28211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28212 if (obj0) {
28213 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 {
28217 PyThreadState* __tstate = wxPyBeginAllowThreads();
28218 result = (wxDisplay *)new wxDisplay(arg1);
28219
28220 wxPyEndAllowThreads(__tstate);
28221 if (PyErr_Occurred()) SWIG_fail;
28222 }
28223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28224 return resultobj;
28225 fail:
28226 return NULL;
28227 }
28228
28229
28230 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28231 PyObject *resultobj;
28232 wxDisplay *arg1 = (wxDisplay *) 0 ;
28233 PyObject * obj0 = 0 ;
28234 char *kwnames[] = {
28235 (char *) "self", NULL
28236 };
28237
28238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28241 {
28242 PyThreadState* __tstate = wxPyBeginAllowThreads();
28243 delete arg1;
28244
28245 wxPyEndAllowThreads(__tstate);
28246 if (PyErr_Occurred()) SWIG_fail;
28247 }
28248 Py_INCREF(Py_None); resultobj = Py_None;
28249 return resultobj;
28250 fail:
28251 return NULL;
28252 }
28253
28254
28255 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
28256 PyObject *resultobj;
28257 size_t result;
28258 char *kwnames[] = {
28259 NULL
28260 };
28261
28262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28263 {
28264 PyThreadState* __tstate = wxPyBeginAllowThreads();
28265 result = (size_t)wxDisplay::GetCount();
28266
28267 wxPyEndAllowThreads(__tstate);
28268 if (PyErr_Occurred()) SWIG_fail;
28269 }
28270 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
28271 return resultobj;
28272 fail:
28273 return NULL;
28274 }
28275
28276
28277 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
28278 PyObject *resultobj;
28279 wxPoint *arg1 = 0 ;
28280 int result;
28281 wxPoint temp1 ;
28282 PyObject * obj0 = 0 ;
28283 char *kwnames[] = {
28284 (char *) "pt", NULL
28285 };
28286
28287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28288 {
28289 arg1 = &temp1;
28290 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28291 }
28292 {
28293 PyThreadState* __tstate = wxPyBeginAllowThreads();
28294 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28295
28296 wxPyEndAllowThreads(__tstate);
28297 if (PyErr_Occurred()) SWIG_fail;
28298 }
28299 resultobj = SWIG_From_int((int)result);
28300 return resultobj;
28301 fail:
28302 return NULL;
28303 }
28304
28305
28306 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28307 PyObject *resultobj;
28308 wxWindow *arg1 = (wxWindow *) 0 ;
28309 int result;
28310 PyObject * obj0 = 0 ;
28311 char *kwnames[] = {
28312 (char *) "window", NULL
28313 };
28314
28315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28318 {
28319 PyThreadState* __tstate = wxPyBeginAllowThreads();
28320 result = (int)Display_GetFromWindow(arg1);
28321
28322 wxPyEndAllowThreads(__tstate);
28323 if (PyErr_Occurred()) SWIG_fail;
28324 }
28325 resultobj = SWIG_From_int((int)result);
28326 return resultobj;
28327 fail:
28328 return NULL;
28329 }
28330
28331
28332 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
28333 PyObject *resultobj;
28334 wxDisplay *arg1 = (wxDisplay *) 0 ;
28335 bool result;
28336 PyObject * obj0 = 0 ;
28337 char *kwnames[] = {
28338 (char *) "self", NULL
28339 };
28340
28341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28344 {
28345 PyThreadState* __tstate = wxPyBeginAllowThreads();
28346 result = (bool)((wxDisplay const *)arg1)->IsOk();
28347
28348 wxPyEndAllowThreads(__tstate);
28349 if (PyErr_Occurred()) SWIG_fail;
28350 }
28351 {
28352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28353 }
28354 return resultobj;
28355 fail:
28356 return NULL;
28357 }
28358
28359
28360 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
28361 PyObject *resultobj;
28362 wxDisplay *arg1 = (wxDisplay *) 0 ;
28363 wxRect result;
28364 PyObject * obj0 = 0 ;
28365 char *kwnames[] = {
28366 (char *) "self", NULL
28367 };
28368
28369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28372 {
28373 PyThreadState* __tstate = wxPyBeginAllowThreads();
28374 result = ((wxDisplay const *)arg1)->GetGeometry();
28375
28376 wxPyEndAllowThreads(__tstate);
28377 if (PyErr_Occurred()) SWIG_fail;
28378 }
28379 {
28380 wxRect * resultptr;
28381 resultptr = new wxRect((wxRect &) result);
28382 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28383 }
28384 return resultobj;
28385 fail:
28386 return NULL;
28387 }
28388
28389
28390 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
28391 PyObject *resultobj;
28392 wxDisplay *arg1 = (wxDisplay *) 0 ;
28393 wxString result;
28394 PyObject * obj0 = 0 ;
28395 char *kwnames[] = {
28396 (char *) "self", NULL
28397 };
28398
28399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28402 {
28403 PyThreadState* __tstate = wxPyBeginAllowThreads();
28404 result = ((wxDisplay const *)arg1)->GetName();
28405
28406 wxPyEndAllowThreads(__tstate);
28407 if (PyErr_Occurred()) SWIG_fail;
28408 }
28409 {
28410 #if wxUSE_UNICODE
28411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28412 #else
28413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28414 #endif
28415 }
28416 return resultobj;
28417 fail:
28418 return NULL;
28419 }
28420
28421
28422 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
28423 PyObject *resultobj;
28424 wxDisplay *arg1 = (wxDisplay *) 0 ;
28425 bool result;
28426 PyObject * obj0 = 0 ;
28427 char *kwnames[] = {
28428 (char *) "self", NULL
28429 };
28430
28431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28434 {
28435 PyThreadState* __tstate = wxPyBeginAllowThreads();
28436 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28437
28438 wxPyEndAllowThreads(__tstate);
28439 if (PyErr_Occurred()) SWIG_fail;
28440 }
28441 {
28442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28443 }
28444 return resultobj;
28445 fail:
28446 return NULL;
28447 }
28448
28449
28450 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
28451 PyObject *resultobj;
28452 wxDisplay *arg1 = (wxDisplay *) 0 ;
28453 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28454 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28455 PyObject *result;
28456 PyObject * obj0 = 0 ;
28457 PyObject * obj1 = 0 ;
28458 char *kwnames[] = {
28459 (char *) "self",(char *) "mode", NULL
28460 };
28461
28462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28465 if (obj1) {
28466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28467 SWIG_POINTER_EXCEPTION | 0)) == -1)
28468 SWIG_fail;
28469 if (arg2 == NULL) {
28470 PyErr_SetString(PyExc_TypeError,"null reference");
28471 SWIG_fail;
28472 }
28473 }
28474 {
28475 PyThreadState* __tstate = wxPyBeginAllowThreads();
28476 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28477
28478 wxPyEndAllowThreads(__tstate);
28479 if (PyErr_Occurred()) SWIG_fail;
28480 }
28481 resultobj = result;
28482 return resultobj;
28483 fail:
28484 return NULL;
28485 }
28486
28487
28488 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
28489 PyObject *resultobj;
28490 wxDisplay *arg1 = (wxDisplay *) 0 ;
28491 wxVideoMode result;
28492 PyObject * obj0 = 0 ;
28493 char *kwnames[] = {
28494 (char *) "self", NULL
28495 };
28496
28497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28500 {
28501 PyThreadState* __tstate = wxPyBeginAllowThreads();
28502 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28503
28504 wxPyEndAllowThreads(__tstate);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 {
28508 wxVideoMode * resultptr;
28509 resultptr = new wxVideoMode((wxVideoMode &) result);
28510 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28511 }
28512 return resultobj;
28513 fail:
28514 return NULL;
28515 }
28516
28517
28518 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
28519 PyObject *resultobj;
28520 wxDisplay *arg1 = (wxDisplay *) 0 ;
28521 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28522 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28523 bool result;
28524 PyObject * obj0 = 0 ;
28525 PyObject * obj1 = 0 ;
28526 char *kwnames[] = {
28527 (char *) "self",(char *) "mode", NULL
28528 };
28529
28530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28533 if (obj1) {
28534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28535 SWIG_POINTER_EXCEPTION | 0)) == -1)
28536 SWIG_fail;
28537 if (arg2 == NULL) {
28538 PyErr_SetString(PyExc_TypeError,"null reference");
28539 SWIG_fail;
28540 }
28541 }
28542 {
28543 PyThreadState* __tstate = wxPyBeginAllowThreads();
28544 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28545
28546 wxPyEndAllowThreads(__tstate);
28547 if (PyErr_Occurred()) SWIG_fail;
28548 }
28549 {
28550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28551 }
28552 return resultobj;
28553 fail:
28554 return NULL;
28555 }
28556
28557
28558 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
28559 PyObject *resultobj;
28560 wxDisplay *arg1 = (wxDisplay *) 0 ;
28561 PyObject * obj0 = 0 ;
28562 char *kwnames[] = {
28563 (char *) "self", NULL
28564 };
28565
28566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28569 {
28570 PyThreadState* __tstate = wxPyBeginAllowThreads();
28571 (arg1)->ResetMode();
28572
28573 wxPyEndAllowThreads(__tstate);
28574 if (PyErr_Occurred()) SWIG_fail;
28575 }
28576 Py_INCREF(Py_None); resultobj = Py_None;
28577 return resultobj;
28578 fail:
28579 return NULL;
28580 }
28581
28582
28583 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
28584 PyObject *obj;
28585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28586 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28587 Py_INCREF(obj);
28588 return Py_BuildValue((char *)"");
28589 }
28590 static PyMethodDef SwigMethods[] = {
28591 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
28592 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
28593 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
28594 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
28595 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28596 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28597 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
28598 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
28599 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28600 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28601 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28602 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28603 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
28604 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
28605 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
28606 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
28607 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
28608 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL },
28609 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28610 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28611 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
28612 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28613 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
28614 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
28615 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
28616 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28617 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
28618 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
28619 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
28620 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28621 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
28622 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
28623 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
28624 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28625 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28626 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
28627 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
28628 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
28629 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28630 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28631 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
28632 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
28633 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
28634 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
28635 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
28636 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
28637 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28638 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28639 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28640 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28641 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28642 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28643 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
28644 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28645 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
28646 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28647 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
28648 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28649 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28650 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28651 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28652 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28653 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28654 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28655 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28656 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28657 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28658 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28659 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28660 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28661 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
28662 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
28663 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
28664 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28665 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28666 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28667 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28668 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
28669 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
28670 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
28671 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28672 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28673 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28674 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
28675 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
28676 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
28677 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28678 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28679 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28680 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
28681 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28682 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28683 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28684 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28685 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28686 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
28687 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
28688 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
28689 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28690 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28691 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
28692 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
28693 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28694 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28695 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28696 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28697 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
28698 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28699 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28700 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
28701 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28702 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28703 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
28704 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
28705 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28706 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
28707 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28708 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
28709 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
28710 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28711 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28712 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28713 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28714 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
28715 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28716 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28717 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
28718 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
28719 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28720 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28721 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
28722 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
28723 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
28724 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28725 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28726 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28727 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28728 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28729 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
28730 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
28731 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28732 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28733 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
28734 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
28735 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
28736 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28737 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28738 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
28739 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
28740 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28741 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28742 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28743 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28744 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
28745 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
28746 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28747 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28748 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28749 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28750 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
28751 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
28752 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
28753 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28754 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28755 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
28756 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
28757 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
28758 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28759 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
28760 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
28761 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
28762 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
28763 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
28764 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28765 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
28766 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28767 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28768 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
28769 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28770 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28771 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28772 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28773 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28774 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28775 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28776 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28777 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28778 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28779 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28780 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28781 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28782 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28783 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28784 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
28785 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28786 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
28787 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
28788 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
28789 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
28790 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
28791 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
28792 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
28793 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28794 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28795 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28796 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28797 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28798 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28799 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
28800 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
28801 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
28802 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28803 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28804 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28805 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
28806 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
28807 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
28808 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
28809 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
28810 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
28811 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28812 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28813 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
28814 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28815 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
28816 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28817 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
28818 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
28819 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
28820 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28821 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28822 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28823 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
28824 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
28825 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28826 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
28827 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
28828 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
28829 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
28830 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
28831 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28832 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
28833 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
28834 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
28835 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
28836 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28837 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
28838 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28839 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
28840 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
28841 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28842 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28843 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
28844 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28845 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
28846 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
28847 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
28848 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
28849 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
28850 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
28851 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
28852 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
28853 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28854 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28855 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28856 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28857 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28858 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28859 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28860 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28861 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28862 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28863 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28864 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28865 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28866 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
28867 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
28868 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
28869 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
28870 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
28871 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
28872 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
28873 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
28874 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
28875 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
28876 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28877 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28878 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28879 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28880 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
28881 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
28882 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
28883 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
28884 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
28885 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
28886 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
28887 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
28888 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
28889 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
28890 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
28891 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
28892 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
28893 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
28894 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
28895 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28896 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28897 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
28898 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
28899 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
28900 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
28901 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
28902 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
28903 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
28904 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
28905 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
28906 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
28907 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
28908 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28909 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28910 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28911 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28912 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28913 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28914 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28915 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28916 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28917 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28918 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28919 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
28920 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
28921 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
28922 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
28923 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
28924 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
28925 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
28926 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
28927 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL },
28928 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
28929 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28930 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL },
28931 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28932 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL },
28933 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL },
28934 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28935 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
28936 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28937 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
28938 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28939 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
28940 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28941 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28942 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28943 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28944 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28945 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28946 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28947 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28948 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
28949 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
28950 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28951 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
28952 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28953 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28954 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28955 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28956 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28957 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28958 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28959 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28960 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28961 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28962 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
28963 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28964 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28965 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28966 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28967 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
28968 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
28969 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28970 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
28971 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
28972 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
28973 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28974 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
28975 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28976 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28977 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
28978 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
28979 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28980 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28981 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
28982 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28983 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28984 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28985 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28986 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28987 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
28988 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28989 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28990 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
28991 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
28992 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
28993 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
28994 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28995 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28996 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28997 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28998 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28999 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29000 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29001 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29002 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
29003 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
29004 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29005 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29006 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
29007 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
29008 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
29009 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
29010 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29011 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
29012 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
29013 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
29014 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29015 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
29016 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29017 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29018 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29019 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29020 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29021 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
29022 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29023 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29024 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29025 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29026 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29027 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29028 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29029 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29030 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29031 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29032 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29033 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
29034 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29035 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29036 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
29037 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29038 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29039 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
29040 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29041 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29042 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
29043 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
29044 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29045 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29046 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29047 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29048 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
29049 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
29050 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29051 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
29052 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
29053 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
29054 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29055 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
29056 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
29057 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
29058 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
29059 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
29060 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
29061 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
29062 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
29063 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
29064 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29065 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29066 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29067 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29068 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
29069 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29070 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
29071 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29072 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29073 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29074 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29075 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
29076 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29077 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29078 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29079 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29080 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29081 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29082 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29083 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29084 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29085 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29086 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29087 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29088 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29089 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29090 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29091 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29092 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29093 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29094 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29095 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29096 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29097 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29098 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29099 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29100 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29101 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29102 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
29103 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
29104 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29105 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29106 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29107 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29108 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
29109 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29110 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
29111 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29112 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29113 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29114 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29115 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29116 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29117 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29118 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29119 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29120 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29121 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29122 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
29123 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29124 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
29125 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29126 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29127 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29128 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
29129 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
29130 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
29131 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
29132 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
29133 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
29134 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
29135 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29136 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
29137 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
29138 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
29139 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
29140 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
29141 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
29142 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
29143 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
29144 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
29145 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
29146 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
29147 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29148 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29149 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
29150 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
29151 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29152 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
29153 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
29154 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
29155 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
29156 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
29157 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
29158 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
29159 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
29160 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
29161 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
29162 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
29163 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29164 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29165 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29166 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29167 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29168 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29169 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29170 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29171 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29172 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29173 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
29174 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29175 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29176 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29177 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29178 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29179 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29180 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29181 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29182 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
29183 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
29184 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
29185 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
29186 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29187 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29188 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
29189 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
29190 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
29191 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29192 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
29193 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29194 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29195 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29196 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
29197 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
29198 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
29199 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
29200 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29201 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
29202 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29203 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29204 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29205 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29206 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29207 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29208 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
29209 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
29210 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
29211 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
29212 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29213 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29214 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29215 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29216 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29217 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29218 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29219 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29220 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
29221 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29222 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29223 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29224 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29225 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29226 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29227 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29228 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29229 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29230 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29231 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29232 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29233 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29234 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29235 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
29236 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
29237 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
29238 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
29239 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
29240 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29241 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29242 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29243 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
29244 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
29245 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
29246 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
29247 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29248 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
29249 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
29250 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29251 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29252 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
29253 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29254 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29255 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
29256 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29257 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29258 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
29259 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29260 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29261 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29262 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29263 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29264 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29265 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
29266 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29267 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29268 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
29269 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
29270 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29271 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
29272 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29273 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
29274 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
29275 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
29276 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
29277 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29278 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29279 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
29280 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29281 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29282 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29283 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
29284 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29285 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29286 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
29287 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29288 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
29289 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
29290 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
29291 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29292 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29293 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29294 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29295 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
29296 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29297 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29298 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29299 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
29300 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29301 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29302 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29303 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
29304 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
29305 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29306 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29307 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29308 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29309 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29310 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29311 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29312 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
29313 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
29314 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29315 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29316 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29317 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29318 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29319 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29320 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29321 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29322 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29323 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29324 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
29325 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29326 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29327 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29328 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29329 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29330 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29331 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29332 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
29333 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29334 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29335 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29336 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29337 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29338 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29339 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29340 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
29341 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29342 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29343 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29344 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
29345 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29346 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
29347 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29348 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29349 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29350 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
29351 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29352 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
29353 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29354 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
29355 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29356 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29357 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
29358 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
29359 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29360 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29361 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL },
29362 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29363 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
29364 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29365 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29366 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29367 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29368 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL },
29369 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL },
29370 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL },
29371 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL },
29372 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL },
29373 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL },
29374 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL },
29375 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL },
29376 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL },
29377 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29378 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29379 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29380 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29381 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29382 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29383 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL },
29384 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
29385 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL },
29386 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL },
29387 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL },
29388 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL },
29389 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL },
29390 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL },
29391 { NULL, NULL, 0, NULL }
29392 };
29393
29394
29395 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29396
29397 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29398 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29399 }
29400 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29401 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29402 }
29403 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29404 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29405 }
29406 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29407 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29408 }
29409 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29410 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29411 }
29412 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29413 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29414 }
29415 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29416 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29417 }
29418 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29419 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29420 }
29421 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29422 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29423 }
29424 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29425 return (void *)((wxEvent *) ((wxPyEvent *) x));
29426 }
29427 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29428 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29429 }
29430 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29431 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29432 }
29433 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29434 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29435 }
29436 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29437 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29438 }
29439 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29440 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29441 }
29442 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29443 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29444 }
29445 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29446 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29447 }
29448 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29449 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29450 }
29451 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29452 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29453 }
29454 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29455 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29456 }
29457 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29458 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29459 }
29460 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29461 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29462 }
29463 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29464 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29465 }
29466 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29467 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29468 }
29469 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29470 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29471 }
29472 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29473 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29474 }
29475 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29476 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29477 }
29478 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29479 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29480 }
29481 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29482 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29483 }
29484 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29485 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29486 }
29487 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29488 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29489 }
29490 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29491 return (void *)((wxEvent *) ((wxShowEvent *) x));
29492 }
29493 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29494 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29495 }
29496 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29497 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29498 }
29499 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29500 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29501 }
29502 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29503 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29504 }
29505 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29506 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29507 }
29508 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29509 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29510 }
29511 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29512 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29513 }
29514 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29515 return (void *)((wxConfigBase *) ((wxConfig *) x));
29516 }
29517 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29518 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29519 }
29520 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29521 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29522 }
29523 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29524 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29525 }
29526 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29527 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29528 }
29529 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29530 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29531 }
29532 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29533 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29534 }
29535 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29536 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29537 }
29538 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29539 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29540 }
29541 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29542 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29543 }
29544 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29545 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29546 }
29547 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29548 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29549 }
29550 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29551 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29552 }
29553 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29554 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29555 }
29556 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29557 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29558 }
29559 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29560 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29561 }
29562 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29563 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29564 }
29565 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29566 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29567 }
29568 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29569 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29570 }
29571 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29572 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29573 }
29574 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29575 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29576 }
29577 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29578 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29579 }
29580 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29581 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29582 }
29583 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29584 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29585 }
29586 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29587 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29588 }
29589 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29590 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29591 }
29592 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29593 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29594 }
29595 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29596 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29597 }
29598 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29599 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29600 }
29601 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29602 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29603 }
29604 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29605 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29606 }
29607 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29608 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29609 }
29610 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29611 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29612 }
29613 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29614 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29615 }
29616 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29617 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29618 }
29619 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29620 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29621 }
29622 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29623 return (void *)((wxObject *) ((wxSizerItem *) x));
29624 }
29625 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29626 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29627 }
29628 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29629 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29630 }
29631 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29632 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29633 }
29634 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29635 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29636 }
29637 static void *_p_wxSizerTo_p_wxObject(void *x) {
29638 return (void *)((wxObject *) ((wxSizer *) x));
29639 }
29640 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29641 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29642 }
29643 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29644 return (void *)((wxObject *) ((wxFileHistory *) x));
29645 }
29646 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29647 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29648 }
29649 static void *_p_wxEventTo_p_wxObject(void *x) {
29650 return (void *)((wxObject *) ((wxEvent *) x));
29651 }
29652 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29653 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29654 }
29655 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29656 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29657 }
29658 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29659 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29660 }
29661 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29662 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29663 }
29664 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29665 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29666 }
29667 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29668 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29669 }
29670 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29671 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29672 }
29673 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29674 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29675 }
29676 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29677 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29678 }
29679 static void *_p_wxControlTo_p_wxObject(void *x) {
29680 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29681 }
29682 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29683 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29684 }
29685 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29686 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29687 }
29688 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29689 return (void *)((wxObject *) ((wxFSFile *) x));
29690 }
29691 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29692 return (void *)((wxObject *) ((wxClipboard *) x));
29693 }
29694 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29695 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29696 }
29697 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29698 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29699 }
29700 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29701 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29702 }
29703 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29704 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29705 }
29706 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29707 return (void *)((wxObject *) ((wxToolTip *) x));
29708 }
29709 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29710 return (void *)((wxObject *) ((wxMenuItem *) x));
29711 }
29712 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29713 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29714 }
29715 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29716 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29717 }
29718 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29719 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29720 }
29721 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29722 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29723 }
29724 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29725 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29726 }
29727 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29728 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29729 }
29730 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29731 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29732 }
29733 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29734 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29735 }
29736 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29737 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29738 }
29739 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29740 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29741 }
29742 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29743 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29744 }
29745 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29746 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29747 }
29748 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29749 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29750 }
29751 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29752 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29753 }
29754 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29755 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29756 }
29757 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29758 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29759 }
29760 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29761 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29762 }
29763 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29764 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29765 }
29766 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29767 return (void *)((wxObject *) ((wxImageHandler *) x));
29768 }
29769 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29770 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29771 }
29772 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29773 return (void *)((wxObject *) ((wxEvtHandler *) x));
29774 }
29775 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29776 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29777 }
29778 static void *_p_wxImageTo_p_wxObject(void *x) {
29779 return (void *)((wxObject *) ((wxImage *) x));
29780 }
29781 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29782 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29783 }
29784 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29785 return (void *)((wxObject *) ((wxSystemOptions *) x));
29786 }
29787 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29788 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29789 }
29790 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29791 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29792 }
29793 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29794 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29795 }
29796 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29797 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29798 }
29799 static void *_p_wxWindowTo_p_wxObject(void *x) {
29800 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29801 }
29802 static void *_p_wxMenuTo_p_wxObject(void *x) {
29803 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29804 }
29805 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29806 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29807 }
29808 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29809 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29810 }
29811 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29812 return (void *)((wxObject *) ((wxFileSystem *) x));
29813 }
29814 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29815 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29816 }
29817 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29818 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29819 }
29820 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29821 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29822 }
29823 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29824 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29825 }
29826 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29827 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29828 }
29829 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29830 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29831 }
29832 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29833 return (void *)((wxObject *) ((wxBusyInfo *) x));
29834 }
29835 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29836 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29837 }
29838 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29839 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29840 }
29841 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29842 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29843 }
29844 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29845 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29846 }
29847 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29848 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29849 }
29850 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29851 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29852 }
29853 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29854 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29855 }
29856 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29857 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29858 }
29859 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29860 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29861 }
29862 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29863 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29864 }
29865 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29866 return (void *)((wxLog *) ((wxLogStderr *) x));
29867 }
29868 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29869 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29870 }
29871 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29872 return (void *)((wxLog *) ((wxLogWindow *) x));
29873 }
29874 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29875 return (void *)((wxLog *) ((wxLogChain *) x));
29876 }
29877 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29878 return (void *)((wxLog *) ((wxLogGui *) x));
29879 }
29880 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29881 return (void *)((wxLog *) ((wxPyLog *) x));
29882 }
29883 static void *_p_wxControlTo_p_wxWindow(void *x) {
29884 return (void *)((wxWindow *) ((wxControl *) x));
29885 }
29886 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29887 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29888 }
29889 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29890 return (void *)((wxWindow *) ((wxMenuBar *) x));
29891 }
29892 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29893 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29894 }
29895 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29896 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29897 }
29898 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}};
29899 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}};
29900 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}};
29901 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}};
29902 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}};
29903 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}};
29904 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}};
29905 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}};
29906 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}};
29907 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}};
29908 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}};
29909 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}};
29910 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}};
29911 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}};
29912 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}};
29913 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}};
29914 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}};
29915 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}};
29916 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}};
29917 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}};
29918 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}};
29919 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}};
29920 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}};
29921 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}};
29922 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}};
29923 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}};
29924 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}};
29925 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}};
29926 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}};
29927 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}};
29928 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}};
29929 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}};
29930 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}};
29931 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}};
29932 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}};
29933 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}};
29934 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}};
29935 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}};
29936 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}};
29937 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}};
29938 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}};
29939 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}};
29940 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}};
29941 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}};
29942 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}};
29943 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}};
29944 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}};
29945 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}};
29946 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}};
29947 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}};
29948 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}};
29949 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}};
29950 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}};
29951 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}};
29952 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}};
29953 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}};
29954 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}};
29955 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}};
29956 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}};
29957 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}};
29958 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}};
29959 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}};
29960 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}};
29961 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}};
29962 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}};
29963 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}};
29964 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}};
29965 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}};
29966 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}};
29967 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}};
29968 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}};
29969 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}};
29970 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}};
29971 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}};
29972 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}};
29973 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}};
29974 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}};
29975 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}};
29976 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}};
29977 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}};
29978 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}};
29979 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}};
29980 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}};
29981 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}};
29982 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}};
29983 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}};
29984
29985 static swig_type_info *swig_types_initial[] = {
29986 _swigt__p_wxLogChain,
29987 _swigt__p_wxMutexGuiLocker,
29988 _swigt__p_wxMetafile,
29989 _swigt__p_wxFileHistory,
29990 _swigt__p_wxLog,
29991 _swigt__p_wxDateTime__TimeZone,
29992 _swigt__p_wxMenu,
29993 _swigt__p_wxEvent,
29994 _swigt__p_wxConfigBase,
29995 _swigt__p_wxDisplay,
29996 _swigt__p_wxFileType,
29997 _swigt__p_wxLogGui,
29998 _swigt__p_wxFont,
29999 _swigt__p_wxDataFormat,
30000 _swigt__p_wxTimerEvent,
30001 _swigt__p_wxCaret,
30002 _swigt__p_int,
30003 _swigt__p_wxSize,
30004 _swigt__p_wxClipboard,
30005 _swigt__p_wxStopWatch,
30006 _swigt__p_wxDC,
30007 _swigt__p_wxClipboardLocker,
30008 _swigt__p_wxIcon,
30009 _swigt__p_wxLogStderr,
30010 _swigt__p_wxLogTextCtrl,
30011 _swigt__p_wxTextCtrl,
30012 _swigt__p_wxBusyCursor,
30013 _swigt__p_wxPyBitmapDataObject,
30014 _swigt__p_wxPyTextDataObject,
30015 _swigt__p_wxBitmapDataObject,
30016 _swigt__p_wxTextDataObject,
30017 _swigt__p_wxDataObject,
30018 _swigt__p_wxFileDataObject,
30019 _swigt__p_wxCustomDataObject,
30020 _swigt__p_wxURLDataObject,
30021 _swigt__p_wxMetafileDataObject,
30022 _swigt__p_wxSound,
30023 _swigt__p_wxTimerRunner,
30024 _swigt__p_wxLogWindow,
30025 _swigt__p_wxTimeSpan,
30026 _swigt__p_wxArrayString,
30027 _swigt__p_wxWindowDisabler,
30028 _swigt__p_wxToolTip,
30029 _swigt__p_wxDataObjectComposite,
30030 _swigt__p_wxFileConfig,
30031 _swigt__p_wxSystemSettings,
30032 _swigt__p_wxVideoMode,
30033 _swigt__p_wxPyDataObjectSimple,
30034 _swigt__p_wxDataObjectSimple,
30035 _swigt__p_wxEvtHandler,
30036 _swigt__p_wxRect,
30037 _swigt__p_char,
30038 _swigt__p_wxSingleInstanceChecker,
30039 _swigt__p_wxFileTypeInfo,
30040 _swigt__p_wxFrame,
30041 _swigt__p_wxTimer,
30042 _swigt__p_wxMimeTypesManager,
30043 _swigt__p_wxPyArtProvider,
30044 _swigt__p_wxPyTipProvider,
30045 _swigt__p_wxTipProvider,
30046 _swigt__p_wxJoystick,
30047 _swigt__p_wxSystemOptions,
30048 _swigt__p_wxPoint,
30049 _swigt__p_wxJoystickEvent,
30050 _swigt__p_wxCursor,
30051 _swigt__p_wxObject,
30052 _swigt__p_wxOutputStream,
30053 _swigt__p_wxDateTime,
30054 _swigt__p_wxPyDropSource,
30055 _swigt__p_wxWindow,
30056 _swigt__p_wxString,
30057 _swigt__p_wxPyProcess,
30058 _swigt__p_wxBitmap,
30059 _swigt__p_wxConfig,
30060 _swigt__p_wxChar,
30061 _swigt__p_wxBusyInfo,
30062 _swigt__p_wxPyDropTarget,
30063 _swigt__p_wxPyTextDropTarget,
30064 _swigt__p_wxPyFileDropTarget,
30065 _swigt__p_wxProcessEvent,
30066 _swigt__p_wxPyLog,
30067 _swigt__p_wxLogNull,
30068 _swigt__p_wxColour,
30069 _swigt__p_wxConfigPathChanger,
30070 _swigt__p_wxPyTimer,
30071 _swigt__p_wxDateSpan,
30072 0
30073 };
30074
30075
30076 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
30077
30078 static swig_const_info swig_const_table[] = {
30079 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
30080 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
30081 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
30082 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
30083 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
30084 {0, 0, 0, 0.0, 0, 0}};
30085
30086 #ifdef __cplusplus
30087 }
30088 #endif
30089
30090 #ifdef __cplusplus
30091 extern "C"
30092 #endif
30093 SWIGEXPORT(void) SWIG_init(void) {
30094 static PyObject *SWIG_globals = 0;
30095 static int typeinit = 0;
30096 PyObject *m, *d;
30097 int i;
30098 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
30099 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30100 d = PyModule_GetDict(m);
30101
30102 if (!typeinit) {
30103 for (i = 0; swig_types_initial[i]; i++) {
30104 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
30105 }
30106 typeinit = 1;
30107 }
30108 SWIG_InstallConstants(d,swig_const_table);
30109
30110 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT));
30111 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT));
30112 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT));
30113 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT));
30114 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT));
30115 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE));
30116 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT));
30117 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT));
30118 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT));
30119 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR));
30120 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND));
30121 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP));
30122 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION));
30123 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION));
30124 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU));
30125 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW));
30126 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME));
30127 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT));
30128 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT));
30129 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT));
30130 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER));
30131 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER));
30132 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE));
30133 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT));
30134 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
30135 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE));
30136 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE));
30137 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW));
30138 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW));
30139 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT));
30140 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT));
30141 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
30142 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT));
30143 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT));
30144 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT));
30145 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT));
30146 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW));
30147 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT));
30148 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT));
30149 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK));
30150 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX));
30151 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT));
30152 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
30153 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
30154 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT));
30155 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR));
30156 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX));
30157 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS));
30158 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X));
30159 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y));
30160 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X));
30161 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y));
30162 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X));
30163 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y));
30164 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X));
30165 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y));
30166 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X));
30167 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y));
30168 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X));
30169 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y));
30170 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X));
30171 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X));
30172 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y));
30173 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X));
30174 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y));
30175 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X));
30176 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y));
30177 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X));
30178 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y));
30179 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X));
30180 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y));
30181 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X));
30182 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y));
30183 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y));
30184 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X));
30185 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X));
30186 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y));
30187 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y));
30188 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y));
30189 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y));
30190 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT));
30191 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT));
30192 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS));
30193 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS));
30194 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30195 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME));
30196 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE));
30197 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY));
30198 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA));
30199 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL));
30200 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP));
30201 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
30202 SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set);
30203 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30204 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30205 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
30206 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF));
30207 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT));
30208 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS));
30209 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT));
30210 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
30211
30212 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30213
30214 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError));
30215 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error));
30216 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning));
30217 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message));
30218 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status));
30219 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info));
30220 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug));
30221 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace));
30222 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress));
30223 PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User));
30224 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max));
30225 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30226 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30227 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30228 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30229 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
30230 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001));
30231 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002));
30232 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004));
30233 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008));
30234 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100));
30235 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT));
30236 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT));
30237 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK));
30238 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL));
30239 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED));
30240 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS));
30241 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR));
30242 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE));
30243 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP));
30244 PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT));
30245 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT));
30246 PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL));
30247 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP));
30248 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT));
30249 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT));
30250 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT));
30251 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE));
30252 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL));
30253 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS));
30254 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV));
30255 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS));
30256 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE));
30257 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM));
30258 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM));
30259 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
30260 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC));
30261 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC));
30262 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE));
30263 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER));
30264
30265 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30266
30267 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1));
30268 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2));
30269 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY));
30270 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1));
30271 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2));
30272 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3));
30273 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4));
30274 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30275 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30276 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30277 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
30278 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC));
30279 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC));
30280 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP));
30281 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD));
30282 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE));
30283 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE));
30284 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME));
30285 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL));
30286 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30287 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30288 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30289 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30290 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30291 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30292 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
30293 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
30294 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30295 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30296 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30297 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30298 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30299 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30300 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30301 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30302 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30303 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30304 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30305 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30306 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30307 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30308 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30309 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30310 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30311 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30312 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30313 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30314 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30315 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30316 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30317 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30318 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30319 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30320 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30321 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30322 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30323 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30324 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30325 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30326
30327 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30328
30329 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE));
30330 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE));
30331 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH));
30332 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30333 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown));
30334 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String));
30335 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean));
30336 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer));
30337 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float));
30338 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30339 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30340 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local));
30341 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12));
30342 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11));
30343 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10));
30344 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9));
30345 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8));
30346 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7));
30347 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6));
30348 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5));
30349 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4));
30350 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3));
30351 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2));
30352 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1));
30353 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0));
30354 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1));
30355 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2));
30356 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3));
30357 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4));
30358 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5));
30359 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6));
30360 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7));
30361 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8));
30362 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9));
30363 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10));
30364 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11));
30365 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12));
30366 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET));
30367 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST));
30368 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET));
30369 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST));
30370 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET));
30371 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST));
30372 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK));
30373 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD));
30374 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST));
30375 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT));
30376 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST));
30377 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT));
30378 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST));
30379 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT));
30380 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST));
30381 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT));
30382 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST));
30383 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT));
30384 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST));
30385 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST));
30386 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT));
30387 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST));
30388 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST));
30389 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST));
30390 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST));
30391 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC));
30392 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian));
30393 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian));
30394 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown));
30395 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard));
30396 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska));
30397 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania));
30398 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria));
30399 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen));
30400 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg));
30401 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol));
30402 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia));
30403 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria));
30404 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium));
30405 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria));
30406 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1));
30407 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2));
30408 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3));
30409 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada));
30410 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China));
30411 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1));
30412 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2));
30413 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia));
30414 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark));
30415 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt));
30416 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia));
30417 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland));
30418 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France));
30419 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace));
30420 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine));
30421 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg));
30422 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany));
30423 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic));
30424 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia));
30425 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant));
30426 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain));
30427 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece));
30428 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary));
30429 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland));
30430 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy));
30431 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan));
30432 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1));
30433 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2));
30434 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3));
30435 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia));
30436 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania));
30437 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg));
30438 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands));
30439 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen));
30440 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland));
30441 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht));
30442 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland));
30443 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway));
30444 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland));
30445 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal));
30446 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania));
30447 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia));
30448 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland));
30449 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain));
30450 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden));
30451 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland));
30452 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic));
30453 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant));
30454 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey));
30455 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA));
30456 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales));
30457 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia));
30458 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown));
30459 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default));
30460 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start));
30461 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC));
30462 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France));
30463 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany));
30464 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK));
30465 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End));
30466 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia));
30467 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA));
30468 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan));
30469 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb));
30470 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar));
30471 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr));
30472 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May));
30473 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun));
30474 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul));
30475 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug));
30476 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep));
30477 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct));
30478 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov));
30479 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec));
30480 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month));
30481 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun));
30482 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon));
30483 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue));
30484 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed));
30485 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu));
30486 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri));
30487 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat));
30488 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay));
30489 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year));
30490 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full));
30491 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr));
30492 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First));
30493 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First));
30494 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First));
30495 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30496 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID));
30497 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT));
30498 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP));
30499 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE));
30500 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK));
30501 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF));
30502 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF));
30503 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT));
30504 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB));
30505 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE));
30506 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA));
30507 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF));
30508 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE));
30509 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT));
30510 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE));
30511 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME));
30512 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE));
30513 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE));
30514 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML));
30515 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX));
30516 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30517 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get));
30518 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set));
30519 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both));
30520 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly));
30521 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove));
30522 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove));
30523 PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError));
30524 PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone));
30525 PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy));
30526 PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove));
30527 PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink));
30528 PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel));
30529
30530 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30531 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30532 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30533 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30534
30535 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30536 }
30537