]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_misc_wrap.cpp
b9c499a917e7dbc15ca19892d1e2dc96cead1f1f
[wxWidgets.git] / wxPython / src / gtk / _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_wxFileHistory swig_types[2]
214 #define SWIGTYPE_p_wxLog swig_types[3]
215 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4]
216 #define SWIGTYPE_p_wxMenu swig_types[5]
217 #define SWIGTYPE_p_wxEvent swig_types[6]
218 #define SWIGTYPE_p_wxConfigBase swig_types[7]
219 #define SWIGTYPE_p_wxDisplay swig_types[8]
220 #define SWIGTYPE_p_wxFileType swig_types[9]
221 #define SWIGTYPE_p_wxLogGui swig_types[10]
222 #define SWIGTYPE_p_wxFont swig_types[11]
223 #define SWIGTYPE_p_wxDataFormat swig_types[12]
224 #define SWIGTYPE_p_wxTimerEvent swig_types[13]
225 #define SWIGTYPE_p_wxCaret swig_types[14]
226 #define SWIGTYPE_p_int swig_types[15]
227 #define SWIGTYPE_p_wxSize swig_types[16]
228 #define SWIGTYPE_p_wxClipboard swig_types[17]
229 #define SWIGTYPE_p_wxStopWatch swig_types[18]
230 #define SWIGTYPE_p_wxDC swig_types[19]
231 #define SWIGTYPE_p_wxClipboardLocker swig_types[20]
232 #define SWIGTYPE_p_wxIcon swig_types[21]
233 #define SWIGTYPE_p_wxLogStderr swig_types[22]
234 #define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
235 #define SWIGTYPE_p_wxTextCtrl swig_types[24]
236 #define SWIGTYPE_p_wxBusyCursor swig_types[25]
237 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[26]
238 #define SWIGTYPE_p_wxPyTextDataObject swig_types[27]
239 #define SWIGTYPE_p_wxBitmapDataObject swig_types[28]
240 #define SWIGTYPE_p_wxTextDataObject swig_types[29]
241 #define SWIGTYPE_p_wxDataObject swig_types[30]
242 #define SWIGTYPE_p_wxFileDataObject swig_types[31]
243 #define SWIGTYPE_p_wxCustomDataObject swig_types[32]
244 #define SWIGTYPE_p_wxURLDataObject swig_types[33]
245 #define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
246 #define SWIGTYPE_p_wxSound swig_types[35]
247 #define SWIGTYPE_p_wxTimerRunner swig_types[36]
248 #define SWIGTYPE_p_wxLogWindow swig_types[37]
249 #define SWIGTYPE_p_wxTimeSpan swig_types[38]
250 #define SWIGTYPE_p_wxArrayString swig_types[39]
251 #define SWIGTYPE_p_wxWindowDisabler swig_types[40]
252 #define SWIGTYPE_p_wxToolTip swig_types[41]
253 #define SWIGTYPE_p_wxDataObjectComposite swig_types[42]
254 #define SWIGTYPE_p_wxFileConfig swig_types[43]
255 #define SWIGTYPE_p_wxSystemSettings swig_types[44]
256 #define SWIGTYPE_p_wxVideoMode swig_types[45]
257 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46]
258 #define SWIGTYPE_p_wxDataObjectSimple swig_types[47]
259 #define SWIGTYPE_p_wxEvtHandler swig_types[48]
260 #define SWIGTYPE_p_wxRect swig_types[49]
261 #define SWIGTYPE_p_char swig_types[50]
262 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51]
263 #define SWIGTYPE_p_wxStandardPaths 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 long wxGetFreeMemory()
580 { wxPyRaiseNotImplemented(); return 0; }
581
582
583 // See my_fragments.i
584 SWIGSTATICINLINE(int)
585 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
586 {
587 long v = 0;
588 if (SWIG_AsVal_long(obj, &v) && v < 0) {
589 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
590 return 0;
591 }
592 else if (val)
593 *val = (unsigned long)v;
594 return 1;
595 }
596
597
598 SWIGSTATICINLINE(unsigned long)
599 SWIG_As_unsigned_SS_long(PyObject* obj)
600 {
601 unsigned long v;
602 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
603 /*
604 this is needed to make valgrind/purify happier. the other
605 solution is throw an exception, but since this code should work
606 with plain C ....
607 */
608 memset((void*)&v, 0, sizeof(unsigned long));
609 }
610 return v;
611 }
612
613
614 SWIGSTATICINLINE(int)
615 SWIG_Check_unsigned_SS_long(PyObject* obj)
616 {
617 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
618 }
619
620
621 SWIGSTATICINLINE(PyObject* )
622 SWIG_From_unsigned_SS_long(unsigned long value)
623 {
624 return (value > LONG_MAX) ?
625 PyLong_FromUnsignedLong(value)
626 : PyInt_FromLong(swig_numeric_cast(value,long));
627 }
628
629
630 void wxWakeUpMainThread() {}
631
632
633 bool wxThread_IsMain() {
634 #ifdef WXP_WITH_THREAD
635 return wxThread::IsMain();
636 #else
637 return true;
638 #endif
639 }
640
641
642 int wxCaret_GetBlinkTime() {
643 return wxCaret::GetBlinkTime();
644 }
645
646 void wxCaret_SetBlinkTime(int milliseconds) {
647 wxCaret::SetBlinkTime(milliseconds);
648 }
649
650
651 #include <wx/snglinst.h>
652
653
654 #ifdef __WXMSW__
655 #include <wx/msw/private.h>
656 #include <wx/dynload.h>
657 #endif
658
659
660
661 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
662 {
663 #ifdef __WXMSW__
664
665 switch (method)
666 {
667 case 1:
668 // This one only partially works. Appears to be an undocumented
669 // "standard" convention that not all widgets adhear to. For
670 // example, for some widgets backgrounds or non-client areas may
671 // not be painted.
672 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
673 break;
674
675 case 2:
676 // This one works much better, except for on XP. On Win2k nearly
677 // all widgets and their children are captured correctly[**]. On
678 // XP with Themes activated most native widgets draw only
679 // partially, if at all. Without themes it works just like on
680 // Win2k.
681 //
682 // ** For example the radio buttons in a wxRadioBox are not its
683 // children by default, but you can capture it via the panel
684 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
685 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
686 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
687 PRF_ERASEBKGND | PRF_OWNED );
688 break;
689
690 case 3:
691 // This one is only defined in the latest SDK and is only
692 // available on XP. MSDN says it is similar to sending WM_PRINT
693 // so I expect that it will work similar to the above. Since it
694 // is avaialble only on XP, it can't be compiled like this and
695 // will have to be loaded dynamically.
696 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
697
698 // fall through
699
700 case 4:
701 // Use PrintWindow if available, or fallback to WM_PRINT
702 // otherwise. Unfortunately using PrintWindow is even worse than
703 // WM_PRINT. For most native widgets nothing is drawn to the dc
704 // at all, with or without Themes.
705 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
706 static bool s_triedToLoad = false;
707 static PrintWindow_t pfnPrintWindow = NULL;
708 if ( !s_triedToLoad )
709 {
710
711 s_triedToLoad = true;
712 wxDynamicLibrary dllUser32(_T("user32.dll"));
713 if ( dllUser32.IsLoaded() )
714 {
715 wxLogNull nolog; // Don't report errors here
716 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
717 }
718 }
719 if (pfnPrintWindow)
720 {
721 printf("Using PrintWindow\n");
722 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
723 }
724 else
725 {
726 printf("Using WM_PRINT\n");
727 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
728 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
729 }
730 }
731 #endif
732 }
733
734
735
736 #include <wx/tipdlg.h>
737
738
739 class wxPyTipProvider : public wxTipProvider {
740 public:
741 wxPyTipProvider(size_t currentTip)
742 : wxTipProvider(currentTip) {}
743
744 DEC_PYCALLBACK_STRING__pure(GetTip);
745 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
746 PYPRIVATE;
747 };
748
749 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
750 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
751
752
753 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
754
755 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
756
757 void wxPyTimer::Notify() {
758 bool found;
759 bool blocked = wxPyBeginBlockThreads();
760 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
761 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
762 wxPyEndBlockThreads(blocked);
763 if (! found)
764 wxTimer::Notify();
765 }
766 void wxPyTimer::base_Notify() {
767 wxTimer::Notify();
768 }
769
770
771
772 SWIGSTATICINLINE(PyObject *)
773 SWIG_FromCharPtr(const char* cptr)
774 {
775 if (cptr) {
776 size_t size = strlen(cptr);
777 if (size > INT_MAX) {
778 return SWIG_NewPointerObj(swig_const_cast(cptr,char*),
779 SWIG_TypeQuery("char *"), 0);
780 } else {
781 if (size != 0) {
782 return PyString_FromStringAndSize(cptr, size);
783 } else {
784 return PyString_FromString(cptr);
785 }
786 }
787 }
788 Py_INCREF(Py_None);
789 return Py_None;
790 }
791
792
793 SWIGSTATICINLINE(int)
794 SWIG_CheckUnsignedLongInRange(unsigned long value,
795 unsigned long max_value,
796 const char *errmsg)
797 {
798 if (value > max_value) {
799 if (errmsg) {
800 PyErr_Format(PyExc_OverflowError,
801 "value %ld is greater than '%s' minimum %ld",
802 value, errmsg, max_value);
803 }
804 return 0;
805 }
806 return 1;
807 }
808
809
810 #if UINT_MAX != ULONG_MAX
811 SWIGSTATICINLINE(int)
812 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
813 {
814 const char* errmsg = val ? "unsigned int" : 0;
815 unsigned long v;
816 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
817 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
818 if (val) *val = swig_numeric_cast(v, unsigned int);
819 return 1;
820 }
821 } else {
822 PyErr_Clear();
823 }
824 if (val) {
825 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
826 }
827 return 0;
828 }
829 #else
830 SWIGSTATICINLINE(unsigned int)
831 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
832 {
833 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
834 }
835 #endif
836
837
838 SWIGSTATICINLINE(unsigned int)
839 SWIG_As_unsigned_SS_int(PyObject* obj)
840 {
841 unsigned int v;
842 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
843 /*
844 this is needed to make valgrind/purify happier. the other
845 solution is throw an exception, but since this code should work
846 with plain C ....
847 */
848 memset((void*)&v, 0, sizeof(unsigned int));
849 }
850 return v;
851 }
852
853
854 SWIGSTATICINLINE(int)
855 SWIG_Check_unsigned_SS_int(PyObject* obj)
856 {
857 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
858 }
859
860 wxString Log_TimeStamp(){
861 wxString msg;
862 wxLog::TimeStamp(&msg);
863 return msg;
864 }
865 void wxLog_Destroy(wxLog *self){ delete self; }
866 // Make somce wrappers that double any % signs so they are 'escaped'
867 void wxPyLogFatalError(const wxString& msg)
868 {
869 wxString m(msg);
870 m.Replace(wxT("%"), wxT("%%"));
871 wxLogFatalError(m);
872 }
873
874 void wxPyLogError(const wxString& msg)
875 {
876 wxString m(msg);
877 m.Replace(wxT("%"), wxT("%%"));
878 wxLogError(m);
879 }
880
881 void wxPyLogWarning(const wxString& msg)
882 {
883 wxString m(msg);
884 m.Replace(wxT("%"), wxT("%%"));
885 wxLogWarning(m);
886 }
887
888 void wxPyLogMessage(const wxString& msg)
889 {
890 wxString m(msg);
891 m.Replace(wxT("%"), wxT("%%"));
892 wxLogMessage(m);
893 }
894
895 void wxPyLogInfo(const wxString& msg)
896 {
897 wxString m(msg);
898 m.Replace(wxT("%"), wxT("%%"));
899 wxLogInfo(m);
900 }
901
902 void wxPyLogDebug(const wxString& msg)
903 {
904 wxString m(msg);
905 m.Replace(wxT("%"), wxT("%%"));
906 wxLogDebug(m);
907 }
908
909 void wxPyLogVerbose(const wxString& msg)
910 {
911 wxString m(msg);
912 m.Replace(wxT("%"), wxT("%%"));
913 wxLogVerbose(m);
914 }
915
916 void wxPyLogStatus(const wxString& msg)
917 {
918 wxString m(msg);
919 m.Replace(wxT("%"), wxT("%%"));
920 wxLogStatus(m);
921 }
922
923 void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg)
924 {
925 wxString m(msg);
926 m.Replace(wxT("%"), wxT("%%"));
927 wxLogStatus(pFrame, m);
928 }
929
930 void wxPyLogSysError(const wxString& msg)
931 {
932 wxString m(msg);
933 m.Replace(wxT("%"), wxT("%%"));
934 wxLogSysError(m);
935 }
936
937 void wxPyLogGeneric(unsigned long level, const wxString& msg)
938 {
939 wxString m(msg);
940 m.Replace(wxT("%"), wxT("%%"));
941 wxLogGeneric(level, m);
942 }
943
944 void wxPyLogTrace(unsigned long mask, const wxString& msg)
945 {
946 wxString m(msg);
947 m.Replace(wxT("%"), wxT("%%"));
948 wxLogTrace(mask, m);
949 }
950
951 void wxPyLogTrace(const wxString& mask, const wxString& msg)
952 {
953 wxString m(msg);
954 m.Replace(wxT("%"), wxT("%%"));
955 wxLogTrace(mask, m);
956 }
957
958
959
960 // A wxLog class that can be derived from in wxPython
961 class wxPyLog : public wxLog {
962 public:
963 wxPyLog() : wxLog() {}
964
965 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
966 bool found;
967 bool blocked = wxPyBeginBlockThreads();
968 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
969 PyObject* s = wx2PyString(szString);
970 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
971 Py_DECREF(s);
972 }
973 wxPyEndBlockThreads(blocked);
974 if (! found)
975 wxLog::DoLog(level, szString, t);
976 }
977
978 virtual void DoLogString(const wxChar *szString, time_t t) {
979 bool found;
980 bool blocked = wxPyBeginBlockThreads();
981 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
982 PyObject* s = wx2PyString(szString);
983 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
984 Py_DECREF(s);
985 }
986 wxPyEndBlockThreads(blocked);
987 if (! found)
988 wxLog::DoLogString(szString, t);
989 }
990
991 PYPRIVATE;
992 };
993
994
995
996
997 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
998
999
1000 #include <wx/joystick.h>
1001
1002
1003 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
1004 // A C++ stub class for wxJoystick for platforms that don't have it.
1005 class wxJoystick : public wxObject {
1006 public:
1007 wxJoystick(int joystick = wxJOYSTICK1) {
1008 bool blocked = wxPyBeginBlockThreads();
1009 PyErr_SetString(PyExc_NotImplementedError,
1010 "wxJoystick is not available on this platform.");
1011 wxPyEndBlockThreads(blocked);
1012 }
1013 wxPoint GetPosition() { return wxPoint(-1,-1); }
1014 int GetZPosition() { return -1; }
1015 int GetButtonState() { return -1; }
1016 int GetPOVPosition() { return -1; }
1017 int GetPOVCTSPosition() { return -1; }
1018 int GetRudderPosition() { return -1; }
1019 int GetUPosition() { return -1; }
1020 int GetVPosition() { return -1; }
1021 int GetMovementThreshold() { return -1; }
1022 void SetMovementThreshold(int threshold) {}
1023
1024 bool IsOk(void) { return false; }
1025 int GetNumberJoysticks() { return -1; }
1026 int GetManufacturerId() { return -1; }
1027 int GetProductId() { return -1; }
1028 wxString GetProductName() { return wxEmptyString; }
1029 int GetXMin() { return -1; }
1030 int GetYMin() { return -1; }
1031 int GetZMin() { return -1; }
1032 int GetXMax() { return -1; }
1033 int GetYMax() { return -1; }
1034 int GetZMax() { return -1; }
1035 int GetNumberButtons() { return -1; }
1036 int GetNumberAxes() { return -1; }
1037 int GetMaxButtons() { return -1; }
1038 int GetMaxAxes() { return -1; }
1039 int GetPollingMin() { return -1; }
1040 int GetPollingMax() { return -1; }
1041 int GetRudderMin() { return -1; }
1042 int GetRudderMax() { return -1; }
1043 int GetUMin() { return -1; }
1044 int GetUMax() { return -1; }
1045 int GetVMin() { return -1; }
1046 int GetVMax() { return -1; }
1047
1048 bool HasRudder() { return false; }
1049 bool HasZ() { return false; }
1050 bool HasU() { return false; }
1051 bool HasV() { return false; }
1052 bool HasPOV() { return false; }
1053 bool HasPOV4Dir() { return false; }
1054 bool HasPOVCTS() { return false; }
1055
1056 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
1057 bool ReleaseCapture() { return false; }
1058 };
1059 #endif
1060
1061
1062 #include <wx/sound.h>
1063
1064
1065 #if !wxUSE_SOUND
1066 // A C++ stub class for wxWave for platforms that don't have it.
1067 class wxSound : public wxObject
1068 {
1069 public:
1070 wxSound() {
1071 bool blocked = wxPyBeginBlockThreads();
1072 PyErr_SetString(PyExc_NotImplementedError,
1073 "wxSound is not available on this platform.");
1074 wxPyEndBlockThreads(blocked);
1075 }
1076 wxSound(const wxString&/*, bool*/) {
1077 bool blocked = wxPyBeginBlockThreads();
1078 PyErr_SetString(PyExc_NotImplementedError,
1079 "wxSound is not available on this platform.");
1080 wxPyEndBlockThreads(blocked);
1081 }
1082 wxSound(int, const wxByte*) {
1083 bool blocked = wxPyBeginBlockThreads();
1084 PyErr_SetString(PyExc_NotImplementedError,
1085 "wxSound is not available on this platform.");
1086 wxPyEndBlockThreads(blocked);
1087 }
1088
1089 ~wxSound() {};
1090
1091 bool Create(const wxString&/*, bool*/) { return false; }
1092 bool Create(int, const wxByte*) { return false; };
1093 bool IsOk() { return false; };
1094 bool Play(unsigned) const { return false; }
1095 static bool Play(const wxString&, unsigned) { return false; }
1096 static void Stop() {}
1097 };
1098
1099 #endif
1100
1101 wxSound *new_wxSound(wxString const &fileName){
1102 if (fileName.Length() == 0)
1103 return new wxSound;
1104 else
1105 return new wxSound(fileName);
1106 }
1107 wxSound *new_wxSound(PyObject *data){
1108 unsigned char* buffer; int size;
1109 wxSound *sound = NULL;
1110
1111 bool blocked = wxPyBeginBlockThreads();
1112 if (!PyArg_Parse(data, "t#", &buffer, &size))
1113 goto done;
1114 sound = new wxSound(size, buffer);
1115 done:
1116 wxPyEndBlockThreads(blocked);
1117 return sound;
1118 }
1119 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
1120 #ifndef __WXMAC__
1121 unsigned char* buffer;
1122 int size;
1123 bool rv = false;
1124
1125 bool blocked = wxPyBeginBlockThreads();
1126 if (!PyArg_Parse(data, "t#", &buffer, &size))
1127 goto done;
1128 rv = self->Create(size, buffer);
1129 done:
1130 wxPyEndBlockThreads(blocked);
1131 return rv;
1132 #else
1133 bool blocked = wxPyBeginBlockThreads();
1134 PyErr_SetString(PyExc_NotImplementedError,
1135 "Create from data is not available on this platform.");
1136 wxPyEndBlockThreads(blocked);
1137 return false;
1138 #endif
1139 }
1140
1141 #include <wx/mimetype.h>
1142
1143 PyObject *wxFileType_GetMimeType(wxFileType *self){
1144 wxString str;
1145 if (self->GetMimeType(&str))
1146 return wx2PyString(str);
1147 else
1148 RETURN_NONE();
1149 }
1150 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
1151 wxArrayString arr;
1152 if (self->GetMimeTypes(arr))
1153 return wxArrayString2PyList_helper(arr);
1154 else
1155 RETURN_NONE();
1156 }
1157 PyObject *wxFileType_GetExtensions(wxFileType *self){
1158 wxArrayString arr;
1159 if (self->GetExtensions(arr))
1160 return wxArrayString2PyList_helper(arr);
1161 else
1162 RETURN_NONE();
1163 }
1164 wxIcon *wxFileType_GetIcon(wxFileType *self){
1165 wxIconLocation loc;
1166 if (self->GetIcon(&loc))
1167 return new wxIcon(loc);
1168 else
1169 return NULL;
1170 }
1171 PyObject *wxFileType_GetIconInfo(wxFileType *self){
1172 wxIconLocation loc;
1173 if (self->GetIcon(&loc)) {
1174 wxString iconFile = loc.GetFileName();
1175 int iconIndex = -1;
1176
1177
1178
1179 // Make a tuple and put the values in it
1180 bool blocked = wxPyBeginBlockThreads();
1181 PyObject* tuple = PyTuple_New(3);
1182 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
1183 wxT("wxIcon"), true));
1184 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
1185 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
1186 wxPyEndBlockThreads(blocked);
1187 return tuple;
1188 }
1189 else
1190 RETURN_NONE();
1191 }
1192 PyObject *wxFileType_GetDescription(wxFileType *self){
1193 wxString str;
1194 if (self->GetDescription(&str))
1195 return wx2PyString(str);
1196 else
1197 RETURN_NONE();
1198 }
1199 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1200 wxString str;
1201 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1202 return wx2PyString(str);
1203 else
1204 RETURN_NONE();
1205 }
1206 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1207 wxString str;
1208 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1209 return wx2PyString(str);
1210 else
1211 RETURN_NONE();
1212 }
1213 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
1214 wxArrayString verbs;
1215 wxArrayString commands;
1216 if (self->GetAllCommands(&verbs, &commands,
1217 wxFileType::MessageParameters(filename, mimetype))) {
1218 bool blocked = wxPyBeginBlockThreads();
1219 PyObject* tuple = PyTuple_New(2);
1220 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
1221 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1222 wxPyEndBlockThreads(blocked);
1223 return tuple;
1224 }
1225 else
1226 RETURN_NONE();
1227 }
1228 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1229 return wxFileType::ExpandCommand(command,
1230 wxFileType::MessageParameters(filename, mimetype));
1231 }
1232 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1233 wxArrayString arr;
1234 self->EnumAllFileTypes(arr);
1235 return wxArrayString2PyList_helper(arr);
1236 }
1237
1238 #include <wx/artprov.h>
1239
1240 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1241 static const wxString wxPyART_MENU(wxART_MENU);
1242 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1243 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1244 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1245 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1246 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1247 static const wxString wxPyART_OTHER(wxART_OTHER);
1248 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1249 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1250 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1251 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1252 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1253 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1254 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1255 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1256 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1257 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1258 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1259 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1260 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1261 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1262 static const wxString wxPyART_PRINT(wxART_PRINT);
1263 static const wxString wxPyART_HELP(wxART_HELP);
1264 static const wxString wxPyART_TIP(wxART_TIP);
1265 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1266 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1267 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1268 static const wxString wxPyART_HARDDISK(wxART_HARDDISK);
1269 static const wxString wxPyART_FLOPPY(wxART_FLOPPY);
1270 static const wxString wxPyART_CDROM(wxART_CDROM);
1271 static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE);
1272 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1273 static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN);
1274 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1275 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1276 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1277 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1278 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1279 static const wxString wxPyART_ERROR(wxART_ERROR);
1280 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1281 static const wxString wxPyART_WARNING(wxART_WARNING);
1282 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1283 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1284 // Python aware wxArtProvider
1285 class wxPyArtProvider : public wxArtProvider {
1286 public:
1287
1288 virtual wxBitmap CreateBitmap(const wxArtID& id,
1289 const wxArtClient& client,
1290 const wxSize& size) {
1291 wxBitmap rval = wxNullBitmap;
1292 bool blocked = wxPyBeginBlockThreads();
1293 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1294 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1295 PyObject* ro;
1296 wxBitmap* ptr;
1297 PyObject* s1, *s2;
1298 s1 = wx2PyString(id);
1299 s2 = wx2PyString(client);
1300 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1301 Py_DECREF(so);
1302 Py_DECREF(s1);
1303 Py_DECREF(s2);
1304 if (ro) {
1305 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1306 rval = *ptr;
1307 Py_DECREF(ro);
1308 }
1309 }
1310 wxPyEndBlockThreads(blocked);
1311 return rval;
1312 }
1313
1314 PYPRIVATE;
1315 };
1316
1317 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1318
1319
1320
1321 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1322 PyObject* ret = PyTuple_New(3);
1323 if (ret) {
1324 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1325 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1326 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1327 }
1328 return ret;
1329 }
1330
1331 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1332 bool cont;
1333 long index = 0;
1334 wxString value;
1335
1336 cont = self->GetFirstGroup(value, index);
1337 return __EnumerationHelper(cont, value, index);
1338 }
1339 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1340 bool cont;
1341 wxString value;
1342
1343 cont = self->GetNextGroup(value, index);
1344 return __EnumerationHelper(cont, value, index);
1345 }
1346 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1347 bool cont;
1348 long index = 0;
1349 wxString value;
1350
1351 cont = self->GetFirstEntry(value, index);
1352 return __EnumerationHelper(cont, value, index);
1353 }
1354 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1355 bool cont;
1356 wxString value;
1357
1358 cont = self->GetNextEntry(value, index);
1359 return __EnumerationHelper(cont, value, index);
1360 }
1361 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1362 long rv;
1363 self->Read(key, &rv, defaultVal);
1364 return rv;
1365 }
1366
1367 // See my_fragments.i
1368 SWIGSTATICINLINE(int)
1369 SWIG_AsVal_double(PyObject *obj, double* val)
1370 {
1371 if (PyNumber_Check(obj)) {
1372 if (val) *val = PyFloat_AsDouble(obj);
1373 return 1;
1374 }
1375 else {
1376 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1377 obj->ob_type->tp_name);
1378 PyErr_SetObject(PyExc_TypeError, errmsg);
1379 Py_DECREF(errmsg);
1380 }
1381 return 0;
1382 }
1383
1384
1385 SWIGSTATICINLINE(double)
1386 SWIG_As_double(PyObject* obj)
1387 {
1388 double v;
1389 if (!SWIG_AsVal_double(obj, &v)) {
1390 /*
1391 this is needed to make valgrind/purify happier. the other
1392 solution is throw an exception, but since this code should work
1393 with plain C ....
1394 */
1395 memset((void*)&v, 0, sizeof(double));
1396 }
1397 return v;
1398 }
1399
1400
1401 SWIGSTATICINLINE(int)
1402 SWIG_Check_double(PyObject* obj)
1403 {
1404 return SWIG_AsVal_double(obj, (double*)0);
1405 }
1406
1407 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1408 double rv;
1409 self->Read(key, &rv, defaultVal);
1410 return rv;
1411 }
1412 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1413 bool rv;
1414 self->Read(key, &rv, defaultVal);
1415 return rv;
1416 }
1417
1418 #include <wx/datetime.h>
1419
1420
1421 static const wxString wxPyDateFormatStr(wxT("%c"));
1422 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1423
1424 #define LOCAL_TZ wxDateTime::Local
1425
1426
1427 #if UINT_MAX < LONG_MAX
1428 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1429 #define SWIG_From_unsigned_SS_int SWIG_From_long
1430 /*@@*/
1431 #else
1432 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1433 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
1434 /*@@*/
1435 #endif
1436
1437 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1438 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1439 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1440 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1441 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1442 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1443 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1444 return (*self < *other);
1445 }
1446 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1447 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1448 return (*self <= *other);
1449 }
1450 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1451 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1452 return (*self > *other);
1453 }
1454 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1455 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1456 return (*self >= *other);
1457 }
1458 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1459 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1460 return (*self == *other);
1461 }
1462 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1463 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1464 return (*self != *other);
1465 }
1466 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1467 const wxChar* rv;
1468 const wxChar* _date = date;
1469 rv = self->ParseRfc822Date(_date);
1470 if (rv == NULL) return -1;
1471 return rv - _date;
1472 }
1473 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1474 const wxChar* rv;
1475 const wxChar* _date = date;
1476 rv = self->ParseFormat(_date, format, dateDef);
1477 if (rv == NULL) return -1;
1478 return rv - _date;
1479 }
1480 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1481 const wxChar* rv;
1482 const wxChar* _datetime = datetime;
1483 rv = self->ParseDateTime(_datetime);
1484 if (rv == NULL) return -1;
1485 return rv - _datetime;
1486 }
1487 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1488 const wxChar* rv;
1489 const wxChar* _date = date;
1490 rv = self->ParseDate(_date);
1491 if (rv == NULL) return -1;
1492 return rv - _date;
1493 }
1494 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1495 const wxChar* rv;
1496 const wxChar* _time = time;
1497 rv = self->ParseTime(_time);
1498 if (rv == NULL) return -1;
1499 return rv - _time;
1500 }
1501 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1502 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1503 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1504 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1505 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
1506 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
1507 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
1508 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
1509 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
1510 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
1511 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1512 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1513 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1514 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1515 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
1516 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
1517
1518 #include <wx/dataobj.h>
1519
1520 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1521 size_t count = self->GetFormatCount(dir);
1522 wxDataFormat* formats = new wxDataFormat[count];
1523 self->GetAllFormats(formats, dir);
1524
1525 bool blocked = wxPyBeginBlockThreads();
1526 PyObject* list = PyList_New(count);
1527 for (size_t i=0; i<count; i++) {
1528 wxDataFormat* format = new wxDataFormat(formats[i]);
1529 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
1530 PyList_Append(list, obj);
1531 Py_DECREF(obj);
1532 }
1533 wxPyEndBlockThreads(blocked);
1534 delete [] formats;
1535 return list;
1536 }
1537 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1538 PyObject* rval = NULL;
1539 size_t size = self->GetDataSize(format);
1540 bool blocked = wxPyBeginBlockThreads();
1541 if (size) {
1542 char* buf = new char[size];
1543 if (self->GetDataHere(format, buf))
1544 rval = PyString_FromStringAndSize(buf, size);
1545 delete [] buf;
1546 }
1547 if (! rval) {
1548 rval = Py_None;
1549 Py_INCREF(rval);
1550 }
1551 wxPyEndBlockThreads(blocked);
1552 return rval;
1553 }
1554 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1555 bool rval;
1556 bool blocked = wxPyBeginBlockThreads();
1557 if (PyString_Check(data)) {
1558 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1559 }
1560 else {
1561 // raise a TypeError if not a string
1562 PyErr_SetString(PyExc_TypeError, "String expected.");
1563 rval = false;
1564 }
1565 wxPyEndBlockThreads(blocked);
1566 return rval;
1567 }
1568 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1569 PyObject* rval = NULL;
1570 size_t size = self->GetDataSize();
1571 bool blocked = wxPyBeginBlockThreads();
1572 if (size) {
1573 char* buf = new char[size];
1574 if (self->GetDataHere(buf))
1575 rval = PyString_FromStringAndSize(buf, size);
1576 delete [] buf;
1577 }
1578 if (! rval) {
1579 rval = Py_None;
1580 Py_INCREF(rval);
1581 }
1582 wxPyEndBlockThreads(blocked);
1583 return rval;
1584 }
1585 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1586 bool rval;
1587 bool blocked = wxPyBeginBlockThreads();
1588 if (PyString_Check(data)) {
1589 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1590 }
1591 else {
1592 // raise a TypeError if not a string
1593 PyErr_SetString(PyExc_TypeError, "String expected.");
1594 rval = false;
1595 }
1596 wxPyEndBlockThreads(blocked);
1597 return rval;
1598 }
1599 // Create a new class for wxPython to use
1600 class wxPyDataObjectSimple : public wxDataObjectSimple {
1601 public:
1602 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1603 : wxDataObjectSimple(format) {}
1604
1605 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1606 bool GetDataHere(void *buf) const;
1607 bool SetData(size_t len, const void *buf) const;
1608 PYPRIVATE;
1609 };
1610
1611 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1612
1613 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1614 // We need to get the data for this object and write it to buf. I think
1615 // the best way to do this for wxPython is to have the Python method
1616 // return either a string or None and then act appropriately with the
1617 // C++ version.
1618
1619 bool rval = false;
1620 bool blocked = wxPyBeginBlockThreads();
1621 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1622 PyObject* ro;
1623 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1624 if (ro) {
1625 rval = (ro != Py_None && PyString_Check(ro));
1626 if (rval)
1627 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1628 Py_DECREF(ro);
1629 }
1630 }
1631 wxPyEndBlockThreads(blocked);
1632 return rval;
1633 }
1634
1635 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1636 // For this one we simply need to make a string from buf and len
1637 // and send it to the Python method.
1638 bool rval = false;
1639 bool blocked = wxPyBeginBlockThreads();
1640 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1641 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1642 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1643 Py_DECREF(data);
1644 }
1645 wxPyEndBlockThreads(blocked);
1646 return rval;
1647 }
1648
1649 // Create a new class for wxPython to use
1650 class wxPyTextDataObject : public wxTextDataObject {
1651 public:
1652 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1653 : wxTextDataObject(text) {}
1654
1655 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1656 DEC_PYCALLBACK_STRING__const(GetText);
1657 DEC_PYCALLBACK__STRING(SetText);
1658 PYPRIVATE;
1659 };
1660
1661 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1662 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1663 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1664
1665
1666 // Create a new class for wxPython to use
1667 class wxPyBitmapDataObject : public wxBitmapDataObject {
1668 public:
1669 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1670 : wxBitmapDataObject(bitmap) {}
1671
1672 wxBitmap GetBitmap() const;
1673 void SetBitmap(const wxBitmap& bitmap);
1674 PYPRIVATE;
1675 };
1676
1677 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1678 wxBitmap* rval = &wxNullBitmap;
1679 bool blocked = wxPyBeginBlockThreads();
1680 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1681 PyObject* ro;
1682 wxBitmap* ptr;
1683 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1684 if (ro) {
1685 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1686 rval = ptr;
1687 Py_DECREF(ro);
1688 }
1689 }
1690 wxPyEndBlockThreads(blocked);
1691 return *rval;
1692 }
1693
1694 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1695 bool blocked = wxPyBeginBlockThreads();
1696 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1697 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
1698 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1699 Py_DECREF(bo);
1700 }
1701 wxPyEndBlockThreads(blocked);
1702 }
1703
1704 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1705 bool rval;
1706 bool blocked = wxPyBeginBlockThreads();
1707 if (PyString_Check(data)) {
1708 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1709 }
1710 else {
1711 // raise a TypeError if not a string
1712 PyErr_SetString(PyExc_TypeError, "String expected.");
1713 rval = false;
1714 }
1715 wxPyEndBlockThreads(blocked);
1716 return rval;
1717 }
1718 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1719 PyObject* obj;
1720 bool blocked = wxPyBeginBlockThreads();
1721 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1722 wxPyEndBlockThreads(blocked);
1723 return obj;
1724 }
1725
1726 class wxMetafileDataObject : public wxDataObjectSimple
1727 {
1728 public:
1729 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
1730 };
1731
1732
1733 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1734
1735
1736 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1737 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1738 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1739 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1740 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1741
1742
1743 class wxPyTextDropTarget : public wxTextDropTarget {
1744 public:
1745 wxPyTextDropTarget() {}
1746
1747 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1748
1749 DEC_PYCALLBACK__(OnLeave);
1750 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1751 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1752 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1753 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1754
1755 PYPRIVATE;
1756 };
1757
1758 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1759 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1760 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1761 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1762 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1763 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1764
1765
1766
1767 class wxPyFileDropTarget : public wxFileDropTarget {
1768 public:
1769 wxPyFileDropTarget() {}
1770
1771 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1772
1773 DEC_PYCALLBACK__(OnLeave);
1774 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1775 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1776 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1777 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1778
1779 PYPRIVATE;
1780 };
1781
1782 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1783 const wxArrayString& filenames) {
1784 bool rval = false;
1785 bool blocked = wxPyBeginBlockThreads();
1786 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1787 PyObject* list = wxArrayString2PyList_helper(filenames);
1788 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1789 Py_DECREF(list);
1790 }
1791 wxPyEndBlockThreads(blocked);
1792 return rval;
1793 }
1794
1795
1796
1797 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1798 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1799 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1800 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1801 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1802
1803
1804
1805
1806 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1807
1808 #include <wx/display.h>
1809
1810 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
1811 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
1812
1813 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1814 #if !wxUSE_DISPLAY
1815 #include <wx/dynarray.h>
1816 #include <wx/vidmode.h>
1817
1818 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1819 #include "wx/arrimpl.cpp"
1820 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1821 const wxVideoMode wxDefaultVideoMode;
1822
1823 class wxDisplay
1824 {
1825 public:
1826 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1827 ~wxDisplay() {}
1828
1829 static size_t GetCount()
1830 { wxPyRaiseNotImplemented(); return 0; }
1831
1832 static int GetFromPoint(const wxPoint& pt)
1833 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1834 static int GetFromWindow(wxWindow *window)
1835 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1836
1837 virtual bool IsOk() const { return false; }
1838 virtual wxRect GetGeometry() const { wxRect r; return r; }
1839 virtual wxString GetName() const { return wxEmptyString; }
1840 bool IsPrimary() const { return false; }
1841
1842 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1843 { wxArrayVideoModes a; return a; }
1844
1845 virtual wxVideoMode GetCurrentMode() const
1846 { return wxDefaultVideoMode; }
1847
1848 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1849 { return false; }
1850
1851 void ResetMode() {}
1852 };
1853 #endif
1854
1855 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1856 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1857 PyObject* pyList = NULL;
1858 wxArrayVideoModes arr = self->GetModes(mode);
1859 bool blocked = wxPyBeginBlockThreads();
1860 pyList = PyList_New(0);
1861 for (int i=0; i < arr.GetCount(); i++) {
1862 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1863 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1864 PyList_Append(pyList, pyObj);
1865 Py_DECREF(pyObj);
1866 }
1867 wxPyEndBlockThreads(blocked);
1868 return pyList;
1869 }
1870
1871 #include <wx/stdpaths.h>
1872
1873 wxStandardPaths *StandardPaths_Get(){
1874 return (wxStandardPaths*) &wxStandardPaths::Get();
1875 }
1876 #ifdef __cplusplus
1877 extern "C" {
1878 #endif
1879 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1880 PyObject *resultobj;
1881 int arg1 ;
1882 wxColour result;
1883 PyObject * obj0 = 0 ;
1884 char *kwnames[] = {
1885 (char *) "index", NULL
1886 };
1887
1888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1889 arg1 = (int)SWIG_As_int(obj0);
1890 if (PyErr_Occurred()) SWIG_fail;
1891 {
1892 if (!wxPyCheckForApp()) SWIG_fail;
1893 PyThreadState* __tstate = wxPyBeginAllowThreads();
1894 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1895
1896 wxPyEndAllowThreads(__tstate);
1897 if (PyErr_Occurred()) SWIG_fail;
1898 }
1899 {
1900 wxColour * resultptr;
1901 resultptr = new wxColour((wxColour &) result);
1902 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1903 }
1904 return resultobj;
1905 fail:
1906 return NULL;
1907 }
1908
1909
1910 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
1911 PyObject *resultobj;
1912 int arg1 ;
1913 wxFont result;
1914 PyObject * obj0 = 0 ;
1915 char *kwnames[] = {
1916 (char *) "index", NULL
1917 };
1918
1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1920 arg1 = (int)SWIG_As_int(obj0);
1921 if (PyErr_Occurred()) SWIG_fail;
1922 {
1923 if (!wxPyCheckForApp()) SWIG_fail;
1924 PyThreadState* __tstate = wxPyBeginAllowThreads();
1925 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1926
1927 wxPyEndAllowThreads(__tstate);
1928 if (PyErr_Occurred()) SWIG_fail;
1929 }
1930 {
1931 wxFont * resultptr;
1932 resultptr = new wxFont((wxFont &) result);
1933 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1934 }
1935 return resultobj;
1936 fail:
1937 return NULL;
1938 }
1939
1940
1941 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
1942 PyObject *resultobj;
1943 int arg1 ;
1944 int result;
1945 PyObject * obj0 = 0 ;
1946 char *kwnames[] = {
1947 (char *) "index", NULL
1948 };
1949
1950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1951 arg1 = (int)SWIG_As_int(obj0);
1952 if (PyErr_Occurred()) SWIG_fail;
1953 {
1954 if (!wxPyCheckForApp()) SWIG_fail;
1955 PyThreadState* __tstate = wxPyBeginAllowThreads();
1956 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1957
1958 wxPyEndAllowThreads(__tstate);
1959 if (PyErr_Occurred()) SWIG_fail;
1960 }
1961 resultobj = SWIG_From_int((int)result);
1962 return resultobj;
1963 fail:
1964 return NULL;
1965 }
1966
1967
1968 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
1969 PyObject *resultobj;
1970 int arg1 ;
1971 bool result;
1972 PyObject * obj0 = 0 ;
1973 char *kwnames[] = {
1974 (char *) "index", NULL
1975 };
1976
1977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1978 arg1 = (int)SWIG_As_int(obj0);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 {
1981 if (!wxPyCheckForApp()) SWIG_fail;
1982 PyThreadState* __tstate = wxPyBeginAllowThreads();
1983 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1984
1985 wxPyEndAllowThreads(__tstate);
1986 if (PyErr_Occurred()) SWIG_fail;
1987 }
1988 {
1989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1990 }
1991 return resultobj;
1992 fail:
1993 return NULL;
1994 }
1995
1996
1997 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1998 PyObject *resultobj;
1999 int result;
2000 char *kwnames[] = {
2001 NULL
2002 };
2003
2004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
2005 {
2006 if (!wxPyCheckForApp()) SWIG_fail;
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 result = (int)wxSystemSettings::GetScreenType();
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 resultobj = SWIG_From_int((int)result);
2014 return resultobj;
2015 fail:
2016 return NULL;
2017 }
2018
2019
2020 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
2021 PyObject *resultobj;
2022 int arg1 ;
2023 PyObject * obj0 = 0 ;
2024 char *kwnames[] = {
2025 (char *) "screen", NULL
2026 };
2027
2028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
2029 arg1 = (int)SWIG_As_int(obj0);
2030 if (PyErr_Occurred()) SWIG_fail;
2031 {
2032 if (!wxPyCheckForApp()) SWIG_fail;
2033 PyThreadState* __tstate = wxPyBeginAllowThreads();
2034 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
2035
2036 wxPyEndAllowThreads(__tstate);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
2039 Py_INCREF(Py_None); resultobj = Py_None;
2040 return resultobj;
2041 fail:
2042 return NULL;
2043 }
2044
2045
2046 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
2047 PyObject *obj;
2048 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2049 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
2050 Py_INCREF(obj);
2051 return Py_BuildValue((char *)"");
2052 }
2053 static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) {
2054 PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
2055 return 1;
2056 }
2057
2058
2059 static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() {
2060 PyObject *pyobj;
2061
2062 {
2063 #if wxUSE_UNICODE
2064 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
2065 #else
2066 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
2067 #endif
2068 }
2069 return pyobj;
2070 }
2071
2072
2073 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
2074 PyObject *resultobj;
2075 wxSystemOptions *result;
2076 char *kwnames[] = {
2077 NULL
2078 };
2079
2080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
2081 {
2082 PyThreadState* __tstate = wxPyBeginAllowThreads();
2083 result = (wxSystemOptions *)new wxSystemOptions();
2084
2085 wxPyEndAllowThreads(__tstate);
2086 if (PyErr_Occurred()) SWIG_fail;
2087 }
2088 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
2089 return resultobj;
2090 fail:
2091 return NULL;
2092 }
2093
2094
2095 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
2096 PyObject *resultobj;
2097 wxString *arg1 = 0 ;
2098 wxString *arg2 = 0 ;
2099 bool temp1 = false ;
2100 bool temp2 = false ;
2101 PyObject * obj0 = 0 ;
2102 PyObject * obj1 = 0 ;
2103 char *kwnames[] = {
2104 (char *) "name",(char *) "value", NULL
2105 };
2106
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
2108 {
2109 arg1 = wxString_in_helper(obj0);
2110 if (arg1 == NULL) SWIG_fail;
2111 temp1 = true;
2112 }
2113 {
2114 arg2 = wxString_in_helper(obj1);
2115 if (arg2 == NULL) SWIG_fail;
2116 temp2 = true;
2117 }
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 Py_INCREF(Py_None); resultobj = Py_None;
2126 {
2127 if (temp1)
2128 delete arg1;
2129 }
2130 {
2131 if (temp2)
2132 delete arg2;
2133 }
2134 return resultobj;
2135 fail:
2136 {
2137 if (temp1)
2138 delete arg1;
2139 }
2140 {
2141 if (temp2)
2142 delete arg2;
2143 }
2144 return NULL;
2145 }
2146
2147
2148 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2149 PyObject *resultobj;
2150 wxString *arg1 = 0 ;
2151 int arg2 ;
2152 bool temp1 = false ;
2153 PyObject * obj0 = 0 ;
2154 PyObject * obj1 = 0 ;
2155 char *kwnames[] = {
2156 (char *) "name",(char *) "value", NULL
2157 };
2158
2159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
2160 {
2161 arg1 = wxString_in_helper(obj0);
2162 if (arg1 == NULL) SWIG_fail;
2163 temp1 = true;
2164 }
2165 arg2 = (int)SWIG_As_int(obj1);
2166 if (PyErr_Occurred()) SWIG_fail;
2167 {
2168 PyThreadState* __tstate = wxPyBeginAllowThreads();
2169 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
2170
2171 wxPyEndAllowThreads(__tstate);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 Py_INCREF(Py_None); resultobj = Py_None;
2175 {
2176 if (temp1)
2177 delete arg1;
2178 }
2179 return resultobj;
2180 fail:
2181 {
2182 if (temp1)
2183 delete arg1;
2184 }
2185 return NULL;
2186 }
2187
2188
2189 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 wxString *arg1 = 0 ;
2192 wxString result;
2193 bool temp1 = false ;
2194 PyObject * obj0 = 0 ;
2195 char *kwnames[] = {
2196 (char *) "name", NULL
2197 };
2198
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
2200 {
2201 arg1 = wxString_in_helper(obj0);
2202 if (arg1 == NULL) SWIG_fail;
2203 temp1 = true;
2204 }
2205 {
2206 PyThreadState* __tstate = wxPyBeginAllowThreads();
2207 result = wxSystemOptions::GetOption((wxString const &)*arg1);
2208
2209 wxPyEndAllowThreads(__tstate);
2210 if (PyErr_Occurred()) SWIG_fail;
2211 }
2212 {
2213 #if wxUSE_UNICODE
2214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2215 #else
2216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2217 #endif
2218 }
2219 {
2220 if (temp1)
2221 delete arg1;
2222 }
2223 return resultobj;
2224 fail:
2225 {
2226 if (temp1)
2227 delete arg1;
2228 }
2229 return NULL;
2230 }
2231
2232
2233 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2234 PyObject *resultobj;
2235 wxString *arg1 = 0 ;
2236 int result;
2237 bool temp1 = false ;
2238 PyObject * obj0 = 0 ;
2239 char *kwnames[] = {
2240 (char *) "name", NULL
2241 };
2242
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
2244 {
2245 arg1 = wxString_in_helper(obj0);
2246 if (arg1 == NULL) SWIG_fail;
2247 temp1 = true;
2248 }
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
2251 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
2256 resultobj = SWIG_From_int((int)result);
2257 {
2258 if (temp1)
2259 delete arg1;
2260 }
2261 return resultobj;
2262 fail:
2263 {
2264 if (temp1)
2265 delete arg1;
2266 }
2267 return NULL;
2268 }
2269
2270
2271 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 wxString *arg1 = 0 ;
2274 bool result;
2275 bool temp1 = false ;
2276 PyObject * obj0 = 0 ;
2277 char *kwnames[] = {
2278 (char *) "name", NULL
2279 };
2280
2281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2282 {
2283 arg1 = wxString_in_helper(obj0);
2284 if (arg1 == NULL) SWIG_fail;
2285 temp1 = true;
2286 }
2287 {
2288 PyThreadState* __tstate = wxPyBeginAllowThreads();
2289 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2290
2291 wxPyEndAllowThreads(__tstate);
2292 if (PyErr_Occurred()) SWIG_fail;
2293 }
2294 {
2295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2296 }
2297 {
2298 if (temp1)
2299 delete arg1;
2300 }
2301 return resultobj;
2302 fail:
2303 {
2304 if (temp1)
2305 delete arg1;
2306 }
2307 return NULL;
2308 }
2309
2310
2311 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
2312 PyObject *obj;
2313 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2314 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2315 Py_INCREF(obj);
2316 return Py_BuildValue((char *)"");
2317 }
2318 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
2319 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2320 return 1;
2321 }
2322
2323
2324 static PyObject *_wrap_FileSelectorPromptStr_get() {
2325 PyObject *pyobj;
2326
2327 {
2328 #if wxUSE_UNICODE
2329 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2330 #else
2331 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2332 #endif
2333 }
2334 return pyobj;
2335 }
2336
2337
2338 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
2339 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2340 return 1;
2341 }
2342
2343
2344 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2345 PyObject *pyobj;
2346
2347 {
2348 #if wxUSE_UNICODE
2349 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2350 #else
2351 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2352 #endif
2353 }
2354 return pyobj;
2355 }
2356
2357
2358 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
2359 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2360 return 1;
2361 }
2362
2363
2364 static PyObject *_wrap_DirSelectorPromptStr_get() {
2365 PyObject *pyobj;
2366
2367 {
2368 #if wxUSE_UNICODE
2369 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2370 #else
2371 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2372 #endif
2373 }
2374 return pyobj;
2375 }
2376
2377
2378 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
2379 PyObject *resultobj;
2380 long result;
2381 char *kwnames[] = {
2382 NULL
2383 };
2384
2385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2386 {
2387 PyThreadState* __tstate = wxPyBeginAllowThreads();
2388 result = (long)wxNewId();
2389
2390 wxPyEndAllowThreads(__tstate);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 }
2393 resultobj = SWIG_From_long((long)result);
2394 return resultobj;
2395 fail:
2396 return NULL;
2397 }
2398
2399
2400 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
2401 PyObject *resultobj;
2402 long arg1 ;
2403 PyObject * obj0 = 0 ;
2404 char *kwnames[] = {
2405 (char *) "id", NULL
2406 };
2407
2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2409 arg1 = (long)SWIG_As_long(obj0);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 {
2412 PyThreadState* __tstate = wxPyBeginAllowThreads();
2413 wxRegisterId(arg1);
2414
2415 wxPyEndAllowThreads(__tstate);
2416 if (PyErr_Occurred()) SWIG_fail;
2417 }
2418 Py_INCREF(Py_None); resultobj = Py_None;
2419 return resultobj;
2420 fail:
2421 return NULL;
2422 }
2423
2424
2425 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
2426 PyObject *resultobj;
2427 long result;
2428 char *kwnames[] = {
2429 NULL
2430 };
2431
2432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2433 {
2434 PyThreadState* __tstate = wxPyBeginAllowThreads();
2435 result = (long)wxGetCurrentId();
2436
2437 wxPyEndAllowThreads(__tstate);
2438 if (PyErr_Occurred()) SWIG_fail;
2439 }
2440 resultobj = SWIG_From_long((long)result);
2441 return resultobj;
2442 fail:
2443 return NULL;
2444 }
2445
2446
2447 static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
2448 PyObject *resultobj;
2449 int arg1 ;
2450 bool result;
2451 PyObject * obj0 = 0 ;
2452 char *kwnames[] = {
2453 (char *) "id", NULL
2454 };
2455
2456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
2457 arg1 = (int)SWIG_As_int(obj0);
2458 if (PyErr_Occurred()) SWIG_fail;
2459 {
2460 PyThreadState* __tstate = wxPyBeginAllowThreads();
2461 result = (bool)wxIsStockID(arg1);
2462
2463 wxPyEndAllowThreads(__tstate);
2464 if (PyErr_Occurred()) SWIG_fail;
2465 }
2466 {
2467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2468 }
2469 return resultobj;
2470 fail:
2471 return NULL;
2472 }
2473
2474
2475 static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2476 PyObject *resultobj;
2477 int arg1 ;
2478 wxString *arg2 = 0 ;
2479 bool result;
2480 bool temp2 = false ;
2481 PyObject * obj0 = 0 ;
2482 PyObject * obj1 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "id",(char *) "label", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
2488 arg1 = (int)SWIG_As_int(obj0);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 {
2491 arg2 = wxString_in_helper(obj1);
2492 if (arg2 == NULL) SWIG_fail;
2493 temp2 = true;
2494 }
2495 {
2496 PyThreadState* __tstate = wxPyBeginAllowThreads();
2497 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2498
2499 wxPyEndAllowThreads(__tstate);
2500 if (PyErr_Occurred()) SWIG_fail;
2501 }
2502 {
2503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2504 }
2505 {
2506 if (temp2)
2507 delete arg2;
2508 }
2509 return resultobj;
2510 fail:
2511 {
2512 if (temp2)
2513 delete arg2;
2514 }
2515 return NULL;
2516 }
2517
2518
2519 static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2520 PyObject *resultobj;
2521 int arg1 ;
2522 wxString result;
2523 PyObject * obj0 = 0 ;
2524 char *kwnames[] = {
2525 (char *) "id", NULL
2526 };
2527
2528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail;
2529 arg1 = (int)SWIG_As_int(obj0);
2530 if (PyErr_Occurred()) SWIG_fail;
2531 {
2532 PyThreadState* __tstate = wxPyBeginAllowThreads();
2533 result = wxGetStockLabel(arg1);
2534
2535 wxPyEndAllowThreads(__tstate);
2536 if (PyErr_Occurred()) SWIG_fail;
2537 }
2538 {
2539 #if wxUSE_UNICODE
2540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2541 #else
2542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2543 #endif
2544 }
2545 return resultobj;
2546 fail:
2547 return NULL;
2548 }
2549
2550
2551 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
2552 PyObject *resultobj;
2553 char *kwnames[] = {
2554 NULL
2555 };
2556
2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2558 {
2559 if (!wxPyCheckForApp()) SWIG_fail;
2560 PyThreadState* __tstate = wxPyBeginAllowThreads();
2561 wxBell();
2562
2563 wxPyEndAllowThreads(__tstate);
2564 if (PyErr_Occurred()) SWIG_fail;
2565 }
2566 Py_INCREF(Py_None); resultobj = Py_None;
2567 return resultobj;
2568 fail:
2569 return NULL;
2570 }
2571
2572
2573 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
2574 PyObject *resultobj;
2575 char *kwnames[] = {
2576 NULL
2577 };
2578
2579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2580 {
2581 if (!wxPyCheckForApp()) SWIG_fail;
2582 PyThreadState* __tstate = wxPyBeginAllowThreads();
2583 wxEndBusyCursor();
2584
2585 wxPyEndAllowThreads(__tstate);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 Py_INCREF(Py_None); resultobj = Py_None;
2589 return resultobj;
2590 fail:
2591 return NULL;
2592 }
2593
2594
2595 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
2596 PyObject *resultobj;
2597 bool arg1 = (bool) true ;
2598 long result;
2599 PyObject * obj0 = 0 ;
2600 char *kwnames[] = {
2601 (char *) "resetTimer", NULL
2602 };
2603
2604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2605 if (obj0) {
2606 arg1 = (bool)SWIG_As_bool(obj0);
2607 if (PyErr_Occurred()) SWIG_fail;
2608 }
2609 {
2610 PyThreadState* __tstate = wxPyBeginAllowThreads();
2611 result = (long)wxGetElapsedTime(arg1);
2612
2613 wxPyEndAllowThreads(__tstate);
2614 if (PyErr_Occurred()) SWIG_fail;
2615 }
2616 resultobj = SWIG_From_long((long)result);
2617 return resultobj;
2618 fail:
2619 return NULL;
2620 }
2621
2622
2623 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
2624 PyObject *resultobj;
2625 int *arg1 = (int *) 0 ;
2626 int *arg2 = (int *) 0 ;
2627 int temp1 ;
2628 int res1 = 0 ;
2629 int temp2 ;
2630 int res2 = 0 ;
2631 char *kwnames[] = {
2632 NULL
2633 };
2634
2635 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2636 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2638 {
2639 if (!wxPyCheckForApp()) SWIG_fail;
2640 PyThreadState* __tstate = wxPyBeginAllowThreads();
2641 wxGetMousePosition(arg1,arg2);
2642
2643 wxPyEndAllowThreads(__tstate);
2644 if (PyErr_Occurred()) SWIG_fail;
2645 }
2646 Py_INCREF(Py_None); resultobj = Py_None;
2647 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2648 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2649 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2650 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2651 return resultobj;
2652 fail:
2653 return NULL;
2654 }
2655
2656
2657 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
2658 PyObject *resultobj;
2659 bool result;
2660 char *kwnames[] = {
2661 NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 result = (bool)wxIsBusy();
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 {
2673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2674 }
2675 return resultobj;
2676 fail:
2677 return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxString result;
2684 char *kwnames[] = {
2685 NULL
2686 };
2687
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2689 {
2690 PyThreadState* __tstate = wxPyBeginAllowThreads();
2691 result = wxNow();
2692
2693 wxPyEndAllowThreads(__tstate);
2694 if (PyErr_Occurred()) SWIG_fail;
2695 }
2696 {
2697 #if wxUSE_UNICODE
2698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2699 #else
2700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2701 #endif
2702 }
2703 return resultobj;
2704 fail:
2705 return NULL;
2706 }
2707
2708
2709 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
2710 PyObject *resultobj;
2711 wxString const &arg1_defvalue = wxPyEmptyString ;
2712 wxString *arg1 = (wxString *) &arg1_defvalue ;
2713 bool result;
2714 bool temp1 = false ;
2715 PyObject * obj0 = 0 ;
2716 char *kwnames[] = {
2717 (char *) "command", NULL
2718 };
2719
2720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2721 if (obj0) {
2722 {
2723 arg1 = wxString_in_helper(obj0);
2724 if (arg1 == NULL) SWIG_fail;
2725 temp1 = true;
2726 }
2727 }
2728 {
2729 PyThreadState* __tstate = wxPyBeginAllowThreads();
2730 result = (bool)wxShell((wxString const &)*arg1);
2731
2732 wxPyEndAllowThreads(__tstate);
2733 if (PyErr_Occurred()) SWIG_fail;
2734 }
2735 {
2736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2737 }
2738 {
2739 if (temp1)
2740 delete arg1;
2741 }
2742 return resultobj;
2743 fail:
2744 {
2745 if (temp1)
2746 delete arg1;
2747 }
2748 return NULL;
2749 }
2750
2751
2752 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
2753 PyObject *resultobj;
2754 char *kwnames[] = {
2755 NULL
2756 };
2757
2758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2759 {
2760 PyThreadState* __tstate = wxPyBeginAllowThreads();
2761 wxStartTimer();
2762
2763 wxPyEndAllowThreads(__tstate);
2764 if (PyErr_Occurred()) SWIG_fail;
2765 }
2766 Py_INCREF(Py_None); resultobj = Py_None;
2767 return resultobj;
2768 fail:
2769 return NULL;
2770 }
2771
2772
2773 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
2774 PyObject *resultobj;
2775 int *arg1 = (int *) 0 ;
2776 int *arg2 = (int *) 0 ;
2777 int result;
2778 int temp1 ;
2779 int res1 = 0 ;
2780 int temp2 ;
2781 int res2 = 0 ;
2782 char *kwnames[] = {
2783 NULL
2784 };
2785
2786 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2787 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2789 {
2790 PyThreadState* __tstate = wxPyBeginAllowThreads();
2791 result = (int)wxGetOsVersion(arg1,arg2);
2792
2793 wxPyEndAllowThreads(__tstate);
2794 if (PyErr_Occurred()) SWIG_fail;
2795 }
2796 resultobj = SWIG_From_int((int)result);
2797 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2798 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2799 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2800 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2801 return resultobj;
2802 fail:
2803 return NULL;
2804 }
2805
2806
2807 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
2808 PyObject *resultobj;
2809 wxString result;
2810 char *kwnames[] = {
2811 NULL
2812 };
2813
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2815 {
2816 PyThreadState* __tstate = wxPyBeginAllowThreads();
2817 result = wxGetOsDescription();
2818
2819 wxPyEndAllowThreads(__tstate);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 }
2822 {
2823 #if wxUSE_UNICODE
2824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2825 #else
2826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2827 #endif
2828 }
2829 return resultobj;
2830 fail:
2831 return NULL;
2832 }
2833
2834
2835 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
2836 PyObject *resultobj;
2837 long result;
2838 char *kwnames[] = {
2839 NULL
2840 };
2841
2842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2843 {
2844 PyThreadState* __tstate = wxPyBeginAllowThreads();
2845 result = (long)wxGetFreeMemory();
2846
2847 wxPyEndAllowThreads(__tstate);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 }
2850 resultobj = SWIG_From_long((long)result);
2851 return resultobj;
2852 fail:
2853 return NULL;
2854 }
2855
2856
2857 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
2858 PyObject *resultobj;
2859 int arg1 ;
2860 bool result;
2861 PyObject * obj0 = 0 ;
2862 char *kwnames[] = {
2863 (char *) "wFlags", NULL
2864 };
2865
2866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2867 arg1 = (int)SWIG_As_int(obj0);
2868 if (PyErr_Occurred()) SWIG_fail;
2869 {
2870 if (!wxPyCheckForApp()) SWIG_fail;
2871 PyThreadState* __tstate = wxPyBeginAllowThreads();
2872 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2873
2874 wxPyEndAllowThreads(__tstate);
2875 if (PyErr_Occurred()) SWIG_fail;
2876 }
2877 {
2878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2879 }
2880 return resultobj;
2881 fail:
2882 return NULL;
2883 }
2884
2885
2886 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
2887 PyObject *resultobj;
2888 int arg1 ;
2889 PyObject * obj0 = 0 ;
2890 char *kwnames[] = {
2891 (char *) "secs", NULL
2892 };
2893
2894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2895 arg1 = (int)SWIG_As_int(obj0);
2896 if (PyErr_Occurred()) SWIG_fail;
2897 {
2898 PyThreadState* __tstate = wxPyBeginAllowThreads();
2899 wxSleep(arg1);
2900
2901 wxPyEndAllowThreads(__tstate);
2902 if (PyErr_Occurred()) SWIG_fail;
2903 }
2904 Py_INCREF(Py_None); resultobj = Py_None;
2905 return resultobj;
2906 fail:
2907 return NULL;
2908 }
2909
2910
2911 static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2912 PyObject *resultobj;
2913 unsigned long arg1 ;
2914 PyObject * obj0 = 0 ;
2915 char *kwnames[] = {
2916 (char *) "milliseconds", NULL
2917 };
2918
2919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2920 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 {
2923 PyThreadState* __tstate = wxPyBeginAllowThreads();
2924 wxMilliSleep(arg1);
2925
2926 wxPyEndAllowThreads(__tstate);
2927 if (PyErr_Occurred()) SWIG_fail;
2928 }
2929 Py_INCREF(Py_None); resultobj = Py_None;
2930 return resultobj;
2931 fail:
2932 return NULL;
2933 }
2934
2935
2936 static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2937 PyObject *resultobj;
2938 unsigned long arg1 ;
2939 PyObject * obj0 = 0 ;
2940 char *kwnames[] = {
2941 (char *) "microseconds", NULL
2942 };
2943
2944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2945 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2946 if (PyErr_Occurred()) SWIG_fail;
2947 {
2948 PyThreadState* __tstate = wxPyBeginAllowThreads();
2949 wxMicroSleep(arg1);
2950
2951 wxPyEndAllowThreads(__tstate);
2952 if (PyErr_Occurred()) SWIG_fail;
2953 }
2954 Py_INCREF(Py_None); resultobj = Py_None;
2955 return resultobj;
2956 fail:
2957 return NULL;
2958 }
2959
2960
2961 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
2962 PyObject *resultobj;
2963 bool arg1 ;
2964 PyObject * obj0 = 0 ;
2965 char *kwnames[] = {
2966 (char *) "enable", NULL
2967 };
2968
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2970 arg1 = (bool)SWIG_As_bool(obj0);
2971 if (PyErr_Occurred()) SWIG_fail;
2972 {
2973 PyThreadState* __tstate = wxPyBeginAllowThreads();
2974 wxEnableTopLevelWindows(arg1);
2975
2976 wxPyEndAllowThreads(__tstate);
2977 if (PyErr_Occurred()) SWIG_fail;
2978 }
2979 Py_INCREF(Py_None); resultobj = Py_None;
2980 return resultobj;
2981 fail:
2982 return NULL;
2983 }
2984
2985
2986 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
2987 PyObject *resultobj;
2988 wxString *arg1 = 0 ;
2989 wxString result;
2990 bool temp1 = false ;
2991 PyObject * obj0 = 0 ;
2992 char *kwnames[] = {
2993 (char *) "in", NULL
2994 };
2995
2996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2997 {
2998 arg1 = wxString_in_helper(obj0);
2999 if (arg1 == NULL) SWIG_fail;
3000 temp1 = true;
3001 }
3002 {
3003 PyThreadState* __tstate = wxPyBeginAllowThreads();
3004 result = wxStripMenuCodes((wxString const &)*arg1);
3005
3006 wxPyEndAllowThreads(__tstate);
3007 if (PyErr_Occurred()) SWIG_fail;
3008 }
3009 {
3010 #if wxUSE_UNICODE
3011 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3012 #else
3013 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3014 #endif
3015 }
3016 {
3017 if (temp1)
3018 delete arg1;
3019 }
3020 return resultobj;
3021 fail:
3022 {
3023 if (temp1)
3024 delete arg1;
3025 }
3026 return NULL;
3027 }
3028
3029
3030 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
3031 PyObject *resultobj;
3032 wxString result;
3033 char *kwnames[] = {
3034 NULL
3035 };
3036
3037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
3038 {
3039 PyThreadState* __tstate = wxPyBeginAllowThreads();
3040 result = wxGetEmailAddress();
3041
3042 wxPyEndAllowThreads(__tstate);
3043 if (PyErr_Occurred()) SWIG_fail;
3044 }
3045 {
3046 #if wxUSE_UNICODE
3047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3048 #else
3049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3050 #endif
3051 }
3052 return resultobj;
3053 fail:
3054 return NULL;
3055 }
3056
3057
3058 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
3059 PyObject *resultobj;
3060 wxString result;
3061 char *kwnames[] = {
3062 NULL
3063 };
3064
3065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
3066 {
3067 PyThreadState* __tstate = wxPyBeginAllowThreads();
3068 result = wxGetHostName();
3069
3070 wxPyEndAllowThreads(__tstate);
3071 if (PyErr_Occurred()) SWIG_fail;
3072 }
3073 {
3074 #if wxUSE_UNICODE
3075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3076 #else
3077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3078 #endif
3079 }
3080 return resultobj;
3081 fail:
3082 return NULL;
3083 }
3084
3085
3086 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
3087 PyObject *resultobj;
3088 wxString result;
3089 char *kwnames[] = {
3090 NULL
3091 };
3092
3093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
3094 {
3095 PyThreadState* __tstate = wxPyBeginAllowThreads();
3096 result = wxGetFullHostName();
3097
3098 wxPyEndAllowThreads(__tstate);
3099 if (PyErr_Occurred()) SWIG_fail;
3100 }
3101 {
3102 #if wxUSE_UNICODE
3103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3104 #else
3105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3106 #endif
3107 }
3108 return resultobj;
3109 fail:
3110 return NULL;
3111 }
3112
3113
3114 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
3115 PyObject *resultobj;
3116 wxString result;
3117 char *kwnames[] = {
3118 NULL
3119 };
3120
3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
3122 {
3123 PyThreadState* __tstate = wxPyBeginAllowThreads();
3124 result = wxGetUserId();
3125
3126 wxPyEndAllowThreads(__tstate);
3127 if (PyErr_Occurred()) SWIG_fail;
3128 }
3129 {
3130 #if wxUSE_UNICODE
3131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3132 #else
3133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3134 #endif
3135 }
3136 return resultobj;
3137 fail:
3138 return NULL;
3139 }
3140
3141
3142 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
3143 PyObject *resultobj;
3144 wxString result;
3145 char *kwnames[] = {
3146 NULL
3147 };
3148
3149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
3150 {
3151 PyThreadState* __tstate = wxPyBeginAllowThreads();
3152 result = wxGetUserName();
3153
3154 wxPyEndAllowThreads(__tstate);
3155 if (PyErr_Occurred()) SWIG_fail;
3156 }
3157 {
3158 #if wxUSE_UNICODE
3159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3160 #else
3161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3162 #endif
3163 }
3164 return resultobj;
3165 fail:
3166 return NULL;
3167 }
3168
3169
3170 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
3171 PyObject *resultobj;
3172 wxString result;
3173 char *kwnames[] = {
3174 NULL
3175 };
3176
3177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
3178 {
3179 PyThreadState* __tstate = wxPyBeginAllowThreads();
3180 result = wxGetHomeDir();
3181
3182 wxPyEndAllowThreads(__tstate);
3183 if (PyErr_Occurred()) SWIG_fail;
3184 }
3185 {
3186 #if wxUSE_UNICODE
3187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3188 #else
3189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3190 #endif
3191 }
3192 return resultobj;
3193 fail:
3194 return NULL;
3195 }
3196
3197
3198 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
3199 PyObject *resultobj;
3200 wxString const &arg1_defvalue = wxPyEmptyString ;
3201 wxString *arg1 = (wxString *) &arg1_defvalue ;
3202 wxString result;
3203 bool temp1 = false ;
3204 PyObject * obj0 = 0 ;
3205 char *kwnames[] = {
3206 (char *) "user", NULL
3207 };
3208
3209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
3210 if (obj0) {
3211 {
3212 arg1 = wxString_in_helper(obj0);
3213 if (arg1 == NULL) SWIG_fail;
3214 temp1 = true;
3215 }
3216 }
3217 {
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = wxGetUserHome((wxString const &)*arg1);
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 {
3225 #if wxUSE_UNICODE
3226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3227 #else
3228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3229 #endif
3230 }
3231 {
3232 if (temp1)
3233 delete arg1;
3234 }
3235 return resultobj;
3236 fail:
3237 {
3238 if (temp1)
3239 delete arg1;
3240 }
3241 return NULL;
3242 }
3243
3244
3245 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
3246 PyObject *resultobj;
3247 unsigned long result;
3248 char *kwnames[] = {
3249 NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 result = (unsigned long)wxGetProcessId();
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
3261 return resultobj;
3262 fail:
3263 return NULL;
3264 }
3265
3266
3267 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
3268 PyObject *resultobj;
3269 char *kwnames[] = {
3270 NULL
3271 };
3272
3273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3274 {
3275 PyThreadState* __tstate = wxPyBeginAllowThreads();
3276 wxTrap();
3277
3278 wxPyEndAllowThreads(__tstate);
3279 if (PyErr_Occurred()) SWIG_fail;
3280 }
3281 Py_INCREF(Py_None); resultobj = Py_None;
3282 return resultobj;
3283 fail:
3284 return NULL;
3285 }
3286
3287
3288 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3289 PyObject *resultobj;
3290 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3291 wxString *arg1 = (wxString *) &arg1_defvalue ;
3292 wxString const &arg2_defvalue = wxPyEmptyString ;
3293 wxString *arg2 = (wxString *) &arg2_defvalue ;
3294 wxString const &arg3_defvalue = wxPyEmptyString ;
3295 wxString *arg3 = (wxString *) &arg3_defvalue ;
3296 wxString const &arg4_defvalue = wxPyEmptyString ;
3297 wxString *arg4 = (wxString *) &arg4_defvalue ;
3298 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3299 wxString *arg5 = (wxString *) &arg5_defvalue ;
3300 int arg6 = (int) 0 ;
3301 wxWindow *arg7 = (wxWindow *) NULL ;
3302 int arg8 = (int) -1 ;
3303 int arg9 = (int) -1 ;
3304 wxString result;
3305 bool temp1 = false ;
3306 bool temp2 = false ;
3307 bool temp3 = false ;
3308 bool temp4 = false ;
3309 bool temp5 = false ;
3310 PyObject * obj0 = 0 ;
3311 PyObject * obj1 = 0 ;
3312 PyObject * obj2 = 0 ;
3313 PyObject * obj3 = 0 ;
3314 PyObject * obj4 = 0 ;
3315 PyObject * obj5 = 0 ;
3316 PyObject * obj6 = 0 ;
3317 PyObject * obj7 = 0 ;
3318 PyObject * obj8 = 0 ;
3319 char *kwnames[] = {
3320 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3321 };
3322
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3324 if (obj0) {
3325 {
3326 arg1 = wxString_in_helper(obj0);
3327 if (arg1 == NULL) SWIG_fail;
3328 temp1 = true;
3329 }
3330 }
3331 if (obj1) {
3332 {
3333 arg2 = wxString_in_helper(obj1);
3334 if (arg2 == NULL) SWIG_fail;
3335 temp2 = true;
3336 }
3337 }
3338 if (obj2) {
3339 {
3340 arg3 = wxString_in_helper(obj2);
3341 if (arg3 == NULL) SWIG_fail;
3342 temp3 = true;
3343 }
3344 }
3345 if (obj3) {
3346 {
3347 arg4 = wxString_in_helper(obj3);
3348 if (arg4 == NULL) SWIG_fail;
3349 temp4 = true;
3350 }
3351 }
3352 if (obj4) {
3353 {
3354 arg5 = wxString_in_helper(obj4);
3355 if (arg5 == NULL) SWIG_fail;
3356 temp5 = true;
3357 }
3358 }
3359 if (obj5) {
3360 arg6 = (int)SWIG_As_int(obj5);
3361 if (PyErr_Occurred()) SWIG_fail;
3362 }
3363 if (obj6) {
3364 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3366 }
3367 if (obj7) {
3368 arg8 = (int)SWIG_As_int(obj7);
3369 if (PyErr_Occurred()) SWIG_fail;
3370 }
3371 if (obj8) {
3372 arg9 = (int)SWIG_As_int(obj8);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 {
3376 if (!wxPyCheckForApp()) SWIG_fail;
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3379
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 {
3384 #if wxUSE_UNICODE
3385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3386 #else
3387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3388 #endif
3389 }
3390 {
3391 if (temp1)
3392 delete arg1;
3393 }
3394 {
3395 if (temp2)
3396 delete arg2;
3397 }
3398 {
3399 if (temp3)
3400 delete arg3;
3401 }
3402 {
3403 if (temp4)
3404 delete arg4;
3405 }
3406 {
3407 if (temp5)
3408 delete arg5;
3409 }
3410 return resultobj;
3411 fail:
3412 {
3413 if (temp1)
3414 delete arg1;
3415 }
3416 {
3417 if (temp2)
3418 delete arg2;
3419 }
3420 {
3421 if (temp3)
3422 delete arg3;
3423 }
3424 {
3425 if (temp4)
3426 delete arg4;
3427 }
3428 {
3429 if (temp5)
3430 delete arg5;
3431 }
3432 return NULL;
3433 }
3434
3435
3436 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3437 PyObject *resultobj;
3438 wxString *arg1 = 0 ;
3439 wxString *arg2 = 0 ;
3440 wxString const &arg3_defvalue = wxPyEmptyString ;
3441 wxString *arg3 = (wxString *) &arg3_defvalue ;
3442 wxWindow *arg4 = (wxWindow *) NULL ;
3443 wxString result;
3444 bool temp1 = false ;
3445 bool temp2 = false ;
3446 bool temp3 = false ;
3447 PyObject * obj0 = 0 ;
3448 PyObject * obj1 = 0 ;
3449 PyObject * obj2 = 0 ;
3450 PyObject * obj3 = 0 ;
3451 char *kwnames[] = {
3452 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3456 {
3457 arg1 = wxString_in_helper(obj0);
3458 if (arg1 == NULL) SWIG_fail;
3459 temp1 = true;
3460 }
3461 {
3462 arg2 = wxString_in_helper(obj1);
3463 if (arg2 == NULL) SWIG_fail;
3464 temp2 = true;
3465 }
3466 if (obj2) {
3467 {
3468 arg3 = wxString_in_helper(obj2);
3469 if (arg3 == NULL) SWIG_fail;
3470 temp3 = true;
3471 }
3472 }
3473 if (obj3) {
3474 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3476 }
3477 {
3478 if (!wxPyCheckForApp()) SWIG_fail;
3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
3480 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3481
3482 wxPyEndAllowThreads(__tstate);
3483 if (PyErr_Occurred()) SWIG_fail;
3484 }
3485 {
3486 #if wxUSE_UNICODE
3487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3488 #else
3489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3490 #endif
3491 }
3492 {
3493 if (temp1)
3494 delete arg1;
3495 }
3496 {
3497 if (temp2)
3498 delete arg2;
3499 }
3500 {
3501 if (temp3)
3502 delete arg3;
3503 }
3504 return resultobj;
3505 fail:
3506 {
3507 if (temp1)
3508 delete arg1;
3509 }
3510 {
3511 if (temp2)
3512 delete arg2;
3513 }
3514 {
3515 if (temp3)
3516 delete arg3;
3517 }
3518 return NULL;
3519 }
3520
3521
3522 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3523 PyObject *resultobj;
3524 wxString *arg1 = 0 ;
3525 wxString *arg2 = 0 ;
3526 wxString const &arg3_defvalue = wxPyEmptyString ;
3527 wxString *arg3 = (wxString *) &arg3_defvalue ;
3528 wxWindow *arg4 = (wxWindow *) NULL ;
3529 wxString result;
3530 bool temp1 = false ;
3531 bool temp2 = false ;
3532 bool temp3 = false ;
3533 PyObject * obj0 = 0 ;
3534 PyObject * obj1 = 0 ;
3535 PyObject * obj2 = 0 ;
3536 PyObject * obj3 = 0 ;
3537 char *kwnames[] = {
3538 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3539 };
3540
3541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3542 {
3543 arg1 = wxString_in_helper(obj0);
3544 if (arg1 == NULL) SWIG_fail;
3545 temp1 = true;
3546 }
3547 {
3548 arg2 = wxString_in_helper(obj1);
3549 if (arg2 == NULL) SWIG_fail;
3550 temp2 = true;
3551 }
3552 if (obj2) {
3553 {
3554 arg3 = wxString_in_helper(obj2);
3555 if (arg3 == NULL) SWIG_fail;
3556 temp3 = true;
3557 }
3558 }
3559 if (obj3) {
3560 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3562 }
3563 {
3564 if (!wxPyCheckForApp()) SWIG_fail;
3565 PyThreadState* __tstate = wxPyBeginAllowThreads();
3566 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3567
3568 wxPyEndAllowThreads(__tstate);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 {
3572 #if wxUSE_UNICODE
3573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3574 #else
3575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3576 #endif
3577 }
3578 {
3579 if (temp1)
3580 delete arg1;
3581 }
3582 {
3583 if (temp2)
3584 delete arg2;
3585 }
3586 {
3587 if (temp3)
3588 delete arg3;
3589 }
3590 return resultobj;
3591 fail:
3592 {
3593 if (temp1)
3594 delete arg1;
3595 }
3596 {
3597 if (temp2)
3598 delete arg2;
3599 }
3600 {
3601 if (temp3)
3602 delete arg3;
3603 }
3604 return NULL;
3605 }
3606
3607
3608 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj;
3610 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3611 wxString *arg1 = (wxString *) &arg1_defvalue ;
3612 wxString const &arg2_defvalue = wxPyEmptyString ;
3613 wxString *arg2 = (wxString *) &arg2_defvalue ;
3614 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3615 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3616 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3617 wxWindow *arg5 = (wxWindow *) NULL ;
3618 wxString result;
3619 bool temp1 = false ;
3620 bool temp2 = false ;
3621 wxPoint temp4 ;
3622 PyObject * obj0 = 0 ;
3623 PyObject * obj1 = 0 ;
3624 PyObject * obj2 = 0 ;
3625 PyObject * obj3 = 0 ;
3626 PyObject * obj4 = 0 ;
3627 char *kwnames[] = {
3628 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3629 };
3630
3631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3632 if (obj0) {
3633 {
3634 arg1 = wxString_in_helper(obj0);
3635 if (arg1 == NULL) SWIG_fail;
3636 temp1 = true;
3637 }
3638 }
3639 if (obj1) {
3640 {
3641 arg2 = wxString_in_helper(obj1);
3642 if (arg2 == NULL) SWIG_fail;
3643 temp2 = true;
3644 }
3645 }
3646 if (obj2) {
3647 arg3 = (long)SWIG_As_long(obj2);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 if (obj3) {
3651 {
3652 arg4 = &temp4;
3653 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3654 }
3655 }
3656 if (obj4) {
3657 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3659 }
3660 {
3661 if (!wxPyCheckForApp()) SWIG_fail;
3662 PyThreadState* __tstate = wxPyBeginAllowThreads();
3663 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3664
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
3668 {
3669 #if wxUSE_UNICODE
3670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3671 #else
3672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3673 #endif
3674 }
3675 {
3676 if (temp1)
3677 delete arg1;
3678 }
3679 {
3680 if (temp2)
3681 delete arg2;
3682 }
3683 return resultobj;
3684 fail:
3685 {
3686 if (temp1)
3687 delete arg1;
3688 }
3689 {
3690 if (temp2)
3691 delete arg2;
3692 }
3693 return NULL;
3694 }
3695
3696
3697 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj;
3699 wxString *arg1 = 0 ;
3700 wxString const &arg2_defvalue = wxPyEmptyString ;
3701 wxString *arg2 = (wxString *) &arg2_defvalue ;
3702 wxString const &arg3_defvalue = wxPyEmptyString ;
3703 wxString *arg3 = (wxString *) &arg3_defvalue ;
3704 wxWindow *arg4 = (wxWindow *) NULL ;
3705 int arg5 = (int) -1 ;
3706 int arg6 = (int) -1 ;
3707 bool arg7 = (bool) true ;
3708 wxString result;
3709 bool temp1 = false ;
3710 bool temp2 = false ;
3711 bool temp3 = false ;
3712 PyObject * obj0 = 0 ;
3713 PyObject * obj1 = 0 ;
3714 PyObject * obj2 = 0 ;
3715 PyObject * obj3 = 0 ;
3716 PyObject * obj4 = 0 ;
3717 PyObject * obj5 = 0 ;
3718 PyObject * obj6 = 0 ;
3719 char *kwnames[] = {
3720 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3721 };
3722
3723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3724 {
3725 arg1 = wxString_in_helper(obj0);
3726 if (arg1 == NULL) SWIG_fail;
3727 temp1 = true;
3728 }
3729 if (obj1) {
3730 {
3731 arg2 = wxString_in_helper(obj1);
3732 if (arg2 == NULL) SWIG_fail;
3733 temp2 = true;
3734 }
3735 }
3736 if (obj2) {
3737 {
3738 arg3 = wxString_in_helper(obj2);
3739 if (arg3 == NULL) SWIG_fail;
3740 temp3 = true;
3741 }
3742 }
3743 if (obj3) {
3744 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3746 }
3747 if (obj4) {
3748 arg5 = (int)SWIG_As_int(obj4);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 if (obj5) {
3752 arg6 = (int)SWIG_As_int(obj5);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 if (obj6) {
3756 arg7 = (bool)SWIG_As_bool(obj6);
3757 if (PyErr_Occurred()) SWIG_fail;
3758 }
3759 {
3760 if (!wxPyCheckForApp()) SWIG_fail;
3761 PyThreadState* __tstate = wxPyBeginAllowThreads();
3762 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3763
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 {
3768 #if wxUSE_UNICODE
3769 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3770 #else
3771 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3772 #endif
3773 }
3774 {
3775 if (temp1)
3776 delete arg1;
3777 }
3778 {
3779 if (temp2)
3780 delete arg2;
3781 }
3782 {
3783 if (temp3)
3784 delete arg3;
3785 }
3786 return resultobj;
3787 fail:
3788 {
3789 if (temp1)
3790 delete arg1;
3791 }
3792 {
3793 if (temp2)
3794 delete arg2;
3795 }
3796 {
3797 if (temp3)
3798 delete arg3;
3799 }
3800 return NULL;
3801 }
3802
3803
3804 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3805 PyObject *resultobj;
3806 wxString *arg1 = 0 ;
3807 wxString const &arg2_defvalue = wxPyEmptyString ;
3808 wxString *arg2 = (wxString *) &arg2_defvalue ;
3809 wxString const &arg3_defvalue = wxPyEmptyString ;
3810 wxString *arg3 = (wxString *) &arg3_defvalue ;
3811 wxWindow *arg4 = (wxWindow *) NULL ;
3812 wxString result;
3813 bool temp1 = false ;
3814 bool temp2 = false ;
3815 bool temp3 = false ;
3816 PyObject * obj0 = 0 ;
3817 PyObject * obj1 = 0 ;
3818 PyObject * obj2 = 0 ;
3819 PyObject * obj3 = 0 ;
3820 char *kwnames[] = {
3821 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3822 };
3823
3824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3825 {
3826 arg1 = wxString_in_helper(obj0);
3827 if (arg1 == NULL) SWIG_fail;
3828 temp1 = true;
3829 }
3830 if (obj1) {
3831 {
3832 arg2 = wxString_in_helper(obj1);
3833 if (arg2 == NULL) SWIG_fail;
3834 temp2 = true;
3835 }
3836 }
3837 if (obj2) {
3838 {
3839 arg3 = wxString_in_helper(obj2);
3840 if (arg3 == NULL) SWIG_fail;
3841 temp3 = true;
3842 }
3843 }
3844 if (obj3) {
3845 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3847 }
3848 {
3849 if (!wxPyCheckForApp()) SWIG_fail;
3850 PyThreadState* __tstate = wxPyBeginAllowThreads();
3851 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3852
3853 wxPyEndAllowThreads(__tstate);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 }
3856 {
3857 #if wxUSE_UNICODE
3858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3859 #else
3860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3861 #endif
3862 }
3863 {
3864 if (temp1)
3865 delete arg1;
3866 }
3867 {
3868 if (temp2)
3869 delete arg2;
3870 }
3871 {
3872 if (temp3)
3873 delete arg3;
3874 }
3875 return resultobj;
3876 fail:
3877 {
3878 if (temp1)
3879 delete arg1;
3880 }
3881 {
3882 if (temp2)
3883 delete arg2;
3884 }
3885 {
3886 if (temp3)
3887 delete arg3;
3888 }
3889 return NULL;
3890 }
3891
3892
3893 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
3894 PyObject *resultobj;
3895 wxString *arg1 = 0 ;
3896 wxString *arg2 = 0 ;
3897 int arg3 ;
3898 wxString *arg4 = (wxString *) 0 ;
3899 wxWindow *arg5 = (wxWindow *) NULL ;
3900 int arg6 = (int) -1 ;
3901 int arg7 = (int) -1 ;
3902 bool arg8 = (bool) true ;
3903 int arg9 = (int) 150 ;
3904 int arg10 = (int) 200 ;
3905 wxString result;
3906 bool temp1 = false ;
3907 bool temp2 = false ;
3908 PyObject * obj0 = 0 ;
3909 PyObject * obj1 = 0 ;
3910 PyObject * obj2 = 0 ;
3911 PyObject * obj3 = 0 ;
3912 PyObject * obj4 = 0 ;
3913 PyObject * obj5 = 0 ;
3914 PyObject * obj6 = 0 ;
3915 PyObject * obj7 = 0 ;
3916 PyObject * obj8 = 0 ;
3917 char *kwnames[] = {
3918 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3919 };
3920
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3922 {
3923 arg1 = wxString_in_helper(obj0);
3924 if (arg1 == NULL) SWIG_fail;
3925 temp1 = true;
3926 }
3927 {
3928 arg2 = wxString_in_helper(obj1);
3929 if (arg2 == NULL) SWIG_fail;
3930 temp2 = true;
3931 }
3932 {
3933 arg3 = PyList_Size(obj2);
3934 arg4 = wxString_LIST_helper(obj2);
3935 if (arg4 == NULL) SWIG_fail;
3936 }
3937 if (obj3) {
3938 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3940 }
3941 if (obj4) {
3942 arg6 = (int)SWIG_As_int(obj4);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 if (obj5) {
3946 arg7 = (int)SWIG_As_int(obj5);
3947 if (PyErr_Occurred()) SWIG_fail;
3948 }
3949 if (obj6) {
3950 arg8 = (bool)SWIG_As_bool(obj6);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 if (obj7) {
3954 arg9 = (int)SWIG_As_int(obj7);
3955 if (PyErr_Occurred()) SWIG_fail;
3956 }
3957 if (obj8) {
3958 arg10 = (int)SWIG_As_int(obj8);
3959 if (PyErr_Occurred()) SWIG_fail;
3960 }
3961 {
3962 if (!wxPyCheckForApp()) SWIG_fail;
3963 PyThreadState* __tstate = wxPyBeginAllowThreads();
3964 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3965
3966 wxPyEndAllowThreads(__tstate);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 {
3970 #if wxUSE_UNICODE
3971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3972 #else
3973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3974 #endif
3975 }
3976 {
3977 if (temp1)
3978 delete arg1;
3979 }
3980 {
3981 if (temp2)
3982 delete arg2;
3983 }
3984 {
3985 if (arg4) delete [] arg4;
3986 }
3987 return resultobj;
3988 fail:
3989 {
3990 if (temp1)
3991 delete arg1;
3992 }
3993 {
3994 if (temp2)
3995 delete arg2;
3996 }
3997 {
3998 if (arg4) delete [] arg4;
3999 }
4000 return NULL;
4001 }
4002
4003
4004 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
4005 PyObject *resultobj;
4006 wxString *arg1 = 0 ;
4007 wxString *arg2 = 0 ;
4008 int arg3 ;
4009 wxString *arg4 = (wxString *) 0 ;
4010 wxWindow *arg5 = (wxWindow *) NULL ;
4011 int arg6 = (int) -1 ;
4012 int arg7 = (int) -1 ;
4013 bool arg8 = (bool) true ;
4014 int arg9 = (int) 150 ;
4015 int arg10 = (int) 200 ;
4016 int result;
4017 bool temp1 = false ;
4018 bool temp2 = false ;
4019 PyObject * obj0 = 0 ;
4020 PyObject * obj1 = 0 ;
4021 PyObject * obj2 = 0 ;
4022 PyObject * obj3 = 0 ;
4023 PyObject * obj4 = 0 ;
4024 PyObject * obj5 = 0 ;
4025 PyObject * obj6 = 0 ;
4026 PyObject * obj7 = 0 ;
4027 PyObject * obj8 = 0 ;
4028 char *kwnames[] = {
4029 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4033 {
4034 arg1 = wxString_in_helper(obj0);
4035 if (arg1 == NULL) SWIG_fail;
4036 temp1 = true;
4037 }
4038 {
4039 arg2 = wxString_in_helper(obj1);
4040 if (arg2 == NULL) SWIG_fail;
4041 temp2 = true;
4042 }
4043 {
4044 arg3 = PyList_Size(obj2);
4045 arg4 = wxString_LIST_helper(obj2);
4046 if (arg4 == NULL) SWIG_fail;
4047 }
4048 if (obj3) {
4049 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
4050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4051 }
4052 if (obj4) {
4053 arg6 = (int)SWIG_As_int(obj4);
4054 if (PyErr_Occurred()) SWIG_fail;
4055 }
4056 if (obj5) {
4057 arg7 = (int)SWIG_As_int(obj5);
4058 if (PyErr_Occurred()) SWIG_fail;
4059 }
4060 if (obj6) {
4061 arg8 = (bool)SWIG_As_bool(obj6);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 if (obj7) {
4065 arg9 = (int)SWIG_As_int(obj7);
4066 if (PyErr_Occurred()) SWIG_fail;
4067 }
4068 if (obj8) {
4069 arg10 = (int)SWIG_As_int(obj8);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 {
4073 if (!wxPyCheckForApp()) SWIG_fail;
4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
4075 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
4076
4077 wxPyEndAllowThreads(__tstate);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
4080 resultobj = SWIG_From_int((int)result);
4081 {
4082 if (temp1)
4083 delete arg1;
4084 }
4085 {
4086 if (temp2)
4087 delete arg2;
4088 }
4089 {
4090 if (arg4) delete [] arg4;
4091 }
4092 return resultobj;
4093 fail:
4094 {
4095 if (temp1)
4096 delete arg1;
4097 }
4098 {
4099 if (temp2)
4100 delete arg2;
4101 }
4102 {
4103 if (arg4) delete [] arg4;
4104 }
4105 return NULL;
4106 }
4107
4108
4109 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj;
4111 wxString *arg1 = 0 ;
4112 wxString const &arg2_defvalue = wxPyEmptyString ;
4113 wxString *arg2 = (wxString *) &arg2_defvalue ;
4114 int arg3 = (int) wxOK|wxCENTRE ;
4115 wxWindow *arg4 = (wxWindow *) NULL ;
4116 int arg5 = (int) -1 ;
4117 int arg6 = (int) -1 ;
4118 int result;
4119 bool temp1 = false ;
4120 bool temp2 = false ;
4121 PyObject * obj0 = 0 ;
4122 PyObject * obj1 = 0 ;
4123 PyObject * obj2 = 0 ;
4124 PyObject * obj3 = 0 ;
4125 PyObject * obj4 = 0 ;
4126 PyObject * obj5 = 0 ;
4127 char *kwnames[] = {
4128 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
4129 };
4130
4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4132 {
4133 arg1 = wxString_in_helper(obj0);
4134 if (arg1 == NULL) SWIG_fail;
4135 temp1 = true;
4136 }
4137 if (obj1) {
4138 {
4139 arg2 = wxString_in_helper(obj1);
4140 if (arg2 == NULL) SWIG_fail;
4141 temp2 = true;
4142 }
4143 }
4144 if (obj2) {
4145 arg3 = (int)SWIG_As_int(obj2);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 if (obj3) {
4149 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
4150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4151 }
4152 if (obj4) {
4153 arg5 = (int)SWIG_As_int(obj4);
4154 if (PyErr_Occurred()) SWIG_fail;
4155 }
4156 if (obj5) {
4157 arg6 = (int)SWIG_As_int(obj5);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 {
4161 if (!wxPyCheckForApp()) SWIG_fail;
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 resultobj = SWIG_From_int((int)result);
4169 {
4170 if (temp1)
4171 delete arg1;
4172 }
4173 {
4174 if (temp2)
4175 delete arg2;
4176 }
4177 return resultobj;
4178 fail:
4179 {
4180 if (temp1)
4181 delete arg1;
4182 }
4183 {
4184 if (temp2)
4185 delete arg2;
4186 }
4187 return NULL;
4188 }
4189
4190
4191 static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj;
4193 wxString *arg1 = 0 ;
4194 wxString *arg2 = 0 ;
4195 wxString *arg3 = 0 ;
4196 long arg4 ;
4197 long arg5 = (long) 0 ;
4198 long arg6 = (long) 100 ;
4199 wxWindow *arg7 = (wxWindow *) NULL ;
4200 wxPoint const &arg8_defvalue = wxDefaultPosition ;
4201 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
4202 long result;
4203 bool temp1 = false ;
4204 bool temp2 = false ;
4205 bool temp3 = false ;
4206 wxPoint temp8 ;
4207 PyObject * obj0 = 0 ;
4208 PyObject * obj1 = 0 ;
4209 PyObject * obj2 = 0 ;
4210 PyObject * obj3 = 0 ;
4211 PyObject * obj4 = 0 ;
4212 PyObject * obj5 = 0 ;
4213 PyObject * obj6 = 0 ;
4214 PyObject * obj7 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4220 {
4221 arg1 = wxString_in_helper(obj0);
4222 if (arg1 == NULL) SWIG_fail;
4223 temp1 = true;
4224 }
4225 {
4226 arg2 = wxString_in_helper(obj1);
4227 if (arg2 == NULL) SWIG_fail;
4228 temp2 = true;
4229 }
4230 {
4231 arg3 = wxString_in_helper(obj2);
4232 if (arg3 == NULL) SWIG_fail;
4233 temp3 = true;
4234 }
4235 arg4 = (long)SWIG_As_long(obj3);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 if (obj4) {
4238 arg5 = (long)SWIG_As_long(obj4);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 if (obj5) {
4242 arg6 = (long)SWIG_As_long(obj5);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 }
4245 if (obj6) {
4246 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
4247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4248 }
4249 if (obj7) {
4250 {
4251 arg8 = &temp8;
4252 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
4253 }
4254 }
4255 {
4256 if (!wxPyCheckForApp()) SWIG_fail;
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 resultobj = SWIG_From_long((long)result);
4264 {
4265 if (temp1)
4266 delete arg1;
4267 }
4268 {
4269 if (temp2)
4270 delete arg2;
4271 }
4272 {
4273 if (temp3)
4274 delete arg3;
4275 }
4276 return resultobj;
4277 fail:
4278 {
4279 if (temp1)
4280 delete arg1;
4281 }
4282 {
4283 if (temp2)
4284 delete arg2;
4285 }
4286 {
4287 if (temp3)
4288 delete arg3;
4289 }
4290 return NULL;
4291 }
4292
4293
4294 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
4295 PyObject *resultobj;
4296 bool result;
4297 char *kwnames[] = {
4298 NULL
4299 };
4300
4301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4302 {
4303 if (!wxPyCheckForApp()) SWIG_fail;
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 result = (bool)wxColourDisplay();
4306
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) SWIG_fail;
4309 }
4310 {
4311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4312 }
4313 return resultobj;
4314 fail:
4315 return NULL;
4316 }
4317
4318
4319 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj;
4321 int result;
4322 char *kwnames[] = {
4323 NULL
4324 };
4325
4326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4327 {
4328 if (!wxPyCheckForApp()) SWIG_fail;
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 result = (int)wxDisplayDepth();
4331
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 resultobj = SWIG_From_int((int)result);
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj;
4344 int result;
4345 char *kwnames[] = {
4346 NULL
4347 };
4348
4349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4350 {
4351 if (!wxPyCheckForApp()) SWIG_fail;
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 result = (int)wxGetDisplayDepth();
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 resultobj = SWIG_From_int((int)result);
4359 return resultobj;
4360 fail:
4361 return NULL;
4362 }
4363
4364
4365 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4366 PyObject *resultobj;
4367 int *arg1 = (int *) 0 ;
4368 int *arg2 = (int *) 0 ;
4369 int temp1 ;
4370 int res1 = 0 ;
4371 int temp2 ;
4372 int res2 = 0 ;
4373 char *kwnames[] = {
4374 NULL
4375 };
4376
4377 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4378 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4380 {
4381 if (!wxPyCheckForApp()) SWIG_fail;
4382 PyThreadState* __tstate = wxPyBeginAllowThreads();
4383 wxDisplaySize(arg1,arg2);
4384
4385 wxPyEndAllowThreads(__tstate);
4386 if (PyErr_Occurred()) SWIG_fail;
4387 }
4388 Py_INCREF(Py_None); resultobj = Py_None;
4389 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4390 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4391 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4392 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxSize result;
4402 char *kwnames[] = {
4403 NULL
4404 };
4405
4406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4407 {
4408 if (!wxPyCheckForApp()) SWIG_fail;
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 result = wxGetDisplaySize();
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 {
4416 wxSize * resultptr;
4417 resultptr = new wxSize((wxSize &) result);
4418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4419 }
4420 return resultobj;
4421 fail:
4422 return NULL;
4423 }
4424
4425
4426 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj;
4428 int *arg1 = (int *) 0 ;
4429 int *arg2 = (int *) 0 ;
4430 int temp1 ;
4431 int res1 = 0 ;
4432 int temp2 ;
4433 int res2 = 0 ;
4434 char *kwnames[] = {
4435 NULL
4436 };
4437
4438 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4439 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4441 {
4442 if (!wxPyCheckForApp()) SWIG_fail;
4443 PyThreadState* __tstate = wxPyBeginAllowThreads();
4444 wxDisplaySizeMM(arg1,arg2);
4445
4446 wxPyEndAllowThreads(__tstate);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 Py_INCREF(Py_None); resultobj = Py_None;
4450 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4451 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4452 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4453 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4454 return resultobj;
4455 fail:
4456 return NULL;
4457 }
4458
4459
4460 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4461 PyObject *resultobj;
4462 wxSize result;
4463 char *kwnames[] = {
4464 NULL
4465 };
4466
4467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4468 {
4469 if (!wxPyCheckForApp()) SWIG_fail;
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = wxGetDisplaySizeMM();
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 {
4477 wxSize * resultptr;
4478 resultptr = new wxSize((wxSize &) result);
4479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4480 }
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj;
4489 int *arg1 = (int *) 0 ;
4490 int *arg2 = (int *) 0 ;
4491 int *arg3 = (int *) 0 ;
4492 int *arg4 = (int *) 0 ;
4493 int temp1 ;
4494 int res1 = 0 ;
4495 int temp2 ;
4496 int res2 = 0 ;
4497 int temp3 ;
4498 int res3 = 0 ;
4499 int temp4 ;
4500 int res4 = 0 ;
4501 char *kwnames[] = {
4502 NULL
4503 };
4504
4505 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4506 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4507 arg3 = &temp3; res3 = SWIG_NEWOBJ;
4508 arg4 = &temp4; res4 = SWIG_NEWOBJ;
4509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4510 {
4511 if (!wxPyCheckForApp()) SWIG_fail;
4512 PyThreadState* __tstate = wxPyBeginAllowThreads();
4513 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4514
4515 wxPyEndAllowThreads(__tstate);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 Py_INCREF(Py_None); resultobj = Py_None;
4519 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4520 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4521 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4522 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4523 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
4524 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
4525 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
4526 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
4527 return resultobj;
4528 fail:
4529 return NULL;
4530 }
4531
4532
4533 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj;
4535 wxRect result;
4536 char *kwnames[] = {
4537 NULL
4538 };
4539
4540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4541 {
4542 if (!wxPyCheckForApp()) SWIG_fail;
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 result = wxGetClientDisplayRect();
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 {
4550 wxRect * resultptr;
4551 resultptr = new wxRect((wxRect &) result);
4552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4553 }
4554 return resultobj;
4555 fail:
4556 return NULL;
4557 }
4558
4559
4560 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4561 PyObject *resultobj;
4562 wxCursor *arg1 = 0 ;
4563 PyObject * obj0 = 0 ;
4564 char *kwnames[] = {
4565 (char *) "cursor", NULL
4566 };
4567
4568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4570 SWIG_POINTER_EXCEPTION | 0)) == -1)
4571 SWIG_fail;
4572 if (arg1 == NULL) {
4573 PyErr_SetString(PyExc_TypeError,"null reference");
4574 SWIG_fail;
4575 }
4576 {
4577 if (!wxPyCheckForApp()) SWIG_fail;
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 wxSetCursor(*arg1);
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 Py_INCREF(Py_None); resultobj = Py_None;
4585 return resultobj;
4586 fail:
4587 return NULL;
4588 }
4589
4590
4591 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4592 PyObject *resultobj;
4593 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4594 PyObject * obj0 = 0 ;
4595 char *kwnames[] = {
4596 (char *) "cursor", NULL
4597 };
4598
4599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4600 if (obj0) {
4601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4603 }
4604 {
4605 if (!wxPyCheckForApp()) SWIG_fail;
4606 PyThreadState* __tstate = wxPyBeginAllowThreads();
4607 wxBeginBusyCursor(arg1);
4608
4609 wxPyEndAllowThreads(__tstate);
4610 if (PyErr_Occurred()) SWIG_fail;
4611 }
4612 Py_INCREF(Py_None); resultobj = Py_None;
4613 return resultobj;
4614 fail:
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj;
4621 wxWindow *result;
4622 char *kwnames[] = {
4623 NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4627 {
4628 if (!wxPyCheckForApp()) SWIG_fail;
4629 PyThreadState* __tstate = wxPyBeginAllowThreads();
4630 result = (wxWindow *)wxGetActiveWindow();
4631
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 {
4636 resultobj = wxPyMake_wxObject(result, 0);
4637 }
4638 return resultobj;
4639 fail:
4640 return NULL;
4641 }
4642
4643
4644 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4645 PyObject *resultobj;
4646 wxPoint *arg1 = 0 ;
4647 wxWindow *result;
4648 wxPoint temp1 ;
4649 PyObject * obj0 = 0 ;
4650 char *kwnames[] = {
4651 (char *) "pt", NULL
4652 };
4653
4654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4655 {
4656 arg1 = &temp1;
4657 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4658 }
4659 {
4660 if (!wxPyCheckForApp()) SWIG_fail;
4661 PyThreadState* __tstate = wxPyBeginAllowThreads();
4662 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4663
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 {
4668 resultobj = wxPyMake_wxObject(result, 0);
4669 }
4670 return resultobj;
4671 fail:
4672 return NULL;
4673 }
4674
4675
4676 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4677 PyObject *resultobj;
4678 wxPoint *arg1 = 0 ;
4679 wxWindow *result;
4680 wxPoint temp1 ;
4681 PyObject * obj0 = 0 ;
4682 char *kwnames[] = {
4683 (char *) "pt", NULL
4684 };
4685
4686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4687 {
4688 arg1 = &temp1;
4689 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4690 }
4691 {
4692 if (!wxPyCheckForApp()) SWIG_fail;
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 {
4700 resultobj = wxPyMake_wxObject(result, 0);
4701 }
4702 return resultobj;
4703 fail:
4704 return NULL;
4705 }
4706
4707
4708 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
4709 PyObject *resultobj;
4710 wxWindow *arg1 = (wxWindow *) 0 ;
4711 wxWindow *result;
4712 PyObject * obj0 = 0 ;
4713 char *kwnames[] = {
4714 (char *) "win", NULL
4715 };
4716
4717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4720 {
4721 if (!wxPyCheckForApp()) SWIG_fail;
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 result = (wxWindow *)wxGetTopLevelParent(arg1);
4724
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 {
4729 resultobj = wxPyMake_wxObject(result, 0);
4730 }
4731 return resultobj;
4732 fail:
4733 return NULL;
4734 }
4735
4736
4737 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
4738 PyObject *resultobj;
4739 int arg1 ;
4740 bool result;
4741 PyObject * obj0 = 0 ;
4742 char *kwnames[] = {
4743 (char *) "key", NULL
4744 };
4745
4746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4747 arg1 = (int)SWIG_As_int(obj0);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 {
4750 if (!wxPyCheckForApp()) SWIG_fail;
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4753
4754 wxPyEndAllowThreads(__tstate);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 {
4758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4759 }
4760 return resultobj;
4761 fail:
4762 return NULL;
4763 }
4764
4765
4766 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
4767 PyObject *resultobj;
4768 char *kwnames[] = {
4769 NULL
4770 };
4771
4772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4773 {
4774 if (!wxPyCheckForApp()) SWIG_fail;
4775 PyThreadState* __tstate = wxPyBeginAllowThreads();
4776 wxWakeUpMainThread();
4777
4778 wxPyEndAllowThreads(__tstate);
4779 if (PyErr_Occurred()) SWIG_fail;
4780 }
4781 Py_INCREF(Py_None); resultobj = Py_None;
4782 return resultobj;
4783 fail:
4784 return NULL;
4785 }
4786
4787
4788 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
4789 PyObject *resultobj;
4790 char *kwnames[] = {
4791 NULL
4792 };
4793
4794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4795 {
4796 if (!wxPyCheckForApp()) SWIG_fail;
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 wxMutexGuiEnter();
4799
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 Py_INCREF(Py_None); resultobj = Py_None;
4804 return resultobj;
4805 fail:
4806 return NULL;
4807 }
4808
4809
4810 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
4811 PyObject *resultobj;
4812 char *kwnames[] = {
4813 NULL
4814 };
4815
4816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4817 {
4818 if (!wxPyCheckForApp()) SWIG_fail;
4819 PyThreadState* __tstate = wxPyBeginAllowThreads();
4820 wxMutexGuiLeave();
4821
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 Py_INCREF(Py_None); resultobj = Py_None;
4826 return resultobj;
4827 fail:
4828 return NULL;
4829 }
4830
4831
4832 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4833 PyObject *resultobj;
4834 wxMutexGuiLocker *result;
4835 char *kwnames[] = {
4836 NULL
4837 };
4838
4839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4840 {
4841 if (!wxPyCheckForApp()) SWIG_fail;
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4844
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4849 return resultobj;
4850 fail:
4851 return NULL;
4852 }
4853
4854
4855 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj;
4857 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4858 PyObject * obj0 = 0 ;
4859 char *kwnames[] = {
4860 (char *) "self", NULL
4861 };
4862
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 delete arg1;
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 Py_INCREF(Py_None); resultobj = Py_None;
4874 return resultobj;
4875 fail:
4876 return NULL;
4877 }
4878
4879
4880 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
4881 PyObject *obj;
4882 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4883 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4884 Py_INCREF(obj);
4885 return Py_BuildValue((char *)"");
4886 }
4887 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj;
4889 bool result;
4890 char *kwnames[] = {
4891 NULL
4892 };
4893
4894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (bool)wxThread_IsMain();
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 {
4903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4904 }
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj;
4913 wxString *arg1 = 0 ;
4914 wxToolTip *result;
4915 bool temp1 = false ;
4916 PyObject * obj0 = 0 ;
4917 char *kwnames[] = {
4918 (char *) "tip", NULL
4919 };
4920
4921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4922 {
4923 arg1 = wxString_in_helper(obj0);
4924 if (arg1 == NULL) SWIG_fail;
4925 temp1 = true;
4926 }
4927 {
4928 if (!wxPyCheckForApp()) SWIG_fail;
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4931
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 {
4936 resultobj = wxPyMake_wxObject(result, 1);
4937 }
4938 {
4939 if (temp1)
4940 delete arg1;
4941 }
4942 return resultobj;
4943 fail:
4944 {
4945 if (temp1)
4946 delete arg1;
4947 }
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxToolTip *arg1 = (wxToolTip *) 0 ;
4955 wxString *arg2 = 0 ;
4956 bool temp2 = false ;
4957 PyObject * obj0 = 0 ;
4958 PyObject * obj1 = 0 ;
4959 char *kwnames[] = {
4960 (char *) "self",(char *) "tip", NULL
4961 };
4962
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4966 {
4967 arg2 = wxString_in_helper(obj1);
4968 if (arg2 == NULL) SWIG_fail;
4969 temp2 = true;
4970 }
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 (arg1)->SetTip((wxString const &)*arg2);
4974
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 Py_INCREF(Py_None); resultobj = Py_None;
4979 {
4980 if (temp2)
4981 delete arg2;
4982 }
4983 return resultobj;
4984 fail:
4985 {
4986 if (temp2)
4987 delete arg2;
4988 }
4989 return NULL;
4990 }
4991
4992
4993 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4994 PyObject *resultobj;
4995 wxToolTip *arg1 = (wxToolTip *) 0 ;
4996 wxString result;
4997 PyObject * obj0 = 0 ;
4998 char *kwnames[] = {
4999 (char *) "self", NULL
5000 };
5001
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
5003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
5004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (arg1)->GetTip();
5008
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 {
5013 #if wxUSE_UNICODE
5014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5015 #else
5016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5017 #endif
5018 }
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj;
5027 wxToolTip *arg1 = (wxToolTip *) 0 ;
5028 wxWindow *result;
5029 PyObject * obj0 = 0 ;
5030 char *kwnames[] = {
5031 (char *) "self", NULL
5032 };
5033
5034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
5035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
5036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5037 {
5038 PyThreadState* __tstate = wxPyBeginAllowThreads();
5039 result = (wxWindow *)(arg1)->GetWindow();
5040
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 {
5045 resultobj = wxPyMake_wxObject(result, 0);
5046 }
5047 return resultobj;
5048 fail:
5049 return NULL;
5050 }
5051
5052
5053 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
5054 PyObject *resultobj;
5055 bool arg1 ;
5056 PyObject * obj0 = 0 ;
5057 char *kwnames[] = {
5058 (char *) "flag", NULL
5059 };
5060
5061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
5062 arg1 = (bool)SWIG_As_bool(obj0);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 {
5065 PyThreadState* __tstate = wxPyBeginAllowThreads();
5066 wxToolTip::Enable(arg1);
5067
5068 wxPyEndAllowThreads(__tstate);
5069 if (PyErr_Occurred()) SWIG_fail;
5070 }
5071 Py_INCREF(Py_None); resultobj = Py_None;
5072 return resultobj;
5073 fail:
5074 return NULL;
5075 }
5076
5077
5078 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
5079 PyObject *resultobj;
5080 long arg1 ;
5081 PyObject * obj0 = 0 ;
5082 char *kwnames[] = {
5083 (char *) "milliseconds", NULL
5084 };
5085
5086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
5087 arg1 = (long)SWIG_As_long(obj0);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 {
5090 PyThreadState* __tstate = wxPyBeginAllowThreads();
5091 wxToolTip::SetDelay(arg1);
5092
5093 wxPyEndAllowThreads(__tstate);
5094 if (PyErr_Occurred()) SWIG_fail;
5095 }
5096 Py_INCREF(Py_None); resultobj = Py_None;
5097 return resultobj;
5098 fail:
5099 return NULL;
5100 }
5101
5102
5103 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
5104 PyObject *obj;
5105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5106 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
5107 Py_INCREF(obj);
5108 return Py_BuildValue((char *)"");
5109 }
5110 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
5111 PyObject *resultobj;
5112 wxWindow *arg1 = (wxWindow *) 0 ;
5113 wxSize *arg2 = 0 ;
5114 wxCaret *result;
5115 wxSize temp2 ;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 char *kwnames[] = {
5119 (char *) "window",(char *) "size", NULL
5120 };
5121
5122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
5123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5125 {
5126 arg2 = &temp2;
5127 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5128 }
5129 {
5130 if (!wxPyCheckForApp()) SWIG_fail;
5131 PyThreadState* __tstate = wxPyBeginAllowThreads();
5132 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
5133
5134 wxPyEndAllowThreads(__tstate);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 }
5137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
5138 return resultobj;
5139 fail:
5140 return NULL;
5141 }
5142
5143
5144 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
5145 PyObject *resultobj;
5146 wxCaret *arg1 = (wxCaret *) 0 ;
5147 PyObject * obj0 = 0 ;
5148 char *kwnames[] = {
5149 (char *) "self", NULL
5150 };
5151
5152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
5153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5155 {
5156 PyThreadState* __tstate = wxPyBeginAllowThreads();
5157 delete arg1;
5158
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 Py_INCREF(Py_None); resultobj = Py_None;
5163 return resultobj;
5164 fail:
5165 return NULL;
5166 }
5167
5168
5169 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5170 PyObject *resultobj;
5171 wxCaret *arg1 = (wxCaret *) 0 ;
5172 bool result;
5173 PyObject * obj0 = 0 ;
5174 char *kwnames[] = {
5175 (char *) "self", NULL
5176 };
5177
5178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
5179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (bool)(arg1)->IsOk();
5184
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 {
5189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5190 }
5191 return resultobj;
5192 fail:
5193 return NULL;
5194 }
5195
5196
5197 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
5198 PyObject *resultobj;
5199 wxCaret *arg1 = (wxCaret *) 0 ;
5200 bool result;
5201 PyObject * obj0 = 0 ;
5202 char *kwnames[] = {
5203 (char *) "self", NULL
5204 };
5205
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
5207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 result = (bool)(arg1)->IsVisible();
5212
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 {
5217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5218 }
5219 return resultobj;
5220 fail:
5221 return NULL;
5222 }
5223
5224
5225 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
5226 PyObject *resultobj;
5227 wxCaret *arg1 = (wxCaret *) 0 ;
5228 wxPoint result;
5229 PyObject * obj0 = 0 ;
5230 char *kwnames[] = {
5231 (char *) "self", NULL
5232 };
5233
5234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
5235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 result = (arg1)->GetPosition();
5240
5241 wxPyEndAllowThreads(__tstate);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 {
5245 wxPoint * resultptr;
5246 resultptr = new wxPoint((wxPoint &) result);
5247 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5248 }
5249 return resultobj;
5250 fail:
5251 return NULL;
5252 }
5253
5254
5255 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5256 PyObject *resultobj;
5257 wxCaret *arg1 = (wxCaret *) 0 ;
5258 int *arg2 = (int *) 0 ;
5259 int *arg3 = (int *) 0 ;
5260 int temp2 ;
5261 int res2 = 0 ;
5262 int temp3 ;
5263 int res3 = 0 ;
5264 PyObject * obj0 = 0 ;
5265 char *kwnames[] = {
5266 (char *) "self", NULL
5267 };
5268
5269 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5270 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
5276 (arg1)->GetPosition(arg2,arg3);
5277
5278 wxPyEndAllowThreads(__tstate);
5279 if (PyErr_Occurred()) SWIG_fail;
5280 }
5281 Py_INCREF(Py_None); resultobj = Py_None;
5282 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5283 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5284 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5285 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5286 return resultobj;
5287 fail:
5288 return NULL;
5289 }
5290
5291
5292 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxCaret *arg1 = (wxCaret *) 0 ;
5295 wxSize result;
5296 PyObject * obj0 = 0 ;
5297 char *kwnames[] = {
5298 (char *) "self", NULL
5299 };
5300
5301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5304 {
5305 PyThreadState* __tstate = wxPyBeginAllowThreads();
5306 result = (arg1)->GetSize();
5307
5308 wxPyEndAllowThreads(__tstate);
5309 if (PyErr_Occurred()) SWIG_fail;
5310 }
5311 {
5312 wxSize * resultptr;
5313 resultptr = new wxSize((wxSize &) result);
5314 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5315 }
5316 return resultobj;
5317 fail:
5318 return NULL;
5319 }
5320
5321
5322 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj;
5324 wxCaret *arg1 = (wxCaret *) 0 ;
5325 int *arg2 = (int *) 0 ;
5326 int *arg3 = (int *) 0 ;
5327 int temp2 ;
5328 int res2 = 0 ;
5329 int temp3 ;
5330 int res3 = 0 ;
5331 PyObject * obj0 = 0 ;
5332 char *kwnames[] = {
5333 (char *) "self", NULL
5334 };
5335
5336 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5337 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 (arg1)->GetSize(arg2,arg3);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 Py_INCREF(Py_None); resultobj = Py_None;
5349 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5350 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5351 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5352 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5353 return resultobj;
5354 fail:
5355 return NULL;
5356 }
5357
5358
5359 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj;
5361 wxCaret *arg1 = (wxCaret *) 0 ;
5362 wxWindow *result;
5363 PyObject * obj0 = 0 ;
5364 char *kwnames[] = {
5365 (char *) "self", NULL
5366 };
5367
5368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5371 {
5372 PyThreadState* __tstate = wxPyBeginAllowThreads();
5373 result = (wxWindow *)(arg1)->GetWindow();
5374
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 {
5379 resultobj = wxPyMake_wxObject(result, 0);
5380 }
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj;
5389 wxCaret *arg1 = (wxCaret *) 0 ;
5390 int arg2 ;
5391 int arg3 ;
5392 PyObject * obj0 = 0 ;
5393 PyObject * obj1 = 0 ;
5394 PyObject * obj2 = 0 ;
5395 char *kwnames[] = {
5396 (char *) "self",(char *) "x",(char *) "y", NULL
5397 };
5398
5399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5402 arg2 = (int)SWIG_As_int(obj1);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 arg3 = (int)SWIG_As_int(obj2);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 (arg1)->Move(arg2,arg3);
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 Py_INCREF(Py_None); resultobj = Py_None;
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj;
5422 wxCaret *arg1 = (wxCaret *) 0 ;
5423 wxPoint *arg2 = 0 ;
5424 wxPoint temp2 ;
5425 PyObject * obj0 = 0 ;
5426 PyObject * obj1 = 0 ;
5427 char *kwnames[] = {
5428 (char *) "self",(char *) "pt", NULL
5429 };
5430
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5434 {
5435 arg2 = &temp2;
5436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5437 }
5438 {
5439 PyThreadState* __tstate = wxPyBeginAllowThreads();
5440 (arg1)->Move((wxPoint const &)*arg2);
5441
5442 wxPyEndAllowThreads(__tstate);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 }
5445 Py_INCREF(Py_None); resultobj = Py_None;
5446 return resultobj;
5447 fail:
5448 return NULL;
5449 }
5450
5451
5452 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
5453 PyObject *resultobj;
5454 wxCaret *arg1 = (wxCaret *) 0 ;
5455 int arg2 ;
5456 int arg3 ;
5457 PyObject * obj0 = 0 ;
5458 PyObject * obj1 = 0 ;
5459 PyObject * obj2 = 0 ;
5460 char *kwnames[] = {
5461 (char *) "self",(char *) "width",(char *) "height", NULL
5462 };
5463
5464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5467 arg2 = (int)SWIG_As_int(obj1);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 arg3 = (int)SWIG_As_int(obj2);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 (arg1)->SetSize(arg2,arg3);
5474
5475 wxPyEndAllowThreads(__tstate);
5476 if (PyErr_Occurred()) SWIG_fail;
5477 }
5478 Py_INCREF(Py_None); resultobj = Py_None;
5479 return resultobj;
5480 fail:
5481 return NULL;
5482 }
5483
5484
5485 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj;
5487 wxCaret *arg1 = (wxCaret *) 0 ;
5488 wxSize *arg2 = 0 ;
5489 wxSize temp2 ;
5490 PyObject * obj0 = 0 ;
5491 PyObject * obj1 = 0 ;
5492 char *kwnames[] = {
5493 (char *) "self",(char *) "size", NULL
5494 };
5495
5496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5499 {
5500 arg2 = &temp2;
5501 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5502 }
5503 {
5504 PyThreadState* __tstate = wxPyBeginAllowThreads();
5505 (arg1)->SetSize((wxSize const &)*arg2);
5506
5507 wxPyEndAllowThreads(__tstate);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 Py_INCREF(Py_None); resultobj = Py_None;
5511 return resultobj;
5512 fail:
5513 return NULL;
5514 }
5515
5516
5517 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
5518 PyObject *resultobj;
5519 wxCaret *arg1 = (wxCaret *) 0 ;
5520 int arg2 = (int) true ;
5521 PyObject * obj0 = 0 ;
5522 PyObject * obj1 = 0 ;
5523 char *kwnames[] = {
5524 (char *) "self",(char *) "show", NULL
5525 };
5526
5527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5530 if (obj1) {
5531 arg2 = (int)SWIG_As_int(obj1);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 {
5535 PyThreadState* __tstate = wxPyBeginAllowThreads();
5536 (arg1)->Show(arg2);
5537
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 Py_INCREF(Py_None); resultobj = Py_None;
5542 return resultobj;
5543 fail:
5544 return NULL;
5545 }
5546
5547
5548 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
5549 PyObject *resultobj;
5550 wxCaret *arg1 = (wxCaret *) 0 ;
5551 PyObject * obj0 = 0 ;
5552 char *kwnames[] = {
5553 (char *) "self", NULL
5554 };
5555
5556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5559 {
5560 PyThreadState* __tstate = wxPyBeginAllowThreads();
5561 (arg1)->Hide();
5562
5563 wxPyEndAllowThreads(__tstate);
5564 if (PyErr_Occurred()) SWIG_fail;
5565 }
5566 Py_INCREF(Py_None); resultobj = Py_None;
5567 return resultobj;
5568 fail:
5569 return NULL;
5570 }
5571
5572
5573 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
5574 PyObject *obj;
5575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5576 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5577 Py_INCREF(obj);
5578 return Py_BuildValue((char *)"");
5579 }
5580 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5581 PyObject *resultobj;
5582 int result;
5583 char *kwnames[] = {
5584 NULL
5585 };
5586
5587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 result = (int)wxCaret_GetBlinkTime();
5591
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 resultobj = SWIG_From_int((int)result);
5596 return resultobj;
5597 fail:
5598 return NULL;
5599 }
5600
5601
5602 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj;
5604 int arg1 ;
5605 PyObject * obj0 = 0 ;
5606 char *kwnames[] = {
5607 (char *) "milliseconds", NULL
5608 };
5609
5610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5611 arg1 = (int)SWIG_As_int(obj0);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 {
5614 PyThreadState* __tstate = wxPyBeginAllowThreads();
5615 wxCaret_SetBlinkTime(arg1);
5616
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 Py_INCREF(Py_None); resultobj = Py_None;
5621 return resultobj;
5622 fail:
5623 return NULL;
5624 }
5625
5626
5627 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5628 PyObject *resultobj;
5629 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5630 wxBusyCursor *result;
5631 PyObject * obj0 = 0 ;
5632 char *kwnames[] = {
5633 (char *) "cursor", NULL
5634 };
5635
5636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5637 if (obj0) {
5638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5640 }
5641 {
5642 if (!wxPyCheckForApp()) SWIG_fail;
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj;
5658 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5659 PyObject * obj0 = 0 ;
5660 char *kwnames[] = {
5661 (char *) "self", NULL
5662 };
5663
5664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 delete arg1;
5670
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
5674 Py_INCREF(Py_None); resultobj = Py_None;
5675 return resultobj;
5676 fail:
5677 return NULL;
5678 }
5679
5680
5681 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
5682 PyObject *obj;
5683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5684 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5685 Py_INCREF(obj);
5686 return Py_BuildValue((char *)"");
5687 }
5688 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5689 PyObject *resultobj;
5690 wxWindow *arg1 = (wxWindow *) NULL ;
5691 wxWindowDisabler *result;
5692 PyObject * obj0 = 0 ;
5693 char *kwnames[] = {
5694 (char *) "winToSkip", NULL
5695 };
5696
5697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5698 if (obj0) {
5699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5701 }
5702 {
5703 if (!wxPyCheckForApp()) SWIG_fail;
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5706
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5718 PyObject *resultobj;
5719 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5720 PyObject * obj0 = 0 ;
5721 char *kwnames[] = {
5722 (char *) "self", NULL
5723 };
5724
5725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5728 {
5729 PyThreadState* __tstate = wxPyBeginAllowThreads();
5730 delete arg1;
5731
5732 wxPyEndAllowThreads(__tstate);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 }
5735 Py_INCREF(Py_None); resultobj = Py_None;
5736 return resultobj;
5737 fail:
5738 return NULL;
5739 }
5740
5741
5742 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
5743 PyObject *obj;
5744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5745 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5746 Py_INCREF(obj);
5747 return Py_BuildValue((char *)"");
5748 }
5749 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5750 PyObject *resultobj;
5751 wxString *arg1 = 0 ;
5752 wxBusyInfo *result;
5753 bool temp1 = false ;
5754 PyObject * obj0 = 0 ;
5755 char *kwnames[] = {
5756 (char *) "message", NULL
5757 };
5758
5759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5760 {
5761 arg1 = wxString_in_helper(obj0);
5762 if (arg1 == NULL) SWIG_fail;
5763 temp1 = true;
5764 }
5765 {
5766 if (!wxPyCheckForApp()) SWIG_fail;
5767 PyThreadState* __tstate = wxPyBeginAllowThreads();
5768 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5769
5770 wxPyEndAllowThreads(__tstate);
5771 if (PyErr_Occurred()) SWIG_fail;
5772 }
5773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5774 {
5775 if (temp1)
5776 delete arg1;
5777 }
5778 return resultobj;
5779 fail:
5780 {
5781 if (temp1)
5782 delete arg1;
5783 }
5784 return NULL;
5785 }
5786
5787
5788 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5789 PyObject *resultobj;
5790 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5791 PyObject * obj0 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 delete arg1;
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 Py_INCREF(Py_None); resultobj = Py_None;
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
5814 PyObject *obj;
5815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5816 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5817 Py_INCREF(obj);
5818 return Py_BuildValue((char *)"");
5819 }
5820 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
5821 PyObject *resultobj;
5822 wxStopWatch *result;
5823 char *kwnames[] = {
5824 NULL
5825 };
5826
5827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 result = (wxStopWatch *)new wxStopWatch();
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5845 long arg2 = (long) 0 ;
5846 PyObject * obj0 = 0 ;
5847 PyObject * obj1 = 0 ;
5848 char *kwnames[] = {
5849 (char *) "self",(char *) "t0", NULL
5850 };
5851
5852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5855 if (obj1) {
5856 arg2 = (long)SWIG_As_long(obj1);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 (arg1)->Start(arg2);
5862
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 Py_INCREF(Py_None); resultobj = Py_None;
5867 return resultobj;
5868 fail:
5869 return NULL;
5870 }
5871
5872
5873 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj;
5875 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5876 PyObject * obj0 = 0 ;
5877 char *kwnames[] = {
5878 (char *) "self", NULL
5879 };
5880
5881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5884 {
5885 PyThreadState* __tstate = wxPyBeginAllowThreads();
5886 (arg1)->Pause();
5887
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 Py_INCREF(Py_None); resultobj = Py_None;
5892 return resultobj;
5893 fail:
5894 return NULL;
5895 }
5896
5897
5898 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
5899 PyObject *resultobj;
5900 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5901 PyObject * obj0 = 0 ;
5902 char *kwnames[] = {
5903 (char *) "self", NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5909 {
5910 PyThreadState* __tstate = wxPyBeginAllowThreads();
5911 (arg1)->Resume();
5912
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 Py_INCREF(Py_None); resultobj = Py_None;
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj;
5925 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5926 long result;
5927 PyObject * obj0 = 0 ;
5928 char *kwnames[] = {
5929 (char *) "self", NULL
5930 };
5931
5932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5935 {
5936 PyThreadState* __tstate = wxPyBeginAllowThreads();
5937 result = (long)((wxStopWatch const *)arg1)->Time();
5938
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 resultobj = SWIG_From_long((long)result);
5943 return resultobj;
5944 fail:
5945 return NULL;
5946 }
5947
5948
5949 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
5950 PyObject *obj;
5951 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5952 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5953 Py_INCREF(obj);
5954 return Py_BuildValue((char *)"");
5955 }
5956 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj;
5958 int arg1 = (int) 9 ;
5959 int arg2 = (int) wxID_FILE1 ;
5960 wxFileHistory *result;
5961 PyObject * obj0 = 0 ;
5962 PyObject * obj1 = 0 ;
5963 char *kwnames[] = {
5964 (char *) "maxFiles",(char *) "idBase", NULL
5965 };
5966
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5968 if (obj0) {
5969 arg1 = (int)SWIG_As_int(obj0);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 if (obj1) {
5973 arg2 = (int)SWIG_As_int(obj1);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 {
5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
5978 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5979
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5984 return resultobj;
5985 fail:
5986 return NULL;
5987 }
5988
5989
5990 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5991 PyObject *resultobj;
5992 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5993 PyObject * obj0 = 0 ;
5994 char *kwnames[] = {
5995 (char *) "self", NULL
5996 };
5997
5998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6001 {
6002 PyThreadState* __tstate = wxPyBeginAllowThreads();
6003 delete arg1;
6004
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 Py_INCREF(Py_None); resultobj = Py_None;
6009 return resultobj;
6010 fail:
6011 return NULL;
6012 }
6013
6014
6015 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
6016 PyObject *resultobj;
6017 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6018 wxString *arg2 = 0 ;
6019 bool temp2 = false ;
6020 PyObject * obj0 = 0 ;
6021 PyObject * obj1 = 0 ;
6022 char *kwnames[] = {
6023 (char *) "self",(char *) "file", NULL
6024 };
6025
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
6027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6029 {
6030 arg2 = wxString_in_helper(obj1);
6031 if (arg2 == NULL) SWIG_fail;
6032 temp2 = true;
6033 }
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 (arg1)->AddFileToHistory((wxString const &)*arg2);
6037
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 Py_INCREF(Py_None); resultobj = Py_None;
6042 {
6043 if (temp2)
6044 delete arg2;
6045 }
6046 return resultobj;
6047 fail:
6048 {
6049 if (temp2)
6050 delete arg2;
6051 }
6052 return NULL;
6053 }
6054
6055
6056 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
6057 PyObject *resultobj;
6058 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6059 int arg2 ;
6060 PyObject * obj0 = 0 ;
6061 PyObject * obj1 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self",(char *) "i", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6069 arg2 = (int)SWIG_As_int(obj1);
6070 if (PyErr_Occurred()) SWIG_fail;
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 (arg1)->RemoveFileFromHistory(arg2);
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 Py_INCREF(Py_None); resultobj = Py_None;
6079 return resultobj;
6080 fail:
6081 return NULL;
6082 }
6083
6084
6085 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj;
6087 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6088 int result;
6089 PyObject * obj0 = 0 ;
6090 char *kwnames[] = {
6091 (char *) "self", NULL
6092 };
6093
6094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
6095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
6100
6101 wxPyEndAllowThreads(__tstate);
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 resultobj = SWIG_From_int((int)result);
6105 return resultobj;
6106 fail:
6107 return NULL;
6108 }
6109
6110
6111 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6114 wxMenu *arg2 = (wxMenu *) 0 ;
6115 PyObject * obj0 = 0 ;
6116 PyObject * obj1 = 0 ;
6117 char *kwnames[] = {
6118 (char *) "self",(char *) "menu", NULL
6119 };
6120
6121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
6122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6126 {
6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
6128 (arg1)->UseMenu(arg2);
6129
6130 wxPyEndAllowThreads(__tstate);
6131 if (PyErr_Occurred()) SWIG_fail;
6132 }
6133 Py_INCREF(Py_None); resultobj = Py_None;
6134 return resultobj;
6135 fail:
6136 return NULL;
6137 }
6138
6139
6140 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6141 PyObject *resultobj;
6142 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6143 wxMenu *arg2 = (wxMenu *) 0 ;
6144 PyObject * obj0 = 0 ;
6145 PyObject * obj1 = 0 ;
6146 char *kwnames[] = {
6147 (char *) "self",(char *) "menu", NULL
6148 };
6149
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
6151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6155 {
6156 PyThreadState* __tstate = wxPyBeginAllowThreads();
6157 (arg1)->RemoveMenu(arg2);
6158
6159 wxPyEndAllowThreads(__tstate);
6160 if (PyErr_Occurred()) SWIG_fail;
6161 }
6162 Py_INCREF(Py_None); resultobj = Py_None;
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6172 wxConfigBase *arg2 = 0 ;
6173 PyObject * obj0 = 0 ;
6174 PyObject * obj1 = 0 ;
6175 char *kwnames[] = {
6176 (char *) "self",(char *) "config", NULL
6177 };
6178
6179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
6180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6183 SWIG_POINTER_EXCEPTION | 0)) == -1)
6184 SWIG_fail;
6185 if (arg2 == NULL) {
6186 PyErr_SetString(PyExc_TypeError,"null reference");
6187 SWIG_fail;
6188 }
6189 {
6190 PyThreadState* __tstate = wxPyBeginAllowThreads();
6191 (arg1)->Load(*arg2);
6192
6193 wxPyEndAllowThreads(__tstate);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 Py_INCREF(Py_None); resultobj = Py_None;
6197 return resultobj;
6198 fail:
6199 return NULL;
6200 }
6201
6202
6203 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
6204 PyObject *resultobj;
6205 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6206 wxConfigBase *arg2 = 0 ;
6207 PyObject * obj0 = 0 ;
6208 PyObject * obj1 = 0 ;
6209 char *kwnames[] = {
6210 (char *) "self",(char *) "config", NULL
6211 };
6212
6213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
6214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6217 SWIG_POINTER_EXCEPTION | 0)) == -1)
6218 SWIG_fail;
6219 if (arg2 == NULL) {
6220 PyErr_SetString(PyExc_TypeError,"null reference");
6221 SWIG_fail;
6222 }
6223 {
6224 PyThreadState* __tstate = wxPyBeginAllowThreads();
6225 (arg1)->Save(*arg2);
6226
6227 wxPyEndAllowThreads(__tstate);
6228 if (PyErr_Occurred()) SWIG_fail;
6229 }
6230 Py_INCREF(Py_None); resultobj = Py_None;
6231 return resultobj;
6232 fail:
6233 return NULL;
6234 }
6235
6236
6237 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6238 PyObject *resultobj;
6239 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6240 PyObject * obj0 = 0 ;
6241 char *kwnames[] = {
6242 (char *) "self", NULL
6243 };
6244
6245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
6246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6248 {
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 (arg1)->AddFilesToMenu();
6251
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 Py_INCREF(Py_None); resultobj = Py_None;
6256 return resultobj;
6257 fail:
6258 return NULL;
6259 }
6260
6261
6262 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj;
6264 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6265 wxMenu *arg2 = (wxMenu *) 0 ;
6266 PyObject * obj0 = 0 ;
6267 PyObject * obj1 = 0 ;
6268 char *kwnames[] = {
6269 (char *) "self",(char *) "menu", NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6277 {
6278 PyThreadState* __tstate = wxPyBeginAllowThreads();
6279 (arg1)->AddFilesToMenu(arg2);
6280
6281 wxPyEndAllowThreads(__tstate);
6282 if (PyErr_Occurred()) SWIG_fail;
6283 }
6284 Py_INCREF(Py_None); resultobj = Py_None;
6285 return resultobj;
6286 fail:
6287 return NULL;
6288 }
6289
6290
6291 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
6292 PyObject *resultobj;
6293 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6294 int arg2 ;
6295 wxString result;
6296 PyObject * obj0 = 0 ;
6297 PyObject * obj1 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self",(char *) "i", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6305 arg2 = (int)SWIG_As_int(obj1);
6306 if (PyErr_Occurred()) SWIG_fail;
6307 {
6308 PyThreadState* __tstate = wxPyBeginAllowThreads();
6309 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6310
6311 wxPyEndAllowThreads(__tstate);
6312 if (PyErr_Occurred()) SWIG_fail;
6313 }
6314 {
6315 #if wxUSE_UNICODE
6316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6317 #else
6318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6319 #endif
6320 }
6321 return resultobj;
6322 fail:
6323 return NULL;
6324 }
6325
6326
6327 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
6328 PyObject *resultobj;
6329 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6330 int result;
6331 PyObject * obj0 = 0 ;
6332 char *kwnames[] = {
6333 (char *) "self", NULL
6334 };
6335
6336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 result = (int)((wxFileHistory const *)arg1)->GetCount();
6342
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_From_int((int)result);
6347 return resultobj;
6348 fail:
6349 return NULL;
6350 }
6351
6352
6353 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
6354 PyObject *obj;
6355 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6356 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6357 Py_INCREF(obj);
6358 return Py_BuildValue((char *)"");
6359 }
6360 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6361 PyObject *resultobj;
6362 wxString *arg1 = 0 ;
6363 wxString const &arg2_defvalue = wxPyEmptyString ;
6364 wxString *arg2 = (wxString *) &arg2_defvalue ;
6365 wxSingleInstanceChecker *result;
6366 bool temp1 = false ;
6367 bool temp2 = false ;
6368 PyObject * obj0 = 0 ;
6369 PyObject * obj1 = 0 ;
6370 char *kwnames[] = {
6371 (char *) "name",(char *) "path", NULL
6372 };
6373
6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6375 {
6376 arg1 = wxString_in_helper(obj0);
6377 if (arg1 == NULL) SWIG_fail;
6378 temp1 = true;
6379 }
6380 if (obj1) {
6381 {
6382 arg2 = wxString_in_helper(obj1);
6383 if (arg2 == NULL) SWIG_fail;
6384 temp2 = true;
6385 }
6386 }
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6390
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6395 {
6396 if (temp1)
6397 delete arg1;
6398 }
6399 {
6400 if (temp2)
6401 delete arg2;
6402 }
6403 return resultobj;
6404 fail:
6405 {
6406 if (temp1)
6407 delete arg1;
6408 }
6409 {
6410 if (temp2)
6411 delete arg2;
6412 }
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6418 PyObject *resultobj;
6419 wxSingleInstanceChecker *result;
6420 char *kwnames[] = {
6421 NULL
6422 };
6423
6424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6433 return resultobj;
6434 fail:
6435 return NULL;
6436 }
6437
6438
6439 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6440 PyObject *resultobj;
6441 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6442 PyObject * obj0 = 0 ;
6443 char *kwnames[] = {
6444 (char *) "self", NULL
6445 };
6446
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6450 {
6451 PyThreadState* __tstate = wxPyBeginAllowThreads();
6452 delete arg1;
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 Py_INCREF(Py_None); resultobj = Py_None;
6458 return resultobj;
6459 fail:
6460 return NULL;
6461 }
6462
6463
6464 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6465 PyObject *resultobj;
6466 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6467 wxString *arg2 = 0 ;
6468 wxString const &arg3_defvalue = wxPyEmptyString ;
6469 wxString *arg3 = (wxString *) &arg3_defvalue ;
6470 bool result;
6471 bool temp2 = false ;
6472 bool temp3 = false ;
6473 PyObject * obj0 = 0 ;
6474 PyObject * obj1 = 0 ;
6475 PyObject * obj2 = 0 ;
6476 char *kwnames[] = {
6477 (char *) "self",(char *) "name",(char *) "path", NULL
6478 };
6479
6480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6483 {
6484 arg2 = wxString_in_helper(obj1);
6485 if (arg2 == NULL) SWIG_fail;
6486 temp2 = true;
6487 }
6488 if (obj2) {
6489 {
6490 arg3 = wxString_in_helper(obj2);
6491 if (arg3 == NULL) SWIG_fail;
6492 temp3 = true;
6493 }
6494 }
6495 {
6496 PyThreadState* __tstate = wxPyBeginAllowThreads();
6497 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6498
6499 wxPyEndAllowThreads(__tstate);
6500 if (PyErr_Occurred()) SWIG_fail;
6501 }
6502 {
6503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6504 }
6505 {
6506 if (temp2)
6507 delete arg2;
6508 }
6509 {
6510 if (temp3)
6511 delete arg3;
6512 }
6513 return resultobj;
6514 fail:
6515 {
6516 if (temp2)
6517 delete arg2;
6518 }
6519 {
6520 if (temp3)
6521 delete arg3;
6522 }
6523 return NULL;
6524 }
6525
6526
6527 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj;
6529 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6530 bool result;
6531 PyObject * obj0 = 0 ;
6532 char *kwnames[] = {
6533 (char *) "self", NULL
6534 };
6535
6536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6539 {
6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
6541 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6542
6543 wxPyEndAllowThreads(__tstate);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 {
6547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6548 }
6549 return resultobj;
6550 fail:
6551 return NULL;
6552 }
6553
6554
6555 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
6556 PyObject *obj;
6557 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6558 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6559 Py_INCREF(obj);
6560 return Py_BuildValue((char *)"");
6561 }
6562 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj;
6564 wxWindow *arg1 = (wxWindow *) 0 ;
6565 wxDC *arg2 = 0 ;
6566 int arg3 ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj1 = 0 ;
6569 PyObject * obj2 = 0 ;
6570 char *kwnames[] = {
6571 (char *) "window",(char *) "dc",(char *) "method", NULL
6572 };
6573
6574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6577 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6578 SWIG_POINTER_EXCEPTION | 0)) == -1)
6579 SWIG_fail;
6580 if (arg2 == NULL) {
6581 PyErr_SetString(PyExc_TypeError,"null reference");
6582 SWIG_fail;
6583 }
6584 arg3 = (int)SWIG_As_int(obj2);
6585 if (PyErr_Occurred()) SWIG_fail;
6586 {
6587 PyThreadState* __tstate = wxPyBeginAllowThreads();
6588 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6589
6590 wxPyEndAllowThreads(__tstate);
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 Py_INCREF(Py_None); resultobj = Py_None;
6594 return resultobj;
6595 fail:
6596 return NULL;
6597 }
6598
6599
6600 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj;
6602 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6603 PyObject * obj0 = 0 ;
6604 char *kwnames[] = {
6605 (char *) "self", NULL
6606 };
6607
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6611 {
6612 PyThreadState* __tstate = wxPyBeginAllowThreads();
6613 delete arg1;
6614
6615 wxPyEndAllowThreads(__tstate);
6616 if (PyErr_Occurred()) SWIG_fail;
6617 }
6618 Py_INCREF(Py_None); resultobj = Py_None;
6619 return resultobj;
6620 fail:
6621 return NULL;
6622 }
6623
6624
6625 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
6626 PyObject *resultobj;
6627 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6628 wxString result;
6629 PyObject * obj0 = 0 ;
6630 char *kwnames[] = {
6631 (char *) "self", NULL
6632 };
6633
6634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6637 {
6638 PyThreadState* __tstate = wxPyBeginAllowThreads();
6639 result = (arg1)->GetTip();
6640
6641 wxPyEndAllowThreads(__tstate);
6642 if (PyErr_Occurred()) SWIG_fail;
6643 }
6644 {
6645 #if wxUSE_UNICODE
6646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6647 #else
6648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6649 #endif
6650 }
6651 return resultobj;
6652 fail:
6653 return NULL;
6654 }
6655
6656
6657 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
6658 PyObject *resultobj;
6659 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6660 size_t result;
6661 PyObject * obj0 = 0 ;
6662 char *kwnames[] = {
6663 (char *) "self", NULL
6664 };
6665
6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 result = (size_t)(arg1)->GetCurrentTip();
6672
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
6677 return resultobj;
6678 fail:
6679 return NULL;
6680 }
6681
6682
6683 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
6684 PyObject *resultobj;
6685 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6686 wxString *arg2 = 0 ;
6687 wxString result;
6688 bool temp2 = false ;
6689 PyObject * obj0 = 0 ;
6690 PyObject * obj1 = 0 ;
6691 char *kwnames[] = {
6692 (char *) "self",(char *) "tip", NULL
6693 };
6694
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6698 {
6699 arg2 = wxString_in_helper(obj1);
6700 if (arg2 == NULL) SWIG_fail;
6701 temp2 = true;
6702 }
6703 {
6704 PyThreadState* __tstate = wxPyBeginAllowThreads();
6705 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6706
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 {
6711 #if wxUSE_UNICODE
6712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6713 #else
6714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6715 #endif
6716 }
6717 {
6718 if (temp2)
6719 delete arg2;
6720 }
6721 return resultobj;
6722 fail:
6723 {
6724 if (temp2)
6725 delete arg2;
6726 }
6727 return NULL;
6728 }
6729
6730
6731 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
6732 PyObject *obj;
6733 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6734 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6735 Py_INCREF(obj);
6736 return Py_BuildValue((char *)"");
6737 }
6738 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6739 PyObject *resultobj;
6740 size_t arg1 ;
6741 wxPyTipProvider *result;
6742 PyObject * obj0 = 0 ;
6743 char *kwnames[] = {
6744 (char *) "currentTip", NULL
6745 };
6746
6747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6748 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
6749 if (PyErr_Occurred()) SWIG_fail;
6750 {
6751 PyThreadState* __tstate = wxPyBeginAllowThreads();
6752 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj;
6766 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6767 PyObject *arg2 = (PyObject *) 0 ;
6768 PyObject *arg3 = (PyObject *) 0 ;
6769 PyObject * obj0 = 0 ;
6770 PyObject * obj1 = 0 ;
6771 PyObject * obj2 = 0 ;
6772 char *kwnames[] = {
6773 (char *) "self",(char *) "self",(char *) "_class", NULL
6774 };
6775
6776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6779 arg2 = obj1;
6780 arg3 = obj2;
6781 {
6782 PyThreadState* __tstate = wxPyBeginAllowThreads();
6783 (arg1)->_setCallbackInfo(arg2,arg3);
6784
6785 wxPyEndAllowThreads(__tstate);
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 Py_INCREF(Py_None); resultobj = Py_None;
6789 return resultobj;
6790 fail:
6791 return NULL;
6792 }
6793
6794
6795 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
6796 PyObject *obj;
6797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6798 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6799 Py_INCREF(obj);
6800 return Py_BuildValue((char *)"");
6801 }
6802 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj;
6804 wxWindow *arg1 = (wxWindow *) 0 ;
6805 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6806 bool arg3 = (bool) true ;
6807 bool result;
6808 PyObject * obj0 = 0 ;
6809 PyObject * obj1 = 0 ;
6810 PyObject * obj2 = 0 ;
6811 char *kwnames[] = {
6812 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6813 };
6814
6815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6818 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6820 if (obj2) {
6821 arg3 = (bool)SWIG_As_bool(obj2);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
6824 {
6825 if (!wxPyCheckForApp()) SWIG_fail;
6826 PyThreadState* __tstate = wxPyBeginAllowThreads();
6827 result = (bool)wxShowTip(arg1,arg2,arg3);
6828
6829 wxPyEndAllowThreads(__tstate);
6830 if (PyErr_Occurred()) SWIG_fail;
6831 }
6832 {
6833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6834 }
6835 return resultobj;
6836 fail:
6837 return NULL;
6838 }
6839
6840
6841 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6842 PyObject *resultobj;
6843 wxString *arg1 = 0 ;
6844 size_t arg2 ;
6845 wxTipProvider *result;
6846 bool temp1 = false ;
6847 PyObject * obj0 = 0 ;
6848 PyObject * obj1 = 0 ;
6849 char *kwnames[] = {
6850 (char *) "filename",(char *) "currentTip", NULL
6851 };
6852
6853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6854 {
6855 arg1 = wxString_in_helper(obj0);
6856 if (arg1 == NULL) SWIG_fail;
6857 temp1 = true;
6858 }
6859 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
6860 if (PyErr_Occurred()) SWIG_fail;
6861 {
6862 if (!wxPyCheckForApp()) SWIG_fail;
6863 PyThreadState* __tstate = wxPyBeginAllowThreads();
6864 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6865
6866 wxPyEndAllowThreads(__tstate);
6867 if (PyErr_Occurred()) SWIG_fail;
6868 }
6869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6870 {
6871 if (temp1)
6872 delete arg1;
6873 }
6874 return resultobj;
6875 fail:
6876 {
6877 if (temp1)
6878 delete arg1;
6879 }
6880 return NULL;
6881 }
6882
6883
6884 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj;
6886 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6887 int arg2 = (int) -1 ;
6888 wxPyTimer *result;
6889 PyObject * obj0 = 0 ;
6890 PyObject * obj1 = 0 ;
6891 char *kwnames[] = {
6892 (char *) "owner",(char *) "id", NULL
6893 };
6894
6895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6896 if (obj0) {
6897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6899 }
6900 if (obj1) {
6901 arg2 = (int)SWIG_As_int(obj1);
6902 if (PyErr_Occurred()) SWIG_fail;
6903 }
6904 {
6905 if (!wxPyCheckForApp()) SWIG_fail;
6906 PyThreadState* __tstate = wxPyBeginAllowThreads();
6907 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6908
6909 wxPyEndAllowThreads(__tstate);
6910 if (PyErr_Occurred()) SWIG_fail;
6911 }
6912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6913 return resultobj;
6914 fail:
6915 return NULL;
6916 }
6917
6918
6919 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6920 PyObject *resultobj;
6921 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 delete arg1;
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 Py_INCREF(Py_None); resultobj = Py_None;
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj;
6946 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6947 PyObject *arg2 = (PyObject *) 0 ;
6948 PyObject *arg3 = (PyObject *) 0 ;
6949 int arg4 = (int) 1 ;
6950 PyObject * obj0 = 0 ;
6951 PyObject * obj1 = 0 ;
6952 PyObject * obj2 = 0 ;
6953 PyObject * obj3 = 0 ;
6954 char *kwnames[] = {
6955 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6961 arg2 = obj1;
6962 arg3 = obj2;
6963 if (obj3) {
6964 arg4 = (int)SWIG_As_int(obj3);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 {
6968 PyThreadState* __tstate = wxPyBeginAllowThreads();
6969 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6970
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 Py_INCREF(Py_None); resultobj = Py_None;
6975 return resultobj;
6976 fail:
6977 return NULL;
6978 }
6979
6980
6981 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6982 PyObject *resultobj;
6983 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6984 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6985 int arg3 = (int) -1 ;
6986 PyObject * obj0 = 0 ;
6987 PyObject * obj1 = 0 ;
6988 PyObject * obj2 = 0 ;
6989 char *kwnames[] = {
6990 (char *) "self",(char *) "owner",(char *) "id", NULL
6991 };
6992
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6996 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6998 if (obj2) {
6999 arg3 = (int)SWIG_As_int(obj2);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 (arg1)->SetOwner(arg2,arg3);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 Py_INCREF(Py_None); resultobj = Py_None;
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj;
7018 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7019 wxEvtHandler *result;
7020 PyObject * obj0 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "self", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
7026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 result = (wxEvtHandler *)(arg1)->GetOwner();
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 {
7036 resultobj = wxPyMake_wxObject(result, 0);
7037 }
7038 return resultobj;
7039 fail:
7040 return NULL;
7041 }
7042
7043
7044 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7045 PyObject *resultobj;
7046 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7047 int arg2 = (int) -1 ;
7048 bool arg3 = (bool) false ;
7049 bool result;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 PyObject * obj2 = 0 ;
7053 char *kwnames[] = {
7054 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
7055 };
7056
7057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7060 if (obj1) {
7061 arg2 = (int)SWIG_As_int(obj1);
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 if (obj2) {
7065 arg3 = (bool)SWIG_As_bool(obj2);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 result = (bool)(arg1)->Start(arg2,arg3);
7071
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 {
7076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7077 }
7078 return resultobj;
7079 fail:
7080 return NULL;
7081 }
7082
7083
7084 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
7085 PyObject *resultobj;
7086 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7087 PyObject * obj0 = 0 ;
7088 char *kwnames[] = {
7089 (char *) "self", NULL
7090 };
7091
7092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
7093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 (arg1)->Stop();
7098
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 Py_INCREF(Py_None); resultobj = Py_None;
7103 return resultobj;
7104 fail:
7105 return NULL;
7106 }
7107
7108
7109 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
7110 PyObject *resultobj;
7111 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7112 bool result;
7113 PyObject * obj0 = 0 ;
7114 char *kwnames[] = {
7115 (char *) "self", NULL
7116 };
7117
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
7119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
7124
7125 wxPyEndAllowThreads(__tstate);
7126 if (PyErr_Occurred()) SWIG_fail;
7127 }
7128 {
7129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7130 }
7131 return resultobj;
7132 fail:
7133 return NULL;
7134 }
7135
7136
7137 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7138 PyObject *resultobj;
7139 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7140 int result;
7141 PyObject * obj0 = 0 ;
7142 char *kwnames[] = {
7143 (char *) "self", NULL
7144 };
7145
7146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
7147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7149 {
7150 PyThreadState* __tstate = wxPyBeginAllowThreads();
7151 result = (int)((wxPyTimer const *)arg1)->GetInterval();
7152
7153 wxPyEndAllowThreads(__tstate);
7154 if (PyErr_Occurred()) SWIG_fail;
7155 }
7156 resultobj = SWIG_From_int((int)result);
7157 return resultobj;
7158 fail:
7159 return NULL;
7160 }
7161
7162
7163 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
7164 PyObject *resultobj;
7165 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7166 bool result;
7167 PyObject * obj0 = 0 ;
7168 char *kwnames[] = {
7169 (char *) "self", NULL
7170 };
7171
7172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
7173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7175 {
7176 PyThreadState* __tstate = wxPyBeginAllowThreads();
7177 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
7178
7179 wxPyEndAllowThreads(__tstate);
7180 if (PyErr_Occurred()) SWIG_fail;
7181 }
7182 {
7183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7184 }
7185 return resultobj;
7186 fail:
7187 return NULL;
7188 }
7189
7190
7191 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
7192 PyObject *resultobj;
7193 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7194 int result;
7195 PyObject * obj0 = 0 ;
7196 char *kwnames[] = {
7197 (char *) "self", NULL
7198 };
7199
7200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
7201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7203 {
7204 PyThreadState* __tstate = wxPyBeginAllowThreads();
7205 result = (int)((wxPyTimer const *)arg1)->GetId();
7206
7207 wxPyEndAllowThreads(__tstate);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 resultobj = SWIG_From_int((int)result);
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
7218 PyObject *obj;
7219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7220 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
7221 Py_INCREF(obj);
7222 return Py_BuildValue((char *)"");
7223 }
7224 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
7225 PyObject *resultobj;
7226 int arg1 = (int) 0 ;
7227 int arg2 = (int) 0 ;
7228 wxTimerEvent *result;
7229 PyObject * obj0 = 0 ;
7230 PyObject * obj1 = 0 ;
7231 char *kwnames[] = {
7232 (char *) "timerid",(char *) "interval", NULL
7233 };
7234
7235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
7236 if (obj0) {
7237 arg1 = (int)SWIG_As_int(obj0);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 if (obj1) {
7241 arg2 = (int)SWIG_As_int(obj1);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
7247
7248 wxPyEndAllowThreads(__tstate);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
7252 return resultobj;
7253 fail:
7254 return NULL;
7255 }
7256
7257
7258 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj;
7260 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
7261 int result;
7262 PyObject * obj0 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "self", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 resultobj = SWIG_From_int((int)result);
7278 return resultobj;
7279 fail:
7280 return NULL;
7281 }
7282
7283
7284 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
7285 PyObject *obj;
7286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7287 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7288 Py_INCREF(obj);
7289 return Py_BuildValue((char *)"");
7290 }
7291 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
7292 PyObject *resultobj;
7293 wxTimer *arg1 = 0 ;
7294 wxTimerRunner *result;
7295 PyObject * obj0 = 0 ;
7296
7297 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7299 SWIG_POINTER_EXCEPTION | 0)) == -1)
7300 SWIG_fail;
7301 if (arg1 == NULL) {
7302 PyErr_SetString(PyExc_TypeError,"null reference");
7303 SWIG_fail;
7304 }
7305 {
7306 if (!wxPyCheckForApp()) SWIG_fail;
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7309
7310 wxPyEndAllowThreads(__tstate);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7314 return resultobj;
7315 fail:
7316 return NULL;
7317 }
7318
7319
7320 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
7321 PyObject *resultobj;
7322 wxTimer *arg1 = 0 ;
7323 int arg2 ;
7324 bool arg3 = (bool) false ;
7325 wxTimerRunner *result;
7326 PyObject * obj0 = 0 ;
7327 PyObject * obj1 = 0 ;
7328 PyObject * obj2 = 0 ;
7329
7330 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7332 SWIG_POINTER_EXCEPTION | 0)) == -1)
7333 SWIG_fail;
7334 if (arg1 == NULL) {
7335 PyErr_SetString(PyExc_TypeError,"null reference");
7336 SWIG_fail;
7337 }
7338 arg2 = (int)SWIG_As_int(obj1);
7339 if (PyErr_Occurred()) SWIG_fail;
7340 if (obj2) {
7341 arg3 = (bool)SWIG_As_bool(obj2);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 if (!wxPyCheckForApp()) SWIG_fail;
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
7352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7353 return resultobj;
7354 fail:
7355 return NULL;
7356 }
7357
7358
7359 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7360 int argc;
7361 PyObject *argv[4];
7362 int ii;
7363
7364 argc = PyObject_Length(args);
7365 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7366 argv[ii] = PyTuple_GetItem(args,ii);
7367 }
7368 if (argc == 1) {
7369 int _v;
7370 {
7371 void *ptr;
7372 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7373 _v = 0;
7374 PyErr_Clear();
7375 } else {
7376 _v = 1;
7377 }
7378 }
7379 if (_v) {
7380 return _wrap_new_TimerRunner__SWIG_0(self,args);
7381 }
7382 }
7383 if ((argc >= 2) && (argc <= 3)) {
7384 int _v;
7385 {
7386 void *ptr;
7387 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7388 _v = 0;
7389 PyErr_Clear();
7390 } else {
7391 _v = 1;
7392 }
7393 }
7394 if (_v) {
7395 _v = SWIG_Check_int(argv[1]);
7396 if (_v) {
7397 if (argc <= 2) {
7398 return _wrap_new_TimerRunner__SWIG_1(self,args);
7399 }
7400 _v = SWIG_Check_bool(argv[2]);
7401 if (_v) {
7402 return _wrap_new_TimerRunner__SWIG_1(self,args);
7403 }
7404 }
7405 }
7406 }
7407
7408 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7409 return NULL;
7410 }
7411
7412
7413 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
7414 PyObject *resultobj;
7415 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7416 PyObject * obj0 = 0 ;
7417 char *kwnames[] = {
7418 (char *) "self", NULL
7419 };
7420
7421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7424 {
7425 PyThreadState* __tstate = wxPyBeginAllowThreads();
7426 delete arg1;
7427
7428 wxPyEndAllowThreads(__tstate);
7429 if (PyErr_Occurred()) SWIG_fail;
7430 }
7431 Py_INCREF(Py_None); resultobj = Py_None;
7432 return resultobj;
7433 fail:
7434 return NULL;
7435 }
7436
7437
7438 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7439 PyObject *resultobj;
7440 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7441 int arg2 ;
7442 bool arg3 = (bool) false ;
7443 PyObject * obj0 = 0 ;
7444 PyObject * obj1 = 0 ;
7445 PyObject * obj2 = 0 ;
7446 char *kwnames[] = {
7447 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7448 };
7449
7450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7453 arg2 = (int)SWIG_As_int(obj1);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 if (obj2) {
7456 arg3 = (bool)SWIG_As_bool(obj2);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 (arg1)->Start(arg2,arg3);
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 Py_INCREF(Py_None); resultobj = Py_None;
7467 return resultobj;
7468 fail:
7469 return NULL;
7470 }
7471
7472
7473 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
7474 PyObject *obj;
7475 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7476 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7477 Py_INCREF(obj);
7478 return Py_BuildValue((char *)"");
7479 }
7480 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
7481 PyObject *resultobj;
7482 wxLog *result;
7483 char *kwnames[] = {
7484 NULL
7485 };
7486
7487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7488 {
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 result = (wxLog *)new wxLog();
7491
7492 wxPyEndAllowThreads(__tstate);
7493 if (PyErr_Occurred()) SWIG_fail;
7494 }
7495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7496 return resultobj;
7497 fail:
7498 return NULL;
7499 }
7500
7501
7502 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
7503 PyObject *resultobj;
7504 bool result;
7505 char *kwnames[] = {
7506 NULL
7507 };
7508
7509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7510 {
7511 PyThreadState* __tstate = wxPyBeginAllowThreads();
7512 result = (bool)wxLog::IsEnabled();
7513
7514 wxPyEndAllowThreads(__tstate);
7515 if (PyErr_Occurred()) SWIG_fail;
7516 }
7517 {
7518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7519 }
7520 return resultobj;
7521 fail:
7522 return NULL;
7523 }
7524
7525
7526 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
7527 PyObject *resultobj;
7528 bool arg1 = (bool) true ;
7529 bool result;
7530 PyObject * obj0 = 0 ;
7531 char *kwnames[] = {
7532 (char *) "doIt", NULL
7533 };
7534
7535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7536 if (obj0) {
7537 arg1 = (bool)SWIG_As_bool(obj0);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (bool)wxLog::EnableLogging(arg1);
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 {
7548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7549 }
7550 return resultobj;
7551 fail:
7552 return NULL;
7553 }
7554
7555
7556 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
7557 PyObject *resultobj;
7558 wxLogLevel arg1 ;
7559 wxChar *arg2 = (wxChar *) 0 ;
7560 time_t arg3 ;
7561 PyObject * obj0 = 0 ;
7562 PyObject * obj1 = 0 ;
7563 PyObject * obj2 = 0 ;
7564 char *kwnames[] = {
7565 (char *) "level",(char *) "szString",(char *) "t", NULL
7566 };
7567
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7569 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7573 arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 {
7576 PyThreadState* __tstate = wxPyBeginAllowThreads();
7577 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7578
7579 wxPyEndAllowThreads(__tstate);
7580 if (PyErr_Occurred()) SWIG_fail;
7581 }
7582 Py_INCREF(Py_None); resultobj = Py_None;
7583 return resultobj;
7584 fail:
7585 return NULL;
7586 }
7587
7588
7589 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj;
7591 wxLog *arg1 = (wxLog *) 0 ;
7592 PyObject * obj0 = 0 ;
7593 char *kwnames[] = {
7594 (char *) "self", NULL
7595 };
7596
7597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 (arg1)->Flush();
7603
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 Py_INCREF(Py_None); resultobj = Py_None;
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj;
7616 char *kwnames[] = {
7617 NULL
7618 };
7619
7620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7621 {
7622 PyThreadState* __tstate = wxPyBeginAllowThreads();
7623 wxLog::FlushActive();
7624
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 Py_INCREF(Py_None); resultobj = Py_None;
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 wxLog *result;
7638 char *kwnames[] = {
7639 NULL
7640 };
7641
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7643 {
7644 PyThreadState* __tstate = wxPyBeginAllowThreads();
7645 result = (wxLog *)wxLog::GetActiveTarget();
7646
7647 wxPyEndAllowThreads(__tstate);
7648 if (PyErr_Occurred()) SWIG_fail;
7649 }
7650 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7651 return resultobj;
7652 fail:
7653 return NULL;
7654 }
7655
7656
7657 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7658 PyObject *resultobj;
7659 wxLog *arg1 = (wxLog *) 0 ;
7660 wxLog *result;
7661 PyObject * obj0 = 0 ;
7662 char *kwnames[] = {
7663 (char *) "pLogger", NULL
7664 };
7665
7666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7669 {
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7672
7673 wxPyEndAllowThreads(__tstate);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7677 return resultobj;
7678 fail:
7679 return NULL;
7680 }
7681
7682
7683 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 char *kwnames[] = {
7686 NULL
7687 };
7688
7689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7690 {
7691 PyThreadState* __tstate = wxPyBeginAllowThreads();
7692 wxLog::Suspend();
7693
7694 wxPyEndAllowThreads(__tstate);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 Py_INCREF(Py_None); resultobj = Py_None;
7698 return resultobj;
7699 fail:
7700 return NULL;
7701 }
7702
7703
7704 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
7705 PyObject *resultobj;
7706 char *kwnames[] = {
7707 NULL
7708 };
7709
7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7711 {
7712 PyThreadState* __tstate = wxPyBeginAllowThreads();
7713 wxLog::Resume();
7714
7715 wxPyEndAllowThreads(__tstate);
7716 if (PyErr_Occurred()) SWIG_fail;
7717 }
7718 Py_INCREF(Py_None); resultobj = Py_None;
7719 return resultobj;
7720 fail:
7721 return NULL;
7722 }
7723
7724
7725 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7726 PyObject *resultobj;
7727 bool arg1 = (bool) true ;
7728 PyObject * obj0 = 0 ;
7729 char *kwnames[] = {
7730 (char *) "bVerbose", NULL
7731 };
7732
7733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7734 if (obj0) {
7735 arg1 = (bool)SWIG_As_bool(obj0);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 {
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 wxLog::SetVerbose(arg1);
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 Py_INCREF(Py_None); resultobj = Py_None;
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxLogLevel arg1 ;
7755 PyObject * obj0 = 0 ;
7756 char *kwnames[] = {
7757 (char *) "logLevel", NULL
7758 };
7759
7760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7761 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 {
7764 PyThreadState* __tstate = wxPyBeginAllowThreads();
7765 wxLog::SetLogLevel(arg1);
7766
7767 wxPyEndAllowThreads(__tstate);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 Py_INCREF(Py_None); resultobj = Py_None;
7771 return resultobj;
7772 fail:
7773 return NULL;
7774 }
7775
7776
7777 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
7778 PyObject *resultobj;
7779 char *kwnames[] = {
7780 NULL
7781 };
7782
7783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7784 {
7785 PyThreadState* __tstate = wxPyBeginAllowThreads();
7786 wxLog::DontCreateOnDemand();
7787
7788 wxPyEndAllowThreads(__tstate);
7789 if (PyErr_Occurred()) SWIG_fail;
7790 }
7791 Py_INCREF(Py_None); resultobj = Py_None;
7792 return resultobj;
7793 fail:
7794 return NULL;
7795 }
7796
7797
7798 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7799 PyObject *resultobj;
7800 wxTraceMask arg1 ;
7801 PyObject * obj0 = 0 ;
7802 char *kwnames[] = {
7803 (char *) "ulMask", NULL
7804 };
7805
7806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7807 arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 wxLog::SetTraceMask(arg1);
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 Py_INCREF(Py_None); resultobj = Py_None;
7817 return resultobj;
7818 fail:
7819 return NULL;
7820 }
7821
7822
7823 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7824 PyObject *resultobj;
7825 wxString *arg1 = 0 ;
7826 bool temp1 = false ;
7827 PyObject * obj0 = 0 ;
7828 char *kwnames[] = {
7829 (char *) "str", NULL
7830 };
7831
7832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7833 {
7834 arg1 = wxString_in_helper(obj0);
7835 if (arg1 == NULL) SWIG_fail;
7836 temp1 = true;
7837 }
7838 {
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 wxLog::AddTraceMask((wxString const &)*arg1);
7841
7842 wxPyEndAllowThreads(__tstate);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 Py_INCREF(Py_None); resultobj = Py_None;
7846 {
7847 if (temp1)
7848 delete arg1;
7849 }
7850 return resultobj;
7851 fail:
7852 {
7853 if (temp1)
7854 delete arg1;
7855 }
7856 return NULL;
7857 }
7858
7859
7860 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7861 PyObject *resultobj;
7862 wxString *arg1 = 0 ;
7863 bool temp1 = false ;
7864 PyObject * obj0 = 0 ;
7865 char *kwnames[] = {
7866 (char *) "str", NULL
7867 };
7868
7869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7870 {
7871 arg1 = wxString_in_helper(obj0);
7872 if (arg1 == NULL) SWIG_fail;
7873 temp1 = true;
7874 }
7875 {
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 wxLog::RemoveTraceMask((wxString const &)*arg1);
7878
7879 wxPyEndAllowThreads(__tstate);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 Py_INCREF(Py_None); resultobj = Py_None;
7883 {
7884 if (temp1)
7885 delete arg1;
7886 }
7887 return resultobj;
7888 fail:
7889 {
7890 if (temp1)
7891 delete arg1;
7892 }
7893 return NULL;
7894 }
7895
7896
7897 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7898 PyObject *resultobj;
7899 char *kwnames[] = {
7900 NULL
7901 };
7902
7903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7904 {
7905 PyThreadState* __tstate = wxPyBeginAllowThreads();
7906 wxLog::ClearTraceMasks();
7907
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 Py_INCREF(Py_None); resultobj = Py_None;
7912 return resultobj;
7913 fail:
7914 return NULL;
7915 }
7916
7917
7918 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj;
7920 wxArrayString *result;
7921 char *kwnames[] = {
7922 NULL
7923 };
7924
7925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7926 {
7927 PyThreadState* __tstate = wxPyBeginAllowThreads();
7928 {
7929 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7930 result = (wxArrayString *) &_result_ref;
7931 }
7932
7933 wxPyEndAllowThreads(__tstate);
7934 if (PyErr_Occurred()) SWIG_fail;
7935 }
7936 {
7937 resultobj = wxArrayString2PyList_helper(*result);
7938 }
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7946 PyObject *resultobj;
7947 wxChar *arg1 = (wxChar *) 0 ;
7948 PyObject * obj0 = 0 ;
7949 char *kwnames[] = {
7950 (char *) "ts", NULL
7951 };
7952
7953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7956 {
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 wxLog::SetTimestamp((wxChar const *)arg1);
7959
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 Py_INCREF(Py_None); resultobj = Py_None;
7964 return resultobj;
7965 fail:
7966 return NULL;
7967 }
7968
7969
7970 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj;
7972 bool result;
7973 char *kwnames[] = {
7974 NULL
7975 };
7976
7977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (bool)wxLog::GetVerbose();
7981
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 {
7986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7987 }
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj;
7996 wxTraceMask result;
7997 char *kwnames[] = {
7998 NULL
7999 };
8000
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
8002 {
8003 PyThreadState* __tstate = wxPyBeginAllowThreads();
8004 result = (wxTraceMask)wxLog::GetTraceMask();
8005
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8010 return resultobj;
8011 fail:
8012 return NULL;
8013 }
8014
8015
8016 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
8017 PyObject *resultobj;
8018 wxChar *arg1 = (wxChar *) 0 ;
8019 bool result;
8020 PyObject * obj0 = 0 ;
8021 char *kwnames[] = {
8022 (char *) "mask", NULL
8023 };
8024
8025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
8026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
8027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8028 {
8029 PyThreadState* __tstate = wxPyBeginAllowThreads();
8030 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
8031
8032 wxPyEndAllowThreads(__tstate);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 {
8036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8037 }
8038 return resultobj;
8039 fail:
8040 return NULL;
8041 }
8042
8043
8044 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
8045 PyObject *resultobj;
8046 wxLogLevel result;
8047 char *kwnames[] = {
8048 NULL
8049 };
8050
8051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
8052 {
8053 PyThreadState* __tstate = wxPyBeginAllowThreads();
8054 result = (wxLogLevel)wxLog::GetLogLevel();
8055
8056 wxPyEndAllowThreads(__tstate);
8057 if (PyErr_Occurred()) SWIG_fail;
8058 }
8059 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8060 return resultobj;
8061 fail:
8062 return NULL;
8063 }
8064
8065
8066 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
8067 PyObject *resultobj;
8068 wxChar *result;
8069 char *kwnames[] = {
8070 NULL
8071 };
8072
8073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
8074 {
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 result = (wxChar *)wxLog::GetTimestamp();
8077
8078 wxPyEndAllowThreads(__tstate);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj;
8090 wxString result;
8091 char *kwnames[] = {
8092 NULL
8093 };
8094
8095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
8096 {
8097 PyThreadState* __tstate = wxPyBeginAllowThreads();
8098 result = Log_TimeStamp();
8099
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 {
8104 #if wxUSE_UNICODE
8105 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8106 #else
8107 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8108 #endif
8109 }
8110 return resultobj;
8111 fail:
8112 return NULL;
8113 }
8114
8115
8116 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
8117 PyObject *resultobj;
8118 wxLog *arg1 = (wxLog *) 0 ;
8119 PyObject * obj0 = 0 ;
8120 char *kwnames[] = {
8121 (char *) "self", NULL
8122 };
8123
8124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
8125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8127 {
8128 PyThreadState* __tstate = wxPyBeginAllowThreads();
8129 wxLog_Destroy(arg1);
8130
8131 wxPyEndAllowThreads(__tstate);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 Py_INCREF(Py_None); resultobj = Py_None;
8135 return resultobj;
8136 fail:
8137 return NULL;
8138 }
8139
8140
8141 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
8142 PyObject *obj;
8143 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8144 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
8145 Py_INCREF(obj);
8146 return Py_BuildValue((char *)"");
8147 }
8148 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
8149 PyObject *resultobj;
8150 wxLogStderr *result;
8151 char *kwnames[] = {
8152 NULL
8153 };
8154
8155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
8156 {
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 result = (wxLogStderr *)new wxLogStderr();
8159
8160 wxPyEndAllowThreads(__tstate);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 }
8163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
8164 return resultobj;
8165 fail:
8166 return NULL;
8167 }
8168
8169
8170 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
8171 PyObject *obj;
8172 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8173 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
8174 Py_INCREF(obj);
8175 return Py_BuildValue((char *)"");
8176 }
8177 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8180 wxLogTextCtrl *result;
8181 PyObject * obj0 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "pTextCtrl", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
8187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
8191 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
8192
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
8197 return resultobj;
8198 fail:
8199 return NULL;
8200 }
8201
8202
8203 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
8204 PyObject *obj;
8205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8206 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
8207 Py_INCREF(obj);
8208 return Py_BuildValue((char *)"");
8209 }
8210 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj;
8212 wxLogGui *result;
8213 char *kwnames[] = {
8214 NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
8218 {
8219 PyThreadState* __tstate = wxPyBeginAllowThreads();
8220 result = (wxLogGui *)new wxLogGui();
8221
8222 wxPyEndAllowThreads(__tstate);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 }
8225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
8226 return resultobj;
8227 fail:
8228 return NULL;
8229 }
8230
8231
8232 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
8233 PyObject *obj;
8234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8235 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
8236 Py_INCREF(obj);
8237 return Py_BuildValue((char *)"");
8238 }
8239 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj;
8241 wxFrame *arg1 = (wxFrame *) 0 ;
8242 wxString *arg2 = 0 ;
8243 bool arg3 = (bool) true ;
8244 bool arg4 = (bool) true ;
8245 wxLogWindow *result;
8246 bool temp2 = false ;
8247 PyObject * obj0 = 0 ;
8248 PyObject * obj1 = 0 ;
8249 PyObject * obj2 = 0 ;
8250 PyObject * obj3 = 0 ;
8251 char *kwnames[] = {
8252 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8258 {
8259 arg2 = wxString_in_helper(obj1);
8260 if (arg2 == NULL) SWIG_fail;
8261 temp2 = true;
8262 }
8263 if (obj2) {
8264 arg3 = (bool)SWIG_As_bool(obj2);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 if (obj3) {
8268 arg4 = (bool)SWIG_As_bool(obj3);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 }
8271 {
8272 PyThreadState* __tstate = wxPyBeginAllowThreads();
8273 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8274
8275 wxPyEndAllowThreads(__tstate);
8276 if (PyErr_Occurred()) SWIG_fail;
8277 }
8278 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8279 {
8280 if (temp2)
8281 delete arg2;
8282 }
8283 return resultobj;
8284 fail:
8285 {
8286 if (temp2)
8287 delete arg2;
8288 }
8289 return NULL;
8290 }
8291
8292
8293 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj;
8295 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8296 bool arg2 = (bool) true ;
8297 PyObject * obj0 = 0 ;
8298 PyObject * obj1 = 0 ;
8299 char *kwnames[] = {
8300 (char *) "self",(char *) "bShow", NULL
8301 };
8302
8303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8306 if (obj1) {
8307 arg2 = (bool)SWIG_As_bool(obj1);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 {
8311 PyThreadState* __tstate = wxPyBeginAllowThreads();
8312 (arg1)->Show(arg2);
8313
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 Py_INCREF(Py_None); resultobj = Py_None;
8318 return resultobj;
8319 fail:
8320 return NULL;
8321 }
8322
8323
8324 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj;
8326 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8327 wxFrame *result;
8328 PyObject * obj0 = 0 ;
8329 char *kwnames[] = {
8330 (char *) "self", NULL
8331 };
8332
8333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8336 {
8337 PyThreadState* __tstate = wxPyBeginAllowThreads();
8338 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8339
8340 wxPyEndAllowThreads(__tstate);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 {
8344 resultobj = wxPyMake_wxObject(result, 0);
8345 }
8346 return resultobj;
8347 fail:
8348 return NULL;
8349 }
8350
8351
8352 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8353 PyObject *resultobj;
8354 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8355 wxLog *result;
8356 PyObject * obj0 = 0 ;
8357 char *kwnames[] = {
8358 (char *) "self", NULL
8359 };
8360
8361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8364 {
8365 PyThreadState* __tstate = wxPyBeginAllowThreads();
8366 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8367
8368 wxPyEndAllowThreads(__tstate);
8369 if (PyErr_Occurred()) SWIG_fail;
8370 }
8371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8372 return resultobj;
8373 fail:
8374 return NULL;
8375 }
8376
8377
8378 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj;
8380 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8381 bool result;
8382 PyObject * obj0 = 0 ;
8383 char *kwnames[] = {
8384 (char *) "self", NULL
8385 };
8386
8387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8390 {
8391 PyThreadState* __tstate = wxPyBeginAllowThreads();
8392 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8393
8394 wxPyEndAllowThreads(__tstate);
8395 if (PyErr_Occurred()) SWIG_fail;
8396 }
8397 {
8398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8399 }
8400 return resultobj;
8401 fail:
8402 return NULL;
8403 }
8404
8405
8406 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8407 PyObject *resultobj;
8408 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8409 bool arg2 ;
8410 PyObject * obj0 = 0 ;
8411 PyObject * obj1 = 0 ;
8412 char *kwnames[] = {
8413 (char *) "self",(char *) "bDoPass", NULL
8414 };
8415
8416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8419 arg2 = (bool)SWIG_As_bool(obj1);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 {
8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
8423 (arg1)->PassMessages(arg2);
8424
8425 wxPyEndAllowThreads(__tstate);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 Py_INCREF(Py_None); resultobj = Py_None;
8429 return resultobj;
8430 fail:
8431 return NULL;
8432 }
8433
8434
8435 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
8436 PyObject *obj;
8437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8438 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8439 Py_INCREF(obj);
8440 return Py_BuildValue((char *)"");
8441 }
8442 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
8443 PyObject *resultobj;
8444 wxLog *arg1 = (wxLog *) 0 ;
8445 wxLogChain *result;
8446 PyObject * obj0 = 0 ;
8447 char *kwnames[] = {
8448 (char *) "logger", NULL
8449 };
8450
8451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8454 {
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 result = (wxLogChain *)new wxLogChain(arg1);
8457
8458 wxPyEndAllowThreads(__tstate);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8462 return resultobj;
8463 fail:
8464 return NULL;
8465 }
8466
8467
8468 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
8469 PyObject *resultobj;
8470 wxLogChain *arg1 = (wxLogChain *) 0 ;
8471 wxLog *arg2 = (wxLog *) 0 ;
8472 PyObject * obj0 = 0 ;
8473 PyObject * obj1 = 0 ;
8474 char *kwnames[] = {
8475 (char *) "self",(char *) "logger", NULL
8476 };
8477
8478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8483 {
8484 PyThreadState* __tstate = wxPyBeginAllowThreads();
8485 (arg1)->SetLog(arg2);
8486
8487 wxPyEndAllowThreads(__tstate);
8488 if (PyErr_Occurred()) SWIG_fail;
8489 }
8490 Py_INCREF(Py_None); resultobj = Py_None;
8491 return resultobj;
8492 fail:
8493 return NULL;
8494 }
8495
8496
8497 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8498 PyObject *resultobj;
8499 wxLogChain *arg1 = (wxLogChain *) 0 ;
8500 bool arg2 ;
8501 PyObject * obj0 = 0 ;
8502 PyObject * obj1 = 0 ;
8503 char *kwnames[] = {
8504 (char *) "self",(char *) "bDoPass", NULL
8505 };
8506
8507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8510 arg2 = (bool)SWIG_As_bool(obj1);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 {
8513 PyThreadState* __tstate = wxPyBeginAllowThreads();
8514 (arg1)->PassMessages(arg2);
8515
8516 wxPyEndAllowThreads(__tstate);
8517 if (PyErr_Occurred()) SWIG_fail;
8518 }
8519 Py_INCREF(Py_None); resultobj = Py_None;
8520 return resultobj;
8521 fail:
8522 return NULL;
8523 }
8524
8525
8526 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8527 PyObject *resultobj;
8528 wxLogChain *arg1 = (wxLogChain *) 0 ;
8529 bool result;
8530 PyObject * obj0 = 0 ;
8531 char *kwnames[] = {
8532 (char *) "self", NULL
8533 };
8534
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8538 {
8539 PyThreadState* __tstate = wxPyBeginAllowThreads();
8540 result = (bool)(arg1)->IsPassingMessages();
8541
8542 wxPyEndAllowThreads(__tstate);
8543 if (PyErr_Occurred()) SWIG_fail;
8544 }
8545 {
8546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8547 }
8548 return resultobj;
8549 fail:
8550 return NULL;
8551 }
8552
8553
8554 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj;
8556 wxLogChain *arg1 = (wxLogChain *) 0 ;
8557 wxLog *result;
8558 PyObject * obj0 = 0 ;
8559 char *kwnames[] = {
8560 (char *) "self", NULL
8561 };
8562
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8566 {
8567 PyThreadState* __tstate = wxPyBeginAllowThreads();
8568 result = (wxLog *)(arg1)->GetOldLog();
8569
8570 wxPyEndAllowThreads(__tstate);
8571 if (PyErr_Occurred()) SWIG_fail;
8572 }
8573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8574 return resultobj;
8575 fail:
8576 return NULL;
8577 }
8578
8579
8580 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
8581 PyObject *obj;
8582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8583 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8584 Py_INCREF(obj);
8585 return Py_BuildValue((char *)"");
8586 }
8587 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 unsigned long result;
8590 char *kwnames[] = {
8591 NULL
8592 };
8593
8594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (unsigned long)wxSysErrorCode();
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) SWIG_fail;
8601 }
8602 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8603 return resultobj;
8604 fail:
8605 return NULL;
8606 }
8607
8608
8609 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
8610 PyObject *resultobj;
8611 unsigned long arg1 = (unsigned long) 0 ;
8612 wxString result;
8613 PyObject * obj0 = 0 ;
8614 char *kwnames[] = {
8615 (char *) "nErrCode", NULL
8616 };
8617
8618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8619 if (obj0) {
8620 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
8625 result = wxSysErrorMsg(arg1);
8626
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 {
8631 #if wxUSE_UNICODE
8632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8633 #else
8634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8635 #endif
8636 }
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj;
8645 wxString *arg1 = 0 ;
8646 bool temp1 = false ;
8647 PyObject * obj0 = 0 ;
8648 char *kwnames[] = {
8649 (char *) "msg", NULL
8650 };
8651
8652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8653 {
8654 arg1 = wxString_in_helper(obj0);
8655 if (arg1 == NULL) SWIG_fail;
8656 temp1 = true;
8657 }
8658 {
8659 PyThreadState* __tstate = wxPyBeginAllowThreads();
8660 wxPyLogFatalError((wxString const &)*arg1);
8661
8662 wxPyEndAllowThreads(__tstate);
8663 if (PyErr_Occurred()) SWIG_fail;
8664 }
8665 Py_INCREF(Py_None); resultobj = Py_None;
8666 {
8667 if (temp1)
8668 delete arg1;
8669 }
8670 return resultobj;
8671 fail:
8672 {
8673 if (temp1)
8674 delete arg1;
8675 }
8676 return NULL;
8677 }
8678
8679
8680 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
8681 PyObject *resultobj;
8682 wxString *arg1 = 0 ;
8683 bool temp1 = false ;
8684 PyObject * obj0 = 0 ;
8685 char *kwnames[] = {
8686 (char *) "msg", NULL
8687 };
8688
8689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8690 {
8691 arg1 = wxString_in_helper(obj0);
8692 if (arg1 == NULL) SWIG_fail;
8693 temp1 = true;
8694 }
8695 {
8696 PyThreadState* __tstate = wxPyBeginAllowThreads();
8697 wxPyLogError((wxString const &)*arg1);
8698
8699 wxPyEndAllowThreads(__tstate);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 Py_INCREF(Py_None); resultobj = Py_None;
8703 {
8704 if (temp1)
8705 delete arg1;
8706 }
8707 return resultobj;
8708 fail:
8709 {
8710 if (temp1)
8711 delete arg1;
8712 }
8713 return NULL;
8714 }
8715
8716
8717 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
8718 PyObject *resultobj;
8719 wxString *arg1 = 0 ;
8720 bool temp1 = false ;
8721 PyObject * obj0 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "msg", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8727 {
8728 arg1 = wxString_in_helper(obj0);
8729 if (arg1 == NULL) SWIG_fail;
8730 temp1 = true;
8731 }
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 wxPyLogWarning((wxString const &)*arg1);
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 Py_INCREF(Py_None); resultobj = Py_None;
8740 {
8741 if (temp1)
8742 delete arg1;
8743 }
8744 return resultobj;
8745 fail:
8746 {
8747 if (temp1)
8748 delete arg1;
8749 }
8750 return NULL;
8751 }
8752
8753
8754 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj;
8756 wxString *arg1 = 0 ;
8757 bool temp1 = false ;
8758 PyObject * obj0 = 0 ;
8759 char *kwnames[] = {
8760 (char *) "msg", NULL
8761 };
8762
8763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8764 {
8765 arg1 = wxString_in_helper(obj0);
8766 if (arg1 == NULL) SWIG_fail;
8767 temp1 = true;
8768 }
8769 {
8770 PyThreadState* __tstate = wxPyBeginAllowThreads();
8771 wxPyLogMessage((wxString const &)*arg1);
8772
8773 wxPyEndAllowThreads(__tstate);
8774 if (PyErr_Occurred()) SWIG_fail;
8775 }
8776 Py_INCREF(Py_None); resultobj = Py_None;
8777 {
8778 if (temp1)
8779 delete arg1;
8780 }
8781 return resultobj;
8782 fail:
8783 {
8784 if (temp1)
8785 delete arg1;
8786 }
8787 return NULL;
8788 }
8789
8790
8791 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj;
8793 wxString *arg1 = 0 ;
8794 bool temp1 = false ;
8795 PyObject * obj0 = 0 ;
8796 char *kwnames[] = {
8797 (char *) "msg", NULL
8798 };
8799
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8801 {
8802 arg1 = wxString_in_helper(obj0);
8803 if (arg1 == NULL) SWIG_fail;
8804 temp1 = true;
8805 }
8806 {
8807 PyThreadState* __tstate = wxPyBeginAllowThreads();
8808 wxPyLogInfo((wxString const &)*arg1);
8809
8810 wxPyEndAllowThreads(__tstate);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 }
8813 Py_INCREF(Py_None); resultobj = Py_None;
8814 {
8815 if (temp1)
8816 delete arg1;
8817 }
8818 return resultobj;
8819 fail:
8820 {
8821 if (temp1)
8822 delete arg1;
8823 }
8824 return NULL;
8825 }
8826
8827
8828 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
8829 PyObject *resultobj;
8830 wxString *arg1 = 0 ;
8831 bool temp1 = false ;
8832 PyObject * obj0 = 0 ;
8833 char *kwnames[] = {
8834 (char *) "msg", NULL
8835 };
8836
8837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8838 {
8839 arg1 = wxString_in_helper(obj0);
8840 if (arg1 == NULL) SWIG_fail;
8841 temp1 = true;
8842 }
8843 {
8844 PyThreadState* __tstate = wxPyBeginAllowThreads();
8845 wxPyLogDebug((wxString const &)*arg1);
8846
8847 wxPyEndAllowThreads(__tstate);
8848 if (PyErr_Occurred()) SWIG_fail;
8849 }
8850 Py_INCREF(Py_None); resultobj = Py_None;
8851 {
8852 if (temp1)
8853 delete arg1;
8854 }
8855 return resultobj;
8856 fail:
8857 {
8858 if (temp1)
8859 delete arg1;
8860 }
8861 return NULL;
8862 }
8863
8864
8865 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj;
8867 wxString *arg1 = 0 ;
8868 bool temp1 = false ;
8869 PyObject * obj0 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "msg", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8875 {
8876 arg1 = wxString_in_helper(obj0);
8877 if (arg1 == NULL) SWIG_fail;
8878 temp1 = true;
8879 }
8880 {
8881 PyThreadState* __tstate = wxPyBeginAllowThreads();
8882 wxPyLogVerbose((wxString const &)*arg1);
8883
8884 wxPyEndAllowThreads(__tstate);
8885 if (PyErr_Occurred()) SWIG_fail;
8886 }
8887 Py_INCREF(Py_None); resultobj = Py_None;
8888 {
8889 if (temp1)
8890 delete arg1;
8891 }
8892 return resultobj;
8893 fail:
8894 {
8895 if (temp1)
8896 delete arg1;
8897 }
8898 return NULL;
8899 }
8900
8901
8902 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
8903 PyObject *resultobj;
8904 wxString *arg1 = 0 ;
8905 bool temp1 = false ;
8906 PyObject * obj0 = 0 ;
8907 char *kwnames[] = {
8908 (char *) "msg", NULL
8909 };
8910
8911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8912 {
8913 arg1 = wxString_in_helper(obj0);
8914 if (arg1 == NULL) SWIG_fail;
8915 temp1 = true;
8916 }
8917 {
8918 PyThreadState* __tstate = wxPyBeginAllowThreads();
8919 wxPyLogStatus((wxString const &)*arg1);
8920
8921 wxPyEndAllowThreads(__tstate);
8922 if (PyErr_Occurred()) SWIG_fail;
8923 }
8924 Py_INCREF(Py_None); resultobj = Py_None;
8925 {
8926 if (temp1)
8927 delete arg1;
8928 }
8929 return resultobj;
8930 fail:
8931 {
8932 if (temp1)
8933 delete arg1;
8934 }
8935 return NULL;
8936 }
8937
8938
8939 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8940 PyObject *resultobj;
8941 wxFrame *arg1 = (wxFrame *) 0 ;
8942 wxString *arg2 = 0 ;
8943 bool temp2 = false ;
8944 PyObject * obj0 = 0 ;
8945 PyObject * obj1 = 0 ;
8946 char *kwnames[] = {
8947 (char *) "pFrame",(char *) "msg", NULL
8948 };
8949
8950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8953 {
8954 arg2 = wxString_in_helper(obj1);
8955 if (arg2 == NULL) SWIG_fail;
8956 temp2 = true;
8957 }
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 wxPyLogStatusFrame(arg1,(wxString const &)*arg2);
8961
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 Py_INCREF(Py_None); resultobj = Py_None;
8966 {
8967 if (temp2)
8968 delete arg2;
8969 }
8970 return resultobj;
8971 fail:
8972 {
8973 if (temp2)
8974 delete arg2;
8975 }
8976 return NULL;
8977 }
8978
8979
8980 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
8981 PyObject *resultobj;
8982 wxString *arg1 = 0 ;
8983 bool temp1 = false ;
8984 PyObject * obj0 = 0 ;
8985 char *kwnames[] = {
8986 (char *) "msg", NULL
8987 };
8988
8989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8990 {
8991 arg1 = wxString_in_helper(obj0);
8992 if (arg1 == NULL) SWIG_fail;
8993 temp1 = true;
8994 }
8995 {
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 wxPyLogSysError((wxString const &)*arg1);
8998
8999 wxPyEndAllowThreads(__tstate);
9000 if (PyErr_Occurred()) SWIG_fail;
9001 }
9002 Py_INCREF(Py_None); resultobj = Py_None;
9003 {
9004 if (temp1)
9005 delete arg1;
9006 }
9007 return resultobj;
9008 fail:
9009 {
9010 if (temp1)
9011 delete arg1;
9012 }
9013 return NULL;
9014 }
9015
9016
9017 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
9018 PyObject *resultobj;
9019 unsigned long arg1 ;
9020 wxString *arg2 = 0 ;
9021 bool temp2 = false ;
9022 PyObject * obj0 = 0 ;
9023 PyObject * obj1 = 0 ;
9024 char *kwnames[] = {
9025 (char *) "level",(char *) "msg", NULL
9026 };
9027
9028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
9029 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 {
9032 arg2 = wxString_in_helper(obj1);
9033 if (arg2 == NULL) SWIG_fail;
9034 temp2 = true;
9035 }
9036 {
9037 PyThreadState* __tstate = wxPyBeginAllowThreads();
9038 wxPyLogGeneric(arg1,(wxString const &)*arg2);
9039
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 Py_INCREF(Py_None); resultobj = Py_None;
9044 {
9045 if (temp2)
9046 delete arg2;
9047 }
9048 return resultobj;
9049 fail:
9050 {
9051 if (temp2)
9052 delete arg2;
9053 }
9054 return NULL;
9055 }
9056
9057
9058 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
9059 PyObject *resultobj;
9060 unsigned long arg1 ;
9061 wxString *arg2 = 0 ;
9062 bool temp2 = false ;
9063 PyObject * obj0 = 0 ;
9064 PyObject * obj1 = 0 ;
9065
9066 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
9067 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 {
9070 arg2 = wxString_in_helper(obj1);
9071 if (arg2 == NULL) SWIG_fail;
9072 temp2 = true;
9073 }
9074 {
9075 PyThreadState* __tstate = wxPyBeginAllowThreads();
9076 wxPyLogTrace(arg1,(wxString const &)*arg2);
9077
9078 wxPyEndAllowThreads(__tstate);
9079 if (PyErr_Occurred()) SWIG_fail;
9080 }
9081 Py_INCREF(Py_None); resultobj = Py_None;
9082 {
9083 if (temp2)
9084 delete arg2;
9085 }
9086 return resultobj;
9087 fail:
9088 {
9089 if (temp2)
9090 delete arg2;
9091 }
9092 return NULL;
9093 }
9094
9095
9096 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
9097 PyObject *resultobj;
9098 wxString *arg1 = 0 ;
9099 wxString *arg2 = 0 ;
9100 bool temp1 = false ;
9101 bool temp2 = false ;
9102 PyObject * obj0 = 0 ;
9103 PyObject * obj1 = 0 ;
9104
9105 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
9106 {
9107 arg1 = wxString_in_helper(obj0);
9108 if (arg1 == NULL) SWIG_fail;
9109 temp1 = true;
9110 }
9111 {
9112 arg2 = wxString_in_helper(obj1);
9113 if (arg2 == NULL) SWIG_fail;
9114 temp2 = true;
9115 }
9116 {
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
9119
9120 wxPyEndAllowThreads(__tstate);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 Py_INCREF(Py_None); resultobj = Py_None;
9124 {
9125 if (temp1)
9126 delete arg1;
9127 }
9128 {
9129 if (temp2)
9130 delete arg2;
9131 }
9132 return resultobj;
9133 fail:
9134 {
9135 if (temp1)
9136 delete arg1;
9137 }
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return NULL;
9143 }
9144
9145
9146 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
9147 int argc;
9148 PyObject *argv[3];
9149 int ii;
9150
9151 argc = PyObject_Length(args);
9152 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
9153 argv[ii] = PyTuple_GetItem(args,ii);
9154 }
9155 if (argc == 2) {
9156 int _v;
9157 {
9158 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9159 }
9160 if (_v) {
9161 {
9162 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9163 }
9164 if (_v) {
9165 return _wrap_LogTrace__SWIG_1(self,args);
9166 }
9167 }
9168 }
9169 if (argc == 2) {
9170 int _v;
9171 _v = SWIG_Check_unsigned_SS_long(argv[0]);
9172 if (_v) {
9173 {
9174 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9175 }
9176 if (_v) {
9177 return _wrap_LogTrace__SWIG_0(self,args);
9178 }
9179 }
9180 }
9181
9182 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
9183 return NULL;
9184 }
9185
9186
9187 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
9188 PyObject *resultobj;
9189 wxString *arg1 = 0 ;
9190 wxString *arg2 = 0 ;
9191 bool temp1 = false ;
9192 bool temp2 = false ;
9193 PyObject * obj0 = 0 ;
9194 PyObject * obj1 = 0 ;
9195 char *kwnames[] = {
9196 (char *) "title",(char *) "text", NULL
9197 };
9198
9199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
9200 {
9201 arg1 = wxString_in_helper(obj0);
9202 if (arg1 == NULL) SWIG_fail;
9203 temp1 = true;
9204 }
9205 {
9206 arg2 = wxString_in_helper(obj1);
9207 if (arg2 == NULL) SWIG_fail;
9208 temp2 = true;
9209 }
9210 {
9211 PyThreadState* __tstate = wxPyBeginAllowThreads();
9212 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
9213
9214 wxPyEndAllowThreads(__tstate);
9215 if (PyErr_Occurred()) SWIG_fail;
9216 }
9217 Py_INCREF(Py_None); resultobj = Py_None;
9218 {
9219 if (temp1)
9220 delete arg1;
9221 }
9222 {
9223 if (temp2)
9224 delete arg2;
9225 }
9226 return resultobj;
9227 fail:
9228 {
9229 if (temp1)
9230 delete arg1;
9231 }
9232 {
9233 if (temp2)
9234 delete arg2;
9235 }
9236 return NULL;
9237 }
9238
9239
9240 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 wxLogNull *result;
9243 char *kwnames[] = {
9244 NULL
9245 };
9246
9247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
9248 {
9249 PyThreadState* __tstate = wxPyBeginAllowThreads();
9250 result = (wxLogNull *)new wxLogNull();
9251
9252 wxPyEndAllowThreads(__tstate);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 }
9255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
9256 return resultobj;
9257 fail:
9258 return NULL;
9259 }
9260
9261
9262 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9263 PyObject *resultobj;
9264 wxLogNull *arg1 = (wxLogNull *) 0 ;
9265 PyObject * obj0 = 0 ;
9266 char *kwnames[] = {
9267 (char *) "self", NULL
9268 };
9269
9270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9273 {
9274 PyThreadState* __tstate = wxPyBeginAllowThreads();
9275 delete arg1;
9276
9277 wxPyEndAllowThreads(__tstate);
9278 if (PyErr_Occurred()) SWIG_fail;
9279 }
9280 Py_INCREF(Py_None); resultobj = Py_None;
9281 return resultobj;
9282 fail:
9283 return NULL;
9284 }
9285
9286
9287 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
9288 PyObject *obj;
9289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9290 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9291 Py_INCREF(obj);
9292 return Py_BuildValue((char *)"");
9293 }
9294 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
9295 PyObject *resultobj;
9296 wxPyLog *result;
9297 char *kwnames[] = {
9298 NULL
9299 };
9300
9301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 result = (wxPyLog *)new wxPyLog();
9305
9306 wxPyEndAllowThreads(__tstate);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9310 return resultobj;
9311 fail:
9312 return NULL;
9313 }
9314
9315
9316 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9317 PyObject *resultobj;
9318 wxPyLog *arg1 = (wxPyLog *) 0 ;
9319 PyObject *arg2 = (PyObject *) 0 ;
9320 PyObject *arg3 = (PyObject *) 0 ;
9321 PyObject * obj0 = 0 ;
9322 PyObject * obj1 = 0 ;
9323 PyObject * obj2 = 0 ;
9324 char *kwnames[] = {
9325 (char *) "self",(char *) "self",(char *) "_class", NULL
9326 };
9327
9328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9331 arg2 = obj1;
9332 arg3 = obj2;
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 (arg1)->_setCallbackInfo(arg2,arg3);
9336
9337 wxPyEndAllowThreads(__tstate);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 Py_INCREF(Py_None); resultobj = Py_None;
9341 return resultobj;
9342 fail:
9343 return NULL;
9344 }
9345
9346
9347 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
9348 PyObject *obj;
9349 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9350 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9351 Py_INCREF(obj);
9352 return Py_BuildValue((char *)"");
9353 }
9354 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj;
9356 int arg1 ;
9357 int arg2 = (int) wxSIGTERM ;
9358 int result;
9359 PyObject * obj0 = 0 ;
9360 PyObject * obj1 = 0 ;
9361 char *kwnames[] = {
9362 (char *) "pid",(char *) "sig", NULL
9363 };
9364
9365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9366 arg1 = (int)SWIG_As_int(obj0);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 if (obj1) {
9369 arg2 = (int)SWIG_As_int(obj1);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9375
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 resultobj = SWIG_From_int((int)result);
9380 return resultobj;
9381 fail:
9382 return NULL;
9383 }
9384
9385
9386 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
9387 PyObject *resultobj;
9388 int arg1 ;
9389 bool result;
9390 PyObject * obj0 = 0 ;
9391 char *kwnames[] = {
9392 (char *) "pid", NULL
9393 };
9394
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9396 arg1 = (int)SWIG_As_int(obj0);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 result = (bool)wxPyProcess::Exists(arg1);
9401
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 {
9406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9407 }
9408 return resultobj;
9409 fail:
9410 return NULL;
9411 }
9412
9413
9414 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
9415 PyObject *resultobj;
9416 wxString *arg1 = 0 ;
9417 int arg2 = (int) wxEXEC_ASYNC ;
9418 wxPyProcess *result;
9419 bool temp1 = false ;
9420 PyObject * obj0 = 0 ;
9421 PyObject * obj1 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "cmd",(char *) "flags", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9427 {
9428 arg1 = wxString_in_helper(obj0);
9429 if (arg1 == NULL) SWIG_fail;
9430 temp1 = true;
9431 }
9432 if (obj1) {
9433 arg2 = (int)SWIG_As_int(obj1);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 {
9437 PyThreadState* __tstate = wxPyBeginAllowThreads();
9438 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9439
9440 wxPyEndAllowThreads(__tstate);
9441 if (PyErr_Occurred()) SWIG_fail;
9442 }
9443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9444 {
9445 if (temp1)
9446 delete arg1;
9447 }
9448 return resultobj;
9449 fail:
9450 {
9451 if (temp1)
9452 delete arg1;
9453 }
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj;
9460 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9461 int arg2 = (int) -1 ;
9462 wxPyProcess *result;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 char *kwnames[] = {
9466 (char *) "parent",(char *) "id", NULL
9467 };
9468
9469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9470 if (obj0) {
9471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9473 }
9474 if (obj1) {
9475 arg2 = (int)SWIG_As_int(obj1);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 {
9479 PyThreadState* __tstate = wxPyBeginAllowThreads();
9480 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9481
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj;
9494 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9495 PyObject *arg2 = (PyObject *) 0 ;
9496 PyObject *arg3 = (PyObject *) 0 ;
9497 PyObject * obj0 = 0 ;
9498 PyObject * obj1 = 0 ;
9499 PyObject * obj2 = 0 ;
9500 char *kwnames[] = {
9501 (char *) "self",(char *) "self",(char *) "_class", NULL
9502 };
9503
9504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9507 arg2 = obj1;
9508 arg3 = obj2;
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 (arg1)->_setCallbackInfo(arg2,arg3);
9512
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 Py_INCREF(Py_None); resultobj = Py_None;
9517 return resultobj;
9518 fail:
9519 return NULL;
9520 }
9521
9522
9523 static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
9524 PyObject *resultobj;
9525 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9526 int arg2 ;
9527 int arg3 ;
9528 PyObject * obj0 = 0 ;
9529 PyObject * obj1 = 0 ;
9530 PyObject * obj2 = 0 ;
9531 char *kwnames[] = {
9532 (char *) "self",(char *) "pid",(char *) "status", NULL
9533 };
9534
9535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9538 arg2 = (int)SWIG_As_int(obj1);
9539 if (PyErr_Occurred()) SWIG_fail;
9540 arg3 = (int)SWIG_As_int(obj2);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 (arg1)->base_OnTerminate(arg2,arg3);
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
9549 Py_INCREF(Py_None); resultobj = Py_None;
9550 return resultobj;
9551 fail:
9552 return NULL;
9553 }
9554
9555
9556 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
9557 PyObject *resultobj;
9558 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9559 PyObject * obj0 = 0 ;
9560 char *kwnames[] = {
9561 (char *) "self", NULL
9562 };
9563
9564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 (arg1)->Redirect();
9570
9571 wxPyEndAllowThreads(__tstate);
9572 if (PyErr_Occurred()) SWIG_fail;
9573 }
9574 Py_INCREF(Py_None); resultobj = Py_None;
9575 return resultobj;
9576 fail:
9577 return NULL;
9578 }
9579
9580
9581 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
9582 PyObject *resultobj;
9583 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9584 bool result;
9585 PyObject * obj0 = 0 ;
9586 char *kwnames[] = {
9587 (char *) "self", NULL
9588 };
9589
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9593 {
9594 PyThreadState* __tstate = wxPyBeginAllowThreads();
9595 result = (bool)(arg1)->IsRedirected();
9596
9597 wxPyEndAllowThreads(__tstate);
9598 if (PyErr_Occurred()) SWIG_fail;
9599 }
9600 {
9601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9602 }
9603 return resultobj;
9604 fail:
9605 return NULL;
9606 }
9607
9608
9609 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
9610 PyObject *resultobj;
9611 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9612 PyObject * obj0 = 0 ;
9613 char *kwnames[] = {
9614 (char *) "self", NULL
9615 };
9616
9617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 (arg1)->Detach();
9623
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 Py_INCREF(Py_None); resultobj = Py_None;
9628 return resultobj;
9629 fail:
9630 return NULL;
9631 }
9632
9633
9634 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9635 PyObject *resultobj;
9636 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9637 wxInputStream *result;
9638 PyObject * obj0 = 0 ;
9639 char *kwnames[] = {
9640 (char *) "self", NULL
9641 };
9642
9643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 result = (wxInputStream *)(arg1)->GetInputStream();
9649
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 {
9654 wxPyInputStream * _ptr = NULL;
9655
9656 if (result) {
9657 _ptr = new wxPyInputStream(result);
9658 }
9659 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
9660 }
9661 return resultobj;
9662 fail:
9663 return NULL;
9664 }
9665
9666
9667 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj;
9669 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9670 wxInputStream *result;
9671 PyObject * obj0 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "self", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 result = (wxInputStream *)(arg1)->GetErrorStream();
9682
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
9686 {
9687 wxPyInputStream * _ptr = NULL;
9688
9689 if (result) {
9690 _ptr = new wxPyInputStream(result);
9691 }
9692 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
9693 }
9694 return resultobj;
9695 fail:
9696 return NULL;
9697 }
9698
9699
9700 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9701 PyObject *resultobj;
9702 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9703 wxOutputStream *result;
9704 PyObject * obj0 = 0 ;
9705 char *kwnames[] = {
9706 (char *) "self", NULL
9707 };
9708
9709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9712 {
9713 PyThreadState* __tstate = wxPyBeginAllowThreads();
9714 result = (wxOutputStream *)(arg1)->GetOutputStream();
9715
9716 wxPyEndAllowThreads(__tstate);
9717 if (PyErr_Occurred()) SWIG_fail;
9718 }
9719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9720 return resultobj;
9721 fail:
9722 return NULL;
9723 }
9724
9725
9726 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
9727 PyObject *resultobj;
9728 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9729 PyObject * obj0 = 0 ;
9730 char *kwnames[] = {
9731 (char *) "self", NULL
9732 };
9733
9734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 (arg1)->CloseOutput();
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 Py_INCREF(Py_None); resultobj = Py_None;
9745 return resultobj;
9746 fail:
9747 return NULL;
9748 }
9749
9750
9751 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj;
9753 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9754 bool result;
9755 PyObject * obj0 = 0 ;
9756 char *kwnames[] = {
9757 (char *) "self", NULL
9758 };
9759
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9763 {
9764 PyThreadState* __tstate = wxPyBeginAllowThreads();
9765 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9766
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 {
9771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9772 }
9773 return resultobj;
9774 fail:
9775 return NULL;
9776 }
9777
9778
9779 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj;
9781 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9782 bool result;
9783 PyObject * obj0 = 0 ;
9784 char *kwnames[] = {
9785 (char *) "self", NULL
9786 };
9787
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9794
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 {
9799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9800 }
9801 return resultobj;
9802 fail:
9803 return NULL;
9804 }
9805
9806
9807 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj;
9809 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9810 bool result;
9811 PyObject * obj0 = 0 ;
9812 char *kwnames[] = {
9813 (char *) "self", NULL
9814 };
9815
9816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9822
9823 wxPyEndAllowThreads(__tstate);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 {
9827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9828 }
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
9836 PyObject *obj;
9837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9838 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9839 Py_INCREF(obj);
9840 return Py_BuildValue((char *)"");
9841 }
9842 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj;
9844 int arg1 = (int) 0 ;
9845 int arg2 = (int) 0 ;
9846 int arg3 = (int) 0 ;
9847 wxProcessEvent *result;
9848 PyObject * obj0 = 0 ;
9849 PyObject * obj1 = 0 ;
9850 PyObject * obj2 = 0 ;
9851 char *kwnames[] = {
9852 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9853 };
9854
9855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9856 if (obj0) {
9857 arg1 = (int)SWIG_As_int(obj0);
9858 if (PyErr_Occurred()) SWIG_fail;
9859 }
9860 if (obj1) {
9861 arg2 = (int)SWIG_As_int(obj1);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 if (obj2) {
9865 arg3 = (int)SWIG_As_int(obj2);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 {
9869 PyThreadState* __tstate = wxPyBeginAllowThreads();
9870 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9871
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9876 return resultobj;
9877 fail:
9878 return NULL;
9879 }
9880
9881
9882 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj;
9884 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9885 int result;
9886 PyObject * obj0 = 0 ;
9887 char *kwnames[] = {
9888 (char *) "self", NULL
9889 };
9890
9891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 result = (int)(arg1)->GetPid();
9897
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_From_int((int)result);
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
9909 PyObject *resultobj;
9910 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9911 int result;
9912 PyObject * obj0 = 0 ;
9913 char *kwnames[] = {
9914 (char *) "self", NULL
9915 };
9916
9917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 result = (int)(arg1)->GetExitCode();
9923
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_From_int((int)result);
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj;
9936 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9937 int arg2 ;
9938 PyObject * obj0 = 0 ;
9939 PyObject * obj1 = 0 ;
9940 char *kwnames[] = {
9941 (char *) "self",(char *) "m_pid", NULL
9942 };
9943
9944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9947 arg2 = (int)SWIG_As_int(obj1);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 if (arg1) (arg1)->m_pid = arg2;
9950
9951 Py_INCREF(Py_None); resultobj = Py_None;
9952 return resultobj;
9953 fail:
9954 return NULL;
9955 }
9956
9957
9958 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj;
9960 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9961 int result;
9962 PyObject * obj0 = 0 ;
9963 char *kwnames[] = {
9964 (char *) "self", NULL
9965 };
9966
9967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9970 result = (int) ((arg1)->m_pid);
9971
9972 resultobj = SWIG_From_int((int)result);
9973 return resultobj;
9974 fail:
9975 return NULL;
9976 }
9977
9978
9979 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
9980 PyObject *resultobj;
9981 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9982 int arg2 ;
9983 PyObject * obj0 = 0 ;
9984 PyObject * obj1 = 0 ;
9985 char *kwnames[] = {
9986 (char *) "self",(char *) "m_exitcode", NULL
9987 };
9988
9989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9992 arg2 = (int)SWIG_As_int(obj1);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 if (arg1) (arg1)->m_exitcode = arg2;
9995
9996 Py_INCREF(Py_None); resultobj = Py_None;
9997 return resultobj;
9998 fail:
9999 return NULL;
10000 }
10001
10002
10003 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
10004 PyObject *resultobj;
10005 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
10006 int result;
10007 PyObject * obj0 = 0 ;
10008 char *kwnames[] = {
10009 (char *) "self", NULL
10010 };
10011
10012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
10013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
10014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10015 result = (int) ((arg1)->m_exitcode);
10016
10017 resultobj = SWIG_From_int((int)result);
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
10025 PyObject *obj;
10026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10027 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
10028 Py_INCREF(obj);
10029 return Py_BuildValue((char *)"");
10030 }
10031 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj;
10033 wxString *arg1 = 0 ;
10034 int arg2 = (int) wxEXEC_ASYNC ;
10035 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
10036 long result;
10037 bool temp1 = false ;
10038 PyObject * obj0 = 0 ;
10039 PyObject * obj1 = 0 ;
10040 PyObject * obj2 = 0 ;
10041 char *kwnames[] = {
10042 (char *) "command",(char *) "flags",(char *) "process", NULL
10043 };
10044
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
10046 {
10047 arg1 = wxString_in_helper(obj0);
10048 if (arg1 == NULL) SWIG_fail;
10049 temp1 = true;
10050 }
10051 if (obj1) {
10052 arg2 = (int)SWIG_As_int(obj1);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 if (obj2) {
10056 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
10057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10058 }
10059 {
10060 if (!wxPyCheckForApp()) SWIG_fail;
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_From_long((long)result);
10068 {
10069 if (temp1)
10070 delete arg1;
10071 }
10072 return resultobj;
10073 fail:
10074 {
10075 if (temp1)
10076 delete arg1;
10077 }
10078 return NULL;
10079 }
10080
10081
10082 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 int arg1 = (int) wxJOYSTICK1 ;
10085 wxJoystick *result;
10086 PyObject * obj0 = 0 ;
10087 char *kwnames[] = {
10088 (char *) "joystick", NULL
10089 };
10090
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
10092 if (obj0) {
10093 arg1 = (int)SWIG_As_int(obj0);
10094 if (PyErr_Occurred()) SWIG_fail;
10095 }
10096 {
10097 if (!wxPyCheckForApp()) SWIG_fail;
10098 PyThreadState* __tstate = wxPyBeginAllowThreads();
10099 result = (wxJoystick *)new wxJoystick(arg1);
10100
10101 wxPyEndAllowThreads(__tstate);
10102 if (PyErr_Occurred()) SWIG_fail;
10103 }
10104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
10105 return resultobj;
10106 fail:
10107 return NULL;
10108 }
10109
10110
10111 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
10112 PyObject *resultobj;
10113 wxJoystick *arg1 = (wxJoystick *) 0 ;
10114 PyObject * obj0 = 0 ;
10115 char *kwnames[] = {
10116 (char *) "self", NULL
10117 };
10118
10119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
10120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10122 {
10123 PyThreadState* __tstate = wxPyBeginAllowThreads();
10124 delete arg1;
10125
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 Py_INCREF(Py_None); resultobj = Py_None;
10130 return resultobj;
10131 fail:
10132 return NULL;
10133 }
10134
10135
10136 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10137 PyObject *resultobj;
10138 wxJoystick *arg1 = (wxJoystick *) 0 ;
10139 wxPoint result;
10140 PyObject * obj0 = 0 ;
10141 char *kwnames[] = {
10142 (char *) "self", NULL
10143 };
10144
10145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
10146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10148 {
10149 PyThreadState* __tstate = wxPyBeginAllowThreads();
10150 result = (arg1)->GetPosition();
10151
10152 wxPyEndAllowThreads(__tstate);
10153 if (PyErr_Occurred()) SWIG_fail;
10154 }
10155 {
10156 wxPoint * resultptr;
10157 resultptr = new wxPoint((wxPoint &) result);
10158 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10159 }
10160 return resultobj;
10161 fail:
10162 return NULL;
10163 }
10164
10165
10166 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10167 PyObject *resultobj;
10168 wxJoystick *arg1 = (wxJoystick *) 0 ;
10169 int result;
10170 PyObject * obj0 = 0 ;
10171 char *kwnames[] = {
10172 (char *) "self", NULL
10173 };
10174
10175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
10176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10178 {
10179 PyThreadState* __tstate = wxPyBeginAllowThreads();
10180 result = (int)(arg1)->GetZPosition();
10181
10182 wxPyEndAllowThreads(__tstate);
10183 if (PyErr_Occurred()) SWIG_fail;
10184 }
10185 resultobj = SWIG_From_int((int)result);
10186 return resultobj;
10187 fail:
10188 return NULL;
10189 }
10190
10191
10192 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
10193 PyObject *resultobj;
10194 wxJoystick *arg1 = (wxJoystick *) 0 ;
10195 int result;
10196 PyObject * obj0 = 0 ;
10197 char *kwnames[] = {
10198 (char *) "self", NULL
10199 };
10200
10201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
10202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10204 {
10205 PyThreadState* __tstate = wxPyBeginAllowThreads();
10206 result = (int)(arg1)->GetButtonState();
10207
10208 wxPyEndAllowThreads(__tstate);
10209 if (PyErr_Occurred()) SWIG_fail;
10210 }
10211 resultobj = SWIG_From_int((int)result);
10212 return resultobj;
10213 fail:
10214 return NULL;
10215 }
10216
10217
10218 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10219 PyObject *resultobj;
10220 wxJoystick *arg1 = (wxJoystick *) 0 ;
10221 int result;
10222 PyObject * obj0 = 0 ;
10223 char *kwnames[] = {
10224 (char *) "self", NULL
10225 };
10226
10227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
10228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 result = (int)(arg1)->GetPOVPosition();
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 resultobj = SWIG_From_int((int)result);
10238 return resultobj;
10239 fail:
10240 return NULL;
10241 }
10242
10243
10244 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10245 PyObject *resultobj;
10246 wxJoystick *arg1 = (wxJoystick *) 0 ;
10247 int result;
10248 PyObject * obj0 = 0 ;
10249 char *kwnames[] = {
10250 (char *) "self", NULL
10251 };
10252
10253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
10254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10256 {
10257 PyThreadState* __tstate = wxPyBeginAllowThreads();
10258 result = (int)(arg1)->GetPOVCTSPosition();
10259
10260 wxPyEndAllowThreads(__tstate);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 }
10263 resultobj = SWIG_From_int((int)result);
10264 return resultobj;
10265 fail:
10266 return NULL;
10267 }
10268
10269
10270 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10271 PyObject *resultobj;
10272 wxJoystick *arg1 = (wxJoystick *) 0 ;
10273 int result;
10274 PyObject * obj0 = 0 ;
10275 char *kwnames[] = {
10276 (char *) "self", NULL
10277 };
10278
10279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10282 {
10283 PyThreadState* __tstate = wxPyBeginAllowThreads();
10284 result = (int)(arg1)->GetRudderPosition();
10285
10286 wxPyEndAllowThreads(__tstate);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 }
10289 resultobj = SWIG_From_int((int)result);
10290 return resultobj;
10291 fail:
10292 return NULL;
10293 }
10294
10295
10296 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10297 PyObject *resultobj;
10298 wxJoystick *arg1 = (wxJoystick *) 0 ;
10299 int result;
10300 PyObject * obj0 = 0 ;
10301 char *kwnames[] = {
10302 (char *) "self", NULL
10303 };
10304
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (int)(arg1)->GetUPosition();
10311
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 resultobj = SWIG_From_int((int)result);
10316 return resultobj;
10317 fail:
10318 return NULL;
10319 }
10320
10321
10322 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10323 PyObject *resultobj;
10324 wxJoystick *arg1 = (wxJoystick *) 0 ;
10325 int result;
10326 PyObject * obj0 = 0 ;
10327 char *kwnames[] = {
10328 (char *) "self", NULL
10329 };
10330
10331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10334 {
10335 PyThreadState* __tstate = wxPyBeginAllowThreads();
10336 result = (int)(arg1)->GetVPosition();
10337
10338 wxPyEndAllowThreads(__tstate);
10339 if (PyErr_Occurred()) SWIG_fail;
10340 }
10341 resultobj = SWIG_From_int((int)result);
10342 return resultobj;
10343 fail:
10344 return NULL;
10345 }
10346
10347
10348 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10349 PyObject *resultobj;
10350 wxJoystick *arg1 = (wxJoystick *) 0 ;
10351 int result;
10352 PyObject * obj0 = 0 ;
10353 char *kwnames[] = {
10354 (char *) "self", NULL
10355 };
10356
10357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10360 {
10361 PyThreadState* __tstate = wxPyBeginAllowThreads();
10362 result = (int)(arg1)->GetMovementThreshold();
10363
10364 wxPyEndAllowThreads(__tstate);
10365 if (PyErr_Occurred()) SWIG_fail;
10366 }
10367 resultobj = SWIG_From_int((int)result);
10368 return resultobj;
10369 fail:
10370 return NULL;
10371 }
10372
10373
10374 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10375 PyObject *resultobj;
10376 wxJoystick *arg1 = (wxJoystick *) 0 ;
10377 int arg2 ;
10378 PyObject * obj0 = 0 ;
10379 PyObject * obj1 = 0 ;
10380 char *kwnames[] = {
10381 (char *) "self",(char *) "threshold", NULL
10382 };
10383
10384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10387 arg2 = (int)SWIG_As_int(obj1);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 {
10390 PyThreadState* __tstate = wxPyBeginAllowThreads();
10391 (arg1)->SetMovementThreshold(arg2);
10392
10393 wxPyEndAllowThreads(__tstate);
10394 if (PyErr_Occurred()) SWIG_fail;
10395 }
10396 Py_INCREF(Py_None); resultobj = Py_None;
10397 return resultobj;
10398 fail:
10399 return NULL;
10400 }
10401
10402
10403 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj;
10405 wxJoystick *arg1 = (wxJoystick *) 0 ;
10406 bool result;
10407 PyObject * obj0 = 0 ;
10408 char *kwnames[] = {
10409 (char *) "self", NULL
10410 };
10411
10412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10415 {
10416 PyThreadState* __tstate = wxPyBeginAllowThreads();
10417 result = (bool)(arg1)->IsOk();
10418
10419 wxPyEndAllowThreads(__tstate);
10420 if (PyErr_Occurred()) SWIG_fail;
10421 }
10422 {
10423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10424 }
10425 return resultobj;
10426 fail:
10427 return NULL;
10428 }
10429
10430
10431 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj;
10433 wxJoystick *arg1 = (wxJoystick *) 0 ;
10434 int result;
10435 PyObject * obj0 = 0 ;
10436 char *kwnames[] = {
10437 (char *) "self", NULL
10438 };
10439
10440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10443 {
10444 PyThreadState* __tstate = wxPyBeginAllowThreads();
10445 result = (int)(arg1)->GetNumberJoysticks();
10446
10447 wxPyEndAllowThreads(__tstate);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 }
10450 resultobj = SWIG_From_int((int)result);
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj;
10459 wxJoystick *arg1 = (wxJoystick *) 0 ;
10460 int result;
10461 PyObject * obj0 = 0 ;
10462 char *kwnames[] = {
10463 (char *) "self", NULL
10464 };
10465
10466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (int)(arg1)->GetManufacturerId();
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_From_int((int)result);
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj;
10485 wxJoystick *arg1 = (wxJoystick *) 0 ;
10486 int result;
10487 PyObject * obj0 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10495 {
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 result = (int)(arg1)->GetProductId();
10498
10499 wxPyEndAllowThreads(__tstate);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 }
10502 resultobj = SWIG_From_int((int)result);
10503 return resultobj;
10504 fail:
10505 return NULL;
10506 }
10507
10508
10509 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
10510 PyObject *resultobj;
10511 wxJoystick *arg1 = (wxJoystick *) 0 ;
10512 wxString result;
10513 PyObject * obj0 = 0 ;
10514 char *kwnames[] = {
10515 (char *) "self", NULL
10516 };
10517
10518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10521 {
10522 PyThreadState* __tstate = wxPyBeginAllowThreads();
10523 result = (arg1)->GetProductName();
10524
10525 wxPyEndAllowThreads(__tstate);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 }
10528 {
10529 #if wxUSE_UNICODE
10530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10531 #else
10532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10533 #endif
10534 }
10535 return resultobj;
10536 fail:
10537 return NULL;
10538 }
10539
10540
10541 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj;
10543 wxJoystick *arg1 = (wxJoystick *) 0 ;
10544 int result;
10545 PyObject * obj0 = 0 ;
10546 char *kwnames[] = {
10547 (char *) "self", NULL
10548 };
10549
10550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10553 {
10554 PyThreadState* __tstate = wxPyBeginAllowThreads();
10555 result = (int)(arg1)->GetXMin();
10556
10557 wxPyEndAllowThreads(__tstate);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 }
10560 resultobj = SWIG_From_int((int)result);
10561 return resultobj;
10562 fail:
10563 return NULL;
10564 }
10565
10566
10567 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
10568 PyObject *resultobj;
10569 wxJoystick *arg1 = (wxJoystick *) 0 ;
10570 int result;
10571 PyObject * obj0 = 0 ;
10572 char *kwnames[] = {
10573 (char *) "self", NULL
10574 };
10575
10576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = (int)(arg1)->GetYMin();
10582
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 resultobj = SWIG_From_int((int)result);
10587 return resultobj;
10588 fail:
10589 return NULL;
10590 }
10591
10592
10593 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj;
10595 wxJoystick *arg1 = (wxJoystick *) 0 ;
10596 int result;
10597 PyObject * obj0 = 0 ;
10598 char *kwnames[] = {
10599 (char *) "self", NULL
10600 };
10601
10602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (int)(arg1)->GetZMin();
10608
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 resultobj = SWIG_From_int((int)result);
10613 return resultobj;
10614 fail:
10615 return NULL;
10616 }
10617
10618
10619 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxJoystick *arg1 = (wxJoystick *) 0 ;
10622 int result;
10623 PyObject * obj0 = 0 ;
10624 char *kwnames[] = {
10625 (char *) "self", NULL
10626 };
10627
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 result = (int)(arg1)->GetXMax();
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_From_int((int)result);
10639 return resultobj;
10640 fail:
10641 return NULL;
10642 }
10643
10644
10645 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj;
10647 wxJoystick *arg1 = (wxJoystick *) 0 ;
10648 int result;
10649 PyObject * obj0 = 0 ;
10650 char *kwnames[] = {
10651 (char *) "self", NULL
10652 };
10653
10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = (int)(arg1)->GetYMax();
10660
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 resultobj = SWIG_From_int((int)result);
10665 return resultobj;
10666 fail:
10667 return NULL;
10668 }
10669
10670
10671 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj;
10673 wxJoystick *arg1 = (wxJoystick *) 0 ;
10674 int result;
10675 PyObject * obj0 = 0 ;
10676 char *kwnames[] = {
10677 (char *) "self", NULL
10678 };
10679
10680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10683 {
10684 PyThreadState* __tstate = wxPyBeginAllowThreads();
10685 result = (int)(arg1)->GetZMax();
10686
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 resultobj = SWIG_From_int((int)result);
10691 return resultobj;
10692 fail:
10693 return NULL;
10694 }
10695
10696
10697 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj;
10699 wxJoystick *arg1 = (wxJoystick *) 0 ;
10700 int result;
10701 PyObject * obj0 = 0 ;
10702 char *kwnames[] = {
10703 (char *) "self", NULL
10704 };
10705
10706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10709 {
10710 PyThreadState* __tstate = wxPyBeginAllowThreads();
10711 result = (int)(arg1)->GetNumberButtons();
10712
10713 wxPyEndAllowThreads(__tstate);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 resultobj = SWIG_From_int((int)result);
10717 return resultobj;
10718 fail:
10719 return NULL;
10720 }
10721
10722
10723 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10724 PyObject *resultobj;
10725 wxJoystick *arg1 = (wxJoystick *) 0 ;
10726 int result;
10727 PyObject * obj0 = 0 ;
10728 char *kwnames[] = {
10729 (char *) "self", NULL
10730 };
10731
10732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 result = (int)(arg1)->GetNumberAxes();
10738
10739 wxPyEndAllowThreads(__tstate);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 }
10742 resultobj = SWIG_From_int((int)result);
10743 return resultobj;
10744 fail:
10745 return NULL;
10746 }
10747
10748
10749 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10750 PyObject *resultobj;
10751 wxJoystick *arg1 = (wxJoystick *) 0 ;
10752 int result;
10753 PyObject * obj0 = 0 ;
10754 char *kwnames[] = {
10755 (char *) "self", NULL
10756 };
10757
10758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 result = (int)(arg1)->GetMaxButtons();
10764
10765 wxPyEndAllowThreads(__tstate);
10766 if (PyErr_Occurred()) SWIG_fail;
10767 }
10768 resultobj = SWIG_From_int((int)result);
10769 return resultobj;
10770 fail:
10771 return NULL;
10772 }
10773
10774
10775 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10776 PyObject *resultobj;
10777 wxJoystick *arg1 = (wxJoystick *) 0 ;
10778 int result;
10779 PyObject * obj0 = 0 ;
10780 char *kwnames[] = {
10781 (char *) "self", NULL
10782 };
10783
10784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10787 {
10788 PyThreadState* __tstate = wxPyBeginAllowThreads();
10789 result = (int)(arg1)->GetMaxAxes();
10790
10791 wxPyEndAllowThreads(__tstate);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 resultobj = SWIG_From_int((int)result);
10795 return resultobj;
10796 fail:
10797 return NULL;
10798 }
10799
10800
10801 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
10802 PyObject *resultobj;
10803 wxJoystick *arg1 = (wxJoystick *) 0 ;
10804 int result;
10805 PyObject * obj0 = 0 ;
10806 char *kwnames[] = {
10807 (char *) "self", NULL
10808 };
10809
10810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 result = (int)(arg1)->GetPollingMin();
10816
10817 wxPyEndAllowThreads(__tstate);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 resultobj = SWIG_From_int((int)result);
10821 return resultobj;
10822 fail:
10823 return NULL;
10824 }
10825
10826
10827 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
10828 PyObject *resultobj;
10829 wxJoystick *arg1 = (wxJoystick *) 0 ;
10830 int result;
10831 PyObject * obj0 = 0 ;
10832 char *kwnames[] = {
10833 (char *) "self", NULL
10834 };
10835
10836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10839 {
10840 PyThreadState* __tstate = wxPyBeginAllowThreads();
10841 result = (int)(arg1)->GetPollingMax();
10842
10843 wxPyEndAllowThreads(__tstate);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 resultobj = SWIG_From_int((int)result);
10847 return resultobj;
10848 fail:
10849 return NULL;
10850 }
10851
10852
10853 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
10854 PyObject *resultobj;
10855 wxJoystick *arg1 = (wxJoystick *) 0 ;
10856 int result;
10857 PyObject * obj0 = 0 ;
10858 char *kwnames[] = {
10859 (char *) "self", NULL
10860 };
10861
10862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 result = (int)(arg1)->GetRudderMin();
10868
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 resultobj = SWIG_From_int((int)result);
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxJoystick *arg1 = (wxJoystick *) 0 ;
10882 int result;
10883 PyObject * obj0 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 result = (int)(arg1)->GetRudderMax();
10894
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 resultobj = SWIG_From_int((int)result);
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj;
10907 wxJoystick *arg1 = (wxJoystick *) 0 ;
10908 int result;
10909 PyObject * obj0 = 0 ;
10910 char *kwnames[] = {
10911 (char *) "self", NULL
10912 };
10913
10914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 result = (int)(arg1)->GetUMin();
10920
10921 wxPyEndAllowThreads(__tstate);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 }
10924 resultobj = SWIG_From_int((int)result);
10925 return resultobj;
10926 fail:
10927 return NULL;
10928 }
10929
10930
10931 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj;
10933 wxJoystick *arg1 = (wxJoystick *) 0 ;
10934 int result;
10935 PyObject * obj0 = 0 ;
10936 char *kwnames[] = {
10937 (char *) "self", NULL
10938 };
10939
10940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10943 {
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (int)(arg1)->GetUMax();
10946
10947 wxPyEndAllowThreads(__tstate);
10948 if (PyErr_Occurred()) SWIG_fail;
10949 }
10950 resultobj = SWIG_From_int((int)result);
10951 return resultobj;
10952 fail:
10953 return NULL;
10954 }
10955
10956
10957 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
10958 PyObject *resultobj;
10959 wxJoystick *arg1 = (wxJoystick *) 0 ;
10960 int result;
10961 PyObject * obj0 = 0 ;
10962 char *kwnames[] = {
10963 (char *) "self", NULL
10964 };
10965
10966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10969 {
10970 PyThreadState* __tstate = wxPyBeginAllowThreads();
10971 result = (int)(arg1)->GetVMin();
10972
10973 wxPyEndAllowThreads(__tstate);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 }
10976 resultobj = SWIG_From_int((int)result);
10977 return resultobj;
10978 fail:
10979 return NULL;
10980 }
10981
10982
10983 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
10984 PyObject *resultobj;
10985 wxJoystick *arg1 = (wxJoystick *) 0 ;
10986 int result;
10987 PyObject * obj0 = 0 ;
10988 char *kwnames[] = {
10989 (char *) "self", NULL
10990 };
10991
10992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = (int)(arg1)->GetVMax();
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 resultobj = SWIG_From_int((int)result);
11003 return resultobj;
11004 fail:
11005 return NULL;
11006 }
11007
11008
11009 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
11010 PyObject *resultobj;
11011 wxJoystick *arg1 = (wxJoystick *) 0 ;
11012 bool result;
11013 PyObject * obj0 = 0 ;
11014 char *kwnames[] = {
11015 (char *) "self", NULL
11016 };
11017
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
11019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 result = (bool)(arg1)->HasRudder();
11024
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 {
11029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11030 }
11031 return resultobj;
11032 fail:
11033 return NULL;
11034 }
11035
11036
11037 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
11038 PyObject *resultobj;
11039 wxJoystick *arg1 = (wxJoystick *) 0 ;
11040 bool result;
11041 PyObject * obj0 = 0 ;
11042 char *kwnames[] = {
11043 (char *) "self", NULL
11044 };
11045
11046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
11047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11049 {
11050 PyThreadState* __tstate = wxPyBeginAllowThreads();
11051 result = (bool)(arg1)->HasZ();
11052
11053 wxPyEndAllowThreads(__tstate);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 }
11056 {
11057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11058 }
11059 return resultobj;
11060 fail:
11061 return NULL;
11062 }
11063
11064
11065 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
11066 PyObject *resultobj;
11067 wxJoystick *arg1 = (wxJoystick *) 0 ;
11068 bool result;
11069 PyObject * obj0 = 0 ;
11070 char *kwnames[] = {
11071 (char *) "self", NULL
11072 };
11073
11074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
11075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11077 {
11078 PyThreadState* __tstate = wxPyBeginAllowThreads();
11079 result = (bool)(arg1)->HasU();
11080
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 {
11085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11086 }
11087 return resultobj;
11088 fail:
11089 return NULL;
11090 }
11091
11092
11093 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
11094 PyObject *resultobj;
11095 wxJoystick *arg1 = (wxJoystick *) 0 ;
11096 bool result;
11097 PyObject * obj0 = 0 ;
11098 char *kwnames[] = {
11099 (char *) "self", NULL
11100 };
11101
11102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
11103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11105 {
11106 PyThreadState* __tstate = wxPyBeginAllowThreads();
11107 result = (bool)(arg1)->HasV();
11108
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 {
11113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11114 }
11115 return resultobj;
11116 fail:
11117 return NULL;
11118 }
11119
11120
11121 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
11122 PyObject *resultobj;
11123 wxJoystick *arg1 = (wxJoystick *) 0 ;
11124 bool result;
11125 PyObject * obj0 = 0 ;
11126 char *kwnames[] = {
11127 (char *) "self", NULL
11128 };
11129
11130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
11131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11133 {
11134 PyThreadState* __tstate = wxPyBeginAllowThreads();
11135 result = (bool)(arg1)->HasPOV();
11136
11137 wxPyEndAllowThreads(__tstate);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 }
11140 {
11141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11142 }
11143 return resultobj;
11144 fail:
11145 return NULL;
11146 }
11147
11148
11149 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
11150 PyObject *resultobj;
11151 wxJoystick *arg1 = (wxJoystick *) 0 ;
11152 bool result;
11153 PyObject * obj0 = 0 ;
11154 char *kwnames[] = {
11155 (char *) "self", NULL
11156 };
11157
11158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
11159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 result = (bool)(arg1)->HasPOV4Dir();
11164
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 {
11169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11170 }
11171 return resultobj;
11172 fail:
11173 return NULL;
11174 }
11175
11176
11177 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
11178 PyObject *resultobj;
11179 wxJoystick *arg1 = (wxJoystick *) 0 ;
11180 bool result;
11181 PyObject * obj0 = 0 ;
11182 char *kwnames[] = {
11183 (char *) "self", NULL
11184 };
11185
11186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
11187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 result = (bool)(arg1)->HasPOVCTS();
11192
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 {
11197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11198 }
11199 return resultobj;
11200 fail:
11201 return NULL;
11202 }
11203
11204
11205 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11206 PyObject *resultobj;
11207 wxJoystick *arg1 = (wxJoystick *) 0 ;
11208 wxWindow *arg2 = (wxWindow *) 0 ;
11209 int arg3 = (int) 0 ;
11210 bool result;
11211 PyObject * obj0 = 0 ;
11212 PyObject * obj1 = 0 ;
11213 PyObject * obj2 = 0 ;
11214 char *kwnames[] = {
11215 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
11216 };
11217
11218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
11219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11223 if (obj2) {
11224 arg3 = (int)SWIG_As_int(obj2);
11225 if (PyErr_Occurred()) SWIG_fail;
11226 }
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 result = (bool)(arg1)->SetCapture(arg2,arg3);
11230
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 {
11235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11236 }
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj;
11245 wxJoystick *arg1 = (wxJoystick *) 0 ;
11246 bool result;
11247 PyObject * obj0 = 0 ;
11248 char *kwnames[] = {
11249 (char *) "self", NULL
11250 };
11251
11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
11253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11255 {
11256 PyThreadState* __tstate = wxPyBeginAllowThreads();
11257 result = (bool)(arg1)->ReleaseCapture();
11258
11259 wxPyEndAllowThreads(__tstate);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 }
11262 {
11263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11264 }
11265 return resultobj;
11266 fail:
11267 return NULL;
11268 }
11269
11270
11271 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
11272 PyObject *obj;
11273 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11274 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11275 Py_INCREF(obj);
11276 return Py_BuildValue((char *)"");
11277 }
11278 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj;
11280 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11281 wxPoint *arg2 = (wxPoint *) 0 ;
11282 PyObject * obj0 = 0 ;
11283 PyObject * obj1 = 0 ;
11284 char *kwnames[] = {
11285 (char *) "self",(char *) "m_pos", NULL
11286 };
11287
11288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11293 if (arg1) (arg1)->m_pos = *arg2;
11294
11295 Py_INCREF(Py_None); resultobj = Py_None;
11296 return resultobj;
11297 fail:
11298 return NULL;
11299 }
11300
11301
11302 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
11303 PyObject *resultobj;
11304 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11305 wxPoint *result;
11306 PyObject * obj0 = 0 ;
11307 char *kwnames[] = {
11308 (char *) "self", NULL
11309 };
11310
11311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11314 result = (wxPoint *)& ((arg1)->m_pos);
11315
11316 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11317 return resultobj;
11318 fail:
11319 return NULL;
11320 }
11321
11322
11323 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj;
11325 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11326 int arg2 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 char *kwnames[] = {
11330 (char *) "self",(char *) "m_zPosition", NULL
11331 };
11332
11333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11336 arg2 = (int)SWIG_As_int(obj1);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 if (arg1) (arg1)->m_zPosition = arg2;
11339
11340 Py_INCREF(Py_None); resultobj = Py_None;
11341 return resultobj;
11342 fail:
11343 return NULL;
11344 }
11345
11346
11347 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
11348 PyObject *resultobj;
11349 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11350 int result;
11351 PyObject * obj0 = 0 ;
11352 char *kwnames[] = {
11353 (char *) "self", NULL
11354 };
11355
11356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11359 result = (int) ((arg1)->m_zPosition);
11360
11361 resultobj = SWIG_From_int((int)result);
11362 return resultobj;
11363 fail:
11364 return NULL;
11365 }
11366
11367
11368 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
11369 PyObject *resultobj;
11370 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11371 int arg2 ;
11372 PyObject * obj0 = 0 ;
11373 PyObject * obj1 = 0 ;
11374 char *kwnames[] = {
11375 (char *) "self",(char *) "m_buttonChange", NULL
11376 };
11377
11378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11381 arg2 = (int)SWIG_As_int(obj1);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 if (arg1) (arg1)->m_buttonChange = arg2;
11384
11385 Py_INCREF(Py_None); resultobj = Py_None;
11386 return resultobj;
11387 fail:
11388 return NULL;
11389 }
11390
11391
11392 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
11393 PyObject *resultobj;
11394 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11395 int result;
11396 PyObject * obj0 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self", NULL
11399 };
11400
11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 result = (int) ((arg1)->m_buttonChange);
11405
11406 resultobj = SWIG_From_int((int)result);
11407 return resultobj;
11408 fail:
11409 return NULL;
11410 }
11411
11412
11413 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
11414 PyObject *resultobj;
11415 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11416 int arg2 ;
11417 PyObject * obj0 = 0 ;
11418 PyObject * obj1 = 0 ;
11419 char *kwnames[] = {
11420 (char *) "self",(char *) "m_buttonState", NULL
11421 };
11422
11423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11426 arg2 = (int)SWIG_As_int(obj1);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 if (arg1) (arg1)->m_buttonState = arg2;
11429
11430 Py_INCREF(Py_None); resultobj = Py_None;
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
11438 PyObject *resultobj;
11439 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11440 int result;
11441 PyObject * obj0 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self", NULL
11444 };
11445
11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11449 result = (int) ((arg1)->m_buttonState);
11450
11451 resultobj = SWIG_From_int((int)result);
11452 return resultobj;
11453 fail:
11454 return NULL;
11455 }
11456
11457
11458 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
11459 PyObject *resultobj;
11460 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11461 int arg2 ;
11462 PyObject * obj0 = 0 ;
11463 PyObject * obj1 = 0 ;
11464 char *kwnames[] = {
11465 (char *) "self",(char *) "m_joyStick", NULL
11466 };
11467
11468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11471 arg2 = (int)SWIG_As_int(obj1);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 if (arg1) (arg1)->m_joyStick = arg2;
11474
11475 Py_INCREF(Py_None); resultobj = Py_None;
11476 return resultobj;
11477 fail:
11478 return NULL;
11479 }
11480
11481
11482 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
11483 PyObject *resultobj;
11484 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11485 int result;
11486 PyObject * obj0 = 0 ;
11487 char *kwnames[] = {
11488 (char *) "self", NULL
11489 };
11490
11491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11494 result = (int) ((arg1)->m_joyStick);
11495
11496 resultobj = SWIG_From_int((int)result);
11497 return resultobj;
11498 fail:
11499 return NULL;
11500 }
11501
11502
11503 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11504 PyObject *resultobj;
11505 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11506 int arg2 = (int) 0 ;
11507 int arg3 = (int) wxJOYSTICK1 ;
11508 int arg4 = (int) 0 ;
11509 wxJoystickEvent *result;
11510 PyObject * obj0 = 0 ;
11511 PyObject * obj1 = 0 ;
11512 PyObject * obj2 = 0 ;
11513 PyObject * obj3 = 0 ;
11514 char *kwnames[] = {
11515 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11516 };
11517
11518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11519 if (obj0) {
11520 arg1 = (wxEventType)SWIG_As_int(obj0);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 if (obj1) {
11524 arg2 = (int)SWIG_As_int(obj1);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 if (obj2) {
11528 arg3 = (int)SWIG_As_int(obj2);
11529 if (PyErr_Occurred()) SWIG_fail;
11530 }
11531 if (obj3) {
11532 arg4 = (int)SWIG_As_int(obj3);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 {
11536 PyThreadState* __tstate = wxPyBeginAllowThreads();
11537 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11538
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11550 PyObject *resultobj;
11551 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11552 wxPoint result;
11553 PyObject * obj0 = 0 ;
11554 char *kwnames[] = {
11555 (char *) "self", NULL
11556 };
11557
11558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11561 {
11562 PyThreadState* __tstate = wxPyBeginAllowThreads();
11563 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11564
11565 wxPyEndAllowThreads(__tstate);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 }
11568 {
11569 wxPoint * resultptr;
11570 resultptr = new wxPoint((wxPoint &) result);
11571 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11572 }
11573 return resultobj;
11574 fail:
11575 return NULL;
11576 }
11577
11578
11579 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11580 PyObject *resultobj;
11581 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11582 int result;
11583 PyObject * obj0 = 0 ;
11584 char *kwnames[] = {
11585 (char *) "self", NULL
11586 };
11587
11588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11591 {
11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
11593 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11594
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 resultobj = SWIG_From_int((int)result);
11599 return resultobj;
11600 fail:
11601 return NULL;
11602 }
11603
11604
11605 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11606 PyObject *resultobj;
11607 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11608 int result;
11609 PyObject * obj0 = 0 ;
11610 char *kwnames[] = {
11611 (char *) "self", NULL
11612 };
11613
11614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11620
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 resultobj = SWIG_From_int((int)result);
11625 return resultobj;
11626 fail:
11627 return NULL;
11628 }
11629
11630
11631 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11632 PyObject *resultobj;
11633 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11634 int result;
11635 PyObject * obj0 = 0 ;
11636 char *kwnames[] = {
11637 (char *) "self", NULL
11638 };
11639
11640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11643 {
11644 PyThreadState* __tstate = wxPyBeginAllowThreads();
11645 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11646
11647 wxPyEndAllowThreads(__tstate);
11648 if (PyErr_Occurred()) SWIG_fail;
11649 }
11650 resultobj = SWIG_From_int((int)result);
11651 return resultobj;
11652 fail:
11653 return NULL;
11654 }
11655
11656
11657 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11658 PyObject *resultobj;
11659 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11660 int result;
11661 PyObject * obj0 = 0 ;
11662 char *kwnames[] = {
11663 (char *) "self", NULL
11664 };
11665
11666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11669 {
11670 PyThreadState* __tstate = wxPyBeginAllowThreads();
11671 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11672
11673 wxPyEndAllowThreads(__tstate);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 }
11676 resultobj = SWIG_From_int((int)result);
11677 return resultobj;
11678 fail:
11679 return NULL;
11680 }
11681
11682
11683 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11684 PyObject *resultobj;
11685 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11686 int arg2 ;
11687 PyObject * obj0 = 0 ;
11688 PyObject * obj1 = 0 ;
11689 char *kwnames[] = {
11690 (char *) "self",(char *) "stick", NULL
11691 };
11692
11693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11696 arg2 = (int)SWIG_As_int(obj1);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 (arg1)->SetJoystick(arg2);
11701
11702 wxPyEndAllowThreads(__tstate);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 Py_INCREF(Py_None); resultobj = Py_None;
11706 return resultobj;
11707 fail:
11708 return NULL;
11709 }
11710
11711
11712 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11713 PyObject *resultobj;
11714 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11715 int arg2 ;
11716 PyObject * obj0 = 0 ;
11717 PyObject * obj1 = 0 ;
11718 char *kwnames[] = {
11719 (char *) "self",(char *) "state", NULL
11720 };
11721
11722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11725 arg2 = (int)SWIG_As_int(obj1);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 {
11728 PyThreadState* __tstate = wxPyBeginAllowThreads();
11729 (arg1)->SetButtonState(arg2);
11730
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 Py_INCREF(Py_None); resultobj = Py_None;
11735 return resultobj;
11736 fail:
11737 return NULL;
11738 }
11739
11740
11741 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj;
11743 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11744 int arg2 ;
11745 PyObject * obj0 = 0 ;
11746 PyObject * obj1 = 0 ;
11747 char *kwnames[] = {
11748 (char *) "self",(char *) "change", NULL
11749 };
11750
11751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11754 arg2 = (int)SWIG_As_int(obj1);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 {
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 (arg1)->SetButtonChange(arg2);
11759
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 Py_INCREF(Py_None); resultobj = Py_None;
11764 return resultobj;
11765 fail:
11766 return NULL;
11767 }
11768
11769
11770 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj;
11772 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11773 wxPoint *arg2 = 0 ;
11774 wxPoint temp2 ;
11775 PyObject * obj0 = 0 ;
11776 PyObject * obj1 = 0 ;
11777 char *kwnames[] = {
11778 (char *) "self",(char *) "pos", NULL
11779 };
11780
11781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11784 {
11785 arg2 = &temp2;
11786 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11787 }
11788 {
11789 PyThreadState* __tstate = wxPyBeginAllowThreads();
11790 (arg1)->SetPosition((wxPoint const &)*arg2);
11791
11792 wxPyEndAllowThreads(__tstate);
11793 if (PyErr_Occurred()) SWIG_fail;
11794 }
11795 Py_INCREF(Py_None); resultobj = Py_None;
11796 return resultobj;
11797 fail:
11798 return NULL;
11799 }
11800
11801
11802 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11803 PyObject *resultobj;
11804 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11805 int arg2 ;
11806 PyObject * obj0 = 0 ;
11807 PyObject * obj1 = 0 ;
11808 char *kwnames[] = {
11809 (char *) "self",(char *) "zPos", NULL
11810 };
11811
11812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11815 arg2 = (int)SWIG_As_int(obj1);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 {
11818 PyThreadState* __tstate = wxPyBeginAllowThreads();
11819 (arg1)->SetZPosition(arg2);
11820
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 Py_INCREF(Py_None); resultobj = Py_None;
11825 return resultobj;
11826 fail:
11827 return NULL;
11828 }
11829
11830
11831 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
11832 PyObject *resultobj;
11833 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11834 bool result;
11835 PyObject * obj0 = 0 ;
11836 char *kwnames[] = {
11837 (char *) "self", NULL
11838 };
11839
11840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11846
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 {
11851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11852 }
11853 return resultobj;
11854 fail:
11855 return NULL;
11856 }
11857
11858
11859 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
11860 PyObject *resultobj;
11861 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11862 bool result;
11863 PyObject * obj0 = 0 ;
11864 char *kwnames[] = {
11865 (char *) "self", NULL
11866 };
11867
11868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11874
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 {
11879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11880 }
11881 return resultobj;
11882 fail:
11883 return NULL;
11884 }
11885
11886
11887 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
11888 PyObject *resultobj;
11889 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11890 bool result;
11891 PyObject * obj0 = 0 ;
11892 char *kwnames[] = {
11893 (char *) "self", NULL
11894 };
11895
11896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11902
11903 wxPyEndAllowThreads(__tstate);
11904 if (PyErr_Occurred()) SWIG_fail;
11905 }
11906 {
11907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11908 }
11909 return resultobj;
11910 fail:
11911 return NULL;
11912 }
11913
11914
11915 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
11916 PyObject *resultobj;
11917 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11918 int arg2 = (int) wxJOY_BUTTON_ANY ;
11919 bool result;
11920 PyObject * obj0 = 0 ;
11921 PyObject * obj1 = 0 ;
11922 char *kwnames[] = {
11923 (char *) "self",(char *) "but", NULL
11924 };
11925
11926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11929 if (obj1) {
11930 arg2 = (int)SWIG_As_int(obj1);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11936
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 }
11940 {
11941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11942 }
11943 return resultobj;
11944 fail:
11945 return NULL;
11946 }
11947
11948
11949 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
11950 PyObject *resultobj;
11951 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11952 int arg2 = (int) wxJOY_BUTTON_ANY ;
11953 bool result;
11954 PyObject * obj0 = 0 ;
11955 PyObject * obj1 = 0 ;
11956 char *kwnames[] = {
11957 (char *) "self",(char *) "but", NULL
11958 };
11959
11960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11963 if (obj1) {
11964 arg2 = (int)SWIG_As_int(obj1);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 {
11968 PyThreadState* __tstate = wxPyBeginAllowThreads();
11969 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11970
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 {
11975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11976 }
11977 return resultobj;
11978 fail:
11979 return NULL;
11980 }
11981
11982
11983 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
11984 PyObject *resultobj;
11985 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11986 int arg2 = (int) wxJOY_BUTTON_ANY ;
11987 bool result;
11988 PyObject * obj0 = 0 ;
11989 PyObject * obj1 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "self",(char *) "but", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11997 if (obj1) {
11998 arg2 = (int)SWIG_As_int(obj1);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 {
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
12004
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 {
12009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12010 }
12011 return resultobj;
12012 fail:
12013 return NULL;
12014 }
12015
12016
12017 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
12018 PyObject *obj;
12019 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12020 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
12021 Py_INCREF(obj);
12022 return Py_BuildValue((char *)"");
12023 }
12024 static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
12025 PyObject *resultobj;
12026 wxString const &arg1_defvalue = wxPyEmptyString ;
12027 wxString *arg1 = (wxString *) &arg1_defvalue ;
12028 wxSound *result;
12029 bool temp1 = false ;
12030 PyObject * obj0 = 0 ;
12031 char *kwnames[] = {
12032 (char *) "fileName", NULL
12033 };
12034
12035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
12036 if (obj0) {
12037 {
12038 arg1 = wxString_in_helper(obj0);
12039 if (arg1 == NULL) SWIG_fail;
12040 temp1 = true;
12041 }
12042 }
12043 {
12044 if (!wxPyCheckForApp()) SWIG_fail;
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
12046 result = (wxSound *)new_wxSound((wxString const &)*arg1);
12047
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
12052 {
12053 if (temp1)
12054 delete arg1;
12055 }
12056 return resultobj;
12057 fail:
12058 {
12059 if (temp1)
12060 delete arg1;
12061 }
12062 return NULL;
12063 }
12064
12065
12066 static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
12067 PyObject *resultobj;
12068 PyObject *arg1 = (PyObject *) 0 ;
12069 wxSound *result;
12070 PyObject * obj0 = 0 ;
12071 char *kwnames[] = {
12072 (char *) "data", NULL
12073 };
12074
12075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
12076 arg1 = obj0;
12077 {
12078 if (!wxPyCheckForApp()) SWIG_fail;
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 result = (wxSound *)new_wxSound(arg1);
12081
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
12086 return resultobj;
12087 fail:
12088 return NULL;
12089 }
12090
12091
12092 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj;
12094 wxSound *arg1 = (wxSound *) 0 ;
12095 PyObject * obj0 = 0 ;
12096 char *kwnames[] = {
12097 (char *) "self", NULL
12098 };
12099
12100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
12101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 delete arg1;
12106
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 Py_INCREF(Py_None); resultobj = Py_None;
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj;
12119 wxSound *arg1 = (wxSound *) 0 ;
12120 wxString *arg2 = 0 ;
12121 bool result;
12122 bool temp2 = false ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
12125 char *kwnames[] = {
12126 (char *) "self",(char *) "fileName", NULL
12127 };
12128
12129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
12130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12132 {
12133 arg2 = wxString_in_helper(obj1);
12134 if (arg2 == NULL) SWIG_fail;
12135 temp2 = true;
12136 }
12137 {
12138 PyThreadState* __tstate = wxPyBeginAllowThreads();
12139 result = (bool)(arg1)->Create((wxString const &)*arg2);
12140
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 {
12145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12146 }
12147 {
12148 if (temp2)
12149 delete arg2;
12150 }
12151 return resultobj;
12152 fail:
12153 {
12154 if (temp2)
12155 delete arg2;
12156 }
12157 return NULL;
12158 }
12159
12160
12161 static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
12162 PyObject *resultobj;
12163 wxSound *arg1 = (wxSound *) 0 ;
12164 PyObject *arg2 = (PyObject *) 0 ;
12165 bool result;
12166 PyObject * obj0 = 0 ;
12167 PyObject * obj1 = 0 ;
12168 char *kwnames[] = {
12169 (char *) "self",(char *) "data", NULL
12170 };
12171
12172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
12173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12175 arg2 = obj1;
12176 {
12177 PyThreadState* __tstate = wxPyBeginAllowThreads();
12178 result = (bool)wxSound_CreateFromData(arg1,arg2);
12179
12180 wxPyEndAllowThreads(__tstate);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 {
12184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12185 }
12186 return resultobj;
12187 fail:
12188 return NULL;
12189 }
12190
12191
12192 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12193 PyObject *resultobj;
12194 wxSound *arg1 = (wxSound *) 0 ;
12195 bool result;
12196 PyObject * obj0 = 0 ;
12197 char *kwnames[] = {
12198 (char *) "self", NULL
12199 };
12200
12201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
12202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12204 {
12205 PyThreadState* __tstate = wxPyBeginAllowThreads();
12206 result = (bool)(arg1)->IsOk();
12207
12208 wxPyEndAllowThreads(__tstate);
12209 if (PyErr_Occurred()) SWIG_fail;
12210 }
12211 {
12212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12213 }
12214 return resultobj;
12215 fail:
12216 return NULL;
12217 }
12218
12219
12220 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
12221 PyObject *resultobj;
12222 wxSound *arg1 = (wxSound *) 0 ;
12223 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12224 bool result;
12225 PyObject * obj0 = 0 ;
12226 PyObject * obj1 = 0 ;
12227 char *kwnames[] = {
12228 (char *) "self",(char *) "flags", NULL
12229 };
12230
12231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
12232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12234 if (obj1) {
12235 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 {
12239 if (!wxPyCheckForApp()) SWIG_fail;
12240 PyThreadState* __tstate = wxPyBeginAllowThreads();
12241 result = (bool)((wxSound const *)arg1)->Play(arg2);
12242
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 {
12247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12248 }
12249 return resultobj;
12250 fail:
12251 return NULL;
12252 }
12253
12254
12255 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxString *arg1 = 0 ;
12258 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12259 bool result;
12260 bool temp1 = false ;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "filename",(char *) "flags", NULL
12265 };
12266
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
12268 {
12269 arg1 = wxString_in_helper(obj0);
12270 if (arg1 == NULL) SWIG_fail;
12271 temp1 = true;
12272 }
12273 if (obj1) {
12274 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
12277 {
12278 if (!wxPyCheckForApp()) SWIG_fail;
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12281
12282 wxPyEndAllowThreads(__tstate);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 {
12286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12287 }
12288 {
12289 if (temp1)
12290 delete arg1;
12291 }
12292 return resultobj;
12293 fail:
12294 {
12295 if (temp1)
12296 delete arg1;
12297 }
12298 return NULL;
12299 }
12300
12301
12302 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
12303 PyObject *resultobj;
12304 char *kwnames[] = {
12305 NULL
12306 };
12307
12308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12309 {
12310 if (!wxPyCheckForApp()) SWIG_fail;
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 wxSound::Stop();
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 Py_INCREF(Py_None); resultobj = Py_None;
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
12325 PyObject *obj;
12326 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12327 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12328 Py_INCREF(obj);
12329 return Py_BuildValue((char *)"");
12330 }
12331 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12332 PyObject *resultobj;
12333 wxString *arg1 = 0 ;
12334 wxString *arg2 = 0 ;
12335 wxString *arg3 = 0 ;
12336 wxString *arg4 = 0 ;
12337 wxFileTypeInfo *result;
12338 bool temp1 = false ;
12339 bool temp2 = false ;
12340 bool temp3 = false ;
12341 bool temp4 = false ;
12342 PyObject * obj0 = 0 ;
12343 PyObject * obj1 = 0 ;
12344 PyObject * obj2 = 0 ;
12345 PyObject * obj3 = 0 ;
12346 char *kwnames[] = {
12347 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12348 };
12349
12350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12351 {
12352 arg1 = wxString_in_helper(obj0);
12353 if (arg1 == NULL) SWIG_fail;
12354 temp1 = true;
12355 }
12356 {
12357 arg2 = wxString_in_helper(obj1);
12358 if (arg2 == NULL) SWIG_fail;
12359 temp2 = true;
12360 }
12361 {
12362 arg3 = wxString_in_helper(obj2);
12363 if (arg3 == NULL) SWIG_fail;
12364 temp3 = true;
12365 }
12366 {
12367 arg4 = wxString_in_helper(obj3);
12368 if (arg4 == NULL) SWIG_fail;
12369 temp4 = true;
12370 }
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12374
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12379 {
12380 if (temp1)
12381 delete arg1;
12382 }
12383 {
12384 if (temp2)
12385 delete arg2;
12386 }
12387 {
12388 if (temp3)
12389 delete arg3;
12390 }
12391 {
12392 if (temp4)
12393 delete arg4;
12394 }
12395 return resultobj;
12396 fail:
12397 {
12398 if (temp1)
12399 delete arg1;
12400 }
12401 {
12402 if (temp2)
12403 delete arg2;
12404 }
12405 {
12406 if (temp3)
12407 delete arg3;
12408 }
12409 {
12410 if (temp4)
12411 delete arg4;
12412 }
12413 return NULL;
12414 }
12415
12416
12417 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj;
12419 wxArrayString *arg1 = 0 ;
12420 wxFileTypeInfo *result;
12421 bool temp1 = false ;
12422 PyObject * obj0 = 0 ;
12423 char *kwnames[] = {
12424 (char *) "sArray", NULL
12425 };
12426
12427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12428 {
12429 if (! PySequence_Check(obj0)) {
12430 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12431 SWIG_fail;
12432 }
12433 arg1 = new wxArrayString;
12434 temp1 = true;
12435 int i, len=PySequence_Length(obj0);
12436 for (i=0; i<len; i++) {
12437 PyObject* item = PySequence_GetItem(obj0, i);
12438 #if wxUSE_UNICODE
12439 PyObject* str = PyObject_Unicode(item);
12440 #else
12441 PyObject* str = PyObject_Str(item);
12442 #endif
12443 if (PyErr_Occurred()) SWIG_fail;
12444 arg1->Add(Py2wxString(str));
12445 Py_DECREF(item);
12446 Py_DECREF(str);
12447 }
12448 }
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12452
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12457 {
12458 if (temp1) delete arg1;
12459 }
12460 return resultobj;
12461 fail:
12462 {
12463 if (temp1) delete arg1;
12464 }
12465 return NULL;
12466 }
12467
12468
12469 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12470 PyObject *resultobj;
12471 wxFileTypeInfo *result;
12472 char *kwnames[] = {
12473 NULL
12474 };
12475
12476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12480
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12485 return resultobj;
12486 fail:
12487 return NULL;
12488 }
12489
12490
12491 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
12492 PyObject *resultobj;
12493 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12494 bool result;
12495 PyObject * obj0 = 0 ;
12496 char *kwnames[] = {
12497 (char *) "self", NULL
12498 };
12499
12500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 {
12511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12512 }
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj;
12521 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12522 wxString *arg2 = 0 ;
12523 int arg3 = (int) 0 ;
12524 bool temp2 = false ;
12525 PyObject * obj0 = 0 ;
12526 PyObject * obj1 = 0 ;
12527 PyObject * obj2 = 0 ;
12528 char *kwnames[] = {
12529 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12530 };
12531
12532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12535 {
12536 arg2 = wxString_in_helper(obj1);
12537 if (arg2 == NULL) SWIG_fail;
12538 temp2 = true;
12539 }
12540 if (obj2) {
12541 arg3 = (int)SWIG_As_int(obj2);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12547
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 Py_INCREF(Py_None); resultobj = Py_None;
12552 {
12553 if (temp2)
12554 delete arg2;
12555 }
12556 return resultobj;
12557 fail:
12558 {
12559 if (temp2)
12560 delete arg2;
12561 }
12562 return NULL;
12563 }
12564
12565
12566 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12567 PyObject *resultobj;
12568 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12569 wxString *arg2 = 0 ;
12570 bool temp2 = false ;
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
12573 char *kwnames[] = {
12574 (char *) "self",(char *) "shortDesc", NULL
12575 };
12576
12577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12580 {
12581 arg2 = wxString_in_helper(obj1);
12582 if (arg2 == NULL) SWIG_fail;
12583 temp2 = true;
12584 }
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 (arg1)->SetShortDesc((wxString const &)*arg2);
12588
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 Py_INCREF(Py_None); resultobj = Py_None;
12593 {
12594 if (temp2)
12595 delete arg2;
12596 }
12597 return resultobj;
12598 fail:
12599 {
12600 if (temp2)
12601 delete arg2;
12602 }
12603 return NULL;
12604 }
12605
12606
12607 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12608 PyObject *resultobj;
12609 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12610 wxString *result;
12611 PyObject * obj0 = 0 ;
12612 char *kwnames[] = {
12613 (char *) "self", NULL
12614 };
12615
12616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12619 {
12620 PyThreadState* __tstate = wxPyBeginAllowThreads();
12621 {
12622 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12623 result = (wxString *) &_result_ref;
12624 }
12625
12626 wxPyEndAllowThreads(__tstate);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 {
12630 #if wxUSE_UNICODE
12631 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12632 #else
12633 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12634 #endif
12635 }
12636 return resultobj;
12637 fail:
12638 return NULL;
12639 }
12640
12641
12642 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj;
12644 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12645 wxString *result;
12646 PyObject * obj0 = 0 ;
12647 char *kwnames[] = {
12648 (char *) "self", NULL
12649 };
12650
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12654 {
12655 PyThreadState* __tstate = wxPyBeginAllowThreads();
12656 {
12657 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12658 result = (wxString *) &_result_ref;
12659 }
12660
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 #if wxUSE_UNICODE
12666 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12667 #else
12668 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12669 #endif
12670 }
12671 return resultobj;
12672 fail:
12673 return NULL;
12674 }
12675
12676
12677 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj;
12679 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12680 wxString *result;
12681 PyObject * obj0 = 0 ;
12682 char *kwnames[] = {
12683 (char *) "self", NULL
12684 };
12685
12686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 {
12692 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12693 result = (wxString *) &_result_ref;
12694 }
12695
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 {
12700 #if wxUSE_UNICODE
12701 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12702 #else
12703 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12704 #endif
12705 }
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12715 wxString *result;
12716 PyObject * obj0 = 0 ;
12717 char *kwnames[] = {
12718 (char *) "self", NULL
12719 };
12720
12721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 {
12727 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12728 result = (wxString *) &_result_ref;
12729 }
12730
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735 #if wxUSE_UNICODE
12736 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12737 #else
12738 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12739 #endif
12740 }
12741 return resultobj;
12742 fail:
12743 return NULL;
12744 }
12745
12746
12747 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj;
12749 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12750 wxString *result;
12751 PyObject * obj0 = 0 ;
12752 char *kwnames[] = {
12753 (char *) "self", NULL
12754 };
12755
12756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12759 {
12760 PyThreadState* __tstate = wxPyBeginAllowThreads();
12761 {
12762 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12763 result = (wxString *) &_result_ref;
12764 }
12765
12766 wxPyEndAllowThreads(__tstate);
12767 if (PyErr_Occurred()) SWIG_fail;
12768 }
12769 {
12770 #if wxUSE_UNICODE
12771 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12772 #else
12773 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12774 #endif
12775 }
12776 return resultobj;
12777 fail:
12778 return NULL;
12779 }
12780
12781
12782 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj;
12784 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12785 wxArrayString *result;
12786 PyObject * obj0 = 0 ;
12787 char *kwnames[] = {
12788 (char *) "self", NULL
12789 };
12790
12791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12794 {
12795 PyThreadState* __tstate = wxPyBeginAllowThreads();
12796 {
12797 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12798 result = (wxArrayString *) &_result_ref;
12799 }
12800
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 {
12805 resultobj = wxArrayString2PyList_helper(*result);
12806 }
12807 return resultobj;
12808 fail:
12809 return NULL;
12810 }
12811
12812
12813 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
12814 PyObject *resultobj;
12815 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12816 int result;
12817 PyObject * obj0 = 0 ;
12818 char *kwnames[] = {
12819 (char *) "self", NULL
12820 };
12821
12822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12828
12829 wxPyEndAllowThreads(__tstate);
12830 if (PyErr_Occurred()) SWIG_fail;
12831 }
12832 resultobj = SWIG_From_int((int)result);
12833 return resultobj;
12834 fail:
12835 return NULL;
12836 }
12837
12838
12839 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
12840 PyObject *resultobj;
12841 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12842 wxString *result;
12843 PyObject * obj0 = 0 ;
12844 char *kwnames[] = {
12845 (char *) "self", NULL
12846 };
12847
12848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12851 {
12852 PyThreadState* __tstate = wxPyBeginAllowThreads();
12853 {
12854 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12855 result = (wxString *) &_result_ref;
12856 }
12857
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 {
12862 #if wxUSE_UNICODE
12863 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12864 #else
12865 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12866 #endif
12867 }
12868 return resultobj;
12869 fail:
12870 return NULL;
12871 }
12872
12873
12874 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
12875 PyObject *resultobj;
12876 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12877 int result;
12878 PyObject * obj0 = 0 ;
12879 char *kwnames[] = {
12880 (char *) "self", NULL
12881 };
12882
12883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12889
12890 wxPyEndAllowThreads(__tstate);
12891 if (PyErr_Occurred()) SWIG_fail;
12892 }
12893 resultobj = SWIG_From_int((int)result);
12894 return resultobj;
12895 fail:
12896 return NULL;
12897 }
12898
12899
12900 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
12901 PyObject *obj;
12902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12903 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12904 Py_INCREF(obj);
12905 return Py_BuildValue((char *)"");
12906 }
12907 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12908 PyObject *resultobj;
12909 wxFileTypeInfo *arg1 = 0 ;
12910 wxFileType *result;
12911 PyObject * obj0 = 0 ;
12912 char *kwnames[] = {
12913 (char *) "ftInfo", NULL
12914 };
12915
12916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12918 SWIG_POINTER_EXCEPTION | 0)) == -1)
12919 SWIG_fail;
12920 if (arg1 == NULL) {
12921 PyErr_SetString(PyExc_TypeError,"null reference");
12922 SWIG_fail;
12923 }
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
12926 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12927
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12932 return resultobj;
12933 fail:
12934 return NULL;
12935 }
12936
12937
12938 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12939 PyObject *resultobj;
12940 wxFileType *arg1 = (wxFileType *) 0 ;
12941 PyObject * obj0 = 0 ;
12942 char *kwnames[] = {
12943 (char *) "self", NULL
12944 };
12945
12946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12949 {
12950 PyThreadState* __tstate = wxPyBeginAllowThreads();
12951 delete arg1;
12952
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 Py_INCREF(Py_None); resultobj = Py_None;
12957 return resultobj;
12958 fail:
12959 return NULL;
12960 }
12961
12962
12963 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12964 PyObject *resultobj;
12965 wxFileType *arg1 = (wxFileType *) 0 ;
12966 PyObject *result;
12967 PyObject * obj0 = 0 ;
12968 char *kwnames[] = {
12969 (char *) "self", NULL
12970 };
12971
12972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12975 {
12976 PyThreadState* __tstate = wxPyBeginAllowThreads();
12977 result = (PyObject *)wxFileType_GetMimeType(arg1);
12978
12979 wxPyEndAllowThreads(__tstate);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
12982 resultobj = result;
12983 return resultobj;
12984 fail:
12985 return NULL;
12986 }
12987
12988
12989 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
12990 PyObject *resultobj;
12991 wxFileType *arg1 = (wxFileType *) 0 ;
12992 PyObject *result;
12993 PyObject * obj0 = 0 ;
12994 char *kwnames[] = {
12995 (char *) "self", NULL
12996 };
12997
12998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13001 {
13002 PyThreadState* __tstate = wxPyBeginAllowThreads();
13003 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
13004
13005 wxPyEndAllowThreads(__tstate);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 resultobj = result;
13009 return resultobj;
13010 fail:
13011 return NULL;
13012 }
13013
13014
13015 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj;
13017 wxFileType *arg1 = (wxFileType *) 0 ;
13018 PyObject *result;
13019 PyObject * obj0 = 0 ;
13020 char *kwnames[] = {
13021 (char *) "self", NULL
13022 };
13023
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
13025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13027 {
13028 PyThreadState* __tstate = wxPyBeginAllowThreads();
13029 result = (PyObject *)wxFileType_GetExtensions(arg1);
13030
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 resultobj = result;
13035 return resultobj;
13036 fail:
13037 return NULL;
13038 }
13039
13040
13041 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
13042 PyObject *resultobj;
13043 wxFileType *arg1 = (wxFileType *) 0 ;
13044 wxIcon *result;
13045 PyObject * obj0 = 0 ;
13046 char *kwnames[] = {
13047 (char *) "self", NULL
13048 };
13049
13050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
13051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 result = (wxIcon *)wxFileType_GetIcon(arg1);
13056
13057 wxPyEndAllowThreads(__tstate);
13058 if (PyErr_Occurred()) SWIG_fail;
13059 }
13060 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
13061 return resultobj;
13062 fail:
13063 return NULL;
13064 }
13065
13066
13067 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj;
13069 wxFileType *arg1 = (wxFileType *) 0 ;
13070 PyObject *result;
13071 PyObject * obj0 = 0 ;
13072 char *kwnames[] = {
13073 (char *) "self", NULL
13074 };
13075
13076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
13077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 result = (PyObject *)wxFileType_GetIconInfo(arg1);
13082
13083 wxPyEndAllowThreads(__tstate);
13084 if (PyErr_Occurred()) SWIG_fail;
13085 }
13086 resultobj = result;
13087 return resultobj;
13088 fail:
13089 return NULL;
13090 }
13091
13092
13093 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
13094 PyObject *resultobj;
13095 wxFileType *arg1 = (wxFileType *) 0 ;
13096 PyObject *result;
13097 PyObject * obj0 = 0 ;
13098 char *kwnames[] = {
13099 (char *) "self", NULL
13100 };
13101
13102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
13103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13105 {
13106 PyThreadState* __tstate = wxPyBeginAllowThreads();
13107 result = (PyObject *)wxFileType_GetDescription(arg1);
13108
13109 wxPyEndAllowThreads(__tstate);
13110 if (PyErr_Occurred()) SWIG_fail;
13111 }
13112 resultobj = result;
13113 return resultobj;
13114 fail:
13115 return NULL;
13116 }
13117
13118
13119 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13120 PyObject *resultobj;
13121 wxFileType *arg1 = (wxFileType *) 0 ;
13122 wxString *arg2 = 0 ;
13123 wxString const &arg3_defvalue = wxPyEmptyString ;
13124 wxString *arg3 = (wxString *) &arg3_defvalue ;
13125 PyObject *result;
13126 bool temp2 = false ;
13127 bool temp3 = false ;
13128 PyObject * obj0 = 0 ;
13129 PyObject * obj1 = 0 ;
13130 PyObject * obj2 = 0 ;
13131 char *kwnames[] = {
13132 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13133 };
13134
13135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13138 {
13139 arg2 = wxString_in_helper(obj1);
13140 if (arg2 == NULL) SWIG_fail;
13141 temp2 = true;
13142 }
13143 if (obj2) {
13144 {
13145 arg3 = wxString_in_helper(obj2);
13146 if (arg3 == NULL) SWIG_fail;
13147 temp3 = true;
13148 }
13149 }
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13153
13154 wxPyEndAllowThreads(__tstate);
13155 if (PyErr_Occurred()) SWIG_fail;
13156 }
13157 resultobj = result;
13158 {
13159 if (temp2)
13160 delete arg2;
13161 }
13162 {
13163 if (temp3)
13164 delete arg3;
13165 }
13166 return resultobj;
13167 fail:
13168 {
13169 if (temp2)
13170 delete arg2;
13171 }
13172 {
13173 if (temp3)
13174 delete arg3;
13175 }
13176 return NULL;
13177 }
13178
13179
13180 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj;
13182 wxFileType *arg1 = (wxFileType *) 0 ;
13183 wxString *arg2 = 0 ;
13184 wxString const &arg3_defvalue = wxPyEmptyString ;
13185 wxString *arg3 = (wxString *) &arg3_defvalue ;
13186 PyObject *result;
13187 bool temp2 = false ;
13188 bool temp3 = false ;
13189 PyObject * obj0 = 0 ;
13190 PyObject * obj1 = 0 ;
13191 PyObject * obj2 = 0 ;
13192 char *kwnames[] = {
13193 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13194 };
13195
13196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13199 {
13200 arg2 = wxString_in_helper(obj1);
13201 if (arg2 == NULL) SWIG_fail;
13202 temp2 = true;
13203 }
13204 if (obj2) {
13205 {
13206 arg3 = wxString_in_helper(obj2);
13207 if (arg3 == NULL) SWIG_fail;
13208 temp3 = true;
13209 }
13210 }
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13214
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 resultobj = result;
13219 {
13220 if (temp2)
13221 delete arg2;
13222 }
13223 {
13224 if (temp3)
13225 delete arg3;
13226 }
13227 return resultobj;
13228 fail:
13229 {
13230 if (temp2)
13231 delete arg2;
13232 }
13233 {
13234 if (temp3)
13235 delete arg3;
13236 }
13237 return NULL;
13238 }
13239
13240
13241 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxFileType *arg1 = (wxFileType *) 0 ;
13244 wxString *arg2 = 0 ;
13245 wxString const &arg3_defvalue = wxPyEmptyString ;
13246 wxString *arg3 = (wxString *) &arg3_defvalue ;
13247 PyObject *result;
13248 bool temp2 = false ;
13249 bool temp3 = false ;
13250 PyObject * obj0 = 0 ;
13251 PyObject * obj1 = 0 ;
13252 PyObject * obj2 = 0 ;
13253 char *kwnames[] = {
13254 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13255 };
13256
13257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
13258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13260 {
13261 arg2 = wxString_in_helper(obj1);
13262 if (arg2 == NULL) SWIG_fail;
13263 temp2 = true;
13264 }
13265 if (obj2) {
13266 {
13267 arg3 = wxString_in_helper(obj2);
13268 if (arg3 == NULL) SWIG_fail;
13269 temp3 = true;
13270 }
13271 }
13272 {
13273 PyThreadState* __tstate = wxPyBeginAllowThreads();
13274 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13275
13276 wxPyEndAllowThreads(__tstate);
13277 if (PyErr_Occurred()) SWIG_fail;
13278 }
13279 resultobj = result;
13280 {
13281 if (temp2)
13282 delete arg2;
13283 }
13284 {
13285 if (temp3)
13286 delete arg3;
13287 }
13288 return resultobj;
13289 fail:
13290 {
13291 if (temp2)
13292 delete arg2;
13293 }
13294 {
13295 if (temp3)
13296 delete arg3;
13297 }
13298 return NULL;
13299 }
13300
13301
13302 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj;
13304 wxFileType *arg1 = (wxFileType *) 0 ;
13305 wxString *arg2 = 0 ;
13306 wxString *arg3 = 0 ;
13307 bool arg4 = (bool) true ;
13308 bool result;
13309 bool temp2 = false ;
13310 bool temp3 = false ;
13311 PyObject * obj0 = 0 ;
13312 PyObject * obj1 = 0 ;
13313 PyObject * obj2 = 0 ;
13314 PyObject * obj3 = 0 ;
13315 char *kwnames[] = {
13316 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13317 };
13318
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13322 {
13323 arg2 = wxString_in_helper(obj1);
13324 if (arg2 == NULL) SWIG_fail;
13325 temp2 = true;
13326 }
13327 {
13328 arg3 = wxString_in_helper(obj2);
13329 if (arg3 == NULL) SWIG_fail;
13330 temp3 = true;
13331 }
13332 if (obj3) {
13333 arg4 = (bool)SWIG_As_bool(obj3);
13334 if (PyErr_Occurred()) SWIG_fail;
13335 }
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13339
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13345 }
13346 {
13347 if (temp2)
13348 delete arg2;
13349 }
13350 {
13351 if (temp3)
13352 delete arg3;
13353 }
13354 return resultobj;
13355 fail:
13356 {
13357 if (temp2)
13358 delete arg2;
13359 }
13360 {
13361 if (temp3)
13362 delete arg3;
13363 }
13364 return NULL;
13365 }
13366
13367
13368 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
13369 PyObject *resultobj;
13370 wxFileType *arg1 = (wxFileType *) 0 ;
13371 wxString const &arg2_defvalue = wxPyEmptyString ;
13372 wxString *arg2 = (wxString *) &arg2_defvalue ;
13373 int arg3 = (int) 0 ;
13374 bool result;
13375 bool temp2 = false ;
13376 PyObject * obj0 = 0 ;
13377 PyObject * obj1 = 0 ;
13378 PyObject * obj2 = 0 ;
13379 char *kwnames[] = {
13380 (char *) "self",(char *) "cmd",(char *) "index", NULL
13381 };
13382
13383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13386 if (obj1) {
13387 {
13388 arg2 = wxString_in_helper(obj1);
13389 if (arg2 == NULL) SWIG_fail;
13390 temp2 = true;
13391 }
13392 }
13393 if (obj2) {
13394 arg3 = (int)SWIG_As_int(obj2);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 }
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13400
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 {
13405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13406 }
13407 {
13408 if (temp2)
13409 delete arg2;
13410 }
13411 return resultobj;
13412 fail:
13413 {
13414 if (temp2)
13415 delete arg2;
13416 }
13417 return NULL;
13418 }
13419
13420
13421 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13422 PyObject *resultobj;
13423 wxFileType *arg1 = (wxFileType *) 0 ;
13424 bool result;
13425 PyObject * obj0 = 0 ;
13426 char *kwnames[] = {
13427 (char *) "self", NULL
13428 };
13429
13430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13433 {
13434 PyThreadState* __tstate = wxPyBeginAllowThreads();
13435 result = (bool)(arg1)->Unassociate();
13436
13437 wxPyEndAllowThreads(__tstate);
13438 if (PyErr_Occurred()) SWIG_fail;
13439 }
13440 {
13441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13442 }
13443 return resultobj;
13444 fail:
13445 return NULL;
13446 }
13447
13448
13449 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13450 PyObject *resultobj;
13451 wxString *arg1 = 0 ;
13452 wxString *arg2 = 0 ;
13453 wxString const &arg3_defvalue = wxPyEmptyString ;
13454 wxString *arg3 = (wxString *) &arg3_defvalue ;
13455 wxString result;
13456 bool temp1 = false ;
13457 bool temp2 = false ;
13458 bool temp3 = false ;
13459 PyObject * obj0 = 0 ;
13460 PyObject * obj1 = 0 ;
13461 PyObject * obj2 = 0 ;
13462 char *kwnames[] = {
13463 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13464 };
13465
13466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13467 {
13468 arg1 = wxString_in_helper(obj0);
13469 if (arg1 == NULL) SWIG_fail;
13470 temp1 = true;
13471 }
13472 {
13473 arg2 = wxString_in_helper(obj1);
13474 if (arg2 == NULL) SWIG_fail;
13475 temp2 = true;
13476 }
13477 if (obj2) {
13478 {
13479 arg3 = wxString_in_helper(obj2);
13480 if (arg3 == NULL) SWIG_fail;
13481 temp3 = true;
13482 }
13483 }
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13487
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 {
13492 #if wxUSE_UNICODE
13493 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13494 #else
13495 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13496 #endif
13497 }
13498 {
13499 if (temp1)
13500 delete arg1;
13501 }
13502 {
13503 if (temp2)
13504 delete arg2;
13505 }
13506 {
13507 if (temp3)
13508 delete arg3;
13509 }
13510 return resultobj;
13511 fail:
13512 {
13513 if (temp1)
13514 delete arg1;
13515 }
13516 {
13517 if (temp2)
13518 delete arg2;
13519 }
13520 {
13521 if (temp3)
13522 delete arg3;
13523 }
13524 return NULL;
13525 }
13526
13527
13528 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
13529 PyObject *obj;
13530 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13531 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13532 Py_INCREF(obj);
13533 return Py_BuildValue((char *)"");
13534 }
13535 static int _wrap_TheMimeTypesManager_set(PyObject *) {
13536 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13537 return 1;
13538 }
13539
13540
13541 static PyObject *_wrap_TheMimeTypesManager_get() {
13542 PyObject *pyobj;
13543
13544 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13545 return pyobj;
13546 }
13547
13548
13549 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
13550 PyObject *resultobj;
13551 wxString *arg1 = 0 ;
13552 wxString *arg2 = 0 ;
13553 bool result;
13554 bool temp1 = false ;
13555 bool temp2 = false ;
13556 PyObject * obj0 = 0 ;
13557 PyObject * obj1 = 0 ;
13558 char *kwnames[] = {
13559 (char *) "mimeType",(char *) "wildcard", NULL
13560 };
13561
13562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13563 {
13564 arg1 = wxString_in_helper(obj0);
13565 if (arg1 == NULL) SWIG_fail;
13566 temp1 = true;
13567 }
13568 {
13569 arg2 = wxString_in_helper(obj1);
13570 if (arg2 == NULL) SWIG_fail;
13571 temp2 = true;
13572 }
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 {
13581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13582 }
13583 {
13584 if (temp1)
13585 delete arg1;
13586 }
13587 {
13588 if (temp2)
13589 delete arg2;
13590 }
13591 return resultobj;
13592 fail:
13593 {
13594 if (temp1)
13595 delete arg1;
13596 }
13597 {
13598 if (temp2)
13599 delete arg2;
13600 }
13601 return NULL;
13602 }
13603
13604
13605 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13606 PyObject *resultobj;
13607 wxMimeTypesManager *result;
13608 char *kwnames[] = {
13609 NULL
13610 };
13611
13612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13616
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13621 return resultobj;
13622 fail:
13623 return NULL;
13624 }
13625
13626
13627 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
13628 PyObject *resultobj;
13629 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13630 int arg2 = (int) wxMAILCAP_ALL ;
13631 wxString const &arg3_defvalue = wxPyEmptyString ;
13632 wxString *arg3 = (wxString *) &arg3_defvalue ;
13633 bool temp3 = false ;
13634 PyObject * obj0 = 0 ;
13635 PyObject * obj1 = 0 ;
13636 PyObject * obj2 = 0 ;
13637 char *kwnames[] = {
13638 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13639 };
13640
13641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13644 if (obj1) {
13645 arg2 = (int)SWIG_As_int(obj1);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 if (obj2) {
13649 {
13650 arg3 = wxString_in_helper(obj2);
13651 if (arg3 == NULL) SWIG_fail;
13652 temp3 = true;
13653 }
13654 }
13655 {
13656 PyThreadState* __tstate = wxPyBeginAllowThreads();
13657 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13658
13659 wxPyEndAllowThreads(__tstate);
13660 if (PyErr_Occurred()) SWIG_fail;
13661 }
13662 Py_INCREF(Py_None); resultobj = Py_None;
13663 {
13664 if (temp3)
13665 delete arg3;
13666 }
13667 return resultobj;
13668 fail:
13669 {
13670 if (temp3)
13671 delete arg3;
13672 }
13673 return NULL;
13674 }
13675
13676
13677 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
13678 PyObject *resultobj;
13679 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13680 PyObject * obj0 = 0 ;
13681 char *kwnames[] = {
13682 (char *) "self", NULL
13683 };
13684
13685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13688 {
13689 PyThreadState* __tstate = wxPyBeginAllowThreads();
13690 (arg1)->ClearData();
13691
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 Py_INCREF(Py_None); resultobj = Py_None;
13696 return resultobj;
13697 fail:
13698 return NULL;
13699 }
13700
13701
13702 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
13703 PyObject *resultobj;
13704 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13705 wxString *arg2 = 0 ;
13706 wxFileType *result;
13707 bool temp2 = false ;
13708 PyObject * obj0 = 0 ;
13709 PyObject * obj1 = 0 ;
13710 char *kwnames[] = {
13711 (char *) "self",(char *) "ext", NULL
13712 };
13713
13714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13717 {
13718 arg2 = wxString_in_helper(obj1);
13719 if (arg2 == NULL) SWIG_fail;
13720 temp2 = true;
13721 }
13722 {
13723 PyThreadState* __tstate = wxPyBeginAllowThreads();
13724 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13725
13726 wxPyEndAllowThreads(__tstate);
13727 if (PyErr_Occurred()) SWIG_fail;
13728 }
13729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13730 {
13731 if (temp2)
13732 delete arg2;
13733 }
13734 return resultobj;
13735 fail:
13736 {
13737 if (temp2)
13738 delete arg2;
13739 }
13740 return NULL;
13741 }
13742
13743
13744 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
13745 PyObject *resultobj;
13746 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13747 wxString *arg2 = 0 ;
13748 wxFileType *result;
13749 bool temp2 = false ;
13750 PyObject * obj0 = 0 ;
13751 PyObject * obj1 = 0 ;
13752 char *kwnames[] = {
13753 (char *) "self",(char *) "mimeType", NULL
13754 };
13755
13756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13759 {
13760 arg2 = wxString_in_helper(obj1);
13761 if (arg2 == NULL) SWIG_fail;
13762 temp2 = true;
13763 }
13764 {
13765 PyThreadState* __tstate = wxPyBeginAllowThreads();
13766 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13767
13768 wxPyEndAllowThreads(__tstate);
13769 if (PyErr_Occurred()) SWIG_fail;
13770 }
13771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13772 {
13773 if (temp2)
13774 delete arg2;
13775 }
13776 return resultobj;
13777 fail:
13778 {
13779 if (temp2)
13780 delete arg2;
13781 }
13782 return NULL;
13783 }
13784
13785
13786 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj;
13788 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13789 wxString *arg2 = 0 ;
13790 bool arg3 = (bool) false ;
13791 bool result;
13792 bool temp2 = false ;
13793 PyObject * obj0 = 0 ;
13794 PyObject * obj1 = 0 ;
13795 PyObject * obj2 = 0 ;
13796 char *kwnames[] = {
13797 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13798 };
13799
13800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13803 {
13804 arg2 = wxString_in_helper(obj1);
13805 if (arg2 == NULL) SWIG_fail;
13806 temp2 = true;
13807 }
13808 if (obj2) {
13809 arg3 = (bool)SWIG_As_bool(obj2);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13815
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 {
13820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13821 }
13822 {
13823 if (temp2)
13824 delete arg2;
13825 }
13826 return resultobj;
13827 fail:
13828 {
13829 if (temp2)
13830 delete arg2;
13831 }
13832 return NULL;
13833 }
13834
13835
13836 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13839 wxString *arg2 = 0 ;
13840 bool result;
13841 bool temp2 = false ;
13842 PyObject * obj0 = 0 ;
13843 PyObject * obj1 = 0 ;
13844 char *kwnames[] = {
13845 (char *) "self",(char *) "filename", NULL
13846 };
13847
13848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13851 {
13852 arg2 = wxString_in_helper(obj1);
13853 if (arg2 == NULL) SWIG_fail;
13854 temp2 = true;
13855 }
13856 {
13857 PyThreadState* __tstate = wxPyBeginAllowThreads();
13858 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13859
13860 wxPyEndAllowThreads(__tstate);
13861 if (PyErr_Occurred()) SWIG_fail;
13862 }
13863 {
13864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13865 }
13866 {
13867 if (temp2)
13868 delete arg2;
13869 }
13870 return resultobj;
13871 fail:
13872 {
13873 if (temp2)
13874 delete arg2;
13875 }
13876 return NULL;
13877 }
13878
13879
13880 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj;
13882 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13883 PyObject *result;
13884 PyObject * obj0 = 0 ;
13885 char *kwnames[] = {
13886 (char *) "self", NULL
13887 };
13888
13889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13892 {
13893 PyThreadState* __tstate = wxPyBeginAllowThreads();
13894 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13895
13896 wxPyEndAllowThreads(__tstate);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 resultobj = result;
13900 return resultobj;
13901 fail:
13902 return NULL;
13903 }
13904
13905
13906 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
13907 PyObject *resultobj;
13908 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13909 wxFileTypeInfo *arg2 = 0 ;
13910 PyObject * obj0 = 0 ;
13911 PyObject * obj1 = 0 ;
13912 char *kwnames[] = {
13913 (char *) "self",(char *) "ft", NULL
13914 };
13915
13916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13920 SWIG_POINTER_EXCEPTION | 0)) == -1)
13921 SWIG_fail;
13922 if (arg2 == NULL) {
13923 PyErr_SetString(PyExc_TypeError,"null reference");
13924 SWIG_fail;
13925 }
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13929
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 Py_INCREF(Py_None); resultobj = Py_None;
13934 return resultobj;
13935 fail:
13936 return NULL;
13937 }
13938
13939
13940 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
13941 PyObject *resultobj;
13942 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13943 wxFileTypeInfo *arg2 = 0 ;
13944 wxFileType *result;
13945 PyObject * obj0 = 0 ;
13946 PyObject * obj1 = 0 ;
13947 char *kwnames[] = {
13948 (char *) "self",(char *) "ftInfo", NULL
13949 };
13950
13951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13955 SWIG_POINTER_EXCEPTION | 0)) == -1)
13956 SWIG_fail;
13957 if (arg2 == NULL) {
13958 PyErr_SetString(PyExc_TypeError,"null reference");
13959 SWIG_fail;
13960 }
13961 {
13962 PyThreadState* __tstate = wxPyBeginAllowThreads();
13963 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13964
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13969 return resultobj;
13970 fail:
13971 return NULL;
13972 }
13973
13974
13975 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13976 PyObject *resultobj;
13977 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13978 wxFileType *arg2 = (wxFileType *) 0 ;
13979 bool result;
13980 PyObject * obj0 = 0 ;
13981 PyObject * obj1 = 0 ;
13982 char *kwnames[] = {
13983 (char *) "self",(char *) "ft", NULL
13984 };
13985
13986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13989 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13991 {
13992 PyThreadState* __tstate = wxPyBeginAllowThreads();
13993 result = (bool)(arg1)->Unassociate(arg2);
13994
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 {
13999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14000 }
14001 return resultobj;
14002 fail:
14003 return NULL;
14004 }
14005
14006
14007 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
14008 PyObject *resultobj;
14009 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
14010 PyObject * obj0 = 0 ;
14011 char *kwnames[] = {
14012 (char *) "self", NULL
14013 };
14014
14015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
14016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
14017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14018 {
14019 PyThreadState* __tstate = wxPyBeginAllowThreads();
14020 delete arg1;
14021
14022 wxPyEndAllowThreads(__tstate);
14023 if (PyErr_Occurred()) SWIG_fail;
14024 }
14025 Py_INCREF(Py_None); resultobj = Py_None;
14026 return resultobj;
14027 fail:
14028 return NULL;
14029 }
14030
14031
14032 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
14033 PyObject *obj;
14034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14035 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
14036 Py_INCREF(obj);
14037 return Py_BuildValue((char *)"");
14038 }
14039 static int _wrap_ART_TOOLBAR_set(PyObject *) {
14040 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
14041 return 1;
14042 }
14043
14044
14045 static PyObject *_wrap_ART_TOOLBAR_get() {
14046 PyObject *pyobj;
14047
14048 {
14049 #if wxUSE_UNICODE
14050 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
14051 #else
14052 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
14053 #endif
14054 }
14055 return pyobj;
14056 }
14057
14058
14059 static int _wrap_ART_MENU_set(PyObject *) {
14060 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
14061 return 1;
14062 }
14063
14064
14065 static PyObject *_wrap_ART_MENU_get() {
14066 PyObject *pyobj;
14067
14068 {
14069 #if wxUSE_UNICODE
14070 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
14071 #else
14072 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
14073 #endif
14074 }
14075 return pyobj;
14076 }
14077
14078
14079 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
14080 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
14081 return 1;
14082 }
14083
14084
14085 static PyObject *_wrap_ART_FRAME_ICON_get() {
14086 PyObject *pyobj;
14087
14088 {
14089 #if wxUSE_UNICODE
14090 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
14091 #else
14092 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
14093 #endif
14094 }
14095 return pyobj;
14096 }
14097
14098
14099 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
14100 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
14101 return 1;
14102 }
14103
14104
14105 static PyObject *_wrap_ART_CMN_DIALOG_get() {
14106 PyObject *pyobj;
14107
14108 {
14109 #if wxUSE_UNICODE
14110 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
14111 #else
14112 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
14113 #endif
14114 }
14115 return pyobj;
14116 }
14117
14118
14119 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
14120 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
14121 return 1;
14122 }
14123
14124
14125 static PyObject *_wrap_ART_HELP_BROWSER_get() {
14126 PyObject *pyobj;
14127
14128 {
14129 #if wxUSE_UNICODE
14130 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14131 #else
14132 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14133 #endif
14134 }
14135 return pyobj;
14136 }
14137
14138
14139 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
14140 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
14141 return 1;
14142 }
14143
14144
14145 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
14146 PyObject *pyobj;
14147
14148 {
14149 #if wxUSE_UNICODE
14150 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14151 #else
14152 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14153 #endif
14154 }
14155 return pyobj;
14156 }
14157
14158
14159 static int _wrap_ART_BUTTON_set(PyObject *) {
14160 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
14161 return 1;
14162 }
14163
14164
14165 static PyObject *_wrap_ART_BUTTON_get() {
14166 PyObject *pyobj;
14167
14168 {
14169 #if wxUSE_UNICODE
14170 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14171 #else
14172 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14173 #endif
14174 }
14175 return pyobj;
14176 }
14177
14178
14179 static int _wrap_ART_OTHER_set(PyObject *) {
14180 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
14181 return 1;
14182 }
14183
14184
14185 static PyObject *_wrap_ART_OTHER_get() {
14186 PyObject *pyobj;
14187
14188 {
14189 #if wxUSE_UNICODE
14190 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14191 #else
14192 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14193 #endif
14194 }
14195 return pyobj;
14196 }
14197
14198
14199 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
14200 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
14201 return 1;
14202 }
14203
14204
14205 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
14206 PyObject *pyobj;
14207
14208 {
14209 #if wxUSE_UNICODE
14210 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14211 #else
14212 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14213 #endif
14214 }
14215 return pyobj;
14216 }
14217
14218
14219 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
14220 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
14221 return 1;
14222 }
14223
14224
14225 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
14226 PyObject *pyobj;
14227
14228 {
14229 #if wxUSE_UNICODE
14230 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14231 #else
14232 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14233 #endif
14234 }
14235 return pyobj;
14236 }
14237
14238
14239 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
14240 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
14241 return 1;
14242 }
14243
14244
14245 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
14246 PyObject *pyobj;
14247
14248 {
14249 #if wxUSE_UNICODE
14250 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14251 #else
14252 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14253 #endif
14254 }
14255 return pyobj;
14256 }
14257
14258
14259 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
14260 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
14261 return 1;
14262 }
14263
14264
14265 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14266 PyObject *pyobj;
14267
14268 {
14269 #if wxUSE_UNICODE
14270 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14271 #else
14272 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14273 #endif
14274 }
14275 return pyobj;
14276 }
14277
14278
14279 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
14280 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14281 return 1;
14282 }
14283
14284
14285 static PyObject *_wrap_ART_HELP_BOOK_get() {
14286 PyObject *pyobj;
14287
14288 {
14289 #if wxUSE_UNICODE
14290 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14291 #else
14292 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14293 #endif
14294 }
14295 return pyobj;
14296 }
14297
14298
14299 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
14300 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14301 return 1;
14302 }
14303
14304
14305 static PyObject *_wrap_ART_HELP_FOLDER_get() {
14306 PyObject *pyobj;
14307
14308 {
14309 #if wxUSE_UNICODE
14310 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14311 #else
14312 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14313 #endif
14314 }
14315 return pyobj;
14316 }
14317
14318
14319 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
14320 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14321 return 1;
14322 }
14323
14324
14325 static PyObject *_wrap_ART_HELP_PAGE_get() {
14326 PyObject *pyobj;
14327
14328 {
14329 #if wxUSE_UNICODE
14330 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14331 #else
14332 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14333 #endif
14334 }
14335 return pyobj;
14336 }
14337
14338
14339 static int _wrap_ART_GO_BACK_set(PyObject *) {
14340 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14341 return 1;
14342 }
14343
14344
14345 static PyObject *_wrap_ART_GO_BACK_get() {
14346 PyObject *pyobj;
14347
14348 {
14349 #if wxUSE_UNICODE
14350 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14351 #else
14352 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14353 #endif
14354 }
14355 return pyobj;
14356 }
14357
14358
14359 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
14360 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14361 return 1;
14362 }
14363
14364
14365 static PyObject *_wrap_ART_GO_FORWARD_get() {
14366 PyObject *pyobj;
14367
14368 {
14369 #if wxUSE_UNICODE
14370 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14371 #else
14372 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14373 #endif
14374 }
14375 return pyobj;
14376 }
14377
14378
14379 static int _wrap_ART_GO_UP_set(PyObject *) {
14380 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14381 return 1;
14382 }
14383
14384
14385 static PyObject *_wrap_ART_GO_UP_get() {
14386 PyObject *pyobj;
14387
14388 {
14389 #if wxUSE_UNICODE
14390 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14391 #else
14392 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14393 #endif
14394 }
14395 return pyobj;
14396 }
14397
14398
14399 static int _wrap_ART_GO_DOWN_set(PyObject *) {
14400 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14401 return 1;
14402 }
14403
14404
14405 static PyObject *_wrap_ART_GO_DOWN_get() {
14406 PyObject *pyobj;
14407
14408 {
14409 #if wxUSE_UNICODE
14410 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14411 #else
14412 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14413 #endif
14414 }
14415 return pyobj;
14416 }
14417
14418
14419 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
14420 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14421 return 1;
14422 }
14423
14424
14425 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14426 PyObject *pyobj;
14427
14428 {
14429 #if wxUSE_UNICODE
14430 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14431 #else
14432 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14433 #endif
14434 }
14435 return pyobj;
14436 }
14437
14438
14439 static int _wrap_ART_GO_HOME_set(PyObject *) {
14440 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14441 return 1;
14442 }
14443
14444
14445 static PyObject *_wrap_ART_GO_HOME_get() {
14446 PyObject *pyobj;
14447
14448 {
14449 #if wxUSE_UNICODE
14450 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14451 #else
14452 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14453 #endif
14454 }
14455 return pyobj;
14456 }
14457
14458
14459 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
14460 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14461 return 1;
14462 }
14463
14464
14465 static PyObject *_wrap_ART_FILE_OPEN_get() {
14466 PyObject *pyobj;
14467
14468 {
14469 #if wxUSE_UNICODE
14470 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14471 #else
14472 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14473 #endif
14474 }
14475 return pyobj;
14476 }
14477
14478
14479 static int _wrap_ART_PRINT_set(PyObject *) {
14480 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14481 return 1;
14482 }
14483
14484
14485 static PyObject *_wrap_ART_PRINT_get() {
14486 PyObject *pyobj;
14487
14488 {
14489 #if wxUSE_UNICODE
14490 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14491 #else
14492 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14493 #endif
14494 }
14495 return pyobj;
14496 }
14497
14498
14499 static int _wrap_ART_HELP_set(PyObject *) {
14500 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14501 return 1;
14502 }
14503
14504
14505 static PyObject *_wrap_ART_HELP_get() {
14506 PyObject *pyobj;
14507
14508 {
14509 #if wxUSE_UNICODE
14510 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14511 #else
14512 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14513 #endif
14514 }
14515 return pyobj;
14516 }
14517
14518
14519 static int _wrap_ART_TIP_set(PyObject *) {
14520 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14521 return 1;
14522 }
14523
14524
14525 static PyObject *_wrap_ART_TIP_get() {
14526 PyObject *pyobj;
14527
14528 {
14529 #if wxUSE_UNICODE
14530 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14531 #else
14532 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14533 #endif
14534 }
14535 return pyobj;
14536 }
14537
14538
14539 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
14540 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14541 return 1;
14542 }
14543
14544
14545 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14546 PyObject *pyobj;
14547
14548 {
14549 #if wxUSE_UNICODE
14550 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14551 #else
14552 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14553 #endif
14554 }
14555 return pyobj;
14556 }
14557
14558
14559 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
14560 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14561 return 1;
14562 }
14563
14564
14565 static PyObject *_wrap_ART_LIST_VIEW_get() {
14566 PyObject *pyobj;
14567
14568 {
14569 #if wxUSE_UNICODE
14570 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14571 #else
14572 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14573 #endif
14574 }
14575 return pyobj;
14576 }
14577
14578
14579 static int _wrap_ART_NEW_DIR_set(PyObject *) {
14580 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14581 return 1;
14582 }
14583
14584
14585 static PyObject *_wrap_ART_NEW_DIR_get() {
14586 PyObject *pyobj;
14587
14588 {
14589 #if wxUSE_UNICODE
14590 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14591 #else
14592 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14593 #endif
14594 }
14595 return pyobj;
14596 }
14597
14598
14599 static int _wrap_ART_HARDDISK_set(PyObject *) {
14600 PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only.");
14601 return 1;
14602 }
14603
14604
14605 static PyObject *_wrap_ART_HARDDISK_get() {
14606 PyObject *pyobj;
14607
14608 {
14609 #if wxUSE_UNICODE
14610 pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
14611 #else
14612 pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len());
14613 #endif
14614 }
14615 return pyobj;
14616 }
14617
14618
14619 static int _wrap_ART_FLOPPY_set(PyObject *) {
14620 PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only.");
14621 return 1;
14622 }
14623
14624
14625 static PyObject *_wrap_ART_FLOPPY_get() {
14626 PyObject *pyobj;
14627
14628 {
14629 #if wxUSE_UNICODE
14630 pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
14631 #else
14632 pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len());
14633 #endif
14634 }
14635 return pyobj;
14636 }
14637
14638
14639 static int _wrap_ART_CDROM_set(PyObject *) {
14640 PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only.");
14641 return 1;
14642 }
14643
14644
14645 static PyObject *_wrap_ART_CDROM_get() {
14646 PyObject *pyobj;
14647
14648 {
14649 #if wxUSE_UNICODE
14650 pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
14651 #else
14652 pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len());
14653 #endif
14654 }
14655 return pyobj;
14656 }
14657
14658
14659 static int _wrap_ART_REMOVABLE_set(PyObject *) {
14660 PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only.");
14661 return 1;
14662 }
14663
14664
14665 static PyObject *_wrap_ART_REMOVABLE_get() {
14666 PyObject *pyobj;
14667
14668 {
14669 #if wxUSE_UNICODE
14670 pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
14671 #else
14672 pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len());
14673 #endif
14674 }
14675 return pyobj;
14676 }
14677
14678
14679 static int _wrap_ART_FOLDER_set(PyObject *) {
14680 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14681 return 1;
14682 }
14683
14684
14685 static PyObject *_wrap_ART_FOLDER_get() {
14686 PyObject *pyobj;
14687
14688 {
14689 #if wxUSE_UNICODE
14690 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14691 #else
14692 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14693 #endif
14694 }
14695 return pyobj;
14696 }
14697
14698
14699 static int _wrap_ART_FOLDER_OPEN_set(PyObject *) {
14700 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only.");
14701 return 1;
14702 }
14703
14704
14705 static PyObject *_wrap_ART_FOLDER_OPEN_get() {
14706 PyObject *pyobj;
14707
14708 {
14709 #if wxUSE_UNICODE
14710 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
14711 #else
14712 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len());
14713 #endif
14714 }
14715 return pyobj;
14716 }
14717
14718
14719 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
14720 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14721 return 1;
14722 }
14723
14724
14725 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14726 PyObject *pyobj;
14727
14728 {
14729 #if wxUSE_UNICODE
14730 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14731 #else
14732 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14733 #endif
14734 }
14735 return pyobj;
14736 }
14737
14738
14739 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
14740 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14741 return 1;
14742 }
14743
14744
14745 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14746 PyObject *pyobj;
14747
14748 {
14749 #if wxUSE_UNICODE
14750 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14751 #else
14752 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14753 #endif
14754 }
14755 return pyobj;
14756 }
14757
14758
14759 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
14760 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14761 return 1;
14762 }
14763
14764
14765 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14766 PyObject *pyobj;
14767
14768 {
14769 #if wxUSE_UNICODE
14770 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14771 #else
14772 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14773 #endif
14774 }
14775 return pyobj;
14776 }
14777
14778
14779 static int _wrap_ART_TICK_MARK_set(PyObject *) {
14780 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14781 return 1;
14782 }
14783
14784
14785 static PyObject *_wrap_ART_TICK_MARK_get() {
14786 PyObject *pyobj;
14787
14788 {
14789 #if wxUSE_UNICODE
14790 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14791 #else
14792 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14793 #endif
14794 }
14795 return pyobj;
14796 }
14797
14798
14799 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
14800 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14801 return 1;
14802 }
14803
14804
14805 static PyObject *_wrap_ART_CROSS_MARK_get() {
14806 PyObject *pyobj;
14807
14808 {
14809 #if wxUSE_UNICODE
14810 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14811 #else
14812 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14813 #endif
14814 }
14815 return pyobj;
14816 }
14817
14818
14819 static int _wrap_ART_ERROR_set(PyObject *) {
14820 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14821 return 1;
14822 }
14823
14824
14825 static PyObject *_wrap_ART_ERROR_get() {
14826 PyObject *pyobj;
14827
14828 {
14829 #if wxUSE_UNICODE
14830 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14831 #else
14832 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14833 #endif
14834 }
14835 return pyobj;
14836 }
14837
14838
14839 static int _wrap_ART_QUESTION_set(PyObject *) {
14840 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14841 return 1;
14842 }
14843
14844
14845 static PyObject *_wrap_ART_QUESTION_get() {
14846 PyObject *pyobj;
14847
14848 {
14849 #if wxUSE_UNICODE
14850 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14851 #else
14852 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14853 #endif
14854 }
14855 return pyobj;
14856 }
14857
14858
14859 static int _wrap_ART_WARNING_set(PyObject *) {
14860 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14861 return 1;
14862 }
14863
14864
14865 static PyObject *_wrap_ART_WARNING_get() {
14866 PyObject *pyobj;
14867
14868 {
14869 #if wxUSE_UNICODE
14870 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14871 #else
14872 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14873 #endif
14874 }
14875 return pyobj;
14876 }
14877
14878
14879 static int _wrap_ART_INFORMATION_set(PyObject *) {
14880 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14881 return 1;
14882 }
14883
14884
14885 static PyObject *_wrap_ART_INFORMATION_get() {
14886 PyObject *pyobj;
14887
14888 {
14889 #if wxUSE_UNICODE
14890 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14891 #else
14892 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14893 #endif
14894 }
14895 return pyobj;
14896 }
14897
14898
14899 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
14900 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14901 return 1;
14902 }
14903
14904
14905 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14906 PyObject *pyobj;
14907
14908 {
14909 #if wxUSE_UNICODE
14910 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14911 #else
14912 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14913 #endif
14914 }
14915 return pyobj;
14916 }
14917
14918
14919 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14920 PyObject *resultobj;
14921 wxPyArtProvider *result;
14922 char *kwnames[] = {
14923 NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14927 {
14928 if (!wxPyCheckForApp()) SWIG_fail;
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 result = (wxPyArtProvider *)new wxPyArtProvider();
14931
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14936 return resultobj;
14937 fail:
14938 return NULL;
14939 }
14940
14941
14942 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14943 PyObject *resultobj;
14944 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14945 PyObject *arg2 = (PyObject *) 0 ;
14946 PyObject *arg3 = (PyObject *) 0 ;
14947 PyObject * obj0 = 0 ;
14948 PyObject * obj1 = 0 ;
14949 PyObject * obj2 = 0 ;
14950 char *kwnames[] = {
14951 (char *) "self",(char *) "self",(char *) "_class", NULL
14952 };
14953
14954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14957 arg2 = obj1;
14958 arg3 = obj2;
14959 {
14960 PyThreadState* __tstate = wxPyBeginAllowThreads();
14961 (arg1)->_setCallbackInfo(arg2,arg3);
14962
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 Py_INCREF(Py_None); resultobj = Py_None;
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj;
14975 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14976 PyObject * obj0 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "provider", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14984 {
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 wxPyArtProvider::PushProvider(arg1);
14987
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 Py_INCREF(Py_None); resultobj = Py_None;
14992 return resultobj;
14993 fail:
14994 return NULL;
14995 }
14996
14997
14998 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj;
15000 bool result;
15001 char *kwnames[] = {
15002 NULL
15003 };
15004
15005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
15006 {
15007 PyThreadState* __tstate = wxPyBeginAllowThreads();
15008 result = (bool)wxPyArtProvider::PopProvider();
15009
15010 wxPyEndAllowThreads(__tstate);
15011 if (PyErr_Occurred()) SWIG_fail;
15012 }
15013 {
15014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15015 }
15016 return resultobj;
15017 fail:
15018 return NULL;
15019 }
15020
15021
15022 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
15023 PyObject *resultobj;
15024 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
15025 bool result;
15026 PyObject * obj0 = 0 ;
15027 char *kwnames[] = {
15028 (char *) "provider", NULL
15029 };
15030
15031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
15032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
15033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15034 {
15035 PyThreadState* __tstate = wxPyBeginAllowThreads();
15036 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
15037
15038 wxPyEndAllowThreads(__tstate);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 {
15042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15043 }
15044 return resultobj;
15045 fail:
15046 return NULL;
15047 }
15048
15049
15050 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15051 PyObject *resultobj;
15052 wxString *arg1 = 0 ;
15053 wxString const &arg2_defvalue = wxPyART_OTHER ;
15054 wxString *arg2 = (wxString *) &arg2_defvalue ;
15055 wxSize const &arg3_defvalue = wxDefaultSize ;
15056 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
15057 wxBitmap result;
15058 bool temp1 = false ;
15059 bool temp2 = false ;
15060 wxSize temp3 ;
15061 PyObject * obj0 = 0 ;
15062 PyObject * obj1 = 0 ;
15063 PyObject * obj2 = 0 ;
15064 char *kwnames[] = {
15065 (char *) "id",(char *) "client",(char *) "size", NULL
15066 };
15067
15068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
15069 {
15070 arg1 = wxString_in_helper(obj0);
15071 if (arg1 == NULL) SWIG_fail;
15072 temp1 = true;
15073 }
15074 if (obj1) {
15075 {
15076 arg2 = wxString_in_helper(obj1);
15077 if (arg2 == NULL) SWIG_fail;
15078 temp2 = true;
15079 }
15080 }
15081 if (obj2) {
15082 {
15083 arg3 = &temp3;
15084 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15085 }
15086 }
15087 {
15088 if (!wxPyCheckForApp()) SWIG_fail;
15089 PyThreadState* __tstate = wxPyBeginAllowThreads();
15090 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
15091
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 {
15096 wxBitmap * resultptr;
15097 resultptr = new wxBitmap((wxBitmap &) result);
15098 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
15099 }
15100 {
15101 if (temp1)
15102 delete arg1;
15103 }
15104 {
15105 if (temp2)
15106 delete arg2;
15107 }
15108 return resultobj;
15109 fail:
15110 {
15111 if (temp1)
15112 delete arg1;
15113 }
15114 {
15115 if (temp2)
15116 delete arg2;
15117 }
15118 return NULL;
15119 }
15120
15121
15122 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
15123 PyObject *resultobj;
15124 wxString *arg1 = 0 ;
15125 wxString const &arg2_defvalue = wxPyART_OTHER ;
15126 wxString *arg2 = (wxString *) &arg2_defvalue ;
15127 wxSize const &arg3_defvalue = wxDefaultSize ;
15128 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
15129 wxIcon result;
15130 bool temp1 = false ;
15131 bool temp2 = false ;
15132 wxSize temp3 ;
15133 PyObject * obj0 = 0 ;
15134 PyObject * obj1 = 0 ;
15135 PyObject * obj2 = 0 ;
15136 char *kwnames[] = {
15137 (char *) "id",(char *) "client",(char *) "size", NULL
15138 };
15139
15140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15141 {
15142 arg1 = wxString_in_helper(obj0);
15143 if (arg1 == NULL) SWIG_fail;
15144 temp1 = true;
15145 }
15146 if (obj1) {
15147 {
15148 arg2 = wxString_in_helper(obj1);
15149 if (arg2 == NULL) SWIG_fail;
15150 temp2 = true;
15151 }
15152 }
15153 if (obj2) {
15154 {
15155 arg3 = &temp3;
15156 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15157 }
15158 }
15159 {
15160 if (!wxPyCheckForApp()) SWIG_fail;
15161 PyThreadState* __tstate = wxPyBeginAllowThreads();
15162 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
15163
15164 wxPyEndAllowThreads(__tstate);
15165 if (PyErr_Occurred()) SWIG_fail;
15166 }
15167 {
15168 wxIcon * resultptr;
15169 resultptr = new wxIcon((wxIcon &) result);
15170 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
15171 }
15172 {
15173 if (temp1)
15174 delete arg1;
15175 }
15176 {
15177 if (temp2)
15178 delete arg2;
15179 }
15180 return resultobj;
15181 fail:
15182 {
15183 if (temp1)
15184 delete arg1;
15185 }
15186 {
15187 if (temp2)
15188 delete arg2;
15189 }
15190 return NULL;
15191 }
15192
15193
15194 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
15195 PyObject *resultobj;
15196 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
15197 PyObject * obj0 = 0 ;
15198 char *kwnames[] = {
15199 (char *) "self", NULL
15200 };
15201
15202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
15203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
15204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15205 {
15206 PyThreadState* __tstate = wxPyBeginAllowThreads();
15207 wxPyArtProvider_Destroy(arg1);
15208
15209 wxPyEndAllowThreads(__tstate);
15210 if (PyErr_Occurred()) SWIG_fail;
15211 }
15212 Py_INCREF(Py_None); resultobj = Py_None;
15213 return resultobj;
15214 fail:
15215 return NULL;
15216 }
15217
15218
15219 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
15220 PyObject *obj;
15221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15222 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
15223 Py_INCREF(obj);
15224 return Py_BuildValue((char *)"");
15225 }
15226 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
15227 PyObject *resultobj;
15228 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15229 PyObject * obj0 = 0 ;
15230 char *kwnames[] = {
15231 (char *) "self", NULL
15232 };
15233
15234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
15235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15237 {
15238 PyThreadState* __tstate = wxPyBeginAllowThreads();
15239 delete arg1;
15240
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 Py_INCREF(Py_None); resultobj = Py_None;
15245 return resultobj;
15246 fail:
15247 return NULL;
15248 }
15249
15250
15251 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj;
15253 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15254 wxConfigBase *result;
15255 PyObject * obj0 = 0 ;
15256 char *kwnames[] = {
15257 (char *) "config", NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
15261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15263 {
15264 PyThreadState* __tstate = wxPyBeginAllowThreads();
15265 result = (wxConfigBase *)wxConfigBase::Set(arg1);
15266
15267 wxPyEndAllowThreads(__tstate);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15271 return resultobj;
15272 fail:
15273 return NULL;
15274 }
15275
15276
15277 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
15278 PyObject *resultobj;
15279 bool arg1 = (bool) true ;
15280 wxConfigBase *result;
15281 PyObject * obj0 = 0 ;
15282 char *kwnames[] = {
15283 (char *) "createOnDemand", NULL
15284 };
15285
15286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
15287 if (obj0) {
15288 arg1 = (bool)SWIG_As_bool(obj0);
15289 if (PyErr_Occurred()) SWIG_fail;
15290 }
15291 {
15292 PyThreadState* __tstate = wxPyBeginAllowThreads();
15293 result = (wxConfigBase *)wxConfigBase::Get(arg1);
15294
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj;
15307 wxConfigBase *result;
15308 char *kwnames[] = {
15309 NULL
15310 };
15311
15312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
15313 {
15314 PyThreadState* __tstate = wxPyBeginAllowThreads();
15315 result = (wxConfigBase *)wxConfigBase::Create();
15316
15317 wxPyEndAllowThreads(__tstate);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15321 return resultobj;
15322 fail:
15323 return NULL;
15324 }
15325
15326
15327 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
15328 PyObject *resultobj;
15329 char *kwnames[] = {
15330 NULL
15331 };
15332
15333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
15334 {
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 wxConfigBase::DontCreateOnDemand();
15337
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
15341 Py_INCREF(Py_None); resultobj = Py_None;
15342 return resultobj;
15343 fail:
15344 return NULL;
15345 }
15346
15347
15348 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15349 PyObject *resultobj;
15350 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15351 wxString *arg2 = 0 ;
15352 bool temp2 = false ;
15353 PyObject * obj0 = 0 ;
15354 PyObject * obj1 = 0 ;
15355 char *kwnames[] = {
15356 (char *) "self",(char *) "path", NULL
15357 };
15358
15359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15362 {
15363 arg2 = wxString_in_helper(obj1);
15364 if (arg2 == NULL) SWIG_fail;
15365 temp2 = true;
15366 }
15367 {
15368 PyThreadState* __tstate = wxPyBeginAllowThreads();
15369 (arg1)->SetPath((wxString const &)*arg2);
15370
15371 wxPyEndAllowThreads(__tstate);
15372 if (PyErr_Occurred()) SWIG_fail;
15373 }
15374 Py_INCREF(Py_None); resultobj = Py_None;
15375 {
15376 if (temp2)
15377 delete arg2;
15378 }
15379 return resultobj;
15380 fail:
15381 {
15382 if (temp2)
15383 delete arg2;
15384 }
15385 return NULL;
15386 }
15387
15388
15389 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15390 PyObject *resultobj;
15391 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15392 wxString *result;
15393 PyObject * obj0 = 0 ;
15394 char *kwnames[] = {
15395 (char *) "self", NULL
15396 };
15397
15398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 {
15404 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15405 result = (wxString *) &_result_ref;
15406 }
15407
15408 wxPyEndAllowThreads(__tstate);
15409 if (PyErr_Occurred()) SWIG_fail;
15410 }
15411 {
15412 #if wxUSE_UNICODE
15413 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15414 #else
15415 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15416 #endif
15417 }
15418 return resultobj;
15419 fail:
15420 return NULL;
15421 }
15422
15423
15424 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15425 PyObject *resultobj;
15426 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15427 PyObject *result;
15428 PyObject * obj0 = 0 ;
15429 char *kwnames[] = {
15430 (char *) "self", NULL
15431 };
15432
15433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15439
15440 wxPyEndAllowThreads(__tstate);
15441 if (PyErr_Occurred()) SWIG_fail;
15442 }
15443 resultobj = result;
15444 return resultobj;
15445 fail:
15446 return NULL;
15447 }
15448
15449
15450 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15451 PyObject *resultobj;
15452 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15453 long arg2 ;
15454 PyObject *result;
15455 PyObject * obj0 = 0 ;
15456 PyObject * obj1 = 0 ;
15457 char *kwnames[] = {
15458 (char *) "self",(char *) "index", NULL
15459 };
15460
15461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15464 arg2 = (long)SWIG_As_long(obj1);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 {
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15469
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 resultobj = result;
15474 return resultobj;
15475 fail:
15476 return NULL;
15477 }
15478
15479
15480 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15481 PyObject *resultobj;
15482 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15483 PyObject *result;
15484 PyObject * obj0 = 0 ;
15485 char *kwnames[] = {
15486 (char *) "self", NULL
15487 };
15488
15489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15492 {
15493 PyThreadState* __tstate = wxPyBeginAllowThreads();
15494 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15495
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = result;
15500 return resultobj;
15501 fail:
15502 return NULL;
15503 }
15504
15505
15506 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj;
15508 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15509 long arg2 ;
15510 PyObject *result;
15511 PyObject * obj0 = 0 ;
15512 PyObject * obj1 = 0 ;
15513 char *kwnames[] = {
15514 (char *) "self",(char *) "index", NULL
15515 };
15516
15517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15520 arg2 = (long)SWIG_As_long(obj1);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 {
15523 PyThreadState* __tstate = wxPyBeginAllowThreads();
15524 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15525
15526 wxPyEndAllowThreads(__tstate);
15527 if (PyErr_Occurred()) SWIG_fail;
15528 }
15529 resultobj = result;
15530 return resultobj;
15531 fail:
15532 return NULL;
15533 }
15534
15535
15536 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
15537 PyObject *resultobj;
15538 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15539 bool arg2 = (bool) false ;
15540 size_t result;
15541 PyObject * obj0 = 0 ;
15542 PyObject * obj1 = 0 ;
15543 char *kwnames[] = {
15544 (char *) "self",(char *) "recursive", NULL
15545 };
15546
15547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15550 if (obj1) {
15551 arg2 = (bool)SWIG_As_bool(obj1);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj;
15570 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15571 bool arg2 = (bool) false ;
15572 size_t result;
15573 PyObject * obj0 = 0 ;
15574 PyObject * obj1 = 0 ;
15575 char *kwnames[] = {
15576 (char *) "self",(char *) "recursive", NULL
15577 };
15578
15579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15582 if (obj1) {
15583 arg2 = (bool)SWIG_As_bool(obj1);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 {
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15589
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj;
15602 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15603 wxString *arg2 = 0 ;
15604 bool result;
15605 bool temp2 = false ;
15606 PyObject * obj0 = 0 ;
15607 PyObject * obj1 = 0 ;
15608 char *kwnames[] = {
15609 (char *) "self",(char *) "name", NULL
15610 };
15611
15612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15615 {
15616 arg2 = wxString_in_helper(obj1);
15617 if (arg2 == NULL) SWIG_fail;
15618 temp2 = true;
15619 }
15620 {
15621 PyThreadState* __tstate = wxPyBeginAllowThreads();
15622 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15623
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 {
15628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15629 }
15630 {
15631 if (temp2)
15632 delete arg2;
15633 }
15634 return resultobj;
15635 fail:
15636 {
15637 if (temp2)
15638 delete arg2;
15639 }
15640 return NULL;
15641 }
15642
15643
15644 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15645 PyObject *resultobj;
15646 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15647 wxString *arg2 = 0 ;
15648 bool result;
15649 bool temp2 = false ;
15650 PyObject * obj0 = 0 ;
15651 PyObject * obj1 = 0 ;
15652 char *kwnames[] = {
15653 (char *) "self",(char *) "name", NULL
15654 };
15655
15656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15659 {
15660 arg2 = wxString_in_helper(obj1);
15661 if (arg2 == NULL) SWIG_fail;
15662 temp2 = true;
15663 }
15664 {
15665 PyThreadState* __tstate = wxPyBeginAllowThreads();
15666 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15667
15668 wxPyEndAllowThreads(__tstate);
15669 if (PyErr_Occurred()) SWIG_fail;
15670 }
15671 {
15672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15673 }
15674 {
15675 if (temp2)
15676 delete arg2;
15677 }
15678 return resultobj;
15679 fail:
15680 {
15681 if (temp2)
15682 delete arg2;
15683 }
15684 return NULL;
15685 }
15686
15687
15688 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj;
15690 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15691 wxString *arg2 = 0 ;
15692 bool result;
15693 bool temp2 = false ;
15694 PyObject * obj0 = 0 ;
15695 PyObject * obj1 = 0 ;
15696 char *kwnames[] = {
15697 (char *) "self",(char *) "name", NULL
15698 };
15699
15700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15703 {
15704 arg2 = wxString_in_helper(obj1);
15705 if (arg2 == NULL) SWIG_fail;
15706 temp2 = true;
15707 }
15708 {
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15711
15712 wxPyEndAllowThreads(__tstate);
15713 if (PyErr_Occurred()) SWIG_fail;
15714 }
15715 {
15716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15717 }
15718 {
15719 if (temp2)
15720 delete arg2;
15721 }
15722 return resultobj;
15723 fail:
15724 {
15725 if (temp2)
15726 delete arg2;
15727 }
15728 return NULL;
15729 }
15730
15731
15732 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
15733 PyObject *resultobj;
15734 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15735 wxString *arg2 = 0 ;
15736 int result;
15737 bool temp2 = false ;
15738 PyObject * obj0 = 0 ;
15739 PyObject * obj1 = 0 ;
15740 char *kwnames[] = {
15741 (char *) "self",(char *) "name", NULL
15742 };
15743
15744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15747 {
15748 arg2 = wxString_in_helper(obj1);
15749 if (arg2 == NULL) SWIG_fail;
15750 temp2 = true;
15751 }
15752 {
15753 PyThreadState* __tstate = wxPyBeginAllowThreads();
15754 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15755
15756 wxPyEndAllowThreads(__tstate);
15757 if (PyErr_Occurred()) SWIG_fail;
15758 }
15759 resultobj = SWIG_From_int((int)result);
15760 {
15761 if (temp2)
15762 delete arg2;
15763 }
15764 return resultobj;
15765 fail:
15766 {
15767 if (temp2)
15768 delete arg2;
15769 }
15770 return NULL;
15771 }
15772
15773
15774 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj;
15776 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15777 wxString *arg2 = 0 ;
15778 wxString const &arg3_defvalue = wxPyEmptyString ;
15779 wxString *arg3 = (wxString *) &arg3_defvalue ;
15780 wxString result;
15781 bool temp2 = false ;
15782 bool temp3 = false ;
15783 PyObject * obj0 = 0 ;
15784 PyObject * obj1 = 0 ;
15785 PyObject * obj2 = 0 ;
15786 char *kwnames[] = {
15787 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15788 };
15789
15790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15793 {
15794 arg2 = wxString_in_helper(obj1);
15795 if (arg2 == NULL) SWIG_fail;
15796 temp2 = true;
15797 }
15798 if (obj2) {
15799 {
15800 arg3 = wxString_in_helper(obj2);
15801 if (arg3 == NULL) SWIG_fail;
15802 temp3 = true;
15803 }
15804 }
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15808
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 {
15813 #if wxUSE_UNICODE
15814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15815 #else
15816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15817 #endif
15818 }
15819 {
15820 if (temp2)
15821 delete arg2;
15822 }
15823 {
15824 if (temp3)
15825 delete arg3;
15826 }
15827 return resultobj;
15828 fail:
15829 {
15830 if (temp2)
15831 delete arg2;
15832 }
15833 {
15834 if (temp3)
15835 delete arg3;
15836 }
15837 return NULL;
15838 }
15839
15840
15841 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
15842 PyObject *resultobj;
15843 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15844 wxString *arg2 = 0 ;
15845 long arg3 = (long) 0 ;
15846 long result;
15847 bool temp2 = false ;
15848 PyObject * obj0 = 0 ;
15849 PyObject * obj1 = 0 ;
15850 PyObject * obj2 = 0 ;
15851 char *kwnames[] = {
15852 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15853 };
15854
15855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15858 {
15859 arg2 = wxString_in_helper(obj1);
15860 if (arg2 == NULL) SWIG_fail;
15861 temp2 = true;
15862 }
15863 if (obj2) {
15864 arg3 = (long)SWIG_As_long(obj2);
15865 if (PyErr_Occurred()) SWIG_fail;
15866 }
15867 {
15868 PyThreadState* __tstate = wxPyBeginAllowThreads();
15869 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15870
15871 wxPyEndAllowThreads(__tstate);
15872 if (PyErr_Occurred()) SWIG_fail;
15873 }
15874 resultobj = SWIG_From_long((long)result);
15875 {
15876 if (temp2)
15877 delete arg2;
15878 }
15879 return resultobj;
15880 fail:
15881 {
15882 if (temp2)
15883 delete arg2;
15884 }
15885 return NULL;
15886 }
15887
15888
15889 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15890 PyObject *resultobj;
15891 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15892 wxString *arg2 = 0 ;
15893 double arg3 = (double) 0.0 ;
15894 double result;
15895 bool temp2 = false ;
15896 PyObject * obj0 = 0 ;
15897 PyObject * obj1 = 0 ;
15898 PyObject * obj2 = 0 ;
15899 char *kwnames[] = {
15900 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15901 };
15902
15903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15906 {
15907 arg2 = wxString_in_helper(obj1);
15908 if (arg2 == NULL) SWIG_fail;
15909 temp2 = true;
15910 }
15911 if (obj2) {
15912 arg3 = (double)SWIG_As_double(obj2);
15913 if (PyErr_Occurred()) SWIG_fail;
15914 }
15915 {
15916 PyThreadState* __tstate = wxPyBeginAllowThreads();
15917 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15918
15919 wxPyEndAllowThreads(__tstate);
15920 if (PyErr_Occurred()) SWIG_fail;
15921 }
15922 resultobj = SWIG_From_double((double)result);
15923 {
15924 if (temp2)
15925 delete arg2;
15926 }
15927 return resultobj;
15928 fail:
15929 {
15930 if (temp2)
15931 delete arg2;
15932 }
15933 return NULL;
15934 }
15935
15936
15937 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
15938 PyObject *resultobj;
15939 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15940 wxString *arg2 = 0 ;
15941 bool arg3 = (bool) false ;
15942 bool result;
15943 bool temp2 = false ;
15944 PyObject * obj0 = 0 ;
15945 PyObject * obj1 = 0 ;
15946 PyObject * obj2 = 0 ;
15947 char *kwnames[] = {
15948 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15949 };
15950
15951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15954 {
15955 arg2 = wxString_in_helper(obj1);
15956 if (arg2 == NULL) SWIG_fail;
15957 temp2 = true;
15958 }
15959 if (obj2) {
15960 arg3 = (bool)SWIG_As_bool(obj2);
15961 if (PyErr_Occurred()) SWIG_fail;
15962 }
15963 {
15964 PyThreadState* __tstate = wxPyBeginAllowThreads();
15965 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15966
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 {
15971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15972 }
15973 {
15974 if (temp2)
15975 delete arg2;
15976 }
15977 return resultobj;
15978 fail:
15979 {
15980 if (temp2)
15981 delete arg2;
15982 }
15983 return NULL;
15984 }
15985
15986
15987 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15990 wxString *arg2 = 0 ;
15991 wxString *arg3 = 0 ;
15992 bool result;
15993 bool temp2 = false ;
15994 bool temp3 = false ;
15995 PyObject * obj0 = 0 ;
15996 PyObject * obj1 = 0 ;
15997 PyObject * obj2 = 0 ;
15998 char *kwnames[] = {
15999 (char *) "self",(char *) "key",(char *) "value", NULL
16000 };
16001
16002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
16003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16005 {
16006 arg2 = wxString_in_helper(obj1);
16007 if (arg2 == NULL) SWIG_fail;
16008 temp2 = true;
16009 }
16010 {
16011 arg3 = wxString_in_helper(obj2);
16012 if (arg3 == NULL) SWIG_fail;
16013 temp3 = true;
16014 }
16015 {
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 {
16023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16024 }
16025 {
16026 if (temp2)
16027 delete arg2;
16028 }
16029 {
16030 if (temp3)
16031 delete arg3;
16032 }
16033 return resultobj;
16034 fail:
16035 {
16036 if (temp2)
16037 delete arg2;
16038 }
16039 {
16040 if (temp3)
16041 delete arg3;
16042 }
16043 return NULL;
16044 }
16045
16046
16047 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
16048 PyObject *resultobj;
16049 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16050 wxString *arg2 = 0 ;
16051 long arg3 ;
16052 bool result;
16053 bool temp2 = false ;
16054 PyObject * obj0 = 0 ;
16055 PyObject * obj1 = 0 ;
16056 PyObject * obj2 = 0 ;
16057 char *kwnames[] = {
16058 (char *) "self",(char *) "key",(char *) "value", NULL
16059 };
16060
16061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
16062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16064 {
16065 arg2 = wxString_in_helper(obj1);
16066 if (arg2 == NULL) SWIG_fail;
16067 temp2 = true;
16068 }
16069 arg3 = (long)SWIG_As_long(obj2);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 {
16072 PyThreadState* __tstate = wxPyBeginAllowThreads();
16073 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
16074
16075 wxPyEndAllowThreads(__tstate);
16076 if (PyErr_Occurred()) SWIG_fail;
16077 }
16078 {
16079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16080 }
16081 {
16082 if (temp2)
16083 delete arg2;
16084 }
16085 return resultobj;
16086 fail:
16087 {
16088 if (temp2)
16089 delete arg2;
16090 }
16091 return NULL;
16092 }
16093
16094
16095 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
16096 PyObject *resultobj;
16097 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16098 wxString *arg2 = 0 ;
16099 double arg3 ;
16100 bool result;
16101 bool temp2 = false ;
16102 PyObject * obj0 = 0 ;
16103 PyObject * obj1 = 0 ;
16104 PyObject * obj2 = 0 ;
16105 char *kwnames[] = {
16106 (char *) "self",(char *) "key",(char *) "value", NULL
16107 };
16108
16109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
16110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16112 {
16113 arg2 = wxString_in_helper(obj1);
16114 if (arg2 == NULL) SWIG_fail;
16115 temp2 = true;
16116 }
16117 arg3 = (double)SWIG_As_double(obj2);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 {
16120 PyThreadState* __tstate = wxPyBeginAllowThreads();
16121 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
16122
16123 wxPyEndAllowThreads(__tstate);
16124 if (PyErr_Occurred()) SWIG_fail;
16125 }
16126 {
16127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16128 }
16129 {
16130 if (temp2)
16131 delete arg2;
16132 }
16133 return resultobj;
16134 fail:
16135 {
16136 if (temp2)
16137 delete arg2;
16138 }
16139 return NULL;
16140 }
16141
16142
16143 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
16144 PyObject *resultobj;
16145 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16146 wxString *arg2 = 0 ;
16147 bool arg3 ;
16148 bool result;
16149 bool temp2 = false ;
16150 PyObject * obj0 = 0 ;
16151 PyObject * obj1 = 0 ;
16152 PyObject * obj2 = 0 ;
16153 char *kwnames[] = {
16154 (char *) "self",(char *) "key",(char *) "value", NULL
16155 };
16156
16157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
16158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16160 {
16161 arg2 = wxString_in_helper(obj1);
16162 if (arg2 == NULL) SWIG_fail;
16163 temp2 = true;
16164 }
16165 arg3 = (bool)SWIG_As_bool(obj2);
16166 if (PyErr_Occurred()) SWIG_fail;
16167 {
16168 PyThreadState* __tstate = wxPyBeginAllowThreads();
16169 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
16170
16171 wxPyEndAllowThreads(__tstate);
16172 if (PyErr_Occurred()) SWIG_fail;
16173 }
16174 {
16175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16176 }
16177 {
16178 if (temp2)
16179 delete arg2;
16180 }
16181 return resultobj;
16182 fail:
16183 {
16184 if (temp2)
16185 delete arg2;
16186 }
16187 return NULL;
16188 }
16189
16190
16191 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj;
16193 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16194 bool arg2 = (bool) false ;
16195 bool result;
16196 PyObject * obj0 = 0 ;
16197 PyObject * obj1 = 0 ;
16198 char *kwnames[] = {
16199 (char *) "self",(char *) "currentOnly", NULL
16200 };
16201
16202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
16203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16205 if (obj1) {
16206 arg2 = (bool)SWIG_As_bool(obj1);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 {
16210 PyThreadState* __tstate = wxPyBeginAllowThreads();
16211 result = (bool)(arg1)->Flush(arg2);
16212
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 {
16217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16218 }
16219 return resultobj;
16220 fail:
16221 return NULL;
16222 }
16223
16224
16225 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
16226 PyObject *resultobj;
16227 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16228 wxString *arg2 = 0 ;
16229 wxString *arg3 = 0 ;
16230 bool result;
16231 bool temp2 = false ;
16232 bool temp3 = false ;
16233 PyObject * obj0 = 0 ;
16234 PyObject * obj1 = 0 ;
16235 PyObject * obj2 = 0 ;
16236 char *kwnames[] = {
16237 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16238 };
16239
16240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16243 {
16244 arg2 = wxString_in_helper(obj1);
16245 if (arg2 == NULL) SWIG_fail;
16246 temp2 = true;
16247 }
16248 {
16249 arg3 = wxString_in_helper(obj2);
16250 if (arg3 == NULL) SWIG_fail;
16251 temp3 = true;
16252 }
16253 {
16254 PyThreadState* __tstate = wxPyBeginAllowThreads();
16255 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
16256
16257 wxPyEndAllowThreads(__tstate);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 }
16260 {
16261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16262 }
16263 {
16264 if (temp2)
16265 delete arg2;
16266 }
16267 {
16268 if (temp3)
16269 delete arg3;
16270 }
16271 return resultobj;
16272 fail:
16273 {
16274 if (temp2)
16275 delete arg2;
16276 }
16277 {
16278 if (temp3)
16279 delete arg3;
16280 }
16281 return NULL;
16282 }
16283
16284
16285 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16286 PyObject *resultobj;
16287 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16288 wxString *arg2 = 0 ;
16289 wxString *arg3 = 0 ;
16290 bool result;
16291 bool temp2 = false ;
16292 bool temp3 = false ;
16293 PyObject * obj0 = 0 ;
16294 PyObject * obj1 = 0 ;
16295 PyObject * obj2 = 0 ;
16296 char *kwnames[] = {
16297 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16298 };
16299
16300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
16301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16303 {
16304 arg2 = wxString_in_helper(obj1);
16305 if (arg2 == NULL) SWIG_fail;
16306 temp2 = true;
16307 }
16308 {
16309 arg3 = wxString_in_helper(obj2);
16310 if (arg3 == NULL) SWIG_fail;
16311 temp3 = true;
16312 }
16313 {
16314 PyThreadState* __tstate = wxPyBeginAllowThreads();
16315 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
16316
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 {
16321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16322 }
16323 {
16324 if (temp2)
16325 delete arg2;
16326 }
16327 {
16328 if (temp3)
16329 delete arg3;
16330 }
16331 return resultobj;
16332 fail:
16333 {
16334 if (temp2)
16335 delete arg2;
16336 }
16337 {
16338 if (temp3)
16339 delete arg3;
16340 }
16341 return NULL;
16342 }
16343
16344
16345 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
16346 PyObject *resultobj;
16347 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16348 wxString *arg2 = 0 ;
16349 bool arg3 = (bool) true ;
16350 bool result;
16351 bool temp2 = false ;
16352 PyObject * obj0 = 0 ;
16353 PyObject * obj1 = 0 ;
16354 PyObject * obj2 = 0 ;
16355 char *kwnames[] = {
16356 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
16357 };
16358
16359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16362 {
16363 arg2 = wxString_in_helper(obj1);
16364 if (arg2 == NULL) SWIG_fail;
16365 temp2 = true;
16366 }
16367 if (obj2) {
16368 arg3 = (bool)SWIG_As_bool(obj2);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 {
16372 PyThreadState* __tstate = wxPyBeginAllowThreads();
16373 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16374
16375 wxPyEndAllowThreads(__tstate);
16376 if (PyErr_Occurred()) SWIG_fail;
16377 }
16378 {
16379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16380 }
16381 {
16382 if (temp2)
16383 delete arg2;
16384 }
16385 return resultobj;
16386 fail:
16387 {
16388 if (temp2)
16389 delete arg2;
16390 }
16391 return NULL;
16392 }
16393
16394
16395 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16396 PyObject *resultobj;
16397 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16398 wxString *arg2 = 0 ;
16399 bool result;
16400 bool temp2 = false ;
16401 PyObject * obj0 = 0 ;
16402 PyObject * obj1 = 0 ;
16403 char *kwnames[] = {
16404 (char *) "self",(char *) "key", NULL
16405 };
16406
16407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16410 {
16411 arg2 = wxString_in_helper(obj1);
16412 if (arg2 == NULL) SWIG_fail;
16413 temp2 = true;
16414 }
16415 {
16416 PyThreadState* __tstate = wxPyBeginAllowThreads();
16417 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16418
16419 wxPyEndAllowThreads(__tstate);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 {
16423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16424 }
16425 {
16426 if (temp2)
16427 delete arg2;
16428 }
16429 return resultobj;
16430 fail:
16431 {
16432 if (temp2)
16433 delete arg2;
16434 }
16435 return NULL;
16436 }
16437
16438
16439 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
16440 PyObject *resultobj;
16441 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16442 bool result;
16443 PyObject * obj0 = 0 ;
16444 char *kwnames[] = {
16445 (char *) "self", NULL
16446 };
16447
16448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16451 {
16452 PyThreadState* __tstate = wxPyBeginAllowThreads();
16453 result = (bool)(arg1)->DeleteAll();
16454
16455 wxPyEndAllowThreads(__tstate);
16456 if (PyErr_Occurred()) SWIG_fail;
16457 }
16458 {
16459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16460 }
16461 return resultobj;
16462 fail:
16463 return NULL;
16464 }
16465
16466
16467 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16468 PyObject *resultobj;
16469 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16470 bool arg2 = (bool) true ;
16471 PyObject * obj0 = 0 ;
16472 PyObject * obj1 = 0 ;
16473 char *kwnames[] = {
16474 (char *) "self",(char *) "doIt", NULL
16475 };
16476
16477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16480 if (obj1) {
16481 arg2 = (bool)SWIG_As_bool(obj1);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 (arg1)->SetExpandEnvVars(arg2);
16487
16488 wxPyEndAllowThreads(__tstate);
16489 if (PyErr_Occurred()) SWIG_fail;
16490 }
16491 Py_INCREF(Py_None); resultobj = Py_None;
16492 return resultobj;
16493 fail:
16494 return NULL;
16495 }
16496
16497
16498 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16499 PyObject *resultobj;
16500 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16501 bool result;
16502 PyObject * obj0 = 0 ;
16503 char *kwnames[] = {
16504 (char *) "self", NULL
16505 };
16506
16507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16510 {
16511 PyThreadState* __tstate = wxPyBeginAllowThreads();
16512 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16513
16514 wxPyEndAllowThreads(__tstate);
16515 if (PyErr_Occurred()) SWIG_fail;
16516 }
16517 {
16518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16519 }
16520 return resultobj;
16521 fail:
16522 return NULL;
16523 }
16524
16525
16526 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16527 PyObject *resultobj;
16528 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16529 bool arg2 = (bool) true ;
16530 PyObject * obj0 = 0 ;
16531 PyObject * obj1 = 0 ;
16532 char *kwnames[] = {
16533 (char *) "self",(char *) "doIt", NULL
16534 };
16535
16536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16539 if (obj1) {
16540 arg2 = (bool)SWIG_As_bool(obj1);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 {
16544 PyThreadState* __tstate = wxPyBeginAllowThreads();
16545 (arg1)->SetRecordDefaults(arg2);
16546
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 Py_INCREF(Py_None); resultobj = Py_None;
16551 return resultobj;
16552 fail:
16553 return NULL;
16554 }
16555
16556
16557 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj;
16559 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16560 bool result;
16561 PyObject * obj0 = 0 ;
16562 char *kwnames[] = {
16563 (char *) "self", NULL
16564 };
16565
16566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
16571 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16572
16573 wxPyEndAllowThreads(__tstate);
16574 if (PyErr_Occurred()) SWIG_fail;
16575 }
16576 {
16577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16578 }
16579 return resultobj;
16580 fail:
16581 return NULL;
16582 }
16583
16584
16585 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj;
16587 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16588 wxString *arg2 = 0 ;
16589 wxString result;
16590 bool temp2 = false ;
16591 PyObject * obj0 = 0 ;
16592 PyObject * obj1 = 0 ;
16593 char *kwnames[] = {
16594 (char *) "self",(char *) "str", NULL
16595 };
16596
16597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16600 {
16601 arg2 = wxString_in_helper(obj1);
16602 if (arg2 == NULL) SWIG_fail;
16603 temp2 = true;
16604 }
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16608
16609 wxPyEndAllowThreads(__tstate);
16610 if (PyErr_Occurred()) SWIG_fail;
16611 }
16612 {
16613 #if wxUSE_UNICODE
16614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16615 #else
16616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16617 #endif
16618 }
16619 {
16620 if (temp2)
16621 delete arg2;
16622 }
16623 return resultobj;
16624 fail:
16625 {
16626 if (temp2)
16627 delete arg2;
16628 }
16629 return NULL;
16630 }
16631
16632
16633 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16634 PyObject *resultobj;
16635 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16636 wxString result;
16637 PyObject * obj0 = 0 ;
16638 char *kwnames[] = {
16639 (char *) "self", NULL
16640 };
16641
16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16645 {
16646 PyThreadState* __tstate = wxPyBeginAllowThreads();
16647 result = ((wxConfigBase const *)arg1)->GetAppName();
16648
16649 wxPyEndAllowThreads(__tstate);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 }
16652 {
16653 #if wxUSE_UNICODE
16654 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16655 #else
16656 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16657 #endif
16658 }
16659 return resultobj;
16660 fail:
16661 return NULL;
16662 }
16663
16664
16665 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16666 PyObject *resultobj;
16667 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16668 wxString result;
16669 PyObject * obj0 = 0 ;
16670 char *kwnames[] = {
16671 (char *) "self", NULL
16672 };
16673
16674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 result = ((wxConfigBase const *)arg1)->GetVendorName();
16680
16681 wxPyEndAllowThreads(__tstate);
16682 if (PyErr_Occurred()) SWIG_fail;
16683 }
16684 {
16685 #if wxUSE_UNICODE
16686 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16687 #else
16688 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16689 #endif
16690 }
16691 return resultobj;
16692 fail:
16693 return NULL;
16694 }
16695
16696
16697 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16698 PyObject *resultobj;
16699 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16700 wxString *arg2 = 0 ;
16701 bool temp2 = false ;
16702 PyObject * obj0 = 0 ;
16703 PyObject * obj1 = 0 ;
16704 char *kwnames[] = {
16705 (char *) "self",(char *) "appName", NULL
16706 };
16707
16708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16711 {
16712 arg2 = wxString_in_helper(obj1);
16713 if (arg2 == NULL) SWIG_fail;
16714 temp2 = true;
16715 }
16716 {
16717 PyThreadState* __tstate = wxPyBeginAllowThreads();
16718 (arg1)->SetAppName((wxString const &)*arg2);
16719
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 Py_INCREF(Py_None); resultobj = Py_None;
16724 {
16725 if (temp2)
16726 delete arg2;
16727 }
16728 return resultobj;
16729 fail:
16730 {
16731 if (temp2)
16732 delete arg2;
16733 }
16734 return NULL;
16735 }
16736
16737
16738 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16739 PyObject *resultobj;
16740 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16741 wxString *arg2 = 0 ;
16742 bool temp2 = false ;
16743 PyObject * obj0 = 0 ;
16744 PyObject * obj1 = 0 ;
16745 char *kwnames[] = {
16746 (char *) "self",(char *) "vendorName", NULL
16747 };
16748
16749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16752 {
16753 arg2 = wxString_in_helper(obj1);
16754 if (arg2 == NULL) SWIG_fail;
16755 temp2 = true;
16756 }
16757 {
16758 PyThreadState* __tstate = wxPyBeginAllowThreads();
16759 (arg1)->SetVendorName((wxString const &)*arg2);
16760
16761 wxPyEndAllowThreads(__tstate);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 Py_INCREF(Py_None); resultobj = Py_None;
16765 {
16766 if (temp2)
16767 delete arg2;
16768 }
16769 return resultobj;
16770 fail:
16771 {
16772 if (temp2)
16773 delete arg2;
16774 }
16775 return NULL;
16776 }
16777
16778
16779 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16780 PyObject *resultobj;
16781 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16782 long arg2 ;
16783 PyObject * obj0 = 0 ;
16784 PyObject * obj1 = 0 ;
16785 char *kwnames[] = {
16786 (char *) "self",(char *) "style", NULL
16787 };
16788
16789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16792 arg2 = (long)SWIG_As_long(obj1);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
16796 (arg1)->SetStyle(arg2);
16797
16798 wxPyEndAllowThreads(__tstate);
16799 if (PyErr_Occurred()) SWIG_fail;
16800 }
16801 Py_INCREF(Py_None); resultobj = Py_None;
16802 return resultobj;
16803 fail:
16804 return NULL;
16805 }
16806
16807
16808 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16809 PyObject *resultobj;
16810 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16811 long result;
16812 PyObject * obj0 = 0 ;
16813 char *kwnames[] = {
16814 (char *) "self", NULL
16815 };
16816
16817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16820 {
16821 PyThreadState* __tstate = wxPyBeginAllowThreads();
16822 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16823
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 resultobj = SWIG_From_long((long)result);
16828 return resultobj;
16829 fail:
16830 return NULL;
16831 }
16832
16833
16834 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
16835 PyObject *obj;
16836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16837 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16838 Py_INCREF(obj);
16839 return Py_BuildValue((char *)"");
16840 }
16841 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16842 PyObject *resultobj;
16843 wxString const &arg1_defvalue = wxPyEmptyString ;
16844 wxString *arg1 = (wxString *) &arg1_defvalue ;
16845 wxString const &arg2_defvalue = wxPyEmptyString ;
16846 wxString *arg2 = (wxString *) &arg2_defvalue ;
16847 wxString const &arg3_defvalue = wxPyEmptyString ;
16848 wxString *arg3 = (wxString *) &arg3_defvalue ;
16849 wxString const &arg4_defvalue = wxPyEmptyString ;
16850 wxString *arg4 = (wxString *) &arg4_defvalue ;
16851 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16852 wxConfig *result;
16853 bool temp1 = false ;
16854 bool temp2 = false ;
16855 bool temp3 = false ;
16856 bool temp4 = false ;
16857 PyObject * obj0 = 0 ;
16858 PyObject * obj1 = 0 ;
16859 PyObject * obj2 = 0 ;
16860 PyObject * obj3 = 0 ;
16861 PyObject * obj4 = 0 ;
16862 char *kwnames[] = {
16863 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16864 };
16865
16866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16867 if (obj0) {
16868 {
16869 arg1 = wxString_in_helper(obj0);
16870 if (arg1 == NULL) SWIG_fail;
16871 temp1 = true;
16872 }
16873 }
16874 if (obj1) {
16875 {
16876 arg2 = wxString_in_helper(obj1);
16877 if (arg2 == NULL) SWIG_fail;
16878 temp2 = true;
16879 }
16880 }
16881 if (obj2) {
16882 {
16883 arg3 = wxString_in_helper(obj2);
16884 if (arg3 == NULL) SWIG_fail;
16885 temp3 = true;
16886 }
16887 }
16888 if (obj3) {
16889 {
16890 arg4 = wxString_in_helper(obj3);
16891 if (arg4 == NULL) SWIG_fail;
16892 temp4 = true;
16893 }
16894 }
16895 if (obj4) {
16896 arg5 = (long)SWIG_As_long(obj4);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16902
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16907 {
16908 if (temp1)
16909 delete arg1;
16910 }
16911 {
16912 if (temp2)
16913 delete arg2;
16914 }
16915 {
16916 if (temp3)
16917 delete arg3;
16918 }
16919 {
16920 if (temp4)
16921 delete arg4;
16922 }
16923 return resultobj;
16924 fail:
16925 {
16926 if (temp1)
16927 delete arg1;
16928 }
16929 {
16930 if (temp2)
16931 delete arg2;
16932 }
16933 {
16934 if (temp3)
16935 delete arg3;
16936 }
16937 {
16938 if (temp4)
16939 delete arg4;
16940 }
16941 return NULL;
16942 }
16943
16944
16945 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16946 PyObject *resultobj;
16947 wxConfig *arg1 = (wxConfig *) 0 ;
16948 PyObject * obj0 = 0 ;
16949 char *kwnames[] = {
16950 (char *) "self", NULL
16951 };
16952
16953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 delete arg1;
16959
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 Py_INCREF(Py_None); resultobj = Py_None;
16964 return resultobj;
16965 fail:
16966 return NULL;
16967 }
16968
16969
16970 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
16971 PyObject *obj;
16972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16973 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16974 Py_INCREF(obj);
16975 return Py_BuildValue((char *)"");
16976 }
16977 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16978 PyObject *resultobj;
16979 wxString const &arg1_defvalue = wxPyEmptyString ;
16980 wxString *arg1 = (wxString *) &arg1_defvalue ;
16981 wxString const &arg2_defvalue = wxPyEmptyString ;
16982 wxString *arg2 = (wxString *) &arg2_defvalue ;
16983 wxString const &arg3_defvalue = wxPyEmptyString ;
16984 wxString *arg3 = (wxString *) &arg3_defvalue ;
16985 wxString const &arg4_defvalue = wxPyEmptyString ;
16986 wxString *arg4 = (wxString *) &arg4_defvalue ;
16987 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16988 wxFileConfig *result;
16989 bool temp1 = false ;
16990 bool temp2 = false ;
16991 bool temp3 = false ;
16992 bool temp4 = false ;
16993 PyObject * obj0 = 0 ;
16994 PyObject * obj1 = 0 ;
16995 PyObject * obj2 = 0 ;
16996 PyObject * obj3 = 0 ;
16997 PyObject * obj4 = 0 ;
16998 char *kwnames[] = {
16999 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
17000 };
17001
17002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17003 if (obj0) {
17004 {
17005 arg1 = wxString_in_helper(obj0);
17006 if (arg1 == NULL) SWIG_fail;
17007 temp1 = true;
17008 }
17009 }
17010 if (obj1) {
17011 {
17012 arg2 = wxString_in_helper(obj1);
17013 if (arg2 == NULL) SWIG_fail;
17014 temp2 = true;
17015 }
17016 }
17017 if (obj2) {
17018 {
17019 arg3 = wxString_in_helper(obj2);
17020 if (arg3 == NULL) SWIG_fail;
17021 temp3 = true;
17022 }
17023 }
17024 if (obj3) {
17025 {
17026 arg4 = wxString_in_helper(obj3);
17027 if (arg4 == NULL) SWIG_fail;
17028 temp4 = true;
17029 }
17030 }
17031 if (obj4) {
17032 arg5 = (long)SWIG_As_long(obj4);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
17037 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
17038
17039 wxPyEndAllowThreads(__tstate);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 }
17042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
17043 {
17044 if (temp1)
17045 delete arg1;
17046 }
17047 {
17048 if (temp2)
17049 delete arg2;
17050 }
17051 {
17052 if (temp3)
17053 delete arg3;
17054 }
17055 {
17056 if (temp4)
17057 delete arg4;
17058 }
17059 return resultobj;
17060 fail:
17061 {
17062 if (temp1)
17063 delete arg1;
17064 }
17065 {
17066 if (temp2)
17067 delete arg2;
17068 }
17069 {
17070 if (temp3)
17071 delete arg3;
17072 }
17073 {
17074 if (temp4)
17075 delete arg4;
17076 }
17077 return NULL;
17078 }
17079
17080
17081 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
17082 PyObject *resultobj;
17083 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
17084 PyObject * obj0 = 0 ;
17085 char *kwnames[] = {
17086 (char *) "self", NULL
17087 };
17088
17089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
17090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
17091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 delete arg1;
17095
17096 wxPyEndAllowThreads(__tstate);
17097 if (PyErr_Occurred()) SWIG_fail;
17098 }
17099 Py_INCREF(Py_None); resultobj = Py_None;
17100 return resultobj;
17101 fail:
17102 return NULL;
17103 }
17104
17105
17106 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
17107 PyObject *obj;
17108 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17109 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
17110 Py_INCREF(obj);
17111 return Py_BuildValue((char *)"");
17112 }
17113 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
17114 PyObject *resultobj;
17115 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
17116 wxString *arg2 = 0 ;
17117 wxConfigPathChanger *result;
17118 bool temp2 = false ;
17119 PyObject * obj0 = 0 ;
17120 PyObject * obj1 = 0 ;
17121 char *kwnames[] = {
17122 (char *) "config",(char *) "entry", NULL
17123 };
17124
17125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
17126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
17127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17128 {
17129 arg2 = wxString_in_helper(obj1);
17130 if (arg2 == NULL) SWIG_fail;
17131 temp2 = true;
17132 }
17133 {
17134 PyThreadState* __tstate = wxPyBeginAllowThreads();
17135 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
17136
17137 wxPyEndAllowThreads(__tstate);
17138 if (PyErr_Occurred()) SWIG_fail;
17139 }
17140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
17141 {
17142 if (temp2)
17143 delete arg2;
17144 }
17145 return resultobj;
17146 fail:
17147 {
17148 if (temp2)
17149 delete arg2;
17150 }
17151 return NULL;
17152 }
17153
17154
17155 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
17156 PyObject *resultobj;
17157 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
17158 PyObject * obj0 = 0 ;
17159 char *kwnames[] = {
17160 (char *) "self", NULL
17161 };
17162
17163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
17164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
17165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17166 {
17167 PyThreadState* __tstate = wxPyBeginAllowThreads();
17168 delete arg1;
17169
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 Py_INCREF(Py_None); resultobj = Py_None;
17174 return resultobj;
17175 fail:
17176 return NULL;
17177 }
17178
17179
17180 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
17181 PyObject *resultobj;
17182 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
17183 wxString *result;
17184 PyObject * obj0 = 0 ;
17185 char *kwnames[] = {
17186 (char *) "self", NULL
17187 };
17188
17189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
17190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
17191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17192 {
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 {
17195 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
17196 result = (wxString *) &_result_ref;
17197 }
17198
17199 wxPyEndAllowThreads(__tstate);
17200 if (PyErr_Occurred()) SWIG_fail;
17201 }
17202 {
17203 #if wxUSE_UNICODE
17204 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17205 #else
17206 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17207 #endif
17208 }
17209 return resultobj;
17210 fail:
17211 return NULL;
17212 }
17213
17214
17215 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
17216 PyObject *obj;
17217 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17218 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
17219 Py_INCREF(obj);
17220 return Py_BuildValue((char *)"");
17221 }
17222 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
17223 PyObject *resultobj;
17224 wxString *arg1 = 0 ;
17225 wxString result;
17226 bool temp1 = false ;
17227 PyObject * obj0 = 0 ;
17228 char *kwnames[] = {
17229 (char *) "sz", NULL
17230 };
17231
17232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
17233 {
17234 arg1 = wxString_in_helper(obj0);
17235 if (arg1 == NULL) SWIG_fail;
17236 temp1 = true;
17237 }
17238 {
17239 PyThreadState* __tstate = wxPyBeginAllowThreads();
17240 result = wxExpandEnvVars((wxString const &)*arg1);
17241
17242 wxPyEndAllowThreads(__tstate);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 }
17245 {
17246 #if wxUSE_UNICODE
17247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17248 #else
17249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17250 #endif
17251 }
17252 {
17253 if (temp1)
17254 delete arg1;
17255 }
17256 return resultobj;
17257 fail:
17258 {
17259 if (temp1)
17260 delete arg1;
17261 }
17262 return NULL;
17263 }
17264
17265
17266 static int _wrap_DateFormatStr_set(PyObject *) {
17267 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
17268 return 1;
17269 }
17270
17271
17272 static PyObject *_wrap_DateFormatStr_get() {
17273 PyObject *pyobj;
17274
17275 {
17276 #if wxUSE_UNICODE
17277 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17278 #else
17279 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17280 #endif
17281 }
17282 return pyobj;
17283 }
17284
17285
17286 static int _wrap_TimeSpanFormatStr_set(PyObject *) {
17287 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
17288 return 1;
17289 }
17290
17291
17292 static PyObject *_wrap_TimeSpanFormatStr_get() {
17293 PyObject *pyobj;
17294
17295 {
17296 #if wxUSE_UNICODE
17297 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17298 #else
17299 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17300 #endif
17301 }
17302 return pyobj;
17303 }
17304
17305
17306 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17307 PyObject *resultobj;
17308 int arg1 ;
17309 PyObject * obj0 = 0 ;
17310 char *kwnames[] = {
17311 (char *) "country", NULL
17312 };
17313
17314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
17315 arg1 = (int)SWIG_As_int(obj0);
17316 if (PyErr_Occurred()) SWIG_fail;
17317 {
17318 PyThreadState* __tstate = wxPyBeginAllowThreads();
17319 wxDateTime::SetCountry((wxDateTime::Country )arg1);
17320
17321 wxPyEndAllowThreads(__tstate);
17322 if (PyErr_Occurred()) SWIG_fail;
17323 }
17324 Py_INCREF(Py_None); resultobj = Py_None;
17325 return resultobj;
17326 fail:
17327 return NULL;
17328 }
17329
17330
17331 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17332 PyObject *resultobj;
17333 int result;
17334 char *kwnames[] = {
17335 NULL
17336 };
17337
17338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
17339 {
17340 PyThreadState* __tstate = wxPyBeginAllowThreads();
17341 result = (int)wxDateTime::GetCountry();
17342
17343 wxPyEndAllowThreads(__tstate);
17344 if (PyErr_Occurred()) SWIG_fail;
17345 }
17346 resultobj = SWIG_From_int((int)result);
17347 return resultobj;
17348 fail:
17349 return NULL;
17350 }
17351
17352
17353 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17354 PyObject *resultobj;
17355 int arg1 = (int) wxDateTime::Country_Default ;
17356 bool result;
17357 PyObject * obj0 = 0 ;
17358 char *kwnames[] = {
17359 (char *) "country", NULL
17360 };
17361
17362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17363 if (obj0) {
17364 arg1 = (int)SWIG_As_int(obj0);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17370
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17376 }
17377 return resultobj;
17378 fail:
17379 return NULL;
17380 }
17381
17382
17383 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
17384 PyObject *resultobj;
17385 int arg1 = (int) wxDateTime::Gregorian ;
17386 int result;
17387 PyObject * obj0 = 0 ;
17388 char *kwnames[] = {
17389 (char *) "cal", NULL
17390 };
17391
17392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17393 if (obj0) {
17394 arg1 = (int)SWIG_As_int(obj0);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
17397 {
17398 PyThreadState* __tstate = wxPyBeginAllowThreads();
17399 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17400
17401 wxPyEndAllowThreads(__tstate);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 }
17404 resultobj = SWIG_From_int((int)result);
17405 return resultobj;
17406 fail:
17407 return NULL;
17408 }
17409
17410
17411 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
17412 PyObject *resultobj;
17413 int arg1 ;
17414 int result;
17415 PyObject * obj0 = 0 ;
17416 char *kwnames[] = {
17417 (char *) "year", NULL
17418 };
17419
17420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
17421 arg1 = (int)SWIG_As_int(obj0);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 {
17424 PyThreadState* __tstate = wxPyBeginAllowThreads();
17425 result = (int)wxDateTime::ConvertYearToBC(arg1);
17426
17427 wxPyEndAllowThreads(__tstate);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 }
17430 resultobj = SWIG_From_int((int)result);
17431 return resultobj;
17432 fail:
17433 return NULL;
17434 }
17435
17436
17437 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17438 PyObject *resultobj;
17439 int arg1 = (int) wxDateTime::Gregorian ;
17440 int result;
17441 PyObject * obj0 = 0 ;
17442 char *kwnames[] = {
17443 (char *) "cal", NULL
17444 };
17445
17446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17447 if (obj0) {
17448 arg1 = (int)SWIG_As_int(obj0);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
17451 {
17452 PyThreadState* __tstate = wxPyBeginAllowThreads();
17453 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17454
17455 wxPyEndAllowThreads(__tstate);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 resultobj = SWIG_From_int((int)result);
17459 return resultobj;
17460 fail:
17461 return NULL;
17462 }
17463
17464
17465 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
17466 PyObject *resultobj;
17467 int arg1 = (int) wxDateTime::Inv_Year ;
17468 int arg2 = (int) wxDateTime::Gregorian ;
17469 bool result;
17470 PyObject * obj0 = 0 ;
17471 PyObject * obj1 = 0 ;
17472 char *kwnames[] = {
17473 (char *) "year",(char *) "cal", NULL
17474 };
17475
17476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17477 if (obj0) {
17478 arg1 = (int)SWIG_As_int(obj0);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 if (obj1) {
17482 arg2 = (int)SWIG_As_int(obj1);
17483 if (PyErr_Occurred()) SWIG_fail;
17484 }
17485 {
17486 PyThreadState* __tstate = wxPyBeginAllowThreads();
17487 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17488
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 {
17493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17494 }
17495 return resultobj;
17496 fail:
17497 return NULL;
17498 }
17499
17500
17501 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
17502 PyObject *resultobj;
17503 int arg1 = (int) wxDateTime::Inv_Year ;
17504 int result;
17505 PyObject * obj0 = 0 ;
17506 char *kwnames[] = {
17507 (char *) "year", NULL
17508 };
17509
17510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17511 if (obj0) {
17512 arg1 = (int)SWIG_As_int(obj0);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 {
17516 PyThreadState* __tstate = wxPyBeginAllowThreads();
17517 result = (int)wxDateTime::GetCentury(arg1);
17518
17519 wxPyEndAllowThreads(__tstate);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 }
17522 resultobj = SWIG_From_int((int)result);
17523 return resultobj;
17524 fail:
17525 return NULL;
17526 }
17527
17528
17529 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
17530 PyObject *resultobj;
17531 int arg1 ;
17532 int arg2 = (int) wxDateTime::Gregorian ;
17533 int result;
17534 PyObject * obj0 = 0 ;
17535 PyObject * obj1 = 0 ;
17536 char *kwnames[] = {
17537 (char *) "year",(char *) "cal", NULL
17538 };
17539
17540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17541 arg1 = (int)SWIG_As_int(obj0);
17542 if (PyErr_Occurred()) SWIG_fail;
17543 if (obj1) {
17544 arg2 = (int)SWIG_As_int(obj1);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
17547 {
17548 PyThreadState* __tstate = wxPyBeginAllowThreads();
17549 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17550
17551 wxPyEndAllowThreads(__tstate);
17552 if (PyErr_Occurred()) SWIG_fail;
17553 }
17554 resultobj = SWIG_From_int((int)result);
17555 return resultobj;
17556 fail:
17557 return NULL;
17558 }
17559
17560
17561 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17562 PyObject *resultobj;
17563 int arg1 ;
17564 int arg2 = (int) wxDateTime::Inv_Year ;
17565 int arg3 = (int) wxDateTime::Gregorian ;
17566 int result;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 PyObject * obj2 = 0 ;
17570 char *kwnames[] = {
17571 (char *) "month",(char *) "year",(char *) "cal", NULL
17572 };
17573
17574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17575 arg1 = (int)SWIG_As_int(obj0);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 if (obj1) {
17578 arg2 = (int)SWIG_As_int(obj1);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 if (obj2) {
17582 arg3 = (int)SWIG_As_int(obj2);
17583 if (PyErr_Occurred()) SWIG_fail;
17584 }
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17588
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 resultobj = SWIG_From_int((int)result);
17593 return resultobj;
17594 fail:
17595 return NULL;
17596 }
17597
17598
17599 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
17600 PyObject *resultobj;
17601 int arg1 ;
17602 int arg2 = (int) wxDateTime::Name_Full ;
17603 wxString result;
17604 PyObject * obj0 = 0 ;
17605 PyObject * obj1 = 0 ;
17606 char *kwnames[] = {
17607 (char *) "month",(char *) "flags", NULL
17608 };
17609
17610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17611 arg1 = (int)SWIG_As_int(obj0);
17612 if (PyErr_Occurred()) SWIG_fail;
17613 if (obj1) {
17614 arg2 = (int)SWIG_As_int(obj1);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 {
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17620
17621 wxPyEndAllowThreads(__tstate);
17622 if (PyErr_Occurred()) SWIG_fail;
17623 }
17624 {
17625 #if wxUSE_UNICODE
17626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17627 #else
17628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17629 #endif
17630 }
17631 return resultobj;
17632 fail:
17633 return NULL;
17634 }
17635
17636
17637 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj;
17639 int arg1 ;
17640 int arg2 = (int) wxDateTime::Name_Full ;
17641 wxString result;
17642 PyObject * obj0 = 0 ;
17643 PyObject * obj1 = 0 ;
17644 char *kwnames[] = {
17645 (char *) "weekday",(char *) "flags", NULL
17646 };
17647
17648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17649 arg1 = (int)SWIG_As_int(obj0);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 if (obj1) {
17652 arg2 = (int)SWIG_As_int(obj1);
17653 if (PyErr_Occurred()) SWIG_fail;
17654 }
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17658
17659 wxPyEndAllowThreads(__tstate);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 }
17662 {
17663 #if wxUSE_UNICODE
17664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17665 #else
17666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17667 #endif
17668 }
17669 return resultobj;
17670 fail:
17671 return NULL;
17672 }
17673
17674
17675 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
17676 PyObject *resultobj;
17677 wxString *arg1 = (wxString *) 0 ;
17678 wxString *arg2 = (wxString *) 0 ;
17679 bool temp1 = false ;
17680 bool temp2 = false ;
17681 PyObject * obj0 = 0 ;
17682 PyObject * obj1 = 0 ;
17683 char *kwnames[] = {
17684 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17685 };
17686
17687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17688 {
17689 arg1 = wxString_in_helper(obj0);
17690 if (arg1 == NULL) SWIG_fail;
17691 temp1 = true;
17692 }
17693 {
17694 arg2 = wxString_in_helper(obj1);
17695 if (arg2 == NULL) SWIG_fail;
17696 temp2 = true;
17697 }
17698 {
17699 PyThreadState* __tstate = wxPyBeginAllowThreads();
17700 wxDateTime::GetAmPmStrings(arg1,arg2);
17701
17702 wxPyEndAllowThreads(__tstate);
17703 if (PyErr_Occurred()) SWIG_fail;
17704 }
17705 Py_INCREF(Py_None); resultobj = Py_None;
17706 {
17707 if (temp1)
17708 delete arg1;
17709 }
17710 {
17711 if (temp2)
17712 delete arg2;
17713 }
17714 return resultobj;
17715 fail:
17716 {
17717 if (temp1)
17718 delete arg1;
17719 }
17720 {
17721 if (temp2)
17722 delete arg2;
17723 }
17724 return NULL;
17725 }
17726
17727
17728 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
17729 PyObject *resultobj;
17730 int arg1 = (int) wxDateTime::Inv_Year ;
17731 int arg2 = (int) wxDateTime::Country_Default ;
17732 bool result;
17733 PyObject * obj0 = 0 ;
17734 PyObject * obj1 = 0 ;
17735 char *kwnames[] = {
17736 (char *) "year",(char *) "country", NULL
17737 };
17738
17739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17740 if (obj0) {
17741 arg1 = (int)SWIG_As_int(obj0);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 if (obj1) {
17745 arg2 = (int)SWIG_As_int(obj1);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 {
17749 PyThreadState* __tstate = wxPyBeginAllowThreads();
17750 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17751
17752 wxPyEndAllowThreads(__tstate);
17753 if (PyErr_Occurred()) SWIG_fail;
17754 }
17755 {
17756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17757 }
17758 return resultobj;
17759 fail:
17760 return NULL;
17761 }
17762
17763
17764 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
17765 PyObject *resultobj;
17766 int arg1 = (int) wxDateTime::Inv_Year ;
17767 int arg2 = (int) wxDateTime::Country_Default ;
17768 wxDateTime result;
17769 PyObject * obj0 = 0 ;
17770 PyObject * obj1 = 0 ;
17771 char *kwnames[] = {
17772 (char *) "year",(char *) "country", NULL
17773 };
17774
17775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17776 if (obj0) {
17777 arg1 = (int)SWIG_As_int(obj0);
17778 if (PyErr_Occurred()) SWIG_fail;
17779 }
17780 if (obj1) {
17781 arg2 = (int)SWIG_As_int(obj1);
17782 if (PyErr_Occurred()) SWIG_fail;
17783 }
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17787
17788 wxPyEndAllowThreads(__tstate);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 {
17792 wxDateTime * resultptr;
17793 resultptr = new wxDateTime((wxDateTime &) result);
17794 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17795 }
17796 return resultobj;
17797 fail:
17798 return NULL;
17799 }
17800
17801
17802 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
17803 PyObject *resultobj;
17804 int arg1 = (int) wxDateTime::Inv_Year ;
17805 int arg2 = (int) wxDateTime::Country_Default ;
17806 wxDateTime result;
17807 PyObject * obj0 = 0 ;
17808 PyObject * obj1 = 0 ;
17809 char *kwnames[] = {
17810 (char *) "year",(char *) "country", NULL
17811 };
17812
17813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17814 if (obj0) {
17815 arg1 = (int)SWIG_As_int(obj0);
17816 if (PyErr_Occurred()) SWIG_fail;
17817 }
17818 if (obj1) {
17819 arg2 = (int)SWIG_As_int(obj1);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 {
17823 PyThreadState* __tstate = wxPyBeginAllowThreads();
17824 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17825
17826 wxPyEndAllowThreads(__tstate);
17827 if (PyErr_Occurred()) SWIG_fail;
17828 }
17829 {
17830 wxDateTime * resultptr;
17831 resultptr = new wxDateTime((wxDateTime &) result);
17832 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17833 }
17834 return resultobj;
17835 fail:
17836 return NULL;
17837 }
17838
17839
17840 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
17841 PyObject *resultobj;
17842 wxDateTime result;
17843 char *kwnames[] = {
17844 NULL
17845 };
17846
17847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17848 {
17849 PyThreadState* __tstate = wxPyBeginAllowThreads();
17850 result = wxDateTime::Now();
17851
17852 wxPyEndAllowThreads(__tstate);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 }
17855 {
17856 wxDateTime * resultptr;
17857 resultptr = new wxDateTime((wxDateTime &) result);
17858 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17859 }
17860 return resultobj;
17861 fail:
17862 return NULL;
17863 }
17864
17865
17866 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj;
17868 wxDateTime result;
17869 char *kwnames[] = {
17870 NULL
17871 };
17872
17873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17874 {
17875 PyThreadState* __tstate = wxPyBeginAllowThreads();
17876 result = wxDateTime::UNow();
17877
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 {
17882 wxDateTime * resultptr;
17883 resultptr = new wxDateTime((wxDateTime &) result);
17884 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17885 }
17886 return resultobj;
17887 fail:
17888 return NULL;
17889 }
17890
17891
17892 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
17893 PyObject *resultobj;
17894 wxDateTime result;
17895 char *kwnames[] = {
17896 NULL
17897 };
17898
17899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17900 {
17901 PyThreadState* __tstate = wxPyBeginAllowThreads();
17902 result = wxDateTime::Today();
17903
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 {
17908 wxDateTime * resultptr;
17909 resultptr = new wxDateTime((wxDateTime &) result);
17910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17911 }
17912 return resultobj;
17913 fail:
17914 return NULL;
17915 }
17916
17917
17918 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj;
17920 wxDateTime *result;
17921 char *kwnames[] = {
17922 NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 result = (wxDateTime *)new wxDateTime();
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 time_t arg1 ;
17943 wxDateTime *result;
17944 PyObject * obj0 = 0 ;
17945 char *kwnames[] = {
17946 (char *) "timet", NULL
17947 };
17948
17949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17950 arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 {
17953 PyThreadState* __tstate = wxPyBeginAllowThreads();
17954 result = (wxDateTime *)new wxDateTime(arg1);
17955
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17960 return resultobj;
17961 fail:
17962 return NULL;
17963 }
17964
17965
17966 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17967 PyObject *resultobj;
17968 double arg1 ;
17969 wxDateTime *result;
17970 PyObject * obj0 = 0 ;
17971 char *kwnames[] = {
17972 (char *) "jdn", NULL
17973 };
17974
17975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17976 arg1 = (double)SWIG_As_double(obj0);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 {
17979 PyThreadState* __tstate = wxPyBeginAllowThreads();
17980 result = (wxDateTime *)new wxDateTime(arg1);
17981
17982 wxPyEndAllowThreads(__tstate);
17983 if (PyErr_Occurred()) SWIG_fail;
17984 }
17985 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17986 return resultobj;
17987 fail:
17988 return NULL;
17989 }
17990
17991
17992 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17993 PyObject *resultobj;
17994 int arg1 ;
17995 int arg2 = (int) 0 ;
17996 int arg3 = (int) 0 ;
17997 int arg4 = (int) 0 ;
17998 wxDateTime *result;
17999 PyObject * obj0 = 0 ;
18000 PyObject * obj1 = 0 ;
18001 PyObject * obj2 = 0 ;
18002 PyObject * obj3 = 0 ;
18003 char *kwnames[] = {
18004 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18005 };
18006
18007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18008 arg1 = (int)SWIG_As_int(obj0);
18009 if (PyErr_Occurred()) SWIG_fail;
18010 if (obj1) {
18011 arg2 = (int)SWIG_As_int(obj1);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 if (obj2) {
18015 arg3 = (int)SWIG_As_int(obj2);
18016 if (PyErr_Occurred()) SWIG_fail;
18017 }
18018 if (obj3) {
18019 arg4 = (int)SWIG_As_int(obj3);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 {
18023 PyThreadState* __tstate = wxPyBeginAllowThreads();
18024 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
18025
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
18030 return resultobj;
18031 fail:
18032 return NULL;
18033 }
18034
18035
18036 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj;
18038 int arg1 ;
18039 int arg2 = (int) wxDateTime::Inv_Month ;
18040 int arg3 = (int) wxDateTime::Inv_Year ;
18041 int arg4 = (int) 0 ;
18042 int arg5 = (int) 0 ;
18043 int arg6 = (int) 0 ;
18044 int arg7 = (int) 0 ;
18045 wxDateTime *result;
18046 PyObject * obj0 = 0 ;
18047 PyObject * obj1 = 0 ;
18048 PyObject * obj2 = 0 ;
18049 PyObject * obj3 = 0 ;
18050 PyObject * obj4 = 0 ;
18051 PyObject * obj5 = 0 ;
18052 PyObject * obj6 = 0 ;
18053 char *kwnames[] = {
18054 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18055 };
18056
18057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18058 arg1 = (int)SWIG_As_int(obj0);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 if (obj1) {
18061 arg2 = (int)SWIG_As_int(obj1);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 if (obj2) {
18065 arg3 = (int)SWIG_As_int(obj2);
18066 if (PyErr_Occurred()) SWIG_fail;
18067 }
18068 if (obj3) {
18069 arg4 = (int)SWIG_As_int(obj3);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 if (obj4) {
18073 arg5 = (int)SWIG_As_int(obj4);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 if (obj5) {
18077 arg6 = (int)SWIG_As_int(obj5);
18078 if (PyErr_Occurred()) SWIG_fail;
18079 }
18080 if (obj6) {
18081 arg7 = (int)SWIG_As_int(obj6);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
18087
18088 wxPyEndAllowThreads(__tstate);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
18092 return resultobj;
18093 fail:
18094 return NULL;
18095 }
18096
18097
18098 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj;
18100 wxDateTime *arg1 = (wxDateTime *) 0 ;
18101 PyObject * obj0 = 0 ;
18102 char *kwnames[] = {
18103 (char *) "self", NULL
18104 };
18105
18106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
18107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
18111 delete arg1;
18112
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 Py_INCREF(Py_None); resultobj = Py_None;
18117 return resultobj;
18118 fail:
18119 return NULL;
18120 }
18121
18122
18123 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj;
18125 wxDateTime *arg1 = (wxDateTime *) 0 ;
18126 wxDateTime *result;
18127 PyObject * obj0 = 0 ;
18128 char *kwnames[] = {
18129 (char *) "self", NULL
18130 };
18131
18132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
18133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 {
18138 wxDateTime &_result_ref = (arg1)->SetToCurrent();
18139 result = (wxDateTime *) &_result_ref;
18140 }
18141
18142 wxPyEndAllowThreads(__tstate);
18143 if (PyErr_Occurred()) SWIG_fail;
18144 }
18145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18146 return resultobj;
18147 fail:
18148 return NULL;
18149 }
18150
18151
18152 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
18153 PyObject *resultobj;
18154 wxDateTime *arg1 = (wxDateTime *) 0 ;
18155 time_t arg2 ;
18156 wxDateTime *result;
18157 PyObject * obj0 = 0 ;
18158 PyObject * obj1 = 0 ;
18159 char *kwnames[] = {
18160 (char *) "self",(char *) "timet", NULL
18161 };
18162
18163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
18164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18166 arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 {
18169 PyThreadState* __tstate = wxPyBeginAllowThreads();
18170 {
18171 wxDateTime &_result_ref = (arg1)->Set(arg2);
18172 result = (wxDateTime *) &_result_ref;
18173 }
18174
18175 wxPyEndAllowThreads(__tstate);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 }
18178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18179 return resultobj;
18180 fail:
18181 return NULL;
18182 }
18183
18184
18185 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
18186 PyObject *resultobj;
18187 wxDateTime *arg1 = (wxDateTime *) 0 ;
18188 double arg2 ;
18189 wxDateTime *result;
18190 PyObject * obj0 = 0 ;
18191 PyObject * obj1 = 0 ;
18192 char *kwnames[] = {
18193 (char *) "self",(char *) "jdn", NULL
18194 };
18195
18196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
18197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18199 arg2 = (double)SWIG_As_double(obj1);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 {
18204 wxDateTime &_result_ref = (arg1)->Set(arg2);
18205 result = (wxDateTime *) &_result_ref;
18206 }
18207
18208 wxPyEndAllowThreads(__tstate);
18209 if (PyErr_Occurred()) SWIG_fail;
18210 }
18211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18212 return resultobj;
18213 fail:
18214 return NULL;
18215 }
18216
18217
18218 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
18219 PyObject *resultobj;
18220 wxDateTime *arg1 = (wxDateTime *) 0 ;
18221 int arg2 ;
18222 int arg3 = (int) 0 ;
18223 int arg4 = (int) 0 ;
18224 int arg5 = (int) 0 ;
18225 wxDateTime *result;
18226 PyObject * obj0 = 0 ;
18227 PyObject * obj1 = 0 ;
18228 PyObject * obj2 = 0 ;
18229 PyObject * obj3 = 0 ;
18230 PyObject * obj4 = 0 ;
18231 char *kwnames[] = {
18232 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18233 };
18234
18235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18238 arg2 = (int)SWIG_As_int(obj1);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 if (obj2) {
18241 arg3 = (int)SWIG_As_int(obj2);
18242 if (PyErr_Occurred()) SWIG_fail;
18243 }
18244 if (obj3) {
18245 arg4 = (int)SWIG_As_int(obj3);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 if (obj4) {
18249 arg5 = (int)SWIG_As_int(obj4);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 {
18255 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
18256 result = (wxDateTime *) &_result_ref;
18257 }
18258
18259 wxPyEndAllowThreads(__tstate);
18260 if (PyErr_Occurred()) SWIG_fail;
18261 }
18262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18263 return resultobj;
18264 fail:
18265 return NULL;
18266 }
18267
18268
18269 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18270 PyObject *resultobj;
18271 wxDateTime *arg1 = (wxDateTime *) 0 ;
18272 int arg2 ;
18273 int arg3 = (int) wxDateTime::Inv_Month ;
18274 int arg4 = (int) wxDateTime::Inv_Year ;
18275 int arg5 = (int) 0 ;
18276 int arg6 = (int) 0 ;
18277 int arg7 = (int) 0 ;
18278 int arg8 = (int) 0 ;
18279 wxDateTime *result;
18280 PyObject * obj0 = 0 ;
18281 PyObject * obj1 = 0 ;
18282 PyObject * obj2 = 0 ;
18283 PyObject * obj3 = 0 ;
18284 PyObject * obj4 = 0 ;
18285 PyObject * obj5 = 0 ;
18286 PyObject * obj6 = 0 ;
18287 PyObject * obj7 = 0 ;
18288 char *kwnames[] = {
18289 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18290 };
18291
18292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18295 arg2 = (int)SWIG_As_int(obj1);
18296 if (PyErr_Occurred()) SWIG_fail;
18297 if (obj2) {
18298 arg3 = (int)SWIG_As_int(obj2);
18299 if (PyErr_Occurred()) SWIG_fail;
18300 }
18301 if (obj3) {
18302 arg4 = (int)SWIG_As_int(obj3);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 if (obj4) {
18306 arg5 = (int)SWIG_As_int(obj4);
18307 if (PyErr_Occurred()) SWIG_fail;
18308 }
18309 if (obj5) {
18310 arg6 = (int)SWIG_As_int(obj5);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 if (obj6) {
18314 arg7 = (int)SWIG_As_int(obj6);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 }
18317 if (obj7) {
18318 arg8 = (int)SWIG_As_int(obj7);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 }
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 {
18324 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
18325 result = (wxDateTime *) &_result_ref;
18326 }
18327
18328 wxPyEndAllowThreads(__tstate);
18329 if (PyErr_Occurred()) SWIG_fail;
18330 }
18331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18332 return resultobj;
18333 fail:
18334 return NULL;
18335 }
18336
18337
18338 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj;
18340 wxDateTime *arg1 = (wxDateTime *) 0 ;
18341 wxDateTime *result;
18342 PyObject * obj0 = 0 ;
18343 char *kwnames[] = {
18344 (char *) "self", NULL
18345 };
18346
18347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
18348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18350 {
18351 PyThreadState* __tstate = wxPyBeginAllowThreads();
18352 {
18353 wxDateTime &_result_ref = (arg1)->ResetTime();
18354 result = (wxDateTime *) &_result_ref;
18355 }
18356
18357 wxPyEndAllowThreads(__tstate);
18358 if (PyErr_Occurred()) SWIG_fail;
18359 }
18360 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18361 return resultobj;
18362 fail:
18363 return NULL;
18364 }
18365
18366
18367 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
18368 PyObject *resultobj;
18369 wxDateTime *arg1 = (wxDateTime *) 0 ;
18370 int arg2 ;
18371 wxDateTime *result;
18372 PyObject * obj0 = 0 ;
18373 PyObject * obj1 = 0 ;
18374 char *kwnames[] = {
18375 (char *) "self",(char *) "year", NULL
18376 };
18377
18378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18381 arg2 = (int)SWIG_As_int(obj1);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 {
18384 PyThreadState* __tstate = wxPyBeginAllowThreads();
18385 {
18386 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18387 result = (wxDateTime *) &_result_ref;
18388 }
18389
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18394 return resultobj;
18395 fail:
18396 return NULL;
18397 }
18398
18399
18400 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
18401 PyObject *resultobj;
18402 wxDateTime *arg1 = (wxDateTime *) 0 ;
18403 int arg2 ;
18404 wxDateTime *result;
18405 PyObject * obj0 = 0 ;
18406 PyObject * obj1 = 0 ;
18407 char *kwnames[] = {
18408 (char *) "self",(char *) "month", NULL
18409 };
18410
18411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18414 arg2 = (int)SWIG_As_int(obj1);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 {
18419 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18420 result = (wxDateTime *) &_result_ref;
18421 }
18422
18423 wxPyEndAllowThreads(__tstate);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18427 return resultobj;
18428 fail:
18429 return NULL;
18430 }
18431
18432
18433 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
18434 PyObject *resultobj;
18435 wxDateTime *arg1 = (wxDateTime *) 0 ;
18436 int arg2 ;
18437 wxDateTime *result;
18438 PyObject * obj0 = 0 ;
18439 PyObject * obj1 = 0 ;
18440 char *kwnames[] = {
18441 (char *) "self",(char *) "day", NULL
18442 };
18443
18444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18447 arg2 = (int)SWIG_As_int(obj1);
18448 if (PyErr_Occurred()) SWIG_fail;
18449 {
18450 PyThreadState* __tstate = wxPyBeginAllowThreads();
18451 {
18452 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18453 result = (wxDateTime *) &_result_ref;
18454 }
18455
18456 wxPyEndAllowThreads(__tstate);
18457 if (PyErr_Occurred()) SWIG_fail;
18458 }
18459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18460 return resultobj;
18461 fail:
18462 return NULL;
18463 }
18464
18465
18466 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
18467 PyObject *resultobj;
18468 wxDateTime *arg1 = (wxDateTime *) 0 ;
18469 int arg2 ;
18470 wxDateTime *result;
18471 PyObject * obj0 = 0 ;
18472 PyObject * obj1 = 0 ;
18473 char *kwnames[] = {
18474 (char *) "self",(char *) "hour", NULL
18475 };
18476
18477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18480 arg2 = (int)SWIG_As_int(obj1);
18481 if (PyErr_Occurred()) SWIG_fail;
18482 {
18483 PyThreadState* __tstate = wxPyBeginAllowThreads();
18484 {
18485 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18486 result = (wxDateTime *) &_result_ref;
18487 }
18488
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18493 return resultobj;
18494 fail:
18495 return NULL;
18496 }
18497
18498
18499 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
18500 PyObject *resultobj;
18501 wxDateTime *arg1 = (wxDateTime *) 0 ;
18502 int arg2 ;
18503 wxDateTime *result;
18504 PyObject * obj0 = 0 ;
18505 PyObject * obj1 = 0 ;
18506 char *kwnames[] = {
18507 (char *) "self",(char *) "minute", NULL
18508 };
18509
18510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18513 arg2 = (int)SWIG_As_int(obj1);
18514 if (PyErr_Occurred()) SWIG_fail;
18515 {
18516 PyThreadState* __tstate = wxPyBeginAllowThreads();
18517 {
18518 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18519 result = (wxDateTime *) &_result_ref;
18520 }
18521
18522 wxPyEndAllowThreads(__tstate);
18523 if (PyErr_Occurred()) SWIG_fail;
18524 }
18525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18526 return resultobj;
18527 fail:
18528 return NULL;
18529 }
18530
18531
18532 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
18533 PyObject *resultobj;
18534 wxDateTime *arg1 = (wxDateTime *) 0 ;
18535 int arg2 ;
18536 wxDateTime *result;
18537 PyObject * obj0 = 0 ;
18538 PyObject * obj1 = 0 ;
18539 char *kwnames[] = {
18540 (char *) "self",(char *) "second", NULL
18541 };
18542
18543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18546 arg2 = (int)SWIG_As_int(obj1);
18547 if (PyErr_Occurred()) SWIG_fail;
18548 {
18549 PyThreadState* __tstate = wxPyBeginAllowThreads();
18550 {
18551 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18552 result = (wxDateTime *) &_result_ref;
18553 }
18554
18555 wxPyEndAllowThreads(__tstate);
18556 if (PyErr_Occurred()) SWIG_fail;
18557 }
18558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18559 return resultobj;
18560 fail:
18561 return NULL;
18562 }
18563
18564
18565 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
18566 PyObject *resultobj;
18567 wxDateTime *arg1 = (wxDateTime *) 0 ;
18568 int arg2 ;
18569 wxDateTime *result;
18570 PyObject * obj0 = 0 ;
18571 PyObject * obj1 = 0 ;
18572 char *kwnames[] = {
18573 (char *) "self",(char *) "millisecond", NULL
18574 };
18575
18576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18579 arg2 = (int)SWIG_As_int(obj1);
18580 if (PyErr_Occurred()) SWIG_fail;
18581 {
18582 PyThreadState* __tstate = wxPyBeginAllowThreads();
18583 {
18584 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18585 result = (wxDateTime *) &_result_ref;
18586 }
18587
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18592 return resultobj;
18593 fail:
18594 return NULL;
18595 }
18596
18597
18598 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18599 PyObject *resultobj;
18600 wxDateTime *arg1 = (wxDateTime *) 0 ;
18601 int arg2 ;
18602 int arg3 = (int) wxDateTime::Monday_First ;
18603 wxDateTime *result;
18604 PyObject * obj0 = 0 ;
18605 PyObject * obj1 = 0 ;
18606 PyObject * obj2 = 0 ;
18607 char *kwnames[] = {
18608 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18609 };
18610
18611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18614 arg2 = (int)SWIG_As_int(obj1);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 if (obj2) {
18617 arg3 = (int)SWIG_As_int(obj2);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 {
18621 PyThreadState* __tstate = wxPyBeginAllowThreads();
18622 {
18623 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18624 result = (wxDateTime *) &_result_ref;
18625 }
18626
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj;
18639 wxDateTime *arg1 = (wxDateTime *) 0 ;
18640 int arg2 ;
18641 int arg3 = (int) wxDateTime::Monday_First ;
18642 wxDateTime result;
18643 PyObject * obj0 = 0 ;
18644 PyObject * obj1 = 0 ;
18645 PyObject * obj2 = 0 ;
18646 char *kwnames[] = {
18647 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18648 };
18649
18650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18653 arg2 = (int)SWIG_As_int(obj1);
18654 if (PyErr_Occurred()) SWIG_fail;
18655 if (obj2) {
18656 arg3 = (int)SWIG_As_int(obj2);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 {
18660 PyThreadState* __tstate = wxPyBeginAllowThreads();
18661 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18662
18663 wxPyEndAllowThreads(__tstate);
18664 if (PyErr_Occurred()) SWIG_fail;
18665 }
18666 {
18667 wxDateTime * resultptr;
18668 resultptr = new wxDateTime((wxDateTime &) result);
18669 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18670 }
18671 return resultobj;
18672 fail:
18673 return NULL;
18674 }
18675
18676
18677 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18678 PyObject *resultobj;
18679 wxDateTime *arg1 = (wxDateTime *) 0 ;
18680 int arg2 ;
18681 wxDateTime *result;
18682 PyObject * obj0 = 0 ;
18683 PyObject * obj1 = 0 ;
18684 char *kwnames[] = {
18685 (char *) "self",(char *) "weekday", NULL
18686 };
18687
18688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18691 arg2 = (int)SWIG_As_int(obj1);
18692 if (PyErr_Occurred()) SWIG_fail;
18693 {
18694 PyThreadState* __tstate = wxPyBeginAllowThreads();
18695 {
18696 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18697 result = (wxDateTime *) &_result_ref;
18698 }
18699
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18704 return resultobj;
18705 fail:
18706 return NULL;
18707 }
18708
18709
18710 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18711 PyObject *resultobj;
18712 wxDateTime *arg1 = (wxDateTime *) 0 ;
18713 int arg2 ;
18714 wxDateTime result;
18715 PyObject * obj0 = 0 ;
18716 PyObject * obj1 = 0 ;
18717 char *kwnames[] = {
18718 (char *) "self",(char *) "weekday", NULL
18719 };
18720
18721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18724 arg2 = (int)SWIG_As_int(obj1);
18725 if (PyErr_Occurred()) SWIG_fail;
18726 {
18727 PyThreadState* __tstate = wxPyBeginAllowThreads();
18728 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18729
18730 wxPyEndAllowThreads(__tstate);
18731 if (PyErr_Occurred()) SWIG_fail;
18732 }
18733 {
18734 wxDateTime * resultptr;
18735 resultptr = new wxDateTime((wxDateTime &) result);
18736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18737 }
18738 return resultobj;
18739 fail:
18740 return NULL;
18741 }
18742
18743
18744 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18745 PyObject *resultobj;
18746 wxDateTime *arg1 = (wxDateTime *) 0 ;
18747 int arg2 ;
18748 wxDateTime *result;
18749 PyObject * obj0 = 0 ;
18750 PyObject * obj1 = 0 ;
18751 char *kwnames[] = {
18752 (char *) "self",(char *) "weekday", NULL
18753 };
18754
18755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18758 arg2 = (int)SWIG_As_int(obj1);
18759 if (PyErr_Occurred()) SWIG_fail;
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 {
18763 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18764 result = (wxDateTime *) &_result_ref;
18765 }
18766
18767 wxPyEndAllowThreads(__tstate);
18768 if (PyErr_Occurred()) SWIG_fail;
18769 }
18770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18771 return resultobj;
18772 fail:
18773 return NULL;
18774 }
18775
18776
18777 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18778 PyObject *resultobj;
18779 wxDateTime *arg1 = (wxDateTime *) 0 ;
18780 int arg2 ;
18781 wxDateTime result;
18782 PyObject * obj0 = 0 ;
18783 PyObject * obj1 = 0 ;
18784 char *kwnames[] = {
18785 (char *) "self",(char *) "weekday", NULL
18786 };
18787
18788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18791 arg2 = (int)SWIG_As_int(obj1);
18792 if (PyErr_Occurred()) SWIG_fail;
18793 {
18794 PyThreadState* __tstate = wxPyBeginAllowThreads();
18795 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18796
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 {
18801 wxDateTime * resultptr;
18802 resultptr = new wxDateTime((wxDateTime &) result);
18803 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18804 }
18805 return resultobj;
18806 fail:
18807 return NULL;
18808 }
18809
18810
18811 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18812 PyObject *resultobj;
18813 wxDateTime *arg1 = (wxDateTime *) 0 ;
18814 int arg2 ;
18815 int arg3 = (int) 1 ;
18816 int arg4 = (int) wxDateTime::Inv_Month ;
18817 int arg5 = (int) wxDateTime::Inv_Year ;
18818 bool result;
18819 PyObject * obj0 = 0 ;
18820 PyObject * obj1 = 0 ;
18821 PyObject * obj2 = 0 ;
18822 PyObject * obj3 = 0 ;
18823 PyObject * obj4 = 0 ;
18824 char *kwnames[] = {
18825 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18826 };
18827
18828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18831 arg2 = (int)SWIG_As_int(obj1);
18832 if (PyErr_Occurred()) SWIG_fail;
18833 if (obj2) {
18834 arg3 = (int)SWIG_As_int(obj2);
18835 if (PyErr_Occurred()) SWIG_fail;
18836 }
18837 if (obj3) {
18838 arg4 = (int)SWIG_As_int(obj3);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 if (obj4) {
18842 arg5 = (int)SWIG_As_int(obj4);
18843 if (PyErr_Occurred()) SWIG_fail;
18844 }
18845 {
18846 PyThreadState* __tstate = wxPyBeginAllowThreads();
18847 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18848
18849 wxPyEndAllowThreads(__tstate);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 }
18852 {
18853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18854 }
18855 return resultobj;
18856 fail:
18857 return NULL;
18858 }
18859
18860
18861 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18862 PyObject *resultobj;
18863 wxDateTime *arg1 = (wxDateTime *) 0 ;
18864 int arg2 ;
18865 int arg3 = (int) wxDateTime::Inv_Month ;
18866 int arg4 = (int) wxDateTime::Inv_Year ;
18867 bool result;
18868 PyObject * obj0 = 0 ;
18869 PyObject * obj1 = 0 ;
18870 PyObject * obj2 = 0 ;
18871 PyObject * obj3 = 0 ;
18872 char *kwnames[] = {
18873 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18874 };
18875
18876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18879 arg2 = (int)SWIG_As_int(obj1);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 if (obj2) {
18882 arg3 = (int)SWIG_As_int(obj2);
18883 if (PyErr_Occurred()) SWIG_fail;
18884 }
18885 if (obj3) {
18886 arg4 = (int)SWIG_As_int(obj3);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 {
18890 PyThreadState* __tstate = wxPyBeginAllowThreads();
18891 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18892
18893 wxPyEndAllowThreads(__tstate);
18894 if (PyErr_Occurred()) SWIG_fail;
18895 }
18896 {
18897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18898 }
18899 return resultobj;
18900 fail:
18901 return NULL;
18902 }
18903
18904
18905 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18906 PyObject *resultobj;
18907 wxDateTime *arg1 = (wxDateTime *) 0 ;
18908 int arg2 ;
18909 int arg3 = (int) wxDateTime::Inv_Month ;
18910 int arg4 = (int) wxDateTime::Inv_Year ;
18911 wxDateTime result;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 PyObject * obj2 = 0 ;
18915 PyObject * obj3 = 0 ;
18916 char *kwnames[] = {
18917 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18918 };
18919
18920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18923 arg2 = (int)SWIG_As_int(obj1);
18924 if (PyErr_Occurred()) SWIG_fail;
18925 if (obj2) {
18926 arg3 = (int)SWIG_As_int(obj2);
18927 if (PyErr_Occurred()) SWIG_fail;
18928 }
18929 if (obj3) {
18930 arg4 = (int)SWIG_As_int(obj3);
18931 if (PyErr_Occurred()) SWIG_fail;
18932 }
18933 {
18934 PyThreadState* __tstate = wxPyBeginAllowThreads();
18935 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18936
18937 wxPyEndAllowThreads(__tstate);
18938 if (PyErr_Occurred()) SWIG_fail;
18939 }
18940 {
18941 wxDateTime * resultptr;
18942 resultptr = new wxDateTime((wxDateTime &) result);
18943 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18944 }
18945 return resultobj;
18946 fail:
18947 return NULL;
18948 }
18949
18950
18951 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18952 PyObject *resultobj;
18953 wxDateTime *arg1 = (wxDateTime *) 0 ;
18954 int arg2 ;
18955 int arg3 = (int) wxDateTime::Mon ;
18956 int arg4 = (int) wxDateTime::Monday_First ;
18957 bool result;
18958 PyObject * obj0 = 0 ;
18959 PyObject * obj1 = 0 ;
18960 PyObject * obj2 = 0 ;
18961 PyObject * obj3 = 0 ;
18962 char *kwnames[] = {
18963 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18964 };
18965
18966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18969 arg2 = (int)SWIG_As_int(obj1);
18970 if (PyErr_Occurred()) SWIG_fail;
18971 if (obj2) {
18972 arg3 = (int)SWIG_As_int(obj2);
18973 if (PyErr_Occurred()) SWIG_fail;
18974 }
18975 if (obj3) {
18976 arg4 = (int)SWIG_As_int(obj3);
18977 if (PyErr_Occurred()) SWIG_fail;
18978 }
18979 {
18980 PyThreadState* __tstate = wxPyBeginAllowThreads();
18981 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18982
18983 wxPyEndAllowThreads(__tstate);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 {
18987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18988 }
18989 return resultobj;
18990 fail:
18991 return NULL;
18992 }
18993
18994
18995 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18996 PyObject *resultobj;
18997 wxDateTime *arg1 = (wxDateTime *) 0 ;
18998 int arg2 ;
18999 int arg3 = (int) wxDateTime::Mon ;
19000 int arg4 = (int) wxDateTime::Monday_First ;
19001 wxDateTime result;
19002 PyObject * obj0 = 0 ;
19003 PyObject * obj1 = 0 ;
19004 PyObject * obj2 = 0 ;
19005 PyObject * obj3 = 0 ;
19006 char *kwnames[] = {
19007 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
19008 };
19009
19010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19013 arg2 = (int)SWIG_As_int(obj1);
19014 if (PyErr_Occurred()) SWIG_fail;
19015 if (obj2) {
19016 arg3 = (int)SWIG_As_int(obj2);
19017 if (PyErr_Occurred()) SWIG_fail;
19018 }
19019 if (obj3) {
19020 arg4 = (int)SWIG_As_int(obj3);
19021 if (PyErr_Occurred()) SWIG_fail;
19022 }
19023 {
19024 PyThreadState* __tstate = wxPyBeginAllowThreads();
19025 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
19026
19027 wxPyEndAllowThreads(__tstate);
19028 if (PyErr_Occurred()) SWIG_fail;
19029 }
19030 {
19031 wxDateTime * resultptr;
19032 resultptr = new wxDateTime((wxDateTime &) result);
19033 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19034 }
19035 return resultobj;
19036 fail:
19037 return NULL;
19038 }
19039
19040
19041 static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19042 PyObject *resultobj;
19043 int arg1 ;
19044 int arg2 ;
19045 int arg3 = (int) wxDateTime::Mon ;
19046 wxDateTime result;
19047 PyObject * obj0 = 0 ;
19048 PyObject * obj1 = 0 ;
19049 PyObject * obj2 = 0 ;
19050 char *kwnames[] = {
19051 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
19052 };
19053
19054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19055 arg1 = (int)SWIG_As_int(obj0);
19056 if (PyErr_Occurred()) SWIG_fail;
19057 arg2 = (int)SWIG_As_int(obj1);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 if (obj2) {
19060 arg3 = (int)SWIG_As_int(obj2);
19061 if (PyErr_Occurred()) SWIG_fail;
19062 }
19063 {
19064 PyThreadState* __tstate = wxPyBeginAllowThreads();
19065 result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3);
19066
19067 wxPyEndAllowThreads(__tstate);
19068 if (PyErr_Occurred()) SWIG_fail;
19069 }
19070 {
19071 wxDateTime * resultptr;
19072 resultptr = new wxDateTime((wxDateTime &) result);
19073 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19074 }
19075 return resultobj;
19076 fail:
19077 return NULL;
19078 }
19079
19080
19081 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
19082 PyObject *resultobj;
19083 wxDateTime *arg1 = (wxDateTime *) 0 ;
19084 int arg2 = (int) wxDateTime::Inv_Month ;
19085 int arg3 = (int) wxDateTime::Inv_Year ;
19086 wxDateTime *result;
19087 PyObject * obj0 = 0 ;
19088 PyObject * obj1 = 0 ;
19089 PyObject * obj2 = 0 ;
19090 char *kwnames[] = {
19091 (char *) "self",(char *) "month",(char *) "year", NULL
19092 };
19093
19094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
19095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19097 if (obj1) {
19098 arg2 = (int)SWIG_As_int(obj1);
19099 if (PyErr_Occurred()) SWIG_fail;
19100 }
19101 if (obj2) {
19102 arg3 = (int)SWIG_As_int(obj2);
19103 if (PyErr_Occurred()) SWIG_fail;
19104 }
19105 {
19106 PyThreadState* __tstate = wxPyBeginAllowThreads();
19107 {
19108 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
19109 result = (wxDateTime *) &_result_ref;
19110 }
19111
19112 wxPyEndAllowThreads(__tstate);
19113 if (PyErr_Occurred()) SWIG_fail;
19114 }
19115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19116 return resultobj;
19117 fail:
19118 return NULL;
19119 }
19120
19121
19122 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
19123 PyObject *resultobj;
19124 wxDateTime *arg1 = (wxDateTime *) 0 ;
19125 int arg2 = (int) wxDateTime::Inv_Month ;
19126 int arg3 = (int) wxDateTime::Inv_Year ;
19127 wxDateTime result;
19128 PyObject * obj0 = 0 ;
19129 PyObject * obj1 = 0 ;
19130 PyObject * obj2 = 0 ;
19131 char *kwnames[] = {
19132 (char *) "self",(char *) "month",(char *) "year", NULL
19133 };
19134
19135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
19136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19138 if (obj1) {
19139 arg2 = (int)SWIG_As_int(obj1);
19140 if (PyErr_Occurred()) SWIG_fail;
19141 }
19142 if (obj2) {
19143 arg3 = (int)SWIG_As_int(obj2);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 }
19146 {
19147 PyThreadState* __tstate = wxPyBeginAllowThreads();
19148 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
19149
19150 wxPyEndAllowThreads(__tstate);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 }
19153 {
19154 wxDateTime * resultptr;
19155 resultptr = new wxDateTime((wxDateTime &) result);
19156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19157 }
19158 return resultobj;
19159 fail:
19160 return NULL;
19161 }
19162
19163
19164 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
19165 PyObject *resultobj;
19166 wxDateTime *arg1 = (wxDateTime *) 0 ;
19167 int arg2 ;
19168 wxDateTime *result;
19169 PyObject * obj0 = 0 ;
19170 PyObject * obj1 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "self",(char *) "yday", NULL
19173 };
19174
19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
19176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19178 arg2 = (int)SWIG_As_int(obj1);
19179 if (PyErr_Occurred()) SWIG_fail;
19180 {
19181 PyThreadState* __tstate = wxPyBeginAllowThreads();
19182 {
19183 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
19184 result = (wxDateTime *) &_result_ref;
19185 }
19186
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj;
19199 wxDateTime *arg1 = (wxDateTime *) 0 ;
19200 int arg2 ;
19201 wxDateTime result;
19202 PyObject * obj0 = 0 ;
19203 PyObject * obj1 = 0 ;
19204 char *kwnames[] = {
19205 (char *) "self",(char *) "yday", NULL
19206 };
19207
19208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
19209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19211 arg2 = (int)SWIG_As_int(obj1);
19212 if (PyErr_Occurred()) SWIG_fail;
19213 {
19214 PyThreadState* __tstate = wxPyBeginAllowThreads();
19215 result = (arg1)->GetYearDay(arg2);
19216
19217 wxPyEndAllowThreads(__tstate);
19218 if (PyErr_Occurred()) SWIG_fail;
19219 }
19220 {
19221 wxDateTime * resultptr;
19222 resultptr = new wxDateTime((wxDateTime &) result);
19223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19224 }
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
19232 PyObject *resultobj;
19233 wxDateTime *arg1 = (wxDateTime *) 0 ;
19234 double result;
19235 PyObject * obj0 = 0 ;
19236 char *kwnames[] = {
19237 (char *) "self", NULL
19238 };
19239
19240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
19241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19243 {
19244 PyThreadState* __tstate = wxPyBeginAllowThreads();
19245 result = (double)(arg1)->GetJulianDayNumber();
19246
19247 wxPyEndAllowThreads(__tstate);
19248 if (PyErr_Occurred()) SWIG_fail;
19249 }
19250 resultobj = SWIG_From_double((double)result);
19251 return resultobj;
19252 fail:
19253 return NULL;
19254 }
19255
19256
19257 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj;
19259 wxDateTime *arg1 = (wxDateTime *) 0 ;
19260 double result;
19261 PyObject * obj0 = 0 ;
19262 char *kwnames[] = {
19263 (char *) "self", NULL
19264 };
19265
19266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
19267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19269 {
19270 PyThreadState* __tstate = wxPyBeginAllowThreads();
19271 result = (double)(arg1)->GetJDN();
19272
19273 wxPyEndAllowThreads(__tstate);
19274 if (PyErr_Occurred()) SWIG_fail;
19275 }
19276 resultobj = SWIG_From_double((double)result);
19277 return resultobj;
19278 fail:
19279 return NULL;
19280 }
19281
19282
19283 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
19284 PyObject *resultobj;
19285 wxDateTime *arg1 = (wxDateTime *) 0 ;
19286 double result;
19287 PyObject * obj0 = 0 ;
19288 char *kwnames[] = {
19289 (char *) "self", NULL
19290 };
19291
19292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
19293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19295 {
19296 PyThreadState* __tstate = wxPyBeginAllowThreads();
19297 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
19298
19299 wxPyEndAllowThreads(__tstate);
19300 if (PyErr_Occurred()) SWIG_fail;
19301 }
19302 resultobj = SWIG_From_double((double)result);
19303 return resultobj;
19304 fail:
19305 return NULL;
19306 }
19307
19308
19309 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
19310 PyObject *resultobj;
19311 wxDateTime *arg1 = (wxDateTime *) 0 ;
19312 double result;
19313 PyObject * obj0 = 0 ;
19314 char *kwnames[] = {
19315 (char *) "self", NULL
19316 };
19317
19318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
19319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19321 {
19322 PyThreadState* __tstate = wxPyBeginAllowThreads();
19323 result = (double)(arg1)->GetMJD();
19324
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 resultobj = SWIG_From_double((double)result);
19329 return resultobj;
19330 fail:
19331 return NULL;
19332 }
19333
19334
19335 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
19336 PyObject *resultobj;
19337 wxDateTime *arg1 = (wxDateTime *) 0 ;
19338 double result;
19339 PyObject * obj0 = 0 ;
19340 char *kwnames[] = {
19341 (char *) "self", NULL
19342 };
19343
19344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
19345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19347 {
19348 PyThreadState* __tstate = wxPyBeginAllowThreads();
19349 result = (double)(arg1)->GetRataDie();
19350
19351 wxPyEndAllowThreads(__tstate);
19352 if (PyErr_Occurred()) SWIG_fail;
19353 }
19354 resultobj = SWIG_From_double((double)result);
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19362 PyObject *resultobj;
19363 wxDateTime *arg1 = (wxDateTime *) 0 ;
19364 wxDateTime::TimeZone *arg2 = 0 ;
19365 bool arg3 = (bool) false ;
19366 wxDateTime result;
19367 bool temp2 = false ;
19368 PyObject * obj0 = 0 ;
19369 PyObject * obj1 = 0 ;
19370 PyObject * obj2 = 0 ;
19371 char *kwnames[] = {
19372 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19373 };
19374
19375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19378 {
19379 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19380 temp2 = true;
19381 }
19382 if (obj2) {
19383 arg3 = (bool)SWIG_As_bool(obj2);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 {
19387 PyThreadState* __tstate = wxPyBeginAllowThreads();
19388 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19389
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 {
19394 wxDateTime * resultptr;
19395 resultptr = new wxDateTime((wxDateTime &) result);
19396 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19397 }
19398 {
19399 if (temp2) delete arg2;
19400 }
19401 return resultobj;
19402 fail:
19403 {
19404 if (temp2) delete arg2;
19405 }
19406 return NULL;
19407 }
19408
19409
19410 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19411 PyObject *resultobj;
19412 wxDateTime *arg1 = (wxDateTime *) 0 ;
19413 wxDateTime::TimeZone *arg2 = 0 ;
19414 bool arg3 = (bool) false ;
19415 wxDateTime *result;
19416 bool temp2 = false ;
19417 PyObject * obj0 = 0 ;
19418 PyObject * obj1 = 0 ;
19419 PyObject * obj2 = 0 ;
19420 char *kwnames[] = {
19421 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19422 };
19423
19424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19427 {
19428 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19429 temp2 = true;
19430 }
19431 if (obj2) {
19432 arg3 = (bool)SWIG_As_bool(obj2);
19433 if (PyErr_Occurred()) SWIG_fail;
19434 }
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 {
19438 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19439 result = (wxDateTime *) &_result_ref;
19440 }
19441
19442 wxPyEndAllowThreads(__tstate);
19443 if (PyErr_Occurred()) SWIG_fail;
19444 }
19445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19446 {
19447 if (temp2) delete arg2;
19448 }
19449 return resultobj;
19450 fail:
19451 {
19452 if (temp2) delete arg2;
19453 }
19454 return NULL;
19455 }
19456
19457
19458 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19459 PyObject *resultobj;
19460 wxDateTime *arg1 = (wxDateTime *) 0 ;
19461 bool arg2 = (bool) false ;
19462 wxDateTime result;
19463 PyObject * obj0 = 0 ;
19464 PyObject * obj1 = 0 ;
19465 char *kwnames[] = {
19466 (char *) "self",(char *) "noDST", NULL
19467 };
19468
19469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19472 if (obj1) {
19473 arg2 = (bool)SWIG_As_bool(obj1);
19474 if (PyErr_Occurred()) SWIG_fail;
19475 }
19476 {
19477 PyThreadState* __tstate = wxPyBeginAllowThreads();
19478 result = (arg1)->ToGMT(arg2);
19479
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 {
19484 wxDateTime * resultptr;
19485 resultptr = new wxDateTime((wxDateTime &) result);
19486 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19487 }
19488 return resultobj;
19489 fail:
19490 return NULL;
19491 }
19492
19493
19494 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19495 PyObject *resultobj;
19496 wxDateTime *arg1 = (wxDateTime *) 0 ;
19497 bool arg2 = (bool) false ;
19498 wxDateTime *result;
19499 PyObject * obj0 = 0 ;
19500 PyObject * obj1 = 0 ;
19501 char *kwnames[] = {
19502 (char *) "self",(char *) "noDST", NULL
19503 };
19504
19505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19508 if (obj1) {
19509 arg2 = (bool)SWIG_As_bool(obj1);
19510 if (PyErr_Occurred()) SWIG_fail;
19511 }
19512 {
19513 PyThreadState* __tstate = wxPyBeginAllowThreads();
19514 {
19515 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19516 result = (wxDateTime *) &_result_ref;
19517 }
19518
19519 wxPyEndAllowThreads(__tstate);
19520 if (PyErr_Occurred()) SWIG_fail;
19521 }
19522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19523 return resultobj;
19524 fail:
19525 return NULL;
19526 }
19527
19528
19529 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
19530 PyObject *resultobj;
19531 wxDateTime *arg1 = (wxDateTime *) 0 ;
19532 int arg2 = (int) wxDateTime::Country_Default ;
19533 int result;
19534 PyObject * obj0 = 0 ;
19535 PyObject * obj1 = 0 ;
19536 char *kwnames[] = {
19537 (char *) "self",(char *) "country", NULL
19538 };
19539
19540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",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 arg2 = (int)SWIG_As_int(obj1);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 {
19548 PyThreadState* __tstate = wxPyBeginAllowThreads();
19549 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19550
19551 wxPyEndAllowThreads(__tstate);
19552 if (PyErr_Occurred()) SWIG_fail;
19553 }
19554 resultobj = SWIG_From_int((int)result);
19555 return resultobj;
19556 fail:
19557 return NULL;
19558 }
19559
19560
19561 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
19562 PyObject *resultobj;
19563 wxDateTime *arg1 = (wxDateTime *) 0 ;
19564 bool result;
19565 PyObject * obj0 = 0 ;
19566 char *kwnames[] = {
19567 (char *) "self", NULL
19568 };
19569
19570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19573 {
19574 PyThreadState* __tstate = wxPyBeginAllowThreads();
19575 result = (bool)((wxDateTime const *)arg1)->IsValid();
19576
19577 wxPyEndAllowThreads(__tstate);
19578 if (PyErr_Occurred()) SWIG_fail;
19579 }
19580 {
19581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19582 }
19583 return resultobj;
19584 fail:
19585 return NULL;
19586 }
19587
19588
19589 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
19590 PyObject *resultobj;
19591 wxDateTime *arg1 = (wxDateTime *) 0 ;
19592 time_t result;
19593 PyObject * obj0 = 0 ;
19594 char *kwnames[] = {
19595 (char *) "self", NULL
19596 };
19597
19598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19601 {
19602 PyThreadState* __tstate = wxPyBeginAllowThreads();
19603 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19604
19605 wxPyEndAllowThreads(__tstate);
19606 if (PyErr_Occurred()) SWIG_fail;
19607 }
19608 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
19609 return resultobj;
19610 fail:
19611 return NULL;
19612 }
19613
19614
19615 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
19616 PyObject *resultobj;
19617 wxDateTime *arg1 = (wxDateTime *) 0 ;
19618 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19619 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19620 int result;
19621 bool temp2 = false ;
19622 PyObject * obj0 = 0 ;
19623 PyObject * obj1 = 0 ;
19624 char *kwnames[] = {
19625 (char *) "self",(char *) "tz", NULL
19626 };
19627
19628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19631 if (obj1) {
19632 {
19633 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19634 temp2 = true;
19635 }
19636 }
19637 {
19638 PyThreadState* __tstate = wxPyBeginAllowThreads();
19639 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19640
19641 wxPyEndAllowThreads(__tstate);
19642 if (PyErr_Occurred()) SWIG_fail;
19643 }
19644 resultobj = SWIG_From_int((int)result);
19645 {
19646 if (temp2) delete arg2;
19647 }
19648 return resultobj;
19649 fail:
19650 {
19651 if (temp2) delete arg2;
19652 }
19653 return NULL;
19654 }
19655
19656
19657 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19658 PyObject *resultobj;
19659 wxDateTime *arg1 = (wxDateTime *) 0 ;
19660 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19661 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19662 int result;
19663 bool temp2 = false ;
19664 PyObject * obj0 = 0 ;
19665 PyObject * obj1 = 0 ;
19666 char *kwnames[] = {
19667 (char *) "self",(char *) "tz", NULL
19668 };
19669
19670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19673 if (obj1) {
19674 {
19675 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19676 temp2 = true;
19677 }
19678 }
19679 {
19680 PyThreadState* __tstate = wxPyBeginAllowThreads();
19681 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19682
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 resultobj = SWIG_From_int((int)result);
19687 {
19688 if (temp2) delete arg2;
19689 }
19690 return resultobj;
19691 fail:
19692 {
19693 if (temp2) delete arg2;
19694 }
19695 return NULL;
19696 }
19697
19698
19699 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
19700 PyObject *resultobj;
19701 wxDateTime *arg1 = (wxDateTime *) 0 ;
19702 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19703 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19704 int result;
19705 bool temp2 = false ;
19706 PyObject * obj0 = 0 ;
19707 PyObject * obj1 = 0 ;
19708 char *kwnames[] = {
19709 (char *) "self",(char *) "tz", NULL
19710 };
19711
19712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19715 if (obj1) {
19716 {
19717 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19718 temp2 = true;
19719 }
19720 }
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19724
19725 wxPyEndAllowThreads(__tstate);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 }
19728 resultobj = SWIG_From_int((int)result);
19729 {
19730 if (temp2) delete arg2;
19731 }
19732 return resultobj;
19733 fail:
19734 {
19735 if (temp2) delete arg2;
19736 }
19737 return NULL;
19738 }
19739
19740
19741 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
19742 PyObject *resultobj;
19743 wxDateTime *arg1 = (wxDateTime *) 0 ;
19744 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19745 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19746 int result;
19747 bool temp2 = false ;
19748 PyObject * obj0 = 0 ;
19749 PyObject * obj1 = 0 ;
19750 char *kwnames[] = {
19751 (char *) "self",(char *) "tz", NULL
19752 };
19753
19754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19757 if (obj1) {
19758 {
19759 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19760 temp2 = true;
19761 }
19762 }
19763 {
19764 PyThreadState* __tstate = wxPyBeginAllowThreads();
19765 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19766
19767 wxPyEndAllowThreads(__tstate);
19768 if (PyErr_Occurred()) SWIG_fail;
19769 }
19770 resultobj = SWIG_From_int((int)result);
19771 {
19772 if (temp2) delete arg2;
19773 }
19774 return resultobj;
19775 fail:
19776 {
19777 if (temp2) delete arg2;
19778 }
19779 return NULL;
19780 }
19781
19782
19783 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj;
19785 wxDateTime *arg1 = (wxDateTime *) 0 ;
19786 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19787 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19788 int result;
19789 bool temp2 = false ;
19790 PyObject * obj0 = 0 ;
19791 PyObject * obj1 = 0 ;
19792 char *kwnames[] = {
19793 (char *) "self",(char *) "tz", NULL
19794 };
19795
19796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19799 if (obj1) {
19800 {
19801 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19802 temp2 = true;
19803 }
19804 }
19805 {
19806 PyThreadState* __tstate = wxPyBeginAllowThreads();
19807 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19808
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 resultobj = SWIG_From_int((int)result);
19813 {
19814 if (temp2) delete arg2;
19815 }
19816 return resultobj;
19817 fail:
19818 {
19819 if (temp2) delete arg2;
19820 }
19821 return NULL;
19822 }
19823
19824
19825 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
19826 PyObject *resultobj;
19827 wxDateTime *arg1 = (wxDateTime *) 0 ;
19828 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19829 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19830 int result;
19831 bool temp2 = false ;
19832 PyObject * obj0 = 0 ;
19833 PyObject * obj1 = 0 ;
19834 char *kwnames[] = {
19835 (char *) "self",(char *) "tz", NULL
19836 };
19837
19838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19841 if (obj1) {
19842 {
19843 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19844 temp2 = true;
19845 }
19846 }
19847 {
19848 PyThreadState* __tstate = wxPyBeginAllowThreads();
19849 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19850
19851 wxPyEndAllowThreads(__tstate);
19852 if (PyErr_Occurred()) SWIG_fail;
19853 }
19854 resultobj = SWIG_From_int((int)result);
19855 {
19856 if (temp2) delete arg2;
19857 }
19858 return resultobj;
19859 fail:
19860 {
19861 if (temp2) delete arg2;
19862 }
19863 return NULL;
19864 }
19865
19866
19867 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
19868 PyObject *resultobj;
19869 wxDateTime *arg1 = (wxDateTime *) 0 ;
19870 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19871 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19872 int result;
19873 bool temp2 = false ;
19874 PyObject * obj0 = 0 ;
19875 PyObject * obj1 = 0 ;
19876 char *kwnames[] = {
19877 (char *) "self",(char *) "tz", NULL
19878 };
19879
19880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19883 if (obj1) {
19884 {
19885 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19886 temp2 = true;
19887 }
19888 }
19889 {
19890 PyThreadState* __tstate = wxPyBeginAllowThreads();
19891 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19892
19893 wxPyEndAllowThreads(__tstate);
19894 if (PyErr_Occurred()) SWIG_fail;
19895 }
19896 resultobj = SWIG_From_int((int)result);
19897 {
19898 if (temp2) delete arg2;
19899 }
19900 return resultobj;
19901 fail:
19902 {
19903 if (temp2) delete arg2;
19904 }
19905 return NULL;
19906 }
19907
19908
19909 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
19910 PyObject *resultobj;
19911 wxDateTime *arg1 = (wxDateTime *) 0 ;
19912 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19913 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19914 int result;
19915 bool temp2 = false ;
19916 PyObject * obj0 = 0 ;
19917 PyObject * obj1 = 0 ;
19918 char *kwnames[] = {
19919 (char *) "self",(char *) "tz", NULL
19920 };
19921
19922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19925 if (obj1) {
19926 {
19927 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19928 temp2 = true;
19929 }
19930 }
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19934
19935 wxPyEndAllowThreads(__tstate);
19936 if (PyErr_Occurred()) SWIG_fail;
19937 }
19938 resultobj = SWIG_From_int((int)result);
19939 {
19940 if (temp2) delete arg2;
19941 }
19942 return resultobj;
19943 fail:
19944 {
19945 if (temp2) delete arg2;
19946 }
19947 return NULL;
19948 }
19949
19950
19951 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19952 PyObject *resultobj;
19953 wxDateTime *arg1 = (wxDateTime *) 0 ;
19954 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19955 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19956 int result;
19957 bool temp2 = false ;
19958 PyObject * obj0 = 0 ;
19959 PyObject * obj1 = 0 ;
19960 char *kwnames[] = {
19961 (char *) "self",(char *) "tz", NULL
19962 };
19963
19964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19967 if (obj1) {
19968 {
19969 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19970 temp2 = true;
19971 }
19972 }
19973 {
19974 PyThreadState* __tstate = wxPyBeginAllowThreads();
19975 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19976
19977 wxPyEndAllowThreads(__tstate);
19978 if (PyErr_Occurred()) SWIG_fail;
19979 }
19980 resultobj = SWIG_From_int((int)result);
19981 {
19982 if (temp2) delete arg2;
19983 }
19984 return resultobj;
19985 fail:
19986 {
19987 if (temp2) delete arg2;
19988 }
19989 return NULL;
19990 }
19991
19992
19993 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19994 PyObject *resultobj;
19995 wxDateTime *arg1 = (wxDateTime *) 0 ;
19996 int arg2 = (int) wxDateTime::Monday_First ;
19997 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19998 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19999 int result;
20000 bool temp3 = false ;
20001 PyObject * obj0 = 0 ;
20002 PyObject * obj1 = 0 ;
20003 PyObject * obj2 = 0 ;
20004 char *kwnames[] = {
20005 (char *) "self",(char *) "flags",(char *) "tz", NULL
20006 };
20007
20008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
20009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20011 if (obj1) {
20012 arg2 = (int)SWIG_As_int(obj1);
20013 if (PyErr_Occurred()) SWIG_fail;
20014 }
20015 if (obj2) {
20016 {
20017 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
20018 temp3 = true;
20019 }
20020 }
20021 {
20022 PyThreadState* __tstate = wxPyBeginAllowThreads();
20023 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
20024
20025 wxPyEndAllowThreads(__tstate);
20026 if (PyErr_Occurred()) SWIG_fail;
20027 }
20028 resultobj = SWIG_From_int((int)result);
20029 {
20030 if (temp3) delete arg3;
20031 }
20032 return resultobj;
20033 fail:
20034 {
20035 if (temp3) delete arg3;
20036 }
20037 return NULL;
20038 }
20039
20040
20041 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
20042 PyObject *resultobj;
20043 wxDateTime *arg1 = (wxDateTime *) 0 ;
20044 int arg2 = (int) wxDateTime::Monday_First ;
20045 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20046 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20047 int result;
20048 bool temp3 = false ;
20049 PyObject * obj0 = 0 ;
20050 PyObject * obj1 = 0 ;
20051 PyObject * obj2 = 0 ;
20052 char *kwnames[] = {
20053 (char *) "self",(char *) "flags",(char *) "tz", NULL
20054 };
20055
20056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
20057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20059 if (obj1) {
20060 arg2 = (int)SWIG_As_int(obj1);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 }
20063 if (obj2) {
20064 {
20065 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
20066 temp3 = true;
20067 }
20068 }
20069 {
20070 PyThreadState* __tstate = wxPyBeginAllowThreads();
20071 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
20072
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 resultobj = SWIG_From_int((int)result);
20077 {
20078 if (temp3) delete arg3;
20079 }
20080 return resultobj;
20081 fail:
20082 {
20083 if (temp3) delete arg3;
20084 }
20085 return NULL;
20086 }
20087
20088
20089 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
20090 PyObject *resultobj;
20091 wxDateTime *arg1 = (wxDateTime *) 0 ;
20092 int arg2 = (int) wxDateTime::Country_Default ;
20093 bool result;
20094 PyObject * obj0 = 0 ;
20095 PyObject * obj1 = 0 ;
20096 char *kwnames[] = {
20097 (char *) "self",(char *) "country", NULL
20098 };
20099
20100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
20101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20103 if (obj1) {
20104 arg2 = (int)SWIG_As_int(obj1);
20105 if (PyErr_Occurred()) SWIG_fail;
20106 }
20107 {
20108 PyThreadState* __tstate = wxPyBeginAllowThreads();
20109 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
20110
20111 wxPyEndAllowThreads(__tstate);
20112 if (PyErr_Occurred()) SWIG_fail;
20113 }
20114 {
20115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20116 }
20117 return resultobj;
20118 fail:
20119 return NULL;
20120 }
20121
20122
20123 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
20124 PyObject *resultobj;
20125 wxDateTime *arg1 = (wxDateTime *) 0 ;
20126 wxDateTime *arg2 = 0 ;
20127 bool result;
20128 PyObject * obj0 = 0 ;
20129 PyObject * obj1 = 0 ;
20130 char *kwnames[] = {
20131 (char *) "self",(char *) "datetime", NULL
20132 };
20133
20134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
20135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20138 SWIG_POINTER_EXCEPTION | 0)) == -1)
20139 SWIG_fail;
20140 if (arg2 == NULL) {
20141 PyErr_SetString(PyExc_TypeError,"null reference");
20142 SWIG_fail;
20143 }
20144 {
20145 PyThreadState* __tstate = wxPyBeginAllowThreads();
20146 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
20147
20148 wxPyEndAllowThreads(__tstate);
20149 if (PyErr_Occurred()) SWIG_fail;
20150 }
20151 {
20152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20153 }
20154 return resultobj;
20155 fail:
20156 return NULL;
20157 }
20158
20159
20160 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
20161 PyObject *resultobj;
20162 wxDateTime *arg1 = (wxDateTime *) 0 ;
20163 wxDateTime *arg2 = 0 ;
20164 bool result;
20165 PyObject * obj0 = 0 ;
20166 PyObject * obj1 = 0 ;
20167 char *kwnames[] = {
20168 (char *) "self",(char *) "datetime", NULL
20169 };
20170
20171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
20172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20174 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20175 SWIG_POINTER_EXCEPTION | 0)) == -1)
20176 SWIG_fail;
20177 if (arg2 == NULL) {
20178 PyErr_SetString(PyExc_TypeError,"null reference");
20179 SWIG_fail;
20180 }
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
20184
20185 wxPyEndAllowThreads(__tstate);
20186 if (PyErr_Occurred()) SWIG_fail;
20187 }
20188 {
20189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20190 }
20191 return resultobj;
20192 fail:
20193 return NULL;
20194 }
20195
20196
20197 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
20198 PyObject *resultobj;
20199 wxDateTime *arg1 = (wxDateTime *) 0 ;
20200 wxDateTime *arg2 = 0 ;
20201 bool result;
20202 PyObject * obj0 = 0 ;
20203 PyObject * obj1 = 0 ;
20204 char *kwnames[] = {
20205 (char *) "self",(char *) "datetime", NULL
20206 };
20207
20208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
20209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20212 SWIG_POINTER_EXCEPTION | 0)) == -1)
20213 SWIG_fail;
20214 if (arg2 == NULL) {
20215 PyErr_SetString(PyExc_TypeError,"null reference");
20216 SWIG_fail;
20217 }
20218 {
20219 PyThreadState* __tstate = wxPyBeginAllowThreads();
20220 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
20221
20222 wxPyEndAllowThreads(__tstate);
20223 if (PyErr_Occurred()) SWIG_fail;
20224 }
20225 {
20226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20227 }
20228 return resultobj;
20229 fail:
20230 return NULL;
20231 }
20232
20233
20234 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj;
20236 wxDateTime *arg1 = (wxDateTime *) 0 ;
20237 wxDateTime *arg2 = 0 ;
20238 wxDateTime *arg3 = 0 ;
20239 bool result;
20240 PyObject * obj0 = 0 ;
20241 PyObject * obj1 = 0 ;
20242 PyObject * obj2 = 0 ;
20243 char *kwnames[] = {
20244 (char *) "self",(char *) "t1",(char *) "t2", NULL
20245 };
20246
20247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20250 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20251 SWIG_POINTER_EXCEPTION | 0)) == -1)
20252 SWIG_fail;
20253 if (arg2 == NULL) {
20254 PyErr_SetString(PyExc_TypeError,"null reference");
20255 SWIG_fail;
20256 }
20257 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20258 SWIG_POINTER_EXCEPTION | 0)) == -1)
20259 SWIG_fail;
20260 if (arg3 == NULL) {
20261 PyErr_SetString(PyExc_TypeError,"null reference");
20262 SWIG_fail;
20263 }
20264 {
20265 PyThreadState* __tstate = wxPyBeginAllowThreads();
20266 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20267
20268 wxPyEndAllowThreads(__tstate);
20269 if (PyErr_Occurred()) SWIG_fail;
20270 }
20271 {
20272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20273 }
20274 return resultobj;
20275 fail:
20276 return NULL;
20277 }
20278
20279
20280 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj;
20282 wxDateTime *arg1 = (wxDateTime *) 0 ;
20283 wxDateTime *arg2 = 0 ;
20284 wxDateTime *arg3 = 0 ;
20285 bool result;
20286 PyObject * obj0 = 0 ;
20287 PyObject * obj1 = 0 ;
20288 PyObject * obj2 = 0 ;
20289 char *kwnames[] = {
20290 (char *) "self",(char *) "t1",(char *) "t2", NULL
20291 };
20292
20293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20297 SWIG_POINTER_EXCEPTION | 0)) == -1)
20298 SWIG_fail;
20299 if (arg2 == NULL) {
20300 PyErr_SetString(PyExc_TypeError,"null reference");
20301 SWIG_fail;
20302 }
20303 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20304 SWIG_POINTER_EXCEPTION | 0)) == -1)
20305 SWIG_fail;
20306 if (arg3 == NULL) {
20307 PyErr_SetString(PyExc_TypeError,"null reference");
20308 SWIG_fail;
20309 }
20310 {
20311 PyThreadState* __tstate = wxPyBeginAllowThreads();
20312 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20313
20314 wxPyEndAllowThreads(__tstate);
20315 if (PyErr_Occurred()) SWIG_fail;
20316 }
20317 {
20318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20319 }
20320 return resultobj;
20321 fail:
20322 return NULL;
20323 }
20324
20325
20326 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
20327 PyObject *resultobj;
20328 wxDateTime *arg1 = (wxDateTime *) 0 ;
20329 wxDateTime *arg2 = 0 ;
20330 bool result;
20331 PyObject * obj0 = 0 ;
20332 PyObject * obj1 = 0 ;
20333 char *kwnames[] = {
20334 (char *) "self",(char *) "dt", NULL
20335 };
20336
20337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
20338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20341 SWIG_POINTER_EXCEPTION | 0)) == -1)
20342 SWIG_fail;
20343 if (arg2 == NULL) {
20344 PyErr_SetString(PyExc_TypeError,"null reference");
20345 SWIG_fail;
20346 }
20347 {
20348 PyThreadState* __tstate = wxPyBeginAllowThreads();
20349 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
20350
20351 wxPyEndAllowThreads(__tstate);
20352 if (PyErr_Occurred()) SWIG_fail;
20353 }
20354 {
20355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20356 }
20357 return resultobj;
20358 fail:
20359 return NULL;
20360 }
20361
20362
20363 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
20364 PyObject *resultobj;
20365 wxDateTime *arg1 = (wxDateTime *) 0 ;
20366 wxDateTime *arg2 = 0 ;
20367 bool result;
20368 PyObject * obj0 = 0 ;
20369 PyObject * obj1 = 0 ;
20370 char *kwnames[] = {
20371 (char *) "self",(char *) "dt", NULL
20372 };
20373
20374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
20375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20378 SWIG_POINTER_EXCEPTION | 0)) == -1)
20379 SWIG_fail;
20380 if (arg2 == NULL) {
20381 PyErr_SetString(PyExc_TypeError,"null reference");
20382 SWIG_fail;
20383 }
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
20387
20388 wxPyEndAllowThreads(__tstate);
20389 if (PyErr_Occurred()) SWIG_fail;
20390 }
20391 {
20392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20393 }
20394 return resultobj;
20395 fail:
20396 return NULL;
20397 }
20398
20399
20400 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
20401 PyObject *resultobj;
20402 wxDateTime *arg1 = (wxDateTime *) 0 ;
20403 wxDateTime *arg2 = 0 ;
20404 wxTimeSpan *arg3 = 0 ;
20405 bool result;
20406 PyObject * obj0 = 0 ;
20407 PyObject * obj1 = 0 ;
20408 PyObject * obj2 = 0 ;
20409 char *kwnames[] = {
20410 (char *) "self",(char *) "dt",(char *) "ts", NULL
20411 };
20412
20413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20417 SWIG_POINTER_EXCEPTION | 0)) == -1)
20418 SWIG_fail;
20419 if (arg2 == NULL) {
20420 PyErr_SetString(PyExc_TypeError,"null reference");
20421 SWIG_fail;
20422 }
20423 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20424 SWIG_POINTER_EXCEPTION | 0)) == -1)
20425 SWIG_fail;
20426 if (arg3 == NULL) {
20427 PyErr_SetString(PyExc_TypeError,"null reference");
20428 SWIG_fail;
20429 }
20430 {
20431 PyThreadState* __tstate = wxPyBeginAllowThreads();
20432 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20433
20434 wxPyEndAllowThreads(__tstate);
20435 if (PyErr_Occurred()) SWIG_fail;
20436 }
20437 {
20438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20439 }
20440 return resultobj;
20441 fail:
20442 return NULL;
20443 }
20444
20445
20446 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
20447 PyObject *resultobj;
20448 wxDateTime *arg1 = (wxDateTime *) 0 ;
20449 wxTimeSpan *arg2 = 0 ;
20450 wxDateTime *result;
20451 PyObject * obj0 = 0 ;
20452 PyObject * obj1 = 0 ;
20453 char *kwnames[] = {
20454 (char *) "self",(char *) "diff", NULL
20455 };
20456
20457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20460 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20461 SWIG_POINTER_EXCEPTION | 0)) == -1)
20462 SWIG_fail;
20463 if (arg2 == NULL) {
20464 PyErr_SetString(PyExc_TypeError,"null reference");
20465 SWIG_fail;
20466 }
20467 {
20468 PyThreadState* __tstate = wxPyBeginAllowThreads();
20469 {
20470 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20471 result = (wxDateTime *) &_result_ref;
20472 }
20473
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20478 return resultobj;
20479 fail:
20480 return NULL;
20481 }
20482
20483
20484 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
20485 PyObject *resultobj;
20486 wxDateTime *arg1 = (wxDateTime *) 0 ;
20487 wxDateSpan *arg2 = 0 ;
20488 wxDateTime *result;
20489 PyObject * obj0 = 0 ;
20490 PyObject * obj1 = 0 ;
20491 char *kwnames[] = {
20492 (char *) "self",(char *) "diff", NULL
20493 };
20494
20495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20499 SWIG_POINTER_EXCEPTION | 0)) == -1)
20500 SWIG_fail;
20501 if (arg2 == NULL) {
20502 PyErr_SetString(PyExc_TypeError,"null reference");
20503 SWIG_fail;
20504 }
20505 {
20506 PyThreadState* __tstate = wxPyBeginAllowThreads();
20507 {
20508 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20509 result = (wxDateTime *) &_result_ref;
20510 }
20511
20512 wxPyEndAllowThreads(__tstate);
20513 if (PyErr_Occurred()) SWIG_fail;
20514 }
20515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20516 return resultobj;
20517 fail:
20518 return NULL;
20519 }
20520
20521
20522 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
20523 PyObject *resultobj;
20524 wxDateTime *arg1 = (wxDateTime *) 0 ;
20525 wxTimeSpan *arg2 = 0 ;
20526 wxDateTime *result;
20527 PyObject * obj0 = 0 ;
20528 PyObject * obj1 = 0 ;
20529 char *kwnames[] = {
20530 (char *) "self",(char *) "diff", NULL
20531 };
20532
20533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20536 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20537 SWIG_POINTER_EXCEPTION | 0)) == -1)
20538 SWIG_fail;
20539 if (arg2 == NULL) {
20540 PyErr_SetString(PyExc_TypeError,"null reference");
20541 SWIG_fail;
20542 }
20543 {
20544 PyThreadState* __tstate = wxPyBeginAllowThreads();
20545 {
20546 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20547 result = (wxDateTime *) &_result_ref;
20548 }
20549
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20554 return resultobj;
20555 fail:
20556 return NULL;
20557 }
20558
20559
20560 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj;
20562 wxDateTime *arg1 = (wxDateTime *) 0 ;
20563 wxDateSpan *arg2 = 0 ;
20564 wxDateTime *result;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567 char *kwnames[] = {
20568 (char *) "self",(char *) "diff", NULL
20569 };
20570
20571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20575 SWIG_POINTER_EXCEPTION | 0)) == -1)
20576 SWIG_fail;
20577 if (arg2 == NULL) {
20578 PyErr_SetString(PyExc_TypeError,"null reference");
20579 SWIG_fail;
20580 }
20581 {
20582 PyThreadState* __tstate = wxPyBeginAllowThreads();
20583 {
20584 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20585 result = (wxDateTime *) &_result_ref;
20586 }
20587
20588 wxPyEndAllowThreads(__tstate);
20589 if (PyErr_Occurred()) SWIG_fail;
20590 }
20591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20592 return resultobj;
20593 fail:
20594 return NULL;
20595 }
20596
20597
20598 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
20599 PyObject *resultobj;
20600 wxDateTime *arg1 = (wxDateTime *) 0 ;
20601 wxDateTime *arg2 = 0 ;
20602 wxTimeSpan result;
20603 PyObject * obj0 = 0 ;
20604 PyObject * obj1 = 0 ;
20605 char *kwnames[] = {
20606 (char *) "self",(char *) "dt", NULL
20607 };
20608
20609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20612 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20613 SWIG_POINTER_EXCEPTION | 0)) == -1)
20614 SWIG_fail;
20615 if (arg2 == NULL) {
20616 PyErr_SetString(PyExc_TypeError,"null reference");
20617 SWIG_fail;
20618 }
20619 {
20620 PyThreadState* __tstate = wxPyBeginAllowThreads();
20621 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20622
20623 wxPyEndAllowThreads(__tstate);
20624 if (PyErr_Occurred()) SWIG_fail;
20625 }
20626 {
20627 wxTimeSpan * resultptr;
20628 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20629 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20630 }
20631 return resultobj;
20632 fail:
20633 return NULL;
20634 }
20635
20636
20637 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
20638 PyObject *resultobj;
20639 wxDateTime *arg1 = (wxDateTime *) 0 ;
20640 wxTimeSpan *arg2 = 0 ;
20641 wxDateTime *result;
20642 PyObject * obj0 = 0 ;
20643 PyObject * obj1 = 0 ;
20644
20645 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20647 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20649 SWIG_POINTER_EXCEPTION | 0)) == -1)
20650 SWIG_fail;
20651 if (arg2 == NULL) {
20652 PyErr_SetString(PyExc_TypeError,"null reference");
20653 SWIG_fail;
20654 }
20655 {
20656 PyThreadState* __tstate = wxPyBeginAllowThreads();
20657 {
20658 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20659 result = (wxDateTime *) &_result_ref;
20660 }
20661
20662 wxPyEndAllowThreads(__tstate);
20663 if (PyErr_Occurred()) SWIG_fail;
20664 }
20665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20666 return resultobj;
20667 fail:
20668 return NULL;
20669 }
20670
20671
20672 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
20673 PyObject *resultobj;
20674 wxDateTime *arg1 = (wxDateTime *) 0 ;
20675 wxDateSpan *arg2 = 0 ;
20676 wxDateTime *result;
20677 PyObject * obj0 = 0 ;
20678 PyObject * obj1 = 0 ;
20679
20680 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20682 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20683 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20684 SWIG_POINTER_EXCEPTION | 0)) == -1)
20685 SWIG_fail;
20686 if (arg2 == NULL) {
20687 PyErr_SetString(PyExc_TypeError,"null reference");
20688 SWIG_fail;
20689 }
20690 {
20691 PyThreadState* __tstate = wxPyBeginAllowThreads();
20692 {
20693 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20694 result = (wxDateTime *) &_result_ref;
20695 }
20696
20697 wxPyEndAllowThreads(__tstate);
20698 if (PyErr_Occurred()) SWIG_fail;
20699 }
20700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20701 return resultobj;
20702 fail:
20703 return NULL;
20704 }
20705
20706
20707 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20708 int argc;
20709 PyObject *argv[3];
20710 int ii;
20711
20712 argc = PyObject_Length(args);
20713 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20714 argv[ii] = PyTuple_GetItem(args,ii);
20715 }
20716 if (argc == 2) {
20717 int _v;
20718 {
20719 void *ptr;
20720 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20721 _v = 0;
20722 PyErr_Clear();
20723 } else {
20724 _v = 1;
20725 }
20726 }
20727 if (_v) {
20728 {
20729 void *ptr;
20730 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20731 _v = 0;
20732 PyErr_Clear();
20733 } else {
20734 _v = 1;
20735 }
20736 }
20737 if (_v) {
20738 return _wrap_DateTime___iadd____SWIG_0(self,args);
20739 }
20740 }
20741 }
20742 if (argc == 2) {
20743 int _v;
20744 {
20745 void *ptr;
20746 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20747 _v = 0;
20748 PyErr_Clear();
20749 } else {
20750 _v = 1;
20751 }
20752 }
20753 if (_v) {
20754 {
20755 void *ptr;
20756 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20757 _v = 0;
20758 PyErr_Clear();
20759 } else {
20760 _v = 1;
20761 }
20762 }
20763 if (_v) {
20764 return _wrap_DateTime___iadd____SWIG_1(self,args);
20765 }
20766 }
20767 }
20768
20769 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20770 return NULL;
20771 }
20772
20773
20774 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
20775 PyObject *resultobj;
20776 wxDateTime *arg1 = (wxDateTime *) 0 ;
20777 wxTimeSpan *arg2 = 0 ;
20778 wxDateTime *result;
20779 PyObject * obj0 = 0 ;
20780 PyObject * obj1 = 0 ;
20781
20782 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20784 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20785 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20786 SWIG_POINTER_EXCEPTION | 0)) == -1)
20787 SWIG_fail;
20788 if (arg2 == NULL) {
20789 PyErr_SetString(PyExc_TypeError,"null reference");
20790 SWIG_fail;
20791 }
20792 {
20793 PyThreadState* __tstate = wxPyBeginAllowThreads();
20794 {
20795 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20796 result = (wxDateTime *) &_result_ref;
20797 }
20798
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
20802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20803 return resultobj;
20804 fail:
20805 return NULL;
20806 }
20807
20808
20809 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
20810 PyObject *resultobj;
20811 wxDateTime *arg1 = (wxDateTime *) 0 ;
20812 wxDateSpan *arg2 = 0 ;
20813 wxDateTime *result;
20814 PyObject * obj0 = 0 ;
20815 PyObject * obj1 = 0 ;
20816
20817 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20819 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20821 SWIG_POINTER_EXCEPTION | 0)) == -1)
20822 SWIG_fail;
20823 if (arg2 == NULL) {
20824 PyErr_SetString(PyExc_TypeError,"null reference");
20825 SWIG_fail;
20826 }
20827 {
20828 PyThreadState* __tstate = wxPyBeginAllowThreads();
20829 {
20830 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20831 result = (wxDateTime *) &_result_ref;
20832 }
20833
20834 wxPyEndAllowThreads(__tstate);
20835 if (PyErr_Occurred()) SWIG_fail;
20836 }
20837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20838 return resultobj;
20839 fail:
20840 return NULL;
20841 }
20842
20843
20844 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20845 int argc;
20846 PyObject *argv[3];
20847 int ii;
20848
20849 argc = PyObject_Length(args);
20850 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20851 argv[ii] = PyTuple_GetItem(args,ii);
20852 }
20853 if (argc == 2) {
20854 int _v;
20855 {
20856 void *ptr;
20857 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20858 _v = 0;
20859 PyErr_Clear();
20860 } else {
20861 _v = 1;
20862 }
20863 }
20864 if (_v) {
20865 {
20866 void *ptr;
20867 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20868 _v = 0;
20869 PyErr_Clear();
20870 } else {
20871 _v = 1;
20872 }
20873 }
20874 if (_v) {
20875 return _wrap_DateTime___isub____SWIG_0(self,args);
20876 }
20877 }
20878 }
20879 if (argc == 2) {
20880 int _v;
20881 {
20882 void *ptr;
20883 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20884 _v = 0;
20885 PyErr_Clear();
20886 } else {
20887 _v = 1;
20888 }
20889 }
20890 if (_v) {
20891 {
20892 void *ptr;
20893 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20894 _v = 0;
20895 PyErr_Clear();
20896 } else {
20897 _v = 1;
20898 }
20899 }
20900 if (_v) {
20901 return _wrap_DateTime___isub____SWIG_1(self,args);
20902 }
20903 }
20904 }
20905
20906 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20907 return NULL;
20908 }
20909
20910
20911 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
20912 PyObject *resultobj;
20913 wxDateTime *arg1 = (wxDateTime *) 0 ;
20914 wxTimeSpan *arg2 = 0 ;
20915 wxDateTime result;
20916 PyObject * obj0 = 0 ;
20917 PyObject * obj1 = 0 ;
20918
20919 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20922 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20923 SWIG_POINTER_EXCEPTION | 0)) == -1)
20924 SWIG_fail;
20925 if (arg2 == NULL) {
20926 PyErr_SetString(PyExc_TypeError,"null reference");
20927 SWIG_fail;
20928 }
20929 {
20930 PyThreadState* __tstate = wxPyBeginAllowThreads();
20931 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20932
20933 wxPyEndAllowThreads(__tstate);
20934 if (PyErr_Occurred()) SWIG_fail;
20935 }
20936 {
20937 wxDateTime * resultptr;
20938 resultptr = new wxDateTime((wxDateTime &) result);
20939 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20940 }
20941 return resultobj;
20942 fail:
20943 return NULL;
20944 }
20945
20946
20947 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
20948 PyObject *resultobj;
20949 wxDateTime *arg1 = (wxDateTime *) 0 ;
20950 wxDateSpan *arg2 = 0 ;
20951 wxDateTime result;
20952 PyObject * obj0 = 0 ;
20953 PyObject * obj1 = 0 ;
20954
20955 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20959 SWIG_POINTER_EXCEPTION | 0)) == -1)
20960 SWIG_fail;
20961 if (arg2 == NULL) {
20962 PyErr_SetString(PyExc_TypeError,"null reference");
20963 SWIG_fail;
20964 }
20965 {
20966 PyThreadState* __tstate = wxPyBeginAllowThreads();
20967 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20968
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 {
20973 wxDateTime * resultptr;
20974 resultptr = new wxDateTime((wxDateTime &) result);
20975 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20976 }
20977 return resultobj;
20978 fail:
20979 return NULL;
20980 }
20981
20982
20983 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20984 int argc;
20985 PyObject *argv[3];
20986 int ii;
20987
20988 argc = PyObject_Length(args);
20989 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20990 argv[ii] = PyTuple_GetItem(args,ii);
20991 }
20992 if (argc == 2) {
20993 int _v;
20994 {
20995 void *ptr;
20996 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20997 _v = 0;
20998 PyErr_Clear();
20999 } else {
21000 _v = 1;
21001 }
21002 }
21003 if (_v) {
21004 {
21005 void *ptr;
21006 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
21007 _v = 0;
21008 PyErr_Clear();
21009 } else {
21010 _v = 1;
21011 }
21012 }
21013 if (_v) {
21014 return _wrap_DateTime___add____SWIG_0(self,args);
21015 }
21016 }
21017 }
21018 if (argc == 2) {
21019 int _v;
21020 {
21021 void *ptr;
21022 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21023 _v = 0;
21024 PyErr_Clear();
21025 } else {
21026 _v = 1;
21027 }
21028 }
21029 if (_v) {
21030 {
21031 void *ptr;
21032 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
21033 _v = 0;
21034 PyErr_Clear();
21035 } else {
21036 _v = 1;
21037 }
21038 }
21039 if (_v) {
21040 return _wrap_DateTime___add____SWIG_1(self,args);
21041 }
21042 }
21043 }
21044
21045 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
21046 return NULL;
21047 }
21048
21049
21050 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
21051 PyObject *resultobj;
21052 wxDateTime *arg1 = (wxDateTime *) 0 ;
21053 wxDateTime *arg2 = 0 ;
21054 wxTimeSpan result;
21055 PyObject * obj0 = 0 ;
21056 PyObject * obj1 = 0 ;
21057
21058 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
21059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21062 SWIG_POINTER_EXCEPTION | 0)) == -1)
21063 SWIG_fail;
21064 if (arg2 == NULL) {
21065 PyErr_SetString(PyExc_TypeError,"null reference");
21066 SWIG_fail;
21067 }
21068 {
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
21071
21072 wxPyEndAllowThreads(__tstate);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 {
21076 wxTimeSpan * resultptr;
21077 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21078 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21079 }
21080 return resultobj;
21081 fail:
21082 return NULL;
21083 }
21084
21085
21086 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
21087 PyObject *resultobj;
21088 wxDateTime *arg1 = (wxDateTime *) 0 ;
21089 wxTimeSpan *arg2 = 0 ;
21090 wxDateTime result;
21091 PyObject * obj0 = 0 ;
21092 PyObject * obj1 = 0 ;
21093
21094 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
21095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21098 SWIG_POINTER_EXCEPTION | 0)) == -1)
21099 SWIG_fail;
21100 if (arg2 == NULL) {
21101 PyErr_SetString(PyExc_TypeError,"null reference");
21102 SWIG_fail;
21103 }
21104 {
21105 PyThreadState* __tstate = wxPyBeginAllowThreads();
21106 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
21107
21108 wxPyEndAllowThreads(__tstate);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 {
21112 wxDateTime * resultptr;
21113 resultptr = new wxDateTime((wxDateTime &) result);
21114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21115 }
21116 return resultobj;
21117 fail:
21118 return NULL;
21119 }
21120
21121
21122 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
21123 PyObject *resultobj;
21124 wxDateTime *arg1 = (wxDateTime *) 0 ;
21125 wxDateSpan *arg2 = 0 ;
21126 wxDateTime result;
21127 PyObject * obj0 = 0 ;
21128 PyObject * obj1 = 0 ;
21129
21130 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
21131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21133 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
21134 SWIG_POINTER_EXCEPTION | 0)) == -1)
21135 SWIG_fail;
21136 if (arg2 == NULL) {
21137 PyErr_SetString(PyExc_TypeError,"null reference");
21138 SWIG_fail;
21139 }
21140 {
21141 PyThreadState* __tstate = wxPyBeginAllowThreads();
21142 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
21143
21144 wxPyEndAllowThreads(__tstate);
21145 if (PyErr_Occurred()) SWIG_fail;
21146 }
21147 {
21148 wxDateTime * resultptr;
21149 resultptr = new wxDateTime((wxDateTime &) result);
21150 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
21151 }
21152 return resultobj;
21153 fail:
21154 return NULL;
21155 }
21156
21157
21158 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
21159 int argc;
21160 PyObject *argv[3];
21161 int ii;
21162
21163 argc = PyObject_Length(args);
21164 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
21165 argv[ii] = PyTuple_GetItem(args,ii);
21166 }
21167 if (argc == 2) {
21168 int _v;
21169 {
21170 void *ptr;
21171 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21172 _v = 0;
21173 PyErr_Clear();
21174 } else {
21175 _v = 1;
21176 }
21177 }
21178 if (_v) {
21179 {
21180 void *ptr;
21181 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21182 _v = 0;
21183 PyErr_Clear();
21184 } else {
21185 _v = 1;
21186 }
21187 }
21188 if (_v) {
21189 return _wrap_DateTime___sub____SWIG_0(self,args);
21190 }
21191 }
21192 }
21193 if (argc == 2) {
21194 int _v;
21195 {
21196 void *ptr;
21197 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21198 _v = 0;
21199 PyErr_Clear();
21200 } else {
21201 _v = 1;
21202 }
21203 }
21204 if (_v) {
21205 {
21206 void *ptr;
21207 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
21208 _v = 0;
21209 PyErr_Clear();
21210 } else {
21211 _v = 1;
21212 }
21213 }
21214 if (_v) {
21215 return _wrap_DateTime___sub____SWIG_1(self,args);
21216 }
21217 }
21218 }
21219 if (argc == 2) {
21220 int _v;
21221 {
21222 void *ptr;
21223 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21224 _v = 0;
21225 PyErr_Clear();
21226 } else {
21227 _v = 1;
21228 }
21229 }
21230 if (_v) {
21231 {
21232 void *ptr;
21233 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
21234 _v = 0;
21235 PyErr_Clear();
21236 } else {
21237 _v = 1;
21238 }
21239 }
21240 if (_v) {
21241 return _wrap_DateTime___sub____SWIG_2(self,args);
21242 }
21243 }
21244 }
21245
21246 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
21247 return NULL;
21248 }
21249
21250
21251 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
21252 PyObject *resultobj;
21253 wxDateTime *arg1 = (wxDateTime *) 0 ;
21254 wxDateTime *arg2 = (wxDateTime *) 0 ;
21255 bool result;
21256 PyObject * obj0 = 0 ;
21257 PyObject * obj1 = 0 ;
21258
21259 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
21260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21262 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21264 {
21265 PyThreadState* __tstate = wxPyBeginAllowThreads();
21266 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
21267
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 {
21272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21273 }
21274 return resultobj;
21275 fail:
21276 return NULL;
21277 }
21278
21279
21280 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
21281 PyObject *resultobj;
21282 wxDateTime *arg1 = (wxDateTime *) 0 ;
21283 wxDateTime *arg2 = (wxDateTime *) 0 ;
21284 bool result;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287
21288 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
21289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21293 {
21294 PyThreadState* __tstate = wxPyBeginAllowThreads();
21295 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
21296
21297 wxPyEndAllowThreads(__tstate);
21298 if (PyErr_Occurred()) SWIG_fail;
21299 }
21300 {
21301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21302 }
21303 return resultobj;
21304 fail:
21305 return NULL;
21306 }
21307
21308
21309 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
21310 PyObject *resultobj;
21311 wxDateTime *arg1 = (wxDateTime *) 0 ;
21312 wxDateTime *arg2 = (wxDateTime *) 0 ;
21313 bool result;
21314 PyObject * obj0 = 0 ;
21315 PyObject * obj1 = 0 ;
21316
21317 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
21318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21320 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21322 {
21323 PyThreadState* __tstate = wxPyBeginAllowThreads();
21324 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
21325
21326 wxPyEndAllowThreads(__tstate);
21327 if (PyErr_Occurred()) SWIG_fail;
21328 }
21329 {
21330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21331 }
21332 return resultobj;
21333 fail:
21334 return NULL;
21335 }
21336
21337
21338 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
21339 PyObject *resultobj;
21340 wxDateTime *arg1 = (wxDateTime *) 0 ;
21341 wxDateTime *arg2 = (wxDateTime *) 0 ;
21342 bool result;
21343 PyObject * obj0 = 0 ;
21344 PyObject * obj1 = 0 ;
21345
21346 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
21347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21351 {
21352 PyThreadState* __tstate = wxPyBeginAllowThreads();
21353 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
21354
21355 wxPyEndAllowThreads(__tstate);
21356 if (PyErr_Occurred()) SWIG_fail;
21357 }
21358 {
21359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21360 }
21361 return resultobj;
21362 fail:
21363 return NULL;
21364 }
21365
21366
21367 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
21368 PyObject *resultobj;
21369 wxDateTime *arg1 = (wxDateTime *) 0 ;
21370 wxDateTime *arg2 = (wxDateTime *) 0 ;
21371 bool result;
21372 PyObject * obj0 = 0 ;
21373 PyObject * obj1 = 0 ;
21374
21375 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
21376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21380 {
21381 PyThreadState* __tstate = wxPyBeginAllowThreads();
21382 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
21383
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 {
21388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21389 }
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
21397 PyObject *resultobj;
21398 wxDateTime *arg1 = (wxDateTime *) 0 ;
21399 wxDateTime *arg2 = (wxDateTime *) 0 ;
21400 bool result;
21401 PyObject * obj0 = 0 ;
21402 PyObject * obj1 = 0 ;
21403
21404 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21409 {
21410 PyThreadState* __tstate = wxPyBeginAllowThreads();
21411 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21412
21413 wxPyEndAllowThreads(__tstate);
21414 if (PyErr_Occurred()) SWIG_fail;
21415 }
21416 {
21417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21418 }
21419 return resultobj;
21420 fail:
21421 return NULL;
21422 }
21423
21424
21425 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
21426 PyObject *resultobj;
21427 wxDateTime *arg1 = (wxDateTime *) 0 ;
21428 wxString *arg2 = 0 ;
21429 int result;
21430 bool temp2 = false ;
21431 PyObject * obj0 = 0 ;
21432 PyObject * obj1 = 0 ;
21433 char *kwnames[] = {
21434 (char *) "self",(char *) "date", NULL
21435 };
21436
21437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21440 {
21441 arg2 = wxString_in_helper(obj1);
21442 if (arg2 == NULL) SWIG_fail;
21443 temp2 = true;
21444 }
21445 {
21446 PyThreadState* __tstate = wxPyBeginAllowThreads();
21447 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21448
21449 wxPyEndAllowThreads(__tstate);
21450 if (PyErr_Occurred()) SWIG_fail;
21451 }
21452 resultobj = SWIG_From_int((int)result);
21453 {
21454 if (temp2)
21455 delete arg2;
21456 }
21457 return resultobj;
21458 fail:
21459 {
21460 if (temp2)
21461 delete arg2;
21462 }
21463 return NULL;
21464 }
21465
21466
21467 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
21468 PyObject *resultobj;
21469 wxDateTime *arg1 = (wxDateTime *) 0 ;
21470 wxString *arg2 = 0 ;
21471 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21472 wxString *arg3 = (wxString *) &arg3_defvalue ;
21473 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21474 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21475 int result;
21476 bool temp2 = false ;
21477 bool temp3 = false ;
21478 PyObject * obj0 = 0 ;
21479 PyObject * obj1 = 0 ;
21480 PyObject * obj2 = 0 ;
21481 PyObject * obj3 = 0 ;
21482 char *kwnames[] = {
21483 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21484 };
21485
21486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21489 {
21490 arg2 = wxString_in_helper(obj1);
21491 if (arg2 == NULL) SWIG_fail;
21492 temp2 = true;
21493 }
21494 if (obj2) {
21495 {
21496 arg3 = wxString_in_helper(obj2);
21497 if (arg3 == NULL) SWIG_fail;
21498 temp3 = true;
21499 }
21500 }
21501 if (obj3) {
21502 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21503 SWIG_POINTER_EXCEPTION | 0)) == -1)
21504 SWIG_fail;
21505 if (arg4 == NULL) {
21506 PyErr_SetString(PyExc_TypeError,"null reference");
21507 SWIG_fail;
21508 }
21509 }
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21513
21514 wxPyEndAllowThreads(__tstate);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 resultobj = SWIG_From_int((int)result);
21518 {
21519 if (temp2)
21520 delete arg2;
21521 }
21522 {
21523 if (temp3)
21524 delete arg3;
21525 }
21526 return resultobj;
21527 fail:
21528 {
21529 if (temp2)
21530 delete arg2;
21531 }
21532 {
21533 if (temp3)
21534 delete arg3;
21535 }
21536 return NULL;
21537 }
21538
21539
21540 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
21541 PyObject *resultobj;
21542 wxDateTime *arg1 = (wxDateTime *) 0 ;
21543 wxString *arg2 = 0 ;
21544 int result;
21545 bool temp2 = false ;
21546 PyObject * obj0 = 0 ;
21547 PyObject * obj1 = 0 ;
21548 char *kwnames[] = {
21549 (char *) "self",(char *) "datetime", NULL
21550 };
21551
21552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21555 {
21556 arg2 = wxString_in_helper(obj1);
21557 if (arg2 == NULL) SWIG_fail;
21558 temp2 = true;
21559 }
21560 {
21561 PyThreadState* __tstate = wxPyBeginAllowThreads();
21562 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21563
21564 wxPyEndAllowThreads(__tstate);
21565 if (PyErr_Occurred()) SWIG_fail;
21566 }
21567 resultobj = SWIG_From_int((int)result);
21568 {
21569 if (temp2)
21570 delete arg2;
21571 }
21572 return resultobj;
21573 fail:
21574 {
21575 if (temp2)
21576 delete arg2;
21577 }
21578 return NULL;
21579 }
21580
21581
21582 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
21583 PyObject *resultobj;
21584 wxDateTime *arg1 = (wxDateTime *) 0 ;
21585 wxString *arg2 = 0 ;
21586 int result;
21587 bool temp2 = false ;
21588 PyObject * obj0 = 0 ;
21589 PyObject * obj1 = 0 ;
21590 char *kwnames[] = {
21591 (char *) "self",(char *) "date", NULL
21592 };
21593
21594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21597 {
21598 arg2 = wxString_in_helper(obj1);
21599 if (arg2 == NULL) SWIG_fail;
21600 temp2 = true;
21601 }
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21605
21606 wxPyEndAllowThreads(__tstate);
21607 if (PyErr_Occurred()) SWIG_fail;
21608 }
21609 resultobj = SWIG_From_int((int)result);
21610 {
21611 if (temp2)
21612 delete arg2;
21613 }
21614 return resultobj;
21615 fail:
21616 {
21617 if (temp2)
21618 delete arg2;
21619 }
21620 return NULL;
21621 }
21622
21623
21624 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
21625 PyObject *resultobj;
21626 wxDateTime *arg1 = (wxDateTime *) 0 ;
21627 wxString *arg2 = 0 ;
21628 int result;
21629 bool temp2 = false ;
21630 PyObject * obj0 = 0 ;
21631 PyObject * obj1 = 0 ;
21632 char *kwnames[] = {
21633 (char *) "self",(char *) "time", NULL
21634 };
21635
21636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21639 {
21640 arg2 = wxString_in_helper(obj1);
21641 if (arg2 == NULL) SWIG_fail;
21642 temp2 = true;
21643 }
21644 {
21645 PyThreadState* __tstate = wxPyBeginAllowThreads();
21646 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21647
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_From_int((int)result);
21652 {
21653 if (temp2)
21654 delete arg2;
21655 }
21656 return resultobj;
21657 fail:
21658 {
21659 if (temp2)
21660 delete arg2;
21661 }
21662 return NULL;
21663 }
21664
21665
21666 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
21667 PyObject *resultobj;
21668 wxDateTime *arg1 = (wxDateTime *) 0 ;
21669 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21670 wxString *arg2 = (wxString *) &arg2_defvalue ;
21671 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21672 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21673 wxString result;
21674 bool temp2 = false ;
21675 bool temp3 = false ;
21676 PyObject * obj0 = 0 ;
21677 PyObject * obj1 = 0 ;
21678 PyObject * obj2 = 0 ;
21679 char *kwnames[] = {
21680 (char *) "self",(char *) "format",(char *) "tz", NULL
21681 };
21682
21683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21686 if (obj1) {
21687 {
21688 arg2 = wxString_in_helper(obj1);
21689 if (arg2 == NULL) SWIG_fail;
21690 temp2 = true;
21691 }
21692 }
21693 if (obj2) {
21694 {
21695 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21696 temp3 = true;
21697 }
21698 }
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21702
21703 wxPyEndAllowThreads(__tstate);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 }
21706 {
21707 #if wxUSE_UNICODE
21708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21709 #else
21710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21711 #endif
21712 }
21713 {
21714 if (temp2)
21715 delete arg2;
21716 }
21717 {
21718 if (temp3) delete arg3;
21719 }
21720 return resultobj;
21721 fail:
21722 {
21723 if (temp2)
21724 delete arg2;
21725 }
21726 {
21727 if (temp3) delete arg3;
21728 }
21729 return NULL;
21730 }
21731
21732
21733 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
21734 PyObject *resultobj;
21735 wxDateTime *arg1 = (wxDateTime *) 0 ;
21736 wxString result;
21737 PyObject * obj0 = 0 ;
21738 char *kwnames[] = {
21739 (char *) "self", NULL
21740 };
21741
21742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 result = ((wxDateTime const *)arg1)->FormatDate();
21748
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 {
21753 #if wxUSE_UNICODE
21754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21755 #else
21756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21757 #endif
21758 }
21759 return resultobj;
21760 fail:
21761 return NULL;
21762 }
21763
21764
21765 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
21766 PyObject *resultobj;
21767 wxDateTime *arg1 = (wxDateTime *) 0 ;
21768 wxString result;
21769 PyObject * obj0 = 0 ;
21770 char *kwnames[] = {
21771 (char *) "self", NULL
21772 };
21773
21774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21777 {
21778 PyThreadState* __tstate = wxPyBeginAllowThreads();
21779 result = ((wxDateTime const *)arg1)->FormatTime();
21780
21781 wxPyEndAllowThreads(__tstate);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 }
21784 {
21785 #if wxUSE_UNICODE
21786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21787 #else
21788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21789 #endif
21790 }
21791 return resultobj;
21792 fail:
21793 return NULL;
21794 }
21795
21796
21797 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
21798 PyObject *resultobj;
21799 wxDateTime *arg1 = (wxDateTime *) 0 ;
21800 wxString result;
21801 PyObject * obj0 = 0 ;
21802 char *kwnames[] = {
21803 (char *) "self", NULL
21804 };
21805
21806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21809 {
21810 PyThreadState* __tstate = wxPyBeginAllowThreads();
21811 result = ((wxDateTime const *)arg1)->FormatISODate();
21812
21813 wxPyEndAllowThreads(__tstate);
21814 if (PyErr_Occurred()) SWIG_fail;
21815 }
21816 {
21817 #if wxUSE_UNICODE
21818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21819 #else
21820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21821 #endif
21822 }
21823 return resultobj;
21824 fail:
21825 return NULL;
21826 }
21827
21828
21829 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
21830 PyObject *resultobj;
21831 wxDateTime *arg1 = (wxDateTime *) 0 ;
21832 wxString result;
21833 PyObject * obj0 = 0 ;
21834 char *kwnames[] = {
21835 (char *) "self", NULL
21836 };
21837
21838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21841 {
21842 PyThreadState* __tstate = wxPyBeginAllowThreads();
21843 result = ((wxDateTime const *)arg1)->FormatISOTime();
21844
21845 wxPyEndAllowThreads(__tstate);
21846 if (PyErr_Occurred()) SWIG_fail;
21847 }
21848 {
21849 #if wxUSE_UNICODE
21850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21851 #else
21852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21853 #endif
21854 }
21855 return resultobj;
21856 fail:
21857 return NULL;
21858 }
21859
21860
21861 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
21862 PyObject *obj;
21863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21864 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21865 Py_INCREF(obj);
21866 return Py_BuildValue((char *)"");
21867 }
21868 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
21869 PyObject *resultobj;
21870 long arg1 ;
21871 wxTimeSpan result;
21872 PyObject * obj0 = 0 ;
21873 char *kwnames[] = {
21874 (char *) "sec", NULL
21875 };
21876
21877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21878 arg1 = (long)SWIG_As_long(obj0);
21879 if (PyErr_Occurred()) SWIG_fail;
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 result = wxTimeSpan::Seconds(arg1);
21883
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 {
21888 wxTimeSpan * resultptr;
21889 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21890 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21891 }
21892 return resultobj;
21893 fail:
21894 return NULL;
21895 }
21896
21897
21898 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
21899 PyObject *resultobj;
21900 wxTimeSpan result;
21901 char *kwnames[] = {
21902 NULL
21903 };
21904
21905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21906 {
21907 PyThreadState* __tstate = wxPyBeginAllowThreads();
21908 result = wxTimeSpan::Second();
21909
21910 wxPyEndAllowThreads(__tstate);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 }
21913 {
21914 wxTimeSpan * resultptr;
21915 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21916 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21917 }
21918 return resultobj;
21919 fail:
21920 return NULL;
21921 }
21922
21923
21924 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
21925 PyObject *resultobj;
21926 long arg1 ;
21927 wxTimeSpan result;
21928 PyObject * obj0 = 0 ;
21929 char *kwnames[] = {
21930 (char *) "min", NULL
21931 };
21932
21933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21934 arg1 = (long)SWIG_As_long(obj0);
21935 if (PyErr_Occurred()) SWIG_fail;
21936 {
21937 PyThreadState* __tstate = wxPyBeginAllowThreads();
21938 result = wxTimeSpan::Minutes(arg1);
21939
21940 wxPyEndAllowThreads(__tstate);
21941 if (PyErr_Occurred()) SWIG_fail;
21942 }
21943 {
21944 wxTimeSpan * resultptr;
21945 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21946 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21947 }
21948 return resultobj;
21949 fail:
21950 return NULL;
21951 }
21952
21953
21954 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
21955 PyObject *resultobj;
21956 wxTimeSpan result;
21957 char *kwnames[] = {
21958 NULL
21959 };
21960
21961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = wxTimeSpan::Minute();
21965
21966 wxPyEndAllowThreads(__tstate);
21967 if (PyErr_Occurred()) SWIG_fail;
21968 }
21969 {
21970 wxTimeSpan * resultptr;
21971 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21972 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21973 }
21974 return resultobj;
21975 fail:
21976 return NULL;
21977 }
21978
21979
21980 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
21981 PyObject *resultobj;
21982 long arg1 ;
21983 wxTimeSpan result;
21984 PyObject * obj0 = 0 ;
21985 char *kwnames[] = {
21986 (char *) "hours", NULL
21987 };
21988
21989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21990 arg1 = (long)SWIG_As_long(obj0);
21991 if (PyErr_Occurred()) SWIG_fail;
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = wxTimeSpan::Hours(arg1);
21995
21996 wxPyEndAllowThreads(__tstate);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 }
21999 {
22000 wxTimeSpan * resultptr;
22001 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22003 }
22004 return resultobj;
22005 fail:
22006 return NULL;
22007 }
22008
22009
22010 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
22011 PyObject *resultobj;
22012 wxTimeSpan result;
22013 char *kwnames[] = {
22014 NULL
22015 };
22016
22017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
22018 {
22019 PyThreadState* __tstate = wxPyBeginAllowThreads();
22020 result = wxTimeSpan::Hour();
22021
22022 wxPyEndAllowThreads(__tstate);
22023 if (PyErr_Occurred()) SWIG_fail;
22024 }
22025 {
22026 wxTimeSpan * resultptr;
22027 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22028 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22029 }
22030 return resultobj;
22031 fail:
22032 return NULL;
22033 }
22034
22035
22036 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
22037 PyObject *resultobj;
22038 long arg1 ;
22039 wxTimeSpan result;
22040 PyObject * obj0 = 0 ;
22041 char *kwnames[] = {
22042 (char *) "days", NULL
22043 };
22044
22045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
22046 arg1 = (long)SWIG_As_long(obj0);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 {
22049 PyThreadState* __tstate = wxPyBeginAllowThreads();
22050 result = wxTimeSpan::Days(arg1);
22051
22052 wxPyEndAllowThreads(__tstate);
22053 if (PyErr_Occurred()) SWIG_fail;
22054 }
22055 {
22056 wxTimeSpan * resultptr;
22057 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22058 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22059 }
22060 return resultobj;
22061 fail:
22062 return NULL;
22063 }
22064
22065
22066 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
22067 PyObject *resultobj;
22068 wxTimeSpan result;
22069 char *kwnames[] = {
22070 NULL
22071 };
22072
22073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = wxTimeSpan::Day();
22077
22078 wxPyEndAllowThreads(__tstate);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 }
22081 {
22082 wxTimeSpan * resultptr;
22083 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22085 }
22086 return resultobj;
22087 fail:
22088 return NULL;
22089 }
22090
22091
22092 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
22093 PyObject *resultobj;
22094 long arg1 ;
22095 wxTimeSpan result;
22096 PyObject * obj0 = 0 ;
22097 char *kwnames[] = {
22098 (char *) "days", NULL
22099 };
22100
22101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
22102 arg1 = (long)SWIG_As_long(obj0);
22103 if (PyErr_Occurred()) SWIG_fail;
22104 {
22105 PyThreadState* __tstate = wxPyBeginAllowThreads();
22106 result = wxTimeSpan::Weeks(arg1);
22107
22108 wxPyEndAllowThreads(__tstate);
22109 if (PyErr_Occurred()) SWIG_fail;
22110 }
22111 {
22112 wxTimeSpan * resultptr;
22113 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22115 }
22116 return resultobj;
22117 fail:
22118 return NULL;
22119 }
22120
22121
22122 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
22123 PyObject *resultobj;
22124 wxTimeSpan result;
22125 char *kwnames[] = {
22126 NULL
22127 };
22128
22129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
22130 {
22131 PyThreadState* __tstate = wxPyBeginAllowThreads();
22132 result = wxTimeSpan::Week();
22133
22134 wxPyEndAllowThreads(__tstate);
22135 if (PyErr_Occurred()) SWIG_fail;
22136 }
22137 {
22138 wxTimeSpan * resultptr;
22139 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22140 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22141 }
22142 return resultobj;
22143 fail:
22144 return NULL;
22145 }
22146
22147
22148 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
22149 PyObject *resultobj;
22150 long arg1 = (long) 0 ;
22151 long arg2 = (long) 0 ;
22152 long arg3 = (long) 0 ;
22153 long arg4 = (long) 0 ;
22154 wxTimeSpan *result;
22155 PyObject * obj0 = 0 ;
22156 PyObject * obj1 = 0 ;
22157 PyObject * obj2 = 0 ;
22158 PyObject * obj3 = 0 ;
22159 char *kwnames[] = {
22160 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
22161 };
22162
22163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22164 if (obj0) {
22165 arg1 = (long)SWIG_As_long(obj0);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 if (obj1) {
22169 arg2 = (long)SWIG_As_long(obj1);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
22172 if (obj2) {
22173 arg3 = (long)SWIG_As_long(obj2);
22174 if (PyErr_Occurred()) SWIG_fail;
22175 }
22176 if (obj3) {
22177 arg4 = (long)SWIG_As_long(obj3);
22178 if (PyErr_Occurred()) SWIG_fail;
22179 }
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
22183
22184 wxPyEndAllowThreads(__tstate);
22185 if (PyErr_Occurred()) SWIG_fail;
22186 }
22187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22188 return resultobj;
22189 fail:
22190 return NULL;
22191 }
22192
22193
22194 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
22195 PyObject *resultobj;
22196 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22197 PyObject * obj0 = 0 ;
22198 char *kwnames[] = {
22199 (char *) "self", NULL
22200 };
22201
22202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
22203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 delete arg1;
22208
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 Py_INCREF(Py_None); resultobj = Py_None;
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
22220 PyObject *resultobj;
22221 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22222 wxTimeSpan *arg2 = 0 ;
22223 wxTimeSpan *result;
22224 PyObject * obj0 = 0 ;
22225 PyObject * obj1 = 0 ;
22226 char *kwnames[] = {
22227 (char *) "self",(char *) "diff", NULL
22228 };
22229
22230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22233 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22234 SWIG_POINTER_EXCEPTION | 0)) == -1)
22235 SWIG_fail;
22236 if (arg2 == NULL) {
22237 PyErr_SetString(PyExc_TypeError,"null reference");
22238 SWIG_fail;
22239 }
22240 {
22241 PyThreadState* __tstate = wxPyBeginAllowThreads();
22242 {
22243 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
22244 result = (wxTimeSpan *) &_result_ref;
22245 }
22246
22247 wxPyEndAllowThreads(__tstate);
22248 if (PyErr_Occurred()) SWIG_fail;
22249 }
22250 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22251 return resultobj;
22252 fail:
22253 return NULL;
22254 }
22255
22256
22257 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
22258 PyObject *resultobj;
22259 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22260 wxTimeSpan *arg2 = 0 ;
22261 wxTimeSpan *result;
22262 PyObject * obj0 = 0 ;
22263 PyObject * obj1 = 0 ;
22264 char *kwnames[] = {
22265 (char *) "self",(char *) "diff", NULL
22266 };
22267
22268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22271 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22272 SWIG_POINTER_EXCEPTION | 0)) == -1)
22273 SWIG_fail;
22274 if (arg2 == NULL) {
22275 PyErr_SetString(PyExc_TypeError,"null reference");
22276 SWIG_fail;
22277 }
22278 {
22279 PyThreadState* __tstate = wxPyBeginAllowThreads();
22280 {
22281 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
22282 result = (wxTimeSpan *) &_result_ref;
22283 }
22284
22285 wxPyEndAllowThreads(__tstate);
22286 if (PyErr_Occurred()) SWIG_fail;
22287 }
22288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj;
22297 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22298 int arg2 ;
22299 wxTimeSpan *result;
22300 PyObject * obj0 = 0 ;
22301 PyObject * obj1 = 0 ;
22302 char *kwnames[] = {
22303 (char *) "self",(char *) "n", NULL
22304 };
22305
22306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
22307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22309 arg2 = (int)SWIG_As_int(obj1);
22310 if (PyErr_Occurred()) SWIG_fail;
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 {
22314 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
22315 result = (wxTimeSpan *) &_result_ref;
22316 }
22317
22318 wxPyEndAllowThreads(__tstate);
22319 if (PyErr_Occurred()) SWIG_fail;
22320 }
22321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22322 return resultobj;
22323 fail:
22324 return NULL;
22325 }
22326
22327
22328 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
22329 PyObject *resultobj;
22330 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22331 wxTimeSpan *result;
22332 PyObject * obj0 = 0 ;
22333 char *kwnames[] = {
22334 (char *) "self", NULL
22335 };
22336
22337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
22338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22340 {
22341 PyThreadState* __tstate = wxPyBeginAllowThreads();
22342 {
22343 wxTimeSpan &_result_ref = (arg1)->Neg();
22344 result = (wxTimeSpan *) &_result_ref;
22345 }
22346
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj;
22359 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22360 wxTimeSpan result;
22361 PyObject * obj0 = 0 ;
22362 char *kwnames[] = {
22363 (char *) "self", NULL
22364 };
22365
22366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
22367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22369 {
22370 PyThreadState* __tstate = wxPyBeginAllowThreads();
22371 result = ((wxTimeSpan const *)arg1)->Abs();
22372
22373 wxPyEndAllowThreads(__tstate);
22374 if (PyErr_Occurred()) SWIG_fail;
22375 }
22376 {
22377 wxTimeSpan * resultptr;
22378 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22380 }
22381 return resultobj;
22382 fail:
22383 return NULL;
22384 }
22385
22386
22387 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj;
22389 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22390 wxTimeSpan *arg2 = 0 ;
22391 wxTimeSpan *result;
22392 PyObject * obj0 = 0 ;
22393 PyObject * obj1 = 0 ;
22394 char *kwnames[] = {
22395 (char *) "self",(char *) "diff", NULL
22396 };
22397
22398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
22399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22400 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22402 SWIG_POINTER_EXCEPTION | 0)) == -1)
22403 SWIG_fail;
22404 if (arg2 == NULL) {
22405 PyErr_SetString(PyExc_TypeError,"null reference");
22406 SWIG_fail;
22407 }
22408 {
22409 PyThreadState* __tstate = wxPyBeginAllowThreads();
22410 {
22411 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22412 result = (wxTimeSpan *) &_result_ref;
22413 }
22414
22415 wxPyEndAllowThreads(__tstate);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 }
22418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22419 return resultobj;
22420 fail:
22421 return NULL;
22422 }
22423
22424
22425 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
22426 PyObject *resultobj;
22427 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22428 wxTimeSpan *arg2 = 0 ;
22429 wxTimeSpan *result;
22430 PyObject * obj0 = 0 ;
22431 PyObject * obj1 = 0 ;
22432 char *kwnames[] = {
22433 (char *) "self",(char *) "diff", NULL
22434 };
22435
22436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22438 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22440 SWIG_POINTER_EXCEPTION | 0)) == -1)
22441 SWIG_fail;
22442 if (arg2 == NULL) {
22443 PyErr_SetString(PyExc_TypeError,"null reference");
22444 SWIG_fail;
22445 }
22446 {
22447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22448 {
22449 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22450 result = (wxTimeSpan *) &_result_ref;
22451 }
22452
22453 wxPyEndAllowThreads(__tstate);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 }
22456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22457 return resultobj;
22458 fail:
22459 return NULL;
22460 }
22461
22462
22463 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
22464 PyObject *resultobj;
22465 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22466 int arg2 ;
22467 wxTimeSpan *result;
22468 PyObject * obj0 = 0 ;
22469 PyObject * obj1 = 0 ;
22470 char *kwnames[] = {
22471 (char *) "self",(char *) "n", NULL
22472 };
22473
22474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22476 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22477 arg2 = (int)SWIG_As_int(obj1);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 {
22480 PyThreadState* __tstate = wxPyBeginAllowThreads();
22481 {
22482 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22483 result = (wxTimeSpan *) &_result_ref;
22484 }
22485
22486 wxPyEndAllowThreads(__tstate);
22487 if (PyErr_Occurred()) SWIG_fail;
22488 }
22489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22490 return resultobj;
22491 fail:
22492 return NULL;
22493 }
22494
22495
22496 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
22497 PyObject *resultobj;
22498 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22499 wxTimeSpan *result;
22500 PyObject * obj0 = 0 ;
22501 char *kwnames[] = {
22502 (char *) "self", NULL
22503 };
22504
22505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22508 {
22509 PyThreadState* __tstate = wxPyBeginAllowThreads();
22510 {
22511 wxTimeSpan &_result_ref = (arg1)->operator -();
22512 result = (wxTimeSpan *) &_result_ref;
22513 }
22514
22515 wxPyEndAllowThreads(__tstate);
22516 if (PyErr_Occurred()) SWIG_fail;
22517 }
22518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22519 return resultobj;
22520 fail:
22521 return NULL;
22522 }
22523
22524
22525 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
22526 PyObject *resultobj;
22527 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22528 wxTimeSpan *arg2 = 0 ;
22529 wxTimeSpan result;
22530 PyObject * obj0 = 0 ;
22531 PyObject * obj1 = 0 ;
22532 char *kwnames[] = {
22533 (char *) "self",(char *) "other", NULL
22534 };
22535
22536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22539 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22540 SWIG_POINTER_EXCEPTION | 0)) == -1)
22541 SWIG_fail;
22542 if (arg2 == NULL) {
22543 PyErr_SetString(PyExc_TypeError,"null reference");
22544 SWIG_fail;
22545 }
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22549
22550 wxPyEndAllowThreads(__tstate);
22551 if (PyErr_Occurred()) SWIG_fail;
22552 }
22553 {
22554 wxTimeSpan * resultptr;
22555 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22556 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22557 }
22558 return resultobj;
22559 fail:
22560 return NULL;
22561 }
22562
22563
22564 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
22565 PyObject *resultobj;
22566 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22567 wxTimeSpan *arg2 = 0 ;
22568 wxTimeSpan result;
22569 PyObject * obj0 = 0 ;
22570 PyObject * obj1 = 0 ;
22571 char *kwnames[] = {
22572 (char *) "self",(char *) "other", NULL
22573 };
22574
22575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22579 SWIG_POINTER_EXCEPTION | 0)) == -1)
22580 SWIG_fail;
22581 if (arg2 == NULL) {
22582 PyErr_SetString(PyExc_TypeError,"null reference");
22583 SWIG_fail;
22584 }
22585 {
22586 PyThreadState* __tstate = wxPyBeginAllowThreads();
22587 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22588
22589 wxPyEndAllowThreads(__tstate);
22590 if (PyErr_Occurred()) SWIG_fail;
22591 }
22592 {
22593 wxTimeSpan * resultptr;
22594 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22595 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22596 }
22597 return resultobj;
22598 fail:
22599 return NULL;
22600 }
22601
22602
22603 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
22604 PyObject *resultobj;
22605 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22606 int arg2 ;
22607 wxTimeSpan result;
22608 PyObject * obj0 = 0 ;
22609 PyObject * obj1 = 0 ;
22610 char *kwnames[] = {
22611 (char *) "self",(char *) "n", NULL
22612 };
22613
22614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22617 arg2 = (int)SWIG_As_int(obj1);
22618 if (PyErr_Occurred()) SWIG_fail;
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = wxTimeSpan___mul__(arg1,arg2);
22622
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 {
22627 wxTimeSpan * resultptr;
22628 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22629 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22630 }
22631 return resultobj;
22632 fail:
22633 return NULL;
22634 }
22635
22636
22637 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
22638 PyObject *resultobj;
22639 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22640 int arg2 ;
22641 wxTimeSpan result;
22642 PyObject * obj0 = 0 ;
22643 PyObject * obj1 = 0 ;
22644 char *kwnames[] = {
22645 (char *) "self",(char *) "n", NULL
22646 };
22647
22648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22651 arg2 = (int)SWIG_As_int(obj1);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 {
22654 PyThreadState* __tstate = wxPyBeginAllowThreads();
22655 result = wxTimeSpan___rmul__(arg1,arg2);
22656
22657 wxPyEndAllowThreads(__tstate);
22658 if (PyErr_Occurred()) SWIG_fail;
22659 }
22660 {
22661 wxTimeSpan * resultptr;
22662 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22663 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22664 }
22665 return resultobj;
22666 fail:
22667 return NULL;
22668 }
22669
22670
22671 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
22672 PyObject *resultobj;
22673 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22674 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22675 bool result;
22676 PyObject * obj0 = 0 ;
22677 PyObject * obj1 = 0 ;
22678 char *kwnames[] = {
22679 (char *) "self",(char *) "other", NULL
22680 };
22681
22682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22685 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22687 {
22688 PyThreadState* __tstate = wxPyBeginAllowThreads();
22689 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22690
22691 wxPyEndAllowThreads(__tstate);
22692 if (PyErr_Occurred()) SWIG_fail;
22693 }
22694 {
22695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22696 }
22697 return resultobj;
22698 fail:
22699 return NULL;
22700 }
22701
22702
22703 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
22704 PyObject *resultobj;
22705 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22706 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22707 bool result;
22708 PyObject * obj0 = 0 ;
22709 PyObject * obj1 = 0 ;
22710 char *kwnames[] = {
22711 (char *) "self",(char *) "other", NULL
22712 };
22713
22714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22719 {
22720 PyThreadState* __tstate = wxPyBeginAllowThreads();
22721 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22722
22723 wxPyEndAllowThreads(__tstate);
22724 if (PyErr_Occurred()) SWIG_fail;
22725 }
22726 {
22727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22728 }
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj;
22737 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22738 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22739 bool result;
22740 PyObject * obj0 = 0 ;
22741 PyObject * obj1 = 0 ;
22742 char *kwnames[] = {
22743 (char *) "self",(char *) "other", NULL
22744 };
22745
22746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22751 {
22752 PyThreadState* __tstate = wxPyBeginAllowThreads();
22753 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22754
22755 wxPyEndAllowThreads(__tstate);
22756 if (PyErr_Occurred()) SWIG_fail;
22757 }
22758 {
22759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22760 }
22761 return resultobj;
22762 fail:
22763 return NULL;
22764 }
22765
22766
22767 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
22768 PyObject *resultobj;
22769 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22770 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22771 bool result;
22772 PyObject * obj0 = 0 ;
22773 PyObject * obj1 = 0 ;
22774 char *kwnames[] = {
22775 (char *) "self",(char *) "other", NULL
22776 };
22777
22778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22783 {
22784 PyThreadState* __tstate = wxPyBeginAllowThreads();
22785 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22786
22787 wxPyEndAllowThreads(__tstate);
22788 if (PyErr_Occurred()) SWIG_fail;
22789 }
22790 {
22791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22792 }
22793 return resultobj;
22794 fail:
22795 return NULL;
22796 }
22797
22798
22799 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
22800 PyObject *resultobj;
22801 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22802 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22803 bool result;
22804 PyObject * obj0 = 0 ;
22805 PyObject * obj1 = 0 ;
22806 char *kwnames[] = {
22807 (char *) "self",(char *) "other", NULL
22808 };
22809
22810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22815 {
22816 PyThreadState* __tstate = wxPyBeginAllowThreads();
22817 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22818
22819 wxPyEndAllowThreads(__tstate);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 {
22823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22824 }
22825 return resultobj;
22826 fail:
22827 return NULL;
22828 }
22829
22830
22831 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
22832 PyObject *resultobj;
22833 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22834 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22835 bool result;
22836 PyObject * obj0 = 0 ;
22837 PyObject * obj1 = 0 ;
22838 char *kwnames[] = {
22839 (char *) "self",(char *) "other", NULL
22840 };
22841
22842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22850
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 {
22855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22856 }
22857 return resultobj;
22858 fail:
22859 return NULL;
22860 }
22861
22862
22863 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
22864 PyObject *resultobj;
22865 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22866 bool result;
22867 PyObject * obj0 = 0 ;
22868 char *kwnames[] = {
22869 (char *) "self", NULL
22870 };
22871
22872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22878
22879 wxPyEndAllowThreads(__tstate);
22880 if (PyErr_Occurred()) SWIG_fail;
22881 }
22882 {
22883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22884 }
22885 return resultobj;
22886 fail:
22887 return NULL;
22888 }
22889
22890
22891 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
22892 PyObject *resultobj;
22893 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22894 bool result;
22895 PyObject * obj0 = 0 ;
22896 char *kwnames[] = {
22897 (char *) "self", NULL
22898 };
22899
22900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
22905 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22906
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 {
22911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22912 }
22913 return resultobj;
22914 fail:
22915 return NULL;
22916 }
22917
22918
22919 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
22920 PyObject *resultobj;
22921 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22922 bool result;
22923 PyObject * obj0 = 0 ;
22924 char *kwnames[] = {
22925 (char *) "self", NULL
22926 };
22927
22928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22931 {
22932 PyThreadState* __tstate = wxPyBeginAllowThreads();
22933 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22934
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 {
22939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22940 }
22941 return resultobj;
22942 fail:
22943 return NULL;
22944 }
22945
22946
22947 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
22948 PyObject *resultobj;
22949 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22950 wxTimeSpan *arg2 = 0 ;
22951 bool result;
22952 PyObject * obj0 = 0 ;
22953 PyObject * obj1 = 0 ;
22954 char *kwnames[] = {
22955 (char *) "self",(char *) "ts", NULL
22956 };
22957
22958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22961 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22962 SWIG_POINTER_EXCEPTION | 0)) == -1)
22963 SWIG_fail;
22964 if (arg2 == NULL) {
22965 PyErr_SetString(PyExc_TypeError,"null reference");
22966 SWIG_fail;
22967 }
22968 {
22969 PyThreadState* __tstate = wxPyBeginAllowThreads();
22970 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22971
22972 wxPyEndAllowThreads(__tstate);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 }
22975 {
22976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22977 }
22978 return resultobj;
22979 fail:
22980 return NULL;
22981 }
22982
22983
22984 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
22985 PyObject *resultobj;
22986 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22987 wxTimeSpan *arg2 = 0 ;
22988 bool result;
22989 PyObject * obj0 = 0 ;
22990 PyObject * obj1 = 0 ;
22991 char *kwnames[] = {
22992 (char *) "self",(char *) "ts", NULL
22993 };
22994
22995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22999 SWIG_POINTER_EXCEPTION | 0)) == -1)
23000 SWIG_fail;
23001 if (arg2 == NULL) {
23002 PyErr_SetString(PyExc_TypeError,"null reference");
23003 SWIG_fail;
23004 }
23005 {
23006 PyThreadState* __tstate = wxPyBeginAllowThreads();
23007 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
23008
23009 wxPyEndAllowThreads(__tstate);
23010 if (PyErr_Occurred()) SWIG_fail;
23011 }
23012 {
23013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23014 }
23015 return resultobj;
23016 fail:
23017 return NULL;
23018 }
23019
23020
23021 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj;
23023 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23024 wxTimeSpan *arg2 = 0 ;
23025 bool result;
23026 PyObject * obj0 = 0 ;
23027 PyObject * obj1 = 0 ;
23028 char *kwnames[] = {
23029 (char *) "self",(char *) "t", NULL
23030 };
23031
23032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
23033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23035 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
23036 SWIG_POINTER_EXCEPTION | 0)) == -1)
23037 SWIG_fail;
23038 if (arg2 == NULL) {
23039 PyErr_SetString(PyExc_TypeError,"null reference");
23040 SWIG_fail;
23041 }
23042 {
23043 PyThreadState* __tstate = wxPyBeginAllowThreads();
23044 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
23045
23046 wxPyEndAllowThreads(__tstate);
23047 if (PyErr_Occurred()) SWIG_fail;
23048 }
23049 {
23050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23051 }
23052 return resultobj;
23053 fail:
23054 return NULL;
23055 }
23056
23057
23058 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj;
23060 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23061 int result;
23062 PyObject * obj0 = 0 ;
23063 char *kwnames[] = {
23064 (char *) "self", NULL
23065 };
23066
23067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
23068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23070 {
23071 PyThreadState* __tstate = wxPyBeginAllowThreads();
23072 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
23073
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 resultobj = SWIG_From_int((int)result);
23078 return resultobj;
23079 fail:
23080 return NULL;
23081 }
23082
23083
23084 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj;
23086 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23087 int result;
23088 PyObject * obj0 = 0 ;
23089 char *kwnames[] = {
23090 (char *) "self", NULL
23091 };
23092
23093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
23094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23096 {
23097 PyThreadState* __tstate = wxPyBeginAllowThreads();
23098 result = (int)((wxTimeSpan const *)arg1)->GetDays();
23099
23100 wxPyEndAllowThreads(__tstate);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 }
23103 resultobj = SWIG_From_int((int)result);
23104 return resultobj;
23105 fail:
23106 return NULL;
23107 }
23108
23109
23110 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
23111 PyObject *resultobj;
23112 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23113 int result;
23114 PyObject * obj0 = 0 ;
23115 char *kwnames[] = {
23116 (char *) "self", NULL
23117 };
23118
23119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
23120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23122 {
23123 PyThreadState* __tstate = wxPyBeginAllowThreads();
23124 result = (int)((wxTimeSpan const *)arg1)->GetHours();
23125
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_From_int((int)result);
23130 return resultobj;
23131 fail:
23132 return NULL;
23133 }
23134
23135
23136 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
23137 PyObject *resultobj;
23138 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23139 int result;
23140 PyObject * obj0 = 0 ;
23141 char *kwnames[] = {
23142 (char *) "self", NULL
23143 };
23144
23145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
23146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23148 {
23149 PyThreadState* __tstate = wxPyBeginAllowThreads();
23150 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
23151
23152 wxPyEndAllowThreads(__tstate);
23153 if (PyErr_Occurred()) SWIG_fail;
23154 }
23155 resultobj = SWIG_From_int((int)result);
23156 return resultobj;
23157 fail:
23158 return NULL;
23159 }
23160
23161
23162 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
23163 PyObject *resultobj;
23164 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23165 wxLongLong result;
23166 PyObject * obj0 = 0 ;
23167 char *kwnames[] = {
23168 (char *) "self", NULL
23169 };
23170
23171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
23172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23174 {
23175 PyThreadState* __tstate = wxPyBeginAllowThreads();
23176 result = ((wxTimeSpan const *)arg1)->GetSeconds();
23177
23178 wxPyEndAllowThreads(__tstate);
23179 if (PyErr_Occurred()) SWIG_fail;
23180 }
23181 {
23182 PyObject *hi, *lo, *shifter, *shifted;
23183 hi = PyLong_FromLong( (&result)->GetHi() );
23184 lo = PyLong_FromLong( (&result)->GetLo() );
23185 shifter = PyLong_FromLong(32);
23186 shifted = PyNumber_Lshift(hi, shifter);
23187 resultobj = PyNumber_Or(shifted, lo);
23188 Py_DECREF(hi);
23189 Py_DECREF(lo);
23190 Py_DECREF(shifter);
23191 Py_DECREF(shifted);
23192 }
23193 return resultobj;
23194 fail:
23195 return NULL;
23196 }
23197
23198
23199 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
23200 PyObject *resultobj;
23201 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23202 wxLongLong result;
23203 PyObject * obj0 = 0 ;
23204 char *kwnames[] = {
23205 (char *) "self", NULL
23206 };
23207
23208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
23209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23211 {
23212 PyThreadState* __tstate = wxPyBeginAllowThreads();
23213 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
23214
23215 wxPyEndAllowThreads(__tstate);
23216 if (PyErr_Occurred()) SWIG_fail;
23217 }
23218 {
23219 PyObject *hi, *lo, *shifter, *shifted;
23220 hi = PyLong_FromLong( (&result)->GetHi() );
23221 lo = PyLong_FromLong( (&result)->GetLo() );
23222 shifter = PyLong_FromLong(32);
23223 shifted = PyNumber_Lshift(hi, shifter);
23224 resultobj = PyNumber_Or(shifted, lo);
23225 Py_DECREF(hi);
23226 Py_DECREF(lo);
23227 Py_DECREF(shifter);
23228 Py_DECREF(shifted);
23229 }
23230 return resultobj;
23231 fail:
23232 return NULL;
23233 }
23234
23235
23236 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
23237 PyObject *resultobj;
23238 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23239 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
23240 wxString *arg2 = (wxString *) &arg2_defvalue ;
23241 wxString result;
23242 bool temp2 = false ;
23243 PyObject * obj0 = 0 ;
23244 PyObject * obj1 = 0 ;
23245 char *kwnames[] = {
23246 (char *) "self",(char *) "format", NULL
23247 };
23248
23249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
23250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23252 if (obj1) {
23253 {
23254 arg2 = wxString_in_helper(obj1);
23255 if (arg2 == NULL) SWIG_fail;
23256 temp2 = true;
23257 }
23258 }
23259 {
23260 PyThreadState* __tstate = wxPyBeginAllowThreads();
23261 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
23262
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 {
23267 #if wxUSE_UNICODE
23268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23269 #else
23270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23271 #endif
23272 }
23273 {
23274 if (temp2)
23275 delete arg2;
23276 }
23277 return resultobj;
23278 fail:
23279 {
23280 if (temp2)
23281 delete arg2;
23282 }
23283 return NULL;
23284 }
23285
23286
23287 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
23288 PyObject *obj;
23289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23290 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
23291 Py_INCREF(obj);
23292 return Py_BuildValue((char *)"");
23293 }
23294 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23295 PyObject *resultobj;
23296 int arg1 = (int) 0 ;
23297 int arg2 = (int) 0 ;
23298 int arg3 = (int) 0 ;
23299 int arg4 = (int) 0 ;
23300 wxDateSpan *result;
23301 PyObject * obj0 = 0 ;
23302 PyObject * obj1 = 0 ;
23303 PyObject * obj2 = 0 ;
23304 PyObject * obj3 = 0 ;
23305 char *kwnames[] = {
23306 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
23307 };
23308
23309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23310 if (obj0) {
23311 arg1 = (int)SWIG_As_int(obj0);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 if (obj1) {
23315 arg2 = (int)SWIG_As_int(obj1);
23316 if (PyErr_Occurred()) SWIG_fail;
23317 }
23318 if (obj2) {
23319 arg3 = (int)SWIG_As_int(obj2);
23320 if (PyErr_Occurred()) SWIG_fail;
23321 }
23322 if (obj3) {
23323 arg4 = (int)SWIG_As_int(obj3);
23324 if (PyErr_Occurred()) SWIG_fail;
23325 }
23326 {
23327 PyThreadState* __tstate = wxPyBeginAllowThreads();
23328 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
23329
23330 wxPyEndAllowThreads(__tstate);
23331 if (PyErr_Occurred()) SWIG_fail;
23332 }
23333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23334 return resultobj;
23335 fail:
23336 return NULL;
23337 }
23338
23339
23340 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23341 PyObject *resultobj;
23342 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23343 PyObject * obj0 = 0 ;
23344 char *kwnames[] = {
23345 (char *) "self", NULL
23346 };
23347
23348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
23349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 delete arg1;
23354
23355 wxPyEndAllowThreads(__tstate);
23356 if (PyErr_Occurred()) SWIG_fail;
23357 }
23358 Py_INCREF(Py_None); resultobj = Py_None;
23359 return resultobj;
23360 fail:
23361 return NULL;
23362 }
23363
23364
23365 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
23366 PyObject *resultobj;
23367 int arg1 ;
23368 wxDateSpan result;
23369 PyObject * obj0 = 0 ;
23370 char *kwnames[] = {
23371 (char *) "days", NULL
23372 };
23373
23374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
23375 arg1 = (int)SWIG_As_int(obj0);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 {
23378 PyThreadState* __tstate = wxPyBeginAllowThreads();
23379 result = wxDateSpan::Days(arg1);
23380
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 {
23385 wxDateSpan * resultptr;
23386 resultptr = new wxDateSpan((wxDateSpan &) result);
23387 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23388 }
23389 return resultobj;
23390 fail:
23391 return NULL;
23392 }
23393
23394
23395 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
23396 PyObject *resultobj;
23397 wxDateSpan result;
23398 char *kwnames[] = {
23399 NULL
23400 };
23401
23402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23403 {
23404 PyThreadState* __tstate = wxPyBeginAllowThreads();
23405 result = wxDateSpan::Day();
23406
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 {
23411 wxDateSpan * resultptr;
23412 resultptr = new wxDateSpan((wxDateSpan &) result);
23413 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23414 }
23415 return resultobj;
23416 fail:
23417 return NULL;
23418 }
23419
23420
23421 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
23422 PyObject *resultobj;
23423 int arg1 ;
23424 wxDateSpan result;
23425 PyObject * obj0 = 0 ;
23426 char *kwnames[] = {
23427 (char *) "weeks", NULL
23428 };
23429
23430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
23431 arg1 = (int)SWIG_As_int(obj0);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 result = wxDateSpan::Weeks(arg1);
23436
23437 wxPyEndAllowThreads(__tstate);
23438 if (PyErr_Occurred()) SWIG_fail;
23439 }
23440 {
23441 wxDateSpan * resultptr;
23442 resultptr = new wxDateSpan((wxDateSpan &) result);
23443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23444 }
23445 return resultobj;
23446 fail:
23447 return NULL;
23448 }
23449
23450
23451 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
23452 PyObject *resultobj;
23453 wxDateSpan result;
23454 char *kwnames[] = {
23455 NULL
23456 };
23457
23458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23459 {
23460 PyThreadState* __tstate = wxPyBeginAllowThreads();
23461 result = wxDateSpan::Week();
23462
23463 wxPyEndAllowThreads(__tstate);
23464 if (PyErr_Occurred()) SWIG_fail;
23465 }
23466 {
23467 wxDateSpan * resultptr;
23468 resultptr = new wxDateSpan((wxDateSpan &) result);
23469 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23470 }
23471 return resultobj;
23472 fail:
23473 return NULL;
23474 }
23475
23476
23477 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
23478 PyObject *resultobj;
23479 int arg1 ;
23480 wxDateSpan result;
23481 PyObject * obj0 = 0 ;
23482 char *kwnames[] = {
23483 (char *) "mon", NULL
23484 };
23485
23486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
23487 arg1 = (int)SWIG_As_int(obj0);
23488 if (PyErr_Occurred()) SWIG_fail;
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
23491 result = wxDateSpan::Months(arg1);
23492
23493 wxPyEndAllowThreads(__tstate);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 }
23496 {
23497 wxDateSpan * resultptr;
23498 resultptr = new wxDateSpan((wxDateSpan &) result);
23499 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23500 }
23501 return resultobj;
23502 fail:
23503 return NULL;
23504 }
23505
23506
23507 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
23508 PyObject *resultobj;
23509 wxDateSpan result;
23510 char *kwnames[] = {
23511 NULL
23512 };
23513
23514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23515 {
23516 PyThreadState* __tstate = wxPyBeginAllowThreads();
23517 result = wxDateSpan::Month();
23518
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 {
23523 wxDateSpan * resultptr;
23524 resultptr = new wxDateSpan((wxDateSpan &) result);
23525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23526 }
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
23534 PyObject *resultobj;
23535 int arg1 ;
23536 wxDateSpan result;
23537 PyObject * obj0 = 0 ;
23538 char *kwnames[] = {
23539 (char *) "years", NULL
23540 };
23541
23542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23543 arg1 = (int)SWIG_As_int(obj0);
23544 if (PyErr_Occurred()) SWIG_fail;
23545 {
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 result = wxDateSpan::Years(arg1);
23548
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 {
23553 wxDateSpan * resultptr;
23554 resultptr = new wxDateSpan((wxDateSpan &) result);
23555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23556 }
23557 return resultobj;
23558 fail:
23559 return NULL;
23560 }
23561
23562
23563 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
23564 PyObject *resultobj;
23565 wxDateSpan result;
23566 char *kwnames[] = {
23567 NULL
23568 };
23569
23570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = wxDateSpan::Year();
23574
23575 wxPyEndAllowThreads(__tstate);
23576 if (PyErr_Occurred()) SWIG_fail;
23577 }
23578 {
23579 wxDateSpan * resultptr;
23580 resultptr = new wxDateSpan((wxDateSpan &) result);
23581 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23582 }
23583 return resultobj;
23584 fail:
23585 return NULL;
23586 }
23587
23588
23589 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23590 PyObject *resultobj;
23591 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23592 int arg2 ;
23593 wxDateSpan *result;
23594 PyObject * obj0 = 0 ;
23595 PyObject * obj1 = 0 ;
23596 char *kwnames[] = {
23597 (char *) "self",(char *) "n", NULL
23598 };
23599
23600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23603 arg2 = (int)SWIG_As_int(obj1);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 {
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 {
23608 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23609 result = (wxDateSpan *) &_result_ref;
23610 }
23611
23612 wxPyEndAllowThreads(__tstate);
23613 if (PyErr_Occurred()) SWIG_fail;
23614 }
23615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23616 return resultobj;
23617 fail:
23618 return NULL;
23619 }
23620
23621
23622 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23623 PyObject *resultobj;
23624 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23625 int arg2 ;
23626 wxDateSpan *result;
23627 PyObject * obj0 = 0 ;
23628 PyObject * obj1 = 0 ;
23629 char *kwnames[] = {
23630 (char *) "self",(char *) "n", NULL
23631 };
23632
23633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23636 arg2 = (int)SWIG_As_int(obj1);
23637 if (PyErr_Occurred()) SWIG_fail;
23638 {
23639 PyThreadState* __tstate = wxPyBeginAllowThreads();
23640 {
23641 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23642 result = (wxDateSpan *) &_result_ref;
23643 }
23644
23645 wxPyEndAllowThreads(__tstate);
23646 if (PyErr_Occurred()) SWIG_fail;
23647 }
23648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23649 return resultobj;
23650 fail:
23651 return NULL;
23652 }
23653
23654
23655 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23656 PyObject *resultobj;
23657 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23658 int arg2 ;
23659 wxDateSpan *result;
23660 PyObject * obj0 = 0 ;
23661 PyObject * obj1 = 0 ;
23662 char *kwnames[] = {
23663 (char *) "self",(char *) "n", NULL
23664 };
23665
23666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23669 arg2 = (int)SWIG_As_int(obj1);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 {
23672 PyThreadState* __tstate = wxPyBeginAllowThreads();
23673 {
23674 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23675 result = (wxDateSpan *) &_result_ref;
23676 }
23677
23678 wxPyEndAllowThreads(__tstate);
23679 if (PyErr_Occurred()) SWIG_fail;
23680 }
23681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23682 return resultobj;
23683 fail:
23684 return NULL;
23685 }
23686
23687
23688 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23689 PyObject *resultobj;
23690 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23691 int arg2 ;
23692 wxDateSpan *result;
23693 PyObject * obj0 = 0 ;
23694 PyObject * obj1 = 0 ;
23695 char *kwnames[] = {
23696 (char *) "self",(char *) "n", NULL
23697 };
23698
23699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23702 arg2 = (int)SWIG_As_int(obj1);
23703 if (PyErr_Occurred()) SWIG_fail;
23704 {
23705 PyThreadState* __tstate = wxPyBeginAllowThreads();
23706 {
23707 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23708 result = (wxDateSpan *) &_result_ref;
23709 }
23710
23711 wxPyEndAllowThreads(__tstate);
23712 if (PyErr_Occurred()) SWIG_fail;
23713 }
23714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23715 return resultobj;
23716 fail:
23717 return NULL;
23718 }
23719
23720
23721 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23722 PyObject *resultobj;
23723 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23724 int result;
23725 PyObject * obj0 = 0 ;
23726 char *kwnames[] = {
23727 (char *) "self", NULL
23728 };
23729
23730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = (int)((wxDateSpan const *)arg1)->GetYears();
23736
23737 wxPyEndAllowThreads(__tstate);
23738 if (PyErr_Occurred()) SWIG_fail;
23739 }
23740 resultobj = SWIG_From_int((int)result);
23741 return resultobj;
23742 fail:
23743 return NULL;
23744 }
23745
23746
23747 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23748 PyObject *resultobj;
23749 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23750 int result;
23751 PyObject * obj0 = 0 ;
23752 char *kwnames[] = {
23753 (char *) "self", NULL
23754 };
23755
23756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23759 {
23760 PyThreadState* __tstate = wxPyBeginAllowThreads();
23761 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23762
23763 wxPyEndAllowThreads(__tstate);
23764 if (PyErr_Occurred()) SWIG_fail;
23765 }
23766 resultobj = SWIG_From_int((int)result);
23767 return resultobj;
23768 fail:
23769 return NULL;
23770 }
23771
23772
23773 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23774 PyObject *resultobj;
23775 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23776 int result;
23777 PyObject * obj0 = 0 ;
23778 char *kwnames[] = {
23779 (char *) "self", NULL
23780 };
23781
23782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23788
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 resultobj = SWIG_From_int((int)result);
23793 return resultobj;
23794 fail:
23795 return NULL;
23796 }
23797
23798
23799 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23800 PyObject *resultobj;
23801 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23802 int result;
23803 PyObject * obj0 = 0 ;
23804 char *kwnames[] = {
23805 (char *) "self", NULL
23806 };
23807
23808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23811 {
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 result = (int)((wxDateSpan const *)arg1)->GetDays();
23814
23815 wxPyEndAllowThreads(__tstate);
23816 if (PyErr_Occurred()) SWIG_fail;
23817 }
23818 resultobj = SWIG_From_int((int)result);
23819 return resultobj;
23820 fail:
23821 return NULL;
23822 }
23823
23824
23825 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
23826 PyObject *resultobj;
23827 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23828 int result;
23829 PyObject * obj0 = 0 ;
23830 char *kwnames[] = {
23831 (char *) "self", NULL
23832 };
23833
23834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23837 {
23838 PyThreadState* __tstate = wxPyBeginAllowThreads();
23839 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23840
23841 wxPyEndAllowThreads(__tstate);
23842 if (PyErr_Occurred()) SWIG_fail;
23843 }
23844 resultobj = SWIG_From_int((int)result);
23845 return resultobj;
23846 fail:
23847 return NULL;
23848 }
23849
23850
23851 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj;
23853 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23854 wxDateSpan *arg2 = 0 ;
23855 wxDateSpan *result;
23856 PyObject * obj0 = 0 ;
23857 PyObject * obj1 = 0 ;
23858 char *kwnames[] = {
23859 (char *) "self",(char *) "other", NULL
23860 };
23861
23862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23866 SWIG_POINTER_EXCEPTION | 0)) == -1)
23867 SWIG_fail;
23868 if (arg2 == NULL) {
23869 PyErr_SetString(PyExc_TypeError,"null reference");
23870 SWIG_fail;
23871 }
23872 {
23873 PyThreadState* __tstate = wxPyBeginAllowThreads();
23874 {
23875 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23876 result = (wxDateSpan *) &_result_ref;
23877 }
23878
23879 wxPyEndAllowThreads(__tstate);
23880 if (PyErr_Occurred()) SWIG_fail;
23881 }
23882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23883 return resultobj;
23884 fail:
23885 return NULL;
23886 }
23887
23888
23889 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23890 PyObject *resultobj;
23891 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23892 wxDateSpan *arg2 = 0 ;
23893 wxDateSpan *result;
23894 PyObject * obj0 = 0 ;
23895 PyObject * obj1 = 0 ;
23896 char *kwnames[] = {
23897 (char *) "self",(char *) "other", NULL
23898 };
23899
23900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23903 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23904 SWIG_POINTER_EXCEPTION | 0)) == -1)
23905 SWIG_fail;
23906 if (arg2 == NULL) {
23907 PyErr_SetString(PyExc_TypeError,"null reference");
23908 SWIG_fail;
23909 }
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 {
23913 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23914 result = (wxDateSpan *) &_result_ref;
23915 }
23916
23917 wxPyEndAllowThreads(__tstate);
23918 if (PyErr_Occurred()) SWIG_fail;
23919 }
23920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23921 return resultobj;
23922 fail:
23923 return NULL;
23924 }
23925
23926
23927 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
23928 PyObject *resultobj;
23929 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23930 wxDateSpan *result;
23931 PyObject * obj0 = 0 ;
23932 char *kwnames[] = {
23933 (char *) "self", NULL
23934 };
23935
23936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 {
23942 wxDateSpan &_result_ref = (arg1)->Neg();
23943 result = (wxDateSpan *) &_result_ref;
23944 }
23945
23946 wxPyEndAllowThreads(__tstate);
23947 if (PyErr_Occurred()) SWIG_fail;
23948 }
23949 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23950 return resultobj;
23951 fail:
23952 return NULL;
23953 }
23954
23955
23956 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
23957 PyObject *resultobj;
23958 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23959 int arg2 ;
23960 wxDateSpan *result;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 char *kwnames[] = {
23964 (char *) "self",(char *) "factor", NULL
23965 };
23966
23967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23970 arg2 = (int)SWIG_As_int(obj1);
23971 if (PyErr_Occurred()) SWIG_fail;
23972 {
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 {
23975 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23976 result = (wxDateSpan *) &_result_ref;
23977 }
23978
23979 wxPyEndAllowThreads(__tstate);
23980 if (PyErr_Occurred()) SWIG_fail;
23981 }
23982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23983 return resultobj;
23984 fail:
23985 return NULL;
23986 }
23987
23988
23989 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
23990 PyObject *resultobj;
23991 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23992 wxDateSpan *arg2 = 0 ;
23993 wxDateSpan *result;
23994 PyObject * obj0 = 0 ;
23995 PyObject * obj1 = 0 ;
23996 char *kwnames[] = {
23997 (char *) "self",(char *) "other", NULL
23998 };
23999
24000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
24001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24002 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24004 SWIG_POINTER_EXCEPTION | 0)) == -1)
24005 SWIG_fail;
24006 if (arg2 == NULL) {
24007 PyErr_SetString(PyExc_TypeError,"null reference");
24008 SWIG_fail;
24009 }
24010 {
24011 PyThreadState* __tstate = wxPyBeginAllowThreads();
24012 {
24013 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
24014 result = (wxDateSpan *) &_result_ref;
24015 }
24016
24017 wxPyEndAllowThreads(__tstate);
24018 if (PyErr_Occurred()) SWIG_fail;
24019 }
24020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
24021 return resultobj;
24022 fail:
24023 return NULL;
24024 }
24025
24026
24027 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
24028 PyObject *resultobj;
24029 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24030 wxDateSpan *arg2 = 0 ;
24031 wxDateSpan *result;
24032 PyObject * obj0 = 0 ;
24033 PyObject * obj1 = 0 ;
24034 char *kwnames[] = {
24035 (char *) "self",(char *) "other", NULL
24036 };
24037
24038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
24039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24040 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24042 SWIG_POINTER_EXCEPTION | 0)) == -1)
24043 SWIG_fail;
24044 if (arg2 == NULL) {
24045 PyErr_SetString(PyExc_TypeError,"null reference");
24046 SWIG_fail;
24047 }
24048 {
24049 PyThreadState* __tstate = wxPyBeginAllowThreads();
24050 {
24051 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
24052 result = (wxDateSpan *) &_result_ref;
24053 }
24054
24055 wxPyEndAllowThreads(__tstate);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 }
24058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
24059 return resultobj;
24060 fail:
24061 return NULL;
24062 }
24063
24064
24065 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
24066 PyObject *resultobj;
24067 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24068 wxDateSpan *result;
24069 PyObject * obj0 = 0 ;
24070 char *kwnames[] = {
24071 (char *) "self", NULL
24072 };
24073
24074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
24075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24077 {
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 {
24080 wxDateSpan &_result_ref = (arg1)->operator -();
24081 result = (wxDateSpan *) &_result_ref;
24082 }
24083
24084 wxPyEndAllowThreads(__tstate);
24085 if (PyErr_Occurred()) SWIG_fail;
24086 }
24087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
24088 return resultobj;
24089 fail:
24090 return NULL;
24091 }
24092
24093
24094 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj;
24096 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24097 int arg2 ;
24098 wxDateSpan *result;
24099 PyObject * obj0 = 0 ;
24100 PyObject * obj1 = 0 ;
24101 char *kwnames[] = {
24102 (char *) "self",(char *) "factor", NULL
24103 };
24104
24105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
24106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24107 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24108 arg2 = (int)SWIG_As_int(obj1);
24109 if (PyErr_Occurred()) SWIG_fail;
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 {
24113 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
24114 result = (wxDateSpan *) &_result_ref;
24115 }
24116
24117 wxPyEndAllowThreads(__tstate);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 }
24120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
24121 return resultobj;
24122 fail:
24123 return NULL;
24124 }
24125
24126
24127 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
24128 PyObject *resultobj;
24129 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24130 wxDateSpan *arg2 = 0 ;
24131 wxDateSpan result;
24132 PyObject * obj0 = 0 ;
24133 PyObject * obj1 = 0 ;
24134 char *kwnames[] = {
24135 (char *) "self",(char *) "other", NULL
24136 };
24137
24138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
24139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24141 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24142 SWIG_POINTER_EXCEPTION | 0)) == -1)
24143 SWIG_fail;
24144 if (arg2 == NULL) {
24145 PyErr_SetString(PyExc_TypeError,"null reference");
24146 SWIG_fail;
24147 }
24148 {
24149 PyThreadState* __tstate = wxPyBeginAllowThreads();
24150 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
24151
24152 wxPyEndAllowThreads(__tstate);
24153 if (PyErr_Occurred()) SWIG_fail;
24154 }
24155 {
24156 wxDateSpan * resultptr;
24157 resultptr = new wxDateSpan((wxDateSpan &) result);
24158 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24159 }
24160 return resultobj;
24161 fail:
24162 return NULL;
24163 }
24164
24165
24166 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
24167 PyObject *resultobj;
24168 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24169 wxDateSpan *arg2 = 0 ;
24170 wxDateSpan result;
24171 PyObject * obj0 = 0 ;
24172 PyObject * obj1 = 0 ;
24173 char *kwnames[] = {
24174 (char *) "self",(char *) "other", NULL
24175 };
24176
24177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
24178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24181 SWIG_POINTER_EXCEPTION | 0)) == -1)
24182 SWIG_fail;
24183 if (arg2 == NULL) {
24184 PyErr_SetString(PyExc_TypeError,"null reference");
24185 SWIG_fail;
24186 }
24187 {
24188 PyThreadState* __tstate = wxPyBeginAllowThreads();
24189 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
24190
24191 wxPyEndAllowThreads(__tstate);
24192 if (PyErr_Occurred()) SWIG_fail;
24193 }
24194 {
24195 wxDateSpan * resultptr;
24196 resultptr = new wxDateSpan((wxDateSpan &) result);
24197 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24198 }
24199 return resultobj;
24200 fail:
24201 return NULL;
24202 }
24203
24204
24205 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
24206 PyObject *resultobj;
24207 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24208 int arg2 ;
24209 wxDateSpan result;
24210 PyObject * obj0 = 0 ;
24211 PyObject * obj1 = 0 ;
24212 char *kwnames[] = {
24213 (char *) "self",(char *) "n", NULL
24214 };
24215
24216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
24217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24219 arg2 = (int)SWIG_As_int(obj1);
24220 if (PyErr_Occurred()) SWIG_fail;
24221 {
24222 PyThreadState* __tstate = wxPyBeginAllowThreads();
24223 result = wxDateSpan___mul__(arg1,arg2);
24224
24225 wxPyEndAllowThreads(__tstate);
24226 if (PyErr_Occurred()) SWIG_fail;
24227 }
24228 {
24229 wxDateSpan * resultptr;
24230 resultptr = new wxDateSpan((wxDateSpan &) result);
24231 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24232 }
24233 return resultobj;
24234 fail:
24235 return NULL;
24236 }
24237
24238
24239 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
24240 PyObject *resultobj;
24241 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24242 int arg2 ;
24243 wxDateSpan result;
24244 PyObject * obj0 = 0 ;
24245 PyObject * obj1 = 0 ;
24246 char *kwnames[] = {
24247 (char *) "self",(char *) "n", NULL
24248 };
24249
24250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
24251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24253 arg2 = (int)SWIG_As_int(obj1);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 result = wxDateSpan___rmul__(arg1,arg2);
24258
24259 wxPyEndAllowThreads(__tstate);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 }
24262 {
24263 wxDateSpan * resultptr;
24264 resultptr = new wxDateSpan((wxDateSpan &) result);
24265 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24266 }
24267 return resultobj;
24268 fail:
24269 return NULL;
24270 }
24271
24272
24273 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24274 PyObject *resultobj;
24275 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24276 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24277 bool result;
24278 PyObject * obj0 = 0 ;
24279 PyObject * obj1 = 0 ;
24280 char *kwnames[] = {
24281 (char *) "self",(char *) "other", NULL
24282 };
24283
24284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
24285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24287 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24289 {
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
24292
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 {
24297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24298 }
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj;
24307 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24308 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24309 bool result;
24310 PyObject * obj0 = 0 ;
24311 PyObject * obj1 = 0 ;
24312 char *kwnames[] = {
24313 (char *) "self",(char *) "other", NULL
24314 };
24315
24316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
24317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
24324
24325 wxPyEndAllowThreads(__tstate);
24326 if (PyErr_Occurred()) SWIG_fail;
24327 }
24328 {
24329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24330 }
24331 return resultobj;
24332 fail:
24333 return NULL;
24334 }
24335
24336
24337 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
24338 PyObject *obj;
24339 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24340 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
24341 Py_INCREF(obj);
24342 return Py_BuildValue((char *)"");
24343 }
24344 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
24345 PyObject *resultobj;
24346 long result;
24347 char *kwnames[] = {
24348 NULL
24349 };
24350
24351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
24352 {
24353 PyThreadState* __tstate = wxPyBeginAllowThreads();
24354 result = (long)wxGetLocalTime();
24355
24356 wxPyEndAllowThreads(__tstate);
24357 if (PyErr_Occurred()) SWIG_fail;
24358 }
24359 resultobj = SWIG_From_long((long)result);
24360 return resultobj;
24361 fail:
24362 return NULL;
24363 }
24364
24365
24366 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
24367 PyObject *resultobj;
24368 long result;
24369 char *kwnames[] = {
24370 NULL
24371 };
24372
24373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = (long)wxGetUTCTime();
24377
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 resultobj = SWIG_From_long((long)result);
24382 return resultobj;
24383 fail:
24384 return NULL;
24385 }
24386
24387
24388 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
24389 PyObject *resultobj;
24390 long result;
24391 char *kwnames[] = {
24392 NULL
24393 };
24394
24395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
24396 {
24397 PyThreadState* __tstate = wxPyBeginAllowThreads();
24398 result = (long)wxGetCurrentTime();
24399
24400 wxPyEndAllowThreads(__tstate);
24401 if (PyErr_Occurred()) SWIG_fail;
24402 }
24403 resultobj = SWIG_From_long((long)result);
24404 return resultobj;
24405 fail:
24406 return NULL;
24407 }
24408
24409
24410 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
24411 PyObject *resultobj;
24412 wxLongLong result;
24413 char *kwnames[] = {
24414 NULL
24415 };
24416
24417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24418 {
24419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24420 result = wxGetLocalTimeMillis();
24421
24422 wxPyEndAllowThreads(__tstate);
24423 if (PyErr_Occurred()) SWIG_fail;
24424 }
24425 {
24426 PyObject *hi, *lo, *shifter, *shifted;
24427 hi = PyLong_FromLong( (&result)->GetHi() );
24428 lo = PyLong_FromLong( (&result)->GetLo() );
24429 shifter = PyLong_FromLong(32);
24430 shifted = PyNumber_Lshift(hi, shifter);
24431 resultobj = PyNumber_Or(shifted, lo);
24432 Py_DECREF(hi);
24433 Py_DECREF(lo);
24434 Py_DECREF(shifter);
24435 Py_DECREF(shifted);
24436 }
24437 return resultobj;
24438 fail:
24439 return NULL;
24440 }
24441
24442
24443 static int _wrap_DefaultDateTime_set(PyObject *) {
24444 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24445 return 1;
24446 }
24447
24448
24449 static PyObject *_wrap_DefaultDateTime_get() {
24450 PyObject *pyobj;
24451
24452 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24453 return pyobj;
24454 }
24455
24456
24457 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24458 PyObject *resultobj;
24459 int arg1 ;
24460 wxDataFormat *result;
24461 PyObject * obj0 = 0 ;
24462 char *kwnames[] = {
24463 (char *) "type", NULL
24464 };
24465
24466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
24467 arg1 = (int)SWIG_As_int(obj0);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 {
24470 PyThreadState* __tstate = wxPyBeginAllowThreads();
24471 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24472
24473 wxPyEndAllowThreads(__tstate);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24477 return resultobj;
24478 fail:
24479 return NULL;
24480 }
24481
24482
24483 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj;
24485 wxString *arg1 = 0 ;
24486 wxDataFormat *result;
24487 bool temp1 = false ;
24488 PyObject * obj0 = 0 ;
24489 char *kwnames[] = {
24490 (char *) "format", NULL
24491 };
24492
24493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24494 {
24495 arg1 = wxString_in_helper(obj0);
24496 if (arg1 == NULL) SWIG_fail;
24497 temp1 = true;
24498 }
24499 {
24500 PyThreadState* __tstate = wxPyBeginAllowThreads();
24501 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24502
24503 wxPyEndAllowThreads(__tstate);
24504 if (PyErr_Occurred()) SWIG_fail;
24505 }
24506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24507 {
24508 if (temp1)
24509 delete arg1;
24510 }
24511 return resultobj;
24512 fail:
24513 {
24514 if (temp1)
24515 delete arg1;
24516 }
24517 return NULL;
24518 }
24519
24520
24521 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24522 PyObject *resultobj;
24523 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24524 PyObject * obj0 = 0 ;
24525 char *kwnames[] = {
24526 (char *) "self", NULL
24527 };
24528
24529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24532 {
24533 PyThreadState* __tstate = wxPyBeginAllowThreads();
24534 delete arg1;
24535
24536 wxPyEndAllowThreads(__tstate);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 }
24539 Py_INCREF(Py_None); resultobj = Py_None;
24540 return resultobj;
24541 fail:
24542 return NULL;
24543 }
24544
24545
24546 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
24547 PyObject *resultobj;
24548 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24549 int arg2 ;
24550 bool result;
24551 PyObject * obj0 = 0 ;
24552 PyObject * obj1 = 0 ;
24553
24554 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24557 arg2 = (int)SWIG_As_int(obj1);
24558 if (PyErr_Occurred()) SWIG_fail;
24559 {
24560 PyThreadState* __tstate = wxPyBeginAllowThreads();
24561 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24562
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 {
24567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24568 }
24569 return resultobj;
24570 fail:
24571 return NULL;
24572 }
24573
24574
24575 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
24576 PyObject *resultobj;
24577 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24578 int arg2 ;
24579 bool result;
24580 PyObject * obj0 = 0 ;
24581 PyObject * obj1 = 0 ;
24582
24583 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24586 arg2 = (int)SWIG_As_int(obj1);
24587 if (PyErr_Occurred()) SWIG_fail;
24588 {
24589 PyThreadState* __tstate = wxPyBeginAllowThreads();
24590 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24591
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 {
24596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24597 }
24598 return resultobj;
24599 fail:
24600 return NULL;
24601 }
24602
24603
24604 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
24605 PyObject *resultobj;
24606 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24607 wxDataFormat *arg2 = 0 ;
24608 bool result;
24609 PyObject * obj0 = 0 ;
24610 PyObject * obj1 = 0 ;
24611
24612 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24616 SWIG_POINTER_EXCEPTION | 0)) == -1)
24617 SWIG_fail;
24618 if (arg2 == NULL) {
24619 PyErr_SetString(PyExc_TypeError,"null reference");
24620 SWIG_fail;
24621 }
24622 {
24623 PyThreadState* __tstate = wxPyBeginAllowThreads();
24624 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24625
24626 wxPyEndAllowThreads(__tstate);
24627 if (PyErr_Occurred()) SWIG_fail;
24628 }
24629 {
24630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24631 }
24632 return resultobj;
24633 fail:
24634 return NULL;
24635 }
24636
24637
24638 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24639 int argc;
24640 PyObject *argv[3];
24641 int ii;
24642
24643 argc = PyObject_Length(args);
24644 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24645 argv[ii] = PyTuple_GetItem(args,ii);
24646 }
24647 if (argc == 2) {
24648 int _v;
24649 {
24650 void *ptr;
24651 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24652 _v = 0;
24653 PyErr_Clear();
24654 } else {
24655 _v = 1;
24656 }
24657 }
24658 if (_v) {
24659 {
24660 void *ptr;
24661 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24662 _v = 0;
24663 PyErr_Clear();
24664 } else {
24665 _v = 1;
24666 }
24667 }
24668 if (_v) {
24669 return _wrap_DataFormat___eq____SWIG_1(self,args);
24670 }
24671 }
24672 }
24673 if (argc == 2) {
24674 int _v;
24675 {
24676 void *ptr;
24677 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24678 _v = 0;
24679 PyErr_Clear();
24680 } else {
24681 _v = 1;
24682 }
24683 }
24684 if (_v) {
24685 _v = SWIG_Check_int(argv[1]);
24686 if (_v) {
24687 return _wrap_DataFormat___eq____SWIG_0(self,args);
24688 }
24689 }
24690 }
24691
24692 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24693 return NULL;
24694 }
24695
24696
24697 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
24698 PyObject *resultobj;
24699 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24700 wxDataFormat *arg2 = 0 ;
24701 bool result;
24702 PyObject * obj0 = 0 ;
24703 PyObject * obj1 = 0 ;
24704
24705 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24709 SWIG_POINTER_EXCEPTION | 0)) == -1)
24710 SWIG_fail;
24711 if (arg2 == NULL) {
24712 PyErr_SetString(PyExc_TypeError,"null reference");
24713 SWIG_fail;
24714 }
24715 {
24716 PyThreadState* __tstate = wxPyBeginAllowThreads();
24717 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24718
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 {
24723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24724 }
24725 return resultobj;
24726 fail:
24727 return NULL;
24728 }
24729
24730
24731 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24732 int argc;
24733 PyObject *argv[3];
24734 int ii;
24735
24736 argc = PyObject_Length(args);
24737 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24738 argv[ii] = PyTuple_GetItem(args,ii);
24739 }
24740 if (argc == 2) {
24741 int _v;
24742 {
24743 void *ptr;
24744 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24745 _v = 0;
24746 PyErr_Clear();
24747 } else {
24748 _v = 1;
24749 }
24750 }
24751 if (_v) {
24752 {
24753 void *ptr;
24754 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24755 _v = 0;
24756 PyErr_Clear();
24757 } else {
24758 _v = 1;
24759 }
24760 }
24761 if (_v) {
24762 return _wrap_DataFormat___ne____SWIG_1(self,args);
24763 }
24764 }
24765 }
24766 if (argc == 2) {
24767 int _v;
24768 {
24769 void *ptr;
24770 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24771 _v = 0;
24772 PyErr_Clear();
24773 } else {
24774 _v = 1;
24775 }
24776 }
24777 if (_v) {
24778 _v = SWIG_Check_int(argv[1]);
24779 if (_v) {
24780 return _wrap_DataFormat___ne____SWIG_0(self,args);
24781 }
24782 }
24783 }
24784
24785 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24786 return NULL;
24787 }
24788
24789
24790 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
24791 PyObject *resultobj;
24792 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24793 int arg2 ;
24794 PyObject * obj0 = 0 ;
24795 PyObject * obj1 = 0 ;
24796 char *kwnames[] = {
24797 (char *) "self",(char *) "format", NULL
24798 };
24799
24800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24803 arg2 = (int)SWIG_As_int(obj1);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 {
24806 PyThreadState* __tstate = wxPyBeginAllowThreads();
24807 (arg1)->SetType((wxDataFormatId )arg2);
24808
24809 wxPyEndAllowThreads(__tstate);
24810 if (PyErr_Occurred()) SWIG_fail;
24811 }
24812 Py_INCREF(Py_None); resultobj = Py_None;
24813 return resultobj;
24814 fail:
24815 return NULL;
24816 }
24817
24818
24819 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
24820 PyObject *resultobj;
24821 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24822 int result;
24823 PyObject * obj0 = 0 ;
24824 char *kwnames[] = {
24825 (char *) "self", NULL
24826 };
24827
24828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24831 {
24832 PyThreadState* __tstate = wxPyBeginAllowThreads();
24833 result = (int)((wxDataFormat const *)arg1)->GetType();
24834
24835 wxPyEndAllowThreads(__tstate);
24836 if (PyErr_Occurred()) SWIG_fail;
24837 }
24838 resultobj = SWIG_From_int((int)result);
24839 return resultobj;
24840 fail:
24841 return NULL;
24842 }
24843
24844
24845 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24846 PyObject *resultobj;
24847 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24848 wxString result;
24849 PyObject * obj0 = 0 ;
24850 char *kwnames[] = {
24851 (char *) "self", NULL
24852 };
24853
24854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24857 {
24858 PyThreadState* __tstate = wxPyBeginAllowThreads();
24859 result = ((wxDataFormat const *)arg1)->GetId();
24860
24861 wxPyEndAllowThreads(__tstate);
24862 if (PyErr_Occurred()) SWIG_fail;
24863 }
24864 {
24865 #if wxUSE_UNICODE
24866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24867 #else
24868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24869 #endif
24870 }
24871 return resultobj;
24872 fail:
24873 return NULL;
24874 }
24875
24876
24877 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24878 PyObject *resultobj;
24879 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24880 wxString *arg2 = 0 ;
24881 bool temp2 = false ;
24882 PyObject * obj0 = 0 ;
24883 PyObject * obj1 = 0 ;
24884 char *kwnames[] = {
24885 (char *) "self",(char *) "format", NULL
24886 };
24887
24888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24891 {
24892 arg2 = wxString_in_helper(obj1);
24893 if (arg2 == NULL) SWIG_fail;
24894 temp2 = true;
24895 }
24896 {
24897 PyThreadState* __tstate = wxPyBeginAllowThreads();
24898 (arg1)->SetId((wxString const &)*arg2);
24899
24900 wxPyEndAllowThreads(__tstate);
24901 if (PyErr_Occurred()) SWIG_fail;
24902 }
24903 Py_INCREF(Py_None); resultobj = Py_None;
24904 {
24905 if (temp2)
24906 delete arg2;
24907 }
24908 return resultobj;
24909 fail:
24910 {
24911 if (temp2)
24912 delete arg2;
24913 }
24914 return NULL;
24915 }
24916
24917
24918 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
24919 PyObject *obj;
24920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24921 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24922 Py_INCREF(obj);
24923 return Py_BuildValue((char *)"");
24924 }
24925 static int _wrap_FormatInvalid_set(PyObject *) {
24926 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24927 return 1;
24928 }
24929
24930
24931 static PyObject *_wrap_FormatInvalid_get() {
24932 PyObject *pyobj;
24933
24934 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24935 return pyobj;
24936 }
24937
24938
24939 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24940 PyObject *resultobj;
24941 wxDataObject *arg1 = (wxDataObject *) 0 ;
24942 PyObject * obj0 = 0 ;
24943 char *kwnames[] = {
24944 (char *) "self", NULL
24945 };
24946
24947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24950 {
24951 PyThreadState* __tstate = wxPyBeginAllowThreads();
24952 delete arg1;
24953
24954 wxPyEndAllowThreads(__tstate);
24955 if (PyErr_Occurred()) SWIG_fail;
24956 }
24957 Py_INCREF(Py_None); resultobj = Py_None;
24958 return resultobj;
24959 fail:
24960 return NULL;
24961 }
24962
24963
24964 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24965 PyObject *resultobj;
24966 wxDataObject *arg1 = (wxDataObject *) 0 ;
24967 int arg2 = (int) wxDataObject::Get ;
24968 SwigValueWrapper< wxDataFormat > result;
24969 PyObject * obj0 = 0 ;
24970 PyObject * obj1 = 0 ;
24971 char *kwnames[] = {
24972 (char *) "self",(char *) "dir", NULL
24973 };
24974
24975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24978 if (obj1) {
24979 arg2 = (int)SWIG_As_int(obj1);
24980 if (PyErr_Occurred()) SWIG_fail;
24981 }
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24985
24986 wxPyEndAllowThreads(__tstate);
24987 if (PyErr_Occurred()) SWIG_fail;
24988 }
24989 {
24990 wxDataFormat * resultptr;
24991 resultptr = new wxDataFormat((wxDataFormat &) result);
24992 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24993 }
24994 return resultobj;
24995 fail:
24996 return NULL;
24997 }
24998
24999
25000 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
25001 PyObject *resultobj;
25002 wxDataObject *arg1 = (wxDataObject *) 0 ;
25003 int arg2 = (int) wxDataObject::Get ;
25004 size_t result;
25005 PyObject * obj0 = 0 ;
25006 PyObject * obj1 = 0 ;
25007 char *kwnames[] = {
25008 (char *) "self",(char *) "dir", NULL
25009 };
25010
25011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
25012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25014 if (obj1) {
25015 arg2 = (int)SWIG_As_int(obj1);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 {
25019 PyThreadState* __tstate = wxPyBeginAllowThreads();
25020 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
25021
25022 wxPyEndAllowThreads(__tstate);
25023 if (PyErr_Occurred()) SWIG_fail;
25024 }
25025 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25026 return resultobj;
25027 fail:
25028 return NULL;
25029 }
25030
25031
25032 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
25033 PyObject *resultobj;
25034 wxDataObject *arg1 = (wxDataObject *) 0 ;
25035 wxDataFormat *arg2 = 0 ;
25036 int arg3 = (int) wxDataObject::Get ;
25037 bool result;
25038 PyObject * obj0 = 0 ;
25039 PyObject * obj1 = 0 ;
25040 PyObject * obj2 = 0 ;
25041 char *kwnames[] = {
25042 (char *) "self",(char *) "format",(char *) "dir", NULL
25043 };
25044
25045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
25046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25048 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25049 SWIG_POINTER_EXCEPTION | 0)) == -1)
25050 SWIG_fail;
25051 if (arg2 == NULL) {
25052 PyErr_SetString(PyExc_TypeError,"null reference");
25053 SWIG_fail;
25054 }
25055 if (obj2) {
25056 arg3 = (int)SWIG_As_int(obj2);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 {
25060 PyThreadState* __tstate = wxPyBeginAllowThreads();
25061 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
25062
25063 wxPyEndAllowThreads(__tstate);
25064 if (PyErr_Occurred()) SWIG_fail;
25065 }
25066 {
25067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25068 }
25069 return resultobj;
25070 fail:
25071 return NULL;
25072 }
25073
25074
25075 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
25076 PyObject *resultobj;
25077 wxDataObject *arg1 = (wxDataObject *) 0 ;
25078 wxDataFormat *arg2 = 0 ;
25079 size_t result;
25080 PyObject * obj0 = 0 ;
25081 PyObject * obj1 = 0 ;
25082 char *kwnames[] = {
25083 (char *) "self",(char *) "format", NULL
25084 };
25085
25086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
25087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25090 SWIG_POINTER_EXCEPTION | 0)) == -1)
25091 SWIG_fail;
25092 if (arg2 == NULL) {
25093 PyErr_SetString(PyExc_TypeError,"null reference");
25094 SWIG_fail;
25095 }
25096 {
25097 PyThreadState* __tstate = wxPyBeginAllowThreads();
25098 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
25099
25100 wxPyEndAllowThreads(__tstate);
25101 if (PyErr_Occurred()) SWIG_fail;
25102 }
25103 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25104 return resultobj;
25105 fail:
25106 return NULL;
25107 }
25108
25109
25110 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj;
25112 wxDataObject *arg1 = (wxDataObject *) 0 ;
25113 int arg2 = (int) wxDataObject::Get ;
25114 PyObject *result;
25115 PyObject * obj0 = 0 ;
25116 PyObject * obj1 = 0 ;
25117 char *kwnames[] = {
25118 (char *) "self",(char *) "dir", NULL
25119 };
25120
25121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
25122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25124 if (obj1) {
25125 arg2 = (int)SWIG_As_int(obj1);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 {
25129 PyThreadState* __tstate = wxPyBeginAllowThreads();
25130 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
25131
25132 wxPyEndAllowThreads(__tstate);
25133 if (PyErr_Occurred()) SWIG_fail;
25134 }
25135 resultobj = result;
25136 return resultobj;
25137 fail:
25138 return NULL;
25139 }
25140
25141
25142 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
25143 PyObject *resultobj;
25144 wxDataObject *arg1 = (wxDataObject *) 0 ;
25145 wxDataFormat *arg2 = 0 ;
25146 PyObject *result;
25147 PyObject * obj0 = 0 ;
25148 PyObject * obj1 = 0 ;
25149 char *kwnames[] = {
25150 (char *) "self",(char *) "format", NULL
25151 };
25152
25153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
25154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25156 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25157 SWIG_POINTER_EXCEPTION | 0)) == -1)
25158 SWIG_fail;
25159 if (arg2 == NULL) {
25160 PyErr_SetString(PyExc_TypeError,"null reference");
25161 SWIG_fail;
25162 }
25163 {
25164 PyThreadState* __tstate = wxPyBeginAllowThreads();
25165 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
25166
25167 wxPyEndAllowThreads(__tstate);
25168 if (PyErr_Occurred()) SWIG_fail;
25169 }
25170 resultobj = result;
25171 return resultobj;
25172 fail:
25173 return NULL;
25174 }
25175
25176
25177 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25178 PyObject *resultobj;
25179 wxDataObject *arg1 = (wxDataObject *) 0 ;
25180 wxDataFormat *arg2 = 0 ;
25181 PyObject *arg3 = (PyObject *) 0 ;
25182 bool result;
25183 PyObject * obj0 = 0 ;
25184 PyObject * obj1 = 0 ;
25185 PyObject * obj2 = 0 ;
25186 char *kwnames[] = {
25187 (char *) "self",(char *) "format",(char *) "data", NULL
25188 };
25189
25190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
25191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25194 SWIG_POINTER_EXCEPTION | 0)) == -1)
25195 SWIG_fail;
25196 if (arg2 == NULL) {
25197 PyErr_SetString(PyExc_TypeError,"null reference");
25198 SWIG_fail;
25199 }
25200 arg3 = obj2;
25201 {
25202 PyThreadState* __tstate = wxPyBeginAllowThreads();
25203 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
25204
25205 wxPyEndAllowThreads(__tstate);
25206 if (PyErr_Occurred()) SWIG_fail;
25207 }
25208 {
25209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25210 }
25211 return resultobj;
25212 fail:
25213 return NULL;
25214 }
25215
25216
25217 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
25218 PyObject *obj;
25219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25220 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
25221 Py_INCREF(obj);
25222 return Py_BuildValue((char *)"");
25223 }
25224 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
25225 PyObject *resultobj;
25226 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25227 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25228 wxDataObjectSimple *result;
25229 PyObject * obj0 = 0 ;
25230 char *kwnames[] = {
25231 (char *) "format", NULL
25232 };
25233
25234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
25235 if (obj0) {
25236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25237 SWIG_POINTER_EXCEPTION | 0)) == -1)
25238 SWIG_fail;
25239 if (arg1 == NULL) {
25240 PyErr_SetString(PyExc_TypeError,"null reference");
25241 SWIG_fail;
25242 }
25243 }
25244 {
25245 PyThreadState* __tstate = wxPyBeginAllowThreads();
25246 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
25247
25248 wxPyEndAllowThreads(__tstate);
25249 if (PyErr_Occurred()) SWIG_fail;
25250 }
25251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
25252 return resultobj;
25253 fail:
25254 return NULL;
25255 }
25256
25257
25258 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
25259 PyObject *resultobj;
25260 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25261 wxDataFormat *result;
25262 PyObject * obj0 = 0 ;
25263 char *kwnames[] = {
25264 (char *) "self", NULL
25265 };
25266
25267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
25268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25270 {
25271 PyThreadState* __tstate = wxPyBeginAllowThreads();
25272 {
25273 wxDataFormat const &_result_ref = (arg1)->GetFormat();
25274 result = (wxDataFormat *) &_result_ref;
25275 }
25276
25277 wxPyEndAllowThreads(__tstate);
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
25281 return resultobj;
25282 fail:
25283 return NULL;
25284 }
25285
25286
25287 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
25288 PyObject *resultobj;
25289 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25290 wxDataFormat *arg2 = 0 ;
25291 PyObject * obj0 = 0 ;
25292 PyObject * obj1 = 0 ;
25293 char *kwnames[] = {
25294 (char *) "self",(char *) "format", NULL
25295 };
25296
25297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
25298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25301 SWIG_POINTER_EXCEPTION | 0)) == -1)
25302 SWIG_fail;
25303 if (arg2 == NULL) {
25304 PyErr_SetString(PyExc_TypeError,"null reference");
25305 SWIG_fail;
25306 }
25307 {
25308 PyThreadState* __tstate = wxPyBeginAllowThreads();
25309 (arg1)->SetFormat((wxDataFormat const &)*arg2);
25310
25311 wxPyEndAllowThreads(__tstate);
25312 if (PyErr_Occurred()) SWIG_fail;
25313 }
25314 Py_INCREF(Py_None); resultobj = Py_None;
25315 return resultobj;
25316 fail:
25317 return NULL;
25318 }
25319
25320
25321 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
25322 PyObject *resultobj;
25323 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25324 size_t result;
25325 PyObject * obj0 = 0 ;
25326 char *kwnames[] = {
25327 (char *) "self", NULL
25328 };
25329
25330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
25331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25333 {
25334 PyThreadState* __tstate = wxPyBeginAllowThreads();
25335 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
25336
25337 wxPyEndAllowThreads(__tstate);
25338 if (PyErr_Occurred()) SWIG_fail;
25339 }
25340 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25341 return resultobj;
25342 fail:
25343 return NULL;
25344 }
25345
25346
25347 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj;
25349 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25350 PyObject *result;
25351 PyObject * obj0 = 0 ;
25352 char *kwnames[] = {
25353 (char *) "self", NULL
25354 };
25355
25356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
25357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25359 {
25360 PyThreadState* __tstate = wxPyBeginAllowThreads();
25361 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
25362
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 resultobj = result;
25367 return resultobj;
25368 fail:
25369 return NULL;
25370 }
25371
25372
25373 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25374 PyObject *resultobj;
25375 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25376 PyObject *arg2 = (PyObject *) 0 ;
25377 bool result;
25378 PyObject * obj0 = 0 ;
25379 PyObject * obj1 = 0 ;
25380 char *kwnames[] = {
25381 (char *) "self",(char *) "data", NULL
25382 };
25383
25384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
25385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25387 arg2 = obj1;
25388 {
25389 PyThreadState* __tstate = wxPyBeginAllowThreads();
25390 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
25391
25392 wxPyEndAllowThreads(__tstate);
25393 if (PyErr_Occurred()) SWIG_fail;
25394 }
25395 {
25396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25397 }
25398 return resultobj;
25399 fail:
25400 return NULL;
25401 }
25402
25403
25404 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
25405 PyObject *obj;
25406 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25407 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25408 Py_INCREF(obj);
25409 return Py_BuildValue((char *)"");
25410 }
25411 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
25412 PyObject *resultobj;
25413 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25414 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25415 wxPyDataObjectSimple *result;
25416 PyObject * obj0 = 0 ;
25417 char *kwnames[] = {
25418 (char *) "format", NULL
25419 };
25420
25421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25422 if (obj0) {
25423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25424 SWIG_POINTER_EXCEPTION | 0)) == -1)
25425 SWIG_fail;
25426 if (arg1 == NULL) {
25427 PyErr_SetString(PyExc_TypeError,"null reference");
25428 SWIG_fail;
25429 }
25430 }
25431 {
25432 PyThreadState* __tstate = wxPyBeginAllowThreads();
25433 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25434
25435 wxPyEndAllowThreads(__tstate);
25436 if (PyErr_Occurred()) SWIG_fail;
25437 }
25438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25439 return resultobj;
25440 fail:
25441 return NULL;
25442 }
25443
25444
25445 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25446 PyObject *resultobj;
25447 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25448 PyObject *arg2 = (PyObject *) 0 ;
25449 PyObject *arg3 = (PyObject *) 0 ;
25450 PyObject * obj0 = 0 ;
25451 PyObject * obj1 = 0 ;
25452 PyObject * obj2 = 0 ;
25453 char *kwnames[] = {
25454 (char *) "self",(char *) "self",(char *) "_class", NULL
25455 };
25456
25457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25460 arg2 = obj1;
25461 arg3 = obj2;
25462 {
25463 PyThreadState* __tstate = wxPyBeginAllowThreads();
25464 (arg1)->_setCallbackInfo(arg2,arg3);
25465
25466 wxPyEndAllowThreads(__tstate);
25467 if (PyErr_Occurred()) SWIG_fail;
25468 }
25469 Py_INCREF(Py_None); resultobj = Py_None;
25470 return resultobj;
25471 fail:
25472 return NULL;
25473 }
25474
25475
25476 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
25477 PyObject *obj;
25478 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25479 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25480 Py_INCREF(obj);
25481 return Py_BuildValue((char *)"");
25482 }
25483 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
25484 PyObject *resultobj;
25485 wxDataObjectComposite *result;
25486 char *kwnames[] = {
25487 NULL
25488 };
25489
25490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25491 {
25492 PyThreadState* __tstate = wxPyBeginAllowThreads();
25493 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25494
25495 wxPyEndAllowThreads(__tstate);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 }
25498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25499 return resultobj;
25500 fail:
25501 return NULL;
25502 }
25503
25504
25505 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
25506 PyObject *resultobj;
25507 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25508 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25509 bool arg3 = (bool) false ;
25510 PyObject * obj0 = 0 ;
25511 PyObject * obj1 = 0 ;
25512 PyObject * obj2 = 0 ;
25513 char *kwnames[] = {
25514 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25515 };
25516
25517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25520 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25521 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25522 if (obj2) {
25523 arg3 = (bool)SWIG_As_bool(obj2);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 {
25527 PyThreadState* __tstate = wxPyBeginAllowThreads();
25528 (arg1)->Add(arg2,arg3);
25529
25530 wxPyEndAllowThreads(__tstate);
25531 if (PyErr_Occurred()) SWIG_fail;
25532 }
25533 Py_INCREF(Py_None); resultobj = Py_None;
25534 return resultobj;
25535 fail:
25536 return NULL;
25537 }
25538
25539
25540 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
25541 PyObject *obj;
25542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25543 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25544 Py_INCREF(obj);
25545 return Py_BuildValue((char *)"");
25546 }
25547 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25548 PyObject *resultobj;
25549 wxString const &arg1_defvalue = wxPyEmptyString ;
25550 wxString *arg1 = (wxString *) &arg1_defvalue ;
25551 wxTextDataObject *result;
25552 bool temp1 = false ;
25553 PyObject * obj0 = 0 ;
25554 char *kwnames[] = {
25555 (char *) "text", NULL
25556 };
25557
25558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25559 if (obj0) {
25560 {
25561 arg1 = wxString_in_helper(obj0);
25562 if (arg1 == NULL) SWIG_fail;
25563 temp1 = true;
25564 }
25565 }
25566 {
25567 PyThreadState* __tstate = wxPyBeginAllowThreads();
25568 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25569
25570 wxPyEndAllowThreads(__tstate);
25571 if (PyErr_Occurred()) SWIG_fail;
25572 }
25573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25574 {
25575 if (temp1)
25576 delete arg1;
25577 }
25578 return resultobj;
25579 fail:
25580 {
25581 if (temp1)
25582 delete arg1;
25583 }
25584 return NULL;
25585 }
25586
25587
25588 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
25589 PyObject *resultobj;
25590 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25591 size_t result;
25592 PyObject * obj0 = 0 ;
25593 char *kwnames[] = {
25594 (char *) "self", NULL
25595 };
25596
25597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25600 {
25601 PyThreadState* __tstate = wxPyBeginAllowThreads();
25602 result = (size_t)(arg1)->GetTextLength();
25603
25604 wxPyEndAllowThreads(__tstate);
25605 if (PyErr_Occurred()) SWIG_fail;
25606 }
25607 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25608 return resultobj;
25609 fail:
25610 return NULL;
25611 }
25612
25613
25614 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
25615 PyObject *resultobj;
25616 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25617 wxString result;
25618 PyObject * obj0 = 0 ;
25619 char *kwnames[] = {
25620 (char *) "self", NULL
25621 };
25622
25623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25626 {
25627 PyThreadState* __tstate = wxPyBeginAllowThreads();
25628 result = (arg1)->GetText();
25629
25630 wxPyEndAllowThreads(__tstate);
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 {
25634 #if wxUSE_UNICODE
25635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25636 #else
25637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25638 #endif
25639 }
25640 return resultobj;
25641 fail:
25642 return NULL;
25643 }
25644
25645
25646 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
25647 PyObject *resultobj;
25648 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25649 wxString *arg2 = 0 ;
25650 bool temp2 = false ;
25651 PyObject * obj0 = 0 ;
25652 PyObject * obj1 = 0 ;
25653 char *kwnames[] = {
25654 (char *) "self",(char *) "text", NULL
25655 };
25656
25657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25660 {
25661 arg2 = wxString_in_helper(obj1);
25662 if (arg2 == NULL) SWIG_fail;
25663 temp2 = true;
25664 }
25665 {
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 (arg1)->SetText((wxString const &)*arg2);
25668
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
25672 Py_INCREF(Py_None); resultobj = Py_None;
25673 {
25674 if (temp2)
25675 delete arg2;
25676 }
25677 return resultobj;
25678 fail:
25679 {
25680 if (temp2)
25681 delete arg2;
25682 }
25683 return NULL;
25684 }
25685
25686
25687 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
25688 PyObject *obj;
25689 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25690 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25691 Py_INCREF(obj);
25692 return Py_BuildValue((char *)"");
25693 }
25694 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25695 PyObject *resultobj;
25696 wxString const &arg1_defvalue = wxPyEmptyString ;
25697 wxString *arg1 = (wxString *) &arg1_defvalue ;
25698 wxPyTextDataObject *result;
25699 bool temp1 = false ;
25700 PyObject * obj0 = 0 ;
25701 char *kwnames[] = {
25702 (char *) "text", NULL
25703 };
25704
25705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25706 if (obj0) {
25707 {
25708 arg1 = wxString_in_helper(obj0);
25709 if (arg1 == NULL) SWIG_fail;
25710 temp1 = true;
25711 }
25712 }
25713 {
25714 PyThreadState* __tstate = wxPyBeginAllowThreads();
25715 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25716
25717 wxPyEndAllowThreads(__tstate);
25718 if (PyErr_Occurred()) SWIG_fail;
25719 }
25720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25721 {
25722 if (temp1)
25723 delete arg1;
25724 }
25725 return resultobj;
25726 fail:
25727 {
25728 if (temp1)
25729 delete arg1;
25730 }
25731 return NULL;
25732 }
25733
25734
25735 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25736 PyObject *resultobj;
25737 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25738 PyObject *arg2 = (PyObject *) 0 ;
25739 PyObject *arg3 = (PyObject *) 0 ;
25740 PyObject * obj0 = 0 ;
25741 PyObject * obj1 = 0 ;
25742 PyObject * obj2 = 0 ;
25743 char *kwnames[] = {
25744 (char *) "self",(char *) "self",(char *) "_class", NULL
25745 };
25746
25747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25750 arg2 = obj1;
25751 arg3 = obj2;
25752 {
25753 PyThreadState* __tstate = wxPyBeginAllowThreads();
25754 (arg1)->_setCallbackInfo(arg2,arg3);
25755
25756 wxPyEndAllowThreads(__tstate);
25757 if (PyErr_Occurred()) SWIG_fail;
25758 }
25759 Py_INCREF(Py_None); resultobj = Py_None;
25760 return resultobj;
25761 fail:
25762 return NULL;
25763 }
25764
25765
25766 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
25767 PyObject *obj;
25768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25769 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25770 Py_INCREF(obj);
25771 return Py_BuildValue((char *)"");
25772 }
25773 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25774 PyObject *resultobj;
25775 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25776 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25777 wxBitmapDataObject *result;
25778 PyObject * obj0 = 0 ;
25779 char *kwnames[] = {
25780 (char *) "bitmap", NULL
25781 };
25782
25783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25784 if (obj0) {
25785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25786 SWIG_POINTER_EXCEPTION | 0)) == -1)
25787 SWIG_fail;
25788 if (arg1 == NULL) {
25789 PyErr_SetString(PyExc_TypeError,"null reference");
25790 SWIG_fail;
25791 }
25792 }
25793 {
25794 PyThreadState* __tstate = wxPyBeginAllowThreads();
25795 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25796
25797 wxPyEndAllowThreads(__tstate);
25798 if (PyErr_Occurred()) SWIG_fail;
25799 }
25800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25801 return resultobj;
25802 fail:
25803 return NULL;
25804 }
25805
25806
25807 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25808 PyObject *resultobj;
25809 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25810 wxBitmap result;
25811 PyObject * obj0 = 0 ;
25812 char *kwnames[] = {
25813 (char *) "self", NULL
25814 };
25815
25816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25819 {
25820 PyThreadState* __tstate = wxPyBeginAllowThreads();
25821 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25822
25823 wxPyEndAllowThreads(__tstate);
25824 if (PyErr_Occurred()) SWIG_fail;
25825 }
25826 {
25827 wxBitmap * resultptr;
25828 resultptr = new wxBitmap((wxBitmap &) result);
25829 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25830 }
25831 return resultobj;
25832 fail:
25833 return NULL;
25834 }
25835
25836
25837 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25838 PyObject *resultobj;
25839 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25840 wxBitmap *arg2 = 0 ;
25841 PyObject * obj0 = 0 ;
25842 PyObject * obj1 = 0 ;
25843 char *kwnames[] = {
25844 (char *) "self",(char *) "bitmap", NULL
25845 };
25846
25847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25851 SWIG_POINTER_EXCEPTION | 0)) == -1)
25852 SWIG_fail;
25853 if (arg2 == NULL) {
25854 PyErr_SetString(PyExc_TypeError,"null reference");
25855 SWIG_fail;
25856 }
25857 {
25858 PyThreadState* __tstate = wxPyBeginAllowThreads();
25859 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25860
25861 wxPyEndAllowThreads(__tstate);
25862 if (PyErr_Occurred()) SWIG_fail;
25863 }
25864 Py_INCREF(Py_None); resultobj = Py_None;
25865 return resultobj;
25866 fail:
25867 return NULL;
25868 }
25869
25870
25871 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
25872 PyObject *obj;
25873 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25874 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25875 Py_INCREF(obj);
25876 return Py_BuildValue((char *)"");
25877 }
25878 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25879 PyObject *resultobj;
25880 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25881 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25882 wxPyBitmapDataObject *result;
25883 PyObject * obj0 = 0 ;
25884 char *kwnames[] = {
25885 (char *) "bitmap", NULL
25886 };
25887
25888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25889 if (obj0) {
25890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25891 SWIG_POINTER_EXCEPTION | 0)) == -1)
25892 SWIG_fail;
25893 if (arg1 == NULL) {
25894 PyErr_SetString(PyExc_TypeError,"null reference");
25895 SWIG_fail;
25896 }
25897 }
25898 {
25899 PyThreadState* __tstate = wxPyBeginAllowThreads();
25900 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25901
25902 wxPyEndAllowThreads(__tstate);
25903 if (PyErr_Occurred()) SWIG_fail;
25904 }
25905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25906 return resultobj;
25907 fail:
25908 return NULL;
25909 }
25910
25911
25912 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25913 PyObject *resultobj;
25914 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25915 PyObject *arg2 = (PyObject *) 0 ;
25916 PyObject *arg3 = (PyObject *) 0 ;
25917 PyObject * obj0 = 0 ;
25918 PyObject * obj1 = 0 ;
25919 PyObject * obj2 = 0 ;
25920 char *kwnames[] = {
25921 (char *) "self",(char *) "self",(char *) "_class", NULL
25922 };
25923
25924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25927 arg2 = obj1;
25928 arg3 = obj2;
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 (arg1)->_setCallbackInfo(arg2,arg3);
25932
25933 wxPyEndAllowThreads(__tstate);
25934 if (PyErr_Occurred()) SWIG_fail;
25935 }
25936 Py_INCREF(Py_None); resultobj = Py_None;
25937 return resultobj;
25938 fail:
25939 return NULL;
25940 }
25941
25942
25943 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
25944 PyObject *obj;
25945 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25946 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25947 Py_INCREF(obj);
25948 return Py_BuildValue((char *)"");
25949 }
25950 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25951 PyObject *resultobj;
25952 wxFileDataObject *result;
25953 char *kwnames[] = {
25954 NULL
25955 };
25956
25957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25958 {
25959 PyThreadState* __tstate = wxPyBeginAllowThreads();
25960 result = (wxFileDataObject *)new wxFileDataObject();
25961
25962 wxPyEndAllowThreads(__tstate);
25963 if (PyErr_Occurred()) SWIG_fail;
25964 }
25965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25966 return resultobj;
25967 fail:
25968 return NULL;
25969 }
25970
25971
25972 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
25973 PyObject *resultobj;
25974 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25975 wxArrayString *result;
25976 PyObject * obj0 = 0 ;
25977 char *kwnames[] = {
25978 (char *) "self", NULL
25979 };
25980
25981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25984 {
25985 PyThreadState* __tstate = wxPyBeginAllowThreads();
25986 {
25987 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25988 result = (wxArrayString *) &_result_ref;
25989 }
25990
25991 wxPyEndAllowThreads(__tstate);
25992 if (PyErr_Occurred()) SWIG_fail;
25993 }
25994 {
25995 resultobj = wxArrayString2PyList_helper(*result);
25996 }
25997 return resultobj;
25998 fail:
25999 return NULL;
26000 }
26001
26002
26003 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
26004 PyObject *resultobj;
26005 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
26006 wxString *arg2 = 0 ;
26007 bool temp2 = false ;
26008 PyObject * obj0 = 0 ;
26009 PyObject * obj1 = 0 ;
26010 char *kwnames[] = {
26011 (char *) "self",(char *) "filename", NULL
26012 };
26013
26014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
26015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
26016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26017 {
26018 arg2 = wxString_in_helper(obj1);
26019 if (arg2 == NULL) SWIG_fail;
26020 temp2 = true;
26021 }
26022 {
26023 PyThreadState* __tstate = wxPyBeginAllowThreads();
26024 (arg1)->AddFile((wxString const &)*arg2);
26025
26026 wxPyEndAllowThreads(__tstate);
26027 if (PyErr_Occurred()) SWIG_fail;
26028 }
26029 Py_INCREF(Py_None); resultobj = Py_None;
26030 {
26031 if (temp2)
26032 delete arg2;
26033 }
26034 return resultobj;
26035 fail:
26036 {
26037 if (temp2)
26038 delete arg2;
26039 }
26040 return NULL;
26041 }
26042
26043
26044 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
26045 PyObject *obj;
26046 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26047 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
26048 Py_INCREF(obj);
26049 return Py_BuildValue((char *)"");
26050 }
26051 static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26052 PyObject *resultobj;
26053 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
26054 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
26055 wxCustomDataObject *result;
26056 PyObject * obj0 = 0 ;
26057 char *kwnames[] = {
26058 (char *) "format", NULL
26059 };
26060
26061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
26062 if (obj0) {
26063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
26064 SWIG_POINTER_EXCEPTION | 0)) == -1)
26065 SWIG_fail;
26066 if (arg1 == NULL) {
26067 PyErr_SetString(PyExc_TypeError,"null reference");
26068 SWIG_fail;
26069 }
26070 }
26071 {
26072 PyThreadState* __tstate = wxPyBeginAllowThreads();
26073 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
26074
26075 wxPyEndAllowThreads(__tstate);
26076 if (PyErr_Occurred()) SWIG_fail;
26077 }
26078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
26079 return resultobj;
26080 fail:
26081 return NULL;
26082 }
26083
26084
26085 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
26086 PyObject *resultobj;
26087 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
26088 PyObject *arg2 = (PyObject *) 0 ;
26089 bool result;
26090 PyObject * obj0 = 0 ;
26091 PyObject * obj1 = 0 ;
26092 char *kwnames[] = {
26093 (char *) "self",(char *) "data", NULL
26094 };
26095
26096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
26097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
26098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26099 arg2 = obj1;
26100 {
26101 PyThreadState* __tstate = wxPyBeginAllowThreads();
26102 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
26103
26104 wxPyEndAllowThreads(__tstate);
26105 if (PyErr_Occurred()) SWIG_fail;
26106 }
26107 {
26108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26109 }
26110 return resultobj;
26111 fail:
26112 return NULL;
26113 }
26114
26115
26116 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
26117 PyObject *resultobj;
26118 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
26119 size_t result;
26120 PyObject * obj0 = 0 ;
26121 char *kwnames[] = {
26122 (char *) "self", NULL
26123 };
26124
26125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
26126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
26127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26128 {
26129 PyThreadState* __tstate = wxPyBeginAllowThreads();
26130 result = (size_t)(arg1)->GetSize();
26131
26132 wxPyEndAllowThreads(__tstate);
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26143 PyObject *resultobj;
26144 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
26145 PyObject *result;
26146 PyObject * obj0 = 0 ;
26147 char *kwnames[] = {
26148 (char *) "self", NULL
26149 };
26150
26151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
26152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
26153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26154 {
26155 PyThreadState* __tstate = wxPyBeginAllowThreads();
26156 result = (PyObject *)wxCustomDataObject_GetData(arg1);
26157
26158 wxPyEndAllowThreads(__tstate);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 resultobj = result;
26162 return resultobj;
26163 fail:
26164 return NULL;
26165 }
26166
26167
26168 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
26169 PyObject *obj;
26170 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26171 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
26172 Py_INCREF(obj);
26173 return Py_BuildValue((char *)"");
26174 }
26175 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26176 PyObject *resultobj;
26177 wxURLDataObject *result;
26178 char *kwnames[] = {
26179 NULL
26180 };
26181
26182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
26183 {
26184 PyThreadState* __tstate = wxPyBeginAllowThreads();
26185 result = (wxURLDataObject *)new wxURLDataObject();
26186
26187 wxPyEndAllowThreads(__tstate);
26188 if (PyErr_Occurred()) SWIG_fail;
26189 }
26190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
26191 return resultobj;
26192 fail:
26193 return NULL;
26194 }
26195
26196
26197 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
26198 PyObject *resultobj;
26199 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
26200 wxString result;
26201 PyObject * obj0 = 0 ;
26202 char *kwnames[] = {
26203 (char *) "self", NULL
26204 };
26205
26206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
26207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
26208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26209 {
26210 PyThreadState* __tstate = wxPyBeginAllowThreads();
26211 result = (arg1)->GetURL();
26212
26213 wxPyEndAllowThreads(__tstate);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 {
26217 #if wxUSE_UNICODE
26218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26219 #else
26220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26221 #endif
26222 }
26223 return resultobj;
26224 fail:
26225 return NULL;
26226 }
26227
26228
26229 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
26230 PyObject *resultobj;
26231 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
26232 wxString *arg2 = 0 ;
26233 bool temp2 = false ;
26234 PyObject * obj0 = 0 ;
26235 PyObject * obj1 = 0 ;
26236 char *kwnames[] = {
26237 (char *) "self",(char *) "url", NULL
26238 };
26239
26240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
26241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
26242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26243 {
26244 arg2 = wxString_in_helper(obj1);
26245 if (arg2 == NULL) SWIG_fail;
26246 temp2 = true;
26247 }
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 (arg1)->SetURL((wxString const &)*arg2);
26251
26252 wxPyEndAllowThreads(__tstate);
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 Py_INCREF(Py_None); resultobj = Py_None;
26256 {
26257 if (temp2)
26258 delete arg2;
26259 }
26260 return resultobj;
26261 fail:
26262 {
26263 if (temp2)
26264 delete arg2;
26265 }
26266 return NULL;
26267 }
26268
26269
26270 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
26271 PyObject *obj;
26272 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26273 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
26274 Py_INCREF(obj);
26275 return Py_BuildValue((char *)"");
26276 }
26277 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26278 PyObject *resultobj;
26279 wxMetafileDataObject *result;
26280 char *kwnames[] = {
26281 NULL
26282 };
26283
26284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
26285 {
26286 PyThreadState* __tstate = wxPyBeginAllowThreads();
26287 result = (wxMetafileDataObject *)new wxMetafileDataObject();
26288
26289 wxPyEndAllowThreads(__tstate);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
26293 return resultobj;
26294 fail:
26295 return NULL;
26296 }
26297
26298
26299 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
26300 PyObject *obj;
26301 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26302 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
26303 Py_INCREF(obj);
26304 return Py_BuildValue((char *)"");
26305 }
26306 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
26307 PyObject *resultobj;
26308 int arg1 ;
26309 bool result;
26310 PyObject * obj0 = 0 ;
26311 char *kwnames[] = {
26312 (char *) "res", NULL
26313 };
26314
26315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
26316 arg1 = (int)SWIG_As_int(obj0);
26317 if (PyErr_Occurred()) SWIG_fail;
26318 {
26319 PyThreadState* __tstate = wxPyBeginAllowThreads();
26320 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
26321
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 {
26326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26327 }
26328 return resultobj;
26329 fail:
26330 return NULL;
26331 }
26332
26333
26334 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26335 PyObject *resultobj;
26336 wxWindow *arg1 = (wxWindow *) 0 ;
26337 wxIcon const &arg2_defvalue = wxNullIcon ;
26338 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
26339 wxIcon const &arg3_defvalue = wxNullIcon ;
26340 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
26341 wxIcon const &arg4_defvalue = wxNullIcon ;
26342 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
26343 wxPyDropSource *result;
26344 PyObject * obj0 = 0 ;
26345 PyObject * obj1 = 0 ;
26346 PyObject * obj2 = 0 ;
26347 PyObject * obj3 = 0 ;
26348 char *kwnames[] = {
26349 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26350 };
26351
26352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26355 if (obj1) {
26356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
26357 SWIG_POINTER_EXCEPTION | 0)) == -1)
26358 SWIG_fail;
26359 if (arg2 == NULL) {
26360 PyErr_SetString(PyExc_TypeError,"null reference");
26361 SWIG_fail;
26362 }
26363 }
26364 if (obj2) {
26365 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
26366 SWIG_POINTER_EXCEPTION | 0)) == -1)
26367 SWIG_fail;
26368 if (arg3 == NULL) {
26369 PyErr_SetString(PyExc_TypeError,"null reference");
26370 SWIG_fail;
26371 }
26372 }
26373 if (obj3) {
26374 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
26375 SWIG_POINTER_EXCEPTION | 0)) == -1)
26376 SWIG_fail;
26377 if (arg4 == NULL) {
26378 PyErr_SetString(PyExc_TypeError,"null reference");
26379 SWIG_fail;
26380 }
26381 }
26382 {
26383 PyThreadState* __tstate = wxPyBeginAllowThreads();
26384 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
26385
26386 wxPyEndAllowThreads(__tstate);
26387 if (PyErr_Occurred()) SWIG_fail;
26388 }
26389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26390 return resultobj;
26391 fail:
26392 return NULL;
26393 }
26394
26395
26396 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26397 PyObject *resultobj;
26398 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26399 PyObject *arg2 = (PyObject *) 0 ;
26400 PyObject *arg3 = (PyObject *) 0 ;
26401 int arg4 ;
26402 PyObject * obj0 = 0 ;
26403 PyObject * obj1 = 0 ;
26404 PyObject * obj2 = 0 ;
26405 PyObject * obj3 = 0 ;
26406 char *kwnames[] = {
26407 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26408 };
26409
26410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26413 arg2 = obj1;
26414 arg3 = obj2;
26415 arg4 = (int)SWIG_As_int(obj3);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 {
26418 PyThreadState* __tstate = wxPyBeginAllowThreads();
26419 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26420
26421 wxPyEndAllowThreads(__tstate);
26422 if (PyErr_Occurred()) SWIG_fail;
26423 }
26424 Py_INCREF(Py_None); resultobj = Py_None;
26425 return resultobj;
26426 fail:
26427 return NULL;
26428 }
26429
26430
26431 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26432 PyObject *resultobj;
26433 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26434 PyObject * obj0 = 0 ;
26435 char *kwnames[] = {
26436 (char *) "self", NULL
26437 };
26438
26439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26442 {
26443 PyThreadState* __tstate = wxPyBeginAllowThreads();
26444 delete arg1;
26445
26446 wxPyEndAllowThreads(__tstate);
26447 if (PyErr_Occurred()) SWIG_fail;
26448 }
26449 Py_INCREF(Py_None); resultobj = Py_None;
26450 return resultobj;
26451 fail:
26452 return NULL;
26453 }
26454
26455
26456 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
26457 PyObject *resultobj;
26458 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26459 wxDataObject *arg2 = 0 ;
26460 PyObject * obj0 = 0 ;
26461 PyObject * obj1 = 0 ;
26462 char *kwnames[] = {
26463 (char *) "self",(char *) "data", NULL
26464 };
26465
26466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26470 SWIG_POINTER_EXCEPTION | 0)) == -1)
26471 SWIG_fail;
26472 if (arg2 == NULL) {
26473 PyErr_SetString(PyExc_TypeError,"null reference");
26474 SWIG_fail;
26475 }
26476 {
26477 PyThreadState* __tstate = wxPyBeginAllowThreads();
26478 (arg1)->SetData(*arg2);
26479
26480 wxPyEndAllowThreads(__tstate);
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 Py_INCREF(Py_None); resultobj = Py_None;
26484 return resultobj;
26485 fail:
26486 return NULL;
26487 }
26488
26489
26490 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26491 PyObject *resultobj;
26492 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26493 wxDataObject *result;
26494 PyObject * obj0 = 0 ;
26495 char *kwnames[] = {
26496 (char *) "self", NULL
26497 };
26498
26499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26502 {
26503 PyThreadState* __tstate = wxPyBeginAllowThreads();
26504 result = (wxDataObject *)(arg1)->GetDataObject();
26505
26506 wxPyEndAllowThreads(__tstate);
26507 if (PyErr_Occurred()) SWIG_fail;
26508 }
26509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26510 return resultobj;
26511 fail:
26512 return NULL;
26513 }
26514
26515
26516 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
26517 PyObject *resultobj;
26518 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26519 int arg2 ;
26520 wxCursor *arg3 = 0 ;
26521 PyObject * obj0 = 0 ;
26522 PyObject * obj1 = 0 ;
26523 PyObject * obj2 = 0 ;
26524 char *kwnames[] = {
26525 (char *) "self",(char *) "res",(char *) "cursor", NULL
26526 };
26527
26528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26531 arg2 = (int)SWIG_As_int(obj1);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26534 SWIG_POINTER_EXCEPTION | 0)) == -1)
26535 SWIG_fail;
26536 if (arg3 == NULL) {
26537 PyErr_SetString(PyExc_TypeError,"null reference");
26538 SWIG_fail;
26539 }
26540 {
26541 PyThreadState* __tstate = wxPyBeginAllowThreads();
26542 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26543
26544 wxPyEndAllowThreads(__tstate);
26545 if (PyErr_Occurred()) SWIG_fail;
26546 }
26547 Py_INCREF(Py_None); resultobj = Py_None;
26548 return resultobj;
26549 fail:
26550 return NULL;
26551 }
26552
26553
26554 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26555 PyObject *resultobj;
26556 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26557 int arg2 = (int) wxDrag_CopyOnly ;
26558 int result;
26559 PyObject * obj0 = 0 ;
26560 PyObject * obj1 = 0 ;
26561 char *kwnames[] = {
26562 (char *) "self",(char *) "flags", NULL
26563 };
26564
26565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26568 if (obj1) {
26569 arg2 = (int)SWIG_As_int(obj1);
26570 if (PyErr_Occurred()) SWIG_fail;
26571 }
26572 {
26573 PyThreadState* __tstate = wxPyBeginAllowThreads();
26574 result = (int)(arg1)->DoDragDrop(arg2);
26575
26576 wxPyEndAllowThreads(__tstate);
26577 if (PyErr_Occurred()) SWIG_fail;
26578 }
26579 resultobj = SWIG_From_int((int)result);
26580 return resultobj;
26581 fail:
26582 return NULL;
26583 }
26584
26585
26586 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
26587 PyObject *resultobj;
26588 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26589 int arg2 ;
26590 bool result;
26591 PyObject * obj0 = 0 ;
26592 PyObject * obj1 = 0 ;
26593 char *kwnames[] = {
26594 (char *) "self",(char *) "effect", NULL
26595 };
26596
26597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26600 arg2 = (int)SWIG_As_int(obj1);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 {
26603 PyThreadState* __tstate = wxPyBeginAllowThreads();
26604 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26605
26606 wxPyEndAllowThreads(__tstate);
26607 if (PyErr_Occurred()) SWIG_fail;
26608 }
26609 {
26610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26611 }
26612 return resultobj;
26613 fail:
26614 return NULL;
26615 }
26616
26617
26618 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
26619 PyObject *obj;
26620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26621 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26622 Py_INCREF(obj);
26623 return Py_BuildValue((char *)"");
26624 }
26625 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26626 PyObject *resultobj;
26627 wxDataObject *arg1 = (wxDataObject *) NULL ;
26628 wxPyDropTarget *result;
26629 PyObject * obj0 = 0 ;
26630 char *kwnames[] = {
26631 (char *) "dataObject", NULL
26632 };
26633
26634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26635 if (obj0) {
26636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26637 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26638 }
26639 {
26640 PyThreadState* __tstate = wxPyBeginAllowThreads();
26641 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26642
26643 wxPyEndAllowThreads(__tstate);
26644 if (PyErr_Occurred()) SWIG_fail;
26645 }
26646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26647 return resultobj;
26648 fail:
26649 return NULL;
26650 }
26651
26652
26653 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26654 PyObject *resultobj;
26655 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26656 PyObject *arg2 = (PyObject *) 0 ;
26657 PyObject *arg3 = (PyObject *) 0 ;
26658 PyObject * obj0 = 0 ;
26659 PyObject * obj1 = 0 ;
26660 PyObject * obj2 = 0 ;
26661 char *kwnames[] = {
26662 (char *) "self",(char *) "self",(char *) "_class", NULL
26663 };
26664
26665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26668 arg2 = obj1;
26669 arg3 = obj2;
26670 {
26671 PyThreadState* __tstate = wxPyBeginAllowThreads();
26672 (arg1)->_setCallbackInfo(arg2,arg3);
26673
26674 wxPyEndAllowThreads(__tstate);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 Py_INCREF(Py_None); resultobj = Py_None;
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj;
26686 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26687 PyObject * obj0 = 0 ;
26688 char *kwnames[] = {
26689 (char *) "self", NULL
26690 };
26691
26692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26695 {
26696 PyThreadState* __tstate = wxPyBeginAllowThreads();
26697 delete arg1;
26698
26699 wxPyEndAllowThreads(__tstate);
26700 if (PyErr_Occurred()) SWIG_fail;
26701 }
26702 Py_INCREF(Py_None); resultobj = Py_None;
26703 return resultobj;
26704 fail:
26705 return NULL;
26706 }
26707
26708
26709 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26710 PyObject *resultobj;
26711 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26712 wxDataObject *result;
26713 PyObject * obj0 = 0 ;
26714 char *kwnames[] = {
26715 (char *) "self", NULL
26716 };
26717
26718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26721 {
26722 PyThreadState* __tstate = wxPyBeginAllowThreads();
26723 result = (wxDataObject *)(arg1)->GetDataObject();
26724
26725 wxPyEndAllowThreads(__tstate);
26726 if (PyErr_Occurred()) SWIG_fail;
26727 }
26728 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26729 return resultobj;
26730 fail:
26731 return NULL;
26732 }
26733
26734
26735 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26736 PyObject *resultobj;
26737 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26738 wxDataObject *arg2 = (wxDataObject *) 0 ;
26739 PyObject * obj0 = 0 ;
26740 PyObject * obj1 = 0 ;
26741 char *kwnames[] = {
26742 (char *) "self",(char *) "dataObject", NULL
26743 };
26744
26745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26749 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26750 {
26751 PyThreadState* __tstate = wxPyBeginAllowThreads();
26752 (arg1)->SetDataObject(arg2);
26753
26754 wxPyEndAllowThreads(__tstate);
26755 if (PyErr_Occurred()) SWIG_fail;
26756 }
26757 Py_INCREF(Py_None); resultobj = Py_None;
26758 return resultobj;
26759 fail:
26760 return NULL;
26761 }
26762
26763
26764 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26765 PyObject *resultobj;
26766 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26767 int arg2 ;
26768 int arg3 ;
26769 int arg4 ;
26770 int result;
26771 PyObject * obj0 = 0 ;
26772 PyObject * obj1 = 0 ;
26773 PyObject * obj2 = 0 ;
26774 PyObject * obj3 = 0 ;
26775 char *kwnames[] = {
26776 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26777 };
26778
26779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26782 arg2 = (int)SWIG_As_int(obj1);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 arg3 = (int)SWIG_As_int(obj2);
26785 if (PyErr_Occurred()) SWIG_fail;
26786 arg4 = (int)SWIG_As_int(obj3);
26787 if (PyErr_Occurred()) SWIG_fail;
26788 {
26789 PyThreadState* __tstate = wxPyBeginAllowThreads();
26790 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26791
26792 wxPyEndAllowThreads(__tstate);
26793 if (PyErr_Occurred()) SWIG_fail;
26794 }
26795 resultobj = SWIG_From_int((int)result);
26796 return resultobj;
26797 fail:
26798 return NULL;
26799 }
26800
26801
26802 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26803 PyObject *resultobj;
26804 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26805 int arg2 ;
26806 int arg3 ;
26807 int arg4 ;
26808 int result;
26809 PyObject * obj0 = 0 ;
26810 PyObject * obj1 = 0 ;
26811 PyObject * obj2 = 0 ;
26812 PyObject * obj3 = 0 ;
26813 char *kwnames[] = {
26814 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26815 };
26816
26817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26820 arg2 = (int)SWIG_As_int(obj1);
26821 if (PyErr_Occurred()) SWIG_fail;
26822 arg3 = (int)SWIG_As_int(obj2);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 arg4 = (int)SWIG_As_int(obj3);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 {
26827 PyThreadState* __tstate = wxPyBeginAllowThreads();
26828 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26829
26830 wxPyEndAllowThreads(__tstate);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 resultobj = SWIG_From_int((int)result);
26834 return resultobj;
26835 fail:
26836 return NULL;
26837 }
26838
26839
26840 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26841 PyObject *resultobj;
26842 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26843 PyObject * obj0 = 0 ;
26844 char *kwnames[] = {
26845 (char *) "self", NULL
26846 };
26847
26848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26851 {
26852 PyThreadState* __tstate = wxPyBeginAllowThreads();
26853 (arg1)->base_OnLeave();
26854
26855 wxPyEndAllowThreads(__tstate);
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 Py_INCREF(Py_None); resultobj = Py_None;
26859 return resultobj;
26860 fail:
26861 return NULL;
26862 }
26863
26864
26865 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26866 PyObject *resultobj;
26867 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26868 int arg2 ;
26869 int arg3 ;
26870 bool result;
26871 PyObject * obj0 = 0 ;
26872 PyObject * obj1 = 0 ;
26873 PyObject * obj2 = 0 ;
26874 char *kwnames[] = {
26875 (char *) "self",(char *) "x",(char *) "y", NULL
26876 };
26877
26878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26881 arg2 = (int)SWIG_As_int(obj1);
26882 if (PyErr_Occurred()) SWIG_fail;
26883 arg3 = (int)SWIG_As_int(obj2);
26884 if (PyErr_Occurred()) SWIG_fail;
26885 {
26886 PyThreadState* __tstate = wxPyBeginAllowThreads();
26887 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26888
26889 wxPyEndAllowThreads(__tstate);
26890 if (PyErr_Occurred()) SWIG_fail;
26891 }
26892 {
26893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26894 }
26895 return resultobj;
26896 fail:
26897 return NULL;
26898 }
26899
26900
26901 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26902 PyObject *resultobj;
26903 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26904 bool result;
26905 PyObject * obj0 = 0 ;
26906 char *kwnames[] = {
26907 (char *) "self", NULL
26908 };
26909
26910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26913 {
26914 PyThreadState* __tstate = wxPyBeginAllowThreads();
26915 result = (bool)(arg1)->GetData();
26916
26917 wxPyEndAllowThreads(__tstate);
26918 if (PyErr_Occurred()) SWIG_fail;
26919 }
26920 {
26921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26922 }
26923 return resultobj;
26924 fail:
26925 return NULL;
26926 }
26927
26928
26929 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
26930 PyObject *obj;
26931 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26932 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26933 Py_INCREF(obj);
26934 return Py_BuildValue((char *)"");
26935 }
26936 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26937 PyObject *resultobj;
26938 wxPyTextDropTarget *result;
26939 char *kwnames[] = {
26940 NULL
26941 };
26942
26943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26944 {
26945 PyThreadState* __tstate = wxPyBeginAllowThreads();
26946 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26947
26948 wxPyEndAllowThreads(__tstate);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 }
26951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26952 return resultobj;
26953 fail:
26954 return NULL;
26955 }
26956
26957
26958 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26959 PyObject *resultobj;
26960 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26961 PyObject *arg2 = (PyObject *) 0 ;
26962 PyObject *arg3 = (PyObject *) 0 ;
26963 PyObject * obj0 = 0 ;
26964 PyObject * obj1 = 0 ;
26965 PyObject * obj2 = 0 ;
26966 char *kwnames[] = {
26967 (char *) "self",(char *) "self",(char *) "_class", NULL
26968 };
26969
26970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26973 arg2 = obj1;
26974 arg3 = obj2;
26975 {
26976 PyThreadState* __tstate = wxPyBeginAllowThreads();
26977 (arg1)->_setCallbackInfo(arg2,arg3);
26978
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 Py_INCREF(Py_None); resultobj = Py_None;
26983 return resultobj;
26984 fail:
26985 return NULL;
26986 }
26987
26988
26989 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26990 PyObject *resultobj;
26991 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26992 int arg2 ;
26993 int arg3 ;
26994 int arg4 ;
26995 int result;
26996 PyObject * obj0 = 0 ;
26997 PyObject * obj1 = 0 ;
26998 PyObject * obj2 = 0 ;
26999 PyObject * obj3 = 0 ;
27000 char *kwnames[] = {
27001 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27002 };
27003
27004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27007 arg2 = (int)SWIG_As_int(obj1);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 arg3 = (int)SWIG_As_int(obj2);
27010 if (PyErr_Occurred()) SWIG_fail;
27011 arg4 = (int)SWIG_As_int(obj3);
27012 if (PyErr_Occurred()) SWIG_fail;
27013 {
27014 PyThreadState* __tstate = wxPyBeginAllowThreads();
27015 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
27016
27017 wxPyEndAllowThreads(__tstate);
27018 if (PyErr_Occurred()) SWIG_fail;
27019 }
27020 resultobj = SWIG_From_int((int)result);
27021 return resultobj;
27022 fail:
27023 return NULL;
27024 }
27025
27026
27027 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
27028 PyObject *resultobj;
27029 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27030 int arg2 ;
27031 int arg3 ;
27032 int arg4 ;
27033 int result;
27034 PyObject * obj0 = 0 ;
27035 PyObject * obj1 = 0 ;
27036 PyObject * obj2 = 0 ;
27037 PyObject * obj3 = 0 ;
27038 char *kwnames[] = {
27039 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27040 };
27041
27042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27045 arg2 = (int)SWIG_As_int(obj1);
27046 if (PyErr_Occurred()) SWIG_fail;
27047 arg3 = (int)SWIG_As_int(obj2);
27048 if (PyErr_Occurred()) SWIG_fail;
27049 arg4 = (int)SWIG_As_int(obj3);
27050 if (PyErr_Occurred()) SWIG_fail;
27051 {
27052 PyThreadState* __tstate = wxPyBeginAllowThreads();
27053 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27054
27055 wxPyEndAllowThreads(__tstate);
27056 if (PyErr_Occurred()) SWIG_fail;
27057 }
27058 resultobj = SWIG_From_int((int)result);
27059 return resultobj;
27060 fail:
27061 return NULL;
27062 }
27063
27064
27065 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
27066 PyObject *resultobj;
27067 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27068 PyObject * obj0 = 0 ;
27069 char *kwnames[] = {
27070 (char *) "self", NULL
27071 };
27072
27073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27076 {
27077 PyThreadState* __tstate = wxPyBeginAllowThreads();
27078 (arg1)->base_OnLeave();
27079
27080 wxPyEndAllowThreads(__tstate);
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 Py_INCREF(Py_None); resultobj = Py_None;
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
27091 PyObject *resultobj;
27092 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27093 int arg2 ;
27094 int arg3 ;
27095 bool result;
27096 PyObject * obj0 = 0 ;
27097 PyObject * obj1 = 0 ;
27098 PyObject * obj2 = 0 ;
27099 char *kwnames[] = {
27100 (char *) "self",(char *) "x",(char *) "y", NULL
27101 };
27102
27103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27106 arg2 = (int)SWIG_As_int(obj1);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 arg3 = (int)SWIG_As_int(obj2);
27109 if (PyErr_Occurred()) SWIG_fail;
27110 {
27111 PyThreadState* __tstate = wxPyBeginAllowThreads();
27112 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27113
27114 wxPyEndAllowThreads(__tstate);
27115 if (PyErr_Occurred()) SWIG_fail;
27116 }
27117 {
27118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27119 }
27120 return resultobj;
27121 fail:
27122 return NULL;
27123 }
27124
27125
27126 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
27127 PyObject *resultobj;
27128 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
27129 int arg2 ;
27130 int arg3 ;
27131 int arg4 ;
27132 int result;
27133 PyObject * obj0 = 0 ;
27134 PyObject * obj1 = 0 ;
27135 PyObject * obj2 = 0 ;
27136 PyObject * obj3 = 0 ;
27137 char *kwnames[] = {
27138 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27139 };
27140
27141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
27143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27144 arg2 = (int)SWIG_As_int(obj1);
27145 if (PyErr_Occurred()) SWIG_fail;
27146 arg3 = (int)SWIG_As_int(obj2);
27147 if (PyErr_Occurred()) SWIG_fail;
27148 arg4 = (int)SWIG_As_int(obj3);
27149 if (PyErr_Occurred()) SWIG_fail;
27150 {
27151 PyThreadState* __tstate = wxPyBeginAllowThreads();
27152 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27153
27154 wxPyEndAllowThreads(__tstate);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_From_int((int)result);
27158 return resultobj;
27159 fail:
27160 return NULL;
27161 }
27162
27163
27164 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
27165 PyObject *obj;
27166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27167 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
27168 Py_INCREF(obj);
27169 return Py_BuildValue((char *)"");
27170 }
27171 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
27172 PyObject *resultobj;
27173 wxPyFileDropTarget *result;
27174 char *kwnames[] = {
27175 NULL
27176 };
27177
27178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
27179 {
27180 PyThreadState* __tstate = wxPyBeginAllowThreads();
27181 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
27182
27183 wxPyEndAllowThreads(__tstate);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
27194 PyObject *resultobj;
27195 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27196 PyObject *arg2 = (PyObject *) 0 ;
27197 PyObject *arg3 = (PyObject *) 0 ;
27198 PyObject * obj0 = 0 ;
27199 PyObject * obj1 = 0 ;
27200 PyObject * obj2 = 0 ;
27201 char *kwnames[] = {
27202 (char *) "self",(char *) "self",(char *) "_class", NULL
27203 };
27204
27205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27208 arg2 = obj1;
27209 arg3 = obj2;
27210 {
27211 PyThreadState* __tstate = wxPyBeginAllowThreads();
27212 (arg1)->_setCallbackInfo(arg2,arg3);
27213
27214 wxPyEndAllowThreads(__tstate);
27215 if (PyErr_Occurred()) SWIG_fail;
27216 }
27217 Py_INCREF(Py_None); resultobj = Py_None;
27218 return resultobj;
27219 fail:
27220 return NULL;
27221 }
27222
27223
27224 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
27225 PyObject *resultobj;
27226 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27227 int arg2 ;
27228 int arg3 ;
27229 int arg4 ;
27230 int result;
27231 PyObject * obj0 = 0 ;
27232 PyObject * obj1 = 0 ;
27233 PyObject * obj2 = 0 ;
27234 PyObject * obj3 = 0 ;
27235 char *kwnames[] = {
27236 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27237 };
27238
27239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27242 arg2 = (int)SWIG_As_int(obj1);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 arg3 = (int)SWIG_As_int(obj2);
27245 if (PyErr_Occurred()) SWIG_fail;
27246 arg4 = (int)SWIG_As_int(obj3);
27247 if (PyErr_Occurred()) SWIG_fail;
27248 {
27249 PyThreadState* __tstate = wxPyBeginAllowThreads();
27250 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
27251
27252 wxPyEndAllowThreads(__tstate);
27253 if (PyErr_Occurred()) SWIG_fail;
27254 }
27255 resultobj = SWIG_From_int((int)result);
27256 return resultobj;
27257 fail:
27258 return NULL;
27259 }
27260
27261
27262 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
27263 PyObject *resultobj;
27264 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27265 int arg2 ;
27266 int arg3 ;
27267 int arg4 ;
27268 int result;
27269 PyObject * obj0 = 0 ;
27270 PyObject * obj1 = 0 ;
27271 PyObject * obj2 = 0 ;
27272 PyObject * obj3 = 0 ;
27273 char *kwnames[] = {
27274 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27275 };
27276
27277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27280 arg2 = (int)SWIG_As_int(obj1);
27281 if (PyErr_Occurred()) SWIG_fail;
27282 arg3 = (int)SWIG_As_int(obj2);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 arg4 = (int)SWIG_As_int(obj3);
27285 if (PyErr_Occurred()) SWIG_fail;
27286 {
27287 PyThreadState* __tstate = wxPyBeginAllowThreads();
27288 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27289
27290 wxPyEndAllowThreads(__tstate);
27291 if (PyErr_Occurred()) SWIG_fail;
27292 }
27293 resultobj = SWIG_From_int((int)result);
27294 return resultobj;
27295 fail:
27296 return NULL;
27297 }
27298
27299
27300 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
27301 PyObject *resultobj;
27302 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27303 PyObject * obj0 = 0 ;
27304 char *kwnames[] = {
27305 (char *) "self", NULL
27306 };
27307
27308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27311 {
27312 PyThreadState* __tstate = wxPyBeginAllowThreads();
27313 (arg1)->base_OnLeave();
27314
27315 wxPyEndAllowThreads(__tstate);
27316 if (PyErr_Occurred()) SWIG_fail;
27317 }
27318 Py_INCREF(Py_None); resultobj = Py_None;
27319 return resultobj;
27320 fail:
27321 return NULL;
27322 }
27323
27324
27325 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
27326 PyObject *resultobj;
27327 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27328 int arg2 ;
27329 int arg3 ;
27330 bool result;
27331 PyObject * obj0 = 0 ;
27332 PyObject * obj1 = 0 ;
27333 PyObject * obj2 = 0 ;
27334 char *kwnames[] = {
27335 (char *) "self",(char *) "x",(char *) "y", NULL
27336 };
27337
27338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27341 arg2 = (int)SWIG_As_int(obj1);
27342 if (PyErr_Occurred()) SWIG_fail;
27343 arg3 = (int)SWIG_As_int(obj2);
27344 if (PyErr_Occurred()) SWIG_fail;
27345 {
27346 PyThreadState* __tstate = wxPyBeginAllowThreads();
27347 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27348
27349 wxPyEndAllowThreads(__tstate);
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
27352 {
27353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27354 }
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj;
27363 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27364 int arg2 ;
27365 int arg3 ;
27366 int arg4 ;
27367 int result;
27368 PyObject * obj0 = 0 ;
27369 PyObject * obj1 = 0 ;
27370 PyObject * obj2 = 0 ;
27371 PyObject * obj3 = 0 ;
27372 char *kwnames[] = {
27373 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27374 };
27375
27376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27379 arg2 = (int)SWIG_As_int(obj1);
27380 if (PyErr_Occurred()) SWIG_fail;
27381 arg3 = (int)SWIG_As_int(obj2);
27382 if (PyErr_Occurred()) SWIG_fail;
27383 arg4 = (int)SWIG_As_int(obj3);
27384 if (PyErr_Occurred()) SWIG_fail;
27385 {
27386 PyThreadState* __tstate = wxPyBeginAllowThreads();
27387 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27388
27389 wxPyEndAllowThreads(__tstate);
27390 if (PyErr_Occurred()) SWIG_fail;
27391 }
27392 resultobj = SWIG_From_int((int)result);
27393 return resultobj;
27394 fail:
27395 return NULL;
27396 }
27397
27398
27399 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
27400 PyObject *obj;
27401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27402 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27403 Py_INCREF(obj);
27404 return Py_BuildValue((char *)"");
27405 }
27406 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27407 PyObject *resultobj;
27408 wxClipboard *result;
27409 char *kwnames[] = {
27410 NULL
27411 };
27412
27413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 result = (wxClipboard *)new wxClipboard();
27417
27418 wxPyEndAllowThreads(__tstate);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27422 return resultobj;
27423 fail:
27424 return NULL;
27425 }
27426
27427
27428 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27429 PyObject *resultobj;
27430 wxClipboard *arg1 = (wxClipboard *) 0 ;
27431 PyObject * obj0 = 0 ;
27432 char *kwnames[] = {
27433 (char *) "self", NULL
27434 };
27435
27436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27439 {
27440 PyThreadState* __tstate = wxPyBeginAllowThreads();
27441 delete arg1;
27442
27443 wxPyEndAllowThreads(__tstate);
27444 if (PyErr_Occurred()) SWIG_fail;
27445 }
27446 Py_INCREF(Py_None); resultobj = Py_None;
27447 return resultobj;
27448 fail:
27449 return NULL;
27450 }
27451
27452
27453 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
27454 PyObject *resultobj;
27455 wxClipboard *arg1 = (wxClipboard *) 0 ;
27456 bool result;
27457 PyObject * obj0 = 0 ;
27458 char *kwnames[] = {
27459 (char *) "self", NULL
27460 };
27461
27462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27465 {
27466 PyThreadState* __tstate = wxPyBeginAllowThreads();
27467 result = (bool)(arg1)->Open();
27468
27469 wxPyEndAllowThreads(__tstate);
27470 if (PyErr_Occurred()) SWIG_fail;
27471 }
27472 {
27473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27474 }
27475 return resultobj;
27476 fail:
27477 return NULL;
27478 }
27479
27480
27481 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
27482 PyObject *resultobj;
27483 wxClipboard *arg1 = (wxClipboard *) 0 ;
27484 PyObject * obj0 = 0 ;
27485 char *kwnames[] = {
27486 (char *) "self", NULL
27487 };
27488
27489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27492 {
27493 PyThreadState* __tstate = wxPyBeginAllowThreads();
27494 (arg1)->Close();
27495
27496 wxPyEndAllowThreads(__tstate);
27497 if (PyErr_Occurred()) SWIG_fail;
27498 }
27499 Py_INCREF(Py_None); resultobj = Py_None;
27500 return resultobj;
27501 fail:
27502 return NULL;
27503 }
27504
27505
27506 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
27507 PyObject *resultobj;
27508 wxClipboard *arg1 = (wxClipboard *) 0 ;
27509 bool result;
27510 PyObject * obj0 = 0 ;
27511 char *kwnames[] = {
27512 (char *) "self", NULL
27513 };
27514
27515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27518 {
27519 PyThreadState* __tstate = wxPyBeginAllowThreads();
27520 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27521
27522 wxPyEndAllowThreads(__tstate);
27523 if (PyErr_Occurred()) SWIG_fail;
27524 }
27525 {
27526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27527 }
27528 return resultobj;
27529 fail:
27530 return NULL;
27531 }
27532
27533
27534 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
27535 PyObject *resultobj;
27536 wxClipboard *arg1 = (wxClipboard *) 0 ;
27537 wxDataObject *arg2 = (wxDataObject *) 0 ;
27538 bool result;
27539 PyObject * obj0 = 0 ;
27540 PyObject * obj1 = 0 ;
27541 char *kwnames[] = {
27542 (char *) "self",(char *) "data", NULL
27543 };
27544
27545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27549 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27550 {
27551 PyThreadState* __tstate = wxPyBeginAllowThreads();
27552 result = (bool)(arg1)->AddData(arg2);
27553
27554 wxPyEndAllowThreads(__tstate);
27555 if (PyErr_Occurred()) SWIG_fail;
27556 }
27557 {
27558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27559 }
27560 return resultobj;
27561 fail:
27562 return NULL;
27563 }
27564
27565
27566 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
27567 PyObject *resultobj;
27568 wxClipboard *arg1 = (wxClipboard *) 0 ;
27569 wxDataObject *arg2 = (wxDataObject *) 0 ;
27570 bool result;
27571 PyObject * obj0 = 0 ;
27572 PyObject * obj1 = 0 ;
27573 char *kwnames[] = {
27574 (char *) "self",(char *) "data", NULL
27575 };
27576
27577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27580 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27581 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27582 {
27583 PyThreadState* __tstate = wxPyBeginAllowThreads();
27584 result = (bool)(arg1)->SetData(arg2);
27585
27586 wxPyEndAllowThreads(__tstate);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 {
27590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27591 }
27592 return resultobj;
27593 fail:
27594 return NULL;
27595 }
27596
27597
27598 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
27599 PyObject *resultobj;
27600 wxClipboard *arg1 = (wxClipboard *) 0 ;
27601 wxDataFormat *arg2 = 0 ;
27602 bool result;
27603 PyObject * obj0 = 0 ;
27604 PyObject * obj1 = 0 ;
27605 char *kwnames[] = {
27606 (char *) "self",(char *) "format", NULL
27607 };
27608
27609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27612 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27613 SWIG_POINTER_EXCEPTION | 0)) == -1)
27614 SWIG_fail;
27615 if (arg2 == NULL) {
27616 PyErr_SetString(PyExc_TypeError,"null reference");
27617 SWIG_fail;
27618 }
27619 {
27620 PyThreadState* __tstate = wxPyBeginAllowThreads();
27621 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27622
27623 wxPyEndAllowThreads(__tstate);
27624 if (PyErr_Occurred()) SWIG_fail;
27625 }
27626 {
27627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27628 }
27629 return resultobj;
27630 fail:
27631 return NULL;
27632 }
27633
27634
27635 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
27636 PyObject *resultobj;
27637 wxClipboard *arg1 = (wxClipboard *) 0 ;
27638 wxDataObject *arg2 = 0 ;
27639 bool result;
27640 PyObject * obj0 = 0 ;
27641 PyObject * obj1 = 0 ;
27642 char *kwnames[] = {
27643 (char *) "self",(char *) "data", NULL
27644 };
27645
27646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27649 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27650 SWIG_POINTER_EXCEPTION | 0)) == -1)
27651 SWIG_fail;
27652 if (arg2 == NULL) {
27653 PyErr_SetString(PyExc_TypeError,"null reference");
27654 SWIG_fail;
27655 }
27656 {
27657 PyThreadState* __tstate = wxPyBeginAllowThreads();
27658 result = (bool)(arg1)->GetData(*arg2);
27659
27660 wxPyEndAllowThreads(__tstate);
27661 if (PyErr_Occurred()) SWIG_fail;
27662 }
27663 {
27664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27665 }
27666 return resultobj;
27667 fail:
27668 return NULL;
27669 }
27670
27671
27672 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
27673 PyObject *resultobj;
27674 wxClipboard *arg1 = (wxClipboard *) 0 ;
27675 PyObject * obj0 = 0 ;
27676 char *kwnames[] = {
27677 (char *) "self", NULL
27678 };
27679
27680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27683 {
27684 PyThreadState* __tstate = wxPyBeginAllowThreads();
27685 (arg1)->Clear();
27686
27687 wxPyEndAllowThreads(__tstate);
27688 if (PyErr_Occurred()) SWIG_fail;
27689 }
27690 Py_INCREF(Py_None); resultobj = Py_None;
27691 return resultobj;
27692 fail:
27693 return NULL;
27694 }
27695
27696
27697 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
27698 PyObject *resultobj;
27699 wxClipboard *arg1 = (wxClipboard *) 0 ;
27700 bool result;
27701 PyObject * obj0 = 0 ;
27702 char *kwnames[] = {
27703 (char *) "self", NULL
27704 };
27705
27706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27709 {
27710 PyThreadState* __tstate = wxPyBeginAllowThreads();
27711 result = (bool)(arg1)->Flush();
27712
27713 wxPyEndAllowThreads(__tstate);
27714 if (PyErr_Occurred()) SWIG_fail;
27715 }
27716 {
27717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27718 }
27719 return resultobj;
27720 fail:
27721 return NULL;
27722 }
27723
27724
27725 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
27726 PyObject *resultobj;
27727 wxClipboard *arg1 = (wxClipboard *) 0 ;
27728 bool arg2 = (bool) true ;
27729 PyObject * obj0 = 0 ;
27730 PyObject * obj1 = 0 ;
27731 char *kwnames[] = {
27732 (char *) "self",(char *) "primary", NULL
27733 };
27734
27735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27738 if (obj1) {
27739 arg2 = (bool)SWIG_As_bool(obj1);
27740 if (PyErr_Occurred()) SWIG_fail;
27741 }
27742 {
27743 PyThreadState* __tstate = wxPyBeginAllowThreads();
27744 (arg1)->UsePrimarySelection(arg2);
27745
27746 wxPyEndAllowThreads(__tstate);
27747 if (PyErr_Occurred()) SWIG_fail;
27748 }
27749 Py_INCREF(Py_None); resultobj = Py_None;
27750 return resultobj;
27751 fail:
27752 return NULL;
27753 }
27754
27755
27756 static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
27757 PyObject *resultobj;
27758 wxClipboard *result;
27759 char *kwnames[] = {
27760 NULL
27761 };
27762
27763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27764 {
27765 PyThreadState* __tstate = wxPyBeginAllowThreads();
27766 result = (wxClipboard *)wxClipboard::Get();
27767
27768 wxPyEndAllowThreads(__tstate);
27769 if (PyErr_Occurred()) SWIG_fail;
27770 }
27771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27772 return resultobj;
27773 fail:
27774 return NULL;
27775 }
27776
27777
27778 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
27779 PyObject *obj;
27780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27781 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27782 Py_INCREF(obj);
27783 return Py_BuildValue((char *)"");
27784 }
27785 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27786 PyObject *resultobj;
27787 wxClipboard *arg1 = (wxClipboard *) NULL ;
27788 wxClipboardLocker *result;
27789 PyObject * obj0 = 0 ;
27790 char *kwnames[] = {
27791 (char *) "clipboard", NULL
27792 };
27793
27794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27795 if (obj0) {
27796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27798 }
27799 {
27800 PyThreadState* __tstate = wxPyBeginAllowThreads();
27801 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27802
27803 wxPyEndAllowThreads(__tstate);
27804 if (PyErr_Occurred()) SWIG_fail;
27805 }
27806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27807 return resultobj;
27808 fail:
27809 return NULL;
27810 }
27811
27812
27813 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27814 PyObject *resultobj;
27815 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27816 PyObject * obj0 = 0 ;
27817 char *kwnames[] = {
27818 (char *) "self", NULL
27819 };
27820
27821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27824 {
27825 PyThreadState* __tstate = wxPyBeginAllowThreads();
27826 delete arg1;
27827
27828 wxPyEndAllowThreads(__tstate);
27829 if (PyErr_Occurred()) SWIG_fail;
27830 }
27831 Py_INCREF(Py_None); resultobj = Py_None;
27832 return resultobj;
27833 fail:
27834 return NULL;
27835 }
27836
27837
27838 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
27839 PyObject *resultobj;
27840 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27841 bool result;
27842 PyObject * obj0 = 0 ;
27843 char *kwnames[] = {
27844 (char *) "self", NULL
27845 };
27846
27847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27850 {
27851 PyThreadState* __tstate = wxPyBeginAllowThreads();
27852 result = (bool)wxClipboardLocker___nonzero__(arg1);
27853
27854 wxPyEndAllowThreads(__tstate);
27855 if (PyErr_Occurred()) SWIG_fail;
27856 }
27857 {
27858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27859 }
27860 return resultobj;
27861 fail:
27862 return NULL;
27863 }
27864
27865
27866 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
27867 PyObject *obj;
27868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27869 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27870 Py_INCREF(obj);
27871 return Py_BuildValue((char *)"");
27872 }
27873 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27874 PyObject *resultobj;
27875 int arg1 = (int) 0 ;
27876 int arg2 = (int) 0 ;
27877 int arg3 = (int) 0 ;
27878 int arg4 = (int) 0 ;
27879 wxVideoMode *result;
27880 PyObject * obj0 = 0 ;
27881 PyObject * obj1 = 0 ;
27882 PyObject * obj2 = 0 ;
27883 PyObject * obj3 = 0 ;
27884 char *kwnames[] = {
27885 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27886 };
27887
27888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27889 if (obj0) {
27890 arg1 = (int)SWIG_As_int(obj0);
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 if (obj1) {
27894 arg2 = (int)SWIG_As_int(obj1);
27895 if (PyErr_Occurred()) SWIG_fail;
27896 }
27897 if (obj2) {
27898 arg3 = (int)SWIG_As_int(obj2);
27899 if (PyErr_Occurred()) SWIG_fail;
27900 }
27901 if (obj3) {
27902 arg4 = (int)SWIG_As_int(obj3);
27903 if (PyErr_Occurred()) SWIG_fail;
27904 }
27905 {
27906 PyThreadState* __tstate = wxPyBeginAllowThreads();
27907 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27908
27909 wxPyEndAllowThreads(__tstate);
27910 if (PyErr_Occurred()) SWIG_fail;
27911 }
27912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27913 return resultobj;
27914 fail:
27915 return NULL;
27916 }
27917
27918
27919 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27920 PyObject *resultobj;
27921 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27922 PyObject * obj0 = 0 ;
27923 char *kwnames[] = {
27924 (char *) "self", NULL
27925 };
27926
27927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27930 {
27931 PyThreadState* __tstate = wxPyBeginAllowThreads();
27932 delete arg1;
27933
27934 wxPyEndAllowThreads(__tstate);
27935 if (PyErr_Occurred()) SWIG_fail;
27936 }
27937 Py_INCREF(Py_None); resultobj = Py_None;
27938 return resultobj;
27939 fail:
27940 return NULL;
27941 }
27942
27943
27944 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
27945 PyObject *resultobj;
27946 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27947 wxVideoMode *arg2 = 0 ;
27948 bool result;
27949 PyObject * obj0 = 0 ;
27950 PyObject * obj1 = 0 ;
27951 char *kwnames[] = {
27952 (char *) "self",(char *) "other", NULL
27953 };
27954
27955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27959 SWIG_POINTER_EXCEPTION | 0)) == -1)
27960 SWIG_fail;
27961 if (arg2 == NULL) {
27962 PyErr_SetString(PyExc_TypeError,"null reference");
27963 SWIG_fail;
27964 }
27965 {
27966 PyThreadState* __tstate = wxPyBeginAllowThreads();
27967 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27968
27969 wxPyEndAllowThreads(__tstate);
27970 if (PyErr_Occurred()) SWIG_fail;
27971 }
27972 {
27973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27974 }
27975 return resultobj;
27976 fail:
27977 return NULL;
27978 }
27979
27980
27981 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27982 PyObject *resultobj;
27983 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27984 int result;
27985 PyObject * obj0 = 0 ;
27986 char *kwnames[] = {
27987 (char *) "self", NULL
27988 };
27989
27990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27993 {
27994 PyThreadState* __tstate = wxPyBeginAllowThreads();
27995 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27996
27997 wxPyEndAllowThreads(__tstate);
27998 if (PyErr_Occurred()) SWIG_fail;
27999 }
28000 resultobj = SWIG_From_int((int)result);
28001 return resultobj;
28002 fail:
28003 return NULL;
28004 }
28005
28006
28007 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
28008 PyObject *resultobj;
28009 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28010 int result;
28011 PyObject * obj0 = 0 ;
28012 char *kwnames[] = {
28013 (char *) "self", NULL
28014 };
28015
28016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
28017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28019 {
28020 PyThreadState* __tstate = wxPyBeginAllowThreads();
28021 result = (int)((wxVideoMode const *)arg1)->GetHeight();
28022
28023 wxPyEndAllowThreads(__tstate);
28024 if (PyErr_Occurred()) SWIG_fail;
28025 }
28026 resultobj = SWIG_From_int((int)result);
28027 return resultobj;
28028 fail:
28029 return NULL;
28030 }
28031
28032
28033 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
28034 PyObject *resultobj;
28035 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28036 int result;
28037 PyObject * obj0 = 0 ;
28038 char *kwnames[] = {
28039 (char *) "self", NULL
28040 };
28041
28042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
28043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28045 {
28046 PyThreadState* __tstate = wxPyBeginAllowThreads();
28047 result = (int)((wxVideoMode const *)arg1)->GetDepth();
28048
28049 wxPyEndAllowThreads(__tstate);
28050 if (PyErr_Occurred()) SWIG_fail;
28051 }
28052 resultobj = SWIG_From_int((int)result);
28053 return resultobj;
28054 fail:
28055 return NULL;
28056 }
28057
28058
28059 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
28060 PyObject *resultobj;
28061 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28062 bool result;
28063 PyObject * obj0 = 0 ;
28064 char *kwnames[] = {
28065 (char *) "self", NULL
28066 };
28067
28068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
28069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28071 {
28072 PyThreadState* __tstate = wxPyBeginAllowThreads();
28073 result = (bool)((wxVideoMode const *)arg1)->IsOk();
28074
28075 wxPyEndAllowThreads(__tstate);
28076 if (PyErr_Occurred()) SWIG_fail;
28077 }
28078 {
28079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28080 }
28081 return resultobj;
28082 fail:
28083 return NULL;
28084 }
28085
28086
28087 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
28088 PyObject *resultobj;
28089 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28090 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
28091 bool result;
28092 PyObject * obj0 = 0 ;
28093 PyObject * obj1 = 0 ;
28094 char *kwnames[] = {
28095 (char *) "self",(char *) "other", NULL
28096 };
28097
28098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
28099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28103 {
28104 PyThreadState* __tstate = wxPyBeginAllowThreads();
28105 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
28106
28107 wxPyEndAllowThreads(__tstate);
28108 if (PyErr_Occurred()) SWIG_fail;
28109 }
28110 {
28111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28112 }
28113 return resultobj;
28114 fail:
28115 return NULL;
28116 }
28117
28118
28119 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
28120 PyObject *resultobj;
28121 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28122 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
28123 bool result;
28124 PyObject * obj0 = 0 ;
28125 PyObject * obj1 = 0 ;
28126 char *kwnames[] = {
28127 (char *) "self",(char *) "other", NULL
28128 };
28129
28130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
28131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28133 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28135 {
28136 PyThreadState* __tstate = wxPyBeginAllowThreads();
28137 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
28138
28139 wxPyEndAllowThreads(__tstate);
28140 if (PyErr_Occurred()) SWIG_fail;
28141 }
28142 {
28143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28144 }
28145 return resultobj;
28146 fail:
28147 return NULL;
28148 }
28149
28150
28151 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
28152 PyObject *resultobj;
28153 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28154 int arg2 ;
28155 PyObject * obj0 = 0 ;
28156 PyObject * obj1 = 0 ;
28157 char *kwnames[] = {
28158 (char *) "self",(char *) "w", NULL
28159 };
28160
28161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
28162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28164 arg2 = (int)SWIG_As_int(obj1);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 if (arg1) (arg1)->w = arg2;
28167
28168 Py_INCREF(Py_None); resultobj = Py_None;
28169 return resultobj;
28170 fail:
28171 return NULL;
28172 }
28173
28174
28175 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
28176 PyObject *resultobj;
28177 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28178 int result;
28179 PyObject * obj0 = 0 ;
28180 char *kwnames[] = {
28181 (char *) "self", NULL
28182 };
28183
28184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
28185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28187 result = (int) ((arg1)->w);
28188
28189 resultobj = SWIG_From_int((int)result);
28190 return resultobj;
28191 fail:
28192 return NULL;
28193 }
28194
28195
28196 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
28197 PyObject *resultobj;
28198 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28199 int arg2 ;
28200 PyObject * obj0 = 0 ;
28201 PyObject * obj1 = 0 ;
28202 char *kwnames[] = {
28203 (char *) "self",(char *) "h", NULL
28204 };
28205
28206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
28207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28209 arg2 = (int)SWIG_As_int(obj1);
28210 if (PyErr_Occurred()) SWIG_fail;
28211 if (arg1) (arg1)->h = arg2;
28212
28213 Py_INCREF(Py_None); resultobj = Py_None;
28214 return resultobj;
28215 fail:
28216 return NULL;
28217 }
28218
28219
28220 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
28221 PyObject *resultobj;
28222 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28223 int result;
28224 PyObject * obj0 = 0 ;
28225 char *kwnames[] = {
28226 (char *) "self", NULL
28227 };
28228
28229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
28230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28232 result = (int) ((arg1)->h);
28233
28234 resultobj = SWIG_From_int((int)result);
28235 return resultobj;
28236 fail:
28237 return NULL;
28238 }
28239
28240
28241 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
28242 PyObject *resultobj;
28243 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28244 int arg2 ;
28245 PyObject * obj0 = 0 ;
28246 PyObject * obj1 = 0 ;
28247 char *kwnames[] = {
28248 (char *) "self",(char *) "bpp", NULL
28249 };
28250
28251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
28252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28254 arg2 = (int)SWIG_As_int(obj1);
28255 if (PyErr_Occurred()) SWIG_fail;
28256 if (arg1) (arg1)->bpp = arg2;
28257
28258 Py_INCREF(Py_None); resultobj = Py_None;
28259 return resultobj;
28260 fail:
28261 return NULL;
28262 }
28263
28264
28265 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
28266 PyObject *resultobj;
28267 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28268 int result;
28269 PyObject * obj0 = 0 ;
28270 char *kwnames[] = {
28271 (char *) "self", NULL
28272 };
28273
28274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
28275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28277 result = (int) ((arg1)->bpp);
28278
28279 resultobj = SWIG_From_int((int)result);
28280 return resultobj;
28281 fail:
28282 return NULL;
28283 }
28284
28285
28286 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
28287 PyObject *resultobj;
28288 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28289 int arg2 ;
28290 PyObject * obj0 = 0 ;
28291 PyObject * obj1 = 0 ;
28292 char *kwnames[] = {
28293 (char *) "self",(char *) "refresh", NULL
28294 };
28295
28296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
28297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28299 arg2 = (int)SWIG_As_int(obj1);
28300 if (PyErr_Occurred()) SWIG_fail;
28301 if (arg1) (arg1)->refresh = arg2;
28302
28303 Py_INCREF(Py_None); resultobj = Py_None;
28304 return resultobj;
28305 fail:
28306 return NULL;
28307 }
28308
28309
28310 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
28311 PyObject *resultobj;
28312 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28313 int result;
28314 PyObject * obj0 = 0 ;
28315 char *kwnames[] = {
28316 (char *) "self", NULL
28317 };
28318
28319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
28320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28322 result = (int) ((arg1)->refresh);
28323
28324 resultobj = SWIG_From_int((int)result);
28325 return resultobj;
28326 fail:
28327 return NULL;
28328 }
28329
28330
28331 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
28332 PyObject *obj;
28333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28334 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
28335 Py_INCREF(obj);
28336 return Py_BuildValue((char *)"");
28337 }
28338 static int _wrap_DefaultVideoMode_set(PyObject *) {
28339 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28340 return 1;
28341 }
28342
28343
28344 static PyObject *_wrap_DefaultVideoMode_get() {
28345 PyObject *pyobj;
28346
28347 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28348 return pyobj;
28349 }
28350
28351
28352 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28353 PyObject *resultobj;
28354 size_t arg1 = (size_t) 0 ;
28355 wxDisplay *result;
28356 PyObject * obj0 = 0 ;
28357 char *kwnames[] = {
28358 (char *) "index", NULL
28359 };
28360
28361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28362 if (obj0) {
28363 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
28364 if (PyErr_Occurred()) SWIG_fail;
28365 }
28366 {
28367 PyThreadState* __tstate = wxPyBeginAllowThreads();
28368 result = (wxDisplay *)new wxDisplay(arg1);
28369
28370 wxPyEndAllowThreads(__tstate);
28371 if (PyErr_Occurred()) SWIG_fail;
28372 }
28373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28374 return resultobj;
28375 fail:
28376 return NULL;
28377 }
28378
28379
28380 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28381 PyObject *resultobj;
28382 wxDisplay *arg1 = (wxDisplay *) 0 ;
28383 PyObject * obj0 = 0 ;
28384 char *kwnames[] = {
28385 (char *) "self", NULL
28386 };
28387
28388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28391 {
28392 PyThreadState* __tstate = wxPyBeginAllowThreads();
28393 delete arg1;
28394
28395 wxPyEndAllowThreads(__tstate);
28396 if (PyErr_Occurred()) SWIG_fail;
28397 }
28398 Py_INCREF(Py_None); resultobj = Py_None;
28399 return resultobj;
28400 fail:
28401 return NULL;
28402 }
28403
28404
28405 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
28406 PyObject *resultobj;
28407 size_t result;
28408 char *kwnames[] = {
28409 NULL
28410 };
28411
28412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28413 {
28414 PyThreadState* __tstate = wxPyBeginAllowThreads();
28415 result = (size_t)wxDisplay::GetCount();
28416
28417 wxPyEndAllowThreads(__tstate);
28418 if (PyErr_Occurred()) SWIG_fail;
28419 }
28420 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
28421 return resultobj;
28422 fail:
28423 return NULL;
28424 }
28425
28426
28427 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
28428 PyObject *resultobj;
28429 wxPoint *arg1 = 0 ;
28430 int result;
28431 wxPoint temp1 ;
28432 PyObject * obj0 = 0 ;
28433 char *kwnames[] = {
28434 (char *) "pt", NULL
28435 };
28436
28437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28438 {
28439 arg1 = &temp1;
28440 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28441 }
28442 {
28443 PyThreadState* __tstate = wxPyBeginAllowThreads();
28444 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28445
28446 wxPyEndAllowThreads(__tstate);
28447 if (PyErr_Occurred()) SWIG_fail;
28448 }
28449 resultobj = SWIG_From_int((int)result);
28450 return resultobj;
28451 fail:
28452 return NULL;
28453 }
28454
28455
28456 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28457 PyObject *resultobj;
28458 wxWindow *arg1 = (wxWindow *) 0 ;
28459 int result;
28460 PyObject * obj0 = 0 ;
28461 char *kwnames[] = {
28462 (char *) "window", NULL
28463 };
28464
28465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28468 {
28469 PyThreadState* __tstate = wxPyBeginAllowThreads();
28470 result = (int)Display_GetFromWindow(arg1);
28471
28472 wxPyEndAllowThreads(__tstate);
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 resultobj = SWIG_From_int((int)result);
28476 return resultobj;
28477 fail:
28478 return NULL;
28479 }
28480
28481
28482 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
28483 PyObject *resultobj;
28484 wxDisplay *arg1 = (wxDisplay *) 0 ;
28485 bool result;
28486 PyObject * obj0 = 0 ;
28487 char *kwnames[] = {
28488 (char *) "self", NULL
28489 };
28490
28491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28494 {
28495 PyThreadState* __tstate = wxPyBeginAllowThreads();
28496 result = (bool)((wxDisplay const *)arg1)->IsOk();
28497
28498 wxPyEndAllowThreads(__tstate);
28499 if (PyErr_Occurred()) SWIG_fail;
28500 }
28501 {
28502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28503 }
28504 return resultobj;
28505 fail:
28506 return NULL;
28507 }
28508
28509
28510 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
28511 PyObject *resultobj;
28512 wxDisplay *arg1 = (wxDisplay *) 0 ;
28513 wxRect result;
28514 PyObject * obj0 = 0 ;
28515 char *kwnames[] = {
28516 (char *) "self", NULL
28517 };
28518
28519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28522 {
28523 PyThreadState* __tstate = wxPyBeginAllowThreads();
28524 result = ((wxDisplay const *)arg1)->GetGeometry();
28525
28526 wxPyEndAllowThreads(__tstate);
28527 if (PyErr_Occurred()) SWIG_fail;
28528 }
28529 {
28530 wxRect * resultptr;
28531 resultptr = new wxRect((wxRect &) result);
28532 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28533 }
28534 return resultobj;
28535 fail:
28536 return NULL;
28537 }
28538
28539
28540 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
28541 PyObject *resultobj;
28542 wxDisplay *arg1 = (wxDisplay *) 0 ;
28543 wxString result;
28544 PyObject * obj0 = 0 ;
28545 char *kwnames[] = {
28546 (char *) "self", NULL
28547 };
28548
28549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28552 {
28553 PyThreadState* __tstate = wxPyBeginAllowThreads();
28554 result = ((wxDisplay const *)arg1)->GetName();
28555
28556 wxPyEndAllowThreads(__tstate);
28557 if (PyErr_Occurred()) SWIG_fail;
28558 }
28559 {
28560 #if wxUSE_UNICODE
28561 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28562 #else
28563 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28564 #endif
28565 }
28566 return resultobj;
28567 fail:
28568 return NULL;
28569 }
28570
28571
28572 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
28573 PyObject *resultobj;
28574 wxDisplay *arg1 = (wxDisplay *) 0 ;
28575 bool result;
28576 PyObject * obj0 = 0 ;
28577 char *kwnames[] = {
28578 (char *) "self", NULL
28579 };
28580
28581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28584 {
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28587
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 {
28592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28593 }
28594 return resultobj;
28595 fail:
28596 return NULL;
28597 }
28598
28599
28600 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
28601 PyObject *resultobj;
28602 wxDisplay *arg1 = (wxDisplay *) 0 ;
28603 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28604 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28605 PyObject *result;
28606 PyObject * obj0 = 0 ;
28607 PyObject * obj1 = 0 ;
28608 char *kwnames[] = {
28609 (char *) "self",(char *) "mode", NULL
28610 };
28611
28612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28615 if (obj1) {
28616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28617 SWIG_POINTER_EXCEPTION | 0)) == -1)
28618 SWIG_fail;
28619 if (arg2 == NULL) {
28620 PyErr_SetString(PyExc_TypeError,"null reference");
28621 SWIG_fail;
28622 }
28623 }
28624 {
28625 PyThreadState* __tstate = wxPyBeginAllowThreads();
28626 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28627
28628 wxPyEndAllowThreads(__tstate);
28629 if (PyErr_Occurred()) SWIG_fail;
28630 }
28631 resultobj = result;
28632 return resultobj;
28633 fail:
28634 return NULL;
28635 }
28636
28637
28638 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
28639 PyObject *resultobj;
28640 wxDisplay *arg1 = (wxDisplay *) 0 ;
28641 wxVideoMode result;
28642 PyObject * obj0 = 0 ;
28643 char *kwnames[] = {
28644 (char *) "self", NULL
28645 };
28646
28647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28650 {
28651 PyThreadState* __tstate = wxPyBeginAllowThreads();
28652 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28653
28654 wxPyEndAllowThreads(__tstate);
28655 if (PyErr_Occurred()) SWIG_fail;
28656 }
28657 {
28658 wxVideoMode * resultptr;
28659 resultptr = new wxVideoMode((wxVideoMode &) result);
28660 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28661 }
28662 return resultobj;
28663 fail:
28664 return NULL;
28665 }
28666
28667
28668 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
28669 PyObject *resultobj;
28670 wxDisplay *arg1 = (wxDisplay *) 0 ;
28671 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28672 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28673 bool result;
28674 PyObject * obj0 = 0 ;
28675 PyObject * obj1 = 0 ;
28676 char *kwnames[] = {
28677 (char *) "self",(char *) "mode", NULL
28678 };
28679
28680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28683 if (obj1) {
28684 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28685 SWIG_POINTER_EXCEPTION | 0)) == -1)
28686 SWIG_fail;
28687 if (arg2 == NULL) {
28688 PyErr_SetString(PyExc_TypeError,"null reference");
28689 SWIG_fail;
28690 }
28691 }
28692 {
28693 PyThreadState* __tstate = wxPyBeginAllowThreads();
28694 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28695
28696 wxPyEndAllowThreads(__tstate);
28697 if (PyErr_Occurred()) SWIG_fail;
28698 }
28699 {
28700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28701 }
28702 return resultobj;
28703 fail:
28704 return NULL;
28705 }
28706
28707
28708 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
28709 PyObject *resultobj;
28710 wxDisplay *arg1 = (wxDisplay *) 0 ;
28711 PyObject * obj0 = 0 ;
28712 char *kwnames[] = {
28713 (char *) "self", NULL
28714 };
28715
28716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28719 {
28720 PyThreadState* __tstate = wxPyBeginAllowThreads();
28721 (arg1)->ResetMode();
28722
28723 wxPyEndAllowThreads(__tstate);
28724 if (PyErr_Occurred()) SWIG_fail;
28725 }
28726 Py_INCREF(Py_None); resultobj = Py_None;
28727 return resultobj;
28728 fail:
28729 return NULL;
28730 }
28731
28732
28733 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
28734 PyObject *obj;
28735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28736 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28737 Py_INCREF(obj);
28738 return Py_BuildValue((char *)"");
28739 }
28740 static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) {
28741 PyObject *resultobj;
28742 wxStandardPaths *result;
28743 char *kwnames[] = {
28744 NULL
28745 };
28746
28747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail;
28748 {
28749 PyThreadState* __tstate = wxPyBeginAllowThreads();
28750 result = (wxStandardPaths *)StandardPaths_Get();
28751
28752 wxPyEndAllowThreads(__tstate);
28753 if (PyErr_Occurred()) SWIG_fail;
28754 }
28755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0);
28756 return resultobj;
28757 fail:
28758 return NULL;
28759 }
28760
28761
28762 static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
28763 PyObject *resultobj;
28764 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28765 wxString result;
28766 PyObject * obj0 = 0 ;
28767 char *kwnames[] = {
28768 (char *) "self", NULL
28769 };
28770
28771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail;
28772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28774 {
28775 PyThreadState* __tstate = wxPyBeginAllowThreads();
28776 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
28777
28778 wxPyEndAllowThreads(__tstate);
28779 if (PyErr_Occurred()) SWIG_fail;
28780 }
28781 {
28782 #if wxUSE_UNICODE
28783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28784 #else
28785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28786 #endif
28787 }
28788 return resultobj;
28789 fail:
28790 return NULL;
28791 }
28792
28793
28794 static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
28795 PyObject *resultobj;
28796 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28797 wxString result;
28798 PyObject * obj0 = 0 ;
28799 char *kwnames[] = {
28800 (char *) "self", NULL
28801 };
28802
28803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail;
28804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28806 {
28807 PyThreadState* __tstate = wxPyBeginAllowThreads();
28808 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
28809
28810 wxPyEndAllowThreads(__tstate);
28811 if (PyErr_Occurred()) SWIG_fail;
28812 }
28813 {
28814 #if wxUSE_UNICODE
28815 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28816 #else
28817 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28818 #endif
28819 }
28820 return resultobj;
28821 fail:
28822 return NULL;
28823 }
28824
28825
28826 static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28827 PyObject *resultobj;
28828 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28829 wxString result;
28830 PyObject * obj0 = 0 ;
28831 char *kwnames[] = {
28832 (char *) "self", NULL
28833 };
28834
28835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail;
28836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28838 {
28839 PyThreadState* __tstate = wxPyBeginAllowThreads();
28840 result = ((wxStandardPaths const *)arg1)->GetDataDir();
28841
28842 wxPyEndAllowThreads(__tstate);
28843 if (PyErr_Occurred()) SWIG_fail;
28844 }
28845 {
28846 #if wxUSE_UNICODE
28847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28848 #else
28849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28850 #endif
28851 }
28852 return resultobj;
28853 fail:
28854 return NULL;
28855 }
28856
28857
28858 static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28859 PyObject *resultobj;
28860 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28861 wxString result;
28862 PyObject * obj0 = 0 ;
28863 char *kwnames[] = {
28864 (char *) "self", NULL
28865 };
28866
28867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail;
28868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28870 {
28871 PyThreadState* __tstate = wxPyBeginAllowThreads();
28872 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
28873
28874 wxPyEndAllowThreads(__tstate);
28875 if (PyErr_Occurred()) SWIG_fail;
28876 }
28877 {
28878 #if wxUSE_UNICODE
28879 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28880 #else
28881 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28882 #endif
28883 }
28884 return resultobj;
28885 fail:
28886 return NULL;
28887 }
28888
28889
28890 static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28891 PyObject *resultobj;
28892 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28893 wxString result;
28894 PyObject * obj0 = 0 ;
28895 char *kwnames[] = {
28896 (char *) "self", NULL
28897 };
28898
28899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail;
28900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28902 {
28903 PyThreadState* __tstate = wxPyBeginAllowThreads();
28904 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
28905
28906 wxPyEndAllowThreads(__tstate);
28907 if (PyErr_Occurred()) SWIG_fail;
28908 }
28909 {
28910 #if wxUSE_UNICODE
28911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28912 #else
28913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28914 #endif
28915 }
28916 return resultobj;
28917 fail:
28918 return NULL;
28919 }
28920
28921
28922 static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28923 PyObject *resultobj;
28924 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28925 wxString result;
28926 PyObject * obj0 = 0 ;
28927 char *kwnames[] = {
28928 (char *) "self", NULL
28929 };
28930
28931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail;
28932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28934 {
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
28937
28938 wxPyEndAllowThreads(__tstate);
28939 if (PyErr_Occurred()) SWIG_fail;
28940 }
28941 {
28942 #if wxUSE_UNICODE
28943 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28944 #else
28945 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28946 #endif
28947 }
28948 return resultobj;
28949 fail:
28950 return NULL;
28951 }
28952
28953
28954 static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) {
28955 PyObject *resultobj;
28956 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28957 wxString result;
28958 PyObject * obj0 = 0 ;
28959 char *kwnames[] = {
28960 (char *) "self", NULL
28961 };
28962
28963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail;
28964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28966 {
28967 PyThreadState* __tstate = wxPyBeginAllowThreads();
28968 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
28969
28970 wxPyEndAllowThreads(__tstate);
28971 if (PyErr_Occurred()) SWIG_fail;
28972 }
28973 {
28974 #if wxUSE_UNICODE
28975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28976 #else
28977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28978 #endif
28979 }
28980 return resultobj;
28981 fail:
28982 return NULL;
28983 }
28984
28985
28986 static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
28987 PyObject *resultobj;
28988 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28989 wxString *arg2 = 0 ;
28990 bool temp2 = false ;
28991 PyObject * obj0 = 0 ;
28992 PyObject * obj1 = 0 ;
28993 char *kwnames[] = {
28994 (char *) "self",(char *) "prefix", NULL
28995 };
28996
28997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail;
28998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29000 {
29001 arg2 = wxString_in_helper(obj1);
29002 if (arg2 == NULL) SWIG_fail;
29003 temp2 = true;
29004 }
29005 {
29006 PyThreadState* __tstate = wxPyBeginAllowThreads();
29007 (arg1)->SetInstallPrefix((wxString const &)*arg2);
29008
29009 wxPyEndAllowThreads(__tstate);
29010 if (PyErr_Occurred()) SWIG_fail;
29011 }
29012 Py_INCREF(Py_None); resultobj = Py_None;
29013 {
29014 if (temp2)
29015 delete arg2;
29016 }
29017 return resultobj;
29018 fail:
29019 {
29020 if (temp2)
29021 delete arg2;
29022 }
29023 return NULL;
29024 }
29025
29026
29027 static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
29028 PyObject *resultobj;
29029 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
29030 wxString result;
29031 PyObject * obj0 = 0 ;
29032 char *kwnames[] = {
29033 (char *) "self", NULL
29034 };
29035
29036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail;
29037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
29038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29039 {
29040 PyThreadState* __tstate = wxPyBeginAllowThreads();
29041 result = ((wxStandardPaths const *)arg1)->GetInstallPrefix();
29042
29043 wxPyEndAllowThreads(__tstate);
29044 if (PyErr_Occurred()) SWIG_fail;
29045 }
29046 {
29047 #if wxUSE_UNICODE
29048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29049 #else
29050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29051 #endif
29052 }
29053 return resultobj;
29054 fail:
29055 return NULL;
29056 }
29057
29058
29059 static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) {
29060 PyObject *obj;
29061 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29062 SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj);
29063 Py_INCREF(obj);
29064 return Py_BuildValue((char *)"");
29065 }
29066 static PyMethodDef SwigMethods[] = {
29067 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
29068 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
29069 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
29070 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
29071 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
29072 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
29073 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
29074 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
29075 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
29076 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
29077 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
29078 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
29079 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
29080 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
29081 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
29082 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
29083 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
29084 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL },
29085 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
29086 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
29087 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
29088 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29089 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
29090 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
29091 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
29092 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
29093 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
29094 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
29095 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
29096 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29097 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
29098 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
29099 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
29100 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL },
29101 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL },
29102 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
29103 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
29104 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
29105 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
29106 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
29107 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
29108 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
29109 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
29110 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
29111 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
29112 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
29113 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29114 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29115 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29116 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
29117 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
29118 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
29119 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
29120 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
29121 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
29122 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
29123 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
29124 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29125 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29126 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
29127 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
29128 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
29129 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
29130 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
29131 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
29132 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29133 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29134 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29135 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29136 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29137 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
29138 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
29139 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
29140 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29141 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29142 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29143 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29144 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
29145 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
29146 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
29147 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29148 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29149 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29150 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
29151 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
29152 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
29153 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
29154 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
29155 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29156 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
29157 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29158 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
29159 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29160 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
29161 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29162 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
29163 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
29164 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
29165 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29166 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
29167 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
29168 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
29169 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
29170 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
29171 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29172 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29173 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
29174 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
29175 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
29176 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
29177 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29178 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29179 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
29180 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
29181 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29182 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
29183 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
29184 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
29185 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
29186 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29187 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29188 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29189 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29190 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
29191 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29192 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29193 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
29194 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
29195 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29196 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29197 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
29198 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29199 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
29200 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29201 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29202 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29203 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29204 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
29205 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
29206 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
29207 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29208 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29209 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
29210 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
29211 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
29212 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29213 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29214 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
29215 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
29216 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29217 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
29218 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
29219 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29220 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
29221 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
29222 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29223 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
29224 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
29225 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
29226 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
29227 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29228 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
29229 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29230 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
29231 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
29232 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
29233 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
29234 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29235 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
29236 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
29237 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
29238 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
29239 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
29240 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29241 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
29242 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29243 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29244 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
29245 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
29246 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29247 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
29248 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
29249 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29250 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29251 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29252 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
29253 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
29254 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
29255 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29256 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29257 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29258 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
29259 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
29260 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
29261 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
29262 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
29263 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
29264 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
29265 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
29266 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
29267 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
29268 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
29269 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29270 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
29271 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
29272 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
29273 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29274 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29275 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
29276 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
29277 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
29278 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29279 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29280 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
29281 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
29282 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
29283 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
29284 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
29285 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
29286 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
29287 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
29288 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29289 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
29290 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29291 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
29292 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
29293 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
29294 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
29295 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
29296 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
29297 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
29298 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
29299 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
29300 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
29301 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29302 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
29303 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
29304 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
29305 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29306 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
29307 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29308 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
29309 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
29310 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
29311 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
29312 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
29313 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
29314 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
29315 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
29316 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29317 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
29318 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
29319 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
29320 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29321 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
29322 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
29323 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
29324 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
29325 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
29326 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
29327 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
29328 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
29329 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
29330 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
29331 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29332 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29333 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29334 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29335 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29336 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29337 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29338 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29339 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
29340 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
29341 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29342 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
29343 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
29344 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
29345 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
29346 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
29347 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
29348 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
29349 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
29350 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
29351 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
29352 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
29353 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
29354 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
29355 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
29356 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
29357 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
29358 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
29359 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
29360 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
29361 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
29362 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
29363 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
29364 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
29365 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
29366 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
29367 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
29368 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
29369 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
29370 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
29371 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
29372 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
29373 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
29374 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
29375 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
29376 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
29377 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
29378 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
29379 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
29380 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
29381 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
29382 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
29383 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
29384 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29385 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29386 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29387 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29388 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
29389 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
29390 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
29391 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29392 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
29393 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29394 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29395 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
29396 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
29397 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
29398 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
29399 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
29400 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
29401 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
29402 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
29403 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL },
29404 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
29405 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29406 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL },
29407 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29408 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL },
29409 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL },
29410 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
29411 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
29412 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29413 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
29414 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29415 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29416 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29417 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
29418 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29419 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29420 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29421 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
29422 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29423 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
29424 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
29425 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
29426 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
29427 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
29428 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
29429 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
29430 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29431 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29432 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
29433 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29434 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29435 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29436 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29437 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29438 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
29439 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29440 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29441 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
29442 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29443 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
29444 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
29445 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
29446 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
29447 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
29448 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
29449 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29450 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
29451 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29452 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29453 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
29454 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
29455 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
29456 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
29457 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
29458 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29459 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29460 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29461 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29462 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29463 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29464 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29465 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
29466 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
29467 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
29468 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29469 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29470 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29471 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
29472 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
29473 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
29474 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29475 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29476 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29477 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29478 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
29479 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
29480 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29481 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29482 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
29483 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
29484 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
29485 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
29486 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29487 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
29488 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
29489 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
29490 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29491 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
29492 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29493 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29494 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29495 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29496 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29497 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
29498 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29499 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29500 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29501 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29502 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29503 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29504 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29505 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29506 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29507 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29508 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29509 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
29510 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29511 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29512 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
29513 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29514 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29515 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
29516 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29517 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29518 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
29519 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
29520 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29521 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29522 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29523 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29524 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
29525 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
29526 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29527 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
29528 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
29529 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
29530 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29531 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
29532 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
29533 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
29534 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
29535 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
29536 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
29537 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
29538 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
29539 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
29540 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29541 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29542 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29543 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29544 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
29545 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29546 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
29547 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29548 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29549 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29550 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29551 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
29552 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29553 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29554 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29555 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29556 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29557 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29558 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29559 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29560 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29561 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29562 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29563 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29564 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29565 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29566 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29567 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29568 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29569 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29570 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29571 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29572 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29573 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29574 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29575 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29576 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29577 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29578 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
29579 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
29580 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29581 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29582 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29583 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29584 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
29585 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29586 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
29587 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29588 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29589 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29590 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29591 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29592 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29593 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29594 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29595 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29596 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29597 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29598 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
29599 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29600 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
29601 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29602 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29603 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29604 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
29605 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
29606 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
29607 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
29608 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
29609 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
29610 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
29611 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29612 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
29613 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
29614 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
29615 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
29616 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
29617 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
29618 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
29619 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
29620 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
29621 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
29622 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
29623 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29624 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29625 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
29626 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
29627 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29628 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
29629 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
29630 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
29631 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
29632 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
29633 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
29634 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
29635 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
29636 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
29637 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
29638 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
29639 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29640 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29641 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29642 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29643 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29644 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29645 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29646 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29647 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29648 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29649 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
29650 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29651 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29652 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29653 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29654 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29655 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29656 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29657 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29658 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
29659 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
29660 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
29661 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
29662 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29663 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29664 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
29665 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
29666 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
29667 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29668 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
29669 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29670 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29671 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29672 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
29673 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
29674 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
29675 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
29676 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29677 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
29678 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29679 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29680 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29681 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29682 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29683 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29684 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
29685 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
29686 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
29687 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
29688 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29689 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29690 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29691 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29692 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29693 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29694 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29695 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29696 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
29697 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29698 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29699 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29700 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29701 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29702 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29703 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29704 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29705 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29706 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29707 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29708 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29709 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29710 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29711 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
29712 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
29713 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
29714 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
29715 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
29716 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29717 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29718 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29719 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
29720 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
29721 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
29722 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
29723 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29724 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
29725 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
29726 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29727 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29728 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
29729 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29730 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29731 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
29732 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29733 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29734 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
29735 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29736 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29737 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29738 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29739 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29740 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29741 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
29742 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29743 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29744 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
29745 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
29746 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29747 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
29748 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29749 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
29750 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
29751 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
29752 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
29753 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29754 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29755 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
29756 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29757 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29758 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29759 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
29760 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29761 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29762 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
29763 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29764 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
29765 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
29766 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
29767 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29768 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29769 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29770 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29771 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
29772 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29773 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29774 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29775 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
29776 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29777 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
29778 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
29779 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29780 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29781 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29782 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29783 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29784 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29785 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29786 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
29787 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
29788 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29789 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29790 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29791 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29792 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29793 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29794 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29795 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29796 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29797 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29798 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
29799 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29800 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29801 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29802 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29803 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29804 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29805 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29806 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
29807 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29808 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29809 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29810 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29811 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29812 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29813 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29814 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
29815 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29816 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29817 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29818 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
29819 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29820 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
29821 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29822 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29823 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29824 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
29825 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29826 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
29827 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29828 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
29829 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29830 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29831 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
29832 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
29833 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29834 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29835 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL },
29836 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29837 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
29838 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29839 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29840 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29841 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29842 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL },
29843 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL },
29844 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL },
29845 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL },
29846 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL },
29847 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL },
29848 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL },
29849 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL },
29850 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL },
29851 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29852 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29853 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29854 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29855 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29856 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29857 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL },
29858 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
29859 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL },
29860 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL },
29861 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL },
29862 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL },
29863 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL },
29864 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL },
29865 { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29866 { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL },
29867 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL },
29868 { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29869 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29870 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29871 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29872 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL },
29873 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
29874 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
29875 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL },
29876 { NULL, NULL, 0, NULL }
29877 };
29878
29879
29880 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29881
29882 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29883 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29884 }
29885 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29886 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29887 }
29888 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29889 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29890 }
29891 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29892 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29893 }
29894 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29895 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29896 }
29897 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29898 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29899 }
29900 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29901 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29902 }
29903 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29904 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29905 }
29906 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29907 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29908 }
29909 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29910 return (void *)((wxEvent *) ((wxPyEvent *) x));
29911 }
29912 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29913 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29914 }
29915 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29916 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29917 }
29918 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29919 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29920 }
29921 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29922 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29923 }
29924 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29925 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29926 }
29927 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29928 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29929 }
29930 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29931 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29932 }
29933 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29934 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29935 }
29936 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29937 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29938 }
29939 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29940 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29941 }
29942 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29943 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29944 }
29945 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29946 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29947 }
29948 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29949 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29950 }
29951 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29952 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29953 }
29954 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29955 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29956 }
29957 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29958 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29959 }
29960 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29961 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29962 }
29963 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29964 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29965 }
29966 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29967 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29968 }
29969 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29970 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29971 }
29972 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29973 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29974 }
29975 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29976 return (void *)((wxEvent *) ((wxShowEvent *) x));
29977 }
29978 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29979 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29980 }
29981 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29982 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29983 }
29984 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29985 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29986 }
29987 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29988 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29989 }
29990 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29991 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29992 }
29993 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29994 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29995 }
29996 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29997 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29998 }
29999 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
30000 return (void *)((wxConfigBase *) ((wxConfig *) x));
30001 }
30002 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
30003 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
30004 }
30005 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
30006 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
30007 }
30008 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
30009 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
30010 }
30011 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
30012 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
30013 }
30014 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
30015 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
30016 }
30017 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
30018 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
30019 }
30020 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
30021 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
30022 }
30023 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
30024 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
30025 }
30026 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
30027 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
30028 }
30029 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
30030 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
30031 }
30032 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
30033 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
30034 }
30035 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
30036 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
30037 }
30038 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
30039 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
30040 }
30041 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
30042 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
30043 }
30044 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
30045 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
30046 }
30047 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
30048 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
30049 }
30050 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
30051 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
30052 }
30053 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
30054 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
30055 }
30056 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
30057 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
30058 }
30059 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
30060 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
30061 }
30062 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
30063 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
30064 }
30065 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
30066 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
30067 }
30068 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
30069 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
30070 }
30071 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
30072 return (void *)((wxEvtHandler *) ((wxWindow *) x));
30073 }
30074 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
30075 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30076 }
30077 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
30078 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
30079 }
30080 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
30081 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
30082 }
30083 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
30084 return (void *)((wxEvtHandler *) ((wxValidator *) x));
30085 }
30086 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
30087 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
30088 }
30089 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
30090 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
30091 }
30092 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
30093 return (void *)((wxEvtHandler *) ((wxMenu *) x));
30094 }
30095 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
30096 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
30097 }
30098 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
30099 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
30100 }
30101 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
30102 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
30103 }
30104 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
30105 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
30106 }
30107 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
30108 return (void *)((wxObject *) ((wxSizerItem *) x));
30109 }
30110 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
30111 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
30112 }
30113 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
30114 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
30115 }
30116 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
30117 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
30118 }
30119 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
30120 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
30121 }
30122 static void *_p_wxSizerTo_p_wxObject(void *x) {
30123 return (void *)((wxObject *) ((wxSizer *) x));
30124 }
30125 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
30126 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
30127 }
30128 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
30129 return (void *)((wxObject *) ((wxFileHistory *) x));
30130 }
30131 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
30132 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
30133 }
30134 static void *_p_wxEventTo_p_wxObject(void *x) {
30135 return (void *)((wxObject *) ((wxEvent *) x));
30136 }
30137 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
30138 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
30139 }
30140 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
30141 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
30142 }
30143 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
30144 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
30145 }
30146 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
30147 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
30148 }
30149 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
30150 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
30151 }
30152 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
30153 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
30154 }
30155 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
30156 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
30157 }
30158 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
30159 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30160 }
30161 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
30162 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
30163 }
30164 static void *_p_wxControlTo_p_wxObject(void *x) {
30165 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
30166 }
30167 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
30168 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
30169 }
30170 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
30171 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
30172 }
30173 static void *_p_wxFSFileTo_p_wxObject(void *x) {
30174 return (void *)((wxObject *) ((wxFSFile *) x));
30175 }
30176 static void *_p_wxClipboardTo_p_wxObject(void *x) {
30177 return (void *)((wxObject *) ((wxClipboard *) x));
30178 }
30179 static void *_p_wxPySizerTo_p_wxObject(void *x) {
30180 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
30181 }
30182 static void *_p_wxPyEventTo_p_wxObject(void *x) {
30183 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
30184 }
30185 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
30186 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
30187 }
30188 static void *_p_wxShowEventTo_p_wxObject(void *x) {
30189 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
30190 }
30191 static void *_p_wxToolTipTo_p_wxObject(void *x) {
30192 return (void *)((wxObject *) ((wxToolTip *) x));
30193 }
30194 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
30195 return (void *)((wxObject *) ((wxMenuItem *) x));
30196 }
30197 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
30198 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
30199 }
30200 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
30201 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
30202 }
30203 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
30204 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
30205 }
30206 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
30207 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
30208 }
30209 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
30210 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
30211 }
30212 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
30213 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
30214 }
30215 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
30216 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
30217 }
30218 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
30219 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
30220 }
30221 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
30222 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
30223 }
30224 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
30225 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
30226 }
30227 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
30228 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
30229 }
30230 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
30231 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
30232 }
30233 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
30234 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
30235 }
30236 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
30237 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
30238 }
30239 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
30240 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
30241 }
30242 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
30243 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
30244 }
30245 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
30246 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
30247 }
30248 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
30249 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
30250 }
30251 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
30252 return (void *)((wxObject *) ((wxImageHandler *) x));
30253 }
30254 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
30255 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
30256 }
30257 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
30258 return (void *)((wxObject *) ((wxEvtHandler *) x));
30259 }
30260 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
30261 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
30262 }
30263 static void *_p_wxImageTo_p_wxObject(void *x) {
30264 return (void *)((wxObject *) ((wxImage *) x));
30265 }
30266 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
30267 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
30268 }
30269 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
30270 return (void *)((wxObject *) ((wxSystemOptions *) x));
30271 }
30272 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
30273 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
30274 }
30275 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
30276 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30277 }
30278 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
30279 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
30280 }
30281 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
30282 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
30283 }
30284 static void *_p_wxWindowTo_p_wxObject(void *x) {
30285 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
30286 }
30287 static void *_p_wxMenuTo_p_wxObject(void *x) {
30288 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
30289 }
30290 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
30291 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
30292 }
30293 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
30294 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
30295 }
30296 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
30297 return (void *)((wxObject *) ((wxFileSystem *) x));
30298 }
30299 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
30300 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
30301 }
30302 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
30303 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
30304 }
30305 static void *_p_wxPyAppTo_p_wxObject(void *x) {
30306 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
30307 }
30308 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
30309 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
30310 }
30311 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
30312 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
30313 }
30314 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
30315 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
30316 }
30317 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
30318 return (void *)((wxObject *) ((wxBusyInfo *) x));
30319 }
30320 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
30321 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
30322 }
30323 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
30324 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
30325 }
30326 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
30327 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
30328 }
30329 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
30330 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
30331 }
30332 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
30333 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
30334 }
30335 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
30336 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
30337 }
30338 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
30339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30340 }
30341 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
30342 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
30343 }
30344 static void *_p_wxValidatorTo_p_wxObject(void *x) {
30345 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
30346 }
30347 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
30348 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
30349 }
30350 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
30351 return (void *)((wxLog *) ((wxLogStderr *) x));
30352 }
30353 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
30354 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
30355 }
30356 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
30357 return (void *)((wxLog *) ((wxLogWindow *) x));
30358 }
30359 static void *_p_wxLogChainTo_p_wxLog(void *x) {
30360 return (void *)((wxLog *) ((wxLogChain *) x));
30361 }
30362 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
30363 return (void *)((wxLog *) ((wxLogGui *) x));
30364 }
30365 static void *_p_wxPyLogTo_p_wxLog(void *x) {
30366 return (void *)((wxLog *) ((wxPyLog *) x));
30367 }
30368 static void *_p_wxControlTo_p_wxWindow(void *x) {
30369 return (void *)((wxWindow *) ((wxControl *) x));
30370 }
30371 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
30372 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
30373 }
30374 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
30375 return (void *)((wxWindow *) ((wxMenuBar *) x));
30376 }
30377 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
30378 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
30379 }
30380 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
30381 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
30382 }
30383 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}};
30384 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}};
30385 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}};
30386 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}};
30387 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}};
30388 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}};
30389 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}};
30390 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}};
30391 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}};
30392 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}};
30393 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}};
30394 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}};
30395 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}};
30396 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}};
30397 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}};
30398 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}};
30399 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}};
30400 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}};
30401 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}};
30402 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}};
30403 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}};
30404 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}};
30405 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}};
30406 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}};
30407 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}};
30408 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}};
30409 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}};
30410 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}};
30411 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}};
30412 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}};
30413 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}};
30414 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}};
30415 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}};
30416 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}};
30417 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}};
30418 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}};
30419 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}};
30420 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}};
30421 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}};
30422 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}};
30423 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}};
30424 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}};
30425 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}};
30426 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}};
30427 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}};
30428 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}};
30429 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}};
30430 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}};
30431 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}};
30432 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}};
30433 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}};
30434 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}};
30435 static swig_type_info _swigt__p_wxStandardPaths[] = {{"_p_wxStandardPaths", 0, "wxStandardPaths *", 0, 0, 0, 0},{"_p_wxStandardPaths", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
30436 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}};
30437 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}};
30438 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}};
30439 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}};
30440 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}};
30441 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}};
30442 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}};
30443 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}};
30444 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}};
30445 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}};
30446 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}};
30447 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}};
30448 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}};
30449 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}};
30450 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}};
30451 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}};
30452 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}};
30453 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}};
30454 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}};
30455 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}};
30456 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}};
30457 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}};
30458 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}};
30459 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}};
30460 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}};
30461 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}};
30462 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}};
30463 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}};
30464 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}};
30465 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}};
30466 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}};
30467 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}};
30468 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}};
30469
30470 static swig_type_info *swig_types_initial[] = {
30471 _swigt__p_wxLogChain,
30472 _swigt__p_wxMutexGuiLocker,
30473 _swigt__p_wxFileHistory,
30474 _swigt__p_wxLog,
30475 _swigt__p_wxDateTime__TimeZone,
30476 _swigt__p_wxMenu,
30477 _swigt__p_wxEvent,
30478 _swigt__p_wxConfigBase,
30479 _swigt__p_wxDisplay,
30480 _swigt__p_wxFileType,
30481 _swigt__p_wxLogGui,
30482 _swigt__p_wxFont,
30483 _swigt__p_wxDataFormat,
30484 _swigt__p_wxTimerEvent,
30485 _swigt__p_wxCaret,
30486 _swigt__p_int,
30487 _swigt__p_wxSize,
30488 _swigt__p_wxClipboard,
30489 _swigt__p_wxStopWatch,
30490 _swigt__p_wxDC,
30491 _swigt__p_wxClipboardLocker,
30492 _swigt__p_wxIcon,
30493 _swigt__p_wxLogStderr,
30494 _swigt__p_wxLogTextCtrl,
30495 _swigt__p_wxTextCtrl,
30496 _swigt__p_wxBusyCursor,
30497 _swigt__p_wxPyBitmapDataObject,
30498 _swigt__p_wxPyTextDataObject,
30499 _swigt__p_wxBitmapDataObject,
30500 _swigt__p_wxTextDataObject,
30501 _swigt__p_wxDataObject,
30502 _swigt__p_wxFileDataObject,
30503 _swigt__p_wxCustomDataObject,
30504 _swigt__p_wxURLDataObject,
30505 _swigt__p_wxMetafileDataObject,
30506 _swigt__p_wxSound,
30507 _swigt__p_wxTimerRunner,
30508 _swigt__p_wxLogWindow,
30509 _swigt__p_wxTimeSpan,
30510 _swigt__p_wxArrayString,
30511 _swigt__p_wxWindowDisabler,
30512 _swigt__p_wxToolTip,
30513 _swigt__p_wxDataObjectComposite,
30514 _swigt__p_wxFileConfig,
30515 _swigt__p_wxSystemSettings,
30516 _swigt__p_wxVideoMode,
30517 _swigt__p_wxPyDataObjectSimple,
30518 _swigt__p_wxDataObjectSimple,
30519 _swigt__p_wxEvtHandler,
30520 _swigt__p_wxRect,
30521 _swigt__p_char,
30522 _swigt__p_wxSingleInstanceChecker,
30523 _swigt__p_wxStandardPaths,
30524 _swigt__p_wxFileTypeInfo,
30525 _swigt__p_wxFrame,
30526 _swigt__p_wxTimer,
30527 _swigt__p_wxMimeTypesManager,
30528 _swigt__p_wxPyArtProvider,
30529 _swigt__p_wxPyTipProvider,
30530 _swigt__p_wxTipProvider,
30531 _swigt__p_wxJoystick,
30532 _swigt__p_wxSystemOptions,
30533 _swigt__p_wxPoint,
30534 _swigt__p_wxJoystickEvent,
30535 _swigt__p_wxCursor,
30536 _swigt__p_wxObject,
30537 _swigt__p_wxOutputStream,
30538 _swigt__p_wxDateTime,
30539 _swigt__p_wxPyDropSource,
30540 _swigt__p_wxWindow,
30541 _swigt__p_wxString,
30542 _swigt__p_wxPyProcess,
30543 _swigt__p_wxBitmap,
30544 _swigt__p_wxConfig,
30545 _swigt__p_wxChar,
30546 _swigt__p_wxBusyInfo,
30547 _swigt__p_wxPyDropTarget,
30548 _swigt__p_wxPyTextDropTarget,
30549 _swigt__p_wxPyFileDropTarget,
30550 _swigt__p_wxProcessEvent,
30551 _swigt__p_wxPyLog,
30552 _swigt__p_wxLogNull,
30553 _swigt__p_wxColour,
30554 _swigt__p_wxConfigPathChanger,
30555 _swigt__p_wxPyTimer,
30556 _swigt__p_wxDateSpan,
30557 0
30558 };
30559
30560
30561 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
30562
30563 static swig_const_info swig_const_table[] = {
30564 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
30565 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
30566 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
30567 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
30568 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
30569 {0, 0, 0, 0.0, 0, 0}};
30570
30571 #ifdef __cplusplus
30572 }
30573 #endif
30574
30575 #ifdef __cplusplus
30576 extern "C"
30577 #endif
30578 SWIGEXPORT(void) SWIG_init(void) {
30579 static PyObject *SWIG_globals = 0;
30580 static int typeinit = 0;
30581 PyObject *m, *d;
30582 int i;
30583 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
30584 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30585 d = PyModule_GetDict(m);
30586
30587 if (!typeinit) {
30588 for (i = 0; swig_types_initial[i]; i++) {
30589 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
30590 }
30591 typeinit = 1;
30592 }
30593 SWIG_InstallConstants(d,swig_const_table);
30594
30595 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT));
30596 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT));
30597 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT));
30598 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT));
30599 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT));
30600 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE));
30601 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT));
30602 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT));
30603 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT));
30604 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR));
30605 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND));
30606 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP));
30607 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION));
30608 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION));
30609 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU));
30610 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW));
30611 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME));
30612 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT));
30613 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT));
30614 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT));
30615 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER));
30616 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER));
30617 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE));
30618 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT));
30619 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
30620 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE));
30621 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE));
30622 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW));
30623 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW));
30624 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT));
30625 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT));
30626 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
30627 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT));
30628 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT));
30629 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT));
30630 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT));
30631 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW));
30632 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT));
30633 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT));
30634 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK));
30635 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX));
30636 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT));
30637 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
30638 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
30639 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT));
30640 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR));
30641 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX));
30642 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS));
30643 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X));
30644 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y));
30645 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X));
30646 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y));
30647 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X));
30648 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y));
30649 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X));
30650 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y));
30651 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X));
30652 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y));
30653 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X));
30654 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y));
30655 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X));
30656 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X));
30657 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y));
30658 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X));
30659 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y));
30660 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X));
30661 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y));
30662 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X));
30663 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y));
30664 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X));
30665 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y));
30666 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X));
30667 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y));
30668 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y));
30669 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X));
30670 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X));
30671 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y));
30672 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y));
30673 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y));
30674 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y));
30675 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT));
30676 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT));
30677 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS));
30678 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS));
30679 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30680 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME));
30681 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE));
30682 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY));
30683 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA));
30684 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL));
30685 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP));
30686 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
30687 SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set);
30688 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30689 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30690 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
30691 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF));
30692 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT));
30693 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS));
30694 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT));
30695 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
30696
30697 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30698
30699 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError));
30700 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error));
30701 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning));
30702 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message));
30703 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status));
30704 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info));
30705 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug));
30706 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace));
30707 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress));
30708 PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User));
30709 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max));
30710 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30711 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30712 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30713 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30714 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
30715 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001));
30716 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002));
30717 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004));
30718 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008));
30719 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100));
30720 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT));
30721 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT));
30722 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK));
30723 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL));
30724 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED));
30725 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS));
30726 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR));
30727 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE));
30728 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP));
30729 PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT));
30730 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT));
30731 PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL));
30732 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP));
30733 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT));
30734 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT));
30735 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT));
30736 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE));
30737 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL));
30738 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS));
30739 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV));
30740 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS));
30741 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE));
30742 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM));
30743 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM));
30744 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
30745 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC));
30746 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC));
30747 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE));
30748 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER));
30749
30750 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30751
30752 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1));
30753 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2));
30754 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY));
30755 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1));
30756 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2));
30757 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3));
30758 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4));
30759 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30760 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30761 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30762 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
30763 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC));
30764 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC));
30765 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP));
30766 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD));
30767 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE));
30768 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE));
30769 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME));
30770 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL));
30771 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30772 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30773 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30774 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30775 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30776 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30777 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
30778 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
30779 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30780 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30781 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30782 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30783 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30784 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30785 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30786 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30787 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30788 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30789 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30790 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30791 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30792 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30793 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30794 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30795 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30796 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30797 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30798 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30799 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30800 SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set);
30801 SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set);
30802 SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set);
30803 SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set);
30804 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30805 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set);
30806 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30807 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30808 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30809 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30810 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30811 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30812 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30813 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30814 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30815 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30816
30817 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30818
30819 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE));
30820 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE));
30821 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH));
30822 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30823 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown));
30824 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String));
30825 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean));
30826 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer));
30827 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float));
30828 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30829 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30830 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local));
30831 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12));
30832 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11));
30833 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10));
30834 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9));
30835 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8));
30836 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7));
30837 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6));
30838 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5));
30839 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4));
30840 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3));
30841 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2));
30842 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1));
30843 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0));
30844 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1));
30845 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2));
30846 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3));
30847 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4));
30848 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5));
30849 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6));
30850 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7));
30851 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8));
30852 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9));
30853 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10));
30854 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11));
30855 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12));
30856 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET));
30857 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST));
30858 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET));
30859 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST));
30860 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET));
30861 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST));
30862 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK));
30863 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD));
30864 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST));
30865 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT));
30866 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST));
30867 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT));
30868 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST));
30869 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT));
30870 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST));
30871 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT));
30872 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST));
30873 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT));
30874 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST));
30875 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST));
30876 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT));
30877 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST));
30878 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST));
30879 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST));
30880 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST));
30881 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC));
30882 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian));
30883 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian));
30884 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown));
30885 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard));
30886 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska));
30887 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania));
30888 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria));
30889 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen));
30890 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg));
30891 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol));
30892 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia));
30893 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria));
30894 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium));
30895 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria));
30896 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1));
30897 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2));
30898 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3));
30899 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada));
30900 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China));
30901 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1));
30902 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2));
30903 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia));
30904 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark));
30905 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt));
30906 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia));
30907 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland));
30908 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France));
30909 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace));
30910 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine));
30911 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg));
30912 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany));
30913 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic));
30914 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia));
30915 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant));
30916 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain));
30917 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece));
30918 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary));
30919 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland));
30920 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy));
30921 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan));
30922 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1));
30923 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2));
30924 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3));
30925 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia));
30926 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania));
30927 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg));
30928 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands));
30929 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen));
30930 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland));
30931 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht));
30932 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland));
30933 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway));
30934 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland));
30935 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal));
30936 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania));
30937 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia));
30938 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland));
30939 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain));
30940 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden));
30941 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland));
30942 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic));
30943 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant));
30944 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey));
30945 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA));
30946 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales));
30947 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia));
30948 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown));
30949 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default));
30950 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start));
30951 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC));
30952 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France));
30953 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany));
30954 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK));
30955 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End));
30956 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia));
30957 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA));
30958 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan));
30959 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb));
30960 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar));
30961 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr));
30962 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May));
30963 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun));
30964 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul));
30965 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug));
30966 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep));
30967 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct));
30968 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov));
30969 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec));
30970 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month));
30971 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun));
30972 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon));
30973 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue));
30974 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed));
30975 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu));
30976 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri));
30977 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat));
30978 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay));
30979 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year));
30980 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full));
30981 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr));
30982 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First));
30983 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First));
30984 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First));
30985 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30986 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID));
30987 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT));
30988 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP));
30989 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE));
30990 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK));
30991 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF));
30992 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF));
30993 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT));
30994 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB));
30995 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE));
30996 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA));
30997 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF));
30998 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE));
30999 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT));
31000 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE));
31001 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME));
31002 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE));
31003 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE));
31004 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML));
31005 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX));
31006 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
31007 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get));
31008 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set));
31009 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both));
31010 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly));
31011 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove));
31012 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove));
31013 PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError));
31014 PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone));
31015 PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy));
31016 PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove));
31017 PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink));
31018 PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel));
31019
31020 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
31021 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
31022 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
31023 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
31024
31025 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
31026 }
31027