]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_misc_wrap.cpp
Some change notes
[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_wxFileTypeInfo swig_types[52]
264 #define SWIGTYPE_p_wxFrame swig_types[53]
265 #define SWIGTYPE_p_wxTimer swig_types[54]
266 #define SWIGTYPE_p_wxMimeTypesManager swig_types[55]
267 #define SWIGTYPE_p_wxPyArtProvider swig_types[56]
268 #define SWIGTYPE_p_wxPyTipProvider swig_types[57]
269 #define SWIGTYPE_p_wxTipProvider swig_types[58]
270 #define SWIGTYPE_p_wxJoystick swig_types[59]
271 #define SWIGTYPE_p_wxSystemOptions swig_types[60]
272 #define SWIGTYPE_p_wxPoint swig_types[61]
273 #define SWIGTYPE_p_wxJoystickEvent swig_types[62]
274 #define SWIGTYPE_p_wxCursor swig_types[63]
275 #define SWIGTYPE_p_wxObject swig_types[64]
276 #define SWIGTYPE_p_wxOutputStream swig_types[65]
277 #define SWIGTYPE_p_wxDateTime swig_types[66]
278 #define SWIGTYPE_p_wxPyDropSource swig_types[67]
279 #define SWIGTYPE_p_wxWindow swig_types[68]
280 #define SWIGTYPE_p_wxString swig_types[69]
281 #define SWIGTYPE_p_wxPyProcess swig_types[70]
282 #define SWIGTYPE_p_wxBitmap swig_types[71]
283 #define SWIGTYPE_p_wxConfig swig_types[72]
284 #define SWIGTYPE_p_wxChar swig_types[73]
285 #define SWIGTYPE_p_wxBusyInfo swig_types[74]
286 #define SWIGTYPE_p_wxPyDropTarget swig_types[75]
287 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[76]
288 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[77]
289 #define SWIGTYPE_p_wxProcessEvent swig_types[78]
290 #define SWIGTYPE_p_wxPyLog swig_types[79]
291 #define SWIGTYPE_p_wxLogNull swig_types[80]
292 #define SWIGTYPE_p_wxColour swig_types[81]
293 #define SWIGTYPE_p_wxConfigPathChanger swig_types[82]
294 #define SWIGTYPE_p_wxPyTimer swig_types[83]
295 #define SWIGTYPE_p_wxDateSpan swig_types[84]
296 static swig_type_info *swig_types[86];
297
298 /* -------- TYPES TABLE (END) -------- */
299
300
301 /*-----------------------------------------------
302 @(target):= _misc_.so
303 ------------------------------------------------*/
304 #define SWIG_init init_misc_
305
306 #define SWIG_name "_misc_"
307
308 /* Auxiliar swig macros that appear in the header */
309
310 #define SWIG_OLDOBJ 1
311 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
312 #define SWIG_PYSTR SWIG_NEWOBJ + 1
313
314 #ifdef __cplusplus
315 #define SWIGSTATICINLINE(a) static inline a
316 #define SWIGSTATIC(a) static a
317 #define swig_new_array(size,Type) (new Type[(size)])
318 #define swig_delete(cptr) delete cptr
319 #define swig_delete_array(cptr) delete[] cptr
320 #define swig_const_cast(a,Type) const_cast<Type >(a)
321 #define swig_static_cast(a,Type) static_cast<Type >(a)
322 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
323 #define swig_new_copy(ptr,Type) (new Type(*ptr))
324 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
325
326 #else /* C case */
327
328 #define SWIGSTATICINLINE(a) static a
329 #define SWIGSTATIC(a) static a
330 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
331 #define swig_delete(cptr) free((char*)cptr)
332 #define swig_delete_array(cptr) free((char*)cptr)
333 #define swig_const_cast(a,Type) (Type)(a)
334 #define swig_static_cast(a,Type) (Type)(a)
335 #define swig_reinterpret_cast(a,Type) (Type)(a)
336 #define swig_numeric_cast(a,Type) (Type)(a)
337 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
338
339 #endif /* __cplusplus */
340
341
342 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
343 #define SWIG_From_signed_SS_char PyInt_FromLong
344 /*@@*/
345 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
346 #define SWIG_From_unsigned_SS_char PyInt_FromLong
347 /*@@*/
348 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
349 #define SWIG_From_short PyInt_FromLong
350 /*@@*/
351 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
352 #define SWIG_From_unsigned_SS_short PyInt_FromLong
353 /*@@*/
354 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
355 #define SWIG_From_int PyInt_FromLong
356 /*@@*/
357 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
358 #define SWIG_From_long PyInt_FromLong
359 /*@@*/
360 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
361 #define SWIG_From_float PyFloat_FromDouble
362 /*@@*/
363 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
364 #define SWIG_From_double PyFloat_FromDouble
365 /*@@*/
366
367
368 #include "wx/wxPython/wxPython.h"
369 #include "wx/wxPython/pyclasses.h"
370 #include "wx/wxPython/pyistream.h"
371
372 static const wxString wxPyEmptyString(wxEmptyString);
373
374
375
376 #include <limits.h>
377
378
379 SWIGSTATICINLINE(int)
380 SWIG_CheckLongInRange(long value, long min_value, long max_value,
381 const char *errmsg)
382 {
383 if (value < min_value) {
384 if (errmsg) {
385 PyErr_Format(PyExc_OverflowError,
386 "value %ld is less than '%s' minimum %ld",
387 value, errmsg, min_value);
388 }
389 return 0;
390 } else if (value > max_value) {
391 if (errmsg) {
392 PyErr_Format(PyExc_OverflowError,
393 "value %ld is greater than '%s' maximum %ld",
394 value, errmsg, max_value);
395 }
396 return 0;
397 }
398 return 1;
399 }
400
401
402 // See my_fragments.i
403 SWIGSTATICINLINE(int)
404 SWIG_AsVal_long(PyObject* obj, long* val)
405 {
406 if (PyNumber_Check(obj)) {
407 if (val) *val = PyInt_AsLong(obj);
408 return 1;
409 }
410 else {
411 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
412 obj->ob_type->tp_name);
413 PyErr_SetObject(PyExc_TypeError, errmsg);
414 Py_DECREF(errmsg);
415 }
416 return 0;
417 }
418
419
420 #if INT_MAX != LONG_MAX
421 SWIGSTATICINLINE(int)
422 SWIG_AsVal_int(PyObject *obj, int *val)
423 {
424 const char* errmsg = val ? "int" : 0;
425 long v;
426 if (SWIG_AsVal_long(obj, &v)) {
427 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
428 if (val) *val = swig_numeric_cast(v, int);
429 return 1;
430 } else {
431 return 0;
432 }
433 } else {
434 PyErr_Clear();
435 }
436 if (val) {
437 PyErr_SetString(PyExc_TypeError, "an int is expected");
438 }
439 return 0;
440 }
441 #else
442 SWIGSTATICINLINE(int)
443 SWIG_AsVal_int(PyObject *obj, int *val)
444 {
445 return SWIG_AsVal_long(obj,(long*)val);
446 }
447 #endif
448
449
450 SWIGSTATICINLINE(int)
451 SWIG_As_int(PyObject* obj)
452 {
453 int v;
454 if (!SWIG_AsVal_int(obj, &v)) {
455 /*
456 this is needed to make valgrind/purify happier. the other
457 solution is throw an exception, but since this code should work
458 with plain C ....
459 */
460 memset((void*)&v, 0, sizeof(int));
461 }
462 return v;
463 }
464
465
466 SWIGSTATICINLINE(int)
467 SWIG_Check_int(PyObject* obj)
468 {
469 return SWIG_AsVal_int(obj, (int*)0);
470 }
471
472
473 #include <wx/stockitem.h>
474
475 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
476 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
477 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
478
479 SWIGSTATICINLINE(long)
480 SWIG_As_long(PyObject* obj)
481 {
482 long v;
483 if (!SWIG_AsVal_long(obj, &v)) {
484 /*
485 this is needed to make valgrind/purify happier. the other
486 solution is throw an exception, but since this code should work
487 with plain C ....
488 */
489 memset((void*)&v, 0, sizeof(long));
490 }
491 return v;
492 }
493
494
495 SWIGSTATICINLINE(int)
496 SWIG_Check_long(PyObject* obj)
497 {
498 return SWIG_AsVal_long(obj, (long*)0);
499 }
500
501
502 SWIGSTATICINLINE(int)
503 SWIG_AsVal_bool(PyObject *obj, bool *val)
504 {
505 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
506 if (obj == Py_True) {
507 if (val) *val = true;
508 return 1;
509 }
510 if (obj == Py_False) {
511 if (val) *val = false;
512 return 1;
513 }
514 int res = 0;
515 if (SWIG_AsVal_int(obj, &res)) {
516 if (val) *val = (bool)res;
517 return 1;
518 }
519 if (val) {
520 PyErr_SetString(PyExc_TypeError, "a bool is expected");
521 }
522 return 0;
523 }
524
525
526 SWIGSTATICINLINE(bool)
527 SWIG_As_bool(PyObject* obj)
528 {
529 bool v;
530 if (!SWIG_AsVal_bool(obj, &v)) {
531 /*
532 this is needed to make valgrind/purify happier. the other
533 solution is throw an exception, but since this code should work
534 with plain C ....
535 */
536 memset((void*)&v, 0, sizeof(bool));
537 }
538 return v;
539 }
540
541
542 SWIGSTATICINLINE(int)
543 SWIG_Check_bool(PyObject* obj)
544 {
545 return SWIG_AsVal_bool(obj, (bool*)0);
546 }
547
548
549 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
550 PyObject* o2;
551 PyObject* o3;
552
553 if (!target) {
554 target = o;
555 } else if (target == Py_None) {
556 Py_DECREF(Py_None);
557 target = o;
558 } else {
559 o2 = target;
560 target = PyTuple_New(1);
561 PyTuple_SetItem(target, 0, o2);
562
563 o3 = PyTuple_New(1);
564 PyTuple_SetItem(o3, 0, o);
565
566 o2 = target;
567 target = PySequence_Concat(o2, o3);
568 Py_DECREF(o2);
569 Py_DECREF(o3);
570 }
571 return target;
572 }
573
574
575
576 long wxGetFreeMemory()
577 { wxPyRaiseNotImplemented(); return 0; }
578
579
580 // See my_fragments.i
581 SWIGSTATICINLINE(int)
582 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
583 {
584 long v = 0;
585 if (SWIG_AsVal_long(obj, &v) && v < 0) {
586 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
587 return 0;
588 }
589 else if (val)
590 *val = (unsigned long)v;
591 return 1;
592 }
593
594
595 SWIGSTATICINLINE(unsigned long)
596 SWIG_As_unsigned_SS_long(PyObject* obj)
597 {
598 unsigned long v;
599 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
600 /*
601 this is needed to make valgrind/purify happier. the other
602 solution is throw an exception, but since this code should work
603 with plain C ....
604 */
605 memset((void*)&v, 0, sizeof(unsigned long));
606 }
607 return v;
608 }
609
610
611 SWIGSTATICINLINE(int)
612 SWIG_Check_unsigned_SS_long(PyObject* obj)
613 {
614 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
615 }
616
617
618 SWIGSTATICINLINE(PyObject* )
619 SWIG_From_unsigned_SS_long(unsigned long value)
620 {
621 return (value > LONG_MAX) ?
622 PyLong_FromUnsignedLong(value)
623 : PyInt_FromLong(swig_numeric_cast(value,long));
624 }
625
626
627 void wxWakeUpMainThread() {}
628
629
630 bool wxThread_IsMain() {
631 #ifdef WXP_WITH_THREAD
632 return wxThread::IsMain();
633 #else
634 return True;
635 #endif
636 }
637
638
639 int wxCaret_GetBlinkTime() {
640 return wxCaret::GetBlinkTime();
641 }
642
643 void wxCaret_SetBlinkTime(int milliseconds) {
644 wxCaret::SetBlinkTime(milliseconds);
645 }
646
647
648 #include <wx/snglinst.h>
649
650
651 #ifdef __WXMSW__
652 #include <wx/msw/private.h>
653 #include <wx/dynload.h>
654 #endif
655
656
657
658 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
659 {
660 #ifdef __WXMSW__
661
662 switch (method)
663 {
664 case 1:
665 // This one only partially works. Appears to be an undocumented
666 // "standard" convention that not all widgets adhear to. For
667 // example, for some widgets backgrounds or non-client areas may
668 // not be painted.
669 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
670 break;
671
672 case 2:
673 // This one works much better, except for on XP. On Win2k nearly
674 // all widgets and their children are captured correctly[**]. On
675 // XP with Themes activated most native widgets draw only
676 // partially, if at all. Without themes it works just like on
677 // Win2k.
678 //
679 // ** For example the radio buttons in a wxRadioBox are not its
680 // children by default, but you can capture it via the panel
681 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
682 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
683 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
684 PRF_ERASEBKGND | PRF_OWNED );
685 break;
686
687 case 3:
688 // This one is only defined in the latest SDK and is only
689 // available on XP. MSDN says it is similar to sending WM_PRINT
690 // so I expect that it will work similar to the above. Since it
691 // is avaialble only on XP, it can't be compiled like this and
692 // will have to be loaded dynamically.
693 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
694
695 // fall through
696
697 case 4:
698 // Use PrintWindow if available, or fallback to WM_PRINT
699 // otherwise. Unfortunately using PrintWindow is even worse than
700 // WM_PRINT. For most native widgets nothing is drawn to the dc
701 // at all, with or without Themes.
702 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
703 static bool s_triedToLoad = False;
704 static PrintWindow_t pfnPrintWindow = NULL;
705 if ( !s_triedToLoad )
706 {
707
708 s_triedToLoad = True;
709 wxDynamicLibrary dllUser32(_T("user32.dll"));
710 if ( dllUser32.IsLoaded() )
711 {
712 wxLogNull nolog; // Don't report errors here
713 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
714 }
715 }
716 if (pfnPrintWindow)
717 {
718 printf("Using PrintWindow\n");
719 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
720 }
721 else
722 {
723 printf("Using WM_PRINT\n");
724 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
725 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
726 }
727 }
728 #endif
729 }
730
731
732
733 #include <wx/tipdlg.h>
734
735
736 class wxPyTipProvider : public wxTipProvider {
737 public:
738 wxPyTipProvider(size_t currentTip)
739 : wxTipProvider(currentTip) {}
740
741 DEC_PYCALLBACK_STRING__pure(GetTip);
742 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
743 PYPRIVATE;
744 };
745
746 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
747 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
748
749
750 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
751
752 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
753
754 void wxPyTimer::Notify() {
755 bool found;
756 bool blocked = wxPyBeginBlockThreads();
757 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
758 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
759 wxPyEndBlockThreads(blocked);
760 if (! found)
761 wxTimer::Notify();
762 }
763 void wxPyTimer::base_Notify() {
764 wxTimer::Notify();
765 }
766
767
768
769 SWIGSTATICINLINE(PyObject *)
770 SWIG_FromCharPtr(const char* cptr)
771 {
772 if (cptr) {
773 size_t size = strlen(cptr);
774 if (size > INT_MAX) {
775 return SWIG_NewPointerObj(swig_const_cast(cptr,char*),
776 SWIG_TypeQuery("char *"), 0);
777 } else {
778 if (size != 0) {
779 return PyString_FromStringAndSize(cptr, size);
780 } else {
781 return PyString_FromString(cptr);
782 }
783 }
784 }
785 Py_INCREF(Py_None);
786 return Py_None;
787 }
788
789
790 SWIGSTATICINLINE(int)
791 SWIG_CheckUnsignedLongInRange(unsigned long value,
792 unsigned long max_value,
793 const char *errmsg)
794 {
795 if (value > max_value) {
796 if (errmsg) {
797 PyErr_Format(PyExc_OverflowError,
798 "value %ld is greater than '%s' minimum %ld",
799 value, errmsg, max_value);
800 }
801 return 0;
802 }
803 return 1;
804 }
805
806
807 #if UINT_MAX != ULONG_MAX
808 SWIGSTATICINLINE(int)
809 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
810 {
811 const char* errmsg = val ? "unsigned int" : 0;
812 unsigned long v;
813 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
814 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
815 if (val) *val = swig_numeric_cast(v, unsigned int);
816 return 1;
817 }
818 } else {
819 PyErr_Clear();
820 }
821 if (val) {
822 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
823 }
824 return 0;
825 }
826 #else
827 SWIGSTATICINLINE(unsigned int)
828 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
829 {
830 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
831 }
832 #endif
833
834
835 SWIGSTATICINLINE(unsigned int)
836 SWIG_As_unsigned_SS_int(PyObject* obj)
837 {
838 unsigned int v;
839 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
840 /*
841 this is needed to make valgrind/purify happier. the other
842 solution is throw an exception, but since this code should work
843 with plain C ....
844 */
845 memset((void*)&v, 0, sizeof(unsigned int));
846 }
847 return v;
848 }
849
850
851 SWIGSTATICINLINE(int)
852 SWIG_Check_unsigned_SS_int(PyObject* obj)
853 {
854 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
855 }
856
857 wxString Log_TimeStamp(){
858 wxString msg;
859 wxLog::TimeStamp(&msg);
860 return msg;
861 }
862 void wxLog_Destroy(wxLog *self){ delete self; }
863
864 // A wxLog class that can be derived from in wxPython
865 class wxPyLog : public wxLog {
866 public:
867 wxPyLog() : wxLog() {}
868
869 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
870 bool found;
871 bool blocked = wxPyBeginBlockThreads();
872 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
873 PyObject* s = wx2PyString(szString);
874 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
875 Py_DECREF(s);
876 }
877 wxPyEndBlockThreads(blocked);
878 if (! found)
879 wxLog::DoLog(level, szString, t);
880 }
881
882 virtual void DoLogString(const wxChar *szString, time_t t) {
883 bool found;
884 bool blocked = wxPyBeginBlockThreads();
885 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
886 PyObject* s = wx2PyString(szString);
887 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
888 Py_DECREF(s);
889 }
890 wxPyEndBlockThreads(blocked);
891 if (! found)
892 wxLog::DoLogString(szString, t);
893 }
894
895 PYPRIVATE;
896 };
897
898
899
900
901 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
902
903
904 #include <wx/joystick.h>
905
906
907 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
908 // A C++ stub class for wxJoystick for platforms that don't have it.
909 class wxJoystick : public wxObject {
910 public:
911 wxJoystick(int joystick = wxJOYSTICK1) {
912 bool blocked = wxPyBeginBlockThreads();
913 PyErr_SetString(PyExc_NotImplementedError,
914 "wxJoystick is not available on this platform.");
915 wxPyEndBlockThreads(blocked);
916 }
917 wxPoint GetPosition() { return wxPoint(-1,-1); }
918 int GetZPosition() { return -1; }
919 int GetButtonState() { return -1; }
920 int GetPOVPosition() { return -1; }
921 int GetPOVCTSPosition() { return -1; }
922 int GetRudderPosition() { return -1; }
923 int GetUPosition() { return -1; }
924 int GetVPosition() { return -1; }
925 int GetMovementThreshold() { return -1; }
926 void SetMovementThreshold(int threshold) {}
927
928 bool IsOk(void) { return False; }
929 int GetNumberJoysticks() { return -1; }
930 int GetManufacturerId() { return -1; }
931 int GetProductId() { return -1; }
932 wxString GetProductName() { return wxEmptyString; }
933 int GetXMin() { return -1; }
934 int GetYMin() { return -1; }
935 int GetZMin() { return -1; }
936 int GetXMax() { return -1; }
937 int GetYMax() { return -1; }
938 int GetZMax() { return -1; }
939 int GetNumberButtons() { return -1; }
940 int GetNumberAxes() { return -1; }
941 int GetMaxButtons() { return -1; }
942 int GetMaxAxes() { return -1; }
943 int GetPollingMin() { return -1; }
944 int GetPollingMax() { return -1; }
945 int GetRudderMin() { return -1; }
946 int GetRudderMax() { return -1; }
947 int GetUMin() { return -1; }
948 int GetUMax() { return -1; }
949 int GetVMin() { return -1; }
950 int GetVMax() { return -1; }
951
952 bool HasRudder() { return False; }
953 bool HasZ() { return False; }
954 bool HasU() { return False; }
955 bool HasV() { return False; }
956 bool HasPOV() { return False; }
957 bool HasPOV4Dir() { return False; }
958 bool HasPOVCTS() { return False; }
959
960 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
961 bool ReleaseCapture() { return False; }
962 };
963 #endif
964
965
966 #include <wx/sound.h>
967
968
969 #if !wxUSE_SOUND
970 // A C++ stub class for wxWave for platforms that don't have it.
971 class wxSound : public wxObject
972 {
973 public:
974 wxSound() {
975 bool blocked = wxPyBeginBlockThreads();
976 PyErr_SetString(PyExc_NotImplementedError,
977 "wxSound is not available on this platform.");
978 wxPyEndBlockThreads(blocked);
979 }
980 wxSound(const wxString&/*, bool*/) {
981 bool blocked = wxPyBeginBlockThreads();
982 PyErr_SetString(PyExc_NotImplementedError,
983 "wxSound is not available on this platform.");
984 wxPyEndBlockThreads(blocked);
985 }
986 wxSound(int, const wxByte*) {
987 bool blocked = wxPyBeginBlockThreads();
988 PyErr_SetString(PyExc_NotImplementedError,
989 "wxSound is not available on this platform.");
990 wxPyEndBlockThreads(blocked);
991 }
992
993 ~wxSound() {};
994
995 bool Create(const wxString&/*, bool*/) { return false; }
996 bool Create(int, const wxByte*) { return false; };
997 bool IsOk() { return false; };
998 bool Play(unsigned) const { return false; }
999 static bool Play(const wxString&, unsigned) { return false; }
1000 static void Stop() {}
1001 };
1002
1003 #endif
1004
1005 wxSound *new_wxSound(wxString const &fileName){
1006 if (fileName.Length() == 0)
1007 return new wxSound;
1008 else
1009 return new wxSound(fileName);
1010 }
1011 wxSound *new_wxSound(PyObject *data){
1012 unsigned char* buffer; int size;
1013 wxSound *sound = NULL;
1014
1015 bool blocked = wxPyBeginBlockThreads();
1016 if (!PyArg_Parse(data, "t#", &buffer, &size))
1017 goto done;
1018 sound = new wxSound(size, buffer);
1019 done:
1020 wxPyEndBlockThreads(blocked);
1021 return sound;
1022 }
1023 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
1024 #ifndef __WXMAC__
1025 unsigned char* buffer;
1026 int size;
1027 bool rv = False;
1028
1029 bool blocked = wxPyBeginBlockThreads();
1030 if (!PyArg_Parse(data, "t#", &buffer, &size))
1031 goto done;
1032 rv = self->Create(size, buffer);
1033 done:
1034 wxPyEndBlockThreads(blocked);
1035 return rv;
1036 #else
1037 bool blocked = wxPyBeginBlockThreads();
1038 PyErr_SetString(PyExc_NotImplementedError,
1039 "Create from data is not available on this platform.");
1040 wxPyEndBlockThreads(blocked);
1041 return False;
1042 #endif
1043 }
1044
1045 #include <wx/mimetype.h>
1046
1047 PyObject *wxFileType_GetMimeType(wxFileType *self){
1048 wxString str;
1049 if (self->GetMimeType(&str))
1050 return wx2PyString(str);
1051 else
1052 RETURN_NONE();
1053 }
1054 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
1055 wxArrayString arr;
1056 if (self->GetMimeTypes(arr))
1057 return wxArrayString2PyList_helper(arr);
1058 else
1059 RETURN_NONE();
1060 }
1061 PyObject *wxFileType_GetExtensions(wxFileType *self){
1062 wxArrayString arr;
1063 if (self->GetExtensions(arr))
1064 return wxArrayString2PyList_helper(arr);
1065 else
1066 RETURN_NONE();
1067 }
1068 wxIcon *wxFileType_GetIcon(wxFileType *self){
1069 wxIconLocation loc;
1070 if (self->GetIcon(&loc))
1071 return new wxIcon(loc);
1072 else
1073 return NULL;
1074 }
1075 PyObject *wxFileType_GetIconInfo(wxFileType *self){
1076 wxIconLocation loc;
1077 if (self->GetIcon(&loc)) {
1078 wxString iconFile = loc.GetFileName();
1079 int iconIndex = -1;
1080
1081
1082
1083 // Make a tuple and put the values in it
1084 bool blocked = wxPyBeginBlockThreads();
1085 PyObject* tuple = PyTuple_New(3);
1086 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
1087 wxT("wxIcon"), True));
1088 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
1089 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
1090 wxPyEndBlockThreads(blocked);
1091 return tuple;
1092 }
1093 else
1094 RETURN_NONE();
1095 }
1096 PyObject *wxFileType_GetDescription(wxFileType *self){
1097 wxString str;
1098 if (self->GetDescription(&str))
1099 return wx2PyString(str);
1100 else
1101 RETURN_NONE();
1102 }
1103 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1104 wxString str;
1105 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1106 return wx2PyString(str);
1107 else
1108 RETURN_NONE();
1109 }
1110 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1111 wxString str;
1112 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1113 return wx2PyString(str);
1114 else
1115 RETURN_NONE();
1116 }
1117 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
1118 wxArrayString verbs;
1119 wxArrayString commands;
1120 if (self->GetAllCommands(&verbs, &commands,
1121 wxFileType::MessageParameters(filename, mimetype))) {
1122 bool blocked = wxPyBeginBlockThreads();
1123 PyObject* tuple = PyTuple_New(2);
1124 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
1125 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1126 wxPyEndBlockThreads(blocked);
1127 return tuple;
1128 }
1129 else
1130 RETURN_NONE();
1131 }
1132 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1133 return wxFileType::ExpandCommand(command,
1134 wxFileType::MessageParameters(filename, mimetype));
1135 }
1136 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1137 wxArrayString arr;
1138 self->EnumAllFileTypes(arr);
1139 return wxArrayString2PyList_helper(arr);
1140 }
1141
1142 #include <wx/artprov.h>
1143
1144 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1145 static const wxString wxPyART_MENU(wxART_MENU);
1146 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1147 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1148 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1149 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1150 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1151 static const wxString wxPyART_OTHER(wxART_OTHER);
1152 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1153 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1154 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1155 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1156 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1157 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1158 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1159 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1160 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1161 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1162 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1163 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1164 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1165 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1166 static const wxString wxPyART_PRINT(wxART_PRINT);
1167 static const wxString wxPyART_HELP(wxART_HELP);
1168 static const wxString wxPyART_TIP(wxART_TIP);
1169 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1170 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1171 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1172 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1173 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1174 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1175 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1176 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1177 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1178 static const wxString wxPyART_ERROR(wxART_ERROR);
1179 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1180 static const wxString wxPyART_WARNING(wxART_WARNING);
1181 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1182 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1183 // Python aware wxArtProvider
1184 class wxPyArtProvider : public wxArtProvider {
1185 public:
1186
1187 virtual wxBitmap CreateBitmap(const wxArtID& id,
1188 const wxArtClient& client,
1189 const wxSize& size) {
1190 wxBitmap rval = wxNullBitmap;
1191 bool blocked = wxPyBeginBlockThreads();
1192 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1193 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1194 PyObject* ro;
1195 wxBitmap* ptr;
1196 PyObject* s1, *s2;
1197 s1 = wx2PyString(id);
1198 s2 = wx2PyString(client);
1199 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1200 Py_DECREF(so);
1201 Py_DECREF(s1);
1202 Py_DECREF(s2);
1203 if (ro) {
1204 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1205 rval = *ptr;
1206 Py_DECREF(ro);
1207 }
1208 }
1209 wxPyEndBlockThreads(blocked);
1210 return rval;
1211 }
1212
1213 PYPRIVATE;
1214 };
1215
1216 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1217
1218
1219
1220 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1221 PyObject* ret = PyTuple_New(3);
1222 if (ret) {
1223 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1224 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1225 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1226 }
1227 return ret;
1228 }
1229
1230 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1231 bool cont;
1232 long index = 0;
1233 wxString value;
1234
1235 cont = self->GetFirstGroup(value, index);
1236 return __EnumerationHelper(cont, value, index);
1237 }
1238 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1239 bool cont;
1240 wxString value;
1241
1242 cont = self->GetNextGroup(value, index);
1243 return __EnumerationHelper(cont, value, index);
1244 }
1245 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1246 bool cont;
1247 long index = 0;
1248 wxString value;
1249
1250 cont = self->GetFirstEntry(value, index);
1251 return __EnumerationHelper(cont, value, index);
1252 }
1253 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1254 bool cont;
1255 wxString value;
1256
1257 cont = self->GetNextEntry(value, index);
1258 return __EnumerationHelper(cont, value, index);
1259 }
1260 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1261 long rv;
1262 self->Read(key, &rv, defaultVal);
1263 return rv;
1264 }
1265
1266 // See my_fragments.i
1267 SWIGSTATICINLINE(int)
1268 SWIG_AsVal_double(PyObject *obj, double* val)
1269 {
1270 if (PyNumber_Check(obj)) {
1271 if (val) *val = PyFloat_AsDouble(obj);
1272 return 1;
1273 }
1274 else {
1275 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1276 obj->ob_type->tp_name);
1277 PyErr_SetObject(PyExc_TypeError, errmsg);
1278 Py_DECREF(errmsg);
1279 }
1280 return 0;
1281 }
1282
1283
1284 SWIGSTATICINLINE(double)
1285 SWIG_As_double(PyObject* obj)
1286 {
1287 double v;
1288 if (!SWIG_AsVal_double(obj, &v)) {
1289 /*
1290 this is needed to make valgrind/purify happier. the other
1291 solution is throw an exception, but since this code should work
1292 with plain C ....
1293 */
1294 memset((void*)&v, 0, sizeof(double));
1295 }
1296 return v;
1297 }
1298
1299
1300 SWIGSTATICINLINE(int)
1301 SWIG_Check_double(PyObject* obj)
1302 {
1303 return SWIG_AsVal_double(obj, (double*)0);
1304 }
1305
1306 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1307 double rv;
1308 self->Read(key, &rv, defaultVal);
1309 return rv;
1310 }
1311 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1312 bool rv;
1313 self->Read(key, &rv, defaultVal);
1314 return rv;
1315 }
1316
1317 #include <wx/datetime.h>
1318
1319
1320 static const wxString wxPyDateFormatStr(wxT("%c"));
1321 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1322
1323 #define LOCAL_TZ wxDateTime::Local
1324
1325
1326 #if UINT_MAX < LONG_MAX
1327 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1328 #define SWIG_From_unsigned_SS_int SWIG_From_long
1329 /*@@*/
1330 #else
1331 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
1332 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
1333 /*@@*/
1334 #endif
1335
1336 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1337 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1338 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1339 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1340 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1341 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1342 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1343 return (*self < *other);
1344 }
1345 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1346 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1347 return (*self <= *other);
1348 }
1349 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1350 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1351 return (*self > *other);
1352 }
1353 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1354 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1355 return (*self >= *other);
1356 }
1357 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1358 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1359 return (*self == *other);
1360 }
1361 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1362 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1363 return (*self != *other);
1364 }
1365 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1366 const wxChar* rv;
1367 const wxChar* _date = date;
1368 rv = self->ParseRfc822Date(_date);
1369 if (rv == NULL) return -1;
1370 return rv - _date;
1371 }
1372 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1373 const wxChar* rv;
1374 const wxChar* _date = date;
1375 rv = self->ParseFormat(_date, format, dateDef);
1376 if (rv == NULL) return -1;
1377 return rv - _date;
1378 }
1379 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1380 const wxChar* rv;
1381 const wxChar* _datetime = datetime;
1382 rv = self->ParseDateTime(_datetime);
1383 if (rv == NULL) return -1;
1384 return rv - _datetime;
1385 }
1386 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1387 const wxChar* rv;
1388 const wxChar* _date = date;
1389 rv = self->ParseDate(_date);
1390 if (rv == NULL) return -1;
1391 return rv - _date;
1392 }
1393 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1394 const wxChar* rv;
1395 const wxChar* _time = time;
1396 rv = self->ParseTime(_time);
1397 if (rv == NULL) return -1;
1398 return rv - _time;
1399 }
1400 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1401 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1402 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1403 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1404 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1405 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1406 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1407 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1408 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1409 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1410 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1411 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1412 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1413 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1414 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1415 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1416
1417 #include <wx/dataobj.h>
1418
1419 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1420 size_t count = self->GetFormatCount(dir);
1421 wxDataFormat* formats = new wxDataFormat[count];
1422 self->GetAllFormats(formats, dir);
1423
1424 bool blocked = wxPyBeginBlockThreads();
1425 PyObject* list = PyList_New(count);
1426 for (size_t i=0; i<count; i++) {
1427 wxDataFormat* format = new wxDataFormat(formats[i]);
1428 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1429 PyList_Append(list, obj);
1430 Py_DECREF(obj);
1431 }
1432 wxPyEndBlockThreads(blocked);
1433 delete [] formats;
1434 return list;
1435 }
1436 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1437 PyObject* rval = NULL;
1438 size_t size = self->GetDataSize(format);
1439 bool blocked = wxPyBeginBlockThreads();
1440 if (size) {
1441 char* buf = new char[size];
1442 if (self->GetDataHere(format, buf))
1443 rval = PyString_FromStringAndSize(buf, size);
1444 delete [] buf;
1445 }
1446 if (! rval) {
1447 rval = Py_None;
1448 Py_INCREF(rval);
1449 }
1450 wxPyEndBlockThreads(blocked);
1451 return rval;
1452 }
1453 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1454 bool rval;
1455 bool blocked = wxPyBeginBlockThreads();
1456 if (PyString_Check(data)) {
1457 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1458 }
1459 else {
1460 // raise a TypeError if not a string
1461 PyErr_SetString(PyExc_TypeError, "String expected.");
1462 rval = False;
1463 }
1464 wxPyEndBlockThreads(blocked);
1465 return rval;
1466 }
1467 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1468 PyObject* rval = NULL;
1469 size_t size = self->GetDataSize();
1470 bool blocked = wxPyBeginBlockThreads();
1471 if (size) {
1472 char* buf = new char[size];
1473 if (self->GetDataHere(buf))
1474 rval = PyString_FromStringAndSize(buf, size);
1475 delete [] buf;
1476 }
1477 if (! rval) {
1478 rval = Py_None;
1479 Py_INCREF(rval);
1480 }
1481 wxPyEndBlockThreads(blocked);
1482 return rval;
1483 }
1484 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1485 bool rval;
1486 bool blocked = wxPyBeginBlockThreads();
1487 if (PyString_Check(data)) {
1488 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1489 }
1490 else {
1491 // raise a TypeError if not a string
1492 PyErr_SetString(PyExc_TypeError, "String expected.");
1493 rval = False;
1494 }
1495 wxPyEndBlockThreads(blocked);
1496 return rval;
1497 }
1498 // Create a new class for wxPython to use
1499 class wxPyDataObjectSimple : public wxDataObjectSimple {
1500 public:
1501 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1502 : wxDataObjectSimple(format) {}
1503
1504 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1505 bool GetDataHere(void *buf) const;
1506 bool SetData(size_t len, const void *buf) const;
1507 PYPRIVATE;
1508 };
1509
1510 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1511
1512 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1513 // We need to get the data for this object and write it to buf. I think
1514 // the best way to do this for wxPython is to have the Python method
1515 // return either a string or None and then act appropriately with the
1516 // C++ version.
1517
1518 bool rval = False;
1519 bool blocked = wxPyBeginBlockThreads();
1520 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1521 PyObject* ro;
1522 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1523 if (ro) {
1524 rval = (ro != Py_None && PyString_Check(ro));
1525 if (rval)
1526 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1527 Py_DECREF(ro);
1528 }
1529 }
1530 wxPyEndBlockThreads(blocked);
1531 return rval;
1532 }
1533
1534 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1535 // For this one we simply need to make a string from buf and len
1536 // and send it to the Python method.
1537 bool rval = False;
1538 bool blocked = wxPyBeginBlockThreads();
1539 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1540 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1541 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1542 Py_DECREF(data);
1543 }
1544 wxPyEndBlockThreads(blocked);
1545 return rval;
1546 }
1547
1548 // Create a new class for wxPython to use
1549 class wxPyTextDataObject : public wxTextDataObject {
1550 public:
1551 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1552 : wxTextDataObject(text) {}
1553
1554 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1555 DEC_PYCALLBACK_STRING__const(GetText);
1556 DEC_PYCALLBACK__STRING(SetText);
1557 PYPRIVATE;
1558 };
1559
1560 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1561 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1562 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1563
1564
1565 // Create a new class for wxPython to use
1566 class wxPyBitmapDataObject : public wxBitmapDataObject {
1567 public:
1568 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1569 : wxBitmapDataObject(bitmap) {}
1570
1571 wxBitmap GetBitmap() const;
1572 void SetBitmap(const wxBitmap& bitmap);
1573 PYPRIVATE;
1574 };
1575
1576 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1577 wxBitmap* rval = &wxNullBitmap;
1578 bool blocked = wxPyBeginBlockThreads();
1579 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1580 PyObject* ro;
1581 wxBitmap* ptr;
1582 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1583 if (ro) {
1584 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1585 rval = ptr;
1586 Py_DECREF(ro);
1587 }
1588 }
1589 wxPyEndBlockThreads(blocked);
1590 return *rval;
1591 }
1592
1593 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1594 bool blocked = wxPyBeginBlockThreads();
1595 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1596 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1597 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1598 Py_DECREF(bo);
1599 }
1600 wxPyEndBlockThreads(blocked);
1601 }
1602
1603 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1604 bool rval;
1605 bool blocked = wxPyBeginBlockThreads();
1606 if (PyString_Check(data)) {
1607 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1608 }
1609 else {
1610 // raise a TypeError if not a string
1611 PyErr_SetString(PyExc_TypeError, "String expected.");
1612 rval = False;
1613 }
1614 wxPyEndBlockThreads(blocked);
1615 return rval;
1616 }
1617 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1618 PyObject* obj;
1619 bool blocked = wxPyBeginBlockThreads();
1620 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1621 wxPyEndBlockThreads(blocked);
1622 return obj;
1623 }
1624
1625 class wxMetafileDataObject : public wxDataObjectSimple
1626 {
1627 public:
1628 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
1629 };
1630
1631
1632 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1633
1634
1635 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1636 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1637 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1638 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1639 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1640
1641
1642 class wxPyTextDropTarget : public wxTextDropTarget {
1643 public:
1644 wxPyTextDropTarget() {}
1645
1646 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1647
1648 DEC_PYCALLBACK__(OnLeave);
1649 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1650 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1651 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1652 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1653
1654 PYPRIVATE;
1655 };
1656
1657 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1658 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1659 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1660 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1661 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1662 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1663
1664
1665
1666 class wxPyFileDropTarget : public wxFileDropTarget {
1667 public:
1668 wxPyFileDropTarget() {}
1669
1670 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1671
1672 DEC_PYCALLBACK__(OnLeave);
1673 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1674 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1675 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1676 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1677
1678 PYPRIVATE;
1679 };
1680
1681 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1682 const wxArrayString& filenames) {
1683 bool rval = False;
1684 bool blocked = wxPyBeginBlockThreads();
1685 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1686 PyObject* list = wxArrayString2PyList_helper(filenames);
1687 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1688 Py_DECREF(list);
1689 }
1690 wxPyEndBlockThreads(blocked);
1691 return rval;
1692 }
1693
1694
1695
1696 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1697 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1698 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1699 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1700 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1701
1702
1703
1704
1705 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1706
1707 #include <wx/display.h>
1708
1709 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1710 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1711
1712 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1713 #if !wxUSE_DISPLAY
1714 #include <wx/dynarray.h>
1715 #include <wx/vidmode.h>
1716
1717 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1718 #include "wx/arrimpl.cpp"
1719 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1720 const wxVideoMode wxDefaultVideoMode;
1721
1722 class wxDisplay
1723 {
1724 public:
1725 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1726 ~wxDisplay() {}
1727
1728 static size_t GetCount()
1729 { wxPyRaiseNotImplemented(); return 0; }
1730
1731 static int GetFromPoint(const wxPoint& pt)
1732 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1733 static int GetFromWindow(wxWindow *window)
1734 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1735
1736 virtual bool IsOk() const { return false; }
1737 virtual wxRect GetGeometry() const { wxRect r; return r; }
1738 virtual wxString GetName() const { return wxEmptyString; }
1739 bool IsPrimary() const { return false; }
1740
1741 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1742 { wxArrayVideoModes a; return a; }
1743
1744 virtual wxVideoMode GetCurrentMode() const
1745 { return wxDefaultVideoMode; }
1746
1747 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1748 { return false; }
1749
1750 void ResetMode() {}
1751 };
1752 #endif
1753
1754 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1755 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1756 PyObject* pyList = NULL;
1757 wxArrayVideoModes arr = self->GetModes(mode);
1758 bool blocked = wxPyBeginBlockThreads();
1759 pyList = PyList_New(0);
1760 for (int i=0; i < arr.GetCount(); i++) {
1761 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1762 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1763 PyList_Append(pyList, pyObj);
1764 Py_DECREF(pyObj);
1765 }
1766 wxPyEndBlockThreads(blocked);
1767 return pyList;
1768 }
1769 #ifdef __cplusplus
1770 extern "C" {
1771 #endif
1772 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1773 PyObject *resultobj;
1774 int arg1 ;
1775 wxColour result;
1776 PyObject * obj0 = 0 ;
1777 char *kwnames[] = {
1778 (char *) "index", NULL
1779 };
1780
1781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1782 arg1 = (int)SWIG_As_int(obj0);
1783 if (PyErr_Occurred()) SWIG_fail;
1784 {
1785 if (!wxPyCheckForApp()) SWIG_fail;
1786 PyThreadState* __tstate = wxPyBeginAllowThreads();
1787 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1788
1789 wxPyEndAllowThreads(__tstate);
1790 if (PyErr_Occurred()) SWIG_fail;
1791 }
1792 {
1793 wxColour * resultptr;
1794 resultptr = new wxColour((wxColour &) result);
1795 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1796 }
1797 return resultobj;
1798 fail:
1799 return NULL;
1800 }
1801
1802
1803 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
1804 PyObject *resultobj;
1805 int arg1 ;
1806 wxFont result;
1807 PyObject * obj0 = 0 ;
1808 char *kwnames[] = {
1809 (char *) "index", NULL
1810 };
1811
1812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1813 arg1 = (int)SWIG_As_int(obj0);
1814 if (PyErr_Occurred()) SWIG_fail;
1815 {
1816 if (!wxPyCheckForApp()) SWIG_fail;
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 {
1824 wxFont * resultptr;
1825 resultptr = new wxFont((wxFont &) result);
1826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1827 }
1828 return resultobj;
1829 fail:
1830 return NULL;
1831 }
1832
1833
1834 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
1835 PyObject *resultobj;
1836 int arg1 ;
1837 int result;
1838 PyObject * obj0 = 0 ;
1839 char *kwnames[] = {
1840 (char *) "index", NULL
1841 };
1842
1843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1844 arg1 = (int)SWIG_As_int(obj0);
1845 if (PyErr_Occurred()) SWIG_fail;
1846 {
1847 if (!wxPyCheckForApp()) SWIG_fail;
1848 PyThreadState* __tstate = wxPyBeginAllowThreads();
1849 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1850
1851 wxPyEndAllowThreads(__tstate);
1852 if (PyErr_Occurred()) SWIG_fail;
1853 }
1854 resultobj = SWIG_From_int((int)result);
1855 return resultobj;
1856 fail:
1857 return NULL;
1858 }
1859
1860
1861 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
1862 PyObject *resultobj;
1863 int arg1 ;
1864 bool result;
1865 PyObject * obj0 = 0 ;
1866 char *kwnames[] = {
1867 (char *) "index", NULL
1868 };
1869
1870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1871 arg1 = (int)SWIG_As_int(obj0);
1872 if (PyErr_Occurred()) SWIG_fail;
1873 {
1874 if (!wxPyCheckForApp()) SWIG_fail;
1875 PyThreadState* __tstate = wxPyBeginAllowThreads();
1876 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1877
1878 wxPyEndAllowThreads(__tstate);
1879 if (PyErr_Occurred()) SWIG_fail;
1880 }
1881 {
1882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1883 }
1884 return resultobj;
1885 fail:
1886 return NULL;
1887 }
1888
1889
1890 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1891 PyObject *resultobj;
1892 int result;
1893 char *kwnames[] = {
1894 NULL
1895 };
1896
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1898 {
1899 if (!wxPyCheckForApp()) SWIG_fail;
1900 PyThreadState* __tstate = wxPyBeginAllowThreads();
1901 result = (int)wxSystemSettings::GetScreenType();
1902
1903 wxPyEndAllowThreads(__tstate);
1904 if (PyErr_Occurred()) SWIG_fail;
1905 }
1906 resultobj = SWIG_From_int((int)result);
1907 return resultobj;
1908 fail:
1909 return NULL;
1910 }
1911
1912
1913 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 int arg1 ;
1916 PyObject * obj0 = 0 ;
1917 char *kwnames[] = {
1918 (char *) "screen", NULL
1919 };
1920
1921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1922 arg1 = (int)SWIG_As_int(obj0);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 {
1925 if (!wxPyCheckForApp()) SWIG_fail;
1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
1927 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1928
1929 wxPyEndAllowThreads(__tstate);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 }
1932 Py_INCREF(Py_None); resultobj = Py_None;
1933 return resultobj;
1934 fail:
1935 return NULL;
1936 }
1937
1938
1939 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
1940 PyObject *obj;
1941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1942 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1943 Py_INCREF(obj);
1944 return Py_BuildValue((char *)"");
1945 }
1946 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
1947 PyObject *resultobj;
1948 wxSystemOptions *result;
1949 char *kwnames[] = {
1950 NULL
1951 };
1952
1953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1954 {
1955 PyThreadState* __tstate = wxPyBeginAllowThreads();
1956 result = (wxSystemOptions *)new wxSystemOptions();
1957
1958 wxPyEndAllowThreads(__tstate);
1959 if (PyErr_Occurred()) SWIG_fail;
1960 }
1961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1962 return resultobj;
1963 fail:
1964 return NULL;
1965 }
1966
1967
1968 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
1969 PyObject *resultobj;
1970 wxString *arg1 = 0 ;
1971 wxString *arg2 = 0 ;
1972 bool temp1 = False ;
1973 bool temp2 = False ;
1974 PyObject * obj0 = 0 ;
1975 PyObject * obj1 = 0 ;
1976 char *kwnames[] = {
1977 (char *) "name",(char *) "value", NULL
1978 };
1979
1980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1981 {
1982 arg1 = wxString_in_helper(obj0);
1983 if (arg1 == NULL) SWIG_fail;
1984 temp1 = True;
1985 }
1986 {
1987 arg2 = wxString_in_helper(obj1);
1988 if (arg2 == NULL) SWIG_fail;
1989 temp2 = True;
1990 }
1991 {
1992 PyThreadState* __tstate = wxPyBeginAllowThreads();
1993 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1994
1995 wxPyEndAllowThreads(__tstate);
1996 if (PyErr_Occurred()) SWIG_fail;
1997 }
1998 Py_INCREF(Py_None); resultobj = Py_None;
1999 {
2000 if (temp1)
2001 delete arg1;
2002 }
2003 {
2004 if (temp2)
2005 delete arg2;
2006 }
2007 return resultobj;
2008 fail:
2009 {
2010 if (temp1)
2011 delete arg1;
2012 }
2013 {
2014 if (temp2)
2015 delete arg2;
2016 }
2017 return NULL;
2018 }
2019
2020
2021 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2022 PyObject *resultobj;
2023 wxString *arg1 = 0 ;
2024 int arg2 ;
2025 bool temp1 = False ;
2026 PyObject * obj0 = 0 ;
2027 PyObject * obj1 = 0 ;
2028 char *kwnames[] = {
2029 (char *) "name",(char *) "value", NULL
2030 };
2031
2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
2033 {
2034 arg1 = wxString_in_helper(obj0);
2035 if (arg1 == NULL) SWIG_fail;
2036 temp1 = True;
2037 }
2038 arg2 = (int)SWIG_As_int(obj1);
2039 if (PyErr_Occurred()) SWIG_fail;
2040 {
2041 PyThreadState* __tstate = wxPyBeginAllowThreads();
2042 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
2043
2044 wxPyEndAllowThreads(__tstate);
2045 if (PyErr_Occurred()) SWIG_fail;
2046 }
2047 Py_INCREF(Py_None); resultobj = Py_None;
2048 {
2049 if (temp1)
2050 delete arg1;
2051 }
2052 return resultobj;
2053 fail:
2054 {
2055 if (temp1)
2056 delete arg1;
2057 }
2058 return NULL;
2059 }
2060
2061
2062 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
2063 PyObject *resultobj;
2064 wxString *arg1 = 0 ;
2065 wxString result;
2066 bool temp1 = False ;
2067 PyObject * obj0 = 0 ;
2068 char *kwnames[] = {
2069 (char *) "name", NULL
2070 };
2071
2072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
2073 {
2074 arg1 = wxString_in_helper(obj0);
2075 if (arg1 == NULL) SWIG_fail;
2076 temp1 = True;
2077 }
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 result = wxSystemOptions::GetOption((wxString const &)*arg1);
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) SWIG_fail;
2084 }
2085 {
2086 #if wxUSE_UNICODE
2087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2088 #else
2089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2090 #endif
2091 }
2092 {
2093 if (temp1)
2094 delete arg1;
2095 }
2096 return resultobj;
2097 fail:
2098 {
2099 if (temp1)
2100 delete arg1;
2101 }
2102 return NULL;
2103 }
2104
2105
2106 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2107 PyObject *resultobj;
2108 wxString *arg1 = 0 ;
2109 int result;
2110 bool temp1 = False ;
2111 PyObject * obj0 = 0 ;
2112 char *kwnames[] = {
2113 (char *) "name", NULL
2114 };
2115
2116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
2117 {
2118 arg1 = wxString_in_helper(obj0);
2119 if (arg1 == NULL) SWIG_fail;
2120 temp1 = True;
2121 }
2122 {
2123 PyThreadState* __tstate = wxPyBeginAllowThreads();
2124 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
2125
2126 wxPyEndAllowThreads(__tstate);
2127 if (PyErr_Occurred()) SWIG_fail;
2128 }
2129 resultobj = SWIG_From_int((int)result);
2130 {
2131 if (temp1)
2132 delete arg1;
2133 }
2134 return resultobj;
2135 fail:
2136 {
2137 if (temp1)
2138 delete arg1;
2139 }
2140 return NULL;
2141 }
2142
2143
2144 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
2145 PyObject *resultobj;
2146 wxString *arg1 = 0 ;
2147 bool result;
2148 bool temp1 = False ;
2149 PyObject * obj0 = 0 ;
2150 char *kwnames[] = {
2151 (char *) "name", NULL
2152 };
2153
2154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2155 {
2156 arg1 = wxString_in_helper(obj0);
2157 if (arg1 == NULL) SWIG_fail;
2158 temp1 = True;
2159 }
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 {
2168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2169 }
2170 {
2171 if (temp1)
2172 delete arg1;
2173 }
2174 return resultobj;
2175 fail:
2176 {
2177 if (temp1)
2178 delete arg1;
2179 }
2180 return NULL;
2181 }
2182
2183
2184 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
2185 PyObject *obj;
2186 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2187 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2188 Py_INCREF(obj);
2189 return Py_BuildValue((char *)"");
2190 }
2191 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
2192 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2193 return 1;
2194 }
2195
2196
2197 static PyObject *_wrap_FileSelectorPromptStr_get() {
2198 PyObject *pyobj;
2199
2200 {
2201 #if wxUSE_UNICODE
2202 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2203 #else
2204 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2205 #endif
2206 }
2207 return pyobj;
2208 }
2209
2210
2211 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
2212 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2213 return 1;
2214 }
2215
2216
2217 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2218 PyObject *pyobj;
2219
2220 {
2221 #if wxUSE_UNICODE
2222 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2223 #else
2224 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2225 #endif
2226 }
2227 return pyobj;
2228 }
2229
2230
2231 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
2232 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2233 return 1;
2234 }
2235
2236
2237 static PyObject *_wrap_DirSelectorPromptStr_get() {
2238 PyObject *pyobj;
2239
2240 {
2241 #if wxUSE_UNICODE
2242 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2243 #else
2244 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2245 #endif
2246 }
2247 return pyobj;
2248 }
2249
2250
2251 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
2252 PyObject *resultobj;
2253 long result;
2254 char *kwnames[] = {
2255 NULL
2256 };
2257
2258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2259 {
2260 PyThreadState* __tstate = wxPyBeginAllowThreads();
2261 result = (long)wxNewId();
2262
2263 wxPyEndAllowThreads(__tstate);
2264 if (PyErr_Occurred()) SWIG_fail;
2265 }
2266 resultobj = SWIG_From_long((long)result);
2267 return resultobj;
2268 fail:
2269 return NULL;
2270 }
2271
2272
2273 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
2274 PyObject *resultobj;
2275 long arg1 ;
2276 PyObject * obj0 = 0 ;
2277 char *kwnames[] = {
2278 (char *) "id", NULL
2279 };
2280
2281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2282 arg1 = (long)SWIG_As_long(obj0);
2283 if (PyErr_Occurred()) SWIG_fail;
2284 {
2285 PyThreadState* __tstate = wxPyBeginAllowThreads();
2286 wxRegisterId(arg1);
2287
2288 wxPyEndAllowThreads(__tstate);
2289 if (PyErr_Occurred()) SWIG_fail;
2290 }
2291 Py_INCREF(Py_None); resultobj = Py_None;
2292 return resultobj;
2293 fail:
2294 return NULL;
2295 }
2296
2297
2298 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
2299 PyObject *resultobj;
2300 long result;
2301 char *kwnames[] = {
2302 NULL
2303 };
2304
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2306 {
2307 PyThreadState* __tstate = wxPyBeginAllowThreads();
2308 result = (long)wxGetCurrentId();
2309
2310 wxPyEndAllowThreads(__tstate);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 resultobj = SWIG_From_long((long)result);
2314 return resultobj;
2315 fail:
2316 return NULL;
2317 }
2318
2319
2320 static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
2321 PyObject *resultobj;
2322 int arg1 ;
2323 bool result;
2324 PyObject * obj0 = 0 ;
2325 char *kwnames[] = {
2326 (char *) "id", NULL
2327 };
2328
2329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
2330 arg1 = (int)SWIG_As_int(obj0);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 {
2333 PyThreadState* __tstate = wxPyBeginAllowThreads();
2334 result = (bool)wxIsStockID(arg1);
2335
2336 wxPyEndAllowThreads(__tstate);
2337 if (PyErr_Occurred()) SWIG_fail;
2338 }
2339 {
2340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2341 }
2342 return resultobj;
2343 fail:
2344 return NULL;
2345 }
2346
2347
2348 static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2349 PyObject *resultobj;
2350 int arg1 ;
2351 wxString *arg2 = 0 ;
2352 bool result;
2353 bool temp2 = False ;
2354 PyObject * obj0 = 0 ;
2355 PyObject * obj1 = 0 ;
2356 char *kwnames[] = {
2357 (char *) "id",(char *) "label", NULL
2358 };
2359
2360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
2361 arg1 = (int)SWIG_As_int(obj0);
2362 if (PyErr_Occurred()) SWIG_fail;
2363 {
2364 arg2 = wxString_in_helper(obj1);
2365 if (arg2 == NULL) SWIG_fail;
2366 temp2 = True;
2367 }
2368 {
2369 PyThreadState* __tstate = wxPyBeginAllowThreads();
2370 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2371
2372 wxPyEndAllowThreads(__tstate);
2373 if (PyErr_Occurred()) SWIG_fail;
2374 }
2375 {
2376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2377 }
2378 {
2379 if (temp2)
2380 delete arg2;
2381 }
2382 return resultobj;
2383 fail:
2384 {
2385 if (temp2)
2386 delete arg2;
2387 }
2388 return NULL;
2389 }
2390
2391
2392 static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2393 PyObject *resultobj;
2394 int arg1 ;
2395 wxString result;
2396 PyObject * obj0 = 0 ;
2397 char *kwnames[] = {
2398 (char *) "id", NULL
2399 };
2400
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail;
2402 arg1 = (int)SWIG_As_int(obj0);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = wxGetStockLabel(arg1);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 {
2412 #if wxUSE_UNICODE
2413 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2414 #else
2415 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2416 #endif
2417 }
2418 return resultobj;
2419 fail:
2420 return NULL;
2421 }
2422
2423
2424 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
2425 PyObject *resultobj;
2426 char *kwnames[] = {
2427 NULL
2428 };
2429
2430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2431 {
2432 if (!wxPyCheckForApp()) SWIG_fail;
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 wxBell();
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 Py_INCREF(Py_None); resultobj = Py_None;
2440 return resultobj;
2441 fail:
2442 return NULL;
2443 }
2444
2445
2446 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 char *kwnames[] = {
2449 NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2453 {
2454 if (!wxPyCheckForApp()) SWIG_fail;
2455 PyThreadState* __tstate = wxPyBeginAllowThreads();
2456 wxEndBusyCursor();
2457
2458 wxPyEndAllowThreads(__tstate);
2459 if (PyErr_Occurred()) SWIG_fail;
2460 }
2461 Py_INCREF(Py_None); resultobj = Py_None;
2462 return resultobj;
2463 fail:
2464 return NULL;
2465 }
2466
2467
2468 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
2469 PyObject *resultobj;
2470 bool arg1 = (bool) True ;
2471 long result;
2472 PyObject * obj0 = 0 ;
2473 char *kwnames[] = {
2474 (char *) "resetTimer", NULL
2475 };
2476
2477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2478 if (obj0) {
2479 arg1 = (bool)SWIG_As_bool(obj0);
2480 if (PyErr_Occurred()) SWIG_fail;
2481 }
2482 {
2483 PyThreadState* __tstate = wxPyBeginAllowThreads();
2484 result = (long)wxGetElapsedTime(arg1);
2485
2486 wxPyEndAllowThreads(__tstate);
2487 if (PyErr_Occurred()) SWIG_fail;
2488 }
2489 resultobj = SWIG_From_long((long)result);
2490 return resultobj;
2491 fail:
2492 return NULL;
2493 }
2494
2495
2496 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
2497 PyObject *resultobj;
2498 int *arg1 = (int *) 0 ;
2499 int *arg2 = (int *) 0 ;
2500 int temp1 ;
2501 int res1 = 0 ;
2502 int temp2 ;
2503 int res2 = 0 ;
2504 char *kwnames[] = {
2505 NULL
2506 };
2507
2508 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2509 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2511 {
2512 if (!wxPyCheckForApp()) SWIG_fail;
2513 PyThreadState* __tstate = wxPyBeginAllowThreads();
2514 wxGetMousePosition(arg1,arg2);
2515
2516 wxPyEndAllowThreads(__tstate);
2517 if (PyErr_Occurred()) SWIG_fail;
2518 }
2519 Py_INCREF(Py_None); resultobj = Py_None;
2520 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2521 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2522 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2523 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2524 return resultobj;
2525 fail:
2526 return NULL;
2527 }
2528
2529
2530 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
2531 PyObject *resultobj;
2532 bool result;
2533 char *kwnames[] = {
2534 NULL
2535 };
2536
2537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 result = (bool)wxIsBusy();
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 {
2546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2547 }
2548 return resultobj;
2549 fail:
2550 return NULL;
2551 }
2552
2553
2554 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
2555 PyObject *resultobj;
2556 wxString result;
2557 char *kwnames[] = {
2558 NULL
2559 };
2560
2561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2562 {
2563 PyThreadState* __tstate = wxPyBeginAllowThreads();
2564 result = wxNow();
2565
2566 wxPyEndAllowThreads(__tstate);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 {
2570 #if wxUSE_UNICODE
2571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2572 #else
2573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2574 #endif
2575 }
2576 return resultobj;
2577 fail:
2578 return NULL;
2579 }
2580
2581
2582 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
2583 PyObject *resultobj;
2584 wxString const &arg1_defvalue = wxPyEmptyString ;
2585 wxString *arg1 = (wxString *) &arg1_defvalue ;
2586 bool result;
2587 bool temp1 = False ;
2588 PyObject * obj0 = 0 ;
2589 char *kwnames[] = {
2590 (char *) "command", NULL
2591 };
2592
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2594 if (obj0) {
2595 {
2596 arg1 = wxString_in_helper(obj0);
2597 if (arg1 == NULL) SWIG_fail;
2598 temp1 = True;
2599 }
2600 }
2601 {
2602 PyThreadState* __tstate = wxPyBeginAllowThreads();
2603 result = (bool)wxShell((wxString const &)*arg1);
2604
2605 wxPyEndAllowThreads(__tstate);
2606 if (PyErr_Occurred()) SWIG_fail;
2607 }
2608 {
2609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2610 }
2611 {
2612 if (temp1)
2613 delete arg1;
2614 }
2615 return resultobj;
2616 fail:
2617 {
2618 if (temp1)
2619 delete arg1;
2620 }
2621 return NULL;
2622 }
2623
2624
2625 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
2626 PyObject *resultobj;
2627 char *kwnames[] = {
2628 NULL
2629 };
2630
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2632 {
2633 PyThreadState* __tstate = wxPyBeginAllowThreads();
2634 wxStartTimer();
2635
2636 wxPyEndAllowThreads(__tstate);
2637 if (PyErr_Occurred()) SWIG_fail;
2638 }
2639 Py_INCREF(Py_None); resultobj = Py_None;
2640 return resultobj;
2641 fail:
2642 return NULL;
2643 }
2644
2645
2646 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
2647 PyObject *resultobj;
2648 int *arg1 = (int *) 0 ;
2649 int *arg2 = (int *) 0 ;
2650 int result;
2651 int temp1 ;
2652 int res1 = 0 ;
2653 int temp2 ;
2654 int res2 = 0 ;
2655 char *kwnames[] = {
2656 NULL
2657 };
2658
2659 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2660 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 result = (int)wxGetOsVersion(arg1,arg2);
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 resultobj = SWIG_From_int((int)result);
2670 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2671 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2672 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2673 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2674 return resultobj;
2675 fail:
2676 return NULL;
2677 }
2678
2679
2680 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
2681 PyObject *resultobj;
2682 wxString result;
2683 char *kwnames[] = {
2684 NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2688 {
2689 PyThreadState* __tstate = wxPyBeginAllowThreads();
2690 result = wxGetOsDescription();
2691
2692 wxPyEndAllowThreads(__tstate);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 }
2695 {
2696 #if wxUSE_UNICODE
2697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2698 #else
2699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2700 #endif
2701 }
2702 return resultobj;
2703 fail:
2704 return NULL;
2705 }
2706
2707
2708 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
2709 PyObject *resultobj;
2710 long result;
2711 char *kwnames[] = {
2712 NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2716 {
2717 PyThreadState* __tstate = wxPyBeginAllowThreads();
2718 result = (long)wxGetFreeMemory();
2719
2720 wxPyEndAllowThreads(__tstate);
2721 if (PyErr_Occurred()) SWIG_fail;
2722 }
2723 resultobj = SWIG_From_long((long)result);
2724 return resultobj;
2725 fail:
2726 return NULL;
2727 }
2728
2729
2730 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
2731 PyObject *resultobj;
2732 int arg1 ;
2733 bool result;
2734 PyObject * obj0 = 0 ;
2735 char *kwnames[] = {
2736 (char *) "wFlags", NULL
2737 };
2738
2739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2740 arg1 = (int)SWIG_As_int(obj0);
2741 if (PyErr_Occurred()) SWIG_fail;
2742 {
2743 if (!wxPyCheckForApp()) SWIG_fail;
2744 PyThreadState* __tstate = wxPyBeginAllowThreads();
2745 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2746
2747 wxPyEndAllowThreads(__tstate);
2748 if (PyErr_Occurred()) SWIG_fail;
2749 }
2750 {
2751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2752 }
2753 return resultobj;
2754 fail:
2755 return NULL;
2756 }
2757
2758
2759 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
2760 PyObject *resultobj;
2761 int arg1 ;
2762 PyObject * obj0 = 0 ;
2763 char *kwnames[] = {
2764 (char *) "secs", NULL
2765 };
2766
2767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2768 arg1 = (int)SWIG_As_int(obj0);
2769 if (PyErr_Occurred()) SWIG_fail;
2770 {
2771 PyThreadState* __tstate = wxPyBeginAllowThreads();
2772 wxSleep(arg1);
2773
2774 wxPyEndAllowThreads(__tstate);
2775 if (PyErr_Occurred()) SWIG_fail;
2776 }
2777 Py_INCREF(Py_None); resultobj = Py_None;
2778 return resultobj;
2779 fail:
2780 return NULL;
2781 }
2782
2783
2784 static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2785 PyObject *resultobj;
2786 unsigned long arg1 ;
2787 PyObject * obj0 = 0 ;
2788 char *kwnames[] = {
2789 (char *) "milliseconds", NULL
2790 };
2791
2792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2793 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2794 if (PyErr_Occurred()) SWIG_fail;
2795 {
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 wxMilliSleep(arg1);
2798
2799 wxPyEndAllowThreads(__tstate);
2800 if (PyErr_Occurred()) SWIG_fail;
2801 }
2802 Py_INCREF(Py_None); resultobj = Py_None;
2803 return resultobj;
2804 fail:
2805 return NULL;
2806 }
2807
2808
2809 static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2810 PyObject *resultobj;
2811 unsigned long arg1 ;
2812 PyObject * obj0 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "microseconds", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2818 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 wxMicroSleep(arg1);
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 Py_INCREF(Py_None); resultobj = Py_None;
2828 return resultobj;
2829 fail:
2830 return NULL;
2831 }
2832
2833
2834 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
2835 PyObject *resultobj;
2836 bool arg1 ;
2837 PyObject * obj0 = 0 ;
2838 char *kwnames[] = {
2839 (char *) "enable", NULL
2840 };
2841
2842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2843 arg1 = (bool)SWIG_As_bool(obj0);
2844 if (PyErr_Occurred()) SWIG_fail;
2845 {
2846 PyThreadState* __tstate = wxPyBeginAllowThreads();
2847 wxEnableTopLevelWindows(arg1);
2848
2849 wxPyEndAllowThreads(__tstate);
2850 if (PyErr_Occurred()) SWIG_fail;
2851 }
2852 Py_INCREF(Py_None); resultobj = Py_None;
2853 return resultobj;
2854 fail:
2855 return NULL;
2856 }
2857
2858
2859 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
2860 PyObject *resultobj;
2861 wxString *arg1 = 0 ;
2862 wxString result;
2863 bool temp1 = False ;
2864 PyObject * obj0 = 0 ;
2865 char *kwnames[] = {
2866 (char *) "in", NULL
2867 };
2868
2869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2870 {
2871 arg1 = wxString_in_helper(obj0);
2872 if (arg1 == NULL) SWIG_fail;
2873 temp1 = True;
2874 }
2875 {
2876 PyThreadState* __tstate = wxPyBeginAllowThreads();
2877 result = wxStripMenuCodes((wxString const &)*arg1);
2878
2879 wxPyEndAllowThreads(__tstate);
2880 if (PyErr_Occurred()) SWIG_fail;
2881 }
2882 {
2883 #if wxUSE_UNICODE
2884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2885 #else
2886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2887 #endif
2888 }
2889 {
2890 if (temp1)
2891 delete arg1;
2892 }
2893 return resultobj;
2894 fail:
2895 {
2896 if (temp1)
2897 delete arg1;
2898 }
2899 return NULL;
2900 }
2901
2902
2903 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
2904 PyObject *resultobj;
2905 wxString result;
2906 char *kwnames[] = {
2907 NULL
2908 };
2909
2910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2911 {
2912 PyThreadState* __tstate = wxPyBeginAllowThreads();
2913 result = wxGetEmailAddress();
2914
2915 wxPyEndAllowThreads(__tstate);
2916 if (PyErr_Occurred()) SWIG_fail;
2917 }
2918 {
2919 #if wxUSE_UNICODE
2920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2921 #else
2922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2923 #endif
2924 }
2925 return resultobj;
2926 fail:
2927 return NULL;
2928 }
2929
2930
2931 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2932 PyObject *resultobj;
2933 wxString result;
2934 char *kwnames[] = {
2935 NULL
2936 };
2937
2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2939 {
2940 PyThreadState* __tstate = wxPyBeginAllowThreads();
2941 result = wxGetHostName();
2942
2943 wxPyEndAllowThreads(__tstate);
2944 if (PyErr_Occurred()) SWIG_fail;
2945 }
2946 {
2947 #if wxUSE_UNICODE
2948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2949 #else
2950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2951 #endif
2952 }
2953 return resultobj;
2954 fail:
2955 return NULL;
2956 }
2957
2958
2959 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 wxString result;
2962 char *kwnames[] = {
2963 NULL
2964 };
2965
2966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2967 {
2968 PyThreadState* __tstate = wxPyBeginAllowThreads();
2969 result = wxGetFullHostName();
2970
2971 wxPyEndAllowThreads(__tstate);
2972 if (PyErr_Occurred()) SWIG_fail;
2973 }
2974 {
2975 #if wxUSE_UNICODE
2976 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2977 #else
2978 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2979 #endif
2980 }
2981 return resultobj;
2982 fail:
2983 return NULL;
2984 }
2985
2986
2987 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
2988 PyObject *resultobj;
2989 wxString result;
2990 char *kwnames[] = {
2991 NULL
2992 };
2993
2994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2995 {
2996 PyThreadState* __tstate = wxPyBeginAllowThreads();
2997 result = wxGetUserId();
2998
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 {
3003 #if wxUSE_UNICODE
3004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3005 #else
3006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3007 #endif
3008 }
3009 return resultobj;
3010 fail:
3011 return NULL;
3012 }
3013
3014
3015 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
3016 PyObject *resultobj;
3017 wxString result;
3018 char *kwnames[] = {
3019 NULL
3020 };
3021
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
3023 {
3024 PyThreadState* __tstate = wxPyBeginAllowThreads();
3025 result = wxGetUserName();
3026
3027 wxPyEndAllowThreads(__tstate);
3028 if (PyErr_Occurred()) SWIG_fail;
3029 }
3030 {
3031 #if wxUSE_UNICODE
3032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3033 #else
3034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3035 #endif
3036 }
3037 return resultobj;
3038 fail:
3039 return NULL;
3040 }
3041
3042
3043 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
3044 PyObject *resultobj;
3045 wxString result;
3046 char *kwnames[] = {
3047 NULL
3048 };
3049
3050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
3051 {
3052 PyThreadState* __tstate = wxPyBeginAllowThreads();
3053 result = wxGetHomeDir();
3054
3055 wxPyEndAllowThreads(__tstate);
3056 if (PyErr_Occurred()) SWIG_fail;
3057 }
3058 {
3059 #if wxUSE_UNICODE
3060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3061 #else
3062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3063 #endif
3064 }
3065 return resultobj;
3066 fail:
3067 return NULL;
3068 }
3069
3070
3071 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
3072 PyObject *resultobj;
3073 wxString const &arg1_defvalue = wxPyEmptyString ;
3074 wxString *arg1 = (wxString *) &arg1_defvalue ;
3075 wxString result;
3076 bool temp1 = False ;
3077 PyObject * obj0 = 0 ;
3078 char *kwnames[] = {
3079 (char *) "user", NULL
3080 };
3081
3082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
3083 if (obj0) {
3084 {
3085 arg1 = wxString_in_helper(obj0);
3086 if (arg1 == NULL) SWIG_fail;
3087 temp1 = True;
3088 }
3089 }
3090 {
3091 PyThreadState* __tstate = wxPyBeginAllowThreads();
3092 result = wxGetUserHome((wxString const &)*arg1);
3093
3094 wxPyEndAllowThreads(__tstate);
3095 if (PyErr_Occurred()) SWIG_fail;
3096 }
3097 {
3098 #if wxUSE_UNICODE
3099 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3100 #else
3101 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3102 #endif
3103 }
3104 {
3105 if (temp1)
3106 delete arg1;
3107 }
3108 return resultobj;
3109 fail:
3110 {
3111 if (temp1)
3112 delete arg1;
3113 }
3114 return NULL;
3115 }
3116
3117
3118 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
3119 PyObject *resultobj;
3120 unsigned long result;
3121 char *kwnames[] = {
3122 NULL
3123 };
3124
3125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
3126 {
3127 PyThreadState* __tstate = wxPyBeginAllowThreads();
3128 result = (unsigned long)wxGetProcessId();
3129
3130 wxPyEndAllowThreads(__tstate);
3131 if (PyErr_Occurred()) SWIG_fail;
3132 }
3133 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
3134 return resultobj;
3135 fail:
3136 return NULL;
3137 }
3138
3139
3140 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
3141 PyObject *resultobj;
3142 char *kwnames[] = {
3143 NULL
3144 };
3145
3146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3147 {
3148 PyThreadState* __tstate = wxPyBeginAllowThreads();
3149 wxTrap();
3150
3151 wxPyEndAllowThreads(__tstate);
3152 if (PyErr_Occurred()) SWIG_fail;
3153 }
3154 Py_INCREF(Py_None); resultobj = Py_None;
3155 return resultobj;
3156 fail:
3157 return NULL;
3158 }
3159
3160
3161 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3162 PyObject *resultobj;
3163 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3164 wxString *arg1 = (wxString *) &arg1_defvalue ;
3165 wxString const &arg2_defvalue = wxPyEmptyString ;
3166 wxString *arg2 = (wxString *) &arg2_defvalue ;
3167 wxString const &arg3_defvalue = wxPyEmptyString ;
3168 wxString *arg3 = (wxString *) &arg3_defvalue ;
3169 wxString const &arg4_defvalue = wxPyEmptyString ;
3170 wxString *arg4 = (wxString *) &arg4_defvalue ;
3171 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3172 wxString *arg5 = (wxString *) &arg5_defvalue ;
3173 int arg6 = (int) 0 ;
3174 wxWindow *arg7 = (wxWindow *) NULL ;
3175 int arg8 = (int) -1 ;
3176 int arg9 = (int) -1 ;
3177 wxString result;
3178 bool temp1 = False ;
3179 bool temp2 = False ;
3180 bool temp3 = False ;
3181 bool temp4 = False ;
3182 bool temp5 = False ;
3183 PyObject * obj0 = 0 ;
3184 PyObject * obj1 = 0 ;
3185 PyObject * obj2 = 0 ;
3186 PyObject * obj3 = 0 ;
3187 PyObject * obj4 = 0 ;
3188 PyObject * obj5 = 0 ;
3189 PyObject * obj6 = 0 ;
3190 PyObject * obj7 = 0 ;
3191 PyObject * obj8 = 0 ;
3192 char *kwnames[] = {
3193 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3194 };
3195
3196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3197 if (obj0) {
3198 {
3199 arg1 = wxString_in_helper(obj0);
3200 if (arg1 == NULL) SWIG_fail;
3201 temp1 = True;
3202 }
3203 }
3204 if (obj1) {
3205 {
3206 arg2 = wxString_in_helper(obj1);
3207 if (arg2 == NULL) SWIG_fail;
3208 temp2 = True;
3209 }
3210 }
3211 if (obj2) {
3212 {
3213 arg3 = wxString_in_helper(obj2);
3214 if (arg3 == NULL) SWIG_fail;
3215 temp3 = True;
3216 }
3217 }
3218 if (obj3) {
3219 {
3220 arg4 = wxString_in_helper(obj3);
3221 if (arg4 == NULL) SWIG_fail;
3222 temp4 = True;
3223 }
3224 }
3225 if (obj4) {
3226 {
3227 arg5 = wxString_in_helper(obj4);
3228 if (arg5 == NULL) SWIG_fail;
3229 temp5 = True;
3230 }
3231 }
3232 if (obj5) {
3233 arg6 = (int)SWIG_As_int(obj5);
3234 if (PyErr_Occurred()) SWIG_fail;
3235 }
3236 if (obj6) {
3237 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3239 }
3240 if (obj7) {
3241 arg8 = (int)SWIG_As_int(obj7);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 }
3244 if (obj8) {
3245 arg9 = (int)SWIG_As_int(obj8);
3246 if (PyErr_Occurred()) SWIG_fail;
3247 }
3248 {
3249 if (!wxPyCheckForApp()) SWIG_fail;
3250 PyThreadState* __tstate = wxPyBeginAllowThreads();
3251 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3252
3253 wxPyEndAllowThreads(__tstate);
3254 if (PyErr_Occurred()) SWIG_fail;
3255 }
3256 {
3257 #if wxUSE_UNICODE
3258 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3259 #else
3260 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3261 #endif
3262 }
3263 {
3264 if (temp1)
3265 delete arg1;
3266 }
3267 {
3268 if (temp2)
3269 delete arg2;
3270 }
3271 {
3272 if (temp3)
3273 delete arg3;
3274 }
3275 {
3276 if (temp4)
3277 delete arg4;
3278 }
3279 {
3280 if (temp5)
3281 delete arg5;
3282 }
3283 return resultobj;
3284 fail:
3285 {
3286 if (temp1)
3287 delete arg1;
3288 }
3289 {
3290 if (temp2)
3291 delete arg2;
3292 }
3293 {
3294 if (temp3)
3295 delete arg3;
3296 }
3297 {
3298 if (temp4)
3299 delete arg4;
3300 }
3301 {
3302 if (temp5)
3303 delete arg5;
3304 }
3305 return NULL;
3306 }
3307
3308
3309 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3310 PyObject *resultobj;
3311 wxString *arg1 = 0 ;
3312 wxString *arg2 = 0 ;
3313 wxString const &arg3_defvalue = wxPyEmptyString ;
3314 wxString *arg3 = (wxString *) &arg3_defvalue ;
3315 wxWindow *arg4 = (wxWindow *) NULL ;
3316 wxString result;
3317 bool temp1 = False ;
3318 bool temp2 = False ;
3319 bool temp3 = False ;
3320 PyObject * obj0 = 0 ;
3321 PyObject * obj1 = 0 ;
3322 PyObject * obj2 = 0 ;
3323 PyObject * obj3 = 0 ;
3324 char *kwnames[] = {
3325 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3326 };
3327
3328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3329 {
3330 arg1 = wxString_in_helper(obj0);
3331 if (arg1 == NULL) SWIG_fail;
3332 temp1 = True;
3333 }
3334 {
3335 arg2 = wxString_in_helper(obj1);
3336 if (arg2 == NULL) SWIG_fail;
3337 temp2 = True;
3338 }
3339 if (obj2) {
3340 {
3341 arg3 = wxString_in_helper(obj2);
3342 if (arg3 == NULL) SWIG_fail;
3343 temp3 = True;
3344 }
3345 }
3346 if (obj3) {
3347 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3349 }
3350 {
3351 if (!wxPyCheckForApp()) SWIG_fail;
3352 PyThreadState* __tstate = wxPyBeginAllowThreads();
3353 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3354
3355 wxPyEndAllowThreads(__tstate);
3356 if (PyErr_Occurred()) SWIG_fail;
3357 }
3358 {
3359 #if wxUSE_UNICODE
3360 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3361 #else
3362 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3363 #endif
3364 }
3365 {
3366 if (temp1)
3367 delete arg1;
3368 }
3369 {
3370 if (temp2)
3371 delete arg2;
3372 }
3373 {
3374 if (temp3)
3375 delete arg3;
3376 }
3377 return resultobj;
3378 fail:
3379 {
3380 if (temp1)
3381 delete arg1;
3382 }
3383 {
3384 if (temp2)
3385 delete arg2;
3386 }
3387 {
3388 if (temp3)
3389 delete arg3;
3390 }
3391 return NULL;
3392 }
3393
3394
3395 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3396 PyObject *resultobj;
3397 wxString *arg1 = 0 ;
3398 wxString *arg2 = 0 ;
3399 wxString const &arg3_defvalue = wxPyEmptyString ;
3400 wxString *arg3 = (wxString *) &arg3_defvalue ;
3401 wxWindow *arg4 = (wxWindow *) NULL ;
3402 wxString result;
3403 bool temp1 = False ;
3404 bool temp2 = False ;
3405 bool temp3 = False ;
3406 PyObject * obj0 = 0 ;
3407 PyObject * obj1 = 0 ;
3408 PyObject * obj2 = 0 ;
3409 PyObject * obj3 = 0 ;
3410 char *kwnames[] = {
3411 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3412 };
3413
3414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3415 {
3416 arg1 = wxString_in_helper(obj0);
3417 if (arg1 == NULL) SWIG_fail;
3418 temp1 = True;
3419 }
3420 {
3421 arg2 = wxString_in_helper(obj1);
3422 if (arg2 == NULL) SWIG_fail;
3423 temp2 = True;
3424 }
3425 if (obj2) {
3426 {
3427 arg3 = wxString_in_helper(obj2);
3428 if (arg3 == NULL) SWIG_fail;
3429 temp3 = True;
3430 }
3431 }
3432 if (obj3) {
3433 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3435 }
3436 {
3437 if (!wxPyCheckForApp()) SWIG_fail;
3438 PyThreadState* __tstate = wxPyBeginAllowThreads();
3439 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3440
3441 wxPyEndAllowThreads(__tstate);
3442 if (PyErr_Occurred()) SWIG_fail;
3443 }
3444 {
3445 #if wxUSE_UNICODE
3446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3447 #else
3448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3449 #endif
3450 }
3451 {
3452 if (temp1)
3453 delete arg1;
3454 }
3455 {
3456 if (temp2)
3457 delete arg2;
3458 }
3459 {
3460 if (temp3)
3461 delete arg3;
3462 }
3463 return resultobj;
3464 fail:
3465 {
3466 if (temp1)
3467 delete arg1;
3468 }
3469 {
3470 if (temp2)
3471 delete arg2;
3472 }
3473 {
3474 if (temp3)
3475 delete arg3;
3476 }
3477 return NULL;
3478 }
3479
3480
3481 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3482 PyObject *resultobj;
3483 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3484 wxString *arg1 = (wxString *) &arg1_defvalue ;
3485 wxString const &arg2_defvalue = wxPyEmptyString ;
3486 wxString *arg2 = (wxString *) &arg2_defvalue ;
3487 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3490 wxWindow *arg5 = (wxWindow *) NULL ;
3491 wxString result;
3492 bool temp1 = False ;
3493 bool temp2 = False ;
3494 wxPoint temp4 ;
3495 PyObject * obj0 = 0 ;
3496 PyObject * obj1 = 0 ;
3497 PyObject * obj2 = 0 ;
3498 PyObject * obj3 = 0 ;
3499 PyObject * obj4 = 0 ;
3500 char *kwnames[] = {
3501 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3502 };
3503
3504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3505 if (obj0) {
3506 {
3507 arg1 = wxString_in_helper(obj0);
3508 if (arg1 == NULL) SWIG_fail;
3509 temp1 = True;
3510 }
3511 }
3512 if (obj1) {
3513 {
3514 arg2 = wxString_in_helper(obj1);
3515 if (arg2 == NULL) SWIG_fail;
3516 temp2 = True;
3517 }
3518 }
3519 if (obj2) {
3520 arg3 = (long)SWIG_As_long(obj2);
3521 if (PyErr_Occurred()) SWIG_fail;
3522 }
3523 if (obj3) {
3524 {
3525 arg4 = &temp4;
3526 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3527 }
3528 }
3529 if (obj4) {
3530 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3532 }
3533 {
3534 if (!wxPyCheckForApp()) SWIG_fail;
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 {
3542 #if wxUSE_UNICODE
3543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3544 #else
3545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3546 #endif
3547 }
3548 {
3549 if (temp1)
3550 delete arg1;
3551 }
3552 {
3553 if (temp2)
3554 delete arg2;
3555 }
3556 return resultobj;
3557 fail:
3558 {
3559 if (temp1)
3560 delete arg1;
3561 }
3562 {
3563 if (temp2)
3564 delete arg2;
3565 }
3566 return NULL;
3567 }
3568
3569
3570 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3571 PyObject *resultobj;
3572 wxString *arg1 = 0 ;
3573 wxString const &arg2_defvalue = wxPyEmptyString ;
3574 wxString *arg2 = (wxString *) &arg2_defvalue ;
3575 wxString const &arg3_defvalue = wxPyEmptyString ;
3576 wxString *arg3 = (wxString *) &arg3_defvalue ;
3577 wxWindow *arg4 = (wxWindow *) NULL ;
3578 int arg5 = (int) -1 ;
3579 int arg6 = (int) -1 ;
3580 bool arg7 = (bool) True ;
3581 wxString result;
3582 bool temp1 = False ;
3583 bool temp2 = False ;
3584 bool temp3 = False ;
3585 PyObject * obj0 = 0 ;
3586 PyObject * obj1 = 0 ;
3587 PyObject * obj2 = 0 ;
3588 PyObject * obj3 = 0 ;
3589 PyObject * obj4 = 0 ;
3590 PyObject * obj5 = 0 ;
3591 PyObject * obj6 = 0 ;
3592 char *kwnames[] = {
3593 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3594 };
3595
3596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3597 {
3598 arg1 = wxString_in_helper(obj0);
3599 if (arg1 == NULL) SWIG_fail;
3600 temp1 = True;
3601 }
3602 if (obj1) {
3603 {
3604 arg2 = wxString_in_helper(obj1);
3605 if (arg2 == NULL) SWIG_fail;
3606 temp2 = True;
3607 }
3608 }
3609 if (obj2) {
3610 {
3611 arg3 = wxString_in_helper(obj2);
3612 if (arg3 == NULL) SWIG_fail;
3613 temp3 = True;
3614 }
3615 }
3616 if (obj3) {
3617 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3619 }
3620 if (obj4) {
3621 arg5 = (int)SWIG_As_int(obj4);
3622 if (PyErr_Occurred()) SWIG_fail;
3623 }
3624 if (obj5) {
3625 arg6 = (int)SWIG_As_int(obj5);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
3628 if (obj6) {
3629 arg7 = (bool)SWIG_As_bool(obj6);
3630 if (PyErr_Occurred()) SWIG_fail;
3631 }
3632 {
3633 if (!wxPyCheckForApp()) SWIG_fail;
3634 PyThreadState* __tstate = wxPyBeginAllowThreads();
3635 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3636
3637 wxPyEndAllowThreads(__tstate);
3638 if (PyErr_Occurred()) SWIG_fail;
3639 }
3640 {
3641 #if wxUSE_UNICODE
3642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3643 #else
3644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3645 #endif
3646 }
3647 {
3648 if (temp1)
3649 delete arg1;
3650 }
3651 {
3652 if (temp2)
3653 delete arg2;
3654 }
3655 {
3656 if (temp3)
3657 delete arg3;
3658 }
3659 return resultobj;
3660 fail:
3661 {
3662 if (temp1)
3663 delete arg1;
3664 }
3665 {
3666 if (temp2)
3667 delete arg2;
3668 }
3669 {
3670 if (temp3)
3671 delete arg3;
3672 }
3673 return NULL;
3674 }
3675
3676
3677 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj;
3679 wxString *arg1 = 0 ;
3680 wxString const &arg2_defvalue = wxPyEmptyString ;
3681 wxString *arg2 = (wxString *) &arg2_defvalue ;
3682 wxString const &arg3_defvalue = wxPyEmptyString ;
3683 wxString *arg3 = (wxString *) &arg3_defvalue ;
3684 wxWindow *arg4 = (wxWindow *) NULL ;
3685 wxString result;
3686 bool temp1 = False ;
3687 bool temp2 = False ;
3688 bool temp3 = False ;
3689 PyObject * obj0 = 0 ;
3690 PyObject * obj1 = 0 ;
3691 PyObject * obj2 = 0 ;
3692 PyObject * obj3 = 0 ;
3693 char *kwnames[] = {
3694 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3695 };
3696
3697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3698 {
3699 arg1 = wxString_in_helper(obj0);
3700 if (arg1 == NULL) SWIG_fail;
3701 temp1 = True;
3702 }
3703 if (obj1) {
3704 {
3705 arg2 = wxString_in_helper(obj1);
3706 if (arg2 == NULL) SWIG_fail;
3707 temp2 = True;
3708 }
3709 }
3710 if (obj2) {
3711 {
3712 arg3 = wxString_in_helper(obj2);
3713 if (arg3 == NULL) SWIG_fail;
3714 temp3 = True;
3715 }
3716 }
3717 if (obj3) {
3718 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3720 }
3721 {
3722 if (!wxPyCheckForApp()) SWIG_fail;
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
3724 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3725
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 {
3730 #if wxUSE_UNICODE
3731 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3732 #else
3733 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3734 #endif
3735 }
3736 {
3737 if (temp1)
3738 delete arg1;
3739 }
3740 {
3741 if (temp2)
3742 delete arg2;
3743 }
3744 {
3745 if (temp3)
3746 delete arg3;
3747 }
3748 return resultobj;
3749 fail:
3750 {
3751 if (temp1)
3752 delete arg1;
3753 }
3754 {
3755 if (temp2)
3756 delete arg2;
3757 }
3758 {
3759 if (temp3)
3760 delete arg3;
3761 }
3762 return NULL;
3763 }
3764
3765
3766 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
3767 PyObject *resultobj;
3768 wxString *arg1 = 0 ;
3769 wxString *arg2 = 0 ;
3770 int arg3 ;
3771 wxString *arg4 = (wxString *) 0 ;
3772 wxWindow *arg5 = (wxWindow *) NULL ;
3773 int arg6 = (int) -1 ;
3774 int arg7 = (int) -1 ;
3775 bool arg8 = (bool) True ;
3776 int arg9 = (int) 150 ;
3777 int arg10 = (int) 200 ;
3778 wxString result;
3779 bool temp1 = False ;
3780 bool temp2 = False ;
3781 PyObject * obj0 = 0 ;
3782 PyObject * obj1 = 0 ;
3783 PyObject * obj2 = 0 ;
3784 PyObject * obj3 = 0 ;
3785 PyObject * obj4 = 0 ;
3786 PyObject * obj5 = 0 ;
3787 PyObject * obj6 = 0 ;
3788 PyObject * obj7 = 0 ;
3789 PyObject * obj8 = 0 ;
3790 char *kwnames[] = {
3791 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3792 };
3793
3794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3795 {
3796 arg1 = wxString_in_helper(obj0);
3797 if (arg1 == NULL) SWIG_fail;
3798 temp1 = True;
3799 }
3800 {
3801 arg2 = wxString_in_helper(obj1);
3802 if (arg2 == NULL) SWIG_fail;
3803 temp2 = True;
3804 }
3805 {
3806 arg3 = PyList_Size(obj2);
3807 arg4 = wxString_LIST_helper(obj2);
3808 if (arg4 == NULL) SWIG_fail;
3809 }
3810 if (obj3) {
3811 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3813 }
3814 if (obj4) {
3815 arg6 = (int)SWIG_As_int(obj4);
3816 if (PyErr_Occurred()) SWIG_fail;
3817 }
3818 if (obj5) {
3819 arg7 = (int)SWIG_As_int(obj5);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 if (obj6) {
3823 arg8 = (bool)SWIG_As_bool(obj6);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 }
3826 if (obj7) {
3827 arg9 = (int)SWIG_As_int(obj7);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 if (obj8) {
3831 arg10 = (int)SWIG_As_int(obj8);
3832 if (PyErr_Occurred()) SWIG_fail;
3833 }
3834 {
3835 if (!wxPyCheckForApp()) SWIG_fail;
3836 PyThreadState* __tstate = wxPyBeginAllowThreads();
3837 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3838
3839 wxPyEndAllowThreads(__tstate);
3840 if (PyErr_Occurred()) SWIG_fail;
3841 }
3842 {
3843 #if wxUSE_UNICODE
3844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3845 #else
3846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3847 #endif
3848 }
3849 {
3850 if (temp1)
3851 delete arg1;
3852 }
3853 {
3854 if (temp2)
3855 delete arg2;
3856 }
3857 {
3858 if (arg4) delete [] arg4;
3859 }
3860 return resultobj;
3861 fail:
3862 {
3863 if (temp1)
3864 delete arg1;
3865 }
3866 {
3867 if (temp2)
3868 delete arg2;
3869 }
3870 {
3871 if (arg4) delete [] arg4;
3872 }
3873 return NULL;
3874 }
3875
3876
3877 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
3878 PyObject *resultobj;
3879 wxString *arg1 = 0 ;
3880 wxString *arg2 = 0 ;
3881 int arg3 ;
3882 wxString *arg4 = (wxString *) 0 ;
3883 wxWindow *arg5 = (wxWindow *) NULL ;
3884 int arg6 = (int) -1 ;
3885 int arg7 = (int) -1 ;
3886 bool arg8 = (bool) True ;
3887 int arg9 = (int) 150 ;
3888 int arg10 = (int) 200 ;
3889 int result;
3890 bool temp1 = False ;
3891 bool temp2 = False ;
3892 PyObject * obj0 = 0 ;
3893 PyObject * obj1 = 0 ;
3894 PyObject * obj2 = 0 ;
3895 PyObject * obj3 = 0 ;
3896 PyObject * obj4 = 0 ;
3897 PyObject * obj5 = 0 ;
3898 PyObject * obj6 = 0 ;
3899 PyObject * obj7 = 0 ;
3900 PyObject * obj8 = 0 ;
3901 char *kwnames[] = {
3902 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3903 };
3904
3905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3906 {
3907 arg1 = wxString_in_helper(obj0);
3908 if (arg1 == NULL) SWIG_fail;
3909 temp1 = True;
3910 }
3911 {
3912 arg2 = wxString_in_helper(obj1);
3913 if (arg2 == NULL) SWIG_fail;
3914 temp2 = True;
3915 }
3916 {
3917 arg3 = PyList_Size(obj2);
3918 arg4 = wxString_LIST_helper(obj2);
3919 if (arg4 == NULL) SWIG_fail;
3920 }
3921 if (obj3) {
3922 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3924 }
3925 if (obj4) {
3926 arg6 = (int)SWIG_As_int(obj4);
3927 if (PyErr_Occurred()) SWIG_fail;
3928 }
3929 if (obj5) {
3930 arg7 = (int)SWIG_As_int(obj5);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 }
3933 if (obj6) {
3934 arg8 = (bool)SWIG_As_bool(obj6);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 if (obj7) {
3938 arg9 = (int)SWIG_As_int(obj7);
3939 if (PyErr_Occurred()) SWIG_fail;
3940 }
3941 if (obj8) {
3942 arg10 = (int)SWIG_As_int(obj8);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 {
3946 if (!wxPyCheckForApp()) SWIG_fail;
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3949
3950 wxPyEndAllowThreads(__tstate);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 resultobj = SWIG_From_int((int)result);
3954 {
3955 if (temp1)
3956 delete arg1;
3957 }
3958 {
3959 if (temp2)
3960 delete arg2;
3961 }
3962 {
3963 if (arg4) delete [] arg4;
3964 }
3965 return resultobj;
3966 fail:
3967 {
3968 if (temp1)
3969 delete arg1;
3970 }
3971 {
3972 if (temp2)
3973 delete arg2;
3974 }
3975 {
3976 if (arg4) delete [] arg4;
3977 }
3978 return NULL;
3979 }
3980
3981
3982 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
3983 PyObject *resultobj;
3984 wxString *arg1 = 0 ;
3985 wxString const &arg2_defvalue = wxPyEmptyString ;
3986 wxString *arg2 = (wxString *) &arg2_defvalue ;
3987 int arg3 = (int) wxOK|wxCENTRE ;
3988 wxWindow *arg4 = (wxWindow *) NULL ;
3989 int arg5 = (int) -1 ;
3990 int arg6 = (int) -1 ;
3991 int result;
3992 bool temp1 = False ;
3993 bool temp2 = False ;
3994 PyObject * obj0 = 0 ;
3995 PyObject * obj1 = 0 ;
3996 PyObject * obj2 = 0 ;
3997 PyObject * obj3 = 0 ;
3998 PyObject * obj4 = 0 ;
3999 PyObject * obj5 = 0 ;
4000 char *kwnames[] = {
4001 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4005 {
4006 arg1 = wxString_in_helper(obj0);
4007 if (arg1 == NULL) SWIG_fail;
4008 temp1 = True;
4009 }
4010 if (obj1) {
4011 {
4012 arg2 = wxString_in_helper(obj1);
4013 if (arg2 == NULL) SWIG_fail;
4014 temp2 = True;
4015 }
4016 }
4017 if (obj2) {
4018 arg3 = (int)SWIG_As_int(obj2);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 if (obj3) {
4022 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
4023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4024 }
4025 if (obj4) {
4026 arg5 = (int)SWIG_As_int(obj4);
4027 if (PyErr_Occurred()) SWIG_fail;
4028 }
4029 if (obj5) {
4030 arg6 = (int)SWIG_As_int(obj5);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 {
4034 if (!wxPyCheckForApp()) SWIG_fail;
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_From_int((int)result);
4042 {
4043 if (temp1)
4044 delete arg1;
4045 }
4046 {
4047 if (temp2)
4048 delete arg2;
4049 }
4050 return resultobj;
4051 fail:
4052 {
4053 if (temp1)
4054 delete arg1;
4055 }
4056 {
4057 if (temp2)
4058 delete arg2;
4059 }
4060 return NULL;
4061 }
4062
4063
4064 static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
4065 PyObject *resultobj;
4066 wxString *arg1 = 0 ;
4067 wxString *arg2 = 0 ;
4068 wxString *arg3 = 0 ;
4069 long arg4 ;
4070 long arg5 = (long) 0 ;
4071 long arg6 = (long) 100 ;
4072 wxWindow *arg7 = (wxWindow *) NULL ;
4073 wxPoint const &arg8_defvalue = wxDefaultPosition ;
4074 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
4075 long result;
4076 bool temp1 = False ;
4077 bool temp2 = False ;
4078 bool temp3 = False ;
4079 wxPoint temp8 ;
4080 PyObject * obj0 = 0 ;
4081 PyObject * obj1 = 0 ;
4082 PyObject * obj2 = 0 ;
4083 PyObject * obj3 = 0 ;
4084 PyObject * obj4 = 0 ;
4085 PyObject * obj5 = 0 ;
4086 PyObject * obj6 = 0 ;
4087 PyObject * obj7 = 0 ;
4088 char *kwnames[] = {
4089 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
4090 };
4091
4092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4093 {
4094 arg1 = wxString_in_helper(obj0);
4095 if (arg1 == NULL) SWIG_fail;
4096 temp1 = True;
4097 }
4098 {
4099 arg2 = wxString_in_helper(obj1);
4100 if (arg2 == NULL) SWIG_fail;
4101 temp2 = True;
4102 }
4103 {
4104 arg3 = wxString_in_helper(obj2);
4105 if (arg3 == NULL) SWIG_fail;
4106 temp3 = True;
4107 }
4108 arg4 = (long)SWIG_As_long(obj3);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 if (obj4) {
4111 arg5 = (long)SWIG_As_long(obj4);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 if (obj5) {
4115 arg6 = (long)SWIG_As_long(obj5);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 if (obj6) {
4119 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
4120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4121 }
4122 if (obj7) {
4123 {
4124 arg8 = &temp8;
4125 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
4126 }
4127 }
4128 {
4129 if (!wxPyCheckForApp()) SWIG_fail;
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
4132
4133 wxPyEndAllowThreads(__tstate);
4134 if (PyErr_Occurred()) SWIG_fail;
4135 }
4136 resultobj = SWIG_From_long((long)result);
4137 {
4138 if (temp1)
4139 delete arg1;
4140 }
4141 {
4142 if (temp2)
4143 delete arg2;
4144 }
4145 {
4146 if (temp3)
4147 delete arg3;
4148 }
4149 return resultobj;
4150 fail:
4151 {
4152 if (temp1)
4153 delete arg1;
4154 }
4155 {
4156 if (temp2)
4157 delete arg2;
4158 }
4159 {
4160 if (temp3)
4161 delete arg3;
4162 }
4163 return NULL;
4164 }
4165
4166
4167 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
4168 PyObject *resultobj;
4169 bool result;
4170 char *kwnames[] = {
4171 NULL
4172 };
4173
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4175 {
4176 if (!wxPyCheckForApp()) SWIG_fail;
4177 PyThreadState* __tstate = wxPyBeginAllowThreads();
4178 result = (bool)wxColourDisplay();
4179
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
4183 {
4184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4185 }
4186 return resultobj;
4187 fail:
4188 return NULL;
4189 }
4190
4191
4192 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4193 PyObject *resultobj;
4194 int result;
4195 char *kwnames[] = {
4196 NULL
4197 };
4198
4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4200 {
4201 if (!wxPyCheckForApp()) SWIG_fail;
4202 PyThreadState* __tstate = wxPyBeginAllowThreads();
4203 result = (int)wxDisplayDepth();
4204
4205 wxPyEndAllowThreads(__tstate);
4206 if (PyErr_Occurred()) SWIG_fail;
4207 }
4208 resultobj = SWIG_From_int((int)result);
4209 return resultobj;
4210 fail:
4211 return NULL;
4212 }
4213
4214
4215 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4216 PyObject *resultobj;
4217 int result;
4218 char *kwnames[] = {
4219 NULL
4220 };
4221
4222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4223 {
4224 if (!wxPyCheckForApp()) SWIG_fail;
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (int)wxGetDisplayDepth();
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_From_int((int)result);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 int *arg1 = (int *) 0 ;
4241 int *arg2 = (int *) 0 ;
4242 int temp1 ;
4243 int res1 = 0 ;
4244 int temp2 ;
4245 int res2 = 0 ;
4246 char *kwnames[] = {
4247 NULL
4248 };
4249
4250 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4251 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4253 {
4254 if (!wxPyCheckForApp()) SWIG_fail;
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 wxDisplaySize(arg1,arg2);
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 Py_INCREF(Py_None); resultobj = Py_None;
4262 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4263 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4264 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4265 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4266 return resultobj;
4267 fail:
4268 return NULL;
4269 }
4270
4271
4272 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4273 PyObject *resultobj;
4274 wxSize result;
4275 char *kwnames[] = {
4276 NULL
4277 };
4278
4279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4280 {
4281 if (!wxPyCheckForApp()) SWIG_fail;
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = wxGetDisplaySize();
4284
4285 wxPyEndAllowThreads(__tstate);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 }
4288 {
4289 wxSize * resultptr;
4290 resultptr = new wxSize((wxSize &) result);
4291 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4292 }
4293 return resultobj;
4294 fail:
4295 return NULL;
4296 }
4297
4298
4299 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4300 PyObject *resultobj;
4301 int *arg1 = (int *) 0 ;
4302 int *arg2 = (int *) 0 ;
4303 int temp1 ;
4304 int res1 = 0 ;
4305 int temp2 ;
4306 int res2 = 0 ;
4307 char *kwnames[] = {
4308 NULL
4309 };
4310
4311 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4312 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4314 {
4315 if (!wxPyCheckForApp()) SWIG_fail;
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 wxDisplaySizeMM(arg1,arg2);
4318
4319 wxPyEndAllowThreads(__tstate);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 Py_INCREF(Py_None); resultobj = Py_None;
4323 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4324 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4325 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4326 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4334 PyObject *resultobj;
4335 wxSize result;
4336 char *kwnames[] = {
4337 NULL
4338 };
4339
4340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4341 {
4342 if (!wxPyCheckForApp()) SWIG_fail;
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 result = wxGetDisplaySizeMM();
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 {
4350 wxSize * resultptr;
4351 resultptr = new wxSize((wxSize &) result);
4352 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4353 }
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj;
4362 int *arg1 = (int *) 0 ;
4363 int *arg2 = (int *) 0 ;
4364 int *arg3 = (int *) 0 ;
4365 int *arg4 = (int *) 0 ;
4366 int temp1 ;
4367 int res1 = 0 ;
4368 int temp2 ;
4369 int res2 = 0 ;
4370 int temp3 ;
4371 int res3 = 0 ;
4372 int temp4 ;
4373 int res4 = 0 ;
4374 char *kwnames[] = {
4375 NULL
4376 };
4377
4378 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4379 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4380 arg3 = &temp3; res3 = SWIG_NEWOBJ;
4381 arg4 = &temp4; res4 = SWIG_NEWOBJ;
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4383 {
4384 if (!wxPyCheckForApp()) SWIG_fail;
4385 PyThreadState* __tstate = wxPyBeginAllowThreads();
4386 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4387
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 Py_INCREF(Py_None); resultobj = Py_None;
4392 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4393 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4394 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4395 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4396 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
4397 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
4398 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
4399 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
4400 return resultobj;
4401 fail:
4402 return NULL;
4403 }
4404
4405
4406 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4407 PyObject *resultobj;
4408 wxRect result;
4409 char *kwnames[] = {
4410 NULL
4411 };
4412
4413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4414 {
4415 if (!wxPyCheckForApp()) SWIG_fail;
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 result = wxGetClientDisplayRect();
4418
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 {
4423 wxRect * resultptr;
4424 resultptr = new wxRect((wxRect &) result);
4425 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4426 }
4427 return resultobj;
4428 fail:
4429 return NULL;
4430 }
4431
4432
4433 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4434 PyObject *resultobj;
4435 wxCursor *arg1 = 0 ;
4436 PyObject * obj0 = 0 ;
4437 char *kwnames[] = {
4438 (char *) "cursor", NULL
4439 };
4440
4441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4443 SWIG_POINTER_EXCEPTION | 0)) == -1)
4444 SWIG_fail;
4445 if (arg1 == NULL) {
4446 PyErr_SetString(PyExc_TypeError,"null reference");
4447 SWIG_fail;
4448 }
4449 {
4450 if (!wxPyCheckForApp()) SWIG_fail;
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 wxSetCursor(*arg1);
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 Py_INCREF(Py_None); resultobj = Py_None;
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj;
4466 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4467 PyObject * obj0 = 0 ;
4468 char *kwnames[] = {
4469 (char *) "cursor", NULL
4470 };
4471
4472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4473 if (obj0) {
4474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4476 }
4477 {
4478 if (!wxPyCheckForApp()) SWIG_fail;
4479 PyThreadState* __tstate = wxPyBeginAllowThreads();
4480 wxBeginBusyCursor(arg1);
4481
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 Py_INCREF(Py_None); resultobj = Py_None;
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj;
4494 wxWindow *result;
4495 char *kwnames[] = {
4496 NULL
4497 };
4498
4499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4500 {
4501 if (!wxPyCheckForApp()) SWIG_fail;
4502 PyThreadState* __tstate = wxPyBeginAllowThreads();
4503 result = (wxWindow *)wxGetActiveWindow();
4504
4505 wxPyEndAllowThreads(__tstate);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 {
4509 resultobj = wxPyMake_wxObject(result, 0);
4510 }
4511 return resultobj;
4512 fail:
4513 return NULL;
4514 }
4515
4516
4517 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj;
4519 wxPoint *arg1 = 0 ;
4520 wxWindow *result;
4521 wxPoint temp1 ;
4522 PyObject * obj0 = 0 ;
4523 char *kwnames[] = {
4524 (char *) "pt", NULL
4525 };
4526
4527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4528 {
4529 arg1 = &temp1;
4530 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4531 }
4532 {
4533 if (!wxPyCheckForApp()) SWIG_fail;
4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
4535 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4536
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) SWIG_fail;
4539 }
4540 {
4541 resultobj = wxPyMake_wxObject(result, 0);
4542 }
4543 return resultobj;
4544 fail:
4545 return NULL;
4546 }
4547
4548
4549 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4550 PyObject *resultobj;
4551 wxPoint *arg1 = 0 ;
4552 wxWindow *result;
4553 wxPoint temp1 ;
4554 PyObject * obj0 = 0 ;
4555 char *kwnames[] = {
4556 (char *) "pt", NULL
4557 };
4558
4559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4560 {
4561 arg1 = &temp1;
4562 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4563 }
4564 {
4565 if (!wxPyCheckForApp()) SWIG_fail;
4566 PyThreadState* __tstate = wxPyBeginAllowThreads();
4567 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4568
4569 wxPyEndAllowThreads(__tstate);
4570 if (PyErr_Occurred()) SWIG_fail;
4571 }
4572 {
4573 resultobj = wxPyMake_wxObject(result, 0);
4574 }
4575 return resultobj;
4576 fail:
4577 return NULL;
4578 }
4579
4580
4581 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxWindow *arg1 = (wxWindow *) 0 ;
4584 wxWindow *result;
4585 PyObject * obj0 = 0 ;
4586 char *kwnames[] = {
4587 (char *) "win", NULL
4588 };
4589
4590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4593 {
4594 if (!wxPyCheckForApp()) SWIG_fail;
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
4596 result = (wxWindow *)wxGetTopLevelParent(arg1);
4597
4598 wxPyEndAllowThreads(__tstate);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 }
4601 {
4602 resultobj = wxPyMake_wxObject(result, 0);
4603 }
4604 return resultobj;
4605 fail:
4606 return NULL;
4607 }
4608
4609
4610 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
4611 PyObject *resultobj;
4612 int arg1 ;
4613 bool result;
4614 PyObject * obj0 = 0 ;
4615 char *kwnames[] = {
4616 (char *) "key", NULL
4617 };
4618
4619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4620 arg1 = (int)SWIG_As_int(obj0);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 {
4623 if (!wxPyCheckForApp()) SWIG_fail;
4624 PyThreadState* __tstate = wxPyBeginAllowThreads();
4625 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4626
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 {
4631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4632 }
4633 return resultobj;
4634 fail:
4635 return NULL;
4636 }
4637
4638
4639 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
4640 PyObject *resultobj;
4641 char *kwnames[] = {
4642 NULL
4643 };
4644
4645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4646 {
4647 if (!wxPyCheckForApp()) SWIG_fail;
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 wxWakeUpMainThread();
4650
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 Py_INCREF(Py_None); resultobj = Py_None;
4655 return resultobj;
4656 fail:
4657 return NULL;
4658 }
4659
4660
4661 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj;
4663 char *kwnames[] = {
4664 NULL
4665 };
4666
4667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4668 {
4669 if (!wxPyCheckForApp()) SWIG_fail;
4670 PyThreadState* __tstate = wxPyBeginAllowThreads();
4671 wxMutexGuiEnter();
4672
4673 wxPyEndAllowThreads(__tstate);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 Py_INCREF(Py_None); resultobj = Py_None;
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
4684 PyObject *resultobj;
4685 char *kwnames[] = {
4686 NULL
4687 };
4688
4689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4690 {
4691 if (!wxPyCheckForApp()) SWIG_fail;
4692 PyThreadState* __tstate = wxPyBeginAllowThreads();
4693 wxMutexGuiLeave();
4694
4695 wxPyEndAllowThreads(__tstate);
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 Py_INCREF(Py_None); resultobj = Py_None;
4699 return resultobj;
4700 fail:
4701 return NULL;
4702 }
4703
4704
4705 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4706 PyObject *resultobj;
4707 wxMutexGuiLocker *result;
4708 char *kwnames[] = {
4709 NULL
4710 };
4711
4712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4713 {
4714 if (!wxPyCheckForApp()) SWIG_fail;
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4717
4718 wxPyEndAllowThreads(__tstate);
4719 if (PyErr_Occurred()) SWIG_fail;
4720 }
4721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4722 return resultobj;
4723 fail:
4724 return NULL;
4725 }
4726
4727
4728 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4729 PyObject *resultobj;
4730 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4731 PyObject * obj0 = 0 ;
4732 char *kwnames[] = {
4733 (char *) "self", NULL
4734 };
4735
4736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 delete arg1;
4742
4743 wxPyEndAllowThreads(__tstate);
4744 if (PyErr_Occurred()) SWIG_fail;
4745 }
4746 Py_INCREF(Py_None); resultobj = Py_None;
4747 return resultobj;
4748 fail:
4749 return NULL;
4750 }
4751
4752
4753 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
4754 PyObject *obj;
4755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4756 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4757 Py_INCREF(obj);
4758 return Py_BuildValue((char *)"");
4759 }
4760 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
4761 PyObject *resultobj;
4762 bool result;
4763 char *kwnames[] = {
4764 NULL
4765 };
4766
4767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4768 {
4769 PyThreadState* __tstate = wxPyBeginAllowThreads();
4770 result = (bool)wxThread_IsMain();
4771
4772 wxPyEndAllowThreads(__tstate);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 }
4775 {
4776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4777 }
4778 return resultobj;
4779 fail:
4780 return NULL;
4781 }
4782
4783
4784 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
4785 PyObject *resultobj;
4786 wxString *arg1 = 0 ;
4787 wxToolTip *result;
4788 bool temp1 = False ;
4789 PyObject * obj0 = 0 ;
4790 char *kwnames[] = {
4791 (char *) "tip", NULL
4792 };
4793
4794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4795 {
4796 arg1 = wxString_in_helper(obj0);
4797 if (arg1 == NULL) SWIG_fail;
4798 temp1 = True;
4799 }
4800 {
4801 if (!wxPyCheckForApp()) SWIG_fail;
4802 PyThreadState* __tstate = wxPyBeginAllowThreads();
4803 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4804
4805 wxPyEndAllowThreads(__tstate);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 }
4808 {
4809 resultobj = wxPyMake_wxObject(result, 1);
4810 }
4811 {
4812 if (temp1)
4813 delete arg1;
4814 }
4815 return resultobj;
4816 fail:
4817 {
4818 if (temp1)
4819 delete arg1;
4820 }
4821 return NULL;
4822 }
4823
4824
4825 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4826 PyObject *resultobj;
4827 wxToolTip *arg1 = (wxToolTip *) 0 ;
4828 wxString *arg2 = 0 ;
4829 bool temp2 = False ;
4830 PyObject * obj0 = 0 ;
4831 PyObject * obj1 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "self",(char *) "tip", NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4839 {
4840 arg2 = wxString_in_helper(obj1);
4841 if (arg2 == NULL) SWIG_fail;
4842 temp2 = True;
4843 }
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 (arg1)->SetTip((wxString const &)*arg2);
4847
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 Py_INCREF(Py_None); resultobj = Py_None;
4852 {
4853 if (temp2)
4854 delete arg2;
4855 }
4856 return resultobj;
4857 fail:
4858 {
4859 if (temp2)
4860 delete arg2;
4861 }
4862 return NULL;
4863 }
4864
4865
4866 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4867 PyObject *resultobj;
4868 wxToolTip *arg1 = (wxToolTip *) 0 ;
4869 wxString result;
4870 PyObject * obj0 = 0 ;
4871 char *kwnames[] = {
4872 (char *) "self", NULL
4873 };
4874
4875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4878 {
4879 PyThreadState* __tstate = wxPyBeginAllowThreads();
4880 result = (arg1)->GetTip();
4881
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
4885 {
4886 #if wxUSE_UNICODE
4887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4888 #else
4889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4890 #endif
4891 }
4892 return resultobj;
4893 fail:
4894 return NULL;
4895 }
4896
4897
4898 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4899 PyObject *resultobj;
4900 wxToolTip *arg1 = (wxToolTip *) 0 ;
4901 wxWindow *result;
4902 PyObject * obj0 = 0 ;
4903 char *kwnames[] = {
4904 (char *) "self", NULL
4905 };
4906
4907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4910 {
4911 PyThreadState* __tstate = wxPyBeginAllowThreads();
4912 result = (wxWindow *)(arg1)->GetWindow();
4913
4914 wxPyEndAllowThreads(__tstate);
4915 if (PyErr_Occurred()) SWIG_fail;
4916 }
4917 {
4918 resultobj = wxPyMake_wxObject(result, 0);
4919 }
4920 return resultobj;
4921 fail:
4922 return NULL;
4923 }
4924
4925
4926 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
4927 PyObject *resultobj;
4928 bool arg1 ;
4929 PyObject * obj0 = 0 ;
4930 char *kwnames[] = {
4931 (char *) "flag", NULL
4932 };
4933
4934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4935 arg1 = (bool)SWIG_As_bool(obj0);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 {
4938 PyThreadState* __tstate = wxPyBeginAllowThreads();
4939 wxToolTip::Enable(arg1);
4940
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 Py_INCREF(Py_None); resultobj = Py_None;
4945 return resultobj;
4946 fail:
4947 return NULL;
4948 }
4949
4950
4951 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj;
4953 long arg1 ;
4954 PyObject * obj0 = 0 ;
4955 char *kwnames[] = {
4956 (char *) "milliseconds", NULL
4957 };
4958
4959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4960 arg1 = (long)SWIG_As_long(obj0);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 {
4963 PyThreadState* __tstate = wxPyBeginAllowThreads();
4964 wxToolTip::SetDelay(arg1);
4965
4966 wxPyEndAllowThreads(__tstate);
4967 if (PyErr_Occurred()) SWIG_fail;
4968 }
4969 Py_INCREF(Py_None); resultobj = Py_None;
4970 return resultobj;
4971 fail:
4972 return NULL;
4973 }
4974
4975
4976 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
4977 PyObject *obj;
4978 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4979 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4980 Py_INCREF(obj);
4981 return Py_BuildValue((char *)"");
4982 }
4983 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
4984 PyObject *resultobj;
4985 wxWindow *arg1 = (wxWindow *) 0 ;
4986 wxSize *arg2 = 0 ;
4987 wxCaret *result;
4988 wxSize temp2 ;
4989 PyObject * obj0 = 0 ;
4990 PyObject * obj1 = 0 ;
4991 char *kwnames[] = {
4992 (char *) "window",(char *) "size", NULL
4993 };
4994
4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4998 {
4999 arg2 = &temp2;
5000 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5001 }
5002 {
5003 if (!wxPyCheckForApp()) SWIG_fail;
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
5005 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
5006
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
5011 return resultobj;
5012 fail:
5013 return NULL;
5014 }
5015
5016
5017 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
5018 PyObject *resultobj;
5019 wxCaret *arg1 = (wxCaret *) 0 ;
5020 PyObject * obj0 = 0 ;
5021 char *kwnames[] = {
5022 (char *) "self", NULL
5023 };
5024
5025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
5026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5028 {
5029 PyThreadState* __tstate = wxPyBeginAllowThreads();
5030 delete arg1;
5031
5032 wxPyEndAllowThreads(__tstate);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 Py_INCREF(Py_None); resultobj = Py_None;
5036 return resultobj;
5037 fail:
5038 return NULL;
5039 }
5040
5041
5042 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5043 PyObject *resultobj;
5044 wxCaret *arg1 = (wxCaret *) 0 ;
5045 bool result;
5046 PyObject * obj0 = 0 ;
5047 char *kwnames[] = {
5048 (char *) "self", NULL
5049 };
5050
5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
5052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5054 {
5055 PyThreadState* __tstate = wxPyBeginAllowThreads();
5056 result = (bool)(arg1)->IsOk();
5057
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 {
5062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5063 }
5064 return resultobj;
5065 fail:
5066 return NULL;
5067 }
5068
5069
5070 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj;
5072 wxCaret *arg1 = (wxCaret *) 0 ;
5073 bool result;
5074 PyObject * obj0 = 0 ;
5075 char *kwnames[] = {
5076 (char *) "self", NULL
5077 };
5078
5079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
5080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 result = (bool)(arg1)->IsVisible();
5085
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 {
5090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5091 }
5092 return resultobj;
5093 fail:
5094 return NULL;
5095 }
5096
5097
5098 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
5099 PyObject *resultobj;
5100 wxCaret *arg1 = (wxCaret *) 0 ;
5101 wxPoint result;
5102 PyObject * obj0 = 0 ;
5103 char *kwnames[] = {
5104 (char *) "self", NULL
5105 };
5106
5107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
5108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5110 {
5111 PyThreadState* __tstate = wxPyBeginAllowThreads();
5112 result = (arg1)->GetPosition();
5113
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 {
5118 wxPoint * resultptr;
5119 resultptr = new wxPoint((wxPoint &) result);
5120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5121 }
5122 return resultobj;
5123 fail:
5124 return NULL;
5125 }
5126
5127
5128 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5129 PyObject *resultobj;
5130 wxCaret *arg1 = (wxCaret *) 0 ;
5131 int *arg2 = (int *) 0 ;
5132 int *arg3 = (int *) 0 ;
5133 int temp2 ;
5134 int res2 = 0 ;
5135 int temp3 ;
5136 int res3 = 0 ;
5137 PyObject * obj0 = 0 ;
5138 char *kwnames[] = {
5139 (char *) "self", NULL
5140 };
5141
5142 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5143 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5147 {
5148 PyThreadState* __tstate = wxPyBeginAllowThreads();
5149 (arg1)->GetPosition(arg2,arg3);
5150
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 Py_INCREF(Py_None); resultobj = Py_None;
5155 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5156 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5157 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5158 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5159 return resultobj;
5160 fail:
5161 return NULL;
5162 }
5163
5164
5165 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5166 PyObject *resultobj;
5167 wxCaret *arg1 = (wxCaret *) 0 ;
5168 wxSize result;
5169 PyObject * obj0 = 0 ;
5170 char *kwnames[] = {
5171 (char *) "self", NULL
5172 };
5173
5174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (arg1)->GetSize();
5180
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) SWIG_fail;
5183 }
5184 {
5185 wxSize * resultptr;
5186 resultptr = new wxSize((wxSize &) result);
5187 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5188 }
5189 return resultobj;
5190 fail:
5191 return NULL;
5192 }
5193
5194
5195 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5196 PyObject *resultobj;
5197 wxCaret *arg1 = (wxCaret *) 0 ;
5198 int *arg2 = (int *) 0 ;
5199 int *arg3 = (int *) 0 ;
5200 int temp2 ;
5201 int res2 = 0 ;
5202 int temp3 ;
5203 int res3 = 0 ;
5204 PyObject * obj0 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "self", NULL
5207 };
5208
5209 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5210 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5214 {
5215 PyThreadState* __tstate = wxPyBeginAllowThreads();
5216 (arg1)->GetSize(arg2,arg3);
5217
5218 wxPyEndAllowThreads(__tstate);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 Py_INCREF(Py_None); resultobj = Py_None;
5222 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5223 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5224 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5225 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 wxCaret *arg1 = (wxCaret *) 0 ;
5235 wxWindow *result;
5236 PyObject * obj0 = 0 ;
5237 char *kwnames[] = {
5238 (char *) "self", NULL
5239 };
5240
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5244 {
5245 PyThreadState* __tstate = wxPyBeginAllowThreads();
5246 result = (wxWindow *)(arg1)->GetWindow();
5247
5248 wxPyEndAllowThreads(__tstate);
5249 if (PyErr_Occurred()) SWIG_fail;
5250 }
5251 {
5252 resultobj = wxPyMake_wxObject(result, 0);
5253 }
5254 return resultobj;
5255 fail:
5256 return NULL;
5257 }
5258
5259
5260 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
5261 PyObject *resultobj;
5262 wxCaret *arg1 = (wxCaret *) 0 ;
5263 int arg2 ;
5264 int arg3 ;
5265 PyObject * obj0 = 0 ;
5266 PyObject * obj1 = 0 ;
5267 PyObject * obj2 = 0 ;
5268 char *kwnames[] = {
5269 (char *) "self",(char *) "x",(char *) "y", NULL
5270 };
5271
5272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5275 arg2 = (int)SWIG_As_int(obj1);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 arg3 = (int)SWIG_As_int(obj2);
5278 if (PyErr_Occurred()) SWIG_fail;
5279 {
5280 PyThreadState* __tstate = wxPyBeginAllowThreads();
5281 (arg1)->Move(arg2,arg3);
5282
5283 wxPyEndAllowThreads(__tstate);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 }
5286 Py_INCREF(Py_None); resultobj = Py_None;
5287 return resultobj;
5288 fail:
5289 return NULL;
5290 }
5291
5292
5293 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj;
5295 wxCaret *arg1 = (wxCaret *) 0 ;
5296 wxPoint *arg2 = 0 ;
5297 wxPoint temp2 ;
5298 PyObject * obj0 = 0 ;
5299 PyObject * obj1 = 0 ;
5300 char *kwnames[] = {
5301 (char *) "self",(char *) "pt", NULL
5302 };
5303
5304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5307 {
5308 arg2 = &temp2;
5309 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5310 }
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 (arg1)->Move((wxPoint const &)*arg2);
5314
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 Py_INCREF(Py_None); resultobj = Py_None;
5319 return resultobj;
5320 fail:
5321 return NULL;
5322 }
5323
5324
5325 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
5326 PyObject *resultobj;
5327 wxCaret *arg1 = (wxCaret *) 0 ;
5328 int arg2 ;
5329 int arg3 ;
5330 PyObject * obj0 = 0 ;
5331 PyObject * obj1 = 0 ;
5332 PyObject * obj2 = 0 ;
5333 char *kwnames[] = {
5334 (char *) "self",(char *) "width",(char *) "height", NULL
5335 };
5336
5337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5340 arg2 = (int)SWIG_As_int(obj1);
5341 if (PyErr_Occurred()) SWIG_fail;
5342 arg3 = (int)SWIG_As_int(obj2);
5343 if (PyErr_Occurred()) SWIG_fail;
5344 {
5345 PyThreadState* __tstate = wxPyBeginAllowThreads();
5346 (arg1)->SetSize(arg2,arg3);
5347
5348 wxPyEndAllowThreads(__tstate);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 }
5351 Py_INCREF(Py_None); resultobj = Py_None;
5352 return resultobj;
5353 fail:
5354 return NULL;
5355 }
5356
5357
5358 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5359 PyObject *resultobj;
5360 wxCaret *arg1 = (wxCaret *) 0 ;
5361 wxSize *arg2 = 0 ;
5362 wxSize temp2 ;
5363 PyObject * obj0 = 0 ;
5364 PyObject * obj1 = 0 ;
5365 char *kwnames[] = {
5366 (char *) "self",(char *) "size", NULL
5367 };
5368
5369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5372 {
5373 arg2 = &temp2;
5374 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5375 }
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 (arg1)->SetSize((wxSize const &)*arg2);
5379
5380 wxPyEndAllowThreads(__tstate);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 Py_INCREF(Py_None); resultobj = Py_None;
5384 return resultobj;
5385 fail:
5386 return NULL;
5387 }
5388
5389
5390 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
5391 PyObject *resultobj;
5392 wxCaret *arg1 = (wxCaret *) 0 ;
5393 int arg2 = (int) True ;
5394 PyObject * obj0 = 0 ;
5395 PyObject * obj1 = 0 ;
5396 char *kwnames[] = {
5397 (char *) "self",(char *) "show", NULL
5398 };
5399
5400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5403 if (obj1) {
5404 arg2 = (int)SWIG_As_int(obj1);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 (arg1)->Show(arg2);
5410
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 Py_INCREF(Py_None); resultobj = Py_None;
5415 return resultobj;
5416 fail:
5417 return NULL;
5418 }
5419
5420
5421 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj;
5423 wxCaret *arg1 = (wxCaret *) 0 ;
5424 PyObject * obj0 = 0 ;
5425 char *kwnames[] = {
5426 (char *) "self", NULL
5427 };
5428
5429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5432 {
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 (arg1)->Hide();
5435
5436 wxPyEndAllowThreads(__tstate);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 Py_INCREF(Py_None); resultobj = Py_None;
5440 return resultobj;
5441 fail:
5442 return NULL;
5443 }
5444
5445
5446 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
5447 PyObject *obj;
5448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5449 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5450 Py_INCREF(obj);
5451 return Py_BuildValue((char *)"");
5452 }
5453 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5454 PyObject *resultobj;
5455 int result;
5456 char *kwnames[] = {
5457 NULL
5458 };
5459
5460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5461 {
5462 PyThreadState* __tstate = wxPyBeginAllowThreads();
5463 result = (int)wxCaret_GetBlinkTime();
5464
5465 wxPyEndAllowThreads(__tstate);
5466 if (PyErr_Occurred()) SWIG_fail;
5467 }
5468 resultobj = SWIG_From_int((int)result);
5469 return resultobj;
5470 fail:
5471 return NULL;
5472 }
5473
5474
5475 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5476 PyObject *resultobj;
5477 int arg1 ;
5478 PyObject * obj0 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "milliseconds", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5484 arg1 = (int)SWIG_As_int(obj0);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 wxCaret_SetBlinkTime(arg1);
5489
5490 wxPyEndAllowThreads(__tstate);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 Py_INCREF(Py_None); resultobj = Py_None;
5494 return resultobj;
5495 fail:
5496 return NULL;
5497 }
5498
5499
5500 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5501 PyObject *resultobj;
5502 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5503 wxBusyCursor *result;
5504 PyObject * obj0 = 0 ;
5505 char *kwnames[] = {
5506 (char *) "cursor", NULL
5507 };
5508
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5510 if (obj0) {
5511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5513 }
5514 {
5515 if (!wxPyCheckForApp()) SWIG_fail;
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5518
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5523 return resultobj;
5524 fail:
5525 return NULL;
5526 }
5527
5528
5529 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5532 PyObject * obj0 = 0 ;
5533 char *kwnames[] = {
5534 (char *) "self", NULL
5535 };
5536
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 delete arg1;
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 Py_INCREF(Py_None); resultobj = Py_None;
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
5555 PyObject *obj;
5556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5557 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5558 Py_INCREF(obj);
5559 return Py_BuildValue((char *)"");
5560 }
5561 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5562 PyObject *resultobj;
5563 wxWindow *arg1 = (wxWindow *) NULL ;
5564 wxWindowDisabler *result;
5565 PyObject * obj0 = 0 ;
5566 char *kwnames[] = {
5567 (char *) "winToSkip", NULL
5568 };
5569
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5571 if (obj0) {
5572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5574 }
5575 {
5576 if (!wxPyCheckForApp()) SWIG_fail;
5577 PyThreadState* __tstate = wxPyBeginAllowThreads();
5578 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5579
5580 wxPyEndAllowThreads(__tstate);
5581 if (PyErr_Occurred()) SWIG_fail;
5582 }
5583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5584 return resultobj;
5585 fail:
5586 return NULL;
5587 }
5588
5589
5590 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5591 PyObject *resultobj;
5592 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5593 PyObject * obj0 = 0 ;
5594 char *kwnames[] = {
5595 (char *) "self", NULL
5596 };
5597
5598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5601 {
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 delete arg1;
5604
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 Py_INCREF(Py_None); resultobj = Py_None;
5609 return resultobj;
5610 fail:
5611 return NULL;
5612 }
5613
5614
5615 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
5616 PyObject *obj;
5617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5618 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5619 Py_INCREF(obj);
5620 return Py_BuildValue((char *)"");
5621 }
5622 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5623 PyObject *resultobj;
5624 wxString *arg1 = 0 ;
5625 wxBusyInfo *result;
5626 bool temp1 = False ;
5627 PyObject * obj0 = 0 ;
5628 char *kwnames[] = {
5629 (char *) "message", NULL
5630 };
5631
5632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5633 {
5634 arg1 = wxString_in_helper(obj0);
5635 if (arg1 == NULL) SWIG_fail;
5636 temp1 = True;
5637 }
5638 {
5639 if (!wxPyCheckForApp()) SWIG_fail;
5640 PyThreadState* __tstate = wxPyBeginAllowThreads();
5641 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5642
5643 wxPyEndAllowThreads(__tstate);
5644 if (PyErr_Occurred()) SWIG_fail;
5645 }
5646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5647 {
5648 if (temp1)
5649 delete arg1;
5650 }
5651 return resultobj;
5652 fail:
5653 {
5654 if (temp1)
5655 delete arg1;
5656 }
5657 return NULL;
5658 }
5659
5660
5661 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5662 PyObject *resultobj;
5663 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5664 PyObject * obj0 = 0 ;
5665 char *kwnames[] = {
5666 (char *) "self", NULL
5667 };
5668
5669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 delete arg1;
5675
5676 wxPyEndAllowThreads(__tstate);
5677 if (PyErr_Occurred()) SWIG_fail;
5678 }
5679 Py_INCREF(Py_None); resultobj = Py_None;
5680 return resultobj;
5681 fail:
5682 return NULL;
5683 }
5684
5685
5686 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
5687 PyObject *obj;
5688 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5689 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5690 Py_INCREF(obj);
5691 return Py_BuildValue((char *)"");
5692 }
5693 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
5694 PyObject *resultobj;
5695 wxStopWatch *result;
5696 char *kwnames[] = {
5697 NULL
5698 };
5699
5700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5701 {
5702 PyThreadState* __tstate = wxPyBeginAllowThreads();
5703 result = (wxStopWatch *)new wxStopWatch();
5704
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5709 return resultobj;
5710 fail:
5711 return NULL;
5712 }
5713
5714
5715 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
5716 PyObject *resultobj;
5717 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5718 long arg2 = (long) 0 ;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5721 char *kwnames[] = {
5722 (char *) "self",(char *) "t0", NULL
5723 };
5724
5725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5728 if (obj1) {
5729 arg2 = (long)SWIG_As_long(obj1);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 {
5733 PyThreadState* __tstate = wxPyBeginAllowThreads();
5734 (arg1)->Start(arg2);
5735
5736 wxPyEndAllowThreads(__tstate);
5737 if (PyErr_Occurred()) SWIG_fail;
5738 }
5739 Py_INCREF(Py_None); resultobj = Py_None;
5740 return resultobj;
5741 fail:
5742 return NULL;
5743 }
5744
5745
5746 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
5747 PyObject *resultobj;
5748 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5749 PyObject * obj0 = 0 ;
5750 char *kwnames[] = {
5751 (char *) "self", NULL
5752 };
5753
5754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 (arg1)->Pause();
5760
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 Py_INCREF(Py_None); resultobj = Py_None;
5765 return resultobj;
5766 fail:
5767 return NULL;
5768 }
5769
5770
5771 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
5772 PyObject *resultobj;
5773 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5774 PyObject * obj0 = 0 ;
5775 char *kwnames[] = {
5776 (char *) "self", NULL
5777 };
5778
5779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 (arg1)->Resume();
5785
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 Py_INCREF(Py_None); resultobj = Py_None;
5790 return resultobj;
5791 fail:
5792 return NULL;
5793 }
5794
5795
5796 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
5797 PyObject *resultobj;
5798 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5799 long result;
5800 PyObject * obj0 = 0 ;
5801 char *kwnames[] = {
5802 (char *) "self", NULL
5803 };
5804
5805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5808 {
5809 PyThreadState* __tstate = wxPyBeginAllowThreads();
5810 result = (long)((wxStopWatch const *)arg1)->Time();
5811
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 resultobj = SWIG_From_long((long)result);
5816 return resultobj;
5817 fail:
5818 return NULL;
5819 }
5820
5821
5822 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
5823 PyObject *obj;
5824 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5825 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5826 Py_INCREF(obj);
5827 return Py_BuildValue((char *)"");
5828 }
5829 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5830 PyObject *resultobj;
5831 int arg1 = (int) 9 ;
5832 int arg2 = (int) wxID_FILE1 ;
5833 wxFileHistory *result;
5834 PyObject * obj0 = 0 ;
5835 PyObject * obj1 = 0 ;
5836 char *kwnames[] = {
5837 (char *) "maxFiles",(char *) "idBase", NULL
5838 };
5839
5840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5841 if (obj0) {
5842 arg1 = (int)SWIG_As_int(obj0);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 if (obj1) {
5846 arg2 = (int)SWIG_As_int(obj1);
5847 if (PyErr_Occurred()) SWIG_fail;
5848 }
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5852
5853 wxPyEndAllowThreads(__tstate);
5854 if (PyErr_Occurred()) SWIG_fail;
5855 }
5856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5857 return resultobj;
5858 fail:
5859 return NULL;
5860 }
5861
5862
5863 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5864 PyObject *resultobj;
5865 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5866 PyObject * obj0 = 0 ;
5867 char *kwnames[] = {
5868 (char *) "self", NULL
5869 };
5870
5871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 delete arg1;
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 Py_INCREF(Py_None); resultobj = Py_None;
5882 return resultobj;
5883 fail:
5884 return NULL;
5885 }
5886
5887
5888 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj;
5890 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5891 wxString *arg2 = 0 ;
5892 bool temp2 = False ;
5893 PyObject * obj0 = 0 ;
5894 PyObject * obj1 = 0 ;
5895 char *kwnames[] = {
5896 (char *) "self",(char *) "file", NULL
5897 };
5898
5899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5902 {
5903 arg2 = wxString_in_helper(obj1);
5904 if (arg2 == NULL) SWIG_fail;
5905 temp2 = True;
5906 }
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 (arg1)->AddFileToHistory((wxString const &)*arg2);
5910
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 Py_INCREF(Py_None); resultobj = Py_None;
5915 {
5916 if (temp2)
5917 delete arg2;
5918 }
5919 return resultobj;
5920 fail:
5921 {
5922 if (temp2)
5923 delete arg2;
5924 }
5925 return NULL;
5926 }
5927
5928
5929 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5930 PyObject *resultobj;
5931 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5932 int arg2 ;
5933 PyObject * obj0 = 0 ;
5934 PyObject * obj1 = 0 ;
5935 char *kwnames[] = {
5936 (char *) "self",(char *) "i", NULL
5937 };
5938
5939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5942 arg2 = (int)SWIG_As_int(obj1);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 (arg1)->RemoveFileFromHistory(arg2);
5947
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 Py_INCREF(Py_None); resultobj = Py_None;
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj;
5960 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5961 int result;
5962 PyObject * obj0 = 0 ;
5963 char *kwnames[] = {
5964 (char *) "self", NULL
5965 };
5966
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5973
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_From_int((int)result);
5978 return resultobj;
5979 fail:
5980 return NULL;
5981 }
5982
5983
5984 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj;
5986 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5987 wxMenu *arg2 = (wxMenu *) 0 ;
5988 PyObject * obj0 = 0 ;
5989 PyObject * obj1 = 0 ;
5990 char *kwnames[] = {
5991 (char *) "self",(char *) "menu", NULL
5992 };
5993
5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5999 {
6000 PyThreadState* __tstate = wxPyBeginAllowThreads();
6001 (arg1)->UseMenu(arg2);
6002
6003 wxPyEndAllowThreads(__tstate);
6004 if (PyErr_Occurred()) SWIG_fail;
6005 }
6006 Py_INCREF(Py_None); resultobj = Py_None;
6007 return resultobj;
6008 fail:
6009 return NULL;
6010 }
6011
6012
6013 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj;
6015 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6016 wxMenu *arg2 = (wxMenu *) 0 ;
6017 PyObject * obj0 = 0 ;
6018 PyObject * obj1 = 0 ;
6019 char *kwnames[] = {
6020 (char *) "self",(char *) "menu", NULL
6021 };
6022
6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
6024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6026 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6028 {
6029 PyThreadState* __tstate = wxPyBeginAllowThreads();
6030 (arg1)->RemoveMenu(arg2);
6031
6032 wxPyEndAllowThreads(__tstate);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 Py_INCREF(Py_None); resultobj = Py_None;
6036 return resultobj;
6037 fail:
6038 return NULL;
6039 }
6040
6041
6042 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
6043 PyObject *resultobj;
6044 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6045 wxConfigBase *arg2 = 0 ;
6046 PyObject * obj0 = 0 ;
6047 PyObject * obj1 = 0 ;
6048 char *kwnames[] = {
6049 (char *) "self",(char *) "config", NULL
6050 };
6051
6052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
6053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6056 SWIG_POINTER_EXCEPTION | 0)) == -1)
6057 SWIG_fail;
6058 if (arg2 == NULL) {
6059 PyErr_SetString(PyExc_TypeError,"null reference");
6060 SWIG_fail;
6061 }
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 (arg1)->Load(*arg2);
6065
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 Py_INCREF(Py_None); resultobj = Py_None;
6070 return resultobj;
6071 fail:
6072 return NULL;
6073 }
6074
6075
6076 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
6077 PyObject *resultobj;
6078 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6079 wxConfigBase *arg2 = 0 ;
6080 PyObject * obj0 = 0 ;
6081 PyObject * obj1 = 0 ;
6082 char *kwnames[] = {
6083 (char *) "self",(char *) "config", NULL
6084 };
6085
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
6087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6090 SWIG_POINTER_EXCEPTION | 0)) == -1)
6091 SWIG_fail;
6092 if (arg2 == NULL) {
6093 PyErr_SetString(PyExc_TypeError,"null reference");
6094 SWIG_fail;
6095 }
6096 {
6097 PyThreadState* __tstate = wxPyBeginAllowThreads();
6098 (arg1)->Save(*arg2);
6099
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 Py_INCREF(Py_None); resultobj = Py_None;
6104 return resultobj;
6105 fail:
6106 return NULL;
6107 }
6108
6109
6110 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6111 PyObject *resultobj;
6112 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6113 PyObject * obj0 = 0 ;
6114 char *kwnames[] = {
6115 (char *) "self", NULL
6116 };
6117
6118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
6119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6121 {
6122 PyThreadState* __tstate = wxPyBeginAllowThreads();
6123 (arg1)->AddFilesToMenu();
6124
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 Py_INCREF(Py_None); resultobj = Py_None;
6129 return resultobj;
6130 fail:
6131 return NULL;
6132 }
6133
6134
6135 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6136 PyObject *resultobj;
6137 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6138 wxMenu *arg2 = (wxMenu *) 0 ;
6139 PyObject * obj0 = 0 ;
6140 PyObject * obj1 = 0 ;
6141 char *kwnames[] = {
6142 (char *) "self",(char *) "menu", NULL
6143 };
6144
6145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6148 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6150 {
6151 PyThreadState* __tstate = wxPyBeginAllowThreads();
6152 (arg1)->AddFilesToMenu(arg2);
6153
6154 wxPyEndAllowThreads(__tstate);
6155 if (PyErr_Occurred()) SWIG_fail;
6156 }
6157 Py_INCREF(Py_None); resultobj = Py_None;
6158 return resultobj;
6159 fail:
6160 return NULL;
6161 }
6162
6163
6164 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
6165 PyObject *resultobj;
6166 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6167 int arg2 ;
6168 wxString result;
6169 PyObject * obj0 = 0 ;
6170 PyObject * obj1 = 0 ;
6171 char *kwnames[] = {
6172 (char *) "self",(char *) "i", NULL
6173 };
6174
6175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6178 arg2 = (int)SWIG_As_int(obj1);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6183
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 {
6188 #if wxUSE_UNICODE
6189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6190 #else
6191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6192 #endif
6193 }
6194 return resultobj;
6195 fail:
6196 return NULL;
6197 }
6198
6199
6200 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
6201 PyObject *resultobj;
6202 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6203 int result;
6204 PyObject * obj0 = 0 ;
6205 char *kwnames[] = {
6206 (char *) "self", NULL
6207 };
6208
6209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 result = (int)((wxFileHistory const *)arg1)->GetCount();
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 resultobj = SWIG_From_int((int)result);
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
6227 PyObject *obj;
6228 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6229 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6230 Py_INCREF(obj);
6231 return Py_BuildValue((char *)"");
6232 }
6233 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6234 PyObject *resultobj;
6235 wxString *arg1 = 0 ;
6236 wxString const &arg2_defvalue = wxPyEmptyString ;
6237 wxString *arg2 = (wxString *) &arg2_defvalue ;
6238 wxSingleInstanceChecker *result;
6239 bool temp1 = False ;
6240 bool temp2 = False ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6243 char *kwnames[] = {
6244 (char *) "name",(char *) "path", NULL
6245 };
6246
6247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6248 {
6249 arg1 = wxString_in_helper(obj0);
6250 if (arg1 == NULL) SWIG_fail;
6251 temp1 = True;
6252 }
6253 if (obj1) {
6254 {
6255 arg2 = wxString_in_helper(obj1);
6256 if (arg2 == NULL) SWIG_fail;
6257 temp2 = True;
6258 }
6259 }
6260 {
6261 PyThreadState* __tstate = wxPyBeginAllowThreads();
6262 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6263
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6268 {
6269 if (temp1)
6270 delete arg1;
6271 }
6272 {
6273 if (temp2)
6274 delete arg2;
6275 }
6276 return resultobj;
6277 fail:
6278 {
6279 if (temp1)
6280 delete arg1;
6281 }
6282 {
6283 if (temp2)
6284 delete arg2;
6285 }
6286 return NULL;
6287 }
6288
6289
6290 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6291 PyObject *resultobj;
6292 wxSingleInstanceChecker *result;
6293 char *kwnames[] = {
6294 NULL
6295 };
6296
6297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6301
6302 wxPyEndAllowThreads(__tstate);
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
6305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6306 return resultobj;
6307 fail:
6308 return NULL;
6309 }
6310
6311
6312 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj;
6314 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6315 PyObject * obj0 = 0 ;
6316 char *kwnames[] = {
6317 (char *) "self", NULL
6318 };
6319
6320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 delete arg1;
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 Py_INCREF(Py_None); resultobj = Py_None;
6331 return resultobj;
6332 fail:
6333 return NULL;
6334 }
6335
6336
6337 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj;
6339 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6340 wxString *arg2 = 0 ;
6341 wxString const &arg3_defvalue = wxPyEmptyString ;
6342 wxString *arg3 = (wxString *) &arg3_defvalue ;
6343 bool result;
6344 bool temp2 = False ;
6345 bool temp3 = False ;
6346 PyObject * obj0 = 0 ;
6347 PyObject * obj1 = 0 ;
6348 PyObject * obj2 = 0 ;
6349 char *kwnames[] = {
6350 (char *) "self",(char *) "name",(char *) "path", NULL
6351 };
6352
6353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6356 {
6357 arg2 = wxString_in_helper(obj1);
6358 if (arg2 == NULL) SWIG_fail;
6359 temp2 = True;
6360 }
6361 if (obj2) {
6362 {
6363 arg3 = wxString_in_helper(obj2);
6364 if (arg3 == NULL) SWIG_fail;
6365 temp3 = True;
6366 }
6367 }
6368 {
6369 PyThreadState* __tstate = wxPyBeginAllowThreads();
6370 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6371
6372 wxPyEndAllowThreads(__tstate);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 {
6376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6377 }
6378 {
6379 if (temp2)
6380 delete arg2;
6381 }
6382 {
6383 if (temp3)
6384 delete arg3;
6385 }
6386 return resultobj;
6387 fail:
6388 {
6389 if (temp2)
6390 delete arg2;
6391 }
6392 {
6393 if (temp3)
6394 delete arg3;
6395 }
6396 return NULL;
6397 }
6398
6399
6400 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj;
6402 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6403 bool result;
6404 PyObject * obj0 = 0 ;
6405 char *kwnames[] = {
6406 (char *) "self", NULL
6407 };
6408
6409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6412 {
6413 PyThreadState* __tstate = wxPyBeginAllowThreads();
6414 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6415
6416 wxPyEndAllowThreads(__tstate);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 {
6420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6421 }
6422 return resultobj;
6423 fail:
6424 return NULL;
6425 }
6426
6427
6428 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
6429 PyObject *obj;
6430 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6431 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6432 Py_INCREF(obj);
6433 return Py_BuildValue((char *)"");
6434 }
6435 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
6436 PyObject *resultobj;
6437 wxWindow *arg1 = (wxWindow *) 0 ;
6438 wxDC *arg2 = 0 ;
6439 int arg3 ;
6440 PyObject * obj0 = 0 ;
6441 PyObject * obj1 = 0 ;
6442 PyObject * obj2 = 0 ;
6443 char *kwnames[] = {
6444 (char *) "window",(char *) "dc",(char *) "method", NULL
6445 };
6446
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6451 SWIG_POINTER_EXCEPTION | 0)) == -1)
6452 SWIG_fail;
6453 if (arg2 == NULL) {
6454 PyErr_SetString(PyExc_TypeError,"null reference");
6455 SWIG_fail;
6456 }
6457 arg3 = (int)SWIG_As_int(obj2);
6458 if (PyErr_Occurred()) SWIG_fail;
6459 {
6460 PyThreadState* __tstate = wxPyBeginAllowThreads();
6461 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6462
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 Py_INCREF(Py_None); resultobj = Py_None;
6467 return resultobj;
6468 fail:
6469 return NULL;
6470 }
6471
6472
6473 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6474 PyObject *resultobj;
6475 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6476 PyObject * obj0 = 0 ;
6477 char *kwnames[] = {
6478 (char *) "self", NULL
6479 };
6480
6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6484 {
6485 PyThreadState* __tstate = wxPyBeginAllowThreads();
6486 delete arg1;
6487
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 Py_INCREF(Py_None); resultobj = Py_None;
6492 return resultobj;
6493 fail:
6494 return NULL;
6495 }
6496
6497
6498 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj;
6500 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6501 wxString result;
6502 PyObject * obj0 = 0 ;
6503 char *kwnames[] = {
6504 (char *) "self", NULL
6505 };
6506
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6510 {
6511 PyThreadState* __tstate = wxPyBeginAllowThreads();
6512 result = (arg1)->GetTip();
6513
6514 wxPyEndAllowThreads(__tstate);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 {
6518 #if wxUSE_UNICODE
6519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6520 #else
6521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6522 #endif
6523 }
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
6531 PyObject *resultobj;
6532 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6533 size_t result;
6534 PyObject * obj0 = 0 ;
6535 char *kwnames[] = {
6536 (char *) "self", NULL
6537 };
6538
6539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6542 {
6543 PyThreadState* __tstate = wxPyBeginAllowThreads();
6544 result = (size_t)(arg1)->GetCurrentTip();
6545
6546 wxPyEndAllowThreads(__tstate);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
6550 return resultobj;
6551 fail:
6552 return NULL;
6553 }
6554
6555
6556 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
6557 PyObject *resultobj;
6558 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6559 wxString *arg2 = 0 ;
6560 wxString result;
6561 bool temp2 = False ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564 char *kwnames[] = {
6565 (char *) "self",(char *) "tip", NULL
6566 };
6567
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6571 {
6572 arg2 = wxString_in_helper(obj1);
6573 if (arg2 == NULL) SWIG_fail;
6574 temp2 = True;
6575 }
6576 {
6577 PyThreadState* __tstate = wxPyBeginAllowThreads();
6578 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6579
6580 wxPyEndAllowThreads(__tstate);
6581 if (PyErr_Occurred()) SWIG_fail;
6582 }
6583 {
6584 #if wxUSE_UNICODE
6585 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6586 #else
6587 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6588 #endif
6589 }
6590 {
6591 if (temp2)
6592 delete arg2;
6593 }
6594 return resultobj;
6595 fail:
6596 {
6597 if (temp2)
6598 delete arg2;
6599 }
6600 return NULL;
6601 }
6602
6603
6604 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
6605 PyObject *obj;
6606 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6607 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6608 Py_INCREF(obj);
6609 return Py_BuildValue((char *)"");
6610 }
6611 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj;
6613 size_t arg1 ;
6614 wxPyTipProvider *result;
6615 PyObject * obj0 = 0 ;
6616 char *kwnames[] = {
6617 (char *) "currentTip", NULL
6618 };
6619
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6621 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6631 return resultobj;
6632 fail:
6633 return NULL;
6634 }
6635
6636
6637 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj;
6639 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6640 PyObject *arg2 = (PyObject *) 0 ;
6641 PyObject *arg3 = (PyObject *) 0 ;
6642 PyObject * obj0 = 0 ;
6643 PyObject * obj1 = 0 ;
6644 PyObject * obj2 = 0 ;
6645 char *kwnames[] = {
6646 (char *) "self",(char *) "self",(char *) "_class", NULL
6647 };
6648
6649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6652 arg2 = obj1;
6653 arg3 = obj2;
6654 {
6655 PyThreadState* __tstate = wxPyBeginAllowThreads();
6656 (arg1)->_setCallbackInfo(arg2,arg3);
6657
6658 wxPyEndAllowThreads(__tstate);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 Py_INCREF(Py_None); resultobj = Py_None;
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
6669 PyObject *obj;
6670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6671 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6672 Py_INCREF(obj);
6673 return Py_BuildValue((char *)"");
6674 }
6675 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj;
6677 wxWindow *arg1 = (wxWindow *) 0 ;
6678 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6679 bool arg3 = (bool) True ;
6680 bool result;
6681 PyObject * obj0 = 0 ;
6682 PyObject * obj1 = 0 ;
6683 PyObject * obj2 = 0 ;
6684 char *kwnames[] = {
6685 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6686 };
6687
6688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6693 if (obj2) {
6694 arg3 = (bool)SWIG_As_bool(obj2);
6695 if (PyErr_Occurred()) SWIG_fail;
6696 }
6697 {
6698 if (!wxPyCheckForApp()) SWIG_fail;
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 result = (bool)wxShowTip(arg1,arg2,arg3);
6701
6702 wxPyEndAllowThreads(__tstate);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 {
6706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6707 }
6708 return resultobj;
6709 fail:
6710 return NULL;
6711 }
6712
6713
6714 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj;
6716 wxString *arg1 = 0 ;
6717 size_t arg2 ;
6718 wxTipProvider *result;
6719 bool temp1 = False ;
6720 PyObject * obj0 = 0 ;
6721 PyObject * obj1 = 0 ;
6722 char *kwnames[] = {
6723 (char *) "filename",(char *) "currentTip", NULL
6724 };
6725
6726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6727 {
6728 arg1 = wxString_in_helper(obj0);
6729 if (arg1 == NULL) SWIG_fail;
6730 temp1 = True;
6731 }
6732 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
6733 if (PyErr_Occurred()) SWIG_fail;
6734 {
6735 if (!wxPyCheckForApp()) SWIG_fail;
6736 PyThreadState* __tstate = wxPyBeginAllowThreads();
6737 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6738
6739 wxPyEndAllowThreads(__tstate);
6740 if (PyErr_Occurred()) SWIG_fail;
6741 }
6742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6743 {
6744 if (temp1)
6745 delete arg1;
6746 }
6747 return resultobj;
6748 fail:
6749 {
6750 if (temp1)
6751 delete arg1;
6752 }
6753 return NULL;
6754 }
6755
6756
6757 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6758 PyObject *resultobj;
6759 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6760 int arg2 = (int) -1 ;
6761 wxPyTimer *result;
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 char *kwnames[] = {
6765 (char *) "owner",(char *) "id", NULL
6766 };
6767
6768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6769 if (obj0) {
6770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6772 }
6773 if (obj1) {
6774 arg2 = (int)SWIG_As_int(obj1);
6775 if (PyErr_Occurred()) SWIG_fail;
6776 }
6777 {
6778 if (!wxPyCheckForApp()) SWIG_fail;
6779 PyThreadState* __tstate = wxPyBeginAllowThreads();
6780 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6781
6782 wxPyEndAllowThreads(__tstate);
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6786 return resultobj;
6787 fail:
6788 return NULL;
6789 }
6790
6791
6792 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj;
6794 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6795 PyObject * obj0 = 0 ;
6796 char *kwnames[] = {
6797 (char *) "self", NULL
6798 };
6799
6800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6803 {
6804 PyThreadState* __tstate = wxPyBeginAllowThreads();
6805 delete arg1;
6806
6807 wxPyEndAllowThreads(__tstate);
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 Py_INCREF(Py_None); resultobj = Py_None;
6811 return resultobj;
6812 fail:
6813 return NULL;
6814 }
6815
6816
6817 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6818 PyObject *resultobj;
6819 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6820 PyObject *arg2 = (PyObject *) 0 ;
6821 PyObject *arg3 = (PyObject *) 0 ;
6822 int arg4 = (int) 1 ;
6823 PyObject * obj0 = 0 ;
6824 PyObject * obj1 = 0 ;
6825 PyObject * obj2 = 0 ;
6826 PyObject * obj3 = 0 ;
6827 char *kwnames[] = {
6828 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6829 };
6830
6831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6834 arg2 = obj1;
6835 arg3 = obj2;
6836 if (obj3) {
6837 arg4 = (int)SWIG_As_int(obj3);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 {
6841 PyThreadState* __tstate = wxPyBeginAllowThreads();
6842 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6843
6844 wxPyEndAllowThreads(__tstate);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 Py_INCREF(Py_None); resultobj = Py_None;
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj;
6856 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6857 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6858 int arg3 = (int) -1 ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 PyObject * obj2 = 0 ;
6862 char *kwnames[] = {
6863 (char *) "self",(char *) "owner",(char *) "id", NULL
6864 };
6865
6866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6871 if (obj2) {
6872 arg3 = (int)SWIG_As_int(obj2);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 {
6876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6877 (arg1)->SetOwner(arg2,arg3);
6878
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 Py_INCREF(Py_None); resultobj = Py_None;
6883 return resultobj;
6884 fail:
6885 return NULL;
6886 }
6887
6888
6889 static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj;
6891 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6892 wxEvtHandler *result;
6893 PyObject * obj0 = 0 ;
6894 char *kwnames[] = {
6895 (char *) "self", NULL
6896 };
6897
6898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6901 {
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 result = (wxEvtHandler *)(arg1)->GetOwner();
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 {
6909 resultobj = wxPyMake_wxObject(result, 0);
6910 }
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
6918 PyObject *resultobj;
6919 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6920 int arg2 = (int) -1 ;
6921 bool arg3 = (bool) False ;
6922 bool result;
6923 PyObject * obj0 = 0 ;
6924 PyObject * obj1 = 0 ;
6925 PyObject * obj2 = 0 ;
6926 char *kwnames[] = {
6927 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6928 };
6929
6930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6933 if (obj1) {
6934 arg2 = (int)SWIG_As_int(obj1);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 if (obj2) {
6938 arg3 = (bool)SWIG_As_bool(obj2);
6939 if (PyErr_Occurred()) SWIG_fail;
6940 }
6941 {
6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
6943 result = (bool)(arg1)->Start(arg2,arg3);
6944
6945 wxPyEndAllowThreads(__tstate);
6946 if (PyErr_Occurred()) SWIG_fail;
6947 }
6948 {
6949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6950 }
6951 return resultobj;
6952 fail:
6953 return NULL;
6954 }
6955
6956
6957 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
6958 PyObject *resultobj;
6959 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6960 PyObject * obj0 = 0 ;
6961 char *kwnames[] = {
6962 (char *) "self", NULL
6963 };
6964
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6968 {
6969 PyThreadState* __tstate = wxPyBeginAllowThreads();
6970 (arg1)->Stop();
6971
6972 wxPyEndAllowThreads(__tstate);
6973 if (PyErr_Occurred()) SWIG_fail;
6974 }
6975 Py_INCREF(Py_None); resultobj = Py_None;
6976 return resultobj;
6977 fail:
6978 return NULL;
6979 }
6980
6981
6982 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6983 PyObject *resultobj;
6984 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6985 bool result;
6986 PyObject * obj0 = 0 ;
6987 char *kwnames[] = {
6988 (char *) "self", NULL
6989 };
6990
6991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6997
6998 wxPyEndAllowThreads(__tstate);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 {
7002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7003 }
7004 return resultobj;
7005 fail:
7006 return NULL;
7007 }
7008
7009
7010 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7011 PyObject *resultobj;
7012 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7013 int result;
7014 PyObject * obj0 = 0 ;
7015 char *kwnames[] = {
7016 (char *) "self", NULL
7017 };
7018
7019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
7020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7022 {
7023 PyThreadState* __tstate = wxPyBeginAllowThreads();
7024 result = (int)((wxPyTimer const *)arg1)->GetInterval();
7025
7026 wxPyEndAllowThreads(__tstate);
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 resultobj = SWIG_From_int((int)result);
7030 return resultobj;
7031 fail:
7032 return NULL;
7033 }
7034
7035
7036 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
7037 PyObject *resultobj;
7038 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7039 bool result;
7040 PyObject * obj0 = 0 ;
7041 char *kwnames[] = {
7042 (char *) "self", NULL
7043 };
7044
7045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
7046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7048 {
7049 PyThreadState* __tstate = wxPyBeginAllowThreads();
7050 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
7051
7052 wxPyEndAllowThreads(__tstate);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 {
7056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7057 }
7058 return resultobj;
7059 fail:
7060 return NULL;
7061 }
7062
7063
7064 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj;
7066 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7067 int result;
7068 PyObject * obj0 = 0 ;
7069 char *kwnames[] = {
7070 (char *) "self", NULL
7071 };
7072
7073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
7074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7076 {
7077 PyThreadState* __tstate = wxPyBeginAllowThreads();
7078 result = (int)((wxPyTimer const *)arg1)->GetId();
7079
7080 wxPyEndAllowThreads(__tstate);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 }
7083 resultobj = SWIG_From_int((int)result);
7084 return resultobj;
7085 fail:
7086 return NULL;
7087 }
7088
7089
7090 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
7091 PyObject *obj;
7092 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7093 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
7094 Py_INCREF(obj);
7095 return Py_BuildValue((char *)"");
7096 }
7097 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
7098 PyObject *resultobj;
7099 int arg1 = (int) 0 ;
7100 int arg2 = (int) 0 ;
7101 wxTimerEvent *result;
7102 PyObject * obj0 = 0 ;
7103 PyObject * obj1 = 0 ;
7104 char *kwnames[] = {
7105 (char *) "timerid",(char *) "interval", NULL
7106 };
7107
7108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
7109 if (obj0) {
7110 arg1 = (int)SWIG_As_int(obj0);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 if (obj1) {
7114 arg2 = (int)SWIG_As_int(obj1);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 {
7118 PyThreadState* __tstate = wxPyBeginAllowThreads();
7119 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
7120
7121 wxPyEndAllowThreads(__tstate);
7122 if (PyErr_Occurred()) SWIG_fail;
7123 }
7124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
7125 return resultobj;
7126 fail:
7127 return NULL;
7128 }
7129
7130
7131 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7132 PyObject *resultobj;
7133 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
7134 int result;
7135 PyObject * obj0 = 0 ;
7136 char *kwnames[] = {
7137 (char *) "self", NULL
7138 };
7139
7140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7143 {
7144 PyThreadState* __tstate = wxPyBeginAllowThreads();
7145 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7146
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = SWIG_From_int((int)result);
7151 return resultobj;
7152 fail:
7153 return NULL;
7154 }
7155
7156
7157 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
7158 PyObject *obj;
7159 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7160 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7161 Py_INCREF(obj);
7162 return Py_BuildValue((char *)"");
7163 }
7164 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
7165 PyObject *resultobj;
7166 wxTimer *arg1 = 0 ;
7167 wxTimerRunner *result;
7168 PyObject * obj0 = 0 ;
7169
7170 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7172 SWIG_POINTER_EXCEPTION | 0)) == -1)
7173 SWIG_fail;
7174 if (arg1 == NULL) {
7175 PyErr_SetString(PyExc_TypeError,"null reference");
7176 SWIG_fail;
7177 }
7178 {
7179 if (!wxPyCheckForApp()) SWIG_fail;
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7182
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7187 return resultobj;
7188 fail:
7189 return NULL;
7190 }
7191
7192
7193 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
7194 PyObject *resultobj;
7195 wxTimer *arg1 = 0 ;
7196 int arg2 ;
7197 bool arg3 = (bool) False ;
7198 wxTimerRunner *result;
7199 PyObject * obj0 = 0 ;
7200 PyObject * obj1 = 0 ;
7201 PyObject * obj2 = 0 ;
7202
7203 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7205 SWIG_POINTER_EXCEPTION | 0)) == -1)
7206 SWIG_fail;
7207 if (arg1 == NULL) {
7208 PyErr_SetString(PyExc_TypeError,"null reference");
7209 SWIG_fail;
7210 }
7211 arg2 = (int)SWIG_As_int(obj1);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 if (obj2) {
7214 arg3 = (bool)SWIG_As_bool(obj2);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 {
7218 if (!wxPyCheckForApp()) SWIG_fail;
7219 PyThreadState* __tstate = wxPyBeginAllowThreads();
7220 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7221
7222 wxPyEndAllowThreads(__tstate);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7233 int argc;
7234 PyObject *argv[4];
7235 int ii;
7236
7237 argc = PyObject_Length(args);
7238 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7239 argv[ii] = PyTuple_GetItem(args,ii);
7240 }
7241 if (argc == 1) {
7242 int _v;
7243 {
7244 void *ptr;
7245 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7246 _v = 0;
7247 PyErr_Clear();
7248 } else {
7249 _v = 1;
7250 }
7251 }
7252 if (_v) {
7253 return _wrap_new_TimerRunner__SWIG_0(self,args);
7254 }
7255 }
7256 if ((argc >= 2) && (argc <= 3)) {
7257 int _v;
7258 {
7259 void *ptr;
7260 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7261 _v = 0;
7262 PyErr_Clear();
7263 } else {
7264 _v = 1;
7265 }
7266 }
7267 if (_v) {
7268 _v = SWIG_Check_int(argv[1]);
7269 if (_v) {
7270 if (argc <= 2) {
7271 return _wrap_new_TimerRunner__SWIG_1(self,args);
7272 }
7273 _v = SWIG_Check_bool(argv[2]);
7274 if (_v) {
7275 return _wrap_new_TimerRunner__SWIG_1(self,args);
7276 }
7277 }
7278 }
7279 }
7280
7281 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7289 PyObject * obj0 = 0 ;
7290 char *kwnames[] = {
7291 (char *) "self", NULL
7292 };
7293
7294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 delete arg1;
7300
7301 wxPyEndAllowThreads(__tstate);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 Py_INCREF(Py_None); resultobj = Py_None;
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7312 PyObject *resultobj;
7313 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7314 int arg2 ;
7315 bool arg3 = (bool) False ;
7316 PyObject * obj0 = 0 ;
7317 PyObject * obj1 = 0 ;
7318 PyObject * obj2 = 0 ;
7319 char *kwnames[] = {
7320 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7321 };
7322
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7326 arg2 = (int)SWIG_As_int(obj1);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 if (obj2) {
7329 arg3 = (bool)SWIG_As_bool(obj2);
7330 if (PyErr_Occurred()) SWIG_fail;
7331 }
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 (arg1)->Start(arg2,arg3);
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 Py_INCREF(Py_None); resultobj = Py_None;
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
7347 PyObject *obj;
7348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7349 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7350 Py_INCREF(obj);
7351 return Py_BuildValue((char *)"");
7352 }
7353 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
7354 PyObject *resultobj;
7355 wxLog *result;
7356 char *kwnames[] = {
7357 NULL
7358 };
7359
7360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 result = (wxLog *)new wxLog();
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7369 return resultobj;
7370 fail:
7371 return NULL;
7372 }
7373
7374
7375 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
7376 PyObject *resultobj;
7377 bool result;
7378 char *kwnames[] = {
7379 NULL
7380 };
7381
7382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7383 {
7384 PyThreadState* __tstate = wxPyBeginAllowThreads();
7385 result = (bool)wxLog::IsEnabled();
7386
7387 wxPyEndAllowThreads(__tstate);
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 {
7391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7392 }
7393 return resultobj;
7394 fail:
7395 return NULL;
7396 }
7397
7398
7399 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
7400 PyObject *resultobj;
7401 bool arg1 = (bool) True ;
7402 bool result;
7403 PyObject * obj0 = 0 ;
7404 char *kwnames[] = {
7405 (char *) "doIt", NULL
7406 };
7407
7408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7409 if (obj0) {
7410 arg1 = (bool)SWIG_As_bool(obj0);
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
7415 result = (bool)wxLog::EnableLogging(arg1);
7416
7417 wxPyEndAllowThreads(__tstate);
7418 if (PyErr_Occurred()) SWIG_fail;
7419 }
7420 {
7421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7422 }
7423 return resultobj;
7424 fail:
7425 return NULL;
7426 }
7427
7428
7429 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
7430 PyObject *resultobj;
7431 wxLogLevel arg1 ;
7432 wxChar *arg2 = (wxChar *) 0 ;
7433 time_t arg3 ;
7434 PyObject * obj0 = 0 ;
7435 PyObject * obj1 = 0 ;
7436 PyObject * obj2 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "level",(char *) "szString",(char *) "t", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7442 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7443 if (PyErr_Occurred()) SWIG_fail;
7444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7446 arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 {
7449 PyThreadState* __tstate = wxPyBeginAllowThreads();
7450 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7451
7452 wxPyEndAllowThreads(__tstate);
7453 if (PyErr_Occurred()) SWIG_fail;
7454 }
7455 Py_INCREF(Py_None); resultobj = Py_None;
7456 return resultobj;
7457 fail:
7458 return NULL;
7459 }
7460
7461
7462 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
7463 PyObject *resultobj;
7464 wxLog *arg1 = (wxLog *) 0 ;
7465 PyObject * obj0 = 0 ;
7466 char *kwnames[] = {
7467 (char *) "self", NULL
7468 };
7469
7470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 (arg1)->Flush();
7476
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 Py_INCREF(Py_None); resultobj = Py_None;
7481 return resultobj;
7482 fail:
7483 return NULL;
7484 }
7485
7486
7487 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj;
7489 char *kwnames[] = {
7490 NULL
7491 };
7492
7493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7494 {
7495 PyThreadState* __tstate = wxPyBeginAllowThreads();
7496 wxLog::FlushActive();
7497
7498 wxPyEndAllowThreads(__tstate);
7499 if (PyErr_Occurred()) SWIG_fail;
7500 }
7501 Py_INCREF(Py_None); resultobj = Py_None;
7502 return resultobj;
7503 fail:
7504 return NULL;
7505 }
7506
7507
7508 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7509 PyObject *resultobj;
7510 wxLog *result;
7511 char *kwnames[] = {
7512 NULL
7513 };
7514
7515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7516 {
7517 PyThreadState* __tstate = wxPyBeginAllowThreads();
7518 result = (wxLog *)wxLog::GetActiveTarget();
7519
7520 wxPyEndAllowThreads(__tstate);
7521 if (PyErr_Occurred()) SWIG_fail;
7522 }
7523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7524 return resultobj;
7525 fail:
7526 return NULL;
7527 }
7528
7529
7530 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7531 PyObject *resultobj;
7532 wxLog *arg1 = (wxLog *) 0 ;
7533 wxLog *result;
7534 PyObject * obj0 = 0 ;
7535 char *kwnames[] = {
7536 (char *) "pLogger", NULL
7537 };
7538
7539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7542 {
7543 PyThreadState* __tstate = wxPyBeginAllowThreads();
7544 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7545
7546 wxPyEndAllowThreads(__tstate);
7547 if (PyErr_Occurred()) SWIG_fail;
7548 }
7549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7550 return resultobj;
7551 fail:
7552 return NULL;
7553 }
7554
7555
7556 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
7557 PyObject *resultobj;
7558 char *kwnames[] = {
7559 NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 wxLog::Suspend();
7566
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 Py_INCREF(Py_None); resultobj = Py_None;
7571 return resultobj;
7572 fail:
7573 return NULL;
7574 }
7575
7576
7577 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj;
7579 char *kwnames[] = {
7580 NULL
7581 };
7582
7583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7584 {
7585 PyThreadState* __tstate = wxPyBeginAllowThreads();
7586 wxLog::Resume();
7587
7588 wxPyEndAllowThreads(__tstate);
7589 if (PyErr_Occurred()) SWIG_fail;
7590 }
7591 Py_INCREF(Py_None); resultobj = Py_None;
7592 return resultobj;
7593 fail:
7594 return NULL;
7595 }
7596
7597
7598 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7599 PyObject *resultobj;
7600 bool arg1 = (bool) True ;
7601 PyObject * obj0 = 0 ;
7602 char *kwnames[] = {
7603 (char *) "bVerbose", NULL
7604 };
7605
7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7607 if (obj0) {
7608 arg1 = (bool)SWIG_As_bool(obj0);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 }
7611 {
7612 PyThreadState* __tstate = wxPyBeginAllowThreads();
7613 wxLog::SetVerbose(arg1);
7614
7615 wxPyEndAllowThreads(__tstate);
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 Py_INCREF(Py_None); resultobj = Py_None;
7619 return resultobj;
7620 fail:
7621 return NULL;
7622 }
7623
7624
7625 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7626 PyObject *resultobj;
7627 wxLogLevel arg1 ;
7628 PyObject * obj0 = 0 ;
7629 char *kwnames[] = {
7630 (char *) "logLevel", NULL
7631 };
7632
7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7634 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7635 if (PyErr_Occurred()) SWIG_fail;
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 wxLog::SetLogLevel(arg1);
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 Py_INCREF(Py_None); resultobj = Py_None;
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
7651 PyObject *resultobj;
7652 char *kwnames[] = {
7653 NULL
7654 };
7655
7656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7657 {
7658 PyThreadState* __tstate = wxPyBeginAllowThreads();
7659 wxLog::DontCreateOnDemand();
7660
7661 wxPyEndAllowThreads(__tstate);
7662 if (PyErr_Occurred()) SWIG_fail;
7663 }
7664 Py_INCREF(Py_None); resultobj = Py_None;
7665 return resultobj;
7666 fail:
7667 return NULL;
7668 }
7669
7670
7671 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7672 PyObject *resultobj;
7673 wxTraceMask arg1 ;
7674 PyObject * obj0 = 0 ;
7675 char *kwnames[] = {
7676 (char *) "ulMask", NULL
7677 };
7678
7679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7680 arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 {
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 wxLog::SetTraceMask(arg1);
7685
7686 wxPyEndAllowThreads(__tstate);
7687 if (PyErr_Occurred()) SWIG_fail;
7688 }
7689 Py_INCREF(Py_None); resultobj = Py_None;
7690 return resultobj;
7691 fail:
7692 return NULL;
7693 }
7694
7695
7696 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7697 PyObject *resultobj;
7698 wxString *arg1 = 0 ;
7699 bool temp1 = False ;
7700 PyObject * obj0 = 0 ;
7701 char *kwnames[] = {
7702 (char *) "str", NULL
7703 };
7704
7705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7706 {
7707 arg1 = wxString_in_helper(obj0);
7708 if (arg1 == NULL) SWIG_fail;
7709 temp1 = True;
7710 }
7711 {
7712 PyThreadState* __tstate = wxPyBeginAllowThreads();
7713 wxLog::AddTraceMask((wxString const &)*arg1);
7714
7715 wxPyEndAllowThreads(__tstate);
7716 if (PyErr_Occurred()) SWIG_fail;
7717 }
7718 Py_INCREF(Py_None); resultobj = Py_None;
7719 {
7720 if (temp1)
7721 delete arg1;
7722 }
7723 return resultobj;
7724 fail:
7725 {
7726 if (temp1)
7727 delete arg1;
7728 }
7729 return NULL;
7730 }
7731
7732
7733 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7734 PyObject *resultobj;
7735 wxString *arg1 = 0 ;
7736 bool temp1 = False ;
7737 PyObject * obj0 = 0 ;
7738 char *kwnames[] = {
7739 (char *) "str", NULL
7740 };
7741
7742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7743 {
7744 arg1 = wxString_in_helper(obj0);
7745 if (arg1 == NULL) SWIG_fail;
7746 temp1 = True;
7747 }
7748 {
7749 PyThreadState* __tstate = wxPyBeginAllowThreads();
7750 wxLog::RemoveTraceMask((wxString const &)*arg1);
7751
7752 wxPyEndAllowThreads(__tstate);
7753 if (PyErr_Occurred()) SWIG_fail;
7754 }
7755 Py_INCREF(Py_None); resultobj = Py_None;
7756 {
7757 if (temp1)
7758 delete arg1;
7759 }
7760 return resultobj;
7761 fail:
7762 {
7763 if (temp1)
7764 delete arg1;
7765 }
7766 return NULL;
7767 }
7768
7769
7770 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7771 PyObject *resultobj;
7772 char *kwnames[] = {
7773 NULL
7774 };
7775
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7777 {
7778 PyThreadState* __tstate = wxPyBeginAllowThreads();
7779 wxLog::ClearTraceMasks();
7780
7781 wxPyEndAllowThreads(__tstate);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 }
7784 Py_INCREF(Py_None); resultobj = Py_None;
7785 return resultobj;
7786 fail:
7787 return NULL;
7788 }
7789
7790
7791 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7792 PyObject *resultobj;
7793 wxArrayString *result;
7794 char *kwnames[] = {
7795 NULL
7796 };
7797
7798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7799 {
7800 PyThreadState* __tstate = wxPyBeginAllowThreads();
7801 {
7802 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7803 result = (wxArrayString *) &_result_ref;
7804 }
7805
7806 wxPyEndAllowThreads(__tstate);
7807 if (PyErr_Occurred()) SWIG_fail;
7808 }
7809 {
7810 resultobj = wxArrayString2PyList_helper(*result);
7811 }
7812 return resultobj;
7813 fail:
7814 return NULL;
7815 }
7816
7817
7818 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7819 PyObject *resultobj;
7820 wxChar *arg1 = (wxChar *) 0 ;
7821 PyObject * obj0 = 0 ;
7822 char *kwnames[] = {
7823 (char *) "ts", NULL
7824 };
7825
7826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7829 {
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 wxLog::SetTimestamp((wxChar const *)arg1);
7832
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 Py_INCREF(Py_None); resultobj = Py_None;
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj;
7845 bool result;
7846 char *kwnames[] = {
7847 NULL
7848 };
7849
7850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (bool)wxLog::GetVerbose();
7854
7855 wxPyEndAllowThreads(__tstate);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 {
7859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7860 }
7861 return resultobj;
7862 fail:
7863 return NULL;
7864 }
7865
7866
7867 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7868 PyObject *resultobj;
7869 wxTraceMask result;
7870 char *kwnames[] = {
7871 NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7875 {
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 result = (wxTraceMask)wxLog::GetTraceMask();
7878
7879 wxPyEndAllowThreads(__tstate);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7883 return resultobj;
7884 fail:
7885 return NULL;
7886 }
7887
7888
7889 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7890 PyObject *resultobj;
7891 wxChar *arg1 = (wxChar *) 0 ;
7892 bool result;
7893 PyObject * obj0 = 0 ;
7894 char *kwnames[] = {
7895 (char *) "mask", NULL
7896 };
7897
7898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7901 {
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7904
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 {
7909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7910 }
7911 return resultobj;
7912 fail:
7913 return NULL;
7914 }
7915
7916
7917 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj;
7919 wxLogLevel result;
7920 char *kwnames[] = {
7921 NULL
7922 };
7923
7924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7925 {
7926 PyThreadState* __tstate = wxPyBeginAllowThreads();
7927 result = (wxLogLevel)wxLog::GetLogLevel();
7928
7929 wxPyEndAllowThreads(__tstate);
7930 if (PyErr_Occurred()) SWIG_fail;
7931 }
7932 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7933 return resultobj;
7934 fail:
7935 return NULL;
7936 }
7937
7938
7939 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7940 PyObject *resultobj;
7941 wxChar *result;
7942 char *kwnames[] = {
7943 NULL
7944 };
7945
7946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 result = (wxChar *)wxLog::GetTimestamp();
7950
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7955 return resultobj;
7956 fail:
7957 return NULL;
7958 }
7959
7960
7961 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
7962 PyObject *resultobj;
7963 wxString result;
7964 char *kwnames[] = {
7965 NULL
7966 };
7967
7968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = Log_TimeStamp();
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 }
7976 {
7977 #if wxUSE_UNICODE
7978 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7979 #else
7980 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7981 #endif
7982 }
7983 return resultobj;
7984 fail:
7985 return NULL;
7986 }
7987
7988
7989 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
7990 PyObject *resultobj;
7991 wxLog *arg1 = (wxLog *) 0 ;
7992 PyObject * obj0 = 0 ;
7993 char *kwnames[] = {
7994 (char *) "self", NULL
7995 };
7996
7997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8000 {
8001 PyThreadState* __tstate = wxPyBeginAllowThreads();
8002 wxLog_Destroy(arg1);
8003
8004 wxPyEndAllowThreads(__tstate);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 Py_INCREF(Py_None); resultobj = Py_None;
8008 return resultobj;
8009 fail:
8010 return NULL;
8011 }
8012
8013
8014 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
8015 PyObject *obj;
8016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8017 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
8018 Py_INCREF(obj);
8019 return Py_BuildValue((char *)"");
8020 }
8021 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
8022 PyObject *resultobj;
8023 wxLogStderr *result;
8024 char *kwnames[] = {
8025 NULL
8026 };
8027
8028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
8029 {
8030 PyThreadState* __tstate = wxPyBeginAllowThreads();
8031 result = (wxLogStderr *)new wxLogStderr();
8032
8033 wxPyEndAllowThreads(__tstate);
8034 if (PyErr_Occurred()) SWIG_fail;
8035 }
8036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
8037 return resultobj;
8038 fail:
8039 return NULL;
8040 }
8041
8042
8043 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
8044 PyObject *obj;
8045 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8046 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
8047 Py_INCREF(obj);
8048 return Py_BuildValue((char *)"");
8049 }
8050 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8051 PyObject *resultobj;
8052 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8053 wxLogTextCtrl *result;
8054 PyObject * obj0 = 0 ;
8055 char *kwnames[] = {
8056 (char *) "pTextCtrl", NULL
8057 };
8058
8059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
8060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8062 {
8063 PyThreadState* __tstate = wxPyBeginAllowThreads();
8064 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
8065
8066 wxPyEndAllowThreads(__tstate);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 }
8069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
8070 return resultobj;
8071 fail:
8072 return NULL;
8073 }
8074
8075
8076 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
8077 PyObject *obj;
8078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8079 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
8080 Py_INCREF(obj);
8081 return Py_BuildValue((char *)"");
8082 }
8083 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxLogGui *result;
8086 char *kwnames[] = {
8087 NULL
8088 };
8089
8090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
8091 {
8092 PyThreadState* __tstate = wxPyBeginAllowThreads();
8093 result = (wxLogGui *)new wxLogGui();
8094
8095 wxPyEndAllowThreads(__tstate);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
8099 return resultobj;
8100 fail:
8101 return NULL;
8102 }
8103
8104
8105 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
8106 PyObject *obj;
8107 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8108 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
8109 Py_INCREF(obj);
8110 return Py_BuildValue((char *)"");
8111 }
8112 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
8113 PyObject *resultobj;
8114 wxFrame *arg1 = (wxFrame *) 0 ;
8115 wxString *arg2 = 0 ;
8116 bool arg3 = (bool) True ;
8117 bool arg4 = (bool) True ;
8118 wxLogWindow *result;
8119 bool temp2 = False ;
8120 PyObject * obj0 = 0 ;
8121 PyObject * obj1 = 0 ;
8122 PyObject * obj2 = 0 ;
8123 PyObject * obj3 = 0 ;
8124 char *kwnames[] = {
8125 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
8126 };
8127
8128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8131 {
8132 arg2 = wxString_in_helper(obj1);
8133 if (arg2 == NULL) SWIG_fail;
8134 temp2 = True;
8135 }
8136 if (obj2) {
8137 arg3 = (bool)SWIG_As_bool(obj2);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 if (obj3) {
8141 arg4 = (bool)SWIG_As_bool(obj3);
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8152 {
8153 if (temp2)
8154 delete arg2;
8155 }
8156 return resultobj;
8157 fail:
8158 {
8159 if (temp2)
8160 delete arg2;
8161 }
8162 return NULL;
8163 }
8164
8165
8166 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
8167 PyObject *resultobj;
8168 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8169 bool arg2 = (bool) True ;
8170 PyObject * obj0 = 0 ;
8171 PyObject * obj1 = 0 ;
8172 char *kwnames[] = {
8173 (char *) "self",(char *) "bShow", NULL
8174 };
8175
8176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8179 if (obj1) {
8180 arg2 = (bool)SWIG_As_bool(obj1);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 {
8184 PyThreadState* __tstate = wxPyBeginAllowThreads();
8185 (arg1)->Show(arg2);
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 Py_INCREF(Py_None); resultobj = Py_None;
8191 return resultobj;
8192 fail:
8193 return NULL;
8194 }
8195
8196
8197 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8198 PyObject *resultobj;
8199 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8200 wxFrame *result;
8201 PyObject * obj0 = 0 ;
8202 char *kwnames[] = {
8203 (char *) "self", NULL
8204 };
8205
8206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8209 {
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8212
8213 wxPyEndAllowThreads(__tstate);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 {
8217 resultobj = wxPyMake_wxObject(result, 0);
8218 }
8219 return resultobj;
8220 fail:
8221 return NULL;
8222 }
8223
8224
8225 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8226 PyObject *resultobj;
8227 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8228 wxLog *result;
8229 PyObject * obj0 = 0 ;
8230 char *kwnames[] = {
8231 (char *) "self", NULL
8232 };
8233
8234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8237 {
8238 PyThreadState* __tstate = wxPyBeginAllowThreads();
8239 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8240
8241 wxPyEndAllowThreads(__tstate);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8245 return resultobj;
8246 fail:
8247 return NULL;
8248 }
8249
8250
8251 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8252 PyObject *resultobj;
8253 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8254 bool result;
8255 PyObject * obj0 = 0 ;
8256 char *kwnames[] = {
8257 (char *) "self", NULL
8258 };
8259
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8263 {
8264 PyThreadState* __tstate = wxPyBeginAllowThreads();
8265 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8266
8267 wxPyEndAllowThreads(__tstate);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 }
8270 {
8271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8272 }
8273 return resultobj;
8274 fail:
8275 return NULL;
8276 }
8277
8278
8279 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8280 PyObject *resultobj;
8281 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8282 bool arg2 ;
8283 PyObject * obj0 = 0 ;
8284 PyObject * obj1 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "self",(char *) "bDoPass", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8292 arg2 = (bool)SWIG_As_bool(obj1);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 (arg1)->PassMessages(arg2);
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 Py_INCREF(Py_None); resultobj = Py_None;
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
8309 PyObject *obj;
8310 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8311 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8312 Py_INCREF(obj);
8313 return Py_BuildValue((char *)"");
8314 }
8315 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj;
8317 wxLog *arg1 = (wxLog *) 0 ;
8318 wxLogChain *result;
8319 PyObject * obj0 = 0 ;
8320 char *kwnames[] = {
8321 (char *) "logger", NULL
8322 };
8323
8324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8327 {
8328 PyThreadState* __tstate = wxPyBeginAllowThreads();
8329 result = (wxLogChain *)new wxLogChain(arg1);
8330
8331 wxPyEndAllowThreads(__tstate);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8335 return resultobj;
8336 fail:
8337 return NULL;
8338 }
8339
8340
8341 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
8342 PyObject *resultobj;
8343 wxLogChain *arg1 = (wxLogChain *) 0 ;
8344 wxLog *arg2 = (wxLog *) 0 ;
8345 PyObject * obj0 = 0 ;
8346 PyObject * obj1 = 0 ;
8347 char *kwnames[] = {
8348 (char *) "self",(char *) "logger", NULL
8349 };
8350
8351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8354 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 (arg1)->SetLog(arg2);
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 Py_INCREF(Py_None); resultobj = Py_None;
8364 return resultobj;
8365 fail:
8366 return NULL;
8367 }
8368
8369
8370 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8371 PyObject *resultobj;
8372 wxLogChain *arg1 = (wxLogChain *) 0 ;
8373 bool arg2 ;
8374 PyObject * obj0 = 0 ;
8375 PyObject * obj1 = 0 ;
8376 char *kwnames[] = {
8377 (char *) "self",(char *) "bDoPass", NULL
8378 };
8379
8380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8383 arg2 = (bool)SWIG_As_bool(obj1);
8384 if (PyErr_Occurred()) SWIG_fail;
8385 {
8386 PyThreadState* __tstate = wxPyBeginAllowThreads();
8387 (arg1)->PassMessages(arg2);
8388
8389 wxPyEndAllowThreads(__tstate);
8390 if (PyErr_Occurred()) SWIG_fail;
8391 }
8392 Py_INCREF(Py_None); resultobj = Py_None;
8393 return resultobj;
8394 fail:
8395 return NULL;
8396 }
8397
8398
8399 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj;
8401 wxLogChain *arg1 = (wxLogChain *) 0 ;
8402 bool result;
8403 PyObject * obj0 = 0 ;
8404 char *kwnames[] = {
8405 (char *) "self", NULL
8406 };
8407
8408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8411 {
8412 PyThreadState* __tstate = wxPyBeginAllowThreads();
8413 result = (bool)(arg1)->IsPassingMessages();
8414
8415 wxPyEndAllowThreads(__tstate);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
8418 {
8419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8420 }
8421 return resultobj;
8422 fail:
8423 return NULL;
8424 }
8425
8426
8427 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8428 PyObject *resultobj;
8429 wxLogChain *arg1 = (wxLogChain *) 0 ;
8430 wxLog *result;
8431 PyObject * obj0 = 0 ;
8432 char *kwnames[] = {
8433 (char *) "self", NULL
8434 };
8435
8436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8439 {
8440 PyThreadState* __tstate = wxPyBeginAllowThreads();
8441 result = (wxLog *)(arg1)->GetOldLog();
8442
8443 wxPyEndAllowThreads(__tstate);
8444 if (PyErr_Occurred()) SWIG_fail;
8445 }
8446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8447 return resultobj;
8448 fail:
8449 return NULL;
8450 }
8451
8452
8453 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
8454 PyObject *obj;
8455 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8456 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8457 Py_INCREF(obj);
8458 return Py_BuildValue((char *)"");
8459 }
8460 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
8461 PyObject *resultobj;
8462 unsigned long result;
8463 char *kwnames[] = {
8464 NULL
8465 };
8466
8467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8468 {
8469 PyThreadState* __tstate = wxPyBeginAllowThreads();
8470 result = (unsigned long)wxSysErrorCode();
8471
8472 wxPyEndAllowThreads(__tstate);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8476 return resultobj;
8477 fail:
8478 return NULL;
8479 }
8480
8481
8482 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 unsigned long arg1 = (unsigned long) 0 ;
8485 wxString result;
8486 PyObject * obj0 = 0 ;
8487 char *kwnames[] = {
8488 (char *) "nErrCode", NULL
8489 };
8490
8491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8492 if (obj0) {
8493 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 }
8496 {
8497 PyThreadState* __tstate = wxPyBeginAllowThreads();
8498 result = wxSysErrorMsg(arg1);
8499
8500 wxPyEndAllowThreads(__tstate);
8501 if (PyErr_Occurred()) SWIG_fail;
8502 }
8503 {
8504 #if wxUSE_UNICODE
8505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8506 #else
8507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8508 #endif
8509 }
8510 return resultobj;
8511 fail:
8512 return NULL;
8513 }
8514
8515
8516 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
8517 PyObject *resultobj;
8518 wxString *arg1 = 0 ;
8519 bool temp1 = False ;
8520 PyObject * obj0 = 0 ;
8521 char *kwnames[] = {
8522 (char *) "msg", NULL
8523 };
8524
8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8526 {
8527 arg1 = wxString_in_helper(obj0);
8528 if (arg1 == NULL) SWIG_fail;
8529 temp1 = True;
8530 }
8531 {
8532 PyThreadState* __tstate = wxPyBeginAllowThreads();
8533 wxLogFatalError((wxString const &)*arg1);
8534
8535 wxPyEndAllowThreads(__tstate);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 Py_INCREF(Py_None); resultobj = Py_None;
8539 {
8540 if (temp1)
8541 delete arg1;
8542 }
8543 return resultobj;
8544 fail:
8545 {
8546 if (temp1)
8547 delete arg1;
8548 }
8549 return NULL;
8550 }
8551
8552
8553 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
8554 PyObject *resultobj;
8555 wxString *arg1 = 0 ;
8556 bool temp1 = False ;
8557 PyObject * obj0 = 0 ;
8558 char *kwnames[] = {
8559 (char *) "msg", NULL
8560 };
8561
8562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8563 {
8564 arg1 = wxString_in_helper(obj0);
8565 if (arg1 == NULL) SWIG_fail;
8566 temp1 = True;
8567 }
8568 {
8569 PyThreadState* __tstate = wxPyBeginAllowThreads();
8570 wxLogError((wxString const &)*arg1);
8571
8572 wxPyEndAllowThreads(__tstate);
8573 if (PyErr_Occurred()) SWIG_fail;
8574 }
8575 Py_INCREF(Py_None); resultobj = Py_None;
8576 {
8577 if (temp1)
8578 delete arg1;
8579 }
8580 return resultobj;
8581 fail:
8582 {
8583 if (temp1)
8584 delete arg1;
8585 }
8586 return NULL;
8587 }
8588
8589
8590 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
8591 PyObject *resultobj;
8592 wxString *arg1 = 0 ;
8593 bool temp1 = False ;
8594 PyObject * obj0 = 0 ;
8595 char *kwnames[] = {
8596 (char *) "msg", NULL
8597 };
8598
8599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8600 {
8601 arg1 = wxString_in_helper(obj0);
8602 if (arg1 == NULL) SWIG_fail;
8603 temp1 = True;
8604 }
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 wxLogWarning((wxString const &)*arg1);
8608
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 Py_INCREF(Py_None); resultobj = Py_None;
8613 {
8614 if (temp1)
8615 delete arg1;
8616 }
8617 return resultobj;
8618 fail:
8619 {
8620 if (temp1)
8621 delete arg1;
8622 }
8623 return NULL;
8624 }
8625
8626
8627 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8628 PyObject *resultobj;
8629 wxString *arg1 = 0 ;
8630 bool temp1 = False ;
8631 PyObject * obj0 = 0 ;
8632 char *kwnames[] = {
8633 (char *) "msg", NULL
8634 };
8635
8636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8637 {
8638 arg1 = wxString_in_helper(obj0);
8639 if (arg1 == NULL) SWIG_fail;
8640 temp1 = True;
8641 }
8642 {
8643 PyThreadState* __tstate = wxPyBeginAllowThreads();
8644 wxLogMessage((wxString const &)*arg1);
8645
8646 wxPyEndAllowThreads(__tstate);
8647 if (PyErr_Occurred()) SWIG_fail;
8648 }
8649 Py_INCREF(Py_None); resultobj = Py_None;
8650 {
8651 if (temp1)
8652 delete arg1;
8653 }
8654 return resultobj;
8655 fail:
8656 {
8657 if (temp1)
8658 delete arg1;
8659 }
8660 return NULL;
8661 }
8662
8663
8664 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8665 PyObject *resultobj;
8666 wxString *arg1 = 0 ;
8667 bool temp1 = False ;
8668 PyObject * obj0 = 0 ;
8669 char *kwnames[] = {
8670 (char *) "msg", NULL
8671 };
8672
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8674 {
8675 arg1 = wxString_in_helper(obj0);
8676 if (arg1 == NULL) SWIG_fail;
8677 temp1 = True;
8678 }
8679 {
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 wxLogInfo((wxString const &)*arg1);
8682
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 Py_INCREF(Py_None); resultobj = Py_None;
8687 {
8688 if (temp1)
8689 delete arg1;
8690 }
8691 return resultobj;
8692 fail:
8693 {
8694 if (temp1)
8695 delete arg1;
8696 }
8697 return NULL;
8698 }
8699
8700
8701 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
8702 PyObject *resultobj;
8703 wxString *arg1 = 0 ;
8704 bool temp1 = False ;
8705 PyObject * obj0 = 0 ;
8706 char *kwnames[] = {
8707 (char *) "msg", NULL
8708 };
8709
8710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8711 {
8712 arg1 = wxString_in_helper(obj0);
8713 if (arg1 == NULL) SWIG_fail;
8714 temp1 = True;
8715 }
8716 {
8717 PyThreadState* __tstate = wxPyBeginAllowThreads();
8718 wxLogDebug((wxString const &)*arg1);
8719
8720 wxPyEndAllowThreads(__tstate);
8721 if (PyErr_Occurred()) SWIG_fail;
8722 }
8723 Py_INCREF(Py_None); resultobj = Py_None;
8724 {
8725 if (temp1)
8726 delete arg1;
8727 }
8728 return resultobj;
8729 fail:
8730 {
8731 if (temp1)
8732 delete arg1;
8733 }
8734 return NULL;
8735 }
8736
8737
8738 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
8739 PyObject *resultobj;
8740 wxString *arg1 = 0 ;
8741 bool temp1 = False ;
8742 PyObject * obj0 = 0 ;
8743 char *kwnames[] = {
8744 (char *) "msg", NULL
8745 };
8746
8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8748 {
8749 arg1 = wxString_in_helper(obj0);
8750 if (arg1 == NULL) SWIG_fail;
8751 temp1 = True;
8752 }
8753 {
8754 PyThreadState* __tstate = wxPyBeginAllowThreads();
8755 wxLogVerbose((wxString const &)*arg1);
8756
8757 wxPyEndAllowThreads(__tstate);
8758 if (PyErr_Occurred()) SWIG_fail;
8759 }
8760 Py_INCREF(Py_None); resultobj = Py_None;
8761 {
8762 if (temp1)
8763 delete arg1;
8764 }
8765 return resultobj;
8766 fail:
8767 {
8768 if (temp1)
8769 delete arg1;
8770 }
8771 return NULL;
8772 }
8773
8774
8775 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
8776 PyObject *resultobj;
8777 wxString *arg1 = 0 ;
8778 bool temp1 = False ;
8779 PyObject * obj0 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "msg", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8785 {
8786 arg1 = wxString_in_helper(obj0);
8787 if (arg1 == NULL) SWIG_fail;
8788 temp1 = True;
8789 }
8790 {
8791 PyThreadState* __tstate = wxPyBeginAllowThreads();
8792 wxLogStatus((wxString const &)*arg1);
8793
8794 wxPyEndAllowThreads(__tstate);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 Py_INCREF(Py_None); resultobj = Py_None;
8798 {
8799 if (temp1)
8800 delete arg1;
8801 }
8802 return resultobj;
8803 fail:
8804 {
8805 if (temp1)
8806 delete arg1;
8807 }
8808 return NULL;
8809 }
8810
8811
8812 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj;
8814 wxFrame *arg1 = (wxFrame *) 0 ;
8815 wxString *arg2 = 0 ;
8816 bool temp2 = False ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 char *kwnames[] = {
8820 (char *) "pFrame",(char *) "msg", NULL
8821 };
8822
8823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8826 {
8827 arg2 = wxString_in_helper(obj1);
8828 if (arg2 == NULL) SWIG_fail;
8829 temp2 = True;
8830 }
8831 {
8832 PyThreadState* __tstate = wxPyBeginAllowThreads();
8833 wxLogStatus(arg1,(wxString const &)*arg2);
8834
8835 wxPyEndAllowThreads(__tstate);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 Py_INCREF(Py_None); resultobj = Py_None;
8839 {
8840 if (temp2)
8841 delete arg2;
8842 }
8843 return resultobj;
8844 fail:
8845 {
8846 if (temp2)
8847 delete arg2;
8848 }
8849 return NULL;
8850 }
8851
8852
8853 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
8854 PyObject *resultobj;
8855 wxString *arg1 = 0 ;
8856 bool temp1 = False ;
8857 PyObject * obj0 = 0 ;
8858 char *kwnames[] = {
8859 (char *) "msg", NULL
8860 };
8861
8862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8863 {
8864 arg1 = wxString_in_helper(obj0);
8865 if (arg1 == NULL) SWIG_fail;
8866 temp1 = True;
8867 }
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 wxLogSysError((wxString const &)*arg1);
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 Py_INCREF(Py_None); resultobj = Py_None;
8876 {
8877 if (temp1)
8878 delete arg1;
8879 }
8880 return resultobj;
8881 fail:
8882 {
8883 if (temp1)
8884 delete arg1;
8885 }
8886 return NULL;
8887 }
8888
8889
8890 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
8891 PyObject *resultobj;
8892 unsigned long arg1 ;
8893 wxString *arg2 = 0 ;
8894 bool temp2 = False ;
8895 PyObject * obj0 = 0 ;
8896 PyObject * obj1 = 0 ;
8897
8898 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8899 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 {
8902 arg2 = wxString_in_helper(obj1);
8903 if (arg2 == NULL) SWIG_fail;
8904 temp2 = True;
8905 }
8906 {
8907 PyThreadState* __tstate = wxPyBeginAllowThreads();
8908 wxLogTrace(arg1,(wxString const &)*arg2);
8909
8910 wxPyEndAllowThreads(__tstate);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 }
8913 Py_INCREF(Py_None); resultobj = Py_None;
8914 {
8915 if (temp2)
8916 delete arg2;
8917 }
8918 return resultobj;
8919 fail:
8920 {
8921 if (temp2)
8922 delete arg2;
8923 }
8924 return NULL;
8925 }
8926
8927
8928 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
8929 PyObject *resultobj;
8930 wxString *arg1 = 0 ;
8931 wxString *arg2 = 0 ;
8932 bool temp1 = False ;
8933 bool temp2 = False ;
8934 PyObject * obj0 = 0 ;
8935 PyObject * obj1 = 0 ;
8936
8937 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8938 {
8939 arg1 = wxString_in_helper(obj0);
8940 if (arg1 == NULL) SWIG_fail;
8941 temp1 = True;
8942 }
8943 {
8944 arg2 = wxString_in_helper(obj1);
8945 if (arg2 == NULL) SWIG_fail;
8946 temp2 = True;
8947 }
8948 {
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
8950 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8951
8952 wxPyEndAllowThreads(__tstate);
8953 if (PyErr_Occurred()) SWIG_fail;
8954 }
8955 Py_INCREF(Py_None); resultobj = Py_None;
8956 {
8957 if (temp1)
8958 delete arg1;
8959 }
8960 {
8961 if (temp2)
8962 delete arg2;
8963 }
8964 return resultobj;
8965 fail:
8966 {
8967 if (temp1)
8968 delete arg1;
8969 }
8970 {
8971 if (temp2)
8972 delete arg2;
8973 }
8974 return NULL;
8975 }
8976
8977
8978 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8979 int argc;
8980 PyObject *argv[3];
8981 int ii;
8982
8983 argc = PyObject_Length(args);
8984 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8985 argv[ii] = PyTuple_GetItem(args,ii);
8986 }
8987 if (argc == 2) {
8988 int _v;
8989 {
8990 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8991 }
8992 if (_v) {
8993 {
8994 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8995 }
8996 if (_v) {
8997 return _wrap_LogTrace__SWIG_1(self,args);
8998 }
8999 }
9000 }
9001 if (argc == 2) {
9002 int _v;
9003 _v = SWIG_Check_unsigned_SS_long(argv[0]);
9004 if (_v) {
9005 {
9006 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9007 }
9008 if (_v) {
9009 return _wrap_LogTrace__SWIG_0(self,args);
9010 }
9011 }
9012 }
9013
9014 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
9015 return NULL;
9016 }
9017
9018
9019 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
9020 PyObject *resultobj;
9021 unsigned long arg1 ;
9022 wxString *arg2 = 0 ;
9023 bool temp2 = False ;
9024 PyObject * obj0 = 0 ;
9025 PyObject * obj1 = 0 ;
9026 char *kwnames[] = {
9027 (char *) "level",(char *) "msg", NULL
9028 };
9029
9030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
9031 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
9032 if (PyErr_Occurred()) SWIG_fail;
9033 {
9034 arg2 = wxString_in_helper(obj1);
9035 if (arg2 == NULL) SWIG_fail;
9036 temp2 = True;
9037 }
9038 {
9039 PyThreadState* __tstate = wxPyBeginAllowThreads();
9040 wxLogGeneric(arg1,(wxString const &)*arg2);
9041
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 Py_INCREF(Py_None); resultobj = Py_None;
9046 {
9047 if (temp2)
9048 delete arg2;
9049 }
9050 return resultobj;
9051 fail:
9052 {
9053 if (temp2)
9054 delete arg2;
9055 }
9056 return NULL;
9057 }
9058
9059
9060 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
9061 PyObject *resultobj;
9062 wxString *arg1 = 0 ;
9063 wxString *arg2 = 0 ;
9064 bool temp1 = False ;
9065 bool temp2 = False ;
9066 PyObject * obj0 = 0 ;
9067 PyObject * obj1 = 0 ;
9068 char *kwnames[] = {
9069 (char *) "title",(char *) "text", NULL
9070 };
9071
9072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
9073 {
9074 arg1 = wxString_in_helper(obj0);
9075 if (arg1 == NULL) SWIG_fail;
9076 temp1 = True;
9077 }
9078 {
9079 arg2 = wxString_in_helper(obj1);
9080 if (arg2 == NULL) SWIG_fail;
9081 temp2 = True;
9082 }
9083 {
9084 PyThreadState* __tstate = wxPyBeginAllowThreads();
9085 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
9086
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 Py_INCREF(Py_None); resultobj = Py_None;
9091 {
9092 if (temp1)
9093 delete arg1;
9094 }
9095 {
9096 if (temp2)
9097 delete arg2;
9098 }
9099 return resultobj;
9100 fail:
9101 {
9102 if (temp1)
9103 delete arg1;
9104 }
9105 {
9106 if (temp2)
9107 delete arg2;
9108 }
9109 return NULL;
9110 }
9111
9112
9113 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9114 PyObject *resultobj;
9115 wxLogNull *result;
9116 char *kwnames[] = {
9117 NULL
9118 };
9119
9120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
9121 {
9122 PyThreadState* __tstate = wxPyBeginAllowThreads();
9123 result = (wxLogNull *)new wxLogNull();
9124
9125 wxPyEndAllowThreads(__tstate);
9126 if (PyErr_Occurred()) SWIG_fail;
9127 }
9128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
9129 return resultobj;
9130 fail:
9131 return NULL;
9132 }
9133
9134
9135 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9136 PyObject *resultobj;
9137 wxLogNull *arg1 = (wxLogNull *) 0 ;
9138 PyObject * obj0 = 0 ;
9139 char *kwnames[] = {
9140 (char *) "self", NULL
9141 };
9142
9143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9146 {
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 delete arg1;
9149
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 Py_INCREF(Py_None); resultobj = Py_None;
9154 return resultobj;
9155 fail:
9156 return NULL;
9157 }
9158
9159
9160 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
9161 PyObject *obj;
9162 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9163 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9164 Py_INCREF(obj);
9165 return Py_BuildValue((char *)"");
9166 }
9167 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
9168 PyObject *resultobj;
9169 wxPyLog *result;
9170 char *kwnames[] = {
9171 NULL
9172 };
9173
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9175 {
9176 PyThreadState* __tstate = wxPyBeginAllowThreads();
9177 result = (wxPyLog *)new wxPyLog();
9178
9179 wxPyEndAllowThreads(__tstate);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 }
9182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9183 return resultobj;
9184 fail:
9185 return NULL;
9186 }
9187
9188
9189 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9190 PyObject *resultobj;
9191 wxPyLog *arg1 = (wxPyLog *) 0 ;
9192 PyObject *arg2 = (PyObject *) 0 ;
9193 PyObject *arg3 = (PyObject *) 0 ;
9194 PyObject * obj0 = 0 ;
9195 PyObject * obj1 = 0 ;
9196 PyObject * obj2 = 0 ;
9197 char *kwnames[] = {
9198 (char *) "self",(char *) "self",(char *) "_class", NULL
9199 };
9200
9201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9204 arg2 = obj1;
9205 arg3 = obj2;
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 (arg1)->_setCallbackInfo(arg2,arg3);
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 Py_INCREF(Py_None); resultobj = Py_None;
9214 return resultobj;
9215 fail:
9216 return NULL;
9217 }
9218
9219
9220 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
9221 PyObject *obj;
9222 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9223 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9224 Py_INCREF(obj);
9225 return Py_BuildValue((char *)"");
9226 }
9227 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
9228 PyObject *resultobj;
9229 int arg1 ;
9230 int arg2 = (int) wxSIGTERM ;
9231 int result;
9232 PyObject * obj0 = 0 ;
9233 PyObject * obj1 = 0 ;
9234 char *kwnames[] = {
9235 (char *) "pid",(char *) "sig", NULL
9236 };
9237
9238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9239 arg1 = (int)SWIG_As_int(obj0);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 if (obj1) {
9242 arg2 = (int)SWIG_As_int(obj1);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9248
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 resultobj = SWIG_From_int((int)result);
9253 return resultobj;
9254 fail:
9255 return NULL;
9256 }
9257
9258
9259 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
9260 PyObject *resultobj;
9261 int arg1 ;
9262 bool result;
9263 PyObject * obj0 = 0 ;
9264 char *kwnames[] = {
9265 (char *) "pid", NULL
9266 };
9267
9268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9269 arg1 = (int)SWIG_As_int(obj0);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 {
9272 PyThreadState* __tstate = wxPyBeginAllowThreads();
9273 result = (bool)wxPyProcess::Exists(arg1);
9274
9275 wxPyEndAllowThreads(__tstate);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 }
9278 {
9279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9280 }
9281 return resultobj;
9282 fail:
9283 return NULL;
9284 }
9285
9286
9287 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj;
9289 wxString *arg1 = 0 ;
9290 int arg2 = (int) wxEXEC_ASYNC ;
9291 wxPyProcess *result;
9292 bool temp1 = False ;
9293 PyObject * obj0 = 0 ;
9294 PyObject * obj1 = 0 ;
9295 char *kwnames[] = {
9296 (char *) "cmd",(char *) "flags", NULL
9297 };
9298
9299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9300 {
9301 arg1 = wxString_in_helper(obj0);
9302 if (arg1 == NULL) SWIG_fail;
9303 temp1 = True;
9304 }
9305 if (obj1) {
9306 arg2 = (int)SWIG_As_int(obj1);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9317 {
9318 if (temp1)
9319 delete arg1;
9320 }
9321 return resultobj;
9322 fail:
9323 {
9324 if (temp1)
9325 delete arg1;
9326 }
9327 return NULL;
9328 }
9329
9330
9331 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
9332 PyObject *resultobj;
9333 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9334 int arg2 = (int) -1 ;
9335 wxPyProcess *result;
9336 PyObject * obj0 = 0 ;
9337 PyObject * obj1 = 0 ;
9338 char *kwnames[] = {
9339 (char *) "parent",(char *) "id", NULL
9340 };
9341
9342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9343 if (obj0) {
9344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9346 }
9347 if (obj1) {
9348 arg2 = (int)SWIG_As_int(obj1);
9349 if (PyErr_Occurred()) SWIG_fail;
9350 }
9351 {
9352 PyThreadState* __tstate = wxPyBeginAllowThreads();
9353 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9354
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9359 return resultobj;
9360 fail:
9361 return NULL;
9362 }
9363
9364
9365 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9366 PyObject *resultobj;
9367 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9368 PyObject *arg2 = (PyObject *) 0 ;
9369 PyObject *arg3 = (PyObject *) 0 ;
9370 PyObject * obj0 = 0 ;
9371 PyObject * obj1 = 0 ;
9372 PyObject * obj2 = 0 ;
9373 char *kwnames[] = {
9374 (char *) "self",(char *) "self",(char *) "_class", NULL
9375 };
9376
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9380 arg2 = obj1;
9381 arg3 = obj2;
9382 {
9383 PyThreadState* __tstate = wxPyBeginAllowThreads();
9384 (arg1)->_setCallbackInfo(arg2,arg3);
9385
9386 wxPyEndAllowThreads(__tstate);
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 Py_INCREF(Py_None); resultobj = Py_None;
9390 return resultobj;
9391 fail:
9392 return NULL;
9393 }
9394
9395
9396 static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
9397 PyObject *resultobj;
9398 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9399 int arg2 ;
9400 int arg3 ;
9401 PyObject * obj0 = 0 ;
9402 PyObject * obj1 = 0 ;
9403 PyObject * obj2 = 0 ;
9404 char *kwnames[] = {
9405 (char *) "self",(char *) "pid",(char *) "status", NULL
9406 };
9407
9408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9411 arg2 = (int)SWIG_As_int(obj1);
9412 if (PyErr_Occurred()) SWIG_fail;
9413 arg3 = (int)SWIG_As_int(obj2);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 (arg1)->base_OnTerminate(arg2,arg3);
9418
9419 wxPyEndAllowThreads(__tstate);
9420 if (PyErr_Occurred()) SWIG_fail;
9421 }
9422 Py_INCREF(Py_None); resultobj = Py_None;
9423 return resultobj;
9424 fail:
9425 return NULL;
9426 }
9427
9428
9429 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
9430 PyObject *resultobj;
9431 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9432 PyObject * obj0 = 0 ;
9433 char *kwnames[] = {
9434 (char *) "self", NULL
9435 };
9436
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 (arg1)->Redirect();
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 Py_INCREF(Py_None); resultobj = Py_None;
9448 return resultobj;
9449 fail:
9450 return NULL;
9451 }
9452
9453
9454 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj;
9456 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9457 bool result;
9458 PyObject * obj0 = 0 ;
9459 char *kwnames[] = {
9460 (char *) "self", NULL
9461 };
9462
9463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9466 {
9467 PyThreadState* __tstate = wxPyBeginAllowThreads();
9468 result = (bool)(arg1)->IsRedirected();
9469
9470 wxPyEndAllowThreads(__tstate);
9471 if (PyErr_Occurred()) SWIG_fail;
9472 }
9473 {
9474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9475 }
9476 return resultobj;
9477 fail:
9478 return NULL;
9479 }
9480
9481
9482 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj;
9484 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9485 PyObject * obj0 = 0 ;
9486 char *kwnames[] = {
9487 (char *) "self", NULL
9488 };
9489
9490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 (arg1)->Detach();
9496
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 Py_INCREF(Py_None); resultobj = Py_None;
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9508 PyObject *resultobj;
9509 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9510 wxInputStream *result;
9511 PyObject * obj0 = 0 ;
9512 char *kwnames[] = {
9513 (char *) "self", NULL
9514 };
9515
9516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9519 {
9520 PyThreadState* __tstate = wxPyBeginAllowThreads();
9521 result = (wxInputStream *)(arg1)->GetInputStream();
9522
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 {
9527 wxPyInputStream * _ptr = NULL;
9528
9529 if (result) {
9530 _ptr = new wxPyInputStream(result);
9531 }
9532 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9533 }
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj;
9542 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9543 wxInputStream *result;
9544 PyObject * obj0 = 0 ;
9545 char *kwnames[] = {
9546 (char *) "self", NULL
9547 };
9548
9549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = (wxInputStream *)(arg1)->GetErrorStream();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 {
9560 wxPyInputStream * _ptr = NULL;
9561
9562 if (result) {
9563 _ptr = new wxPyInputStream(result);
9564 }
9565 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9566 }
9567 return resultobj;
9568 fail:
9569 return NULL;
9570 }
9571
9572
9573 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj;
9575 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9576 wxOutputStream *result;
9577 PyObject * obj0 = 0 ;
9578 char *kwnames[] = {
9579 (char *) "self", NULL
9580 };
9581
9582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 result = (wxOutputStream *)(arg1)->GetOutputStream();
9588
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
9600 PyObject *resultobj;
9601 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9602 PyObject * obj0 = 0 ;
9603 char *kwnames[] = {
9604 (char *) "self", NULL
9605 };
9606
9607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 (arg1)->CloseOutput();
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 Py_INCREF(Py_None); resultobj = Py_None;
9618 return resultobj;
9619 fail:
9620 return NULL;
9621 }
9622
9623
9624 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
9625 PyObject *resultobj;
9626 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9627 bool result;
9628 PyObject * obj0 = 0 ;
9629 char *kwnames[] = {
9630 (char *) "self", NULL
9631 };
9632
9633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9636 {
9637 PyThreadState* __tstate = wxPyBeginAllowThreads();
9638 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9639
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 {
9644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9645 }
9646 return resultobj;
9647 fail:
9648 return NULL;
9649 }
9650
9651
9652 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj;
9654 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9655 bool result;
9656 PyObject * obj0 = 0 ;
9657 char *kwnames[] = {
9658 (char *) "self", NULL
9659 };
9660
9661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 {
9672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9673 }
9674 return resultobj;
9675 fail:
9676 return NULL;
9677 }
9678
9679
9680 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9681 PyObject *resultobj;
9682 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9683 bool result;
9684 PyObject * obj0 = 0 ;
9685 char *kwnames[] = {
9686 (char *) "self", NULL
9687 };
9688
9689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9695
9696 wxPyEndAllowThreads(__tstate);
9697 if (PyErr_Occurred()) SWIG_fail;
9698 }
9699 {
9700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9701 }
9702 return resultobj;
9703 fail:
9704 return NULL;
9705 }
9706
9707
9708 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
9709 PyObject *obj;
9710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9711 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9712 Py_INCREF(obj);
9713 return Py_BuildValue((char *)"");
9714 }
9715 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9716 PyObject *resultobj;
9717 int arg1 = (int) 0 ;
9718 int arg2 = (int) 0 ;
9719 int arg3 = (int) 0 ;
9720 wxProcessEvent *result;
9721 PyObject * obj0 = 0 ;
9722 PyObject * obj1 = 0 ;
9723 PyObject * obj2 = 0 ;
9724 char *kwnames[] = {
9725 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9726 };
9727
9728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9729 if (obj0) {
9730 arg1 = (int)SWIG_As_int(obj0);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 if (obj1) {
9734 arg2 = (int)SWIG_As_int(obj1);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 if (obj2) {
9738 arg3 = (int)SWIG_As_int(obj2);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 {
9742 PyThreadState* __tstate = wxPyBeginAllowThreads();
9743 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9744
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9749 return resultobj;
9750 fail:
9751 return NULL;
9752 }
9753
9754
9755 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
9756 PyObject *resultobj;
9757 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9758 int result;
9759 PyObject * obj0 = 0 ;
9760 char *kwnames[] = {
9761 (char *) "self", NULL
9762 };
9763
9764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 result = (int)(arg1)->GetPid();
9770
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 resultobj = SWIG_From_int((int)result);
9775 return resultobj;
9776 fail:
9777 return NULL;
9778 }
9779
9780
9781 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj;
9783 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9784 int result;
9785 PyObject * obj0 = 0 ;
9786 char *kwnames[] = {
9787 (char *) "self", NULL
9788 };
9789
9790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 result = (int)(arg1)->GetExitCode();
9796
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
9800 resultobj = SWIG_From_int((int)result);
9801 return resultobj;
9802 fail:
9803 return NULL;
9804 }
9805
9806
9807 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj;
9809 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9810 int arg2 ;
9811 PyObject * obj0 = 0 ;
9812 PyObject * obj1 = 0 ;
9813 char *kwnames[] = {
9814 (char *) "self",(char *) "m_pid", NULL
9815 };
9816
9817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9820 arg2 = (int)SWIG_As_int(obj1);
9821 if (PyErr_Occurred()) SWIG_fail;
9822 if (arg1) (arg1)->m_pid = arg2;
9823
9824 Py_INCREF(Py_None); resultobj = Py_None;
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj;
9833 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9834 int result;
9835 PyObject * obj0 = 0 ;
9836 char *kwnames[] = {
9837 (char *) "self", NULL
9838 };
9839
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9843 result = (int) ((arg1)->m_pid);
9844
9845 resultobj = SWIG_From_int((int)result);
9846 return resultobj;
9847 fail:
9848 return NULL;
9849 }
9850
9851
9852 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
9853 PyObject *resultobj;
9854 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9855 int arg2 ;
9856 PyObject * obj0 = 0 ;
9857 PyObject * obj1 = 0 ;
9858 char *kwnames[] = {
9859 (char *) "self",(char *) "m_exitcode", NULL
9860 };
9861
9862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9865 arg2 = (int)SWIG_As_int(obj1);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 if (arg1) (arg1)->m_exitcode = arg2;
9868
9869 Py_INCREF(Py_None); resultobj = Py_None;
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj;
9878 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9879 int result;
9880 PyObject * obj0 = 0 ;
9881 char *kwnames[] = {
9882 (char *) "self", NULL
9883 };
9884
9885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9888 result = (int) ((arg1)->m_exitcode);
9889
9890 resultobj = SWIG_From_int((int)result);
9891 return resultobj;
9892 fail:
9893 return NULL;
9894 }
9895
9896
9897 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
9898 PyObject *obj;
9899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9900 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9901 Py_INCREF(obj);
9902 return Py_BuildValue((char *)"");
9903 }
9904 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxString *arg1 = 0 ;
9907 int arg2 = (int) wxEXEC_ASYNC ;
9908 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9909 long result;
9910 bool temp1 = False ;
9911 PyObject * obj0 = 0 ;
9912 PyObject * obj1 = 0 ;
9913 PyObject * obj2 = 0 ;
9914 char *kwnames[] = {
9915 (char *) "command",(char *) "flags",(char *) "process", NULL
9916 };
9917
9918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9919 {
9920 arg1 = wxString_in_helper(obj0);
9921 if (arg1 == NULL) SWIG_fail;
9922 temp1 = True;
9923 }
9924 if (obj1) {
9925 arg2 = (int)SWIG_As_int(obj1);
9926 if (PyErr_Occurred()) SWIG_fail;
9927 }
9928 if (obj2) {
9929 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9931 }
9932 {
9933 if (!wxPyCheckForApp()) SWIG_fail;
9934 PyThreadState* __tstate = wxPyBeginAllowThreads();
9935 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9936
9937 wxPyEndAllowThreads(__tstate);
9938 if (PyErr_Occurred()) SWIG_fail;
9939 }
9940 resultobj = SWIG_From_long((long)result);
9941 {
9942 if (temp1)
9943 delete arg1;
9944 }
9945 return resultobj;
9946 fail:
9947 {
9948 if (temp1)
9949 delete arg1;
9950 }
9951 return NULL;
9952 }
9953
9954
9955 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9956 PyObject *resultobj;
9957 int arg1 = (int) wxJOYSTICK1 ;
9958 wxJoystick *result;
9959 PyObject * obj0 = 0 ;
9960 char *kwnames[] = {
9961 (char *) "joystick", NULL
9962 };
9963
9964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9965 if (obj0) {
9966 arg1 = (int)SWIG_As_int(obj0);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
9969 {
9970 if (!wxPyCheckForApp()) SWIG_fail;
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = (wxJoystick *)new wxJoystick(arg1);
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9978 return resultobj;
9979 fail:
9980 return NULL;
9981 }
9982
9983
9984 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj;
9986 wxJoystick *arg1 = (wxJoystick *) 0 ;
9987 PyObject * obj0 = 0 ;
9988 char *kwnames[] = {
9989 (char *) "self", NULL
9990 };
9991
9992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 delete arg1;
9998
9999 wxPyEndAllowThreads(__tstate);
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 Py_INCREF(Py_None); resultobj = Py_None;
10003 return resultobj;
10004 fail:
10005 return NULL;
10006 }
10007
10008
10009 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10010 PyObject *resultobj;
10011 wxJoystick *arg1 = (wxJoystick *) 0 ;
10012 wxPoint result;
10013 PyObject * obj0 = 0 ;
10014 char *kwnames[] = {
10015 (char *) "self", NULL
10016 };
10017
10018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
10019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10021 {
10022 PyThreadState* __tstate = wxPyBeginAllowThreads();
10023 result = (arg1)->GetPosition();
10024
10025 wxPyEndAllowThreads(__tstate);
10026 if (PyErr_Occurred()) SWIG_fail;
10027 }
10028 {
10029 wxPoint * resultptr;
10030 resultptr = new wxPoint((wxPoint &) result);
10031 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10032 }
10033 return resultobj;
10034 fail:
10035 return NULL;
10036 }
10037
10038
10039 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10040 PyObject *resultobj;
10041 wxJoystick *arg1 = (wxJoystick *) 0 ;
10042 int result;
10043 PyObject * obj0 = 0 ;
10044 char *kwnames[] = {
10045 (char *) "self", NULL
10046 };
10047
10048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
10049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10051 {
10052 PyThreadState* __tstate = wxPyBeginAllowThreads();
10053 result = (int)(arg1)->GetZPosition();
10054
10055 wxPyEndAllowThreads(__tstate);
10056 if (PyErr_Occurred()) SWIG_fail;
10057 }
10058 resultobj = SWIG_From_int((int)result);
10059 return resultobj;
10060 fail:
10061 return NULL;
10062 }
10063
10064
10065 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
10066 PyObject *resultobj;
10067 wxJoystick *arg1 = (wxJoystick *) 0 ;
10068 int result;
10069 PyObject * obj0 = 0 ;
10070 char *kwnames[] = {
10071 (char *) "self", NULL
10072 };
10073
10074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
10075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10077 {
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
10079 result = (int)(arg1)->GetButtonState();
10080
10081 wxPyEndAllowThreads(__tstate);
10082 if (PyErr_Occurred()) SWIG_fail;
10083 }
10084 resultobj = SWIG_From_int((int)result);
10085 return resultobj;
10086 fail:
10087 return NULL;
10088 }
10089
10090
10091 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10092 PyObject *resultobj;
10093 wxJoystick *arg1 = (wxJoystick *) 0 ;
10094 int result;
10095 PyObject * obj0 = 0 ;
10096 char *kwnames[] = {
10097 (char *) "self", NULL
10098 };
10099
10100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
10101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 result = (int)(arg1)->GetPOVPosition();
10106
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 resultobj = SWIG_From_int((int)result);
10111 return resultobj;
10112 fail:
10113 return NULL;
10114 }
10115
10116
10117 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10118 PyObject *resultobj;
10119 wxJoystick *arg1 = (wxJoystick *) 0 ;
10120 int result;
10121 PyObject * obj0 = 0 ;
10122 char *kwnames[] = {
10123 (char *) "self", NULL
10124 };
10125
10126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
10127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10129 {
10130 PyThreadState* __tstate = wxPyBeginAllowThreads();
10131 result = (int)(arg1)->GetPOVCTSPosition();
10132
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 resultobj = SWIG_From_int((int)result);
10137 return resultobj;
10138 fail:
10139 return NULL;
10140 }
10141
10142
10143 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10144 PyObject *resultobj;
10145 wxJoystick *arg1 = (wxJoystick *) 0 ;
10146 int result;
10147 PyObject * obj0 = 0 ;
10148 char *kwnames[] = {
10149 (char *) "self", NULL
10150 };
10151
10152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (int)(arg1)->GetRudderPosition();
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = SWIG_From_int((int)result);
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj;
10171 wxJoystick *arg1 = (wxJoystick *) 0 ;
10172 int result;
10173 PyObject * obj0 = 0 ;
10174 char *kwnames[] = {
10175 (char *) "self", NULL
10176 };
10177
10178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10181 {
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 result = (int)(arg1)->GetUPosition();
10184
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 resultobj = SWIG_From_int((int)result);
10189 return resultobj;
10190 fail:
10191 return NULL;
10192 }
10193
10194
10195 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10196 PyObject *resultobj;
10197 wxJoystick *arg1 = (wxJoystick *) 0 ;
10198 int result;
10199 PyObject * obj0 = 0 ;
10200 char *kwnames[] = {
10201 (char *) "self", NULL
10202 };
10203
10204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10207 {
10208 PyThreadState* __tstate = wxPyBeginAllowThreads();
10209 result = (int)(arg1)->GetVPosition();
10210
10211 wxPyEndAllowThreads(__tstate);
10212 if (PyErr_Occurred()) SWIG_fail;
10213 }
10214 resultobj = SWIG_From_int((int)result);
10215 return resultobj;
10216 fail:
10217 return NULL;
10218 }
10219
10220
10221 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10222 PyObject *resultobj;
10223 wxJoystick *arg1 = (wxJoystick *) 0 ;
10224 int result;
10225 PyObject * obj0 = 0 ;
10226 char *kwnames[] = {
10227 (char *) "self", NULL
10228 };
10229
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10233 {
10234 PyThreadState* __tstate = wxPyBeginAllowThreads();
10235 result = (int)(arg1)->GetMovementThreshold();
10236
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 resultobj = SWIG_From_int((int)result);
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10248 PyObject *resultobj;
10249 wxJoystick *arg1 = (wxJoystick *) 0 ;
10250 int arg2 ;
10251 PyObject * obj0 = 0 ;
10252 PyObject * obj1 = 0 ;
10253 char *kwnames[] = {
10254 (char *) "self",(char *) "threshold", NULL
10255 };
10256
10257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10260 arg2 = (int)SWIG_As_int(obj1);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 (arg1)->SetMovementThreshold(arg2);
10265
10266 wxPyEndAllowThreads(__tstate);
10267 if (PyErr_Occurred()) SWIG_fail;
10268 }
10269 Py_INCREF(Py_None); resultobj = Py_None;
10270 return resultobj;
10271 fail:
10272 return NULL;
10273 }
10274
10275
10276 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj;
10278 wxJoystick *arg1 = (wxJoystick *) 0 ;
10279 bool result;
10280 PyObject * obj0 = 0 ;
10281 char *kwnames[] = {
10282 (char *) "self", NULL
10283 };
10284
10285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10288 {
10289 PyThreadState* __tstate = wxPyBeginAllowThreads();
10290 result = (bool)(arg1)->IsOk();
10291
10292 wxPyEndAllowThreads(__tstate);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 {
10296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10297 }
10298 return resultobj;
10299 fail:
10300 return NULL;
10301 }
10302
10303
10304 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
10305 PyObject *resultobj;
10306 wxJoystick *arg1 = (wxJoystick *) 0 ;
10307 int result;
10308 PyObject * obj0 = 0 ;
10309 char *kwnames[] = {
10310 (char *) "self", NULL
10311 };
10312
10313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 result = (int)(arg1)->GetNumberJoysticks();
10319
10320 wxPyEndAllowThreads(__tstate);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 }
10323 resultobj = SWIG_From_int((int)result);
10324 return resultobj;
10325 fail:
10326 return NULL;
10327 }
10328
10329
10330 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
10331 PyObject *resultobj;
10332 wxJoystick *arg1 = (wxJoystick *) 0 ;
10333 int result;
10334 PyObject * obj0 = 0 ;
10335 char *kwnames[] = {
10336 (char *) "self", NULL
10337 };
10338
10339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10342 {
10343 PyThreadState* __tstate = wxPyBeginAllowThreads();
10344 result = (int)(arg1)->GetManufacturerId();
10345
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 resultobj = SWIG_From_int((int)result);
10350 return resultobj;
10351 fail:
10352 return NULL;
10353 }
10354
10355
10356 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
10357 PyObject *resultobj;
10358 wxJoystick *arg1 = (wxJoystick *) 0 ;
10359 int result;
10360 PyObject * obj0 = 0 ;
10361 char *kwnames[] = {
10362 (char *) "self", NULL
10363 };
10364
10365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10368 {
10369 PyThreadState* __tstate = wxPyBeginAllowThreads();
10370 result = (int)(arg1)->GetProductId();
10371
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 resultobj = SWIG_From_int((int)result);
10376 return resultobj;
10377 fail:
10378 return NULL;
10379 }
10380
10381
10382 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj;
10384 wxJoystick *arg1 = (wxJoystick *) 0 ;
10385 wxString result;
10386 PyObject * obj0 = 0 ;
10387 char *kwnames[] = {
10388 (char *) "self", NULL
10389 };
10390
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (arg1)->GetProductName();
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 {
10402 #if wxUSE_UNICODE
10403 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10404 #else
10405 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10406 #endif
10407 }
10408 return resultobj;
10409 fail:
10410 return NULL;
10411 }
10412
10413
10414 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
10415 PyObject *resultobj;
10416 wxJoystick *arg1 = (wxJoystick *) 0 ;
10417 int result;
10418 PyObject * obj0 = 0 ;
10419 char *kwnames[] = {
10420 (char *) "self", NULL
10421 };
10422
10423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10426 {
10427 PyThreadState* __tstate = wxPyBeginAllowThreads();
10428 result = (int)(arg1)->GetXMin();
10429
10430 wxPyEndAllowThreads(__tstate);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 resultobj = SWIG_From_int((int)result);
10434 return resultobj;
10435 fail:
10436 return NULL;
10437 }
10438
10439
10440 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
10441 PyObject *resultobj;
10442 wxJoystick *arg1 = (wxJoystick *) 0 ;
10443 int result;
10444 PyObject * obj0 = 0 ;
10445 char *kwnames[] = {
10446 (char *) "self", NULL
10447 };
10448
10449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10452 {
10453 PyThreadState* __tstate = wxPyBeginAllowThreads();
10454 result = (int)(arg1)->GetYMin();
10455
10456 wxPyEndAllowThreads(__tstate);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 }
10459 resultobj = SWIG_From_int((int)result);
10460 return resultobj;
10461 fail:
10462 return NULL;
10463 }
10464
10465
10466 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
10467 PyObject *resultobj;
10468 wxJoystick *arg1 = (wxJoystick *) 0 ;
10469 int result;
10470 PyObject * obj0 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "self", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (int)(arg1)->GetZMin();
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = SWIG_From_int((int)result);
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj;
10494 wxJoystick *arg1 = (wxJoystick *) 0 ;
10495 int result;
10496 PyObject * obj0 = 0 ;
10497 char *kwnames[] = {
10498 (char *) "self", NULL
10499 };
10500
10501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 result = (int)(arg1)->GetXMax();
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_From_int((int)result);
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj;
10520 wxJoystick *arg1 = (wxJoystick *) 0 ;
10521 int result;
10522 PyObject * obj0 = 0 ;
10523 char *kwnames[] = {
10524 (char *) "self", NULL
10525 };
10526
10527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (int)(arg1)->GetYMax();
10533
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 resultobj = SWIG_From_int((int)result);
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj;
10546 wxJoystick *arg1 = (wxJoystick *) 0 ;
10547 int result;
10548 PyObject * obj0 = 0 ;
10549 char *kwnames[] = {
10550 (char *) "self", NULL
10551 };
10552
10553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 result = (int)(arg1)->GetZMax();
10559
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 resultobj = SWIG_From_int((int)result);
10564 return resultobj;
10565 fail:
10566 return NULL;
10567 }
10568
10569
10570 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj;
10572 wxJoystick *arg1 = (wxJoystick *) 0 ;
10573 int result;
10574 PyObject * obj0 = 0 ;
10575 char *kwnames[] = {
10576 (char *) "self", NULL
10577 };
10578
10579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 result = (int)(arg1)->GetNumberButtons();
10585
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 resultobj = SWIG_From_int((int)result);
10590 return resultobj;
10591 fail:
10592 return NULL;
10593 }
10594
10595
10596 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10597 PyObject *resultobj;
10598 wxJoystick *arg1 = (wxJoystick *) 0 ;
10599 int result;
10600 PyObject * obj0 = 0 ;
10601 char *kwnames[] = {
10602 (char *) "self", NULL
10603 };
10604
10605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 result = (int)(arg1)->GetNumberAxes();
10611
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 resultobj = SWIG_From_int((int)result);
10616 return resultobj;
10617 fail:
10618 return NULL;
10619 }
10620
10621
10622 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10623 PyObject *resultobj;
10624 wxJoystick *arg1 = (wxJoystick *) 0 ;
10625 int result;
10626 PyObject * obj0 = 0 ;
10627 char *kwnames[] = {
10628 (char *) "self", NULL
10629 };
10630
10631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10634 {
10635 PyThreadState* __tstate = wxPyBeginAllowThreads();
10636 result = (int)(arg1)->GetMaxButtons();
10637
10638 wxPyEndAllowThreads(__tstate);
10639 if (PyErr_Occurred()) SWIG_fail;
10640 }
10641 resultobj = SWIG_From_int((int)result);
10642 return resultobj;
10643 fail:
10644 return NULL;
10645 }
10646
10647
10648 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10649 PyObject *resultobj;
10650 wxJoystick *arg1 = (wxJoystick *) 0 ;
10651 int result;
10652 PyObject * obj0 = 0 ;
10653 char *kwnames[] = {
10654 (char *) "self", NULL
10655 };
10656
10657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10660 {
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 result = (int)(arg1)->GetMaxAxes();
10663
10664 wxPyEndAllowThreads(__tstate);
10665 if (PyErr_Occurred()) SWIG_fail;
10666 }
10667 resultobj = SWIG_From_int((int)result);
10668 return resultobj;
10669 fail:
10670 return NULL;
10671 }
10672
10673
10674 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj;
10676 wxJoystick *arg1 = (wxJoystick *) 0 ;
10677 int result;
10678 PyObject * obj0 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 result = (int)(arg1)->GetPollingMin();
10689
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 resultobj = SWIG_From_int((int)result);
10694 return resultobj;
10695 fail:
10696 return NULL;
10697 }
10698
10699
10700 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
10701 PyObject *resultobj;
10702 wxJoystick *arg1 = (wxJoystick *) 0 ;
10703 int result;
10704 PyObject * obj0 = 0 ;
10705 char *kwnames[] = {
10706 (char *) "self", NULL
10707 };
10708
10709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10712 {
10713 PyThreadState* __tstate = wxPyBeginAllowThreads();
10714 result = (int)(arg1)->GetPollingMax();
10715
10716 wxPyEndAllowThreads(__tstate);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 }
10719 resultobj = SWIG_From_int((int)result);
10720 return resultobj;
10721 fail:
10722 return NULL;
10723 }
10724
10725
10726 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
10727 PyObject *resultobj;
10728 wxJoystick *arg1 = (wxJoystick *) 0 ;
10729 int result;
10730 PyObject * obj0 = 0 ;
10731 char *kwnames[] = {
10732 (char *) "self", NULL
10733 };
10734
10735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10738 {
10739 PyThreadState* __tstate = wxPyBeginAllowThreads();
10740 result = (int)(arg1)->GetRudderMin();
10741
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 resultobj = SWIG_From_int((int)result);
10746 return resultobj;
10747 fail:
10748 return NULL;
10749 }
10750
10751
10752 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
10753 PyObject *resultobj;
10754 wxJoystick *arg1 = (wxJoystick *) 0 ;
10755 int result;
10756 PyObject * obj0 = 0 ;
10757 char *kwnames[] = {
10758 (char *) "self", NULL
10759 };
10760
10761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 result = (int)(arg1)->GetRudderMax();
10767
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 resultobj = SWIG_From_int((int)result);
10772 return resultobj;
10773 fail:
10774 return NULL;
10775 }
10776
10777
10778 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj;
10780 wxJoystick *arg1 = (wxJoystick *) 0 ;
10781 int result;
10782 PyObject * obj0 = 0 ;
10783 char *kwnames[] = {
10784 (char *) "self", NULL
10785 };
10786
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 result = (int)(arg1)->GetUMin();
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 resultobj = SWIG_From_int((int)result);
10798 return resultobj;
10799 fail:
10800 return NULL;
10801 }
10802
10803
10804 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
10805 PyObject *resultobj;
10806 wxJoystick *arg1 = (wxJoystick *) 0 ;
10807 int result;
10808 PyObject * obj0 = 0 ;
10809 char *kwnames[] = {
10810 (char *) "self", NULL
10811 };
10812
10813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 result = (int)(arg1)->GetUMax();
10819
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 resultobj = SWIG_From_int((int)result);
10824 return resultobj;
10825 fail:
10826 return NULL;
10827 }
10828
10829
10830 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj;
10832 wxJoystick *arg1 = (wxJoystick *) 0 ;
10833 int result;
10834 PyObject * obj0 = 0 ;
10835 char *kwnames[] = {
10836 (char *) "self", NULL
10837 };
10838
10839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 result = (int)(arg1)->GetVMin();
10845
10846 wxPyEndAllowThreads(__tstate);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 }
10849 resultobj = SWIG_From_int((int)result);
10850 return resultobj;
10851 fail:
10852 return NULL;
10853 }
10854
10855
10856 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
10857 PyObject *resultobj;
10858 wxJoystick *arg1 = (wxJoystick *) 0 ;
10859 int result;
10860 PyObject * obj0 = 0 ;
10861 char *kwnames[] = {
10862 (char *) "self", NULL
10863 };
10864
10865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10868 {
10869 PyThreadState* __tstate = wxPyBeginAllowThreads();
10870 result = (int)(arg1)->GetVMax();
10871
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 resultobj = SWIG_From_int((int)result);
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj;
10884 wxJoystick *arg1 = (wxJoystick *) 0 ;
10885 bool result;
10886 PyObject * obj0 = 0 ;
10887 char *kwnames[] = {
10888 (char *) "self", NULL
10889 };
10890
10891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10894 {
10895 PyThreadState* __tstate = wxPyBeginAllowThreads();
10896 result = (bool)(arg1)->HasRudder();
10897
10898 wxPyEndAllowThreads(__tstate);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 {
10902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10903 }
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj;
10912 wxJoystick *arg1 = (wxJoystick *) 0 ;
10913 bool result;
10914 PyObject * obj0 = 0 ;
10915 char *kwnames[] = {
10916 (char *) "self", NULL
10917 };
10918
10919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10922 {
10923 PyThreadState* __tstate = wxPyBeginAllowThreads();
10924 result = (bool)(arg1)->HasZ();
10925
10926 wxPyEndAllowThreads(__tstate);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 }
10929 {
10930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10931 }
10932 return resultobj;
10933 fail:
10934 return NULL;
10935 }
10936
10937
10938 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
10939 PyObject *resultobj;
10940 wxJoystick *arg1 = (wxJoystick *) 0 ;
10941 bool result;
10942 PyObject * obj0 = 0 ;
10943 char *kwnames[] = {
10944 (char *) "self", NULL
10945 };
10946
10947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10950 {
10951 PyThreadState* __tstate = wxPyBeginAllowThreads();
10952 result = (bool)(arg1)->HasU();
10953
10954 wxPyEndAllowThreads(__tstate);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 }
10957 {
10958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10959 }
10960 return resultobj;
10961 fail:
10962 return NULL;
10963 }
10964
10965
10966 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
10967 PyObject *resultobj;
10968 wxJoystick *arg1 = (wxJoystick *) 0 ;
10969 bool result;
10970 PyObject * obj0 = 0 ;
10971 char *kwnames[] = {
10972 (char *) "self", NULL
10973 };
10974
10975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10978 {
10979 PyThreadState* __tstate = wxPyBeginAllowThreads();
10980 result = (bool)(arg1)->HasV();
10981
10982 wxPyEndAllowThreads(__tstate);
10983 if (PyErr_Occurred()) SWIG_fail;
10984 }
10985 {
10986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10987 }
10988 return resultobj;
10989 fail:
10990 return NULL;
10991 }
10992
10993
10994 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj;
10996 wxJoystick *arg1 = (wxJoystick *) 0 ;
10997 bool result;
10998 PyObject * obj0 = 0 ;
10999 char *kwnames[] = {
11000 (char *) "self", NULL
11001 };
11002
11003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
11004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11006 {
11007 PyThreadState* __tstate = wxPyBeginAllowThreads();
11008 result = (bool)(arg1)->HasPOV();
11009
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 {
11014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11015 }
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj;
11024 wxJoystick *arg1 = (wxJoystick *) 0 ;
11025 bool result;
11026 PyObject * obj0 = 0 ;
11027 char *kwnames[] = {
11028 (char *) "self", NULL
11029 };
11030
11031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
11032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11034 {
11035 PyThreadState* __tstate = wxPyBeginAllowThreads();
11036 result = (bool)(arg1)->HasPOV4Dir();
11037
11038 wxPyEndAllowThreads(__tstate);
11039 if (PyErr_Occurred()) SWIG_fail;
11040 }
11041 {
11042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11043 }
11044 return resultobj;
11045 fail:
11046 return NULL;
11047 }
11048
11049
11050 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
11051 PyObject *resultobj;
11052 wxJoystick *arg1 = (wxJoystick *) 0 ;
11053 bool result;
11054 PyObject * obj0 = 0 ;
11055 char *kwnames[] = {
11056 (char *) "self", NULL
11057 };
11058
11059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
11060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11062 {
11063 PyThreadState* __tstate = wxPyBeginAllowThreads();
11064 result = (bool)(arg1)->HasPOVCTS();
11065
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 {
11070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11071 }
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11079 PyObject *resultobj;
11080 wxJoystick *arg1 = (wxJoystick *) 0 ;
11081 wxWindow *arg2 = (wxWindow *) 0 ;
11082 int arg3 = (int) 0 ;
11083 bool result;
11084 PyObject * obj0 = 0 ;
11085 PyObject * obj1 = 0 ;
11086 PyObject * obj2 = 0 ;
11087 char *kwnames[] = {
11088 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
11089 };
11090
11091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
11092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11096 if (obj2) {
11097 arg3 = (int)SWIG_As_int(obj2);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 result = (bool)(arg1)->SetCapture(arg2,arg3);
11103
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 }
11107 {
11108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11109 }
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11117 PyObject *resultobj;
11118 wxJoystick *arg1 = (wxJoystick *) 0 ;
11119 bool result;
11120 PyObject * obj0 = 0 ;
11121 char *kwnames[] = {
11122 (char *) "self", NULL
11123 };
11124
11125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
11126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (bool)(arg1)->ReleaseCapture();
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 {
11136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11137 }
11138 return resultobj;
11139 fail:
11140 return NULL;
11141 }
11142
11143
11144 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
11145 PyObject *obj;
11146 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11147 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11148 Py_INCREF(obj);
11149 return Py_BuildValue((char *)"");
11150 }
11151 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
11152 PyObject *resultobj;
11153 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11154 wxPoint *arg2 = (wxPoint *) 0 ;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 char *kwnames[] = {
11158 (char *) "self",(char *) "m_pos", NULL
11159 };
11160
11161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11166 if (arg1) (arg1)->m_pos = *arg2;
11167
11168 Py_INCREF(Py_None); resultobj = Py_None;
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj;
11177 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11178 wxPoint *result;
11179 PyObject * obj0 = 0 ;
11180 char *kwnames[] = {
11181 (char *) "self", NULL
11182 };
11183
11184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11187 result = (wxPoint *)& ((arg1)->m_pos);
11188
11189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11190 return resultobj;
11191 fail:
11192 return NULL;
11193 }
11194
11195
11196 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj;
11198 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11199 int arg2 ;
11200 PyObject * obj0 = 0 ;
11201 PyObject * obj1 = 0 ;
11202 char *kwnames[] = {
11203 (char *) "self",(char *) "m_zPosition", NULL
11204 };
11205
11206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11209 arg2 = (int)SWIG_As_int(obj1);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 if (arg1) (arg1)->m_zPosition = arg2;
11212
11213 Py_INCREF(Py_None); resultobj = Py_None;
11214 return resultobj;
11215 fail:
11216 return NULL;
11217 }
11218
11219
11220 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
11221 PyObject *resultobj;
11222 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11223 int result;
11224 PyObject * obj0 = 0 ;
11225 char *kwnames[] = {
11226 (char *) "self", NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11232 result = (int) ((arg1)->m_zPosition);
11233
11234 resultobj = SWIG_From_int((int)result);
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj;
11243 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11244 int arg2 ;
11245 PyObject * obj0 = 0 ;
11246 PyObject * obj1 = 0 ;
11247 char *kwnames[] = {
11248 (char *) "self",(char *) "m_buttonChange", NULL
11249 };
11250
11251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11254 arg2 = (int)SWIG_As_int(obj1);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 if (arg1) (arg1)->m_buttonChange = arg2;
11257
11258 Py_INCREF(Py_None); resultobj = Py_None;
11259 return resultobj;
11260 fail:
11261 return NULL;
11262 }
11263
11264
11265 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
11266 PyObject *resultobj;
11267 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11268 int result;
11269 PyObject * obj0 = 0 ;
11270 char *kwnames[] = {
11271 (char *) "self", NULL
11272 };
11273
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11277 result = (int) ((arg1)->m_buttonChange);
11278
11279 resultobj = SWIG_From_int((int)result);
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
11287 PyObject *resultobj;
11288 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11289 int arg2 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 char *kwnames[] = {
11293 (char *) "self",(char *) "m_buttonState", NULL
11294 };
11295
11296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11299 arg2 = (int)SWIG_As_int(obj1);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 if (arg1) (arg1)->m_buttonState = arg2;
11302
11303 Py_INCREF(Py_None); resultobj = Py_None;
11304 return resultobj;
11305 fail:
11306 return NULL;
11307 }
11308
11309
11310 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
11311 PyObject *resultobj;
11312 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11313 int result;
11314 PyObject * obj0 = 0 ;
11315 char *kwnames[] = {
11316 (char *) "self", NULL
11317 };
11318
11319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11322 result = (int) ((arg1)->m_buttonState);
11323
11324 resultobj = SWIG_From_int((int)result);
11325 return resultobj;
11326 fail:
11327 return NULL;
11328 }
11329
11330
11331 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
11332 PyObject *resultobj;
11333 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11334 int arg2 ;
11335 PyObject * obj0 = 0 ;
11336 PyObject * obj1 = 0 ;
11337 char *kwnames[] = {
11338 (char *) "self",(char *) "m_joyStick", NULL
11339 };
11340
11341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11344 arg2 = (int)SWIG_As_int(obj1);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 if (arg1) (arg1)->m_joyStick = arg2;
11347
11348 Py_INCREF(Py_None); resultobj = Py_None;
11349 return resultobj;
11350 fail:
11351 return NULL;
11352 }
11353
11354
11355 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
11356 PyObject *resultobj;
11357 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11358 int result;
11359 PyObject * obj0 = 0 ;
11360 char *kwnames[] = {
11361 (char *) "self", NULL
11362 };
11363
11364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11367 result = (int) ((arg1)->m_joyStick);
11368
11369 resultobj = SWIG_From_int((int)result);
11370 return resultobj;
11371 fail:
11372 return NULL;
11373 }
11374
11375
11376 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11377 PyObject *resultobj;
11378 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11379 int arg2 = (int) 0 ;
11380 int arg3 = (int) wxJOYSTICK1 ;
11381 int arg4 = (int) 0 ;
11382 wxJoystickEvent *result;
11383 PyObject * obj0 = 0 ;
11384 PyObject * obj1 = 0 ;
11385 PyObject * obj2 = 0 ;
11386 PyObject * obj3 = 0 ;
11387 char *kwnames[] = {
11388 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11389 };
11390
11391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11392 if (obj0) {
11393 arg1 = (wxEventType)SWIG_As_int(obj0);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 if (obj1) {
11397 arg2 = (int)SWIG_As_int(obj1);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
11400 if (obj2) {
11401 arg3 = (int)SWIG_As_int(obj2);
11402 if (PyErr_Occurred()) SWIG_fail;
11403 }
11404 if (obj3) {
11405 arg4 = (int)SWIG_As_int(obj3);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 {
11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
11410 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11411
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11416 return resultobj;
11417 fail:
11418 return NULL;
11419 }
11420
11421
11422 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11423 PyObject *resultobj;
11424 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11425 wxPoint result;
11426 PyObject * obj0 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "self", NULL
11429 };
11430
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11434 {
11435 PyThreadState* __tstate = wxPyBeginAllowThreads();
11436 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11437
11438 wxPyEndAllowThreads(__tstate);
11439 if (PyErr_Occurred()) SWIG_fail;
11440 }
11441 {
11442 wxPoint * resultptr;
11443 resultptr = new wxPoint((wxPoint &) result);
11444 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11445 }
11446 return resultobj;
11447 fail:
11448 return NULL;
11449 }
11450
11451
11452 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11453 PyObject *resultobj;
11454 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11455 int result;
11456 PyObject * obj0 = 0 ;
11457 char *kwnames[] = {
11458 (char *) "self", NULL
11459 };
11460
11461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11464 {
11465 PyThreadState* __tstate = wxPyBeginAllowThreads();
11466 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11467
11468 wxPyEndAllowThreads(__tstate);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 resultobj = SWIG_From_int((int)result);
11472 return resultobj;
11473 fail:
11474 return NULL;
11475 }
11476
11477
11478 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11479 PyObject *resultobj;
11480 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11481 int result;
11482 PyObject * obj0 = 0 ;
11483 char *kwnames[] = {
11484 (char *) "self", NULL
11485 };
11486
11487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11490 {
11491 PyThreadState* __tstate = wxPyBeginAllowThreads();
11492 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11493
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 resultobj = SWIG_From_int((int)result);
11498 return resultobj;
11499 fail:
11500 return NULL;
11501 }
11502
11503
11504 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj;
11506 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11507 int result;
11508 PyObject * obj0 = 0 ;
11509 char *kwnames[] = {
11510 (char *) "self", NULL
11511 };
11512
11513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11519
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 resultobj = SWIG_From_int((int)result);
11524 return resultobj;
11525 fail:
11526 return NULL;
11527 }
11528
11529
11530 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11531 PyObject *resultobj;
11532 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11533 int result;
11534 PyObject * obj0 = 0 ;
11535 char *kwnames[] = {
11536 (char *) "self", NULL
11537 };
11538
11539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11542 {
11543 PyThreadState* __tstate = wxPyBeginAllowThreads();
11544 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11545
11546 wxPyEndAllowThreads(__tstate);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 resultobj = SWIG_From_int((int)result);
11550 return resultobj;
11551 fail:
11552 return NULL;
11553 }
11554
11555
11556 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj;
11558 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11559 int arg2 ;
11560 PyObject * obj0 = 0 ;
11561 PyObject * obj1 = 0 ;
11562 char *kwnames[] = {
11563 (char *) "self",(char *) "stick", NULL
11564 };
11565
11566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11569 arg2 = (int)SWIG_As_int(obj1);
11570 if (PyErr_Occurred()) SWIG_fail;
11571 {
11572 PyThreadState* __tstate = wxPyBeginAllowThreads();
11573 (arg1)->SetJoystick(arg2);
11574
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 Py_INCREF(Py_None); resultobj = Py_None;
11579 return resultobj;
11580 fail:
11581 return NULL;
11582 }
11583
11584
11585 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj;
11587 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11588 int arg2 ;
11589 PyObject * obj0 = 0 ;
11590 PyObject * obj1 = 0 ;
11591 char *kwnames[] = {
11592 (char *) "self",(char *) "state", NULL
11593 };
11594
11595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11598 arg2 = (int)SWIG_As_int(obj1);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 {
11601 PyThreadState* __tstate = wxPyBeginAllowThreads();
11602 (arg1)->SetButtonState(arg2);
11603
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 Py_INCREF(Py_None); resultobj = Py_None;
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj;
11616 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11617 int arg2 ;
11618 PyObject * obj0 = 0 ;
11619 PyObject * obj1 = 0 ;
11620 char *kwnames[] = {
11621 (char *) "self",(char *) "change", NULL
11622 };
11623
11624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11627 arg2 = (int)SWIG_As_int(obj1);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 {
11630 PyThreadState* __tstate = wxPyBeginAllowThreads();
11631 (arg1)->SetButtonChange(arg2);
11632
11633 wxPyEndAllowThreads(__tstate);
11634 if (PyErr_Occurred()) SWIG_fail;
11635 }
11636 Py_INCREF(Py_None); resultobj = Py_None;
11637 return resultobj;
11638 fail:
11639 return NULL;
11640 }
11641
11642
11643 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11644 PyObject *resultobj;
11645 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11646 wxPoint *arg2 = 0 ;
11647 wxPoint temp2 ;
11648 PyObject * obj0 = 0 ;
11649 PyObject * obj1 = 0 ;
11650 char *kwnames[] = {
11651 (char *) "self",(char *) "pos", NULL
11652 };
11653
11654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11657 {
11658 arg2 = &temp2;
11659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11660 }
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 (arg1)->SetPosition((wxPoint const &)*arg2);
11664
11665 wxPyEndAllowThreads(__tstate);
11666 if (PyErr_Occurred()) SWIG_fail;
11667 }
11668 Py_INCREF(Py_None); resultobj = Py_None;
11669 return resultobj;
11670 fail:
11671 return NULL;
11672 }
11673
11674
11675 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11676 PyObject *resultobj;
11677 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11678 int arg2 ;
11679 PyObject * obj0 = 0 ;
11680 PyObject * obj1 = 0 ;
11681 char *kwnames[] = {
11682 (char *) "self",(char *) "zPos", NULL
11683 };
11684
11685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11688 arg2 = (int)SWIG_As_int(obj1);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
11692 (arg1)->SetZPosition(arg2);
11693
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 }
11697 Py_INCREF(Py_None); resultobj = Py_None;
11698 return resultobj;
11699 fail:
11700 return NULL;
11701 }
11702
11703
11704 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
11705 PyObject *resultobj;
11706 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11707 bool result;
11708 PyObject * obj0 = 0 ;
11709 char *kwnames[] = {
11710 (char *) "self", NULL
11711 };
11712
11713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11716 {
11717 PyThreadState* __tstate = wxPyBeginAllowThreads();
11718 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11719
11720 wxPyEndAllowThreads(__tstate);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 {
11724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11725 }
11726 return resultobj;
11727 fail:
11728 return NULL;
11729 }
11730
11731
11732 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
11733 PyObject *resultobj;
11734 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11735 bool result;
11736 PyObject * obj0 = 0 ;
11737 char *kwnames[] = {
11738 (char *) "self", NULL
11739 };
11740
11741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11744 {
11745 PyThreadState* __tstate = wxPyBeginAllowThreads();
11746 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11747
11748 wxPyEndAllowThreads(__tstate);
11749 if (PyErr_Occurred()) SWIG_fail;
11750 }
11751 {
11752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11753 }
11754 return resultobj;
11755 fail:
11756 return NULL;
11757 }
11758
11759
11760 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
11761 PyObject *resultobj;
11762 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11763 bool result;
11764 PyObject * obj0 = 0 ;
11765 char *kwnames[] = {
11766 (char *) "self", NULL
11767 };
11768
11769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11772 {
11773 PyThreadState* __tstate = wxPyBeginAllowThreads();
11774 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11775
11776 wxPyEndAllowThreads(__tstate);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 }
11779 {
11780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11781 }
11782 return resultobj;
11783 fail:
11784 return NULL;
11785 }
11786
11787
11788 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
11789 PyObject *resultobj;
11790 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11791 int arg2 = (int) wxJOY_BUTTON_ANY ;
11792 bool result;
11793 PyObject * obj0 = 0 ;
11794 PyObject * obj1 = 0 ;
11795 char *kwnames[] = {
11796 (char *) "self",(char *) "but", NULL
11797 };
11798
11799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11802 if (obj1) {
11803 arg2 = (int)SWIG_As_int(obj1);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 {
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11809
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 {
11814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11815 }
11816 return resultobj;
11817 fail:
11818 return NULL;
11819 }
11820
11821
11822 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
11823 PyObject *resultobj;
11824 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11825 int arg2 = (int) wxJOY_BUTTON_ANY ;
11826 bool result;
11827 PyObject * obj0 = 0 ;
11828 PyObject * obj1 = 0 ;
11829 char *kwnames[] = {
11830 (char *) "self",(char *) "but", NULL
11831 };
11832
11833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11836 if (obj1) {
11837 arg2 = (int)SWIG_As_int(obj1);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11843
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 {
11848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11849 }
11850 return resultobj;
11851 fail:
11852 return NULL;
11853 }
11854
11855
11856 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
11857 PyObject *resultobj;
11858 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11859 int arg2 = (int) wxJOY_BUTTON_ANY ;
11860 bool result;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 char *kwnames[] = {
11864 (char *) "self",(char *) "but", NULL
11865 };
11866
11867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11870 if (obj1) {
11871 arg2 = (int)SWIG_As_int(obj1);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11877
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 {
11882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11883 }
11884 return resultobj;
11885 fail:
11886 return NULL;
11887 }
11888
11889
11890 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
11891 PyObject *obj;
11892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11893 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11894 Py_INCREF(obj);
11895 return Py_BuildValue((char *)"");
11896 }
11897 static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj;
11899 wxString const &arg1_defvalue = wxPyEmptyString ;
11900 wxString *arg1 = (wxString *) &arg1_defvalue ;
11901 wxSound *result;
11902 bool temp1 = False ;
11903 PyObject * obj0 = 0 ;
11904 char *kwnames[] = {
11905 (char *) "fileName", NULL
11906 };
11907
11908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11909 if (obj0) {
11910 {
11911 arg1 = wxString_in_helper(obj0);
11912 if (arg1 == NULL) SWIG_fail;
11913 temp1 = True;
11914 }
11915 }
11916 {
11917 if (!wxPyCheckForApp()) SWIG_fail;
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11920
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11925 {
11926 if (temp1)
11927 delete arg1;
11928 }
11929 return resultobj;
11930 fail:
11931 {
11932 if (temp1)
11933 delete arg1;
11934 }
11935 return NULL;
11936 }
11937
11938
11939 static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
11940 PyObject *resultobj;
11941 PyObject *arg1 = (PyObject *) 0 ;
11942 wxSound *result;
11943 PyObject * obj0 = 0 ;
11944 char *kwnames[] = {
11945 (char *) "data", NULL
11946 };
11947
11948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11949 arg1 = obj0;
11950 {
11951 if (!wxPyCheckForApp()) SWIG_fail;
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 result = (wxSound *)new_wxSound(arg1);
11954
11955 wxPyEndAllowThreads(__tstate);
11956 if (PyErr_Occurred()) SWIG_fail;
11957 }
11958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11959 return resultobj;
11960 fail:
11961 return NULL;
11962 }
11963
11964
11965 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11966 PyObject *resultobj;
11967 wxSound *arg1 = (wxSound *) 0 ;
11968 PyObject * obj0 = 0 ;
11969 char *kwnames[] = {
11970 (char *) "self", NULL
11971 };
11972
11973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11976 {
11977 PyThreadState* __tstate = wxPyBeginAllowThreads();
11978 delete arg1;
11979
11980 wxPyEndAllowThreads(__tstate);
11981 if (PyErr_Occurred()) SWIG_fail;
11982 }
11983 Py_INCREF(Py_None); resultobj = Py_None;
11984 return resultobj;
11985 fail:
11986 return NULL;
11987 }
11988
11989
11990 static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj;
11992 wxSound *arg1 = (wxSound *) 0 ;
11993 wxString *arg2 = 0 ;
11994 bool result;
11995 bool temp2 = False ;
11996 PyObject * obj0 = 0 ;
11997 PyObject * obj1 = 0 ;
11998 char *kwnames[] = {
11999 (char *) "self",(char *) "fileName", NULL
12000 };
12001
12002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
12003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12005 {
12006 arg2 = wxString_in_helper(obj1);
12007 if (arg2 == NULL) SWIG_fail;
12008 temp2 = True;
12009 }
12010 {
12011 PyThreadState* __tstate = wxPyBeginAllowThreads();
12012 result = (bool)(arg1)->Create((wxString const &)*arg2);
12013
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 {
12018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12019 }
12020 {
12021 if (temp2)
12022 delete arg2;
12023 }
12024 return resultobj;
12025 fail:
12026 {
12027 if (temp2)
12028 delete arg2;
12029 }
12030 return NULL;
12031 }
12032
12033
12034 static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
12035 PyObject *resultobj;
12036 wxSound *arg1 = (wxSound *) 0 ;
12037 PyObject *arg2 = (PyObject *) 0 ;
12038 bool result;
12039 PyObject * obj0 = 0 ;
12040 PyObject * obj1 = 0 ;
12041 char *kwnames[] = {
12042 (char *) "self",(char *) "data", NULL
12043 };
12044
12045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
12046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12048 arg2 = obj1;
12049 {
12050 PyThreadState* __tstate = wxPyBeginAllowThreads();
12051 result = (bool)wxSound_CreateFromData(arg1,arg2);
12052
12053 wxPyEndAllowThreads(__tstate);
12054 if (PyErr_Occurred()) SWIG_fail;
12055 }
12056 {
12057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12058 }
12059 return resultobj;
12060 fail:
12061 return NULL;
12062 }
12063
12064
12065 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12066 PyObject *resultobj;
12067 wxSound *arg1 = (wxSound *) 0 ;
12068 bool result;
12069 PyObject * obj0 = 0 ;
12070 char *kwnames[] = {
12071 (char *) "self", NULL
12072 };
12073
12074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
12075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12077 {
12078 PyThreadState* __tstate = wxPyBeginAllowThreads();
12079 result = (bool)(arg1)->IsOk();
12080
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 {
12085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12086 }
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxSound *arg1 = (wxSound *) 0 ;
12096 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12097 bool result;
12098 PyObject * obj0 = 0 ;
12099 PyObject * obj1 = 0 ;
12100 char *kwnames[] = {
12101 (char *) "self",(char *) "flags", NULL
12102 };
12103
12104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
12105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12107 if (obj1) {
12108 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 if (!wxPyCheckForApp()) SWIG_fail;
12113 PyThreadState* __tstate = wxPyBeginAllowThreads();
12114 result = (bool)((wxSound const *)arg1)->Play(arg2);
12115
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 {
12120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12121 }
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj;
12130 wxString *arg1 = 0 ;
12131 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12132 bool result;
12133 bool temp1 = False ;
12134 PyObject * obj0 = 0 ;
12135 PyObject * obj1 = 0 ;
12136 char *kwnames[] = {
12137 (char *) "filename",(char *) "flags", NULL
12138 };
12139
12140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
12141 {
12142 arg1 = wxString_in_helper(obj0);
12143 if (arg1 == NULL) SWIG_fail;
12144 temp1 = True;
12145 }
12146 if (obj1) {
12147 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 {
12151 if (!wxPyCheckForApp()) SWIG_fail;
12152 PyThreadState* __tstate = wxPyBeginAllowThreads();
12153 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12154
12155 wxPyEndAllowThreads(__tstate);
12156 if (PyErr_Occurred()) SWIG_fail;
12157 }
12158 {
12159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12160 }
12161 {
12162 if (temp1)
12163 delete arg1;
12164 }
12165 return resultobj;
12166 fail:
12167 {
12168 if (temp1)
12169 delete arg1;
12170 }
12171 return NULL;
12172 }
12173
12174
12175 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
12176 PyObject *resultobj;
12177 char *kwnames[] = {
12178 NULL
12179 };
12180
12181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12182 {
12183 if (!wxPyCheckForApp()) SWIG_fail;
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 wxSound::Stop();
12186
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 Py_INCREF(Py_None); resultobj = Py_None;
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
12198 PyObject *obj;
12199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12200 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12201 Py_INCREF(obj);
12202 return Py_BuildValue((char *)"");
12203 }
12204 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12205 PyObject *resultobj;
12206 wxString *arg1 = 0 ;
12207 wxString *arg2 = 0 ;
12208 wxString *arg3 = 0 ;
12209 wxString *arg4 = 0 ;
12210 wxFileTypeInfo *result;
12211 bool temp1 = False ;
12212 bool temp2 = False ;
12213 bool temp3 = False ;
12214 bool temp4 = False ;
12215 PyObject * obj0 = 0 ;
12216 PyObject * obj1 = 0 ;
12217 PyObject * obj2 = 0 ;
12218 PyObject * obj3 = 0 ;
12219 char *kwnames[] = {
12220 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12221 };
12222
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12224 {
12225 arg1 = wxString_in_helper(obj0);
12226 if (arg1 == NULL) SWIG_fail;
12227 temp1 = True;
12228 }
12229 {
12230 arg2 = wxString_in_helper(obj1);
12231 if (arg2 == NULL) SWIG_fail;
12232 temp2 = True;
12233 }
12234 {
12235 arg3 = wxString_in_helper(obj2);
12236 if (arg3 == NULL) SWIG_fail;
12237 temp3 = True;
12238 }
12239 {
12240 arg4 = wxString_in_helper(obj3);
12241 if (arg4 == NULL) SWIG_fail;
12242 temp4 = True;
12243 }
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12247
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12252 {
12253 if (temp1)
12254 delete arg1;
12255 }
12256 {
12257 if (temp2)
12258 delete arg2;
12259 }
12260 {
12261 if (temp3)
12262 delete arg3;
12263 }
12264 {
12265 if (temp4)
12266 delete arg4;
12267 }
12268 return resultobj;
12269 fail:
12270 {
12271 if (temp1)
12272 delete arg1;
12273 }
12274 {
12275 if (temp2)
12276 delete arg2;
12277 }
12278 {
12279 if (temp3)
12280 delete arg3;
12281 }
12282 {
12283 if (temp4)
12284 delete arg4;
12285 }
12286 return NULL;
12287 }
12288
12289
12290 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
12291 PyObject *resultobj;
12292 wxArrayString *arg1 = 0 ;
12293 wxFileTypeInfo *result;
12294 bool temp1 = False ;
12295 PyObject * obj0 = 0 ;
12296 char *kwnames[] = {
12297 (char *) "sArray", NULL
12298 };
12299
12300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12301 {
12302 if (! PySequence_Check(obj0)) {
12303 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12304 SWIG_fail;
12305 }
12306 arg1 = new wxArrayString;
12307 temp1 = True;
12308 int i, len=PySequence_Length(obj0);
12309 for (i=0; i<len; i++) {
12310 PyObject* item = PySequence_GetItem(obj0, i);
12311 #if wxUSE_UNICODE
12312 PyObject* str = PyObject_Unicode(item);
12313 #else
12314 PyObject* str = PyObject_Str(item);
12315 #endif
12316 if (PyErr_Occurred()) SWIG_fail;
12317 arg1->Add(Py2wxString(str));
12318 Py_DECREF(item);
12319 Py_DECREF(str);
12320 }
12321 }
12322 {
12323 PyThreadState* __tstate = wxPyBeginAllowThreads();
12324 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12325
12326 wxPyEndAllowThreads(__tstate);
12327 if (PyErr_Occurred()) SWIG_fail;
12328 }
12329 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12330 {
12331 if (temp1) delete arg1;
12332 }
12333 return resultobj;
12334 fail:
12335 {
12336 if (temp1) delete arg1;
12337 }
12338 return NULL;
12339 }
12340
12341
12342 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12343 PyObject *resultobj;
12344 wxFileTypeInfo *result;
12345 char *kwnames[] = {
12346 NULL
12347 };
12348
12349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12353
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12358 return resultobj;
12359 fail:
12360 return NULL;
12361 }
12362
12363
12364 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj;
12366 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12367 bool result;
12368 PyObject * obj0 = 0 ;
12369 char *kwnames[] = {
12370 (char *) "self", NULL
12371 };
12372
12373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12379
12380 wxPyEndAllowThreads(__tstate);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 {
12384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12385 }
12386 return resultobj;
12387 fail:
12388 return NULL;
12389 }
12390
12391
12392 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12393 PyObject *resultobj;
12394 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12395 wxString *arg2 = 0 ;
12396 int arg3 = (int) 0 ;
12397 bool temp2 = False ;
12398 PyObject * obj0 = 0 ;
12399 PyObject * obj1 = 0 ;
12400 PyObject * obj2 = 0 ;
12401 char *kwnames[] = {
12402 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12403 };
12404
12405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12408 {
12409 arg2 = wxString_in_helper(obj1);
12410 if (arg2 == NULL) SWIG_fail;
12411 temp2 = True;
12412 }
12413 if (obj2) {
12414 arg3 = (int)SWIG_As_int(obj2);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12420
12421 wxPyEndAllowThreads(__tstate);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 }
12424 Py_INCREF(Py_None); resultobj = Py_None;
12425 {
12426 if (temp2)
12427 delete arg2;
12428 }
12429 return resultobj;
12430 fail:
12431 {
12432 if (temp2)
12433 delete arg2;
12434 }
12435 return NULL;
12436 }
12437
12438
12439 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj;
12441 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12442 wxString *arg2 = 0 ;
12443 bool temp2 = False ;
12444 PyObject * obj0 = 0 ;
12445 PyObject * obj1 = 0 ;
12446 char *kwnames[] = {
12447 (char *) "self",(char *) "shortDesc", NULL
12448 };
12449
12450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12453 {
12454 arg2 = wxString_in_helper(obj1);
12455 if (arg2 == NULL) SWIG_fail;
12456 temp2 = True;
12457 }
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 (arg1)->SetShortDesc((wxString const &)*arg2);
12461
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 Py_INCREF(Py_None); resultobj = Py_None;
12466 {
12467 if (temp2)
12468 delete arg2;
12469 }
12470 return resultobj;
12471 fail:
12472 {
12473 if (temp2)
12474 delete arg2;
12475 }
12476 return NULL;
12477 }
12478
12479
12480 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12481 PyObject *resultobj;
12482 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12483 wxString *result;
12484 PyObject * obj0 = 0 ;
12485 char *kwnames[] = {
12486 (char *) "self", NULL
12487 };
12488
12489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 {
12495 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12496 result = (wxString *) &_result_ref;
12497 }
12498
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 {
12503 #if wxUSE_UNICODE
12504 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12505 #else
12506 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12507 #endif
12508 }
12509 return resultobj;
12510 fail:
12511 return NULL;
12512 }
12513
12514
12515 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12516 PyObject *resultobj;
12517 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12518 wxString *result;
12519 PyObject * obj0 = 0 ;
12520 char *kwnames[] = {
12521 (char *) "self", NULL
12522 };
12523
12524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 {
12530 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12531 result = (wxString *) &_result_ref;
12532 }
12533
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 {
12538 #if wxUSE_UNICODE
12539 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12540 #else
12541 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12542 #endif
12543 }
12544 return resultobj;
12545 fail:
12546 return NULL;
12547 }
12548
12549
12550 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12551 PyObject *resultobj;
12552 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12553 wxString *result;
12554 PyObject * obj0 = 0 ;
12555 char *kwnames[] = {
12556 (char *) "self", NULL
12557 };
12558
12559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12562 {
12563 PyThreadState* __tstate = wxPyBeginAllowThreads();
12564 {
12565 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12566 result = (wxString *) &_result_ref;
12567 }
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 {
12573 #if wxUSE_UNICODE
12574 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12575 #else
12576 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12577 #endif
12578 }
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj;
12587 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12588 wxString *result;
12589 PyObject * obj0 = 0 ;
12590 char *kwnames[] = {
12591 (char *) "self", NULL
12592 };
12593
12594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 {
12600 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12601 result = (wxString *) &_result_ref;
12602 }
12603
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 {
12608 #if wxUSE_UNICODE
12609 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12610 #else
12611 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12612 #endif
12613 }
12614 return resultobj;
12615 fail:
12616 return NULL;
12617 }
12618
12619
12620 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12621 PyObject *resultobj;
12622 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12623 wxString *result;
12624 PyObject * obj0 = 0 ;
12625 char *kwnames[] = {
12626 (char *) "self", NULL
12627 };
12628
12629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 {
12635 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12636 result = (wxString *) &_result_ref;
12637 }
12638
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) SWIG_fail;
12641 }
12642 {
12643 #if wxUSE_UNICODE
12644 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12645 #else
12646 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12647 #endif
12648 }
12649 return resultobj;
12650 fail:
12651 return NULL;
12652 }
12653
12654
12655 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12656 PyObject *resultobj;
12657 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12658 wxArrayString *result;
12659 PyObject * obj0 = 0 ;
12660 char *kwnames[] = {
12661 (char *) "self", NULL
12662 };
12663
12664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12667 {
12668 PyThreadState* __tstate = wxPyBeginAllowThreads();
12669 {
12670 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12671 result = (wxArrayString *) &_result_ref;
12672 }
12673
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 {
12678 resultobj = wxArrayString2PyList_helper(*result);
12679 }
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
12687 PyObject *resultobj;
12688 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12689 int result;
12690 PyObject * obj0 = 0 ;
12691 char *kwnames[] = {
12692 (char *) "self", NULL
12693 };
12694
12695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12701
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 resultobj = SWIG_From_int((int)result);
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_FileTypeInfo_GetIconFile(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_GetIconFile",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)->GetIconFile();
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_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj;
12749 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12750 int result;
12751 PyObject * obj0 = 0 ;
12752 char *kwnames[] = {
12753 (char *) "self", NULL
12754 };
12755
12756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",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 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12762
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) SWIG_fail;
12765 }
12766 resultobj = SWIG_From_int((int)result);
12767 return resultobj;
12768 fail:
12769 return NULL;
12770 }
12771
12772
12773 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
12774 PyObject *obj;
12775 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12776 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12777 Py_INCREF(obj);
12778 return Py_BuildValue((char *)"");
12779 }
12780 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12781 PyObject *resultobj;
12782 wxFileTypeInfo *arg1 = 0 ;
12783 wxFileType *result;
12784 PyObject * obj0 = 0 ;
12785 char *kwnames[] = {
12786 (char *) "ftInfo", NULL
12787 };
12788
12789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12791 SWIG_POINTER_EXCEPTION | 0)) == -1)
12792 SWIG_fail;
12793 if (arg1 == NULL) {
12794 PyErr_SetString(PyExc_TypeError,"null reference");
12795 SWIG_fail;
12796 }
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12800
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj;
12813 wxFileType *arg1 = (wxFileType *) 0 ;
12814 PyObject * obj0 = 0 ;
12815 char *kwnames[] = {
12816 (char *) "self", NULL
12817 };
12818
12819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 delete arg1;
12825
12826 wxPyEndAllowThreads(__tstate);
12827 if (PyErr_Occurred()) SWIG_fail;
12828 }
12829 Py_INCREF(Py_None); resultobj = Py_None;
12830 return resultobj;
12831 fail:
12832 return NULL;
12833 }
12834
12835
12836 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12837 PyObject *resultobj;
12838 wxFileType *arg1 = (wxFileType *) 0 ;
12839 PyObject *result;
12840 PyObject * obj0 = 0 ;
12841 char *kwnames[] = {
12842 (char *) "self", NULL
12843 };
12844
12845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 result = (PyObject *)wxFileType_GetMimeType(arg1);
12851
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 resultobj = result;
12856 return resultobj;
12857 fail:
12858 return NULL;
12859 }
12860
12861
12862 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
12863 PyObject *resultobj;
12864 wxFileType *arg1 = (wxFileType *) 0 ;
12865 PyObject *result;
12866 PyObject * obj0 = 0 ;
12867 char *kwnames[] = {
12868 (char *) "self", NULL
12869 };
12870
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12874 {
12875 PyThreadState* __tstate = wxPyBeginAllowThreads();
12876 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12877
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 resultobj = result;
12882 return resultobj;
12883 fail:
12884 return NULL;
12885 }
12886
12887
12888 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12889 PyObject *resultobj;
12890 wxFileType *arg1 = (wxFileType *) 0 ;
12891 PyObject *result;
12892 PyObject * obj0 = 0 ;
12893 char *kwnames[] = {
12894 (char *) "self", NULL
12895 };
12896
12897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12900 {
12901 PyThreadState* __tstate = wxPyBeginAllowThreads();
12902 result = (PyObject *)wxFileType_GetExtensions(arg1);
12903
12904 wxPyEndAllowThreads(__tstate);
12905 if (PyErr_Occurred()) SWIG_fail;
12906 }
12907 resultobj = result;
12908 return resultobj;
12909 fail:
12910 return NULL;
12911 }
12912
12913
12914 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12915 PyObject *resultobj;
12916 wxFileType *arg1 = (wxFileType *) 0 ;
12917 wxIcon *result;
12918 PyObject * obj0 = 0 ;
12919 char *kwnames[] = {
12920 (char *) "self", NULL
12921 };
12922
12923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 result = (wxIcon *)wxFileType_GetIcon(arg1);
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12934 return resultobj;
12935 fail:
12936 return NULL;
12937 }
12938
12939
12940 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxFileType *arg1 = (wxFileType *) 0 ;
12943 PyObject *result;
12944 PyObject * obj0 = 0 ;
12945 char *kwnames[] = {
12946 (char *) "self", NULL
12947 };
12948
12949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12952 {
12953 PyThreadState* __tstate = wxPyBeginAllowThreads();
12954 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12955
12956 wxPyEndAllowThreads(__tstate);
12957 if (PyErr_Occurred()) SWIG_fail;
12958 }
12959 resultobj = result;
12960 return resultobj;
12961 fail:
12962 return NULL;
12963 }
12964
12965
12966 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12967 PyObject *resultobj;
12968 wxFileType *arg1 = (wxFileType *) 0 ;
12969 PyObject *result;
12970 PyObject * obj0 = 0 ;
12971 char *kwnames[] = {
12972 (char *) "self", NULL
12973 };
12974
12975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 result = (PyObject *)wxFileType_GetDescription(arg1);
12981
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 resultobj = result;
12986 return resultobj;
12987 fail:
12988 return NULL;
12989 }
12990
12991
12992 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj;
12994 wxFileType *arg1 = (wxFileType *) 0 ;
12995 wxString *arg2 = 0 ;
12996 wxString const &arg3_defvalue = wxPyEmptyString ;
12997 wxString *arg3 = (wxString *) &arg3_defvalue ;
12998 PyObject *result;
12999 bool temp2 = False ;
13000 bool temp3 = False ;
13001 PyObject * obj0 = 0 ;
13002 PyObject * obj1 = 0 ;
13003 PyObject * obj2 = 0 ;
13004 char *kwnames[] = {
13005 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13006 };
13007
13008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13011 {
13012 arg2 = wxString_in_helper(obj1);
13013 if (arg2 == NULL) SWIG_fail;
13014 temp2 = True;
13015 }
13016 if (obj2) {
13017 {
13018 arg3 = wxString_in_helper(obj2);
13019 if (arg3 == NULL) SWIG_fail;
13020 temp3 = True;
13021 }
13022 }
13023 {
13024 PyThreadState* __tstate = wxPyBeginAllowThreads();
13025 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13026
13027 wxPyEndAllowThreads(__tstate);
13028 if (PyErr_Occurred()) SWIG_fail;
13029 }
13030 resultobj = result;
13031 {
13032 if (temp2)
13033 delete arg2;
13034 }
13035 {
13036 if (temp3)
13037 delete arg3;
13038 }
13039 return resultobj;
13040 fail:
13041 {
13042 if (temp2)
13043 delete arg2;
13044 }
13045 {
13046 if (temp3)
13047 delete arg3;
13048 }
13049 return NULL;
13050 }
13051
13052
13053 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj;
13055 wxFileType *arg1 = (wxFileType *) 0 ;
13056 wxString *arg2 = 0 ;
13057 wxString const &arg3_defvalue = wxPyEmptyString ;
13058 wxString *arg3 = (wxString *) &arg3_defvalue ;
13059 PyObject *result;
13060 bool temp2 = False ;
13061 bool temp3 = False ;
13062 PyObject * obj0 = 0 ;
13063 PyObject * obj1 = 0 ;
13064 PyObject * obj2 = 0 ;
13065 char *kwnames[] = {
13066 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13067 };
13068
13069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13072 {
13073 arg2 = wxString_in_helper(obj1);
13074 if (arg2 == NULL) SWIG_fail;
13075 temp2 = True;
13076 }
13077 if (obj2) {
13078 {
13079 arg3 = wxString_in_helper(obj2);
13080 if (arg3 == NULL) SWIG_fail;
13081 temp3 = True;
13082 }
13083 }
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13087
13088 wxPyEndAllowThreads(__tstate);
13089 if (PyErr_Occurred()) SWIG_fail;
13090 }
13091 resultobj = result;
13092 {
13093 if (temp2)
13094 delete arg2;
13095 }
13096 {
13097 if (temp3)
13098 delete arg3;
13099 }
13100 return resultobj;
13101 fail:
13102 {
13103 if (temp2)
13104 delete arg2;
13105 }
13106 {
13107 if (temp3)
13108 delete arg3;
13109 }
13110 return NULL;
13111 }
13112
13113
13114 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
13115 PyObject *resultobj;
13116 wxFileType *arg1 = (wxFileType *) 0 ;
13117 wxString *arg2 = 0 ;
13118 wxString const &arg3_defvalue = wxPyEmptyString ;
13119 wxString *arg3 = (wxString *) &arg3_defvalue ;
13120 PyObject *result;
13121 bool temp2 = False ;
13122 bool temp3 = False ;
13123 PyObject * obj0 = 0 ;
13124 PyObject * obj1 = 0 ;
13125 PyObject * obj2 = 0 ;
13126 char *kwnames[] = {
13127 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13128 };
13129
13130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
13131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13133 {
13134 arg2 = wxString_in_helper(obj1);
13135 if (arg2 == NULL) SWIG_fail;
13136 temp2 = True;
13137 }
13138 if (obj2) {
13139 {
13140 arg3 = wxString_in_helper(obj2);
13141 if (arg3 == NULL) SWIG_fail;
13142 temp3 = True;
13143 }
13144 }
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13148
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 resultobj = result;
13153 {
13154 if (temp2)
13155 delete arg2;
13156 }
13157 {
13158 if (temp3)
13159 delete arg3;
13160 }
13161 return resultobj;
13162 fail:
13163 {
13164 if (temp2)
13165 delete arg2;
13166 }
13167 {
13168 if (temp3)
13169 delete arg3;
13170 }
13171 return NULL;
13172 }
13173
13174
13175 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13176 PyObject *resultobj;
13177 wxFileType *arg1 = (wxFileType *) 0 ;
13178 wxString *arg2 = 0 ;
13179 wxString *arg3 = 0 ;
13180 bool arg4 = (bool) True ;
13181 bool result;
13182 bool temp2 = False ;
13183 bool temp3 = False ;
13184 PyObject * obj0 = 0 ;
13185 PyObject * obj1 = 0 ;
13186 PyObject * obj2 = 0 ;
13187 PyObject * obj3 = 0 ;
13188 char *kwnames[] = {
13189 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13190 };
13191
13192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13195 {
13196 arg2 = wxString_in_helper(obj1);
13197 if (arg2 == NULL) SWIG_fail;
13198 temp2 = True;
13199 }
13200 {
13201 arg3 = wxString_in_helper(obj2);
13202 if (arg3 == NULL) SWIG_fail;
13203 temp3 = True;
13204 }
13205 if (obj3) {
13206 arg4 = (bool)SWIG_As_bool(obj3);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 }
13209 {
13210 PyThreadState* __tstate = wxPyBeginAllowThreads();
13211 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13212
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 {
13217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13218 }
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_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxFileType *arg1 = (wxFileType *) 0 ;
13244 wxString const &arg2_defvalue = wxPyEmptyString ;
13245 wxString *arg2 = (wxString *) &arg2_defvalue ;
13246 int arg3 = (int) 0 ;
13247 bool result;
13248 bool temp2 = False ;
13249 PyObject * obj0 = 0 ;
13250 PyObject * obj1 = 0 ;
13251 PyObject * obj2 = 0 ;
13252 char *kwnames[] = {
13253 (char *) "self",(char *) "cmd",(char *) "index", NULL
13254 };
13255
13256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13259 if (obj1) {
13260 {
13261 arg2 = wxString_in_helper(obj1);
13262 if (arg2 == NULL) SWIG_fail;
13263 temp2 = True;
13264 }
13265 }
13266 if (obj2) {
13267 arg3 = (int)SWIG_As_int(obj2);
13268 if (PyErr_Occurred()) SWIG_fail;
13269 }
13270 {
13271 PyThreadState* __tstate = wxPyBeginAllowThreads();
13272 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13273
13274 wxPyEndAllowThreads(__tstate);
13275 if (PyErr_Occurred()) SWIG_fail;
13276 }
13277 {
13278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13279 }
13280 {
13281 if (temp2)
13282 delete arg2;
13283 }
13284 return resultobj;
13285 fail:
13286 {
13287 if (temp2)
13288 delete arg2;
13289 }
13290 return NULL;
13291 }
13292
13293
13294 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13295 PyObject *resultobj;
13296 wxFileType *arg1 = (wxFileType *) 0 ;
13297 bool result;
13298 PyObject * obj0 = 0 ;
13299 char *kwnames[] = {
13300 (char *) "self", NULL
13301 };
13302
13303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (bool)(arg1)->Unassociate();
13309
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 {
13314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13315 }
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxString *arg1 = 0 ;
13325 wxString *arg2 = 0 ;
13326 wxString const &arg3_defvalue = wxPyEmptyString ;
13327 wxString *arg3 = (wxString *) &arg3_defvalue ;
13328 wxString result;
13329 bool temp1 = False ;
13330 bool temp2 = False ;
13331 bool temp3 = False ;
13332 PyObject * obj0 = 0 ;
13333 PyObject * obj1 = 0 ;
13334 PyObject * obj2 = 0 ;
13335 char *kwnames[] = {
13336 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13337 };
13338
13339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13340 {
13341 arg1 = wxString_in_helper(obj0);
13342 if (arg1 == NULL) SWIG_fail;
13343 temp1 = True;
13344 }
13345 {
13346 arg2 = wxString_in_helper(obj1);
13347 if (arg2 == NULL) SWIG_fail;
13348 temp2 = True;
13349 }
13350 if (obj2) {
13351 {
13352 arg3 = wxString_in_helper(obj2);
13353 if (arg3 == NULL) SWIG_fail;
13354 temp3 = True;
13355 }
13356 }
13357 {
13358 PyThreadState* __tstate = wxPyBeginAllowThreads();
13359 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13360
13361 wxPyEndAllowThreads(__tstate);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 }
13364 {
13365 #if wxUSE_UNICODE
13366 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13367 #else
13368 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13369 #endif
13370 }
13371 {
13372 if (temp1)
13373 delete arg1;
13374 }
13375 {
13376 if (temp2)
13377 delete arg2;
13378 }
13379 {
13380 if (temp3)
13381 delete arg3;
13382 }
13383 return resultobj;
13384 fail:
13385 {
13386 if (temp1)
13387 delete arg1;
13388 }
13389 {
13390 if (temp2)
13391 delete arg2;
13392 }
13393 {
13394 if (temp3)
13395 delete arg3;
13396 }
13397 return NULL;
13398 }
13399
13400
13401 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
13402 PyObject *obj;
13403 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13404 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13405 Py_INCREF(obj);
13406 return Py_BuildValue((char *)"");
13407 }
13408 static int _wrap_TheMimeTypesManager_set(PyObject *) {
13409 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13410 return 1;
13411 }
13412
13413
13414 static PyObject *_wrap_TheMimeTypesManager_get() {
13415 PyObject *pyobj;
13416
13417 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13418 return pyobj;
13419 }
13420
13421
13422 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj;
13424 wxString *arg1 = 0 ;
13425 wxString *arg2 = 0 ;
13426 bool result;
13427 bool temp1 = False ;
13428 bool temp2 = False ;
13429 PyObject * obj0 = 0 ;
13430 PyObject * obj1 = 0 ;
13431 char *kwnames[] = {
13432 (char *) "mimeType",(char *) "wildcard", NULL
13433 };
13434
13435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13436 {
13437 arg1 = wxString_in_helper(obj0);
13438 if (arg1 == NULL) SWIG_fail;
13439 temp1 = True;
13440 }
13441 {
13442 arg2 = wxString_in_helper(obj1);
13443 if (arg2 == NULL) SWIG_fail;
13444 temp2 = True;
13445 }
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13449
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 {
13454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13455 }
13456 {
13457 if (temp1)
13458 delete arg1;
13459 }
13460 {
13461 if (temp2)
13462 delete arg2;
13463 }
13464 return resultobj;
13465 fail:
13466 {
13467 if (temp1)
13468 delete arg1;
13469 }
13470 {
13471 if (temp2)
13472 delete arg2;
13473 }
13474 return NULL;
13475 }
13476
13477
13478 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13479 PyObject *resultobj;
13480 wxMimeTypesManager *result;
13481 char *kwnames[] = {
13482 NULL
13483 };
13484
13485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13486 {
13487 PyThreadState* __tstate = wxPyBeginAllowThreads();
13488 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13489
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13503 int arg2 = (int) wxMAILCAP_ALL ;
13504 wxString const &arg3_defvalue = wxPyEmptyString ;
13505 wxString *arg3 = (wxString *) &arg3_defvalue ;
13506 bool temp3 = False ;
13507 PyObject * obj0 = 0 ;
13508 PyObject * obj1 = 0 ;
13509 PyObject * obj2 = 0 ;
13510 char *kwnames[] = {
13511 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13512 };
13513
13514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13517 if (obj1) {
13518 arg2 = (int)SWIG_As_int(obj1);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 if (obj2) {
13522 {
13523 arg3 = wxString_in_helper(obj2);
13524 if (arg3 == NULL) SWIG_fail;
13525 temp3 = True;
13526 }
13527 }
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 Py_INCREF(Py_None); resultobj = Py_None;
13536 {
13537 if (temp3)
13538 delete arg3;
13539 }
13540 return resultobj;
13541 fail:
13542 {
13543 if (temp3)
13544 delete arg3;
13545 }
13546 return NULL;
13547 }
13548
13549
13550 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
13551 PyObject *resultobj;
13552 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13553 PyObject * obj0 = 0 ;
13554 char *kwnames[] = {
13555 (char *) "self", NULL
13556 };
13557
13558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13561 {
13562 PyThreadState* __tstate = wxPyBeginAllowThreads();
13563 (arg1)->ClearData();
13564
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 Py_INCREF(Py_None); resultobj = Py_None;
13569 return resultobj;
13570 fail:
13571 return NULL;
13572 }
13573
13574
13575 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj;
13577 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13578 wxString *arg2 = 0 ;
13579 wxFileType *result;
13580 bool temp2 = False ;
13581 PyObject * obj0 = 0 ;
13582 PyObject * obj1 = 0 ;
13583 char *kwnames[] = {
13584 (char *) "self",(char *) "ext", NULL
13585 };
13586
13587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13590 {
13591 arg2 = wxString_in_helper(obj1);
13592 if (arg2 == NULL) SWIG_fail;
13593 temp2 = True;
13594 }
13595 {
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13598
13599 wxPyEndAllowThreads(__tstate);
13600 if (PyErr_Occurred()) SWIG_fail;
13601 }
13602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13603 {
13604 if (temp2)
13605 delete arg2;
13606 }
13607 return resultobj;
13608 fail:
13609 {
13610 if (temp2)
13611 delete arg2;
13612 }
13613 return NULL;
13614 }
13615
13616
13617 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13620 wxString *arg2 = 0 ;
13621 wxFileType *result;
13622 bool temp2 = False ;
13623 PyObject * obj0 = 0 ;
13624 PyObject * obj1 = 0 ;
13625 char *kwnames[] = {
13626 (char *) "self",(char *) "mimeType", NULL
13627 };
13628
13629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13632 {
13633 arg2 = wxString_in_helper(obj1);
13634 if (arg2 == NULL) SWIG_fail;
13635 temp2 = True;
13636 }
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13640
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13645 {
13646 if (temp2)
13647 delete arg2;
13648 }
13649 return resultobj;
13650 fail:
13651 {
13652 if (temp2)
13653 delete arg2;
13654 }
13655 return NULL;
13656 }
13657
13658
13659 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj;
13661 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13662 wxString *arg2 = 0 ;
13663 bool arg3 = (bool) False ;
13664 bool result;
13665 bool temp2 = False ;
13666 PyObject * obj0 = 0 ;
13667 PyObject * obj1 = 0 ;
13668 PyObject * obj2 = 0 ;
13669 char *kwnames[] = {
13670 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13671 };
13672
13673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13676 {
13677 arg2 = wxString_in_helper(obj1);
13678 if (arg2 == NULL) SWIG_fail;
13679 temp2 = True;
13680 }
13681 if (obj2) {
13682 arg3 = (bool)SWIG_As_bool(obj2);
13683 if (PyErr_Occurred()) SWIG_fail;
13684 }
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13688
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 {
13693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13694 }
13695 {
13696 if (temp2)
13697 delete arg2;
13698 }
13699 return resultobj;
13700 fail:
13701 {
13702 if (temp2)
13703 delete arg2;
13704 }
13705 return NULL;
13706 }
13707
13708
13709 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13710 PyObject *resultobj;
13711 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13712 wxString *arg2 = 0 ;
13713 bool result;
13714 bool temp2 = False ;
13715 PyObject * obj0 = 0 ;
13716 PyObject * obj1 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self",(char *) "filename", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13724 {
13725 arg2 = wxString_in_helper(obj1);
13726 if (arg2 == NULL) SWIG_fail;
13727 temp2 = True;
13728 }
13729 {
13730 PyThreadState* __tstate = wxPyBeginAllowThreads();
13731 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13732
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 {
13737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13738 }
13739 {
13740 if (temp2)
13741 delete arg2;
13742 }
13743 return resultobj;
13744 fail:
13745 {
13746 if (temp2)
13747 delete arg2;
13748 }
13749 return NULL;
13750 }
13751
13752
13753 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13754 PyObject *resultobj;
13755 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13756 PyObject *result;
13757 PyObject * obj0 = 0 ;
13758 char *kwnames[] = {
13759 (char *) "self", NULL
13760 };
13761
13762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13765 {
13766 PyThreadState* __tstate = wxPyBeginAllowThreads();
13767 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13768
13769 wxPyEndAllowThreads(__tstate);
13770 if (PyErr_Occurred()) SWIG_fail;
13771 }
13772 resultobj = result;
13773 return resultobj;
13774 fail:
13775 return NULL;
13776 }
13777
13778
13779 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
13780 PyObject *resultobj;
13781 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13782 wxFileTypeInfo *arg2 = 0 ;
13783 PyObject * obj0 = 0 ;
13784 PyObject * obj1 = 0 ;
13785 char *kwnames[] = {
13786 (char *) "self",(char *) "ft", NULL
13787 };
13788
13789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13793 SWIG_POINTER_EXCEPTION | 0)) == -1)
13794 SWIG_fail;
13795 if (arg2 == NULL) {
13796 PyErr_SetString(PyExc_TypeError,"null reference");
13797 SWIG_fail;
13798 }
13799 {
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13802
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 Py_INCREF(Py_None); resultobj = Py_None;
13807 return resultobj;
13808 fail:
13809 return NULL;
13810 }
13811
13812
13813 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
13814 PyObject *resultobj;
13815 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13816 wxFileTypeInfo *arg2 = 0 ;
13817 wxFileType *result;
13818 PyObject * obj0 = 0 ;
13819 PyObject * obj1 = 0 ;
13820 char *kwnames[] = {
13821 (char *) "self",(char *) "ftInfo", NULL
13822 };
13823
13824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13828 SWIG_POINTER_EXCEPTION | 0)) == -1)
13829 SWIG_fail;
13830 if (arg2 == NULL) {
13831 PyErr_SetString(PyExc_TypeError,"null reference");
13832 SWIG_fail;
13833 }
13834 {
13835 PyThreadState* __tstate = wxPyBeginAllowThreads();
13836 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13837
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13842 return resultobj;
13843 fail:
13844 return NULL;
13845 }
13846
13847
13848 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj;
13850 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13851 wxFileType *arg2 = (wxFileType *) 0 ;
13852 bool result;
13853 PyObject * obj0 = 0 ;
13854 PyObject * obj1 = 0 ;
13855 char *kwnames[] = {
13856 (char *) "self",(char *) "ft", NULL
13857 };
13858
13859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13864 {
13865 PyThreadState* __tstate = wxPyBeginAllowThreads();
13866 result = (bool)(arg1)->Unassociate(arg2);
13867
13868 wxPyEndAllowThreads(__tstate);
13869 if (PyErr_Occurred()) SWIG_fail;
13870 }
13871 {
13872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13873 }
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj;
13882 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13883 PyObject * obj0 = 0 ;
13884 char *kwnames[] = {
13885 (char *) "self", NULL
13886 };
13887
13888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13891 {
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
13893 delete arg1;
13894
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 Py_INCREF(Py_None); resultobj = Py_None;
13899 return resultobj;
13900 fail:
13901 return NULL;
13902 }
13903
13904
13905 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
13906 PyObject *obj;
13907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13908 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13909 Py_INCREF(obj);
13910 return Py_BuildValue((char *)"");
13911 }
13912 static int _wrap_ART_TOOLBAR_set(PyObject *) {
13913 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13914 return 1;
13915 }
13916
13917
13918 static PyObject *_wrap_ART_TOOLBAR_get() {
13919 PyObject *pyobj;
13920
13921 {
13922 #if wxUSE_UNICODE
13923 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13924 #else
13925 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13926 #endif
13927 }
13928 return pyobj;
13929 }
13930
13931
13932 static int _wrap_ART_MENU_set(PyObject *) {
13933 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13934 return 1;
13935 }
13936
13937
13938 static PyObject *_wrap_ART_MENU_get() {
13939 PyObject *pyobj;
13940
13941 {
13942 #if wxUSE_UNICODE
13943 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13944 #else
13945 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13946 #endif
13947 }
13948 return pyobj;
13949 }
13950
13951
13952 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
13953 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13954 return 1;
13955 }
13956
13957
13958 static PyObject *_wrap_ART_FRAME_ICON_get() {
13959 PyObject *pyobj;
13960
13961 {
13962 #if wxUSE_UNICODE
13963 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13964 #else
13965 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13966 #endif
13967 }
13968 return pyobj;
13969 }
13970
13971
13972 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
13973 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13974 return 1;
13975 }
13976
13977
13978 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13979 PyObject *pyobj;
13980
13981 {
13982 #if wxUSE_UNICODE
13983 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13984 #else
13985 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13986 #endif
13987 }
13988 return pyobj;
13989 }
13990
13991
13992 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
13993 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13994 return 1;
13995 }
13996
13997
13998 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13999 PyObject *pyobj;
14000
14001 {
14002 #if wxUSE_UNICODE
14003 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14004 #else
14005 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14006 #endif
14007 }
14008 return pyobj;
14009 }
14010
14011
14012 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
14013 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
14014 return 1;
14015 }
14016
14017
14018 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
14019 PyObject *pyobj;
14020
14021 {
14022 #if wxUSE_UNICODE
14023 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14024 #else
14025 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14026 #endif
14027 }
14028 return pyobj;
14029 }
14030
14031
14032 static int _wrap_ART_BUTTON_set(PyObject *) {
14033 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
14034 return 1;
14035 }
14036
14037
14038 static PyObject *_wrap_ART_BUTTON_get() {
14039 PyObject *pyobj;
14040
14041 {
14042 #if wxUSE_UNICODE
14043 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14044 #else
14045 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14046 #endif
14047 }
14048 return pyobj;
14049 }
14050
14051
14052 static int _wrap_ART_OTHER_set(PyObject *) {
14053 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
14054 return 1;
14055 }
14056
14057
14058 static PyObject *_wrap_ART_OTHER_get() {
14059 PyObject *pyobj;
14060
14061 {
14062 #if wxUSE_UNICODE
14063 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14064 #else
14065 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14066 #endif
14067 }
14068 return pyobj;
14069 }
14070
14071
14072 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
14073 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
14074 return 1;
14075 }
14076
14077
14078 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
14079 PyObject *pyobj;
14080
14081 {
14082 #if wxUSE_UNICODE
14083 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14084 #else
14085 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14086 #endif
14087 }
14088 return pyobj;
14089 }
14090
14091
14092 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
14093 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
14094 return 1;
14095 }
14096
14097
14098 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
14099 PyObject *pyobj;
14100
14101 {
14102 #if wxUSE_UNICODE
14103 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14104 #else
14105 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14106 #endif
14107 }
14108 return pyobj;
14109 }
14110
14111
14112 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
14113 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
14114 return 1;
14115 }
14116
14117
14118 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
14119 PyObject *pyobj;
14120
14121 {
14122 #if wxUSE_UNICODE
14123 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14124 #else
14125 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14126 #endif
14127 }
14128 return pyobj;
14129 }
14130
14131
14132 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
14133 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
14134 return 1;
14135 }
14136
14137
14138 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14139 PyObject *pyobj;
14140
14141 {
14142 #if wxUSE_UNICODE
14143 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14144 #else
14145 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14146 #endif
14147 }
14148 return pyobj;
14149 }
14150
14151
14152 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
14153 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14154 return 1;
14155 }
14156
14157
14158 static PyObject *_wrap_ART_HELP_BOOK_get() {
14159 PyObject *pyobj;
14160
14161 {
14162 #if wxUSE_UNICODE
14163 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14164 #else
14165 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14166 #endif
14167 }
14168 return pyobj;
14169 }
14170
14171
14172 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
14173 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14174 return 1;
14175 }
14176
14177
14178 static PyObject *_wrap_ART_HELP_FOLDER_get() {
14179 PyObject *pyobj;
14180
14181 {
14182 #if wxUSE_UNICODE
14183 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14184 #else
14185 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14186 #endif
14187 }
14188 return pyobj;
14189 }
14190
14191
14192 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
14193 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14194 return 1;
14195 }
14196
14197
14198 static PyObject *_wrap_ART_HELP_PAGE_get() {
14199 PyObject *pyobj;
14200
14201 {
14202 #if wxUSE_UNICODE
14203 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14204 #else
14205 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14206 #endif
14207 }
14208 return pyobj;
14209 }
14210
14211
14212 static int _wrap_ART_GO_BACK_set(PyObject *) {
14213 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14214 return 1;
14215 }
14216
14217
14218 static PyObject *_wrap_ART_GO_BACK_get() {
14219 PyObject *pyobj;
14220
14221 {
14222 #if wxUSE_UNICODE
14223 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14224 #else
14225 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14226 #endif
14227 }
14228 return pyobj;
14229 }
14230
14231
14232 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
14233 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14234 return 1;
14235 }
14236
14237
14238 static PyObject *_wrap_ART_GO_FORWARD_get() {
14239 PyObject *pyobj;
14240
14241 {
14242 #if wxUSE_UNICODE
14243 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14244 #else
14245 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14246 #endif
14247 }
14248 return pyobj;
14249 }
14250
14251
14252 static int _wrap_ART_GO_UP_set(PyObject *) {
14253 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14254 return 1;
14255 }
14256
14257
14258 static PyObject *_wrap_ART_GO_UP_get() {
14259 PyObject *pyobj;
14260
14261 {
14262 #if wxUSE_UNICODE
14263 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14264 #else
14265 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14266 #endif
14267 }
14268 return pyobj;
14269 }
14270
14271
14272 static int _wrap_ART_GO_DOWN_set(PyObject *) {
14273 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14274 return 1;
14275 }
14276
14277
14278 static PyObject *_wrap_ART_GO_DOWN_get() {
14279 PyObject *pyobj;
14280
14281 {
14282 #if wxUSE_UNICODE
14283 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14284 #else
14285 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14286 #endif
14287 }
14288 return pyobj;
14289 }
14290
14291
14292 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
14293 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14294 return 1;
14295 }
14296
14297
14298 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14299 PyObject *pyobj;
14300
14301 {
14302 #if wxUSE_UNICODE
14303 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14304 #else
14305 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14306 #endif
14307 }
14308 return pyobj;
14309 }
14310
14311
14312 static int _wrap_ART_GO_HOME_set(PyObject *) {
14313 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14314 return 1;
14315 }
14316
14317
14318 static PyObject *_wrap_ART_GO_HOME_get() {
14319 PyObject *pyobj;
14320
14321 {
14322 #if wxUSE_UNICODE
14323 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14324 #else
14325 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14326 #endif
14327 }
14328 return pyobj;
14329 }
14330
14331
14332 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
14333 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14334 return 1;
14335 }
14336
14337
14338 static PyObject *_wrap_ART_FILE_OPEN_get() {
14339 PyObject *pyobj;
14340
14341 {
14342 #if wxUSE_UNICODE
14343 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14344 #else
14345 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14346 #endif
14347 }
14348 return pyobj;
14349 }
14350
14351
14352 static int _wrap_ART_PRINT_set(PyObject *) {
14353 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14354 return 1;
14355 }
14356
14357
14358 static PyObject *_wrap_ART_PRINT_get() {
14359 PyObject *pyobj;
14360
14361 {
14362 #if wxUSE_UNICODE
14363 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14364 #else
14365 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14366 #endif
14367 }
14368 return pyobj;
14369 }
14370
14371
14372 static int _wrap_ART_HELP_set(PyObject *) {
14373 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14374 return 1;
14375 }
14376
14377
14378 static PyObject *_wrap_ART_HELP_get() {
14379 PyObject *pyobj;
14380
14381 {
14382 #if wxUSE_UNICODE
14383 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14384 #else
14385 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14386 #endif
14387 }
14388 return pyobj;
14389 }
14390
14391
14392 static int _wrap_ART_TIP_set(PyObject *) {
14393 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14394 return 1;
14395 }
14396
14397
14398 static PyObject *_wrap_ART_TIP_get() {
14399 PyObject *pyobj;
14400
14401 {
14402 #if wxUSE_UNICODE
14403 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14404 #else
14405 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14406 #endif
14407 }
14408 return pyobj;
14409 }
14410
14411
14412 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
14413 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14414 return 1;
14415 }
14416
14417
14418 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14419 PyObject *pyobj;
14420
14421 {
14422 #if wxUSE_UNICODE
14423 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14424 #else
14425 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14426 #endif
14427 }
14428 return pyobj;
14429 }
14430
14431
14432 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
14433 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14434 return 1;
14435 }
14436
14437
14438 static PyObject *_wrap_ART_LIST_VIEW_get() {
14439 PyObject *pyobj;
14440
14441 {
14442 #if wxUSE_UNICODE
14443 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14444 #else
14445 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14446 #endif
14447 }
14448 return pyobj;
14449 }
14450
14451
14452 static int _wrap_ART_NEW_DIR_set(PyObject *) {
14453 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14454 return 1;
14455 }
14456
14457
14458 static PyObject *_wrap_ART_NEW_DIR_get() {
14459 PyObject *pyobj;
14460
14461 {
14462 #if wxUSE_UNICODE
14463 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14464 #else
14465 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14466 #endif
14467 }
14468 return pyobj;
14469 }
14470
14471
14472 static int _wrap_ART_FOLDER_set(PyObject *) {
14473 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14474 return 1;
14475 }
14476
14477
14478 static PyObject *_wrap_ART_FOLDER_get() {
14479 PyObject *pyobj;
14480
14481 {
14482 #if wxUSE_UNICODE
14483 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14484 #else
14485 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14486 #endif
14487 }
14488 return pyobj;
14489 }
14490
14491
14492 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
14493 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14494 return 1;
14495 }
14496
14497
14498 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14499 PyObject *pyobj;
14500
14501 {
14502 #if wxUSE_UNICODE
14503 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14504 #else
14505 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14506 #endif
14507 }
14508 return pyobj;
14509 }
14510
14511
14512 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
14513 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14514 return 1;
14515 }
14516
14517
14518 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14519 PyObject *pyobj;
14520
14521 {
14522 #if wxUSE_UNICODE
14523 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14524 #else
14525 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14526 #endif
14527 }
14528 return pyobj;
14529 }
14530
14531
14532 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
14533 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14534 return 1;
14535 }
14536
14537
14538 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14539 PyObject *pyobj;
14540
14541 {
14542 #if wxUSE_UNICODE
14543 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14544 #else
14545 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14546 #endif
14547 }
14548 return pyobj;
14549 }
14550
14551
14552 static int _wrap_ART_TICK_MARK_set(PyObject *) {
14553 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14554 return 1;
14555 }
14556
14557
14558 static PyObject *_wrap_ART_TICK_MARK_get() {
14559 PyObject *pyobj;
14560
14561 {
14562 #if wxUSE_UNICODE
14563 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14564 #else
14565 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14566 #endif
14567 }
14568 return pyobj;
14569 }
14570
14571
14572 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
14573 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14574 return 1;
14575 }
14576
14577
14578 static PyObject *_wrap_ART_CROSS_MARK_get() {
14579 PyObject *pyobj;
14580
14581 {
14582 #if wxUSE_UNICODE
14583 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14584 #else
14585 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14586 #endif
14587 }
14588 return pyobj;
14589 }
14590
14591
14592 static int _wrap_ART_ERROR_set(PyObject *) {
14593 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14594 return 1;
14595 }
14596
14597
14598 static PyObject *_wrap_ART_ERROR_get() {
14599 PyObject *pyobj;
14600
14601 {
14602 #if wxUSE_UNICODE
14603 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14604 #else
14605 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14606 #endif
14607 }
14608 return pyobj;
14609 }
14610
14611
14612 static int _wrap_ART_QUESTION_set(PyObject *) {
14613 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14614 return 1;
14615 }
14616
14617
14618 static PyObject *_wrap_ART_QUESTION_get() {
14619 PyObject *pyobj;
14620
14621 {
14622 #if wxUSE_UNICODE
14623 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14624 #else
14625 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14626 #endif
14627 }
14628 return pyobj;
14629 }
14630
14631
14632 static int _wrap_ART_WARNING_set(PyObject *) {
14633 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14634 return 1;
14635 }
14636
14637
14638 static PyObject *_wrap_ART_WARNING_get() {
14639 PyObject *pyobj;
14640
14641 {
14642 #if wxUSE_UNICODE
14643 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14644 #else
14645 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14646 #endif
14647 }
14648 return pyobj;
14649 }
14650
14651
14652 static int _wrap_ART_INFORMATION_set(PyObject *) {
14653 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14654 return 1;
14655 }
14656
14657
14658 static PyObject *_wrap_ART_INFORMATION_get() {
14659 PyObject *pyobj;
14660
14661 {
14662 #if wxUSE_UNICODE
14663 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14664 #else
14665 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14666 #endif
14667 }
14668 return pyobj;
14669 }
14670
14671
14672 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
14673 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14674 return 1;
14675 }
14676
14677
14678 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14679 PyObject *pyobj;
14680
14681 {
14682 #if wxUSE_UNICODE
14683 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14684 #else
14685 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14686 #endif
14687 }
14688 return pyobj;
14689 }
14690
14691
14692 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14693 PyObject *resultobj;
14694 wxPyArtProvider *result;
14695 char *kwnames[] = {
14696 NULL
14697 };
14698
14699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14700 {
14701 if (!wxPyCheckForApp()) SWIG_fail;
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 result = (wxPyArtProvider *)new wxPyArtProvider();
14704
14705 wxPyEndAllowThreads(__tstate);
14706 if (PyErr_Occurred()) SWIG_fail;
14707 }
14708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14709 return resultobj;
14710 fail:
14711 return NULL;
14712 }
14713
14714
14715 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14716 PyObject *resultobj;
14717 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14718 PyObject *arg2 = (PyObject *) 0 ;
14719 PyObject *arg3 = (PyObject *) 0 ;
14720 PyObject * obj0 = 0 ;
14721 PyObject * obj1 = 0 ;
14722 PyObject * obj2 = 0 ;
14723 char *kwnames[] = {
14724 (char *) "self",(char *) "self",(char *) "_class", NULL
14725 };
14726
14727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14730 arg2 = obj1;
14731 arg3 = obj2;
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 (arg1)->_setCallbackInfo(arg2,arg3);
14735
14736 wxPyEndAllowThreads(__tstate);
14737 if (PyErr_Occurred()) SWIG_fail;
14738 }
14739 Py_INCREF(Py_None); resultobj = Py_None;
14740 return resultobj;
14741 fail:
14742 return NULL;
14743 }
14744
14745
14746 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14747 PyObject *resultobj;
14748 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14749 PyObject * obj0 = 0 ;
14750 char *kwnames[] = {
14751 (char *) "provider", NULL
14752 };
14753
14754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14757 {
14758 PyThreadState* __tstate = wxPyBeginAllowThreads();
14759 wxPyArtProvider::PushProvider(arg1);
14760
14761 wxPyEndAllowThreads(__tstate);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 }
14764 Py_INCREF(Py_None); resultobj = Py_None;
14765 return resultobj;
14766 fail:
14767 return NULL;
14768 }
14769
14770
14771 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj;
14773 bool result;
14774 char *kwnames[] = {
14775 NULL
14776 };
14777
14778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14779 {
14780 PyThreadState* __tstate = wxPyBeginAllowThreads();
14781 result = (bool)wxPyArtProvider::PopProvider();
14782
14783 wxPyEndAllowThreads(__tstate);
14784 if (PyErr_Occurred()) SWIG_fail;
14785 }
14786 {
14787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14788 }
14789 return resultobj;
14790 fail:
14791 return NULL;
14792 }
14793
14794
14795 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj;
14797 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14798 bool result;
14799 PyObject * obj0 = 0 ;
14800 char *kwnames[] = {
14801 (char *) "provider", NULL
14802 };
14803
14804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14807 {
14808 PyThreadState* __tstate = wxPyBeginAllowThreads();
14809 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14810
14811 wxPyEndAllowThreads(__tstate);
14812 if (PyErr_Occurred()) SWIG_fail;
14813 }
14814 {
14815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14816 }
14817 return resultobj;
14818 fail:
14819 return NULL;
14820 }
14821
14822
14823 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14824 PyObject *resultobj;
14825 wxString *arg1 = 0 ;
14826 wxString const &arg2_defvalue = wxPyART_OTHER ;
14827 wxString *arg2 = (wxString *) &arg2_defvalue ;
14828 wxSize const &arg3_defvalue = wxDefaultSize ;
14829 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14830 wxBitmap result;
14831 bool temp1 = False ;
14832 bool temp2 = False ;
14833 wxSize temp3 ;
14834 PyObject * obj0 = 0 ;
14835 PyObject * obj1 = 0 ;
14836 PyObject * obj2 = 0 ;
14837 char *kwnames[] = {
14838 (char *) "id",(char *) "client",(char *) "size", NULL
14839 };
14840
14841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14842 {
14843 arg1 = wxString_in_helper(obj0);
14844 if (arg1 == NULL) SWIG_fail;
14845 temp1 = True;
14846 }
14847 if (obj1) {
14848 {
14849 arg2 = wxString_in_helper(obj1);
14850 if (arg2 == NULL) SWIG_fail;
14851 temp2 = True;
14852 }
14853 }
14854 if (obj2) {
14855 {
14856 arg3 = &temp3;
14857 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14858 }
14859 }
14860 {
14861 if (!wxPyCheckForApp()) SWIG_fail;
14862 PyThreadState* __tstate = wxPyBeginAllowThreads();
14863 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14864
14865 wxPyEndAllowThreads(__tstate);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 {
14869 wxBitmap * resultptr;
14870 resultptr = new wxBitmap((wxBitmap &) result);
14871 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14872 }
14873 {
14874 if (temp1)
14875 delete arg1;
14876 }
14877 {
14878 if (temp2)
14879 delete arg2;
14880 }
14881 return resultobj;
14882 fail:
14883 {
14884 if (temp1)
14885 delete arg1;
14886 }
14887 {
14888 if (temp2)
14889 delete arg2;
14890 }
14891 return NULL;
14892 }
14893
14894
14895 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14896 PyObject *resultobj;
14897 wxString *arg1 = 0 ;
14898 wxString const &arg2_defvalue = wxPyART_OTHER ;
14899 wxString *arg2 = (wxString *) &arg2_defvalue ;
14900 wxSize const &arg3_defvalue = wxDefaultSize ;
14901 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14902 wxIcon result;
14903 bool temp1 = False ;
14904 bool temp2 = False ;
14905 wxSize temp3 ;
14906 PyObject * obj0 = 0 ;
14907 PyObject * obj1 = 0 ;
14908 PyObject * obj2 = 0 ;
14909 char *kwnames[] = {
14910 (char *) "id",(char *) "client",(char *) "size", NULL
14911 };
14912
14913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14914 {
14915 arg1 = wxString_in_helper(obj0);
14916 if (arg1 == NULL) SWIG_fail;
14917 temp1 = True;
14918 }
14919 if (obj1) {
14920 {
14921 arg2 = wxString_in_helper(obj1);
14922 if (arg2 == NULL) SWIG_fail;
14923 temp2 = True;
14924 }
14925 }
14926 if (obj2) {
14927 {
14928 arg3 = &temp3;
14929 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14930 }
14931 }
14932 {
14933 if (!wxPyCheckForApp()) SWIG_fail;
14934 PyThreadState* __tstate = wxPyBeginAllowThreads();
14935 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14936
14937 wxPyEndAllowThreads(__tstate);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 {
14941 wxIcon * resultptr;
14942 resultptr = new wxIcon((wxIcon &) result);
14943 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14944 }
14945 {
14946 if (temp1)
14947 delete arg1;
14948 }
14949 {
14950 if (temp2)
14951 delete arg2;
14952 }
14953 return resultobj;
14954 fail:
14955 {
14956 if (temp1)
14957 delete arg1;
14958 }
14959 {
14960 if (temp2)
14961 delete arg2;
14962 }
14963 return NULL;
14964 }
14965
14966
14967 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj;
14969 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14970 PyObject * obj0 = 0 ;
14971 char *kwnames[] = {
14972 (char *) "self", NULL
14973 };
14974
14975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 wxPyArtProvider_Destroy(arg1);
14981
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 Py_INCREF(Py_None); resultobj = Py_None;
14986 return resultobj;
14987 fail:
14988 return NULL;
14989 }
14990
14991
14992 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
14993 PyObject *obj;
14994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14995 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14996 Py_INCREF(obj);
14997 return Py_BuildValue((char *)"");
14998 }
14999 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
15000 PyObject *resultobj;
15001 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15002 PyObject * obj0 = 0 ;
15003 char *kwnames[] = {
15004 (char *) "self", NULL
15005 };
15006
15007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
15008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15010 {
15011 PyThreadState* __tstate = wxPyBeginAllowThreads();
15012 delete arg1;
15013
15014 wxPyEndAllowThreads(__tstate);
15015 if (PyErr_Occurred()) SWIG_fail;
15016 }
15017 Py_INCREF(Py_None); resultobj = Py_None;
15018 return resultobj;
15019 fail:
15020 return NULL;
15021 }
15022
15023
15024 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
15025 PyObject *resultobj;
15026 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15027 wxConfigBase *result;
15028 PyObject * obj0 = 0 ;
15029 char *kwnames[] = {
15030 (char *) "config", NULL
15031 };
15032
15033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
15034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15036 {
15037 PyThreadState* __tstate = wxPyBeginAllowThreads();
15038 result = (wxConfigBase *)wxConfigBase::Set(arg1);
15039
15040 wxPyEndAllowThreads(__tstate);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15044 return resultobj;
15045 fail:
15046 return NULL;
15047 }
15048
15049
15050 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
15051 PyObject *resultobj;
15052 bool arg1 = (bool) True ;
15053 wxConfigBase *result;
15054 PyObject * obj0 = 0 ;
15055 char *kwnames[] = {
15056 (char *) "createOnDemand", NULL
15057 };
15058
15059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
15060 if (obj0) {
15061 arg1 = (bool)SWIG_As_bool(obj0);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 {
15065 PyThreadState* __tstate = wxPyBeginAllowThreads();
15066 result = (wxConfigBase *)wxConfigBase::Get(arg1);
15067
15068 wxPyEndAllowThreads(__tstate);
15069 if (PyErr_Occurred()) SWIG_fail;
15070 }
15071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15072 return resultobj;
15073 fail:
15074 return NULL;
15075 }
15076
15077
15078 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15079 PyObject *resultobj;
15080 wxConfigBase *result;
15081 char *kwnames[] = {
15082 NULL
15083 };
15084
15085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
15086 {
15087 PyThreadState* __tstate = wxPyBeginAllowThreads();
15088 result = (wxConfigBase *)wxConfigBase::Create();
15089
15090 wxPyEndAllowThreads(__tstate);
15091 if (PyErr_Occurred()) SWIG_fail;
15092 }
15093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15094 return resultobj;
15095 fail:
15096 return NULL;
15097 }
15098
15099
15100 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
15101 PyObject *resultobj;
15102 char *kwnames[] = {
15103 NULL
15104 };
15105
15106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 wxConfigBase::DontCreateOnDemand();
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 Py_INCREF(Py_None); resultobj = Py_None;
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj;
15123 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15124 wxString *arg2 = 0 ;
15125 bool temp2 = False ;
15126 PyObject * obj0 = 0 ;
15127 PyObject * obj1 = 0 ;
15128 char *kwnames[] = {
15129 (char *) "self",(char *) "path", NULL
15130 };
15131
15132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15135 {
15136 arg2 = wxString_in_helper(obj1);
15137 if (arg2 == NULL) SWIG_fail;
15138 temp2 = True;
15139 }
15140 {
15141 PyThreadState* __tstate = wxPyBeginAllowThreads();
15142 (arg1)->SetPath((wxString const &)*arg2);
15143
15144 wxPyEndAllowThreads(__tstate);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 Py_INCREF(Py_None); resultobj = Py_None;
15148 {
15149 if (temp2)
15150 delete arg2;
15151 }
15152 return resultobj;
15153 fail:
15154 {
15155 if (temp2)
15156 delete arg2;
15157 }
15158 return NULL;
15159 }
15160
15161
15162 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15163 PyObject *resultobj;
15164 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15165 wxString *result;
15166 PyObject * obj0 = 0 ;
15167 char *kwnames[] = {
15168 (char *) "self", NULL
15169 };
15170
15171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15174 {
15175 PyThreadState* __tstate = wxPyBeginAllowThreads();
15176 {
15177 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15178 result = (wxString *) &_result_ref;
15179 }
15180
15181 wxPyEndAllowThreads(__tstate);
15182 if (PyErr_Occurred()) SWIG_fail;
15183 }
15184 {
15185 #if wxUSE_UNICODE
15186 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15187 #else
15188 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15189 #endif
15190 }
15191 return resultobj;
15192 fail:
15193 return NULL;
15194 }
15195
15196
15197 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15198 PyObject *resultobj;
15199 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15200 PyObject *result;
15201 PyObject * obj0 = 0 ;
15202 char *kwnames[] = {
15203 (char *) "self", NULL
15204 };
15205
15206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15209 {
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15212
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 resultobj = result;
15217 return resultobj;
15218 fail:
15219 return NULL;
15220 }
15221
15222
15223 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15224 PyObject *resultobj;
15225 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15226 long arg2 ;
15227 PyObject *result;
15228 PyObject * obj0 = 0 ;
15229 PyObject * obj1 = 0 ;
15230 char *kwnames[] = {
15231 (char *) "self",(char *) "index", NULL
15232 };
15233
15234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15237 arg2 = (long)SWIG_As_long(obj1);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 {
15240 PyThreadState* __tstate = wxPyBeginAllowThreads();
15241 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15242
15243 wxPyEndAllowThreads(__tstate);
15244 if (PyErr_Occurred()) SWIG_fail;
15245 }
15246 resultobj = result;
15247 return resultobj;
15248 fail:
15249 return NULL;
15250 }
15251
15252
15253 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15254 PyObject *resultobj;
15255 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15256 PyObject *result;
15257 PyObject * obj0 = 0 ;
15258 char *kwnames[] = {
15259 (char *) "self", NULL
15260 };
15261
15262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15265 {
15266 PyThreadState* __tstate = wxPyBeginAllowThreads();
15267 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15268
15269 wxPyEndAllowThreads(__tstate);
15270 if (PyErr_Occurred()) SWIG_fail;
15271 }
15272 resultobj = result;
15273 return resultobj;
15274 fail:
15275 return NULL;
15276 }
15277
15278
15279 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15280 PyObject *resultobj;
15281 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15282 long arg2 ;
15283 PyObject *result;
15284 PyObject * obj0 = 0 ;
15285 PyObject * obj1 = 0 ;
15286 char *kwnames[] = {
15287 (char *) "self",(char *) "index", NULL
15288 };
15289
15290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15293 arg2 = (long)SWIG_As_long(obj1);
15294 if (PyErr_Occurred()) SWIG_fail;
15295 {
15296 PyThreadState* __tstate = wxPyBeginAllowThreads();
15297 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15298
15299 wxPyEndAllowThreads(__tstate);
15300 if (PyErr_Occurred()) SWIG_fail;
15301 }
15302 resultobj = result;
15303 return resultobj;
15304 fail:
15305 return NULL;
15306 }
15307
15308
15309 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
15310 PyObject *resultobj;
15311 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15312 bool arg2 = (bool) False ;
15313 size_t result;
15314 PyObject * obj0 = 0 ;
15315 PyObject * obj1 = 0 ;
15316 char *kwnames[] = {
15317 (char *) "self",(char *) "recursive", NULL
15318 };
15319
15320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15323 if (obj1) {
15324 arg2 = (bool)SWIG_As_bool(obj1);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 {
15328 PyThreadState* __tstate = wxPyBeginAllowThreads();
15329 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15330
15331 wxPyEndAllowThreads(__tstate);
15332 if (PyErr_Occurred()) SWIG_fail;
15333 }
15334 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15335 return resultobj;
15336 fail:
15337 return NULL;
15338 }
15339
15340
15341 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj;
15343 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15344 bool arg2 = (bool) False ;
15345 size_t result;
15346 PyObject * obj0 = 0 ;
15347 PyObject * obj1 = 0 ;
15348 char *kwnames[] = {
15349 (char *) "self",(char *) "recursive", NULL
15350 };
15351
15352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15355 if (obj1) {
15356 arg2 = (bool)SWIG_As_bool(obj1);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 {
15360 PyThreadState* __tstate = wxPyBeginAllowThreads();
15361 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15362
15363 wxPyEndAllowThreads(__tstate);
15364 if (PyErr_Occurred()) SWIG_fail;
15365 }
15366 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15367 return resultobj;
15368 fail:
15369 return NULL;
15370 }
15371
15372
15373 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj;
15375 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15376 wxString *arg2 = 0 ;
15377 bool result;
15378 bool temp2 = False ;
15379 PyObject * obj0 = 0 ;
15380 PyObject * obj1 = 0 ;
15381 char *kwnames[] = {
15382 (char *) "self",(char *) "name", NULL
15383 };
15384
15385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15388 {
15389 arg2 = wxString_in_helper(obj1);
15390 if (arg2 == NULL) SWIG_fail;
15391 temp2 = True;
15392 }
15393 {
15394 PyThreadState* __tstate = wxPyBeginAllowThreads();
15395 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15396
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 {
15401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15402 }
15403 {
15404 if (temp2)
15405 delete arg2;
15406 }
15407 return resultobj;
15408 fail:
15409 {
15410 if (temp2)
15411 delete arg2;
15412 }
15413 return NULL;
15414 }
15415
15416
15417 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15418 PyObject *resultobj;
15419 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15420 wxString *arg2 = 0 ;
15421 bool result;
15422 bool temp2 = False ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj1 = 0 ;
15425 char *kwnames[] = {
15426 (char *) "self",(char *) "name", NULL
15427 };
15428
15429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15432 {
15433 arg2 = wxString_in_helper(obj1);
15434 if (arg2 == NULL) SWIG_fail;
15435 temp2 = True;
15436 }
15437 {
15438 PyThreadState* __tstate = wxPyBeginAllowThreads();
15439 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15440
15441 wxPyEndAllowThreads(__tstate);
15442 if (PyErr_Occurred()) SWIG_fail;
15443 }
15444 {
15445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15446 }
15447 {
15448 if (temp2)
15449 delete arg2;
15450 }
15451 return resultobj;
15452 fail:
15453 {
15454 if (temp2)
15455 delete arg2;
15456 }
15457 return NULL;
15458 }
15459
15460
15461 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
15462 PyObject *resultobj;
15463 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15464 wxString *arg2 = 0 ;
15465 bool result;
15466 bool temp2 = False ;
15467 PyObject * obj0 = 0 ;
15468 PyObject * obj1 = 0 ;
15469 char *kwnames[] = {
15470 (char *) "self",(char *) "name", NULL
15471 };
15472
15473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15476 {
15477 arg2 = wxString_in_helper(obj1);
15478 if (arg2 == NULL) SWIG_fail;
15479 temp2 = True;
15480 }
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 {
15489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15490 }
15491 {
15492 if (temp2)
15493 delete arg2;
15494 }
15495 return resultobj;
15496 fail:
15497 {
15498 if (temp2)
15499 delete arg2;
15500 }
15501 return NULL;
15502 }
15503
15504
15505 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
15506 PyObject *resultobj;
15507 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15508 wxString *arg2 = 0 ;
15509 int result;
15510 bool temp2 = False ;
15511 PyObject * obj0 = 0 ;
15512 PyObject * obj1 = 0 ;
15513 char *kwnames[] = {
15514 (char *) "self",(char *) "name", NULL
15515 };
15516
15517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15520 {
15521 arg2 = wxString_in_helper(obj1);
15522 if (arg2 == NULL) SWIG_fail;
15523 temp2 = True;
15524 }
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15528
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 resultobj = SWIG_From_int((int)result);
15533 {
15534 if (temp2)
15535 delete arg2;
15536 }
15537 return resultobj;
15538 fail:
15539 {
15540 if (temp2)
15541 delete arg2;
15542 }
15543 return NULL;
15544 }
15545
15546
15547 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
15548 PyObject *resultobj;
15549 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15550 wxString *arg2 = 0 ;
15551 wxString const &arg3_defvalue = wxPyEmptyString ;
15552 wxString *arg3 = (wxString *) &arg3_defvalue ;
15553 wxString result;
15554 bool temp2 = False ;
15555 bool temp3 = False ;
15556 PyObject * obj0 = 0 ;
15557 PyObject * obj1 = 0 ;
15558 PyObject * obj2 = 0 ;
15559 char *kwnames[] = {
15560 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15561 };
15562
15563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15566 {
15567 arg2 = wxString_in_helper(obj1);
15568 if (arg2 == NULL) SWIG_fail;
15569 temp2 = True;
15570 }
15571 if (obj2) {
15572 {
15573 arg3 = wxString_in_helper(obj2);
15574 if (arg3 == NULL) SWIG_fail;
15575 temp3 = True;
15576 }
15577 }
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15581
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 {
15586 #if wxUSE_UNICODE
15587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15588 #else
15589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15590 #endif
15591 }
15592 {
15593 if (temp2)
15594 delete arg2;
15595 }
15596 {
15597 if (temp3)
15598 delete arg3;
15599 }
15600 return resultobj;
15601 fail:
15602 {
15603 if (temp2)
15604 delete arg2;
15605 }
15606 {
15607 if (temp3)
15608 delete arg3;
15609 }
15610 return NULL;
15611 }
15612
15613
15614 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
15615 PyObject *resultobj;
15616 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15617 wxString *arg2 = 0 ;
15618 long arg3 = (long) 0 ;
15619 long result;
15620 bool temp2 = False ;
15621 PyObject * obj0 = 0 ;
15622 PyObject * obj1 = 0 ;
15623 PyObject * obj2 = 0 ;
15624 char *kwnames[] = {
15625 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15626 };
15627
15628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15631 {
15632 arg2 = wxString_in_helper(obj1);
15633 if (arg2 == NULL) SWIG_fail;
15634 temp2 = True;
15635 }
15636 if (obj2) {
15637 arg3 = (long)SWIG_As_long(obj2);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 {
15641 PyThreadState* __tstate = wxPyBeginAllowThreads();
15642 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15643
15644 wxPyEndAllowThreads(__tstate);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 }
15647 resultobj = SWIG_From_long((long)result);
15648 {
15649 if (temp2)
15650 delete arg2;
15651 }
15652 return resultobj;
15653 fail:
15654 {
15655 if (temp2)
15656 delete arg2;
15657 }
15658 return NULL;
15659 }
15660
15661
15662 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj;
15664 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15665 wxString *arg2 = 0 ;
15666 double arg3 = (double) 0.0 ;
15667 double result;
15668 bool temp2 = False ;
15669 PyObject * obj0 = 0 ;
15670 PyObject * obj1 = 0 ;
15671 PyObject * obj2 = 0 ;
15672 char *kwnames[] = {
15673 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15674 };
15675
15676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15679 {
15680 arg2 = wxString_in_helper(obj1);
15681 if (arg2 == NULL) SWIG_fail;
15682 temp2 = True;
15683 }
15684 if (obj2) {
15685 arg3 = (double)SWIG_As_double(obj2);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 {
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15691
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 resultobj = SWIG_From_double((double)result);
15696 {
15697 if (temp2)
15698 delete arg2;
15699 }
15700 return resultobj;
15701 fail:
15702 {
15703 if (temp2)
15704 delete arg2;
15705 }
15706 return NULL;
15707 }
15708
15709
15710 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
15711 PyObject *resultobj;
15712 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15713 wxString *arg2 = 0 ;
15714 bool arg3 = (bool) False ;
15715 bool result;
15716 bool temp2 = False ;
15717 PyObject * obj0 = 0 ;
15718 PyObject * obj1 = 0 ;
15719 PyObject * obj2 = 0 ;
15720 char *kwnames[] = {
15721 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15722 };
15723
15724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15727 {
15728 arg2 = wxString_in_helper(obj1);
15729 if (arg2 == NULL) SWIG_fail;
15730 temp2 = True;
15731 }
15732 if (obj2) {
15733 arg3 = (bool)SWIG_As_bool(obj2);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 {
15737 PyThreadState* __tstate = wxPyBeginAllowThreads();
15738 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15739
15740 wxPyEndAllowThreads(__tstate);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 {
15744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15745 }
15746 {
15747 if (temp2)
15748 delete arg2;
15749 }
15750 return resultobj;
15751 fail:
15752 {
15753 if (temp2)
15754 delete arg2;
15755 }
15756 return NULL;
15757 }
15758
15759
15760 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
15761 PyObject *resultobj;
15762 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15763 wxString *arg2 = 0 ;
15764 wxString *arg3 = 0 ;
15765 bool result;
15766 bool temp2 = False ;
15767 bool temp3 = False ;
15768 PyObject * obj0 = 0 ;
15769 PyObject * obj1 = 0 ;
15770 PyObject * obj2 = 0 ;
15771 char *kwnames[] = {
15772 (char *) "self",(char *) "key",(char *) "value", NULL
15773 };
15774
15775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15778 {
15779 arg2 = wxString_in_helper(obj1);
15780 if (arg2 == NULL) SWIG_fail;
15781 temp2 = True;
15782 }
15783 {
15784 arg3 = wxString_in_helper(obj2);
15785 if (arg3 == NULL) SWIG_fail;
15786 temp3 = True;
15787 }
15788 {
15789 PyThreadState* __tstate = wxPyBeginAllowThreads();
15790 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15791
15792 wxPyEndAllowThreads(__tstate);
15793 if (PyErr_Occurred()) SWIG_fail;
15794 }
15795 {
15796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15797 }
15798 {
15799 if (temp2)
15800 delete arg2;
15801 }
15802 {
15803 if (temp3)
15804 delete arg3;
15805 }
15806 return resultobj;
15807 fail:
15808 {
15809 if (temp2)
15810 delete arg2;
15811 }
15812 {
15813 if (temp3)
15814 delete arg3;
15815 }
15816 return NULL;
15817 }
15818
15819
15820 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
15821 PyObject *resultobj;
15822 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15823 wxString *arg2 = 0 ;
15824 long arg3 ;
15825 bool result;
15826 bool temp2 = False ;
15827 PyObject * obj0 = 0 ;
15828 PyObject * obj1 = 0 ;
15829 PyObject * obj2 = 0 ;
15830 char *kwnames[] = {
15831 (char *) "self",(char *) "key",(char *) "value", NULL
15832 };
15833
15834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15837 {
15838 arg2 = wxString_in_helper(obj1);
15839 if (arg2 == NULL) SWIG_fail;
15840 temp2 = True;
15841 }
15842 arg3 = (long)SWIG_As_long(obj2);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 {
15845 PyThreadState* __tstate = wxPyBeginAllowThreads();
15846 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15847
15848 wxPyEndAllowThreads(__tstate);
15849 if (PyErr_Occurred()) SWIG_fail;
15850 }
15851 {
15852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15853 }
15854 {
15855 if (temp2)
15856 delete arg2;
15857 }
15858 return resultobj;
15859 fail:
15860 {
15861 if (temp2)
15862 delete arg2;
15863 }
15864 return NULL;
15865 }
15866
15867
15868 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15869 PyObject *resultobj;
15870 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15871 wxString *arg2 = 0 ;
15872 double arg3 ;
15873 bool result;
15874 bool temp2 = False ;
15875 PyObject * obj0 = 0 ;
15876 PyObject * obj1 = 0 ;
15877 PyObject * obj2 = 0 ;
15878 char *kwnames[] = {
15879 (char *) "self",(char *) "key",(char *) "value", NULL
15880 };
15881
15882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15885 {
15886 arg2 = wxString_in_helper(obj1);
15887 if (arg2 == NULL) SWIG_fail;
15888 temp2 = True;
15889 }
15890 arg3 = (double)SWIG_As_double(obj2);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15895
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 {
15900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15901 }
15902 {
15903 if (temp2)
15904 delete arg2;
15905 }
15906 return resultobj;
15907 fail:
15908 {
15909 if (temp2)
15910 delete arg2;
15911 }
15912 return NULL;
15913 }
15914
15915
15916 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
15917 PyObject *resultobj;
15918 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15919 wxString *arg2 = 0 ;
15920 bool arg3 ;
15921 bool result;
15922 bool temp2 = False ;
15923 PyObject * obj0 = 0 ;
15924 PyObject * obj1 = 0 ;
15925 PyObject * obj2 = 0 ;
15926 char *kwnames[] = {
15927 (char *) "self",(char *) "key",(char *) "value", NULL
15928 };
15929
15930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15933 {
15934 arg2 = wxString_in_helper(obj1);
15935 if (arg2 == NULL) SWIG_fail;
15936 temp2 = True;
15937 }
15938 arg3 = (bool)SWIG_As_bool(obj2);
15939 if (PyErr_Occurred()) SWIG_fail;
15940 {
15941 PyThreadState* __tstate = wxPyBeginAllowThreads();
15942 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15943
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 {
15948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15949 }
15950 {
15951 if (temp2)
15952 delete arg2;
15953 }
15954 return resultobj;
15955 fail:
15956 {
15957 if (temp2)
15958 delete arg2;
15959 }
15960 return NULL;
15961 }
15962
15963
15964 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
15965 PyObject *resultobj;
15966 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15967 bool arg2 = (bool) False ;
15968 bool result;
15969 PyObject * obj0 = 0 ;
15970 PyObject * obj1 = 0 ;
15971 char *kwnames[] = {
15972 (char *) "self",(char *) "currentOnly", NULL
15973 };
15974
15975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15978 if (obj1) {
15979 arg2 = (bool)SWIG_As_bool(obj1);
15980 if (PyErr_Occurred()) SWIG_fail;
15981 }
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (bool)(arg1)->Flush(arg2);
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 {
15990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15991 }
15992 return resultobj;
15993 fail:
15994 return NULL;
15995 }
15996
15997
15998 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15999 PyObject *resultobj;
16000 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16001 wxString *arg2 = 0 ;
16002 wxString *arg3 = 0 ;
16003 bool result;
16004 bool temp2 = False ;
16005 bool temp3 = False ;
16006 PyObject * obj0 = 0 ;
16007 PyObject * obj1 = 0 ;
16008 PyObject * obj2 = 0 ;
16009 char *kwnames[] = {
16010 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16011 };
16012
16013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16016 {
16017 arg2 = wxString_in_helper(obj1);
16018 if (arg2 == NULL) SWIG_fail;
16019 temp2 = True;
16020 }
16021 {
16022 arg3 = wxString_in_helper(obj2);
16023 if (arg3 == NULL) SWIG_fail;
16024 temp3 = True;
16025 }
16026 {
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
16029
16030 wxPyEndAllowThreads(__tstate);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 }
16033 {
16034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16035 }
16036 {
16037 if (temp2)
16038 delete arg2;
16039 }
16040 {
16041 if (temp3)
16042 delete arg3;
16043 }
16044 return resultobj;
16045 fail:
16046 {
16047 if (temp2)
16048 delete arg2;
16049 }
16050 {
16051 if (temp3)
16052 delete arg3;
16053 }
16054 return NULL;
16055 }
16056
16057
16058 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16059 PyObject *resultobj;
16060 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16061 wxString *arg2 = 0 ;
16062 wxString *arg3 = 0 ;
16063 bool result;
16064 bool temp2 = False ;
16065 bool temp3 = False ;
16066 PyObject * obj0 = 0 ;
16067 PyObject * obj1 = 0 ;
16068 PyObject * obj2 = 0 ;
16069 char *kwnames[] = {
16070 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16071 };
16072
16073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
16074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16076 {
16077 arg2 = wxString_in_helper(obj1);
16078 if (arg2 == NULL) SWIG_fail;
16079 temp2 = True;
16080 }
16081 {
16082 arg3 = wxString_in_helper(obj2);
16083 if (arg3 == NULL) SWIG_fail;
16084 temp3 = True;
16085 }
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
16089
16090 wxPyEndAllowThreads(__tstate);
16091 if (PyErr_Occurred()) SWIG_fail;
16092 }
16093 {
16094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16095 }
16096 {
16097 if (temp2)
16098 delete arg2;
16099 }
16100 {
16101 if (temp3)
16102 delete arg3;
16103 }
16104 return resultobj;
16105 fail:
16106 {
16107 if (temp2)
16108 delete arg2;
16109 }
16110 {
16111 if (temp3)
16112 delete arg3;
16113 }
16114 return NULL;
16115 }
16116
16117
16118 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
16119 PyObject *resultobj;
16120 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16121 wxString *arg2 = 0 ;
16122 bool arg3 = (bool) True ;
16123 bool result;
16124 bool temp2 = False ;
16125 PyObject * obj0 = 0 ;
16126 PyObject * obj1 = 0 ;
16127 PyObject * obj2 = 0 ;
16128 char *kwnames[] = {
16129 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
16130 };
16131
16132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16135 {
16136 arg2 = wxString_in_helper(obj1);
16137 if (arg2 == NULL) SWIG_fail;
16138 temp2 = True;
16139 }
16140 if (obj2) {
16141 arg3 = (bool)SWIG_As_bool(obj2);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 }
16144 {
16145 PyThreadState* __tstate = wxPyBeginAllowThreads();
16146 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16147
16148 wxPyEndAllowThreads(__tstate);
16149 if (PyErr_Occurred()) SWIG_fail;
16150 }
16151 {
16152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16153 }
16154 {
16155 if (temp2)
16156 delete arg2;
16157 }
16158 return resultobj;
16159 fail:
16160 {
16161 if (temp2)
16162 delete arg2;
16163 }
16164 return NULL;
16165 }
16166
16167
16168 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16169 PyObject *resultobj;
16170 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16171 wxString *arg2 = 0 ;
16172 bool result;
16173 bool temp2 = False ;
16174 PyObject * obj0 = 0 ;
16175 PyObject * obj1 = 0 ;
16176 char *kwnames[] = {
16177 (char *) "self",(char *) "key", NULL
16178 };
16179
16180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16183 {
16184 arg2 = wxString_in_helper(obj1);
16185 if (arg2 == NULL) SWIG_fail;
16186 temp2 = True;
16187 }
16188 {
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16191
16192 wxPyEndAllowThreads(__tstate);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 {
16196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16197 }
16198 {
16199 if (temp2)
16200 delete arg2;
16201 }
16202 return resultobj;
16203 fail:
16204 {
16205 if (temp2)
16206 delete arg2;
16207 }
16208 return NULL;
16209 }
16210
16211
16212 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
16213 PyObject *resultobj;
16214 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16215 bool result;
16216 PyObject * obj0 = 0 ;
16217 char *kwnames[] = {
16218 (char *) "self", NULL
16219 };
16220
16221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16224 {
16225 PyThreadState* __tstate = wxPyBeginAllowThreads();
16226 result = (bool)(arg1)->DeleteAll();
16227
16228 wxPyEndAllowThreads(__tstate);
16229 if (PyErr_Occurred()) SWIG_fail;
16230 }
16231 {
16232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16233 }
16234 return resultobj;
16235 fail:
16236 return NULL;
16237 }
16238
16239
16240 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16241 PyObject *resultobj;
16242 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16243 bool arg2 = (bool) True ;
16244 PyObject * obj0 = 0 ;
16245 PyObject * obj1 = 0 ;
16246 char *kwnames[] = {
16247 (char *) "self",(char *) "doIt", NULL
16248 };
16249
16250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16253 if (obj1) {
16254 arg2 = (bool)SWIG_As_bool(obj1);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 (arg1)->SetExpandEnvVars(arg2);
16260
16261 wxPyEndAllowThreads(__tstate);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 Py_INCREF(Py_None); resultobj = Py_None;
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj;
16273 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16274 bool result;
16275 PyObject * obj0 = 0 ;
16276 char *kwnames[] = {
16277 (char *) "self", NULL
16278 };
16279
16280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16283 {
16284 PyThreadState* __tstate = wxPyBeginAllowThreads();
16285 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16286
16287 wxPyEndAllowThreads(__tstate);
16288 if (PyErr_Occurred()) SWIG_fail;
16289 }
16290 {
16291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16292 }
16293 return resultobj;
16294 fail:
16295 return NULL;
16296 }
16297
16298
16299 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16300 PyObject *resultobj;
16301 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16302 bool arg2 = (bool) True ;
16303 PyObject * obj0 = 0 ;
16304 PyObject * obj1 = 0 ;
16305 char *kwnames[] = {
16306 (char *) "self",(char *) "doIt", NULL
16307 };
16308
16309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16312 if (obj1) {
16313 arg2 = (bool)SWIG_As_bool(obj1);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 (arg1)->SetRecordDefaults(arg2);
16319
16320 wxPyEndAllowThreads(__tstate);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 }
16323 Py_INCREF(Py_None); resultobj = Py_None;
16324 return resultobj;
16325 fail:
16326 return NULL;
16327 }
16328
16329
16330 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16331 PyObject *resultobj;
16332 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16333 bool result;
16334 PyObject * obj0 = 0 ;
16335 char *kwnames[] = {
16336 (char *) "self", NULL
16337 };
16338
16339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16342 {
16343 PyThreadState* __tstate = wxPyBeginAllowThreads();
16344 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16345
16346 wxPyEndAllowThreads(__tstate);
16347 if (PyErr_Occurred()) SWIG_fail;
16348 }
16349 {
16350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16351 }
16352 return resultobj;
16353 fail:
16354 return NULL;
16355 }
16356
16357
16358 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16359 PyObject *resultobj;
16360 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16361 wxString *arg2 = 0 ;
16362 wxString result;
16363 bool temp2 = False ;
16364 PyObject * obj0 = 0 ;
16365 PyObject * obj1 = 0 ;
16366 char *kwnames[] = {
16367 (char *) "self",(char *) "str", NULL
16368 };
16369
16370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16373 {
16374 arg2 = wxString_in_helper(obj1);
16375 if (arg2 == NULL) SWIG_fail;
16376 temp2 = True;
16377 }
16378 {
16379 PyThreadState* __tstate = wxPyBeginAllowThreads();
16380 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16381
16382 wxPyEndAllowThreads(__tstate);
16383 if (PyErr_Occurred()) SWIG_fail;
16384 }
16385 {
16386 #if wxUSE_UNICODE
16387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16388 #else
16389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16390 #endif
16391 }
16392 {
16393 if (temp2)
16394 delete arg2;
16395 }
16396 return resultobj;
16397 fail:
16398 {
16399 if (temp2)
16400 delete arg2;
16401 }
16402 return NULL;
16403 }
16404
16405
16406 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16407 PyObject *resultobj;
16408 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16409 wxString result;
16410 PyObject * obj0 = 0 ;
16411 char *kwnames[] = {
16412 (char *) "self", NULL
16413 };
16414
16415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
16420 result = ((wxConfigBase const *)arg1)->GetAppName();
16421
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 {
16426 #if wxUSE_UNICODE
16427 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16428 #else
16429 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16430 #endif
16431 }
16432 return resultobj;
16433 fail:
16434 return NULL;
16435 }
16436
16437
16438 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16439 PyObject *resultobj;
16440 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16441 wxString result;
16442 PyObject * obj0 = 0 ;
16443 char *kwnames[] = {
16444 (char *) "self", NULL
16445 };
16446
16447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16450 {
16451 PyThreadState* __tstate = wxPyBeginAllowThreads();
16452 result = ((wxConfigBase const *)arg1)->GetVendorName();
16453
16454 wxPyEndAllowThreads(__tstate);
16455 if (PyErr_Occurred()) SWIG_fail;
16456 }
16457 {
16458 #if wxUSE_UNICODE
16459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16460 #else
16461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16462 #endif
16463 }
16464 return resultobj;
16465 fail:
16466 return NULL;
16467 }
16468
16469
16470 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16471 PyObject *resultobj;
16472 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16473 wxString *arg2 = 0 ;
16474 bool temp2 = False ;
16475 PyObject * obj0 = 0 ;
16476 PyObject * obj1 = 0 ;
16477 char *kwnames[] = {
16478 (char *) "self",(char *) "appName", NULL
16479 };
16480
16481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16484 {
16485 arg2 = wxString_in_helper(obj1);
16486 if (arg2 == NULL) SWIG_fail;
16487 temp2 = True;
16488 }
16489 {
16490 PyThreadState* __tstate = wxPyBeginAllowThreads();
16491 (arg1)->SetAppName((wxString const &)*arg2);
16492
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 Py_INCREF(Py_None); resultobj = Py_None;
16497 {
16498 if (temp2)
16499 delete arg2;
16500 }
16501 return resultobj;
16502 fail:
16503 {
16504 if (temp2)
16505 delete arg2;
16506 }
16507 return NULL;
16508 }
16509
16510
16511 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj;
16513 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16514 wxString *arg2 = 0 ;
16515 bool temp2 = False ;
16516 PyObject * obj0 = 0 ;
16517 PyObject * obj1 = 0 ;
16518 char *kwnames[] = {
16519 (char *) "self",(char *) "vendorName", NULL
16520 };
16521
16522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16525 {
16526 arg2 = wxString_in_helper(obj1);
16527 if (arg2 == NULL) SWIG_fail;
16528 temp2 = True;
16529 }
16530 {
16531 PyThreadState* __tstate = wxPyBeginAllowThreads();
16532 (arg1)->SetVendorName((wxString const &)*arg2);
16533
16534 wxPyEndAllowThreads(__tstate);
16535 if (PyErr_Occurred()) SWIG_fail;
16536 }
16537 Py_INCREF(Py_None); resultobj = Py_None;
16538 {
16539 if (temp2)
16540 delete arg2;
16541 }
16542 return resultobj;
16543 fail:
16544 {
16545 if (temp2)
16546 delete arg2;
16547 }
16548 return NULL;
16549 }
16550
16551
16552 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj;
16554 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16555 long arg2 ;
16556 PyObject * obj0 = 0 ;
16557 PyObject * obj1 = 0 ;
16558 char *kwnames[] = {
16559 (char *) "self",(char *) "style", NULL
16560 };
16561
16562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16565 arg2 = (long)SWIG_As_long(obj1);
16566 if (PyErr_Occurred()) SWIG_fail;
16567 {
16568 PyThreadState* __tstate = wxPyBeginAllowThreads();
16569 (arg1)->SetStyle(arg2);
16570
16571 wxPyEndAllowThreads(__tstate);
16572 if (PyErr_Occurred()) SWIG_fail;
16573 }
16574 Py_INCREF(Py_None); resultobj = Py_None;
16575 return resultobj;
16576 fail:
16577 return NULL;
16578 }
16579
16580
16581 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16582 PyObject *resultobj;
16583 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16584 long result;
16585 PyObject * obj0 = 0 ;
16586 char *kwnames[] = {
16587 (char *) "self", NULL
16588 };
16589
16590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16593 {
16594 PyThreadState* __tstate = wxPyBeginAllowThreads();
16595 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16596
16597 wxPyEndAllowThreads(__tstate);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
16600 resultobj = SWIG_From_long((long)result);
16601 return resultobj;
16602 fail:
16603 return NULL;
16604 }
16605
16606
16607 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
16608 PyObject *obj;
16609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16610 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16611 Py_INCREF(obj);
16612 return Py_BuildValue((char *)"");
16613 }
16614 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16615 PyObject *resultobj;
16616 wxString const &arg1_defvalue = wxPyEmptyString ;
16617 wxString *arg1 = (wxString *) &arg1_defvalue ;
16618 wxString const &arg2_defvalue = wxPyEmptyString ;
16619 wxString *arg2 = (wxString *) &arg2_defvalue ;
16620 wxString const &arg3_defvalue = wxPyEmptyString ;
16621 wxString *arg3 = (wxString *) &arg3_defvalue ;
16622 wxString const &arg4_defvalue = wxPyEmptyString ;
16623 wxString *arg4 = (wxString *) &arg4_defvalue ;
16624 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16625 wxConfig *result;
16626 bool temp1 = False ;
16627 bool temp2 = False ;
16628 bool temp3 = False ;
16629 bool temp4 = False ;
16630 PyObject * obj0 = 0 ;
16631 PyObject * obj1 = 0 ;
16632 PyObject * obj2 = 0 ;
16633 PyObject * obj3 = 0 ;
16634 PyObject * obj4 = 0 ;
16635 char *kwnames[] = {
16636 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16637 };
16638
16639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16640 if (obj0) {
16641 {
16642 arg1 = wxString_in_helper(obj0);
16643 if (arg1 == NULL) SWIG_fail;
16644 temp1 = True;
16645 }
16646 }
16647 if (obj1) {
16648 {
16649 arg2 = wxString_in_helper(obj1);
16650 if (arg2 == NULL) SWIG_fail;
16651 temp2 = True;
16652 }
16653 }
16654 if (obj2) {
16655 {
16656 arg3 = wxString_in_helper(obj2);
16657 if (arg3 == NULL) SWIG_fail;
16658 temp3 = True;
16659 }
16660 }
16661 if (obj3) {
16662 {
16663 arg4 = wxString_in_helper(obj3);
16664 if (arg4 == NULL) SWIG_fail;
16665 temp4 = True;
16666 }
16667 }
16668 if (obj4) {
16669 arg5 = (long)SWIG_As_long(obj4);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
16672 {
16673 PyThreadState* __tstate = wxPyBeginAllowThreads();
16674 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16675
16676 wxPyEndAllowThreads(__tstate);
16677 if (PyErr_Occurred()) SWIG_fail;
16678 }
16679 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16680 {
16681 if (temp1)
16682 delete arg1;
16683 }
16684 {
16685 if (temp2)
16686 delete arg2;
16687 }
16688 {
16689 if (temp3)
16690 delete arg3;
16691 }
16692 {
16693 if (temp4)
16694 delete arg4;
16695 }
16696 return resultobj;
16697 fail:
16698 {
16699 if (temp1)
16700 delete arg1;
16701 }
16702 {
16703 if (temp2)
16704 delete arg2;
16705 }
16706 {
16707 if (temp3)
16708 delete arg3;
16709 }
16710 {
16711 if (temp4)
16712 delete arg4;
16713 }
16714 return NULL;
16715 }
16716
16717
16718 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16719 PyObject *resultobj;
16720 wxConfig *arg1 = (wxConfig *) 0 ;
16721 PyObject * obj0 = 0 ;
16722 char *kwnames[] = {
16723 (char *) "self", NULL
16724 };
16725
16726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16729 {
16730 PyThreadState* __tstate = wxPyBeginAllowThreads();
16731 delete arg1;
16732
16733 wxPyEndAllowThreads(__tstate);
16734 if (PyErr_Occurred()) SWIG_fail;
16735 }
16736 Py_INCREF(Py_None); resultobj = Py_None;
16737 return resultobj;
16738 fail:
16739 return NULL;
16740 }
16741
16742
16743 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
16744 PyObject *obj;
16745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16746 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16747 Py_INCREF(obj);
16748 return Py_BuildValue((char *)"");
16749 }
16750 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16751 PyObject *resultobj;
16752 wxString const &arg1_defvalue = wxPyEmptyString ;
16753 wxString *arg1 = (wxString *) &arg1_defvalue ;
16754 wxString const &arg2_defvalue = wxPyEmptyString ;
16755 wxString *arg2 = (wxString *) &arg2_defvalue ;
16756 wxString const &arg3_defvalue = wxPyEmptyString ;
16757 wxString *arg3 = (wxString *) &arg3_defvalue ;
16758 wxString const &arg4_defvalue = wxPyEmptyString ;
16759 wxString *arg4 = (wxString *) &arg4_defvalue ;
16760 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16761 wxFileConfig *result;
16762 bool temp1 = False ;
16763 bool temp2 = False ;
16764 bool temp3 = False ;
16765 bool temp4 = False ;
16766 PyObject * obj0 = 0 ;
16767 PyObject * obj1 = 0 ;
16768 PyObject * obj2 = 0 ;
16769 PyObject * obj3 = 0 ;
16770 PyObject * obj4 = 0 ;
16771 char *kwnames[] = {
16772 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16773 };
16774
16775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16776 if (obj0) {
16777 {
16778 arg1 = wxString_in_helper(obj0);
16779 if (arg1 == NULL) SWIG_fail;
16780 temp1 = True;
16781 }
16782 }
16783 if (obj1) {
16784 {
16785 arg2 = wxString_in_helper(obj1);
16786 if (arg2 == NULL) SWIG_fail;
16787 temp2 = True;
16788 }
16789 }
16790 if (obj2) {
16791 {
16792 arg3 = wxString_in_helper(obj2);
16793 if (arg3 == NULL) SWIG_fail;
16794 temp3 = True;
16795 }
16796 }
16797 if (obj3) {
16798 {
16799 arg4 = wxString_in_helper(obj3);
16800 if (arg4 == NULL) SWIG_fail;
16801 temp4 = True;
16802 }
16803 }
16804 if (obj4) {
16805 arg5 = (long)SWIG_As_long(obj4);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
16808 {
16809 PyThreadState* __tstate = wxPyBeginAllowThreads();
16810 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16811
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16816 {
16817 if (temp1)
16818 delete arg1;
16819 }
16820 {
16821 if (temp2)
16822 delete arg2;
16823 }
16824 {
16825 if (temp3)
16826 delete arg3;
16827 }
16828 {
16829 if (temp4)
16830 delete arg4;
16831 }
16832 return resultobj;
16833 fail:
16834 {
16835 if (temp1)
16836 delete arg1;
16837 }
16838 {
16839 if (temp2)
16840 delete arg2;
16841 }
16842 {
16843 if (temp3)
16844 delete arg3;
16845 }
16846 {
16847 if (temp4)
16848 delete arg4;
16849 }
16850 return NULL;
16851 }
16852
16853
16854 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16855 PyObject *resultobj;
16856 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16857 PyObject * obj0 = 0 ;
16858 char *kwnames[] = {
16859 (char *) "self", NULL
16860 };
16861
16862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16865 {
16866 PyThreadState* __tstate = wxPyBeginAllowThreads();
16867 delete arg1;
16868
16869 wxPyEndAllowThreads(__tstate);
16870 if (PyErr_Occurred()) SWIG_fail;
16871 }
16872 Py_INCREF(Py_None); resultobj = Py_None;
16873 return resultobj;
16874 fail:
16875 return NULL;
16876 }
16877
16878
16879 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
16880 PyObject *obj;
16881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16882 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16883 Py_INCREF(obj);
16884 return Py_BuildValue((char *)"");
16885 }
16886 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16887 PyObject *resultobj;
16888 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16889 wxString *arg2 = 0 ;
16890 wxConfigPathChanger *result;
16891 bool temp2 = False ;
16892 PyObject * obj0 = 0 ;
16893 PyObject * obj1 = 0 ;
16894 char *kwnames[] = {
16895 (char *) "config",(char *) "entry", NULL
16896 };
16897
16898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16901 {
16902 arg2 = wxString_in_helper(obj1);
16903 if (arg2 == NULL) SWIG_fail;
16904 temp2 = True;
16905 }
16906 {
16907 PyThreadState* __tstate = wxPyBeginAllowThreads();
16908 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16909
16910 wxPyEndAllowThreads(__tstate);
16911 if (PyErr_Occurred()) SWIG_fail;
16912 }
16913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16914 {
16915 if (temp2)
16916 delete arg2;
16917 }
16918 return resultobj;
16919 fail:
16920 {
16921 if (temp2)
16922 delete arg2;
16923 }
16924 return NULL;
16925 }
16926
16927
16928 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16929 PyObject *resultobj;
16930 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16931 PyObject * obj0 = 0 ;
16932 char *kwnames[] = {
16933 (char *) "self", NULL
16934 };
16935
16936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 delete arg1;
16942
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 Py_INCREF(Py_None); resultobj = Py_None;
16947 return resultobj;
16948 fail:
16949 return NULL;
16950 }
16951
16952
16953 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj;
16955 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16956 wxString *result;
16957 PyObject * obj0 = 0 ;
16958 char *kwnames[] = {
16959 (char *) "self", NULL
16960 };
16961
16962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16965 {
16966 PyThreadState* __tstate = wxPyBeginAllowThreads();
16967 {
16968 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16969 result = (wxString *) &_result_ref;
16970 }
16971
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 {
16976 #if wxUSE_UNICODE
16977 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16978 #else
16979 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16980 #endif
16981 }
16982 return resultobj;
16983 fail:
16984 return NULL;
16985 }
16986
16987
16988 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
16989 PyObject *obj;
16990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16991 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16992 Py_INCREF(obj);
16993 return Py_BuildValue((char *)"");
16994 }
16995 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj;
16997 wxString *arg1 = 0 ;
16998 wxString result;
16999 bool temp1 = False ;
17000 PyObject * obj0 = 0 ;
17001 char *kwnames[] = {
17002 (char *) "sz", NULL
17003 };
17004
17005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
17006 {
17007 arg1 = wxString_in_helper(obj0);
17008 if (arg1 == NULL) SWIG_fail;
17009 temp1 = True;
17010 }
17011 {
17012 PyThreadState* __tstate = wxPyBeginAllowThreads();
17013 result = wxExpandEnvVars((wxString const &)*arg1);
17014
17015 wxPyEndAllowThreads(__tstate);
17016 if (PyErr_Occurred()) SWIG_fail;
17017 }
17018 {
17019 #if wxUSE_UNICODE
17020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17021 #else
17022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17023 #endif
17024 }
17025 {
17026 if (temp1)
17027 delete arg1;
17028 }
17029 return resultobj;
17030 fail:
17031 {
17032 if (temp1)
17033 delete arg1;
17034 }
17035 return NULL;
17036 }
17037
17038
17039 static int _wrap_DateFormatStr_set(PyObject *) {
17040 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
17041 return 1;
17042 }
17043
17044
17045 static PyObject *_wrap_DateFormatStr_get() {
17046 PyObject *pyobj;
17047
17048 {
17049 #if wxUSE_UNICODE
17050 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17051 #else
17052 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17053 #endif
17054 }
17055 return pyobj;
17056 }
17057
17058
17059 static int _wrap_TimeSpanFormatStr_set(PyObject *) {
17060 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
17061 return 1;
17062 }
17063
17064
17065 static PyObject *_wrap_TimeSpanFormatStr_get() {
17066 PyObject *pyobj;
17067
17068 {
17069 #if wxUSE_UNICODE
17070 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17071 #else
17072 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17073 #endif
17074 }
17075 return pyobj;
17076 }
17077
17078
17079 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17080 PyObject *resultobj;
17081 int arg1 ;
17082 PyObject * obj0 = 0 ;
17083 char *kwnames[] = {
17084 (char *) "country", NULL
17085 };
17086
17087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
17088 arg1 = (int)SWIG_As_int(obj0);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 {
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
17092 wxDateTime::SetCountry((wxDateTime::Country )arg1);
17093
17094 wxPyEndAllowThreads(__tstate);
17095 if (PyErr_Occurred()) SWIG_fail;
17096 }
17097 Py_INCREF(Py_None); resultobj = Py_None;
17098 return resultobj;
17099 fail:
17100 return NULL;
17101 }
17102
17103
17104 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17105 PyObject *resultobj;
17106 int result;
17107 char *kwnames[] = {
17108 NULL
17109 };
17110
17111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = (int)wxDateTime::GetCountry();
17115
17116 wxPyEndAllowThreads(__tstate);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 resultobj = SWIG_From_int((int)result);
17120 return resultobj;
17121 fail:
17122 return NULL;
17123 }
17124
17125
17126 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17127 PyObject *resultobj;
17128 int arg1 = (int) wxDateTime::Country_Default ;
17129 bool result;
17130 PyObject * obj0 = 0 ;
17131 char *kwnames[] = {
17132 (char *) "country", NULL
17133 };
17134
17135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17136 if (obj0) {
17137 arg1 = (int)SWIG_As_int(obj0);
17138 if (PyErr_Occurred()) SWIG_fail;
17139 }
17140 {
17141 PyThreadState* __tstate = wxPyBeginAllowThreads();
17142 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17143
17144 wxPyEndAllowThreads(__tstate);
17145 if (PyErr_Occurred()) SWIG_fail;
17146 }
17147 {
17148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17149 }
17150 return resultobj;
17151 fail:
17152 return NULL;
17153 }
17154
17155
17156 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj;
17158 int arg1 = (int) wxDateTime::Gregorian ;
17159 int result;
17160 PyObject * obj0 = 0 ;
17161 char *kwnames[] = {
17162 (char *) "cal", NULL
17163 };
17164
17165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17166 if (obj0) {
17167 arg1 = (int)SWIG_As_int(obj0);
17168 if (PyErr_Occurred()) SWIG_fail;
17169 }
17170 {
17171 PyThreadState* __tstate = wxPyBeginAllowThreads();
17172 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17173
17174 wxPyEndAllowThreads(__tstate);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 }
17177 resultobj = SWIG_From_int((int)result);
17178 return resultobj;
17179 fail:
17180 return NULL;
17181 }
17182
17183
17184 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
17185 PyObject *resultobj;
17186 int arg1 ;
17187 int result;
17188 PyObject * obj0 = 0 ;
17189 char *kwnames[] = {
17190 (char *) "year", NULL
17191 };
17192
17193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
17194 arg1 = (int)SWIG_As_int(obj0);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 {
17197 PyThreadState* __tstate = wxPyBeginAllowThreads();
17198 result = (int)wxDateTime::ConvertYearToBC(arg1);
17199
17200 wxPyEndAllowThreads(__tstate);
17201 if (PyErr_Occurred()) SWIG_fail;
17202 }
17203 resultobj = SWIG_From_int((int)result);
17204 return resultobj;
17205 fail:
17206 return NULL;
17207 }
17208
17209
17210 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17211 PyObject *resultobj;
17212 int arg1 = (int) wxDateTime::Gregorian ;
17213 int result;
17214 PyObject * obj0 = 0 ;
17215 char *kwnames[] = {
17216 (char *) "cal", NULL
17217 };
17218
17219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17220 if (obj0) {
17221 arg1 = (int)SWIG_As_int(obj0);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 {
17225 PyThreadState* __tstate = wxPyBeginAllowThreads();
17226 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17227
17228 wxPyEndAllowThreads(__tstate);
17229 if (PyErr_Occurred()) SWIG_fail;
17230 }
17231 resultobj = SWIG_From_int((int)result);
17232 return resultobj;
17233 fail:
17234 return NULL;
17235 }
17236
17237
17238 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
17239 PyObject *resultobj;
17240 int arg1 = (int) wxDateTime::Inv_Year ;
17241 int arg2 = (int) wxDateTime::Gregorian ;
17242 bool result;
17243 PyObject * obj0 = 0 ;
17244 PyObject * obj1 = 0 ;
17245 char *kwnames[] = {
17246 (char *) "year",(char *) "cal", NULL
17247 };
17248
17249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17250 if (obj0) {
17251 arg1 = (int)SWIG_As_int(obj0);
17252 if (PyErr_Occurred()) SWIG_fail;
17253 }
17254 if (obj1) {
17255 arg2 = (int)SWIG_As_int(obj1);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 {
17259 PyThreadState* __tstate = wxPyBeginAllowThreads();
17260 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17261
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 {
17266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17267 }
17268 return resultobj;
17269 fail:
17270 return NULL;
17271 }
17272
17273
17274 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
17275 PyObject *resultobj;
17276 int arg1 = (int) wxDateTime::Inv_Year ;
17277 int result;
17278 PyObject * obj0 = 0 ;
17279 char *kwnames[] = {
17280 (char *) "year", NULL
17281 };
17282
17283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17284 if (obj0) {
17285 arg1 = (int)SWIG_As_int(obj0);
17286 if (PyErr_Occurred()) SWIG_fail;
17287 }
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 result = (int)wxDateTime::GetCentury(arg1);
17291
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 resultobj = SWIG_From_int((int)result);
17296 return resultobj;
17297 fail:
17298 return NULL;
17299 }
17300
17301
17302 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
17303 PyObject *resultobj;
17304 int arg1 ;
17305 int arg2 = (int) wxDateTime::Gregorian ;
17306 int result;
17307 PyObject * obj0 = 0 ;
17308 PyObject * obj1 = 0 ;
17309 char *kwnames[] = {
17310 (char *) "year",(char *) "cal", NULL
17311 };
17312
17313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17314 arg1 = (int)SWIG_As_int(obj0);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 if (obj1) {
17317 arg2 = (int)SWIG_As_int(obj1);
17318 if (PyErr_Occurred()) SWIG_fail;
17319 }
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17323
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 resultobj = SWIG_From_int((int)result);
17328 return resultobj;
17329 fail:
17330 return NULL;
17331 }
17332
17333
17334 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17335 PyObject *resultobj;
17336 int arg1 ;
17337 int arg2 = (int) wxDateTime::Inv_Year ;
17338 int arg3 = (int) wxDateTime::Gregorian ;
17339 int result;
17340 PyObject * obj0 = 0 ;
17341 PyObject * obj1 = 0 ;
17342 PyObject * obj2 = 0 ;
17343 char *kwnames[] = {
17344 (char *) "month",(char *) "year",(char *) "cal", NULL
17345 };
17346
17347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17348 arg1 = (int)SWIG_As_int(obj0);
17349 if (PyErr_Occurred()) SWIG_fail;
17350 if (obj1) {
17351 arg2 = (int)SWIG_As_int(obj1);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 if (obj2) {
17355 arg3 = (int)SWIG_As_int(obj2);
17356 if (PyErr_Occurred()) SWIG_fail;
17357 }
17358 {
17359 PyThreadState* __tstate = wxPyBeginAllowThreads();
17360 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17361
17362 wxPyEndAllowThreads(__tstate);
17363 if (PyErr_Occurred()) SWIG_fail;
17364 }
17365 resultobj = SWIG_From_int((int)result);
17366 return resultobj;
17367 fail:
17368 return NULL;
17369 }
17370
17371
17372 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
17373 PyObject *resultobj;
17374 int arg1 ;
17375 int arg2 = (int) wxDateTime::Name_Full ;
17376 wxString result;
17377 PyObject * obj0 = 0 ;
17378 PyObject * obj1 = 0 ;
17379 char *kwnames[] = {
17380 (char *) "month",(char *) "flags", NULL
17381 };
17382
17383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17384 arg1 = (int)SWIG_As_int(obj0);
17385 if (PyErr_Occurred()) SWIG_fail;
17386 if (obj1) {
17387 arg2 = (int)SWIG_As_int(obj1);
17388 if (PyErr_Occurred()) SWIG_fail;
17389 }
17390 {
17391 PyThreadState* __tstate = wxPyBeginAllowThreads();
17392 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17393
17394 wxPyEndAllowThreads(__tstate);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
17397 {
17398 #if wxUSE_UNICODE
17399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17400 #else
17401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17402 #endif
17403 }
17404 return resultobj;
17405 fail:
17406 return NULL;
17407 }
17408
17409
17410 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
17411 PyObject *resultobj;
17412 int arg1 ;
17413 int arg2 = (int) wxDateTime::Name_Full ;
17414 wxString result;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17417 char *kwnames[] = {
17418 (char *) "weekday",(char *) "flags", NULL
17419 };
17420
17421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17422 arg1 = (int)SWIG_As_int(obj0);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 if (obj1) {
17425 arg2 = (int)SWIG_As_int(obj1);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 }
17428 {
17429 PyThreadState* __tstate = wxPyBeginAllowThreads();
17430 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17431
17432 wxPyEndAllowThreads(__tstate);
17433 if (PyErr_Occurred()) SWIG_fail;
17434 }
17435 {
17436 #if wxUSE_UNICODE
17437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17438 #else
17439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17440 #endif
17441 }
17442 return resultobj;
17443 fail:
17444 return NULL;
17445 }
17446
17447
17448 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
17449 PyObject *resultobj;
17450 wxString *arg1 = (wxString *) 0 ;
17451 wxString *arg2 = (wxString *) 0 ;
17452 bool temp1 = False ;
17453 bool temp2 = False ;
17454 PyObject * obj0 = 0 ;
17455 PyObject * obj1 = 0 ;
17456 char *kwnames[] = {
17457 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17458 };
17459
17460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17461 {
17462 arg1 = wxString_in_helper(obj0);
17463 if (arg1 == NULL) SWIG_fail;
17464 temp1 = True;
17465 }
17466 {
17467 arg2 = wxString_in_helper(obj1);
17468 if (arg2 == NULL) SWIG_fail;
17469 temp2 = True;
17470 }
17471 {
17472 PyThreadState* __tstate = wxPyBeginAllowThreads();
17473 wxDateTime::GetAmPmStrings(arg1,arg2);
17474
17475 wxPyEndAllowThreads(__tstate);
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
17478 Py_INCREF(Py_None); resultobj = Py_None;
17479 {
17480 if (temp1)
17481 delete arg1;
17482 }
17483 {
17484 if (temp2)
17485 delete arg2;
17486 }
17487 return resultobj;
17488 fail:
17489 {
17490 if (temp1)
17491 delete arg1;
17492 }
17493 {
17494 if (temp2)
17495 delete arg2;
17496 }
17497 return NULL;
17498 }
17499
17500
17501 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
17502 PyObject *resultobj;
17503 int arg1 = (int) wxDateTime::Inv_Year ;
17504 int arg2 = (int) wxDateTime::Country_Default ;
17505 bool result;
17506 PyObject * obj0 = 0 ;
17507 PyObject * obj1 = 0 ;
17508 char *kwnames[] = {
17509 (char *) "year",(char *) "country", NULL
17510 };
17511
17512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17513 if (obj0) {
17514 arg1 = (int)SWIG_As_int(obj0);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 if (obj1) {
17518 arg2 = (int)SWIG_As_int(obj1);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
17523 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17524
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
17528 {
17529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17530 }
17531 return resultobj;
17532 fail:
17533 return NULL;
17534 }
17535
17536
17537 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj;
17539 int arg1 = (int) wxDateTime::Inv_Year ;
17540 int arg2 = (int) wxDateTime::Country_Default ;
17541 wxDateTime result;
17542 PyObject * obj0 = 0 ;
17543 PyObject * obj1 = 0 ;
17544 char *kwnames[] = {
17545 (char *) "year",(char *) "country", NULL
17546 };
17547
17548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17549 if (obj0) {
17550 arg1 = (int)SWIG_As_int(obj0);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 if (obj1) {
17554 arg2 = (int)SWIG_As_int(obj1);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 {
17558 PyThreadState* __tstate = wxPyBeginAllowThreads();
17559 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17560
17561 wxPyEndAllowThreads(__tstate);
17562 if (PyErr_Occurred()) SWIG_fail;
17563 }
17564 {
17565 wxDateTime * resultptr;
17566 resultptr = new wxDateTime((wxDateTime &) result);
17567 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17568 }
17569 return resultobj;
17570 fail:
17571 return NULL;
17572 }
17573
17574
17575 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
17576 PyObject *resultobj;
17577 int arg1 = (int) wxDateTime::Inv_Year ;
17578 int arg2 = (int) wxDateTime::Country_Default ;
17579 wxDateTime result;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 char *kwnames[] = {
17583 (char *) "year",(char *) "country", NULL
17584 };
17585
17586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17587 if (obj0) {
17588 arg1 = (int)SWIG_As_int(obj0);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 if (obj1) {
17592 arg2 = (int)SWIG_As_int(obj1);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
17595 {
17596 PyThreadState* __tstate = wxPyBeginAllowThreads();
17597 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17598
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 {
17603 wxDateTime * resultptr;
17604 resultptr = new wxDateTime((wxDateTime &) result);
17605 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17606 }
17607 return resultobj;
17608 fail:
17609 return NULL;
17610 }
17611
17612
17613 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
17614 PyObject *resultobj;
17615 wxDateTime result;
17616 char *kwnames[] = {
17617 NULL
17618 };
17619
17620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17621 {
17622 PyThreadState* __tstate = wxPyBeginAllowThreads();
17623 result = wxDateTime::Now();
17624
17625 wxPyEndAllowThreads(__tstate);
17626 if (PyErr_Occurred()) SWIG_fail;
17627 }
17628 {
17629 wxDateTime * resultptr;
17630 resultptr = new wxDateTime((wxDateTime &) result);
17631 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17632 }
17633 return resultobj;
17634 fail:
17635 return NULL;
17636 }
17637
17638
17639 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
17640 PyObject *resultobj;
17641 wxDateTime result;
17642 char *kwnames[] = {
17643 NULL
17644 };
17645
17646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17647 {
17648 PyThreadState* __tstate = wxPyBeginAllowThreads();
17649 result = wxDateTime::UNow();
17650
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 {
17655 wxDateTime * resultptr;
17656 resultptr = new wxDateTime((wxDateTime &) result);
17657 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17658 }
17659 return resultobj;
17660 fail:
17661 return NULL;
17662 }
17663
17664
17665 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
17666 PyObject *resultobj;
17667 wxDateTime result;
17668 char *kwnames[] = {
17669 NULL
17670 };
17671
17672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17673 {
17674 PyThreadState* __tstate = wxPyBeginAllowThreads();
17675 result = wxDateTime::Today();
17676
17677 wxPyEndAllowThreads(__tstate);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 {
17681 wxDateTime * resultptr;
17682 resultptr = new wxDateTime((wxDateTime &) result);
17683 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17684 }
17685 return resultobj;
17686 fail:
17687 return NULL;
17688 }
17689
17690
17691 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17692 PyObject *resultobj;
17693 wxDateTime *result;
17694 char *kwnames[] = {
17695 NULL
17696 };
17697
17698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17699 {
17700 PyThreadState* __tstate = wxPyBeginAllowThreads();
17701 result = (wxDateTime *)new wxDateTime();
17702
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17707 return resultobj;
17708 fail:
17709 return NULL;
17710 }
17711
17712
17713 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17714 PyObject *resultobj;
17715 time_t arg1 ;
17716 wxDateTime *result;
17717 PyObject * obj0 = 0 ;
17718 char *kwnames[] = {
17719 (char *) "timet", NULL
17720 };
17721
17722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17723 arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0);
17724 if (PyErr_Occurred()) SWIG_fail;
17725 {
17726 PyThreadState* __tstate = wxPyBeginAllowThreads();
17727 result = (wxDateTime *)new wxDateTime(arg1);
17728
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17733 return resultobj;
17734 fail:
17735 return NULL;
17736 }
17737
17738
17739 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17740 PyObject *resultobj;
17741 double arg1 ;
17742 wxDateTime *result;
17743 PyObject * obj0 = 0 ;
17744 char *kwnames[] = {
17745 (char *) "jdn", NULL
17746 };
17747
17748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17749 arg1 = (double)SWIG_As_double(obj0);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 {
17752 PyThreadState* __tstate = wxPyBeginAllowThreads();
17753 result = (wxDateTime *)new wxDateTime(arg1);
17754
17755 wxPyEndAllowThreads(__tstate);
17756 if (PyErr_Occurred()) SWIG_fail;
17757 }
17758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17759 return resultobj;
17760 fail:
17761 return NULL;
17762 }
17763
17764
17765 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17766 PyObject *resultobj;
17767 int arg1 ;
17768 int arg2 = (int) 0 ;
17769 int arg3 = (int) 0 ;
17770 int arg4 = (int) 0 ;
17771 wxDateTime *result;
17772 PyObject * obj0 = 0 ;
17773 PyObject * obj1 = 0 ;
17774 PyObject * obj2 = 0 ;
17775 PyObject * obj3 = 0 ;
17776 char *kwnames[] = {
17777 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17778 };
17779
17780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17781 arg1 = (int)SWIG_As_int(obj0);
17782 if (PyErr_Occurred()) SWIG_fail;
17783 if (obj1) {
17784 arg2 = (int)SWIG_As_int(obj1);
17785 if (PyErr_Occurred()) SWIG_fail;
17786 }
17787 if (obj2) {
17788 arg3 = (int)SWIG_As_int(obj2);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 if (obj3) {
17792 arg4 = (int)SWIG_As_int(obj3);
17793 if (PyErr_Occurred()) SWIG_fail;
17794 }
17795 {
17796 PyThreadState* __tstate = wxPyBeginAllowThreads();
17797 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17798
17799 wxPyEndAllowThreads(__tstate);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17803 return resultobj;
17804 fail:
17805 return NULL;
17806 }
17807
17808
17809 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
17810 PyObject *resultobj;
17811 int arg1 ;
17812 int arg2 = (int) wxDateTime::Inv_Month ;
17813 int arg3 = (int) wxDateTime::Inv_Year ;
17814 int arg4 = (int) 0 ;
17815 int arg5 = (int) 0 ;
17816 int arg6 = (int) 0 ;
17817 int arg7 = (int) 0 ;
17818 wxDateTime *result;
17819 PyObject * obj0 = 0 ;
17820 PyObject * obj1 = 0 ;
17821 PyObject * obj2 = 0 ;
17822 PyObject * obj3 = 0 ;
17823 PyObject * obj4 = 0 ;
17824 PyObject * obj5 = 0 ;
17825 PyObject * obj6 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17831 arg1 = (int)SWIG_As_int(obj0);
17832 if (PyErr_Occurred()) SWIG_fail;
17833 if (obj1) {
17834 arg2 = (int)SWIG_As_int(obj1);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 }
17837 if (obj2) {
17838 arg3 = (int)SWIG_As_int(obj2);
17839 if (PyErr_Occurred()) SWIG_fail;
17840 }
17841 if (obj3) {
17842 arg4 = (int)SWIG_As_int(obj3);
17843 if (PyErr_Occurred()) SWIG_fail;
17844 }
17845 if (obj4) {
17846 arg5 = (int)SWIG_As_int(obj4);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 if (obj5) {
17850 arg6 = (int)SWIG_As_int(obj5);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 }
17853 if (obj6) {
17854 arg7 = (int)SWIG_As_int(obj6);
17855 if (PyErr_Occurred()) SWIG_fail;
17856 }
17857 {
17858 PyThreadState* __tstate = wxPyBeginAllowThreads();
17859 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17860
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17865 return resultobj;
17866 fail:
17867 return NULL;
17868 }
17869
17870
17871 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17872 PyObject *resultobj;
17873 wxDateTime *arg1 = (wxDateTime *) 0 ;
17874 PyObject * obj0 = 0 ;
17875 char *kwnames[] = {
17876 (char *) "self", NULL
17877 };
17878
17879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17882 {
17883 PyThreadState* __tstate = wxPyBeginAllowThreads();
17884 delete arg1;
17885
17886 wxPyEndAllowThreads(__tstate);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 }
17889 Py_INCREF(Py_None); resultobj = Py_None;
17890 return resultobj;
17891 fail:
17892 return NULL;
17893 }
17894
17895
17896 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
17897 PyObject *resultobj;
17898 wxDateTime *arg1 = (wxDateTime *) 0 ;
17899 wxDateTime *result;
17900 PyObject * obj0 = 0 ;
17901 char *kwnames[] = {
17902 (char *) "self", NULL
17903 };
17904
17905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17908 {
17909 PyThreadState* __tstate = wxPyBeginAllowThreads();
17910 {
17911 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17912 result = (wxDateTime *) &_result_ref;
17913 }
17914
17915 wxPyEndAllowThreads(__tstate);
17916 if (PyErr_Occurred()) SWIG_fail;
17917 }
17918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17919 return resultobj;
17920 fail:
17921 return NULL;
17922 }
17923
17924
17925 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17926 PyObject *resultobj;
17927 wxDateTime *arg1 = (wxDateTime *) 0 ;
17928 time_t arg2 ;
17929 wxDateTime *result;
17930 PyObject * obj0 = 0 ;
17931 PyObject * obj1 = 0 ;
17932 char *kwnames[] = {
17933 (char *) "self",(char *) "timet", NULL
17934 };
17935
17936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17939 arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 {
17942 PyThreadState* __tstate = wxPyBeginAllowThreads();
17943 {
17944 wxDateTime &_result_ref = (arg1)->Set(arg2);
17945 result = (wxDateTime *) &_result_ref;
17946 }
17947
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17952 return resultobj;
17953 fail:
17954 return NULL;
17955 }
17956
17957
17958 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17959 PyObject *resultobj;
17960 wxDateTime *arg1 = (wxDateTime *) 0 ;
17961 double arg2 ;
17962 wxDateTime *result;
17963 PyObject * obj0 = 0 ;
17964 PyObject * obj1 = 0 ;
17965 char *kwnames[] = {
17966 (char *) "self",(char *) "jdn", NULL
17967 };
17968
17969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17972 arg2 = (double)SWIG_As_double(obj1);
17973 if (PyErr_Occurred()) SWIG_fail;
17974 {
17975 PyThreadState* __tstate = wxPyBeginAllowThreads();
17976 {
17977 wxDateTime &_result_ref = (arg1)->Set(arg2);
17978 result = (wxDateTime *) &_result_ref;
17979 }
17980
17981 wxPyEndAllowThreads(__tstate);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 }
17984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17985 return resultobj;
17986 fail:
17987 return NULL;
17988 }
17989
17990
17991 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17992 PyObject *resultobj;
17993 wxDateTime *arg1 = (wxDateTime *) 0 ;
17994 int arg2 ;
17995 int arg3 = (int) 0 ;
17996 int arg4 = (int) 0 ;
17997 int arg5 = (int) 0 ;
17998 wxDateTime *result;
17999 PyObject * obj0 = 0 ;
18000 PyObject * obj1 = 0 ;
18001 PyObject * obj2 = 0 ;
18002 PyObject * obj3 = 0 ;
18003 PyObject * obj4 = 0 ;
18004 char *kwnames[] = {
18005 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18006 };
18007
18008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18011 arg2 = (int)SWIG_As_int(obj1);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 if (obj2) {
18014 arg3 = (int)SWIG_As_int(obj2);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 if (obj3) {
18018 arg4 = (int)SWIG_As_int(obj3);
18019 if (PyErr_Occurred()) SWIG_fail;
18020 }
18021 if (obj4) {
18022 arg5 = (int)SWIG_As_int(obj4);
18023 if (PyErr_Occurred()) SWIG_fail;
18024 }
18025 {
18026 PyThreadState* __tstate = wxPyBeginAllowThreads();
18027 {
18028 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
18029 result = (wxDateTime *) &_result_ref;
18030 }
18031
18032 wxPyEndAllowThreads(__tstate);
18033 if (PyErr_Occurred()) SWIG_fail;
18034 }
18035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18036 return resultobj;
18037 fail:
18038 return NULL;
18039 }
18040
18041
18042 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18043 PyObject *resultobj;
18044 wxDateTime *arg1 = (wxDateTime *) 0 ;
18045 int arg2 ;
18046 int arg3 = (int) wxDateTime::Inv_Month ;
18047 int arg4 = (int) wxDateTime::Inv_Year ;
18048 int arg5 = (int) 0 ;
18049 int arg6 = (int) 0 ;
18050 int arg7 = (int) 0 ;
18051 int arg8 = (int) 0 ;
18052 wxDateTime *result;
18053 PyObject * obj0 = 0 ;
18054 PyObject * obj1 = 0 ;
18055 PyObject * obj2 = 0 ;
18056 PyObject * obj3 = 0 ;
18057 PyObject * obj4 = 0 ;
18058 PyObject * obj5 = 0 ;
18059 PyObject * obj6 = 0 ;
18060 PyObject * obj7 = 0 ;
18061 char *kwnames[] = {
18062 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18063 };
18064
18065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18068 arg2 = (int)SWIG_As_int(obj1);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 if (obj2) {
18071 arg3 = (int)SWIG_As_int(obj2);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 if (obj3) {
18075 arg4 = (int)SWIG_As_int(obj3);
18076 if (PyErr_Occurred()) SWIG_fail;
18077 }
18078 if (obj4) {
18079 arg5 = (int)SWIG_As_int(obj4);
18080 if (PyErr_Occurred()) SWIG_fail;
18081 }
18082 if (obj5) {
18083 arg6 = (int)SWIG_As_int(obj5);
18084 if (PyErr_Occurred()) SWIG_fail;
18085 }
18086 if (obj6) {
18087 arg7 = (int)SWIG_As_int(obj6);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 if (obj7) {
18091 arg8 = (int)SWIG_As_int(obj7);
18092 if (PyErr_Occurred()) SWIG_fail;
18093 }
18094 {
18095 PyThreadState* __tstate = wxPyBeginAllowThreads();
18096 {
18097 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
18098 result = (wxDateTime *) &_result_ref;
18099 }
18100
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj;
18113 wxDateTime *arg1 = (wxDateTime *) 0 ;
18114 wxDateTime *result;
18115 PyObject * obj0 = 0 ;
18116 char *kwnames[] = {
18117 (char *) "self", NULL
18118 };
18119
18120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
18121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18123 {
18124 PyThreadState* __tstate = wxPyBeginAllowThreads();
18125 {
18126 wxDateTime &_result_ref = (arg1)->ResetTime();
18127 result = (wxDateTime *) &_result_ref;
18128 }
18129
18130 wxPyEndAllowThreads(__tstate);
18131 if (PyErr_Occurred()) SWIG_fail;
18132 }
18133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18134 return resultobj;
18135 fail:
18136 return NULL;
18137 }
18138
18139
18140 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
18141 PyObject *resultobj;
18142 wxDateTime *arg1 = (wxDateTime *) 0 ;
18143 int arg2 ;
18144 wxDateTime *result;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18147 char *kwnames[] = {
18148 (char *) "self",(char *) "year", NULL
18149 };
18150
18151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18154 arg2 = (int)SWIG_As_int(obj1);
18155 if (PyErr_Occurred()) SWIG_fail;
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 {
18159 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18160 result = (wxDateTime *) &_result_ref;
18161 }
18162
18163 wxPyEndAllowThreads(__tstate);
18164 if (PyErr_Occurred()) SWIG_fail;
18165 }
18166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18167 return resultobj;
18168 fail:
18169 return NULL;
18170 }
18171
18172
18173 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
18174 PyObject *resultobj;
18175 wxDateTime *arg1 = (wxDateTime *) 0 ;
18176 int arg2 ;
18177 wxDateTime *result;
18178 PyObject * obj0 = 0 ;
18179 PyObject * obj1 = 0 ;
18180 char *kwnames[] = {
18181 (char *) "self",(char *) "month", NULL
18182 };
18183
18184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18187 arg2 = (int)SWIG_As_int(obj1);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 {
18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
18191 {
18192 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18193 result = (wxDateTime *) &_result_ref;
18194 }
18195
18196 wxPyEndAllowThreads(__tstate);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18200 return resultobj;
18201 fail:
18202 return NULL;
18203 }
18204
18205
18206 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
18207 PyObject *resultobj;
18208 wxDateTime *arg1 = (wxDateTime *) 0 ;
18209 int arg2 ;
18210 wxDateTime *result;
18211 PyObject * obj0 = 0 ;
18212 PyObject * obj1 = 0 ;
18213 char *kwnames[] = {
18214 (char *) "self",(char *) "day", NULL
18215 };
18216
18217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18220 arg2 = (int)SWIG_As_int(obj1);
18221 if (PyErr_Occurred()) SWIG_fail;
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 {
18225 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18226 result = (wxDateTime *) &_result_ref;
18227 }
18228
18229 wxPyEndAllowThreads(__tstate);
18230 if (PyErr_Occurred()) SWIG_fail;
18231 }
18232 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18233 return resultobj;
18234 fail:
18235 return NULL;
18236 }
18237
18238
18239 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
18240 PyObject *resultobj;
18241 wxDateTime *arg1 = (wxDateTime *) 0 ;
18242 int arg2 ;
18243 wxDateTime *result;
18244 PyObject * obj0 = 0 ;
18245 PyObject * obj1 = 0 ;
18246 char *kwnames[] = {
18247 (char *) "self",(char *) "hour", NULL
18248 };
18249
18250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18253 arg2 = (int)SWIG_As_int(obj1);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 {
18256 PyThreadState* __tstate = wxPyBeginAllowThreads();
18257 {
18258 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18259 result = (wxDateTime *) &_result_ref;
18260 }
18261
18262 wxPyEndAllowThreads(__tstate);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 }
18265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18266 return resultobj;
18267 fail:
18268 return NULL;
18269 }
18270
18271
18272 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
18273 PyObject *resultobj;
18274 wxDateTime *arg1 = (wxDateTime *) 0 ;
18275 int arg2 ;
18276 wxDateTime *result;
18277 PyObject * obj0 = 0 ;
18278 PyObject * obj1 = 0 ;
18279 char *kwnames[] = {
18280 (char *) "self",(char *) "minute", NULL
18281 };
18282
18283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18286 arg2 = (int)SWIG_As_int(obj1);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 {
18289 PyThreadState* __tstate = wxPyBeginAllowThreads();
18290 {
18291 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18292 result = (wxDateTime *) &_result_ref;
18293 }
18294
18295 wxPyEndAllowThreads(__tstate);
18296 if (PyErr_Occurred()) SWIG_fail;
18297 }
18298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18299 return resultobj;
18300 fail:
18301 return NULL;
18302 }
18303
18304
18305 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
18306 PyObject *resultobj;
18307 wxDateTime *arg1 = (wxDateTime *) 0 ;
18308 int arg2 ;
18309 wxDateTime *result;
18310 PyObject * obj0 = 0 ;
18311 PyObject * obj1 = 0 ;
18312 char *kwnames[] = {
18313 (char *) "self",(char *) "second", NULL
18314 };
18315
18316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18319 arg2 = (int)SWIG_As_int(obj1);
18320 if (PyErr_Occurred()) SWIG_fail;
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 {
18324 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
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_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj;
18340 wxDateTime *arg1 = (wxDateTime *) 0 ;
18341 int arg2 ;
18342 wxDateTime *result;
18343 PyObject * obj0 = 0 ;
18344 PyObject * obj1 = 0 ;
18345 char *kwnames[] = {
18346 (char *) "self",(char *) "millisecond", NULL
18347 };
18348
18349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18352 arg2 = (int)SWIG_As_int(obj1);
18353 if (PyErr_Occurred()) SWIG_fail;
18354 {
18355 PyThreadState* __tstate = wxPyBeginAllowThreads();
18356 {
18357 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18358 result = (wxDateTime *) &_result_ref;
18359 }
18360
18361 wxPyEndAllowThreads(__tstate);
18362 if (PyErr_Occurred()) SWIG_fail;
18363 }
18364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18365 return resultobj;
18366 fail:
18367 return NULL;
18368 }
18369
18370
18371 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18372 PyObject *resultobj;
18373 wxDateTime *arg1 = (wxDateTime *) 0 ;
18374 int arg2 ;
18375 int arg3 = (int) wxDateTime::Monday_First ;
18376 wxDateTime *result;
18377 PyObject * obj0 = 0 ;
18378 PyObject * obj1 = 0 ;
18379 PyObject * obj2 = 0 ;
18380 char *kwnames[] = {
18381 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18382 };
18383
18384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18387 arg2 = (int)SWIG_As_int(obj1);
18388 if (PyErr_Occurred()) SWIG_fail;
18389 if (obj2) {
18390 arg3 = (int)SWIG_As_int(obj2);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 {
18394 PyThreadState* __tstate = wxPyBeginAllowThreads();
18395 {
18396 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18397 result = (wxDateTime *) &_result_ref;
18398 }
18399
18400 wxPyEndAllowThreads(__tstate);
18401 if (PyErr_Occurred()) SWIG_fail;
18402 }
18403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18404 return resultobj;
18405 fail:
18406 return NULL;
18407 }
18408
18409
18410 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18411 PyObject *resultobj;
18412 wxDateTime *arg1 = (wxDateTime *) 0 ;
18413 int arg2 ;
18414 int arg3 = (int) wxDateTime::Monday_First ;
18415 wxDateTime result;
18416 PyObject * obj0 = 0 ;
18417 PyObject * obj1 = 0 ;
18418 PyObject * obj2 = 0 ;
18419 char *kwnames[] = {
18420 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18421 };
18422
18423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18426 arg2 = (int)SWIG_As_int(obj1);
18427 if (PyErr_Occurred()) SWIG_fail;
18428 if (obj2) {
18429 arg3 = (int)SWIG_As_int(obj2);
18430 if (PyErr_Occurred()) SWIG_fail;
18431 }
18432 {
18433 PyThreadState* __tstate = wxPyBeginAllowThreads();
18434 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18435
18436 wxPyEndAllowThreads(__tstate);
18437 if (PyErr_Occurred()) SWIG_fail;
18438 }
18439 {
18440 wxDateTime * resultptr;
18441 resultptr = new wxDateTime((wxDateTime &) result);
18442 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18443 }
18444 return resultobj;
18445 fail:
18446 return NULL;
18447 }
18448
18449
18450 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18451 PyObject *resultobj;
18452 wxDateTime *arg1 = (wxDateTime *) 0 ;
18453 int arg2 ;
18454 wxDateTime *result;
18455 PyObject * obj0 = 0 ;
18456 PyObject * obj1 = 0 ;
18457 char *kwnames[] = {
18458 (char *) "self",(char *) "weekday", NULL
18459 };
18460
18461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18464 arg2 = (int)SWIG_As_int(obj1);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 {
18467 PyThreadState* __tstate = wxPyBeginAllowThreads();
18468 {
18469 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18470 result = (wxDateTime *) &_result_ref;
18471 }
18472
18473 wxPyEndAllowThreads(__tstate);
18474 if (PyErr_Occurred()) SWIG_fail;
18475 }
18476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18477 return resultobj;
18478 fail:
18479 return NULL;
18480 }
18481
18482
18483 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18484 PyObject *resultobj;
18485 wxDateTime *arg1 = (wxDateTime *) 0 ;
18486 int arg2 ;
18487 wxDateTime result;
18488 PyObject * obj0 = 0 ;
18489 PyObject * obj1 = 0 ;
18490 char *kwnames[] = {
18491 (char *) "self",(char *) "weekday", NULL
18492 };
18493
18494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18497 arg2 = (int)SWIG_As_int(obj1);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 {
18500 PyThreadState* __tstate = wxPyBeginAllowThreads();
18501 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18502
18503 wxPyEndAllowThreads(__tstate);
18504 if (PyErr_Occurred()) SWIG_fail;
18505 }
18506 {
18507 wxDateTime * resultptr;
18508 resultptr = new wxDateTime((wxDateTime &) result);
18509 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18510 }
18511 return resultobj;
18512 fail:
18513 return NULL;
18514 }
18515
18516
18517 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj;
18519 wxDateTime *arg1 = (wxDateTime *) 0 ;
18520 int arg2 ;
18521 wxDateTime *result;
18522 PyObject * obj0 = 0 ;
18523 PyObject * obj1 = 0 ;
18524 char *kwnames[] = {
18525 (char *) "self",(char *) "weekday", NULL
18526 };
18527
18528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18531 arg2 = (int)SWIG_As_int(obj1);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 {
18534 PyThreadState* __tstate = wxPyBeginAllowThreads();
18535 {
18536 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18537 result = (wxDateTime *) &_result_ref;
18538 }
18539
18540 wxPyEndAllowThreads(__tstate);
18541 if (PyErr_Occurred()) SWIG_fail;
18542 }
18543 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18544 return resultobj;
18545 fail:
18546 return NULL;
18547 }
18548
18549
18550 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18551 PyObject *resultobj;
18552 wxDateTime *arg1 = (wxDateTime *) 0 ;
18553 int arg2 ;
18554 wxDateTime result;
18555 PyObject * obj0 = 0 ;
18556 PyObject * obj1 = 0 ;
18557 char *kwnames[] = {
18558 (char *) "self",(char *) "weekday", NULL
18559 };
18560
18561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18564 arg2 = (int)SWIG_As_int(obj1);
18565 if (PyErr_Occurred()) SWIG_fail;
18566 {
18567 PyThreadState* __tstate = wxPyBeginAllowThreads();
18568 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18569
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 {
18574 wxDateTime * resultptr;
18575 resultptr = new wxDateTime((wxDateTime &) result);
18576 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18577 }
18578 return resultobj;
18579 fail:
18580 return NULL;
18581 }
18582
18583
18584 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18585 PyObject *resultobj;
18586 wxDateTime *arg1 = (wxDateTime *) 0 ;
18587 int arg2 ;
18588 int arg3 = (int) 1 ;
18589 int arg4 = (int) wxDateTime::Inv_Month ;
18590 int arg5 = (int) wxDateTime::Inv_Year ;
18591 bool result;
18592 PyObject * obj0 = 0 ;
18593 PyObject * obj1 = 0 ;
18594 PyObject * obj2 = 0 ;
18595 PyObject * obj3 = 0 ;
18596 PyObject * obj4 = 0 ;
18597 char *kwnames[] = {
18598 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18599 };
18600
18601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18604 arg2 = (int)SWIG_As_int(obj1);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 if (obj2) {
18607 arg3 = (int)SWIG_As_int(obj2);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 if (obj3) {
18611 arg4 = (int)SWIG_As_int(obj3);
18612 if (PyErr_Occurred()) SWIG_fail;
18613 }
18614 if (obj4) {
18615 arg5 = (int)SWIG_As_int(obj4);
18616 if (PyErr_Occurred()) SWIG_fail;
18617 }
18618 {
18619 PyThreadState* __tstate = wxPyBeginAllowThreads();
18620 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18621
18622 wxPyEndAllowThreads(__tstate);
18623 if (PyErr_Occurred()) SWIG_fail;
18624 }
18625 {
18626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18627 }
18628 return resultobj;
18629 fail:
18630 return NULL;
18631 }
18632
18633
18634 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18635 PyObject *resultobj;
18636 wxDateTime *arg1 = (wxDateTime *) 0 ;
18637 int arg2 ;
18638 int arg3 = (int) wxDateTime::Inv_Month ;
18639 int arg4 = (int) wxDateTime::Inv_Year ;
18640 bool result;
18641 PyObject * obj0 = 0 ;
18642 PyObject * obj1 = 0 ;
18643 PyObject * obj2 = 0 ;
18644 PyObject * obj3 = 0 ;
18645 char *kwnames[] = {
18646 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18647 };
18648
18649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18652 arg2 = (int)SWIG_As_int(obj1);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 if (obj2) {
18655 arg3 = (int)SWIG_As_int(obj2);
18656 if (PyErr_Occurred()) SWIG_fail;
18657 }
18658 if (obj3) {
18659 arg4 = (int)SWIG_As_int(obj3);
18660 if (PyErr_Occurred()) SWIG_fail;
18661 }
18662 {
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18665
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 {
18670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18671 }
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj;
18680 wxDateTime *arg1 = (wxDateTime *) 0 ;
18681 int arg2 ;
18682 int arg3 = (int) wxDateTime::Inv_Month ;
18683 int arg4 = (int) wxDateTime::Inv_Year ;
18684 wxDateTime result;
18685 PyObject * obj0 = 0 ;
18686 PyObject * obj1 = 0 ;
18687 PyObject * obj2 = 0 ;
18688 PyObject * obj3 = 0 ;
18689 char *kwnames[] = {
18690 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18691 };
18692
18693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18696 arg2 = (int)SWIG_As_int(obj1);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 if (obj2) {
18699 arg3 = (int)SWIG_As_int(obj2);
18700 if (PyErr_Occurred()) SWIG_fail;
18701 }
18702 if (obj3) {
18703 arg4 = (int)SWIG_As_int(obj3);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 {
18707 PyThreadState* __tstate = wxPyBeginAllowThreads();
18708 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18709
18710 wxPyEndAllowThreads(__tstate);
18711 if (PyErr_Occurred()) SWIG_fail;
18712 }
18713 {
18714 wxDateTime * resultptr;
18715 resultptr = new wxDateTime((wxDateTime &) result);
18716 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18717 }
18718 return resultobj;
18719 fail:
18720 return NULL;
18721 }
18722
18723
18724 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18725 PyObject *resultobj;
18726 wxDateTime *arg1 = (wxDateTime *) 0 ;
18727 int arg2 ;
18728 int arg3 = (int) wxDateTime::Mon ;
18729 int arg4 = (int) wxDateTime::Monday_First ;
18730 bool result;
18731 PyObject * obj0 = 0 ;
18732 PyObject * obj1 = 0 ;
18733 PyObject * obj2 = 0 ;
18734 PyObject * obj3 = 0 ;
18735 char *kwnames[] = {
18736 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18737 };
18738
18739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18742 arg2 = (int)SWIG_As_int(obj1);
18743 if (PyErr_Occurred()) SWIG_fail;
18744 if (obj2) {
18745 arg3 = (int)SWIG_As_int(obj2);
18746 if (PyErr_Occurred()) SWIG_fail;
18747 }
18748 if (obj3) {
18749 arg4 = (int)SWIG_As_int(obj3);
18750 if (PyErr_Occurred()) SWIG_fail;
18751 }
18752 {
18753 PyThreadState* __tstate = wxPyBeginAllowThreads();
18754 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18755
18756 wxPyEndAllowThreads(__tstate);
18757 if (PyErr_Occurred()) SWIG_fail;
18758 }
18759 {
18760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18761 }
18762 return resultobj;
18763 fail:
18764 return NULL;
18765 }
18766
18767
18768 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18769 PyObject *resultobj;
18770 wxDateTime *arg1 = (wxDateTime *) 0 ;
18771 int arg2 ;
18772 int arg3 = (int) wxDateTime::Mon ;
18773 int arg4 = (int) wxDateTime::Monday_First ;
18774 wxDateTime result;
18775 PyObject * obj0 = 0 ;
18776 PyObject * obj1 = 0 ;
18777 PyObject * obj2 = 0 ;
18778 PyObject * obj3 = 0 ;
18779 char *kwnames[] = {
18780 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18781 };
18782
18783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18786 arg2 = (int)SWIG_As_int(obj1);
18787 if (PyErr_Occurred()) SWIG_fail;
18788 if (obj2) {
18789 arg3 = (int)SWIG_As_int(obj2);
18790 if (PyErr_Occurred()) SWIG_fail;
18791 }
18792 if (obj3) {
18793 arg4 = (int)SWIG_As_int(obj3);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 {
18797 PyThreadState* __tstate = wxPyBeginAllowThreads();
18798 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18799
18800 wxPyEndAllowThreads(__tstate);
18801 if (PyErr_Occurred()) SWIG_fail;
18802 }
18803 {
18804 wxDateTime * resultptr;
18805 resultptr = new wxDateTime((wxDateTime &) result);
18806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18807 }
18808 return resultobj;
18809 fail:
18810 return NULL;
18811 }
18812
18813
18814 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18815 PyObject *resultobj;
18816 wxDateTime *arg1 = (wxDateTime *) 0 ;
18817 int arg2 = (int) wxDateTime::Inv_Month ;
18818 int arg3 = (int) wxDateTime::Inv_Year ;
18819 wxDateTime *result;
18820 PyObject * obj0 = 0 ;
18821 PyObject * obj1 = 0 ;
18822 PyObject * obj2 = 0 ;
18823 char *kwnames[] = {
18824 (char *) "self",(char *) "month",(char *) "year", NULL
18825 };
18826
18827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18830 if (obj1) {
18831 arg2 = (int)SWIG_As_int(obj1);
18832 if (PyErr_Occurred()) SWIG_fail;
18833 }
18834 if (obj2) {
18835 arg3 = (int)SWIG_As_int(obj2);
18836 if (PyErr_Occurred()) SWIG_fail;
18837 }
18838 {
18839 PyThreadState* __tstate = wxPyBeginAllowThreads();
18840 {
18841 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18842 result = (wxDateTime *) &_result_ref;
18843 }
18844
18845 wxPyEndAllowThreads(__tstate);
18846 if (PyErr_Occurred()) SWIG_fail;
18847 }
18848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18849 return resultobj;
18850 fail:
18851 return NULL;
18852 }
18853
18854
18855 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18856 PyObject *resultobj;
18857 wxDateTime *arg1 = (wxDateTime *) 0 ;
18858 int arg2 = (int) wxDateTime::Inv_Month ;
18859 int arg3 = (int) wxDateTime::Inv_Year ;
18860 wxDateTime result;
18861 PyObject * obj0 = 0 ;
18862 PyObject * obj1 = 0 ;
18863 PyObject * obj2 = 0 ;
18864 char *kwnames[] = {
18865 (char *) "self",(char *) "month",(char *) "year", NULL
18866 };
18867
18868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18871 if (obj1) {
18872 arg2 = (int)SWIG_As_int(obj1);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 if (obj2) {
18876 arg3 = (int)SWIG_As_int(obj2);
18877 if (PyErr_Occurred()) SWIG_fail;
18878 }
18879 {
18880 PyThreadState* __tstate = wxPyBeginAllowThreads();
18881 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18882
18883 wxPyEndAllowThreads(__tstate);
18884 if (PyErr_Occurred()) SWIG_fail;
18885 }
18886 {
18887 wxDateTime * resultptr;
18888 resultptr = new wxDateTime((wxDateTime &) result);
18889 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18890 }
18891 return resultobj;
18892 fail:
18893 return NULL;
18894 }
18895
18896
18897 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18898 PyObject *resultobj;
18899 wxDateTime *arg1 = (wxDateTime *) 0 ;
18900 int arg2 ;
18901 wxDateTime *result;
18902 PyObject * obj0 = 0 ;
18903 PyObject * obj1 = 0 ;
18904 char *kwnames[] = {
18905 (char *) "self",(char *) "yday", NULL
18906 };
18907
18908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18911 arg2 = (int)SWIG_As_int(obj1);
18912 if (PyErr_Occurred()) SWIG_fail;
18913 {
18914 PyThreadState* __tstate = wxPyBeginAllowThreads();
18915 {
18916 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18917 result = (wxDateTime *) &_result_ref;
18918 }
18919
18920 wxPyEndAllowThreads(__tstate);
18921 if (PyErr_Occurred()) SWIG_fail;
18922 }
18923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18924 return resultobj;
18925 fail:
18926 return NULL;
18927 }
18928
18929
18930 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj;
18932 wxDateTime *arg1 = (wxDateTime *) 0 ;
18933 int arg2 ;
18934 wxDateTime result;
18935 PyObject * obj0 = 0 ;
18936 PyObject * obj1 = 0 ;
18937 char *kwnames[] = {
18938 (char *) "self",(char *) "yday", NULL
18939 };
18940
18941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18944 arg2 = (int)SWIG_As_int(obj1);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 {
18947 PyThreadState* __tstate = wxPyBeginAllowThreads();
18948 result = (arg1)->GetYearDay(arg2);
18949
18950 wxPyEndAllowThreads(__tstate);
18951 if (PyErr_Occurred()) SWIG_fail;
18952 }
18953 {
18954 wxDateTime * resultptr;
18955 resultptr = new wxDateTime((wxDateTime &) result);
18956 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18957 }
18958 return resultobj;
18959 fail:
18960 return NULL;
18961 }
18962
18963
18964 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
18965 PyObject *resultobj;
18966 wxDateTime *arg1 = (wxDateTime *) 0 ;
18967 double result;
18968 PyObject * obj0 = 0 ;
18969 char *kwnames[] = {
18970 (char *) "self", NULL
18971 };
18972
18973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18976 {
18977 PyThreadState* __tstate = wxPyBeginAllowThreads();
18978 result = (double)(arg1)->GetJulianDayNumber();
18979
18980 wxPyEndAllowThreads(__tstate);
18981 if (PyErr_Occurred()) SWIG_fail;
18982 }
18983 resultobj = SWIG_From_double((double)result);
18984 return resultobj;
18985 fail:
18986 return NULL;
18987 }
18988
18989
18990 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
18991 PyObject *resultobj;
18992 wxDateTime *arg1 = (wxDateTime *) 0 ;
18993 double result;
18994 PyObject * obj0 = 0 ;
18995 char *kwnames[] = {
18996 (char *) "self", NULL
18997 };
18998
18999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
19000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 result = (double)(arg1)->GetJDN();
19005
19006 wxPyEndAllowThreads(__tstate);
19007 if (PyErr_Occurred()) SWIG_fail;
19008 }
19009 resultobj = SWIG_From_double((double)result);
19010 return resultobj;
19011 fail:
19012 return NULL;
19013 }
19014
19015
19016 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
19017 PyObject *resultobj;
19018 wxDateTime *arg1 = (wxDateTime *) 0 ;
19019 double result;
19020 PyObject * obj0 = 0 ;
19021 char *kwnames[] = {
19022 (char *) "self", NULL
19023 };
19024
19025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
19026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19028 {
19029 PyThreadState* __tstate = wxPyBeginAllowThreads();
19030 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
19031
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 resultobj = SWIG_From_double((double)result);
19036 return resultobj;
19037 fail:
19038 return NULL;
19039 }
19040
19041
19042 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
19043 PyObject *resultobj;
19044 wxDateTime *arg1 = (wxDateTime *) 0 ;
19045 double result;
19046 PyObject * obj0 = 0 ;
19047 char *kwnames[] = {
19048 (char *) "self", NULL
19049 };
19050
19051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
19052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 result = (double)(arg1)->GetMJD();
19057
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_From_double((double)result);
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj;
19070 wxDateTime *arg1 = (wxDateTime *) 0 ;
19071 double result;
19072 PyObject * obj0 = 0 ;
19073 char *kwnames[] = {
19074 (char *) "self", NULL
19075 };
19076
19077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
19078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19080 {
19081 PyThreadState* __tstate = wxPyBeginAllowThreads();
19082 result = (double)(arg1)->GetRataDie();
19083
19084 wxPyEndAllowThreads(__tstate);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 }
19087 resultobj = SWIG_From_double((double)result);
19088 return resultobj;
19089 fail:
19090 return NULL;
19091 }
19092
19093
19094 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19095 PyObject *resultobj;
19096 wxDateTime *arg1 = (wxDateTime *) 0 ;
19097 wxDateTime::TimeZone *arg2 = 0 ;
19098 bool arg3 = (bool) False ;
19099 wxDateTime result;
19100 bool temp2 = False ;
19101 PyObject * obj0 = 0 ;
19102 PyObject * obj1 = 0 ;
19103 PyObject * obj2 = 0 ;
19104 char *kwnames[] = {
19105 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19106 };
19107
19108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19111 {
19112 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19113 temp2 = True;
19114 }
19115 if (obj2) {
19116 arg3 = (bool)SWIG_As_bool(obj2);
19117 if (PyErr_Occurred()) SWIG_fail;
19118 }
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19122
19123 wxPyEndAllowThreads(__tstate);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 {
19127 wxDateTime * resultptr;
19128 resultptr = new wxDateTime((wxDateTime &) result);
19129 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19130 }
19131 {
19132 if (temp2) delete arg2;
19133 }
19134 return resultobj;
19135 fail:
19136 {
19137 if (temp2) delete arg2;
19138 }
19139 return NULL;
19140 }
19141
19142
19143 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19144 PyObject *resultobj;
19145 wxDateTime *arg1 = (wxDateTime *) 0 ;
19146 wxDateTime::TimeZone *arg2 = 0 ;
19147 bool arg3 = (bool) False ;
19148 wxDateTime *result;
19149 bool temp2 = False ;
19150 PyObject * obj0 = 0 ;
19151 PyObject * obj1 = 0 ;
19152 PyObject * obj2 = 0 ;
19153 char *kwnames[] = {
19154 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19155 };
19156
19157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19160 {
19161 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19162 temp2 = True;
19163 }
19164 if (obj2) {
19165 arg3 = (bool)SWIG_As_bool(obj2);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 }
19168 {
19169 PyThreadState* __tstate = wxPyBeginAllowThreads();
19170 {
19171 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19172 result = (wxDateTime *) &_result_ref;
19173 }
19174
19175 wxPyEndAllowThreads(__tstate);
19176 if (PyErr_Occurred()) SWIG_fail;
19177 }
19178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19179 {
19180 if (temp2) delete arg2;
19181 }
19182 return resultobj;
19183 fail:
19184 {
19185 if (temp2) delete arg2;
19186 }
19187 return NULL;
19188 }
19189
19190
19191 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19192 PyObject *resultobj;
19193 wxDateTime *arg1 = (wxDateTime *) 0 ;
19194 bool arg2 = (bool) False ;
19195 wxDateTime result;
19196 PyObject * obj0 = 0 ;
19197 PyObject * obj1 = 0 ;
19198 char *kwnames[] = {
19199 (char *) "self",(char *) "noDST", NULL
19200 };
19201
19202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19205 if (obj1) {
19206 arg2 = (bool)SWIG_As_bool(obj1);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 result = (arg1)->ToGMT(arg2);
19212
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 {
19217 wxDateTime * resultptr;
19218 resultptr = new wxDateTime((wxDateTime &) result);
19219 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19220 }
19221 return resultobj;
19222 fail:
19223 return NULL;
19224 }
19225
19226
19227 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19228 PyObject *resultobj;
19229 wxDateTime *arg1 = (wxDateTime *) 0 ;
19230 bool arg2 = (bool) False ;
19231 wxDateTime *result;
19232 PyObject * obj0 = 0 ;
19233 PyObject * obj1 = 0 ;
19234 char *kwnames[] = {
19235 (char *) "self",(char *) "noDST", NULL
19236 };
19237
19238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19241 if (obj1) {
19242 arg2 = (bool)SWIG_As_bool(obj1);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 {
19248 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19249 result = (wxDateTime *) &_result_ref;
19250 }
19251
19252 wxPyEndAllowThreads(__tstate);
19253 if (PyErr_Occurred()) SWIG_fail;
19254 }
19255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19256 return resultobj;
19257 fail:
19258 return NULL;
19259 }
19260
19261
19262 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
19263 PyObject *resultobj;
19264 wxDateTime *arg1 = (wxDateTime *) 0 ;
19265 int arg2 = (int) wxDateTime::Country_Default ;
19266 int result;
19267 PyObject * obj0 = 0 ;
19268 PyObject * obj1 = 0 ;
19269 char *kwnames[] = {
19270 (char *) "self",(char *) "country", NULL
19271 };
19272
19273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19276 if (obj1) {
19277 arg2 = (int)SWIG_As_int(obj1);
19278 if (PyErr_Occurred()) SWIG_fail;
19279 }
19280 {
19281 PyThreadState* __tstate = wxPyBeginAllowThreads();
19282 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19283
19284 wxPyEndAllowThreads(__tstate);
19285 if (PyErr_Occurred()) SWIG_fail;
19286 }
19287 resultobj = SWIG_From_int((int)result);
19288 return resultobj;
19289 fail:
19290 return NULL;
19291 }
19292
19293
19294 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj;
19296 wxDateTime *arg1 = (wxDateTime *) 0 ;
19297 bool result;
19298 PyObject * obj0 = 0 ;
19299 char *kwnames[] = {
19300 (char *) "self", NULL
19301 };
19302
19303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19306 {
19307 PyThreadState* __tstate = wxPyBeginAllowThreads();
19308 result = (bool)((wxDateTime const *)arg1)->IsValid();
19309
19310 wxPyEndAllowThreads(__tstate);
19311 if (PyErr_Occurred()) SWIG_fail;
19312 }
19313 {
19314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19315 }
19316 return resultobj;
19317 fail:
19318 return NULL;
19319 }
19320
19321
19322 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
19323 PyObject *resultobj;
19324 wxDateTime *arg1 = (wxDateTime *) 0 ;
19325 time_t result;
19326 PyObject * obj0 = 0 ;
19327 char *kwnames[] = {
19328 (char *) "self", NULL
19329 };
19330
19331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19334 {
19335 PyThreadState* __tstate = wxPyBeginAllowThreads();
19336 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19337
19338 wxPyEndAllowThreads(__tstate);
19339 if (PyErr_Occurred()) SWIG_fail;
19340 }
19341 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
19342 return resultobj;
19343 fail:
19344 return NULL;
19345 }
19346
19347
19348 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
19349 PyObject *resultobj;
19350 wxDateTime *arg1 = (wxDateTime *) 0 ;
19351 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19352 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19353 int result;
19354 bool temp2 = False ;
19355 PyObject * obj0 = 0 ;
19356 PyObject * obj1 = 0 ;
19357 char *kwnames[] = {
19358 (char *) "self",(char *) "tz", NULL
19359 };
19360
19361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19364 if (obj1) {
19365 {
19366 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19367 temp2 = True;
19368 }
19369 }
19370 {
19371 PyThreadState* __tstate = wxPyBeginAllowThreads();
19372 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19373
19374 wxPyEndAllowThreads(__tstate);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 resultobj = SWIG_From_int((int)result);
19378 {
19379 if (temp2) delete arg2;
19380 }
19381 return resultobj;
19382 fail:
19383 {
19384 if (temp2) delete arg2;
19385 }
19386 return NULL;
19387 }
19388
19389
19390 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19391 PyObject *resultobj;
19392 wxDateTime *arg1 = (wxDateTime *) 0 ;
19393 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19394 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19395 int result;
19396 bool temp2 = False ;
19397 PyObject * obj0 = 0 ;
19398 PyObject * obj1 = 0 ;
19399 char *kwnames[] = {
19400 (char *) "self",(char *) "tz", NULL
19401 };
19402
19403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19406 if (obj1) {
19407 {
19408 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19409 temp2 = True;
19410 }
19411 }
19412 {
19413 PyThreadState* __tstate = wxPyBeginAllowThreads();
19414 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19415
19416 wxPyEndAllowThreads(__tstate);
19417 if (PyErr_Occurred()) SWIG_fail;
19418 }
19419 resultobj = SWIG_From_int((int)result);
19420 {
19421 if (temp2) delete arg2;
19422 }
19423 return resultobj;
19424 fail:
19425 {
19426 if (temp2) delete arg2;
19427 }
19428 return NULL;
19429 }
19430
19431
19432 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
19433 PyObject *resultobj;
19434 wxDateTime *arg1 = (wxDateTime *) 0 ;
19435 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19436 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19437 int result;
19438 bool temp2 = False ;
19439 PyObject * obj0 = 0 ;
19440 PyObject * obj1 = 0 ;
19441 char *kwnames[] = {
19442 (char *) "self",(char *) "tz", NULL
19443 };
19444
19445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19448 if (obj1) {
19449 {
19450 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19451 temp2 = True;
19452 }
19453 }
19454 {
19455 PyThreadState* __tstate = wxPyBeginAllowThreads();
19456 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19457
19458 wxPyEndAllowThreads(__tstate);
19459 if (PyErr_Occurred()) SWIG_fail;
19460 }
19461 resultobj = SWIG_From_int((int)result);
19462 {
19463 if (temp2) delete arg2;
19464 }
19465 return resultobj;
19466 fail:
19467 {
19468 if (temp2) delete arg2;
19469 }
19470 return NULL;
19471 }
19472
19473
19474 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
19475 PyObject *resultobj;
19476 wxDateTime *arg1 = (wxDateTime *) 0 ;
19477 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19478 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19479 int result;
19480 bool temp2 = False ;
19481 PyObject * obj0 = 0 ;
19482 PyObject * obj1 = 0 ;
19483 char *kwnames[] = {
19484 (char *) "self",(char *) "tz", NULL
19485 };
19486
19487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19490 if (obj1) {
19491 {
19492 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19493 temp2 = True;
19494 }
19495 }
19496 {
19497 PyThreadState* __tstate = wxPyBeginAllowThreads();
19498 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19499
19500 wxPyEndAllowThreads(__tstate);
19501 if (PyErr_Occurred()) SWIG_fail;
19502 }
19503 resultobj = SWIG_From_int((int)result);
19504 {
19505 if (temp2) delete arg2;
19506 }
19507 return resultobj;
19508 fail:
19509 {
19510 if (temp2) delete arg2;
19511 }
19512 return NULL;
19513 }
19514
19515
19516 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
19517 PyObject *resultobj;
19518 wxDateTime *arg1 = (wxDateTime *) 0 ;
19519 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19520 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19521 int result;
19522 bool temp2 = False ;
19523 PyObject * obj0 = 0 ;
19524 PyObject * obj1 = 0 ;
19525 char *kwnames[] = {
19526 (char *) "self",(char *) "tz", NULL
19527 };
19528
19529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19532 if (obj1) {
19533 {
19534 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19535 temp2 = True;
19536 }
19537 }
19538 {
19539 PyThreadState* __tstate = wxPyBeginAllowThreads();
19540 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19541
19542 wxPyEndAllowThreads(__tstate);
19543 if (PyErr_Occurred()) SWIG_fail;
19544 }
19545 resultobj = SWIG_From_int((int)result);
19546 {
19547 if (temp2) delete arg2;
19548 }
19549 return resultobj;
19550 fail:
19551 {
19552 if (temp2) delete arg2;
19553 }
19554 return NULL;
19555 }
19556
19557
19558 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
19559 PyObject *resultobj;
19560 wxDateTime *arg1 = (wxDateTime *) 0 ;
19561 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19562 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19563 int result;
19564 bool temp2 = False ;
19565 PyObject * obj0 = 0 ;
19566 PyObject * obj1 = 0 ;
19567 char *kwnames[] = {
19568 (char *) "self",(char *) "tz", NULL
19569 };
19570
19571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19574 if (obj1) {
19575 {
19576 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19577 temp2 = True;
19578 }
19579 }
19580 {
19581 PyThreadState* __tstate = wxPyBeginAllowThreads();
19582 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19583
19584 wxPyEndAllowThreads(__tstate);
19585 if (PyErr_Occurred()) SWIG_fail;
19586 }
19587 resultobj = SWIG_From_int((int)result);
19588 {
19589 if (temp2) delete arg2;
19590 }
19591 return resultobj;
19592 fail:
19593 {
19594 if (temp2) delete arg2;
19595 }
19596 return NULL;
19597 }
19598
19599
19600 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
19601 PyObject *resultobj;
19602 wxDateTime *arg1 = (wxDateTime *) 0 ;
19603 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19604 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19605 int result;
19606 bool temp2 = False ;
19607 PyObject * obj0 = 0 ;
19608 PyObject * obj1 = 0 ;
19609 char *kwnames[] = {
19610 (char *) "self",(char *) "tz", NULL
19611 };
19612
19613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19616 if (obj1) {
19617 {
19618 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19619 temp2 = True;
19620 }
19621 }
19622 {
19623 PyThreadState* __tstate = wxPyBeginAllowThreads();
19624 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19625
19626 wxPyEndAllowThreads(__tstate);
19627 if (PyErr_Occurred()) SWIG_fail;
19628 }
19629 resultobj = SWIG_From_int((int)result);
19630 {
19631 if (temp2) delete arg2;
19632 }
19633 return resultobj;
19634 fail:
19635 {
19636 if (temp2) delete arg2;
19637 }
19638 return NULL;
19639 }
19640
19641
19642 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
19643 PyObject *resultobj;
19644 wxDateTime *arg1 = (wxDateTime *) 0 ;
19645 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19646 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19647 int result;
19648 bool temp2 = False ;
19649 PyObject * obj0 = 0 ;
19650 PyObject * obj1 = 0 ;
19651 char *kwnames[] = {
19652 (char *) "self",(char *) "tz", NULL
19653 };
19654
19655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19658 if (obj1) {
19659 {
19660 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19661 temp2 = True;
19662 }
19663 }
19664 {
19665 PyThreadState* __tstate = wxPyBeginAllowThreads();
19666 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19667
19668 wxPyEndAllowThreads(__tstate);
19669 if (PyErr_Occurred()) SWIG_fail;
19670 }
19671 resultobj = SWIG_From_int((int)result);
19672 {
19673 if (temp2) delete arg2;
19674 }
19675 return resultobj;
19676 fail:
19677 {
19678 if (temp2) delete arg2;
19679 }
19680 return NULL;
19681 }
19682
19683
19684 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19685 PyObject *resultobj;
19686 wxDateTime *arg1 = (wxDateTime *) 0 ;
19687 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19688 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19689 int result;
19690 bool temp2 = False ;
19691 PyObject * obj0 = 0 ;
19692 PyObject * obj1 = 0 ;
19693 char *kwnames[] = {
19694 (char *) "self",(char *) "tz", NULL
19695 };
19696
19697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19700 if (obj1) {
19701 {
19702 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19703 temp2 = True;
19704 }
19705 }
19706 {
19707 PyThreadState* __tstate = wxPyBeginAllowThreads();
19708 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19709
19710 wxPyEndAllowThreads(__tstate);
19711 if (PyErr_Occurred()) SWIG_fail;
19712 }
19713 resultobj = SWIG_From_int((int)result);
19714 {
19715 if (temp2) delete arg2;
19716 }
19717 return resultobj;
19718 fail:
19719 {
19720 if (temp2) delete arg2;
19721 }
19722 return NULL;
19723 }
19724
19725
19726 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19727 PyObject *resultobj;
19728 wxDateTime *arg1 = (wxDateTime *) 0 ;
19729 int arg2 = (int) wxDateTime::Monday_First ;
19730 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19731 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19732 int result;
19733 bool temp3 = False ;
19734 PyObject * obj0 = 0 ;
19735 PyObject * obj1 = 0 ;
19736 PyObject * obj2 = 0 ;
19737 char *kwnames[] = {
19738 (char *) "self",(char *) "flags",(char *) "tz", NULL
19739 };
19740
19741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19744 if (obj1) {
19745 arg2 = (int)SWIG_As_int(obj1);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 if (obj2) {
19749 {
19750 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19751 temp3 = True;
19752 }
19753 }
19754 {
19755 PyThreadState* __tstate = wxPyBeginAllowThreads();
19756 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19757
19758 wxPyEndAllowThreads(__tstate);
19759 if (PyErr_Occurred()) SWIG_fail;
19760 }
19761 resultobj = SWIG_From_int((int)result);
19762 {
19763 if (temp3) delete arg3;
19764 }
19765 return resultobj;
19766 fail:
19767 {
19768 if (temp3) delete arg3;
19769 }
19770 return NULL;
19771 }
19772
19773
19774 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj;
19776 wxDateTime *arg1 = (wxDateTime *) 0 ;
19777 int arg2 = (int) wxDateTime::Monday_First ;
19778 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19779 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19780 int result;
19781 bool temp3 = False ;
19782 PyObject * obj0 = 0 ;
19783 PyObject * obj1 = 0 ;
19784 PyObject * obj2 = 0 ;
19785 char *kwnames[] = {
19786 (char *) "self",(char *) "flags",(char *) "tz", NULL
19787 };
19788
19789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19792 if (obj1) {
19793 arg2 = (int)SWIG_As_int(obj1);
19794 if (PyErr_Occurred()) SWIG_fail;
19795 }
19796 if (obj2) {
19797 {
19798 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19799 temp3 = True;
19800 }
19801 }
19802 {
19803 PyThreadState* __tstate = wxPyBeginAllowThreads();
19804 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19805
19806 wxPyEndAllowThreads(__tstate);
19807 if (PyErr_Occurred()) SWIG_fail;
19808 }
19809 resultobj = SWIG_From_int((int)result);
19810 {
19811 if (temp3) delete arg3;
19812 }
19813 return resultobj;
19814 fail:
19815 {
19816 if (temp3) delete arg3;
19817 }
19818 return NULL;
19819 }
19820
19821
19822 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
19823 PyObject *resultobj;
19824 wxDateTime *arg1 = (wxDateTime *) 0 ;
19825 int arg2 = (int) wxDateTime::Country_Default ;
19826 bool result;
19827 PyObject * obj0 = 0 ;
19828 PyObject * obj1 = 0 ;
19829 char *kwnames[] = {
19830 (char *) "self",(char *) "country", NULL
19831 };
19832
19833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19836 if (obj1) {
19837 arg2 = (int)SWIG_As_int(obj1);
19838 if (PyErr_Occurred()) SWIG_fail;
19839 }
19840 {
19841 PyThreadState* __tstate = wxPyBeginAllowThreads();
19842 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19843
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
19847 {
19848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19849 }
19850 return resultobj;
19851 fail:
19852 return NULL;
19853 }
19854
19855
19856 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
19857 PyObject *resultobj;
19858 wxDateTime *arg1 = (wxDateTime *) 0 ;
19859 wxDateTime *arg2 = 0 ;
19860 bool result;
19861 PyObject * obj0 = 0 ;
19862 PyObject * obj1 = 0 ;
19863 char *kwnames[] = {
19864 (char *) "self",(char *) "datetime", NULL
19865 };
19866
19867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19871 SWIG_POINTER_EXCEPTION | 0)) == -1)
19872 SWIG_fail;
19873 if (arg2 == NULL) {
19874 PyErr_SetString(PyExc_TypeError,"null reference");
19875 SWIG_fail;
19876 }
19877 {
19878 PyThreadState* __tstate = wxPyBeginAllowThreads();
19879 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19880
19881 wxPyEndAllowThreads(__tstate);
19882 if (PyErr_Occurred()) SWIG_fail;
19883 }
19884 {
19885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19886 }
19887 return resultobj;
19888 fail:
19889 return NULL;
19890 }
19891
19892
19893 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
19894 PyObject *resultobj;
19895 wxDateTime *arg1 = (wxDateTime *) 0 ;
19896 wxDateTime *arg2 = 0 ;
19897 bool result;
19898 PyObject * obj0 = 0 ;
19899 PyObject * obj1 = 0 ;
19900 char *kwnames[] = {
19901 (char *) "self",(char *) "datetime", NULL
19902 };
19903
19904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19907 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19908 SWIG_POINTER_EXCEPTION | 0)) == -1)
19909 SWIG_fail;
19910 if (arg2 == NULL) {
19911 PyErr_SetString(PyExc_TypeError,"null reference");
19912 SWIG_fail;
19913 }
19914 {
19915 PyThreadState* __tstate = wxPyBeginAllowThreads();
19916 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19917
19918 wxPyEndAllowThreads(__tstate);
19919 if (PyErr_Occurred()) SWIG_fail;
19920 }
19921 {
19922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19923 }
19924 return resultobj;
19925 fail:
19926 return NULL;
19927 }
19928
19929
19930 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
19931 PyObject *resultobj;
19932 wxDateTime *arg1 = (wxDateTime *) 0 ;
19933 wxDateTime *arg2 = 0 ;
19934 bool result;
19935 PyObject * obj0 = 0 ;
19936 PyObject * obj1 = 0 ;
19937 char *kwnames[] = {
19938 (char *) "self",(char *) "datetime", NULL
19939 };
19940
19941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19944 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19945 SWIG_POINTER_EXCEPTION | 0)) == -1)
19946 SWIG_fail;
19947 if (arg2 == NULL) {
19948 PyErr_SetString(PyExc_TypeError,"null reference");
19949 SWIG_fail;
19950 }
19951 {
19952 PyThreadState* __tstate = wxPyBeginAllowThreads();
19953 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19954
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 {
19959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19960 }
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj;
19969 wxDateTime *arg1 = (wxDateTime *) 0 ;
19970 wxDateTime *arg2 = 0 ;
19971 wxDateTime *arg3 = 0 ;
19972 bool result;
19973 PyObject * obj0 = 0 ;
19974 PyObject * obj1 = 0 ;
19975 PyObject * obj2 = 0 ;
19976 char *kwnames[] = {
19977 (char *) "self",(char *) "t1",(char *) "t2", NULL
19978 };
19979
19980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19983 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19984 SWIG_POINTER_EXCEPTION | 0)) == -1)
19985 SWIG_fail;
19986 if (arg2 == NULL) {
19987 PyErr_SetString(PyExc_TypeError,"null reference");
19988 SWIG_fail;
19989 }
19990 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19991 SWIG_POINTER_EXCEPTION | 0)) == -1)
19992 SWIG_fail;
19993 if (arg3 == NULL) {
19994 PyErr_SetString(PyExc_TypeError,"null reference");
19995 SWIG_fail;
19996 }
19997 {
19998 PyThreadState* __tstate = wxPyBeginAllowThreads();
19999 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20000
20001 wxPyEndAllowThreads(__tstate);
20002 if (PyErr_Occurred()) SWIG_fail;
20003 }
20004 {
20005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20006 }
20007 return resultobj;
20008 fail:
20009 return NULL;
20010 }
20011
20012
20013 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
20014 PyObject *resultobj;
20015 wxDateTime *arg1 = (wxDateTime *) 0 ;
20016 wxDateTime *arg2 = 0 ;
20017 wxDateTime *arg3 = 0 ;
20018 bool result;
20019 PyObject * obj0 = 0 ;
20020 PyObject * obj1 = 0 ;
20021 PyObject * obj2 = 0 ;
20022 char *kwnames[] = {
20023 (char *) "self",(char *) "t1",(char *) "t2", NULL
20024 };
20025
20026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20030 SWIG_POINTER_EXCEPTION | 0)) == -1)
20031 SWIG_fail;
20032 if (arg2 == NULL) {
20033 PyErr_SetString(PyExc_TypeError,"null reference");
20034 SWIG_fail;
20035 }
20036 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20037 SWIG_POINTER_EXCEPTION | 0)) == -1)
20038 SWIG_fail;
20039 if (arg3 == NULL) {
20040 PyErr_SetString(PyExc_TypeError,"null reference");
20041 SWIG_fail;
20042 }
20043 {
20044 PyThreadState* __tstate = wxPyBeginAllowThreads();
20045 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20046
20047 wxPyEndAllowThreads(__tstate);
20048 if (PyErr_Occurred()) SWIG_fail;
20049 }
20050 {
20051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20052 }
20053 return resultobj;
20054 fail:
20055 return NULL;
20056 }
20057
20058
20059 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
20060 PyObject *resultobj;
20061 wxDateTime *arg1 = (wxDateTime *) 0 ;
20062 wxDateTime *arg2 = 0 ;
20063 bool result;
20064 PyObject * obj0 = 0 ;
20065 PyObject * obj1 = 0 ;
20066 char *kwnames[] = {
20067 (char *) "self",(char *) "dt", NULL
20068 };
20069
20070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
20071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20074 SWIG_POINTER_EXCEPTION | 0)) == -1)
20075 SWIG_fail;
20076 if (arg2 == NULL) {
20077 PyErr_SetString(PyExc_TypeError,"null reference");
20078 SWIG_fail;
20079 }
20080 {
20081 PyThreadState* __tstate = wxPyBeginAllowThreads();
20082 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
20083
20084 wxPyEndAllowThreads(__tstate);
20085 if (PyErr_Occurred()) SWIG_fail;
20086 }
20087 {
20088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20089 }
20090 return resultobj;
20091 fail:
20092 return NULL;
20093 }
20094
20095
20096 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
20097 PyObject *resultobj;
20098 wxDateTime *arg1 = (wxDateTime *) 0 ;
20099 wxDateTime *arg2 = 0 ;
20100 bool result;
20101 PyObject * obj0 = 0 ;
20102 PyObject * obj1 = 0 ;
20103 char *kwnames[] = {
20104 (char *) "self",(char *) "dt", NULL
20105 };
20106
20107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
20108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20111 SWIG_POINTER_EXCEPTION | 0)) == -1)
20112 SWIG_fail;
20113 if (arg2 == NULL) {
20114 PyErr_SetString(PyExc_TypeError,"null reference");
20115 SWIG_fail;
20116 }
20117 {
20118 PyThreadState* __tstate = wxPyBeginAllowThreads();
20119 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
20120
20121 wxPyEndAllowThreads(__tstate);
20122 if (PyErr_Occurred()) SWIG_fail;
20123 }
20124 {
20125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20126 }
20127 return resultobj;
20128 fail:
20129 return NULL;
20130 }
20131
20132
20133 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
20134 PyObject *resultobj;
20135 wxDateTime *arg1 = (wxDateTime *) 0 ;
20136 wxDateTime *arg2 = 0 ;
20137 wxTimeSpan *arg3 = 0 ;
20138 bool result;
20139 PyObject * obj0 = 0 ;
20140 PyObject * obj1 = 0 ;
20141 PyObject * obj2 = 0 ;
20142 char *kwnames[] = {
20143 (char *) "self",(char *) "dt",(char *) "ts", NULL
20144 };
20145
20146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20150 SWIG_POINTER_EXCEPTION | 0)) == -1)
20151 SWIG_fail;
20152 if (arg2 == NULL) {
20153 PyErr_SetString(PyExc_TypeError,"null reference");
20154 SWIG_fail;
20155 }
20156 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20157 SWIG_POINTER_EXCEPTION | 0)) == -1)
20158 SWIG_fail;
20159 if (arg3 == NULL) {
20160 PyErr_SetString(PyExc_TypeError,"null reference");
20161 SWIG_fail;
20162 }
20163 {
20164 PyThreadState* __tstate = wxPyBeginAllowThreads();
20165 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20166
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 {
20171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20172 }
20173 return resultobj;
20174 fail:
20175 return NULL;
20176 }
20177
20178
20179 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj;
20181 wxDateTime *arg1 = (wxDateTime *) 0 ;
20182 wxTimeSpan *arg2 = 0 ;
20183 wxDateTime *result;
20184 PyObject * obj0 = 0 ;
20185 PyObject * obj1 = 0 ;
20186 char *kwnames[] = {
20187 (char *) "self",(char *) "diff", NULL
20188 };
20189
20190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20194 SWIG_POINTER_EXCEPTION | 0)) == -1)
20195 SWIG_fail;
20196 if (arg2 == NULL) {
20197 PyErr_SetString(PyExc_TypeError,"null reference");
20198 SWIG_fail;
20199 }
20200 {
20201 PyThreadState* __tstate = wxPyBeginAllowThreads();
20202 {
20203 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20204 result = (wxDateTime *) &_result_ref;
20205 }
20206
20207 wxPyEndAllowThreads(__tstate);
20208 if (PyErr_Occurred()) SWIG_fail;
20209 }
20210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20211 return resultobj;
20212 fail:
20213 return NULL;
20214 }
20215
20216
20217 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj;
20219 wxDateTime *arg1 = (wxDateTime *) 0 ;
20220 wxDateSpan *arg2 = 0 ;
20221 wxDateTime *result;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224 char *kwnames[] = {
20225 (char *) "self",(char *) "diff", NULL
20226 };
20227
20228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20232 SWIG_POINTER_EXCEPTION | 0)) == -1)
20233 SWIG_fail;
20234 if (arg2 == NULL) {
20235 PyErr_SetString(PyExc_TypeError,"null reference");
20236 SWIG_fail;
20237 }
20238 {
20239 PyThreadState* __tstate = wxPyBeginAllowThreads();
20240 {
20241 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20242 result = (wxDateTime *) &_result_ref;
20243 }
20244
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20249 return resultobj;
20250 fail:
20251 return NULL;
20252 }
20253
20254
20255 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
20256 PyObject *resultobj;
20257 wxDateTime *arg1 = (wxDateTime *) 0 ;
20258 wxTimeSpan *arg2 = 0 ;
20259 wxDateTime *result;
20260 PyObject * obj0 = 0 ;
20261 PyObject * obj1 = 0 ;
20262 char *kwnames[] = {
20263 (char *) "self",(char *) "diff", NULL
20264 };
20265
20266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20269 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20270 SWIG_POINTER_EXCEPTION | 0)) == -1)
20271 SWIG_fail;
20272 if (arg2 == NULL) {
20273 PyErr_SetString(PyExc_TypeError,"null reference");
20274 SWIG_fail;
20275 }
20276 {
20277 PyThreadState* __tstate = wxPyBeginAllowThreads();
20278 {
20279 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20280 result = (wxDateTime *) &_result_ref;
20281 }
20282
20283 wxPyEndAllowThreads(__tstate);
20284 if (PyErr_Occurred()) SWIG_fail;
20285 }
20286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20287 return resultobj;
20288 fail:
20289 return NULL;
20290 }
20291
20292
20293 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
20294 PyObject *resultobj;
20295 wxDateTime *arg1 = (wxDateTime *) 0 ;
20296 wxDateSpan *arg2 = 0 ;
20297 wxDateTime *result;
20298 PyObject * obj0 = 0 ;
20299 PyObject * obj1 = 0 ;
20300 char *kwnames[] = {
20301 (char *) "self",(char *) "diff", NULL
20302 };
20303
20304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20308 SWIG_POINTER_EXCEPTION | 0)) == -1)
20309 SWIG_fail;
20310 if (arg2 == NULL) {
20311 PyErr_SetString(PyExc_TypeError,"null reference");
20312 SWIG_fail;
20313 }
20314 {
20315 PyThreadState* __tstate = wxPyBeginAllowThreads();
20316 {
20317 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20318 result = (wxDateTime *) &_result_ref;
20319 }
20320
20321 wxPyEndAllowThreads(__tstate);
20322 if (PyErr_Occurred()) SWIG_fail;
20323 }
20324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20325 return resultobj;
20326 fail:
20327 return NULL;
20328 }
20329
20330
20331 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
20332 PyObject *resultobj;
20333 wxDateTime *arg1 = (wxDateTime *) 0 ;
20334 wxDateTime *arg2 = 0 ;
20335 wxTimeSpan result;
20336 PyObject * obj0 = 0 ;
20337 PyObject * obj1 = 0 ;
20338 char *kwnames[] = {
20339 (char *) "self",(char *) "dt", NULL
20340 };
20341
20342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20346 SWIG_POINTER_EXCEPTION | 0)) == -1)
20347 SWIG_fail;
20348 if (arg2 == NULL) {
20349 PyErr_SetString(PyExc_TypeError,"null reference");
20350 SWIG_fail;
20351 }
20352 {
20353 PyThreadState* __tstate = wxPyBeginAllowThreads();
20354 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20355
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 {
20360 wxTimeSpan * resultptr;
20361 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20363 }
20364 return resultobj;
20365 fail:
20366 return NULL;
20367 }
20368
20369
20370 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
20371 PyObject *resultobj;
20372 wxDateTime *arg1 = (wxDateTime *) 0 ;
20373 wxTimeSpan *arg2 = 0 ;
20374 wxDateTime *result;
20375 PyObject * obj0 = 0 ;
20376 PyObject * obj1 = 0 ;
20377
20378 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20380 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20382 SWIG_POINTER_EXCEPTION | 0)) == -1)
20383 SWIG_fail;
20384 if (arg2 == NULL) {
20385 PyErr_SetString(PyExc_TypeError,"null reference");
20386 SWIG_fail;
20387 }
20388 {
20389 PyThreadState* __tstate = wxPyBeginAllowThreads();
20390 {
20391 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20392 result = (wxDateTime *) &_result_ref;
20393 }
20394
20395 wxPyEndAllowThreads(__tstate);
20396 if (PyErr_Occurred()) SWIG_fail;
20397 }
20398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20399 return resultobj;
20400 fail:
20401 return NULL;
20402 }
20403
20404
20405 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
20406 PyObject *resultobj;
20407 wxDateTime *arg1 = (wxDateTime *) 0 ;
20408 wxDateSpan *arg2 = 0 ;
20409 wxDateTime *result;
20410 PyObject * obj0 = 0 ;
20411 PyObject * obj1 = 0 ;
20412
20413 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20415 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
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 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 {
20426 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20427 result = (wxDateTime *) &_result_ref;
20428 }
20429
20430 wxPyEndAllowThreads(__tstate);
20431 if (PyErr_Occurred()) SWIG_fail;
20432 }
20433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20434 return resultobj;
20435 fail:
20436 return NULL;
20437 }
20438
20439
20440 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20441 int argc;
20442 PyObject *argv[3];
20443 int ii;
20444
20445 argc = PyObject_Length(args);
20446 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20447 argv[ii] = PyTuple_GetItem(args,ii);
20448 }
20449 if (argc == 2) {
20450 int _v;
20451 {
20452 void *ptr;
20453 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20454 _v = 0;
20455 PyErr_Clear();
20456 } else {
20457 _v = 1;
20458 }
20459 }
20460 if (_v) {
20461 {
20462 void *ptr;
20463 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20464 _v = 0;
20465 PyErr_Clear();
20466 } else {
20467 _v = 1;
20468 }
20469 }
20470 if (_v) {
20471 return _wrap_DateTime___iadd____SWIG_0(self,args);
20472 }
20473 }
20474 }
20475 if (argc == 2) {
20476 int _v;
20477 {
20478 void *ptr;
20479 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20480 _v = 0;
20481 PyErr_Clear();
20482 } else {
20483 _v = 1;
20484 }
20485 }
20486 if (_v) {
20487 {
20488 void *ptr;
20489 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20490 _v = 0;
20491 PyErr_Clear();
20492 } else {
20493 _v = 1;
20494 }
20495 }
20496 if (_v) {
20497 return _wrap_DateTime___iadd____SWIG_1(self,args);
20498 }
20499 }
20500 }
20501
20502 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20503 return NULL;
20504 }
20505
20506
20507 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
20508 PyObject *resultobj;
20509 wxDateTime *arg1 = (wxDateTime *) 0 ;
20510 wxTimeSpan *arg2 = 0 ;
20511 wxDateTime *result;
20512 PyObject * obj0 = 0 ;
20513 PyObject * obj1 = 0 ;
20514
20515 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20517 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20519 SWIG_POINTER_EXCEPTION | 0)) == -1)
20520 SWIG_fail;
20521 if (arg2 == NULL) {
20522 PyErr_SetString(PyExc_TypeError,"null reference");
20523 SWIG_fail;
20524 }
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 {
20528 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20529 result = (wxDateTime *) &_result_ref;
20530 }
20531
20532 wxPyEndAllowThreads(__tstate);
20533 if (PyErr_Occurred()) SWIG_fail;
20534 }
20535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20536 return resultobj;
20537 fail:
20538 return NULL;
20539 }
20540
20541
20542 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
20543 PyObject *resultobj;
20544 wxDateTime *arg1 = (wxDateTime *) 0 ;
20545 wxDateSpan *arg2 = 0 ;
20546 wxDateTime *result;
20547 PyObject * obj0 = 0 ;
20548 PyObject * obj1 = 0 ;
20549
20550 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20552 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20554 SWIG_POINTER_EXCEPTION | 0)) == -1)
20555 SWIG_fail;
20556 if (arg2 == NULL) {
20557 PyErr_SetString(PyExc_TypeError,"null reference");
20558 SWIG_fail;
20559 }
20560 {
20561 PyThreadState* __tstate = wxPyBeginAllowThreads();
20562 {
20563 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20564 result = (wxDateTime *) &_result_ref;
20565 }
20566
20567 wxPyEndAllowThreads(__tstate);
20568 if (PyErr_Occurred()) SWIG_fail;
20569 }
20570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20571 return resultobj;
20572 fail:
20573 return NULL;
20574 }
20575
20576
20577 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20578 int argc;
20579 PyObject *argv[3];
20580 int ii;
20581
20582 argc = PyObject_Length(args);
20583 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20584 argv[ii] = PyTuple_GetItem(args,ii);
20585 }
20586 if (argc == 2) {
20587 int _v;
20588 {
20589 void *ptr;
20590 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20591 _v = 0;
20592 PyErr_Clear();
20593 } else {
20594 _v = 1;
20595 }
20596 }
20597 if (_v) {
20598 {
20599 void *ptr;
20600 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20601 _v = 0;
20602 PyErr_Clear();
20603 } else {
20604 _v = 1;
20605 }
20606 }
20607 if (_v) {
20608 return _wrap_DateTime___isub____SWIG_0(self,args);
20609 }
20610 }
20611 }
20612 if (argc == 2) {
20613 int _v;
20614 {
20615 void *ptr;
20616 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20617 _v = 0;
20618 PyErr_Clear();
20619 } else {
20620 _v = 1;
20621 }
20622 }
20623 if (_v) {
20624 {
20625 void *ptr;
20626 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20627 _v = 0;
20628 PyErr_Clear();
20629 } else {
20630 _v = 1;
20631 }
20632 }
20633 if (_v) {
20634 return _wrap_DateTime___isub____SWIG_1(self,args);
20635 }
20636 }
20637 }
20638
20639 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20640 return NULL;
20641 }
20642
20643
20644 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
20645 PyObject *resultobj;
20646 wxDateTime *arg1 = (wxDateTime *) 0 ;
20647 wxTimeSpan *arg2 = 0 ;
20648 wxDateTime result;
20649 PyObject * obj0 = 0 ;
20650 PyObject * obj1 = 0 ;
20651
20652 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20655 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20656 SWIG_POINTER_EXCEPTION | 0)) == -1)
20657 SWIG_fail;
20658 if (arg2 == NULL) {
20659 PyErr_SetString(PyExc_TypeError,"null reference");
20660 SWIG_fail;
20661 }
20662 {
20663 PyThreadState* __tstate = wxPyBeginAllowThreads();
20664 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20665
20666 wxPyEndAllowThreads(__tstate);
20667 if (PyErr_Occurred()) SWIG_fail;
20668 }
20669 {
20670 wxDateTime * resultptr;
20671 resultptr = new wxDateTime((wxDateTime &) result);
20672 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20673 }
20674 return resultobj;
20675 fail:
20676 return NULL;
20677 }
20678
20679
20680 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
20681 PyObject *resultobj;
20682 wxDateTime *arg1 = (wxDateTime *) 0 ;
20683 wxDateSpan *arg2 = 0 ;
20684 wxDateTime result;
20685 PyObject * obj0 = 0 ;
20686 PyObject * obj1 = 0 ;
20687
20688 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20692 SWIG_POINTER_EXCEPTION | 0)) == -1)
20693 SWIG_fail;
20694 if (arg2 == NULL) {
20695 PyErr_SetString(PyExc_TypeError,"null reference");
20696 SWIG_fail;
20697 }
20698 {
20699 PyThreadState* __tstate = wxPyBeginAllowThreads();
20700 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20701
20702 wxPyEndAllowThreads(__tstate);
20703 if (PyErr_Occurred()) SWIG_fail;
20704 }
20705 {
20706 wxDateTime * resultptr;
20707 resultptr = new wxDateTime((wxDateTime &) result);
20708 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20709 }
20710 return resultobj;
20711 fail:
20712 return NULL;
20713 }
20714
20715
20716 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20717 int argc;
20718 PyObject *argv[3];
20719 int ii;
20720
20721 argc = PyObject_Length(args);
20722 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20723 argv[ii] = PyTuple_GetItem(args,ii);
20724 }
20725 if (argc == 2) {
20726 int _v;
20727 {
20728 void *ptr;
20729 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20730 _v = 0;
20731 PyErr_Clear();
20732 } else {
20733 _v = 1;
20734 }
20735 }
20736 if (_v) {
20737 {
20738 void *ptr;
20739 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20740 _v = 0;
20741 PyErr_Clear();
20742 } else {
20743 _v = 1;
20744 }
20745 }
20746 if (_v) {
20747 return _wrap_DateTime___add____SWIG_0(self,args);
20748 }
20749 }
20750 }
20751 if (argc == 2) {
20752 int _v;
20753 {
20754 void *ptr;
20755 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20756 _v = 0;
20757 PyErr_Clear();
20758 } else {
20759 _v = 1;
20760 }
20761 }
20762 if (_v) {
20763 {
20764 void *ptr;
20765 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20766 _v = 0;
20767 PyErr_Clear();
20768 } else {
20769 _v = 1;
20770 }
20771 }
20772 if (_v) {
20773 return _wrap_DateTime___add____SWIG_1(self,args);
20774 }
20775 }
20776 }
20777
20778 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20779 return NULL;
20780 }
20781
20782
20783 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
20784 PyObject *resultobj;
20785 wxDateTime *arg1 = (wxDateTime *) 0 ;
20786 wxDateTime *arg2 = 0 ;
20787 wxTimeSpan result;
20788 PyObject * obj0 = 0 ;
20789 PyObject * obj1 = 0 ;
20790
20791 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20794 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20795 SWIG_POINTER_EXCEPTION | 0)) == -1)
20796 SWIG_fail;
20797 if (arg2 == NULL) {
20798 PyErr_SetString(PyExc_TypeError,"null reference");
20799 SWIG_fail;
20800 }
20801 {
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20804
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 {
20809 wxTimeSpan * resultptr;
20810 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20812 }
20813 return resultobj;
20814 fail:
20815 return NULL;
20816 }
20817
20818
20819 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
20820 PyObject *resultobj;
20821 wxDateTime *arg1 = (wxDateTime *) 0 ;
20822 wxTimeSpan *arg2 = 0 ;
20823 wxDateTime result;
20824 PyObject * obj0 = 0 ;
20825 PyObject * obj1 = 0 ;
20826
20827 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20830 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20831 SWIG_POINTER_EXCEPTION | 0)) == -1)
20832 SWIG_fail;
20833 if (arg2 == NULL) {
20834 PyErr_SetString(PyExc_TypeError,"null reference");
20835 SWIG_fail;
20836 }
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20840
20841 wxPyEndAllowThreads(__tstate);
20842 if (PyErr_Occurred()) SWIG_fail;
20843 }
20844 {
20845 wxDateTime * resultptr;
20846 resultptr = new wxDateTime((wxDateTime &) result);
20847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20848 }
20849 return resultobj;
20850 fail:
20851 return NULL;
20852 }
20853
20854
20855 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
20856 PyObject *resultobj;
20857 wxDateTime *arg1 = (wxDateTime *) 0 ;
20858 wxDateSpan *arg2 = 0 ;
20859 wxDateTime result;
20860 PyObject * obj0 = 0 ;
20861 PyObject * obj1 = 0 ;
20862
20863 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20866 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20867 SWIG_POINTER_EXCEPTION | 0)) == -1)
20868 SWIG_fail;
20869 if (arg2 == NULL) {
20870 PyErr_SetString(PyExc_TypeError,"null reference");
20871 SWIG_fail;
20872 }
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20876
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 {
20881 wxDateTime * resultptr;
20882 resultptr = new wxDateTime((wxDateTime &) result);
20883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20884 }
20885 return resultobj;
20886 fail:
20887 return NULL;
20888 }
20889
20890
20891 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20892 int argc;
20893 PyObject *argv[3];
20894 int ii;
20895
20896 argc = PyObject_Length(args);
20897 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20898 argv[ii] = PyTuple_GetItem(args,ii);
20899 }
20900 if (argc == 2) {
20901 int _v;
20902 {
20903 void *ptr;
20904 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20905 _v = 0;
20906 PyErr_Clear();
20907 } else {
20908 _v = 1;
20909 }
20910 }
20911 if (_v) {
20912 {
20913 void *ptr;
20914 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20915 _v = 0;
20916 PyErr_Clear();
20917 } else {
20918 _v = 1;
20919 }
20920 }
20921 if (_v) {
20922 return _wrap_DateTime___sub____SWIG_0(self,args);
20923 }
20924 }
20925 }
20926 if (argc == 2) {
20927 int _v;
20928 {
20929 void *ptr;
20930 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20931 _v = 0;
20932 PyErr_Clear();
20933 } else {
20934 _v = 1;
20935 }
20936 }
20937 if (_v) {
20938 {
20939 void *ptr;
20940 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20941 _v = 0;
20942 PyErr_Clear();
20943 } else {
20944 _v = 1;
20945 }
20946 }
20947 if (_v) {
20948 return _wrap_DateTime___sub____SWIG_1(self,args);
20949 }
20950 }
20951 }
20952 if (argc == 2) {
20953 int _v;
20954 {
20955 void *ptr;
20956 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20957 _v = 0;
20958 PyErr_Clear();
20959 } else {
20960 _v = 1;
20961 }
20962 }
20963 if (_v) {
20964 {
20965 void *ptr;
20966 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20967 _v = 0;
20968 PyErr_Clear();
20969 } else {
20970 _v = 1;
20971 }
20972 }
20973 if (_v) {
20974 return _wrap_DateTime___sub____SWIG_2(self,args);
20975 }
20976 }
20977 }
20978
20979 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20980 return NULL;
20981 }
20982
20983
20984 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
20985 PyObject *resultobj;
20986 wxDateTime *arg1 = (wxDateTime *) 0 ;
20987 wxDateTime *arg2 = (wxDateTime *) 0 ;
20988 bool result;
20989 PyObject * obj0 = 0 ;
20990 PyObject * obj1 = 0 ;
20991
20992 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20995 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
21000
21001 wxPyEndAllowThreads(__tstate);
21002 if (PyErr_Occurred()) SWIG_fail;
21003 }
21004 {
21005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21006 }
21007 return resultobj;
21008 fail:
21009 return NULL;
21010 }
21011
21012
21013 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
21014 PyObject *resultobj;
21015 wxDateTime *arg1 = (wxDateTime *) 0 ;
21016 wxDateTime *arg2 = (wxDateTime *) 0 ;
21017 bool result;
21018 PyObject * obj0 = 0 ;
21019 PyObject * obj1 = 0 ;
21020
21021 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
21022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21026 {
21027 PyThreadState* __tstate = wxPyBeginAllowThreads();
21028 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
21029
21030 wxPyEndAllowThreads(__tstate);
21031 if (PyErr_Occurred()) SWIG_fail;
21032 }
21033 {
21034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21035 }
21036 return resultobj;
21037 fail:
21038 return NULL;
21039 }
21040
21041
21042 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
21043 PyObject *resultobj;
21044 wxDateTime *arg1 = (wxDateTime *) 0 ;
21045 wxDateTime *arg2 = (wxDateTime *) 0 ;
21046 bool result;
21047 PyObject * obj0 = 0 ;
21048 PyObject * obj1 = 0 ;
21049
21050 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
21051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21055 {
21056 PyThreadState* __tstate = wxPyBeginAllowThreads();
21057 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
21058
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 {
21063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21064 }
21065 return resultobj;
21066 fail:
21067 return NULL;
21068 }
21069
21070
21071 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
21072 PyObject *resultobj;
21073 wxDateTime *arg1 = (wxDateTime *) 0 ;
21074 wxDateTime *arg2 = (wxDateTime *) 0 ;
21075 bool result;
21076 PyObject * obj0 = 0 ;
21077 PyObject * obj1 = 0 ;
21078
21079 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
21080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21084 {
21085 PyThreadState* __tstate = wxPyBeginAllowThreads();
21086 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
21087
21088 wxPyEndAllowThreads(__tstate);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 {
21092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21093 }
21094 return resultobj;
21095 fail:
21096 return NULL;
21097 }
21098
21099
21100 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
21101 PyObject *resultobj;
21102 wxDateTime *arg1 = (wxDateTime *) 0 ;
21103 wxDateTime *arg2 = (wxDateTime *) 0 ;
21104 bool result;
21105 PyObject * obj0 = 0 ;
21106 PyObject * obj1 = 0 ;
21107
21108 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
21109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21113 {
21114 PyThreadState* __tstate = wxPyBeginAllowThreads();
21115 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
21116
21117 wxPyEndAllowThreads(__tstate);
21118 if (PyErr_Occurred()) SWIG_fail;
21119 }
21120 {
21121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21122 }
21123 return resultobj;
21124 fail:
21125 return NULL;
21126 }
21127
21128
21129 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
21130 PyObject *resultobj;
21131 wxDateTime *arg1 = (wxDateTime *) 0 ;
21132 wxDateTime *arg2 = (wxDateTime *) 0 ;
21133 bool result;
21134 PyObject * obj0 = 0 ;
21135 PyObject * obj1 = 0 ;
21136
21137 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21140 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21142 {
21143 PyThreadState* __tstate = wxPyBeginAllowThreads();
21144 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21145
21146 wxPyEndAllowThreads(__tstate);
21147 if (PyErr_Occurred()) SWIG_fail;
21148 }
21149 {
21150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21151 }
21152 return resultobj;
21153 fail:
21154 return NULL;
21155 }
21156
21157
21158 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
21159 PyObject *resultobj;
21160 wxDateTime *arg1 = (wxDateTime *) 0 ;
21161 wxString *arg2 = 0 ;
21162 int result;
21163 bool temp2 = False ;
21164 PyObject * obj0 = 0 ;
21165 PyObject * obj1 = 0 ;
21166 char *kwnames[] = {
21167 (char *) "self",(char *) "date", NULL
21168 };
21169
21170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21173 {
21174 arg2 = wxString_in_helper(obj1);
21175 if (arg2 == NULL) SWIG_fail;
21176 temp2 = True;
21177 }
21178 {
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21181
21182 wxPyEndAllowThreads(__tstate);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 }
21185 resultobj = SWIG_From_int((int)result);
21186 {
21187 if (temp2)
21188 delete arg2;
21189 }
21190 return resultobj;
21191 fail:
21192 {
21193 if (temp2)
21194 delete arg2;
21195 }
21196 return NULL;
21197 }
21198
21199
21200 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
21201 PyObject *resultobj;
21202 wxDateTime *arg1 = (wxDateTime *) 0 ;
21203 wxString *arg2 = 0 ;
21204 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21205 wxString *arg3 = (wxString *) &arg3_defvalue ;
21206 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21207 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21208 int result;
21209 bool temp2 = False ;
21210 bool temp3 = False ;
21211 PyObject * obj0 = 0 ;
21212 PyObject * obj1 = 0 ;
21213 PyObject * obj2 = 0 ;
21214 PyObject * obj3 = 0 ;
21215 char *kwnames[] = {
21216 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21217 };
21218
21219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21222 {
21223 arg2 = wxString_in_helper(obj1);
21224 if (arg2 == NULL) SWIG_fail;
21225 temp2 = True;
21226 }
21227 if (obj2) {
21228 {
21229 arg3 = wxString_in_helper(obj2);
21230 if (arg3 == NULL) SWIG_fail;
21231 temp3 = True;
21232 }
21233 }
21234 if (obj3) {
21235 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21236 SWIG_POINTER_EXCEPTION | 0)) == -1)
21237 SWIG_fail;
21238 if (arg4 == NULL) {
21239 PyErr_SetString(PyExc_TypeError,"null reference");
21240 SWIG_fail;
21241 }
21242 }
21243 {
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21246
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 resultobj = SWIG_From_int((int)result);
21251 {
21252 if (temp2)
21253 delete arg2;
21254 }
21255 {
21256 if (temp3)
21257 delete arg3;
21258 }
21259 return resultobj;
21260 fail:
21261 {
21262 if (temp2)
21263 delete arg2;
21264 }
21265 {
21266 if (temp3)
21267 delete arg3;
21268 }
21269 return NULL;
21270 }
21271
21272
21273 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
21274 PyObject *resultobj;
21275 wxDateTime *arg1 = (wxDateTime *) 0 ;
21276 wxString *arg2 = 0 ;
21277 int result;
21278 bool temp2 = False ;
21279 PyObject * obj0 = 0 ;
21280 PyObject * obj1 = 0 ;
21281 char *kwnames[] = {
21282 (char *) "self",(char *) "datetime", NULL
21283 };
21284
21285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21288 {
21289 arg2 = wxString_in_helper(obj1);
21290 if (arg2 == NULL) SWIG_fail;
21291 temp2 = True;
21292 }
21293 {
21294 PyThreadState* __tstate = wxPyBeginAllowThreads();
21295 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21296
21297 wxPyEndAllowThreads(__tstate);
21298 if (PyErr_Occurred()) SWIG_fail;
21299 }
21300 resultobj = SWIG_From_int((int)result);
21301 {
21302 if (temp2)
21303 delete arg2;
21304 }
21305 return resultobj;
21306 fail:
21307 {
21308 if (temp2)
21309 delete arg2;
21310 }
21311 return NULL;
21312 }
21313
21314
21315 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
21316 PyObject *resultobj;
21317 wxDateTime *arg1 = (wxDateTime *) 0 ;
21318 wxString *arg2 = 0 ;
21319 int result;
21320 bool temp2 = False ;
21321 PyObject * obj0 = 0 ;
21322 PyObject * obj1 = 0 ;
21323 char *kwnames[] = {
21324 (char *) "self",(char *) "date", NULL
21325 };
21326
21327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21330 {
21331 arg2 = wxString_in_helper(obj1);
21332 if (arg2 == NULL) SWIG_fail;
21333 temp2 = True;
21334 }
21335 {
21336 PyThreadState* __tstate = wxPyBeginAllowThreads();
21337 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21338
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 resultobj = SWIG_From_int((int)result);
21343 {
21344 if (temp2)
21345 delete arg2;
21346 }
21347 return resultobj;
21348 fail:
21349 {
21350 if (temp2)
21351 delete arg2;
21352 }
21353 return NULL;
21354 }
21355
21356
21357 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
21358 PyObject *resultobj;
21359 wxDateTime *arg1 = (wxDateTime *) 0 ;
21360 wxString *arg2 = 0 ;
21361 int result;
21362 bool temp2 = False ;
21363 PyObject * obj0 = 0 ;
21364 PyObject * obj1 = 0 ;
21365 char *kwnames[] = {
21366 (char *) "self",(char *) "time", NULL
21367 };
21368
21369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21372 {
21373 arg2 = wxString_in_helper(obj1);
21374 if (arg2 == NULL) SWIG_fail;
21375 temp2 = True;
21376 }
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21380
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 resultobj = SWIG_From_int((int)result);
21385 {
21386 if (temp2)
21387 delete arg2;
21388 }
21389 return resultobj;
21390 fail:
21391 {
21392 if (temp2)
21393 delete arg2;
21394 }
21395 return NULL;
21396 }
21397
21398
21399 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
21400 PyObject *resultobj;
21401 wxDateTime *arg1 = (wxDateTime *) 0 ;
21402 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21403 wxString *arg2 = (wxString *) &arg2_defvalue ;
21404 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21405 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21406 wxString result;
21407 bool temp2 = False ;
21408 bool temp3 = False ;
21409 PyObject * obj0 = 0 ;
21410 PyObject * obj1 = 0 ;
21411 PyObject * obj2 = 0 ;
21412 char *kwnames[] = {
21413 (char *) "self",(char *) "format",(char *) "tz", NULL
21414 };
21415
21416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21419 if (obj1) {
21420 {
21421 arg2 = wxString_in_helper(obj1);
21422 if (arg2 == NULL) SWIG_fail;
21423 temp2 = True;
21424 }
21425 }
21426 if (obj2) {
21427 {
21428 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21429 temp3 = True;
21430 }
21431 }
21432 {
21433 PyThreadState* __tstate = wxPyBeginAllowThreads();
21434 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21435
21436 wxPyEndAllowThreads(__tstate);
21437 if (PyErr_Occurred()) SWIG_fail;
21438 }
21439 {
21440 #if wxUSE_UNICODE
21441 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21442 #else
21443 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21444 #endif
21445 }
21446 {
21447 if (temp2)
21448 delete arg2;
21449 }
21450 {
21451 if (temp3) delete arg3;
21452 }
21453 return resultobj;
21454 fail:
21455 {
21456 if (temp2)
21457 delete arg2;
21458 }
21459 {
21460 if (temp3) delete arg3;
21461 }
21462 return NULL;
21463 }
21464
21465
21466 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
21467 PyObject *resultobj;
21468 wxDateTime *arg1 = (wxDateTime *) 0 ;
21469 wxString result;
21470 PyObject * obj0 = 0 ;
21471 char *kwnames[] = {
21472 (char *) "self", NULL
21473 };
21474
21475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21478 {
21479 PyThreadState* __tstate = wxPyBeginAllowThreads();
21480 result = ((wxDateTime const *)arg1)->FormatDate();
21481
21482 wxPyEndAllowThreads(__tstate);
21483 if (PyErr_Occurred()) SWIG_fail;
21484 }
21485 {
21486 #if wxUSE_UNICODE
21487 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21488 #else
21489 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21490 #endif
21491 }
21492 return resultobj;
21493 fail:
21494 return NULL;
21495 }
21496
21497
21498 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
21499 PyObject *resultobj;
21500 wxDateTime *arg1 = (wxDateTime *) 0 ;
21501 wxString result;
21502 PyObject * obj0 = 0 ;
21503 char *kwnames[] = {
21504 (char *) "self", NULL
21505 };
21506
21507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 result = ((wxDateTime const *)arg1)->FormatTime();
21513
21514 wxPyEndAllowThreads(__tstate);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 {
21518 #if wxUSE_UNICODE
21519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21520 #else
21521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21522 #endif
21523 }
21524 return resultobj;
21525 fail:
21526 return NULL;
21527 }
21528
21529
21530 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
21531 PyObject *resultobj;
21532 wxDateTime *arg1 = (wxDateTime *) 0 ;
21533 wxString result;
21534 PyObject * obj0 = 0 ;
21535 char *kwnames[] = {
21536 (char *) "self", NULL
21537 };
21538
21539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21542 {
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 result = ((wxDateTime const *)arg1)->FormatISODate();
21545
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 {
21550 #if wxUSE_UNICODE
21551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21552 #else
21553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21554 #endif
21555 }
21556 return resultobj;
21557 fail:
21558 return NULL;
21559 }
21560
21561
21562 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
21563 PyObject *resultobj;
21564 wxDateTime *arg1 = (wxDateTime *) 0 ;
21565 wxString result;
21566 PyObject * obj0 = 0 ;
21567 char *kwnames[] = {
21568 (char *) "self", NULL
21569 };
21570
21571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21574 {
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 result = ((wxDateTime const *)arg1)->FormatISOTime();
21577
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 {
21582 #if wxUSE_UNICODE
21583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21584 #else
21585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21586 #endif
21587 }
21588 return resultobj;
21589 fail:
21590 return NULL;
21591 }
21592
21593
21594 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
21595 PyObject *obj;
21596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21597 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21598 Py_INCREF(obj);
21599 return Py_BuildValue((char *)"");
21600 }
21601 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
21602 PyObject *resultobj;
21603 long arg1 ;
21604 wxTimeSpan result;
21605 PyObject * obj0 = 0 ;
21606 char *kwnames[] = {
21607 (char *) "sec", NULL
21608 };
21609
21610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21611 arg1 = (long)SWIG_As_long(obj0);
21612 if (PyErr_Occurred()) SWIG_fail;
21613 {
21614 PyThreadState* __tstate = wxPyBeginAllowThreads();
21615 result = wxTimeSpan::Seconds(arg1);
21616
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 {
21621 wxTimeSpan * resultptr;
21622 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21623 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21624 }
21625 return resultobj;
21626 fail:
21627 return NULL;
21628 }
21629
21630
21631 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
21632 PyObject *resultobj;
21633 wxTimeSpan result;
21634 char *kwnames[] = {
21635 NULL
21636 };
21637
21638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21639 {
21640 PyThreadState* __tstate = wxPyBeginAllowThreads();
21641 result = wxTimeSpan::Second();
21642
21643 wxPyEndAllowThreads(__tstate);
21644 if (PyErr_Occurred()) SWIG_fail;
21645 }
21646 {
21647 wxTimeSpan * resultptr;
21648 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21649 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21650 }
21651 return resultobj;
21652 fail:
21653 return NULL;
21654 }
21655
21656
21657 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
21658 PyObject *resultobj;
21659 long arg1 ;
21660 wxTimeSpan result;
21661 PyObject * obj0 = 0 ;
21662 char *kwnames[] = {
21663 (char *) "min", NULL
21664 };
21665
21666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21667 arg1 = (long)SWIG_As_long(obj0);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 result = wxTimeSpan::Minutes(arg1);
21672
21673 wxPyEndAllowThreads(__tstate);
21674 if (PyErr_Occurred()) SWIG_fail;
21675 }
21676 {
21677 wxTimeSpan * resultptr;
21678 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21679 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21680 }
21681 return resultobj;
21682 fail:
21683 return NULL;
21684 }
21685
21686
21687 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
21688 PyObject *resultobj;
21689 wxTimeSpan result;
21690 char *kwnames[] = {
21691 NULL
21692 };
21693
21694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21695 {
21696 PyThreadState* __tstate = wxPyBeginAllowThreads();
21697 result = wxTimeSpan::Minute();
21698
21699 wxPyEndAllowThreads(__tstate);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 {
21703 wxTimeSpan * resultptr;
21704 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21705 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21706 }
21707 return resultobj;
21708 fail:
21709 return NULL;
21710 }
21711
21712
21713 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
21714 PyObject *resultobj;
21715 long arg1 ;
21716 wxTimeSpan result;
21717 PyObject * obj0 = 0 ;
21718 char *kwnames[] = {
21719 (char *) "hours", NULL
21720 };
21721
21722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21723 arg1 = (long)SWIG_As_long(obj0);
21724 if (PyErr_Occurred()) SWIG_fail;
21725 {
21726 PyThreadState* __tstate = wxPyBeginAllowThreads();
21727 result = wxTimeSpan::Hours(arg1);
21728
21729 wxPyEndAllowThreads(__tstate);
21730 if (PyErr_Occurred()) SWIG_fail;
21731 }
21732 {
21733 wxTimeSpan * resultptr;
21734 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21736 }
21737 return resultobj;
21738 fail:
21739 return NULL;
21740 }
21741
21742
21743 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
21744 PyObject *resultobj;
21745 wxTimeSpan result;
21746 char *kwnames[] = {
21747 NULL
21748 };
21749
21750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21751 {
21752 PyThreadState* __tstate = wxPyBeginAllowThreads();
21753 result = wxTimeSpan::Hour();
21754
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 {
21759 wxTimeSpan * resultptr;
21760 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21761 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21762 }
21763 return resultobj;
21764 fail:
21765 return NULL;
21766 }
21767
21768
21769 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
21770 PyObject *resultobj;
21771 long arg1 ;
21772 wxTimeSpan result;
21773 PyObject * obj0 = 0 ;
21774 char *kwnames[] = {
21775 (char *) "days", NULL
21776 };
21777
21778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21779 arg1 = (long)SWIG_As_long(obj0);
21780 if (PyErr_Occurred()) SWIG_fail;
21781 {
21782 PyThreadState* __tstate = wxPyBeginAllowThreads();
21783 result = wxTimeSpan::Days(arg1);
21784
21785 wxPyEndAllowThreads(__tstate);
21786 if (PyErr_Occurred()) SWIG_fail;
21787 }
21788 {
21789 wxTimeSpan * resultptr;
21790 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21791 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21792 }
21793 return resultobj;
21794 fail:
21795 return NULL;
21796 }
21797
21798
21799 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
21800 PyObject *resultobj;
21801 wxTimeSpan result;
21802 char *kwnames[] = {
21803 NULL
21804 };
21805
21806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 result = wxTimeSpan::Day();
21810
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 {
21815 wxTimeSpan * resultptr;
21816 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21817 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21818 }
21819 return resultobj;
21820 fail:
21821 return NULL;
21822 }
21823
21824
21825 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
21826 PyObject *resultobj;
21827 long arg1 ;
21828 wxTimeSpan result;
21829 PyObject * obj0 = 0 ;
21830 char *kwnames[] = {
21831 (char *) "days", NULL
21832 };
21833
21834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21835 arg1 = (long)SWIG_As_long(obj0);
21836 if (PyErr_Occurred()) SWIG_fail;
21837 {
21838 PyThreadState* __tstate = wxPyBeginAllowThreads();
21839 result = wxTimeSpan::Weeks(arg1);
21840
21841 wxPyEndAllowThreads(__tstate);
21842 if (PyErr_Occurred()) SWIG_fail;
21843 }
21844 {
21845 wxTimeSpan * resultptr;
21846 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21848 }
21849 return resultobj;
21850 fail:
21851 return NULL;
21852 }
21853
21854
21855 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
21856 PyObject *resultobj;
21857 wxTimeSpan result;
21858 char *kwnames[] = {
21859 NULL
21860 };
21861
21862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21863 {
21864 PyThreadState* __tstate = wxPyBeginAllowThreads();
21865 result = wxTimeSpan::Week();
21866
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 {
21871 wxTimeSpan * resultptr;
21872 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21873 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21874 }
21875 return resultobj;
21876 fail:
21877 return NULL;
21878 }
21879
21880
21881 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21882 PyObject *resultobj;
21883 long arg1 = (long) 0 ;
21884 long arg2 = (long) 0 ;
21885 long arg3 = (long) 0 ;
21886 long arg4 = (long) 0 ;
21887 wxTimeSpan *result;
21888 PyObject * obj0 = 0 ;
21889 PyObject * obj1 = 0 ;
21890 PyObject * obj2 = 0 ;
21891 PyObject * obj3 = 0 ;
21892 char *kwnames[] = {
21893 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21894 };
21895
21896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21897 if (obj0) {
21898 arg1 = (long)SWIG_As_long(obj0);
21899 if (PyErr_Occurred()) SWIG_fail;
21900 }
21901 if (obj1) {
21902 arg2 = (long)SWIG_As_long(obj1);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 if (obj2) {
21906 arg3 = (long)SWIG_As_long(obj2);
21907 if (PyErr_Occurred()) SWIG_fail;
21908 }
21909 if (obj3) {
21910 arg4 = (long)SWIG_As_long(obj3);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 }
21913 {
21914 PyThreadState* __tstate = wxPyBeginAllowThreads();
21915 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21916
21917 wxPyEndAllowThreads(__tstate);
21918 if (PyErr_Occurred()) SWIG_fail;
21919 }
21920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21921 return resultobj;
21922 fail:
21923 return NULL;
21924 }
21925
21926
21927 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21928 PyObject *resultobj;
21929 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21930 PyObject * obj0 = 0 ;
21931 char *kwnames[] = {
21932 (char *) "self", NULL
21933 };
21934
21935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 delete arg1;
21941
21942 wxPyEndAllowThreads(__tstate);
21943 if (PyErr_Occurred()) SWIG_fail;
21944 }
21945 Py_INCREF(Py_None); resultobj = Py_None;
21946 return resultobj;
21947 fail:
21948 return NULL;
21949 }
21950
21951
21952 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
21953 PyObject *resultobj;
21954 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21955 wxTimeSpan *arg2 = 0 ;
21956 wxTimeSpan *result;
21957 PyObject * obj0 = 0 ;
21958 PyObject * obj1 = 0 ;
21959 char *kwnames[] = {
21960 (char *) "self",(char *) "diff", NULL
21961 };
21962
21963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21966 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21967 SWIG_POINTER_EXCEPTION | 0)) == -1)
21968 SWIG_fail;
21969 if (arg2 == NULL) {
21970 PyErr_SetString(PyExc_TypeError,"null reference");
21971 SWIG_fail;
21972 }
21973 {
21974 PyThreadState* __tstate = wxPyBeginAllowThreads();
21975 {
21976 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21977 result = (wxTimeSpan *) &_result_ref;
21978 }
21979
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
21991 PyObject *resultobj;
21992 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21993 wxTimeSpan *arg2 = 0 ;
21994 wxTimeSpan *result;
21995 PyObject * obj0 = 0 ;
21996 PyObject * obj1 = 0 ;
21997 char *kwnames[] = {
21998 (char *) "self",(char *) "diff", NULL
21999 };
22000
22001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22004 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22005 SWIG_POINTER_EXCEPTION | 0)) == -1)
22006 SWIG_fail;
22007 if (arg2 == NULL) {
22008 PyErr_SetString(PyExc_TypeError,"null reference");
22009 SWIG_fail;
22010 }
22011 {
22012 PyThreadState* __tstate = wxPyBeginAllowThreads();
22013 {
22014 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
22015 result = (wxTimeSpan *) &_result_ref;
22016 }
22017
22018 wxPyEndAllowThreads(__tstate);
22019 if (PyErr_Occurred()) SWIG_fail;
22020 }
22021 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22022 return resultobj;
22023 fail:
22024 return NULL;
22025 }
22026
22027
22028 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
22029 PyObject *resultobj;
22030 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22031 int arg2 ;
22032 wxTimeSpan *result;
22033 PyObject * obj0 = 0 ;
22034 PyObject * obj1 = 0 ;
22035 char *kwnames[] = {
22036 (char *) "self",(char *) "n", NULL
22037 };
22038
22039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
22040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22042 arg2 = (int)SWIG_As_int(obj1);
22043 if (PyErr_Occurred()) SWIG_fail;
22044 {
22045 PyThreadState* __tstate = wxPyBeginAllowThreads();
22046 {
22047 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
22048 result = (wxTimeSpan *) &_result_ref;
22049 }
22050
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22055 return resultobj;
22056 fail:
22057 return NULL;
22058 }
22059
22060
22061 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
22062 PyObject *resultobj;
22063 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22064 wxTimeSpan *result;
22065 PyObject * obj0 = 0 ;
22066 char *kwnames[] = {
22067 (char *) "self", NULL
22068 };
22069
22070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
22071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22073 {
22074 PyThreadState* __tstate = wxPyBeginAllowThreads();
22075 {
22076 wxTimeSpan &_result_ref = (arg1)->Neg();
22077 result = (wxTimeSpan *) &_result_ref;
22078 }
22079
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22084 return resultobj;
22085 fail:
22086 return NULL;
22087 }
22088
22089
22090 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
22091 PyObject *resultobj;
22092 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22093 wxTimeSpan result;
22094 PyObject * obj0 = 0 ;
22095 char *kwnames[] = {
22096 (char *) "self", NULL
22097 };
22098
22099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
22100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22102 {
22103 PyThreadState* __tstate = wxPyBeginAllowThreads();
22104 result = ((wxTimeSpan const *)arg1)->Abs();
22105
22106 wxPyEndAllowThreads(__tstate);
22107 if (PyErr_Occurred()) SWIG_fail;
22108 }
22109 {
22110 wxTimeSpan * resultptr;
22111 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22112 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22113 }
22114 return resultobj;
22115 fail:
22116 return NULL;
22117 }
22118
22119
22120 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
22121 PyObject *resultobj;
22122 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22123 wxTimeSpan *arg2 = 0 ;
22124 wxTimeSpan *result;
22125 PyObject * obj0 = 0 ;
22126 PyObject * obj1 = 0 ;
22127 char *kwnames[] = {
22128 (char *) "self",(char *) "diff", NULL
22129 };
22130
22131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
22132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22133 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22135 SWIG_POINTER_EXCEPTION | 0)) == -1)
22136 SWIG_fail;
22137 if (arg2 == NULL) {
22138 PyErr_SetString(PyExc_TypeError,"null reference");
22139 SWIG_fail;
22140 }
22141 {
22142 PyThreadState* __tstate = wxPyBeginAllowThreads();
22143 {
22144 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22145 result = (wxTimeSpan *) &_result_ref;
22146 }
22147
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22152 return resultobj;
22153 fail:
22154 return NULL;
22155 }
22156
22157
22158 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
22159 PyObject *resultobj;
22160 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22161 wxTimeSpan *arg2 = 0 ;
22162 wxTimeSpan *result;
22163 PyObject * obj0 = 0 ;
22164 PyObject * obj1 = 0 ;
22165 char *kwnames[] = {
22166 (char *) "self",(char *) "diff", NULL
22167 };
22168
22169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22171 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22172 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22173 SWIG_POINTER_EXCEPTION | 0)) == -1)
22174 SWIG_fail;
22175 if (arg2 == NULL) {
22176 PyErr_SetString(PyExc_TypeError,"null reference");
22177 SWIG_fail;
22178 }
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 {
22182 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22183 result = (wxTimeSpan *) &_result_ref;
22184 }
22185
22186 wxPyEndAllowThreads(__tstate);
22187 if (PyErr_Occurred()) SWIG_fail;
22188 }
22189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22190 return resultobj;
22191 fail:
22192 return NULL;
22193 }
22194
22195
22196 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
22197 PyObject *resultobj;
22198 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22199 int arg2 ;
22200 wxTimeSpan *result;
22201 PyObject * obj0 = 0 ;
22202 PyObject * obj1 = 0 ;
22203 char *kwnames[] = {
22204 (char *) "self",(char *) "n", NULL
22205 };
22206
22207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22209 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22210 arg2 = (int)SWIG_As_int(obj1);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 {
22213 PyThreadState* __tstate = wxPyBeginAllowThreads();
22214 {
22215 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22216 result = (wxTimeSpan *) &_result_ref;
22217 }
22218
22219 wxPyEndAllowThreads(__tstate);
22220 if (PyErr_Occurred()) SWIG_fail;
22221 }
22222 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22223 return resultobj;
22224 fail:
22225 return NULL;
22226 }
22227
22228
22229 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
22230 PyObject *resultobj;
22231 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22232 wxTimeSpan *result;
22233 PyObject * obj0 = 0 ;
22234 char *kwnames[] = {
22235 (char *) "self", NULL
22236 };
22237
22238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22241 {
22242 PyThreadState* __tstate = wxPyBeginAllowThreads();
22243 {
22244 wxTimeSpan &_result_ref = (arg1)->operator -();
22245 result = (wxTimeSpan *) &_result_ref;
22246 }
22247
22248 wxPyEndAllowThreads(__tstate);
22249 if (PyErr_Occurred()) SWIG_fail;
22250 }
22251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22252 return resultobj;
22253 fail:
22254 return NULL;
22255 }
22256
22257
22258 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
22259 PyObject *resultobj;
22260 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22261 wxTimeSpan *arg2 = 0 ;
22262 wxTimeSpan result;
22263 PyObject * obj0 = 0 ;
22264 PyObject * obj1 = 0 ;
22265 char *kwnames[] = {
22266 (char *) "self",(char *) "other", NULL
22267 };
22268
22269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22273 SWIG_POINTER_EXCEPTION | 0)) == -1)
22274 SWIG_fail;
22275 if (arg2 == NULL) {
22276 PyErr_SetString(PyExc_TypeError,"null reference");
22277 SWIG_fail;
22278 }
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22282
22283 wxPyEndAllowThreads(__tstate);
22284 if (PyErr_Occurred()) SWIG_fail;
22285 }
22286 {
22287 wxTimeSpan * resultptr;
22288 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22290 }
22291 return resultobj;
22292 fail:
22293 return NULL;
22294 }
22295
22296
22297 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
22298 PyObject *resultobj;
22299 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22300 wxTimeSpan *arg2 = 0 ;
22301 wxTimeSpan result;
22302 PyObject * obj0 = 0 ;
22303 PyObject * obj1 = 0 ;
22304 char *kwnames[] = {
22305 (char *) "self",(char *) "other", NULL
22306 };
22307
22308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22312 SWIG_POINTER_EXCEPTION | 0)) == -1)
22313 SWIG_fail;
22314 if (arg2 == NULL) {
22315 PyErr_SetString(PyExc_TypeError,"null reference");
22316 SWIG_fail;
22317 }
22318 {
22319 PyThreadState* __tstate = wxPyBeginAllowThreads();
22320 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22321
22322 wxPyEndAllowThreads(__tstate);
22323 if (PyErr_Occurred()) SWIG_fail;
22324 }
22325 {
22326 wxTimeSpan * resultptr;
22327 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22329 }
22330 return resultobj;
22331 fail:
22332 return NULL;
22333 }
22334
22335
22336 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
22337 PyObject *resultobj;
22338 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22339 int arg2 ;
22340 wxTimeSpan result;
22341 PyObject * obj0 = 0 ;
22342 PyObject * obj1 = 0 ;
22343 char *kwnames[] = {
22344 (char *) "self",(char *) "n", NULL
22345 };
22346
22347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22350 arg2 = (int)SWIG_As_int(obj1);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = wxTimeSpan___mul__(arg1,arg2);
22355
22356 wxPyEndAllowThreads(__tstate);
22357 if (PyErr_Occurred()) SWIG_fail;
22358 }
22359 {
22360 wxTimeSpan * resultptr;
22361 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22363 }
22364 return resultobj;
22365 fail:
22366 return NULL;
22367 }
22368
22369
22370 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
22371 PyObject *resultobj;
22372 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22373 int arg2 ;
22374 wxTimeSpan result;
22375 PyObject * obj0 = 0 ;
22376 PyObject * obj1 = 0 ;
22377 char *kwnames[] = {
22378 (char *) "self",(char *) "n", NULL
22379 };
22380
22381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22384 arg2 = (int)SWIG_As_int(obj1);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 {
22387 PyThreadState* __tstate = wxPyBeginAllowThreads();
22388 result = wxTimeSpan___rmul__(arg1,arg2);
22389
22390 wxPyEndAllowThreads(__tstate);
22391 if (PyErr_Occurred()) SWIG_fail;
22392 }
22393 {
22394 wxTimeSpan * resultptr;
22395 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22396 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22397 }
22398 return resultobj;
22399 fail:
22400 return NULL;
22401 }
22402
22403
22404 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
22405 PyObject *resultobj;
22406 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22407 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22408 bool result;
22409 PyObject * obj0 = 0 ;
22410 PyObject * obj1 = 0 ;
22411 char *kwnames[] = {
22412 (char *) "self",(char *) "other", NULL
22413 };
22414
22415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22420 {
22421 PyThreadState* __tstate = wxPyBeginAllowThreads();
22422 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22423
22424 wxPyEndAllowThreads(__tstate);
22425 if (PyErr_Occurred()) SWIG_fail;
22426 }
22427 {
22428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22429 }
22430 return resultobj;
22431 fail:
22432 return NULL;
22433 }
22434
22435
22436 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
22437 PyObject *resultobj;
22438 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22439 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22440 bool result;
22441 PyObject * obj0 = 0 ;
22442 PyObject * obj1 = 0 ;
22443 char *kwnames[] = {
22444 (char *) "self",(char *) "other", NULL
22445 };
22446
22447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22452 {
22453 PyThreadState* __tstate = wxPyBeginAllowThreads();
22454 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22455
22456 wxPyEndAllowThreads(__tstate);
22457 if (PyErr_Occurred()) SWIG_fail;
22458 }
22459 {
22460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22461 }
22462 return resultobj;
22463 fail:
22464 return NULL;
22465 }
22466
22467
22468 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
22469 PyObject *resultobj;
22470 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22471 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22472 bool result;
22473 PyObject * obj0 = 0 ;
22474 PyObject * obj1 = 0 ;
22475 char *kwnames[] = {
22476 (char *) "self",(char *) "other", NULL
22477 };
22478
22479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22484 {
22485 PyThreadState* __tstate = wxPyBeginAllowThreads();
22486 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22487
22488 wxPyEndAllowThreads(__tstate);
22489 if (PyErr_Occurred()) SWIG_fail;
22490 }
22491 {
22492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22493 }
22494 return resultobj;
22495 fail:
22496 return NULL;
22497 }
22498
22499
22500 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
22501 PyObject *resultobj;
22502 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22503 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22504 bool result;
22505 PyObject * obj0 = 0 ;
22506 PyObject * obj1 = 0 ;
22507 char *kwnames[] = {
22508 (char *) "self",(char *) "other", NULL
22509 };
22510
22511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22516 {
22517 PyThreadState* __tstate = wxPyBeginAllowThreads();
22518 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22519
22520 wxPyEndAllowThreads(__tstate);
22521 if (PyErr_Occurred()) SWIG_fail;
22522 }
22523 {
22524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22525 }
22526 return resultobj;
22527 fail:
22528 return NULL;
22529 }
22530
22531
22532 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
22533 PyObject *resultobj;
22534 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22535 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22536 bool result;
22537 PyObject * obj0 = 0 ;
22538 PyObject * obj1 = 0 ;
22539 char *kwnames[] = {
22540 (char *) "self",(char *) "other", NULL
22541 };
22542
22543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22546 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22548 {
22549 PyThreadState* __tstate = wxPyBeginAllowThreads();
22550 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22551
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 {
22556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22557 }
22558 return resultobj;
22559 fail:
22560 return NULL;
22561 }
22562
22563
22564 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
22565 PyObject *resultobj;
22566 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22567 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22568 bool 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___ne__",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) SWIG_fail;
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22583
22584 wxPyEndAllowThreads(__tstate);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
22587 {
22588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22589 }
22590 return resultobj;
22591 fail:
22592 return NULL;
22593 }
22594
22595
22596 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
22597 PyObject *resultobj;
22598 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22599 bool result;
22600 PyObject * obj0 = 0 ;
22601 char *kwnames[] = {
22602 (char *) "self", NULL
22603 };
22604
22605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22608 {
22609 PyThreadState* __tstate = wxPyBeginAllowThreads();
22610 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22611
22612 wxPyEndAllowThreads(__tstate);
22613 if (PyErr_Occurred()) SWIG_fail;
22614 }
22615 {
22616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22617 }
22618 return resultobj;
22619 fail:
22620 return NULL;
22621 }
22622
22623
22624 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
22625 PyObject *resultobj;
22626 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22627 bool result;
22628 PyObject * obj0 = 0 ;
22629 char *kwnames[] = {
22630 (char *) "self", NULL
22631 };
22632
22633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22636 {
22637 PyThreadState* __tstate = wxPyBeginAllowThreads();
22638 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22639
22640 wxPyEndAllowThreads(__tstate);
22641 if (PyErr_Occurred()) SWIG_fail;
22642 }
22643 {
22644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22645 }
22646 return resultobj;
22647 fail:
22648 return NULL;
22649 }
22650
22651
22652 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
22653 PyObject *resultobj;
22654 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22655 bool result;
22656 PyObject * obj0 = 0 ;
22657 char *kwnames[] = {
22658 (char *) "self", NULL
22659 };
22660
22661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22664 {
22665 PyThreadState* __tstate = wxPyBeginAllowThreads();
22666 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22667
22668 wxPyEndAllowThreads(__tstate);
22669 if (PyErr_Occurred()) SWIG_fail;
22670 }
22671 {
22672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22673 }
22674 return resultobj;
22675 fail:
22676 return NULL;
22677 }
22678
22679
22680 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj;
22682 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22683 wxTimeSpan *arg2 = 0 ;
22684 bool result;
22685 PyObject * obj0 = 0 ;
22686 PyObject * obj1 = 0 ;
22687 char *kwnames[] = {
22688 (char *) "self",(char *) "ts", NULL
22689 };
22690
22691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22695 SWIG_POINTER_EXCEPTION | 0)) == -1)
22696 SWIG_fail;
22697 if (arg2 == NULL) {
22698 PyErr_SetString(PyExc_TypeError,"null reference");
22699 SWIG_fail;
22700 }
22701 {
22702 PyThreadState* __tstate = wxPyBeginAllowThreads();
22703 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22704
22705 wxPyEndAllowThreads(__tstate);
22706 if (PyErr_Occurred()) SWIG_fail;
22707 }
22708 {
22709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22710 }
22711 return resultobj;
22712 fail:
22713 return NULL;
22714 }
22715
22716
22717 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
22718 PyObject *resultobj;
22719 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22720 wxTimeSpan *arg2 = 0 ;
22721 bool result;
22722 PyObject * obj0 = 0 ;
22723 PyObject * obj1 = 0 ;
22724 char *kwnames[] = {
22725 (char *) "self",(char *) "ts", NULL
22726 };
22727
22728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22732 SWIG_POINTER_EXCEPTION | 0)) == -1)
22733 SWIG_fail;
22734 if (arg2 == NULL) {
22735 PyErr_SetString(PyExc_TypeError,"null reference");
22736 SWIG_fail;
22737 }
22738 {
22739 PyThreadState* __tstate = wxPyBeginAllowThreads();
22740 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22741
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 {
22746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22747 }
22748 return resultobj;
22749 fail:
22750 return NULL;
22751 }
22752
22753
22754 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
22755 PyObject *resultobj;
22756 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22757 wxTimeSpan *arg2 = 0 ;
22758 bool result;
22759 PyObject * obj0 = 0 ;
22760 PyObject * obj1 = 0 ;
22761 char *kwnames[] = {
22762 (char *) "self",(char *) "t", NULL
22763 };
22764
22765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22769 SWIG_POINTER_EXCEPTION | 0)) == -1)
22770 SWIG_fail;
22771 if (arg2 == NULL) {
22772 PyErr_SetString(PyExc_TypeError,"null reference");
22773 SWIG_fail;
22774 }
22775 {
22776 PyThreadState* __tstate = wxPyBeginAllowThreads();
22777 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22778
22779 wxPyEndAllowThreads(__tstate);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 {
22783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22784 }
22785 return resultobj;
22786 fail:
22787 return NULL;
22788 }
22789
22790
22791 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22792 PyObject *resultobj;
22793 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22794 int result;
22795 PyObject * obj0 = 0 ;
22796 char *kwnames[] = {
22797 (char *) "self", NULL
22798 };
22799
22800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22803 {
22804 PyThreadState* __tstate = wxPyBeginAllowThreads();
22805 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22806
22807 wxPyEndAllowThreads(__tstate);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 resultobj = SWIG_From_int((int)result);
22811 return resultobj;
22812 fail:
22813 return NULL;
22814 }
22815
22816
22817 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
22818 PyObject *resultobj;
22819 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22820 int result;
22821 PyObject * obj0 = 0 ;
22822 char *kwnames[] = {
22823 (char *) "self", NULL
22824 };
22825
22826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22832
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 resultobj = SWIG_From_int((int)result);
22837 return resultobj;
22838 fail:
22839 return NULL;
22840 }
22841
22842
22843 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj;
22845 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22846 int result;
22847 PyObject * obj0 = 0 ;
22848 char *kwnames[] = {
22849 (char *) "self", NULL
22850 };
22851
22852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22855 {
22856 PyThreadState* __tstate = wxPyBeginAllowThreads();
22857 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22858
22859 wxPyEndAllowThreads(__tstate);
22860 if (PyErr_Occurred()) SWIG_fail;
22861 }
22862 resultobj = SWIG_From_int((int)result);
22863 return resultobj;
22864 fail:
22865 return NULL;
22866 }
22867
22868
22869 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
22870 PyObject *resultobj;
22871 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22872 int result;
22873 PyObject * obj0 = 0 ;
22874 char *kwnames[] = {
22875 (char *) "self", NULL
22876 };
22877
22878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22884
22885 wxPyEndAllowThreads(__tstate);
22886 if (PyErr_Occurred()) SWIG_fail;
22887 }
22888 resultobj = SWIG_From_int((int)result);
22889 return resultobj;
22890 fail:
22891 return NULL;
22892 }
22893
22894
22895 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
22896 PyObject *resultobj;
22897 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22898 wxLongLong result;
22899 PyObject * obj0 = 0 ;
22900 char *kwnames[] = {
22901 (char *) "self", NULL
22902 };
22903
22904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22907 {
22908 PyThreadState* __tstate = wxPyBeginAllowThreads();
22909 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22910
22911 wxPyEndAllowThreads(__tstate);
22912 if (PyErr_Occurred()) SWIG_fail;
22913 }
22914 {
22915 PyObject *hi, *lo, *shifter, *shifted;
22916 hi = PyLong_FromLong( (&result)->GetHi() );
22917 lo = PyLong_FromLong( (&result)->GetLo() );
22918 shifter = PyLong_FromLong(32);
22919 shifted = PyNumber_Lshift(hi, shifter);
22920 resultobj = PyNumber_Or(shifted, lo);
22921 Py_DECREF(hi);
22922 Py_DECREF(lo);
22923 Py_DECREF(shifter);
22924 Py_DECREF(shifted);
22925 }
22926 return resultobj;
22927 fail:
22928 return NULL;
22929 }
22930
22931
22932 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
22933 PyObject *resultobj;
22934 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22935 wxLongLong result;
22936 PyObject * obj0 = 0 ;
22937 char *kwnames[] = {
22938 (char *) "self", NULL
22939 };
22940
22941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22944 {
22945 PyThreadState* __tstate = wxPyBeginAllowThreads();
22946 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22947
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 {
22952 PyObject *hi, *lo, *shifter, *shifted;
22953 hi = PyLong_FromLong( (&result)->GetHi() );
22954 lo = PyLong_FromLong( (&result)->GetLo() );
22955 shifter = PyLong_FromLong(32);
22956 shifted = PyNumber_Lshift(hi, shifter);
22957 resultobj = PyNumber_Or(shifted, lo);
22958 Py_DECREF(hi);
22959 Py_DECREF(lo);
22960 Py_DECREF(shifter);
22961 Py_DECREF(shifted);
22962 }
22963 return resultobj;
22964 fail:
22965 return NULL;
22966 }
22967
22968
22969 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
22970 PyObject *resultobj;
22971 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22972 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22973 wxString *arg2 = (wxString *) &arg2_defvalue ;
22974 wxString result;
22975 bool temp2 = False ;
22976 PyObject * obj0 = 0 ;
22977 PyObject * obj1 = 0 ;
22978 char *kwnames[] = {
22979 (char *) "self",(char *) "format", NULL
22980 };
22981
22982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22985 if (obj1) {
22986 {
22987 arg2 = wxString_in_helper(obj1);
22988 if (arg2 == NULL) SWIG_fail;
22989 temp2 = True;
22990 }
22991 }
22992 {
22993 PyThreadState* __tstate = wxPyBeginAllowThreads();
22994 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22995
22996 wxPyEndAllowThreads(__tstate);
22997 if (PyErr_Occurred()) SWIG_fail;
22998 }
22999 {
23000 #if wxUSE_UNICODE
23001 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23002 #else
23003 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23004 #endif
23005 }
23006 {
23007 if (temp2)
23008 delete arg2;
23009 }
23010 return resultobj;
23011 fail:
23012 {
23013 if (temp2)
23014 delete arg2;
23015 }
23016 return NULL;
23017 }
23018
23019
23020 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
23021 PyObject *obj;
23022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23023 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
23024 Py_INCREF(obj);
23025 return Py_BuildValue((char *)"");
23026 }
23027 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23028 PyObject *resultobj;
23029 int arg1 = (int) 0 ;
23030 int arg2 = (int) 0 ;
23031 int arg3 = (int) 0 ;
23032 int arg4 = (int) 0 ;
23033 wxDateSpan *result;
23034 PyObject * obj0 = 0 ;
23035 PyObject * obj1 = 0 ;
23036 PyObject * obj2 = 0 ;
23037 PyObject * obj3 = 0 ;
23038 char *kwnames[] = {
23039 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
23040 };
23041
23042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23043 if (obj0) {
23044 arg1 = (int)SWIG_As_int(obj0);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
23047 if (obj1) {
23048 arg2 = (int)SWIG_As_int(obj1);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 if (obj2) {
23052 arg3 = (int)SWIG_As_int(obj2);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 if (obj3) {
23056 arg4 = (int)SWIG_As_int(obj3);
23057 if (PyErr_Occurred()) SWIG_fail;
23058 }
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
23062
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23067 return resultobj;
23068 fail:
23069 return NULL;
23070 }
23071
23072
23073 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23074 PyObject *resultobj;
23075 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23076 PyObject * obj0 = 0 ;
23077 char *kwnames[] = {
23078 (char *) "self", NULL
23079 };
23080
23081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
23082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23084 {
23085 PyThreadState* __tstate = wxPyBeginAllowThreads();
23086 delete arg1;
23087
23088 wxPyEndAllowThreads(__tstate);
23089 if (PyErr_Occurred()) SWIG_fail;
23090 }
23091 Py_INCREF(Py_None); resultobj = Py_None;
23092 return resultobj;
23093 fail:
23094 return NULL;
23095 }
23096
23097
23098 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
23099 PyObject *resultobj;
23100 int arg1 ;
23101 wxDateSpan result;
23102 PyObject * obj0 = 0 ;
23103 char *kwnames[] = {
23104 (char *) "days", NULL
23105 };
23106
23107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
23108 arg1 = (int)SWIG_As_int(obj0);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 result = wxDateSpan::Days(arg1);
23113
23114 wxPyEndAllowThreads(__tstate);
23115 if (PyErr_Occurred()) SWIG_fail;
23116 }
23117 {
23118 wxDateSpan * resultptr;
23119 resultptr = new wxDateSpan((wxDateSpan &) result);
23120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23121 }
23122 return resultobj;
23123 fail:
23124 return NULL;
23125 }
23126
23127
23128 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
23129 PyObject *resultobj;
23130 wxDateSpan result;
23131 char *kwnames[] = {
23132 NULL
23133 };
23134
23135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23136 {
23137 PyThreadState* __tstate = wxPyBeginAllowThreads();
23138 result = wxDateSpan::Day();
23139
23140 wxPyEndAllowThreads(__tstate);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
23143 {
23144 wxDateSpan * resultptr;
23145 resultptr = new wxDateSpan((wxDateSpan &) result);
23146 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23147 }
23148 return resultobj;
23149 fail:
23150 return NULL;
23151 }
23152
23153
23154 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
23155 PyObject *resultobj;
23156 int arg1 ;
23157 wxDateSpan result;
23158 PyObject * obj0 = 0 ;
23159 char *kwnames[] = {
23160 (char *) "weeks", NULL
23161 };
23162
23163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
23164 arg1 = (int)SWIG_As_int(obj0);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 {
23167 PyThreadState* __tstate = wxPyBeginAllowThreads();
23168 result = wxDateSpan::Weeks(arg1);
23169
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 {
23174 wxDateSpan * resultptr;
23175 resultptr = new wxDateSpan((wxDateSpan &) result);
23176 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23177 }
23178 return resultobj;
23179 fail:
23180 return NULL;
23181 }
23182
23183
23184 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
23185 PyObject *resultobj;
23186 wxDateSpan result;
23187 char *kwnames[] = {
23188 NULL
23189 };
23190
23191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 result = wxDateSpan::Week();
23195
23196 wxPyEndAllowThreads(__tstate);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 }
23199 {
23200 wxDateSpan * resultptr;
23201 resultptr = new wxDateSpan((wxDateSpan &) result);
23202 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23203 }
23204 return resultobj;
23205 fail:
23206 return NULL;
23207 }
23208
23209
23210 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
23211 PyObject *resultobj;
23212 int arg1 ;
23213 wxDateSpan result;
23214 PyObject * obj0 = 0 ;
23215 char *kwnames[] = {
23216 (char *) "mon", NULL
23217 };
23218
23219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
23220 arg1 = (int)SWIG_As_int(obj0);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 {
23223 PyThreadState* __tstate = wxPyBeginAllowThreads();
23224 result = wxDateSpan::Months(arg1);
23225
23226 wxPyEndAllowThreads(__tstate);
23227 if (PyErr_Occurred()) SWIG_fail;
23228 }
23229 {
23230 wxDateSpan * resultptr;
23231 resultptr = new wxDateSpan((wxDateSpan &) result);
23232 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23233 }
23234 return resultobj;
23235 fail:
23236 return NULL;
23237 }
23238
23239
23240 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
23241 PyObject *resultobj;
23242 wxDateSpan result;
23243 char *kwnames[] = {
23244 NULL
23245 };
23246
23247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
23250 result = wxDateSpan::Month();
23251
23252 wxPyEndAllowThreads(__tstate);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 {
23256 wxDateSpan * resultptr;
23257 resultptr = new wxDateSpan((wxDateSpan &) result);
23258 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23259 }
23260 return resultobj;
23261 fail:
23262 return NULL;
23263 }
23264
23265
23266 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
23267 PyObject *resultobj;
23268 int arg1 ;
23269 wxDateSpan result;
23270 PyObject * obj0 = 0 ;
23271 char *kwnames[] = {
23272 (char *) "years", NULL
23273 };
23274
23275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23276 arg1 = (int)SWIG_As_int(obj0);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 result = wxDateSpan::Years(arg1);
23281
23282 wxPyEndAllowThreads(__tstate);
23283 if (PyErr_Occurred()) SWIG_fail;
23284 }
23285 {
23286 wxDateSpan * resultptr;
23287 resultptr = new wxDateSpan((wxDateSpan &) result);
23288 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23289 }
23290 return resultobj;
23291 fail:
23292 return NULL;
23293 }
23294
23295
23296 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
23297 PyObject *resultobj;
23298 wxDateSpan result;
23299 char *kwnames[] = {
23300 NULL
23301 };
23302
23303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23304 {
23305 PyThreadState* __tstate = wxPyBeginAllowThreads();
23306 result = wxDateSpan::Year();
23307
23308 wxPyEndAllowThreads(__tstate);
23309 if (PyErr_Occurred()) SWIG_fail;
23310 }
23311 {
23312 wxDateSpan * resultptr;
23313 resultptr = new wxDateSpan((wxDateSpan &) result);
23314 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23315 }
23316 return resultobj;
23317 fail:
23318 return NULL;
23319 }
23320
23321
23322 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23323 PyObject *resultobj;
23324 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23325 int arg2 ;
23326 wxDateSpan *result;
23327 PyObject * obj0 = 0 ;
23328 PyObject * obj1 = 0 ;
23329 char *kwnames[] = {
23330 (char *) "self",(char *) "n", NULL
23331 };
23332
23333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23336 arg2 = (int)SWIG_As_int(obj1);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 {
23339 PyThreadState* __tstate = wxPyBeginAllowThreads();
23340 {
23341 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23342 result = (wxDateSpan *) &_result_ref;
23343 }
23344
23345 wxPyEndAllowThreads(__tstate);
23346 if (PyErr_Occurred()) SWIG_fail;
23347 }
23348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23349 return resultobj;
23350 fail:
23351 return NULL;
23352 }
23353
23354
23355 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23356 PyObject *resultobj;
23357 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23358 int arg2 ;
23359 wxDateSpan *result;
23360 PyObject * obj0 = 0 ;
23361 PyObject * obj1 = 0 ;
23362 char *kwnames[] = {
23363 (char *) "self",(char *) "n", NULL
23364 };
23365
23366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23369 arg2 = (int)SWIG_As_int(obj1);
23370 if (PyErr_Occurred()) SWIG_fail;
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 {
23374 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23375 result = (wxDateSpan *) &_result_ref;
23376 }
23377
23378 wxPyEndAllowThreads(__tstate);
23379 if (PyErr_Occurred()) SWIG_fail;
23380 }
23381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23382 return resultobj;
23383 fail:
23384 return NULL;
23385 }
23386
23387
23388 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23389 PyObject *resultobj;
23390 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23391 int arg2 ;
23392 wxDateSpan *result;
23393 PyObject * obj0 = 0 ;
23394 PyObject * obj1 = 0 ;
23395 char *kwnames[] = {
23396 (char *) "self",(char *) "n", NULL
23397 };
23398
23399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23402 arg2 = (int)SWIG_As_int(obj1);
23403 if (PyErr_Occurred()) SWIG_fail;
23404 {
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 {
23407 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23408 result = (wxDateSpan *) &_result_ref;
23409 }
23410
23411 wxPyEndAllowThreads(__tstate);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 }
23414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23415 return resultobj;
23416 fail:
23417 return NULL;
23418 }
23419
23420
23421 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23422 PyObject *resultobj;
23423 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23424 int arg2 ;
23425 wxDateSpan *result;
23426 PyObject * obj0 = 0 ;
23427 PyObject * obj1 = 0 ;
23428 char *kwnames[] = {
23429 (char *) "self",(char *) "n", NULL
23430 };
23431
23432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23435 arg2 = (int)SWIG_As_int(obj1);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 {
23438 PyThreadState* __tstate = wxPyBeginAllowThreads();
23439 {
23440 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23441 result = (wxDateSpan *) &_result_ref;
23442 }
23443
23444 wxPyEndAllowThreads(__tstate);
23445 if (PyErr_Occurred()) SWIG_fail;
23446 }
23447 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23448 return resultobj;
23449 fail:
23450 return NULL;
23451 }
23452
23453
23454 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23455 PyObject *resultobj;
23456 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23457 int result;
23458 PyObject * obj0 = 0 ;
23459 char *kwnames[] = {
23460 (char *) "self", NULL
23461 };
23462
23463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23466 {
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 result = (int)((wxDateSpan const *)arg1)->GetYears();
23469
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 resultobj = SWIG_From_int((int)result);
23474 return resultobj;
23475 fail:
23476 return NULL;
23477 }
23478
23479
23480 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23481 PyObject *resultobj;
23482 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23483 int result;
23484 PyObject * obj0 = 0 ;
23485 char *kwnames[] = {
23486 (char *) "self", NULL
23487 };
23488
23489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23492 {
23493 PyThreadState* __tstate = wxPyBeginAllowThreads();
23494 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23495
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 resultobj = SWIG_From_int((int)result);
23500 return resultobj;
23501 fail:
23502 return NULL;
23503 }
23504
23505
23506 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23507 PyObject *resultobj;
23508 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23509 int result;
23510 PyObject * obj0 = 0 ;
23511 char *kwnames[] = {
23512 (char *) "self", NULL
23513 };
23514
23515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23521
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 resultobj = SWIG_From_int((int)result);
23526 return resultobj;
23527 fail:
23528 return NULL;
23529 }
23530
23531
23532 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23533 PyObject *resultobj;
23534 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23535 int result;
23536 PyObject * obj0 = 0 ;
23537 char *kwnames[] = {
23538 (char *) "self", NULL
23539 };
23540
23541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23544 {
23545 PyThreadState* __tstate = wxPyBeginAllowThreads();
23546 result = (int)((wxDateSpan const *)arg1)->GetDays();
23547
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_From_int((int)result);
23552 return resultobj;
23553 fail:
23554 return NULL;
23555 }
23556
23557
23558 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
23559 PyObject *resultobj;
23560 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23561 int result;
23562 PyObject * obj0 = 0 ;
23563 char *kwnames[] = {
23564 (char *) "self", NULL
23565 };
23566
23567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23570 {
23571 PyThreadState* __tstate = wxPyBeginAllowThreads();
23572 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23573
23574 wxPyEndAllowThreads(__tstate);
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
23577 resultobj = SWIG_From_int((int)result);
23578 return resultobj;
23579 fail:
23580 return NULL;
23581 }
23582
23583
23584 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
23585 PyObject *resultobj;
23586 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23587 wxDateSpan *arg2 = 0 ;
23588 wxDateSpan *result;
23589 PyObject * obj0 = 0 ;
23590 PyObject * obj1 = 0 ;
23591 char *kwnames[] = {
23592 (char *) "self",(char *) "other", NULL
23593 };
23594
23595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23599 SWIG_POINTER_EXCEPTION | 0)) == -1)
23600 SWIG_fail;
23601 if (arg2 == NULL) {
23602 PyErr_SetString(PyExc_TypeError,"null reference");
23603 SWIG_fail;
23604 }
23605 {
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 {
23608 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*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_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23623 PyObject *resultobj;
23624 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23625 wxDateSpan *arg2 = 0 ;
23626 wxDateSpan *result;
23627 PyObject * obj0 = 0 ;
23628 PyObject * obj1 = 0 ;
23629 char *kwnames[] = {
23630 (char *) "self",(char *) "other", NULL
23631 };
23632
23633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23636 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23637 SWIG_POINTER_EXCEPTION | 0)) == -1)
23638 SWIG_fail;
23639 if (arg2 == NULL) {
23640 PyErr_SetString(PyExc_TypeError,"null reference");
23641 SWIG_fail;
23642 }
23643 {
23644 PyThreadState* __tstate = wxPyBeginAllowThreads();
23645 {
23646 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23647 result = (wxDateSpan *) &_result_ref;
23648 }
23649
23650 wxPyEndAllowThreads(__tstate);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 }
23653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23654 return resultobj;
23655 fail:
23656 return NULL;
23657 }
23658
23659
23660 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
23661 PyObject *resultobj;
23662 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23663 wxDateSpan *result;
23664 PyObject * obj0 = 0 ;
23665 char *kwnames[] = {
23666 (char *) "self", NULL
23667 };
23668
23669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23672 {
23673 PyThreadState* __tstate = wxPyBeginAllowThreads();
23674 {
23675 wxDateSpan &_result_ref = (arg1)->Neg();
23676 result = (wxDateSpan *) &_result_ref;
23677 }
23678
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23683 return resultobj;
23684 fail:
23685 return NULL;
23686 }
23687
23688
23689 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
23690 PyObject *resultobj;
23691 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23692 int arg2 ;
23693 wxDateSpan *result;
23694 PyObject * obj0 = 0 ;
23695 PyObject * obj1 = 0 ;
23696 char *kwnames[] = {
23697 (char *) "self",(char *) "factor", NULL
23698 };
23699
23700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23703 arg2 = (int)SWIG_As_int(obj1);
23704 if (PyErr_Occurred()) SWIG_fail;
23705 {
23706 PyThreadState* __tstate = wxPyBeginAllowThreads();
23707 {
23708 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23709 result = (wxDateSpan *) &_result_ref;
23710 }
23711
23712 wxPyEndAllowThreads(__tstate);
23713 if (PyErr_Occurred()) SWIG_fail;
23714 }
23715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23716 return resultobj;
23717 fail:
23718 return NULL;
23719 }
23720
23721
23722 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
23723 PyObject *resultobj;
23724 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23725 wxDateSpan *arg2 = 0 ;
23726 wxDateSpan *result;
23727 PyObject * obj0 = 0 ;
23728 PyObject * obj1 = 0 ;
23729 char *kwnames[] = {
23730 (char *) "self",(char *) "other", NULL
23731 };
23732
23733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23735 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23736 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23737 SWIG_POINTER_EXCEPTION | 0)) == -1)
23738 SWIG_fail;
23739 if (arg2 == NULL) {
23740 PyErr_SetString(PyExc_TypeError,"null reference");
23741 SWIG_fail;
23742 }
23743 {
23744 PyThreadState* __tstate = wxPyBeginAllowThreads();
23745 {
23746 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23747 result = (wxDateSpan *) &_result_ref;
23748 }
23749
23750 wxPyEndAllowThreads(__tstate);
23751 if (PyErr_Occurred()) SWIG_fail;
23752 }
23753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23754 return resultobj;
23755 fail:
23756 return NULL;
23757 }
23758
23759
23760 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
23761 PyObject *resultobj;
23762 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23763 wxDateSpan *arg2 = 0 ;
23764 wxDateSpan *result;
23765 PyObject * obj0 = 0 ;
23766 PyObject * obj1 = 0 ;
23767 char *kwnames[] = {
23768 (char *) "self",(char *) "other", NULL
23769 };
23770
23771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23773 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23775 SWIG_POINTER_EXCEPTION | 0)) == -1)
23776 SWIG_fail;
23777 if (arg2 == NULL) {
23778 PyErr_SetString(PyExc_TypeError,"null reference");
23779 SWIG_fail;
23780 }
23781 {
23782 PyThreadState* __tstate = wxPyBeginAllowThreads();
23783 {
23784 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23785 result = (wxDateSpan *) &_result_ref;
23786 }
23787
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
23791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23792 return resultobj;
23793 fail:
23794 return NULL;
23795 }
23796
23797
23798 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
23799 PyObject *resultobj;
23800 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23801 wxDateSpan *result;
23802 PyObject * obj0 = 0 ;
23803 char *kwnames[] = {
23804 (char *) "self", NULL
23805 };
23806
23807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23810 {
23811 PyThreadState* __tstate = wxPyBeginAllowThreads();
23812 {
23813 wxDateSpan &_result_ref = (arg1)->operator -();
23814 result = (wxDateSpan *) &_result_ref;
23815 }
23816
23817 wxPyEndAllowThreads(__tstate);
23818 if (PyErr_Occurred()) SWIG_fail;
23819 }
23820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23821 return resultobj;
23822 fail:
23823 return NULL;
23824 }
23825
23826
23827 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
23828 PyObject *resultobj;
23829 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23830 int arg2 ;
23831 wxDateSpan *result;
23832 PyObject * obj0 = 0 ;
23833 PyObject * obj1 = 0 ;
23834 char *kwnames[] = {
23835 (char *) "self",(char *) "factor", NULL
23836 };
23837
23838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23840 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23841 arg2 = (int)SWIG_As_int(obj1);
23842 if (PyErr_Occurred()) SWIG_fail;
23843 {
23844 PyThreadState* __tstate = wxPyBeginAllowThreads();
23845 {
23846 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23847 result = (wxDateSpan *) &_result_ref;
23848 }
23849
23850 wxPyEndAllowThreads(__tstate);
23851 if (PyErr_Occurred()) SWIG_fail;
23852 }
23853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23854 return resultobj;
23855 fail:
23856 return NULL;
23857 }
23858
23859
23860 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
23861 PyObject *resultobj;
23862 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23863 wxDateSpan *arg2 = 0 ;
23864 wxDateSpan result;
23865 PyObject * obj0 = 0 ;
23866 PyObject * obj1 = 0 ;
23867 char *kwnames[] = {
23868 (char *) "self",(char *) "other", NULL
23869 };
23870
23871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23875 SWIG_POINTER_EXCEPTION | 0)) == -1)
23876 SWIG_fail;
23877 if (arg2 == NULL) {
23878 PyErr_SetString(PyExc_TypeError,"null reference");
23879 SWIG_fail;
23880 }
23881 {
23882 PyThreadState* __tstate = wxPyBeginAllowThreads();
23883 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23884
23885 wxPyEndAllowThreads(__tstate);
23886 if (PyErr_Occurred()) SWIG_fail;
23887 }
23888 {
23889 wxDateSpan * resultptr;
23890 resultptr = new wxDateSpan((wxDateSpan &) result);
23891 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23892 }
23893 return resultobj;
23894 fail:
23895 return NULL;
23896 }
23897
23898
23899 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
23900 PyObject *resultobj;
23901 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23902 wxDateSpan *arg2 = 0 ;
23903 wxDateSpan result;
23904 PyObject * obj0 = 0 ;
23905 PyObject * obj1 = 0 ;
23906 char *kwnames[] = {
23907 (char *) "self",(char *) "other", NULL
23908 };
23909
23910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23913 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23914 SWIG_POINTER_EXCEPTION | 0)) == -1)
23915 SWIG_fail;
23916 if (arg2 == NULL) {
23917 PyErr_SetString(PyExc_TypeError,"null reference");
23918 SWIG_fail;
23919 }
23920 {
23921 PyThreadState* __tstate = wxPyBeginAllowThreads();
23922 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23923
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 {
23928 wxDateSpan * resultptr;
23929 resultptr = new wxDateSpan((wxDateSpan &) result);
23930 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23931 }
23932 return resultobj;
23933 fail:
23934 return NULL;
23935 }
23936
23937
23938 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
23939 PyObject *resultobj;
23940 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23941 int arg2 ;
23942 wxDateSpan result;
23943 PyObject * obj0 = 0 ;
23944 PyObject * obj1 = 0 ;
23945 char *kwnames[] = {
23946 (char *) "self",(char *) "n", NULL
23947 };
23948
23949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23952 arg2 = (int)SWIG_As_int(obj1);
23953 if (PyErr_Occurred()) SWIG_fail;
23954 {
23955 PyThreadState* __tstate = wxPyBeginAllowThreads();
23956 result = wxDateSpan___mul__(arg1,arg2);
23957
23958 wxPyEndAllowThreads(__tstate);
23959 if (PyErr_Occurred()) SWIG_fail;
23960 }
23961 {
23962 wxDateSpan * resultptr;
23963 resultptr = new wxDateSpan((wxDateSpan &) result);
23964 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23965 }
23966 return resultobj;
23967 fail:
23968 return NULL;
23969 }
23970
23971
23972 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
23973 PyObject *resultobj;
23974 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23975 int arg2 ;
23976 wxDateSpan result;
23977 PyObject * obj0 = 0 ;
23978 PyObject * obj1 = 0 ;
23979 char *kwnames[] = {
23980 (char *) "self",(char *) "n", NULL
23981 };
23982
23983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23986 arg2 = (int)SWIG_As_int(obj1);
23987 if (PyErr_Occurred()) SWIG_fail;
23988 {
23989 PyThreadState* __tstate = wxPyBeginAllowThreads();
23990 result = wxDateSpan___rmul__(arg1,arg2);
23991
23992 wxPyEndAllowThreads(__tstate);
23993 if (PyErr_Occurred()) SWIG_fail;
23994 }
23995 {
23996 wxDateSpan * resultptr;
23997 resultptr = new wxDateSpan((wxDateSpan &) result);
23998 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23999 }
24000 return resultobj;
24001 fail:
24002 return NULL;
24003 }
24004
24005
24006 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24007 PyObject *resultobj;
24008 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24009 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24010 bool result;
24011 PyObject * obj0 = 0 ;
24012 PyObject * obj1 = 0 ;
24013 char *kwnames[] = {
24014 (char *) "self",(char *) "other", NULL
24015 };
24016
24017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
24018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24020 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24022 {
24023 PyThreadState* __tstate = wxPyBeginAllowThreads();
24024 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
24025
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 {
24030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24031 }
24032 return resultobj;
24033 fail:
24034 return NULL;
24035 }
24036
24037
24038 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24039 PyObject *resultobj;
24040 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24041 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24042 bool result;
24043 PyObject * obj0 = 0 ;
24044 PyObject * obj1 = 0 ;
24045 char *kwnames[] = {
24046 (char *) "self",(char *) "other", NULL
24047 };
24048
24049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
24050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24052 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
24057
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 {
24062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24063 }
24064 return resultobj;
24065 fail:
24066 return NULL;
24067 }
24068
24069
24070 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
24071 PyObject *obj;
24072 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24073 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
24074 Py_INCREF(obj);
24075 return Py_BuildValue((char *)"");
24076 }
24077 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
24078 PyObject *resultobj;
24079 long result;
24080 char *kwnames[] = {
24081 NULL
24082 };
24083
24084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
24085 {
24086 PyThreadState* __tstate = wxPyBeginAllowThreads();
24087 result = (long)wxGetLocalTime();
24088
24089 wxPyEndAllowThreads(__tstate);
24090 if (PyErr_Occurred()) SWIG_fail;
24091 }
24092 resultobj = SWIG_From_long((long)result);
24093 return resultobj;
24094 fail:
24095 return NULL;
24096 }
24097
24098
24099 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
24100 PyObject *resultobj;
24101 long result;
24102 char *kwnames[] = {
24103 NULL
24104 };
24105
24106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 result = (long)wxGetUTCTime();
24110
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 resultobj = SWIG_From_long((long)result);
24115 return resultobj;
24116 fail:
24117 return NULL;
24118 }
24119
24120
24121 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
24122 PyObject *resultobj;
24123 long result;
24124 char *kwnames[] = {
24125 NULL
24126 };
24127
24128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
24129 {
24130 PyThreadState* __tstate = wxPyBeginAllowThreads();
24131 result = (long)wxGetCurrentTime();
24132
24133 wxPyEndAllowThreads(__tstate);
24134 if (PyErr_Occurred()) SWIG_fail;
24135 }
24136 resultobj = SWIG_From_long((long)result);
24137 return resultobj;
24138 fail:
24139 return NULL;
24140 }
24141
24142
24143 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
24144 PyObject *resultobj;
24145 wxLongLong result;
24146 char *kwnames[] = {
24147 NULL
24148 };
24149
24150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24151 {
24152 PyThreadState* __tstate = wxPyBeginAllowThreads();
24153 result = wxGetLocalTimeMillis();
24154
24155 wxPyEndAllowThreads(__tstate);
24156 if (PyErr_Occurred()) SWIG_fail;
24157 }
24158 {
24159 PyObject *hi, *lo, *shifter, *shifted;
24160 hi = PyLong_FromLong( (&result)->GetHi() );
24161 lo = PyLong_FromLong( (&result)->GetLo() );
24162 shifter = PyLong_FromLong(32);
24163 shifted = PyNumber_Lshift(hi, shifter);
24164 resultobj = PyNumber_Or(shifted, lo);
24165 Py_DECREF(hi);
24166 Py_DECREF(lo);
24167 Py_DECREF(shifter);
24168 Py_DECREF(shifted);
24169 }
24170 return resultobj;
24171 fail:
24172 return NULL;
24173 }
24174
24175
24176 static int _wrap_DefaultDateTime_set(PyObject *) {
24177 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24178 return 1;
24179 }
24180
24181
24182 static PyObject *_wrap_DefaultDateTime_get() {
24183 PyObject *pyobj;
24184
24185 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24186 return pyobj;
24187 }
24188
24189
24190 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj;
24192 int arg1 ;
24193 wxDataFormat *result;
24194 PyObject * obj0 = 0 ;
24195 char *kwnames[] = {
24196 (char *) "type", NULL
24197 };
24198
24199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
24200 arg1 = (int)SWIG_As_int(obj0);
24201 if (PyErr_Occurred()) SWIG_fail;
24202 {
24203 PyThreadState* __tstate = wxPyBeginAllowThreads();
24204 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24205
24206 wxPyEndAllowThreads(__tstate);
24207 if (PyErr_Occurred()) SWIG_fail;
24208 }
24209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24210 return resultobj;
24211 fail:
24212 return NULL;
24213 }
24214
24215
24216 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24217 PyObject *resultobj;
24218 wxString *arg1 = 0 ;
24219 wxDataFormat *result;
24220 bool temp1 = False ;
24221 PyObject * obj0 = 0 ;
24222 char *kwnames[] = {
24223 (char *) "format", NULL
24224 };
24225
24226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24227 {
24228 arg1 = wxString_in_helper(obj0);
24229 if (arg1 == NULL) SWIG_fail;
24230 temp1 = True;
24231 }
24232 {
24233 PyThreadState* __tstate = wxPyBeginAllowThreads();
24234 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24235
24236 wxPyEndAllowThreads(__tstate);
24237 if (PyErr_Occurred()) SWIG_fail;
24238 }
24239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24240 {
24241 if (temp1)
24242 delete arg1;
24243 }
24244 return resultobj;
24245 fail:
24246 {
24247 if (temp1)
24248 delete arg1;
24249 }
24250 return NULL;
24251 }
24252
24253
24254 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24255 PyObject *resultobj;
24256 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24257 PyObject * obj0 = 0 ;
24258 char *kwnames[] = {
24259 (char *) "self", NULL
24260 };
24261
24262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24265 {
24266 PyThreadState* __tstate = wxPyBeginAllowThreads();
24267 delete arg1;
24268
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 Py_INCREF(Py_None); resultobj = Py_None;
24273 return resultobj;
24274 fail:
24275 return NULL;
24276 }
24277
24278
24279 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
24280 PyObject *resultobj;
24281 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24282 int arg2 ;
24283 bool result;
24284 PyObject * obj0 = 0 ;
24285 PyObject * obj1 = 0 ;
24286
24287 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24290 arg2 = (int)SWIG_As_int(obj1);
24291 if (PyErr_Occurred()) SWIG_fail;
24292 {
24293 PyThreadState* __tstate = wxPyBeginAllowThreads();
24294 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24295
24296 wxPyEndAllowThreads(__tstate);
24297 if (PyErr_Occurred()) SWIG_fail;
24298 }
24299 {
24300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24301 }
24302 return resultobj;
24303 fail:
24304 return NULL;
24305 }
24306
24307
24308 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
24309 PyObject *resultobj;
24310 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24311 int arg2 ;
24312 bool result;
24313 PyObject * obj0 = 0 ;
24314 PyObject * obj1 = 0 ;
24315
24316 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24319 arg2 = (int)SWIG_As_int(obj1);
24320 if (PyErr_Occurred()) SWIG_fail;
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )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 *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
24338 PyObject *resultobj;
24339 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24340 wxDataFormat *arg2 = 0 ;
24341 bool result;
24342 PyObject * obj0 = 0 ;
24343 PyObject * obj1 = 0 ;
24344
24345 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24349 SWIG_POINTER_EXCEPTION | 0)) == -1)
24350 SWIG_fail;
24351 if (arg2 == NULL) {
24352 PyErr_SetString(PyExc_TypeError,"null reference");
24353 SWIG_fail;
24354 }
24355 {
24356 PyThreadState* __tstate = wxPyBeginAllowThreads();
24357 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24358
24359 wxPyEndAllowThreads(__tstate);
24360 if (PyErr_Occurred()) SWIG_fail;
24361 }
24362 {
24363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24364 }
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24372 int argc;
24373 PyObject *argv[3];
24374 int ii;
24375
24376 argc = PyObject_Length(args);
24377 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24378 argv[ii] = PyTuple_GetItem(args,ii);
24379 }
24380 if (argc == 2) {
24381 int _v;
24382 {
24383 void *ptr;
24384 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24385 _v = 0;
24386 PyErr_Clear();
24387 } else {
24388 _v = 1;
24389 }
24390 }
24391 if (_v) {
24392 {
24393 void *ptr;
24394 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24395 _v = 0;
24396 PyErr_Clear();
24397 } else {
24398 _v = 1;
24399 }
24400 }
24401 if (_v) {
24402 return _wrap_DataFormat___eq____SWIG_1(self,args);
24403 }
24404 }
24405 }
24406 if (argc == 2) {
24407 int _v;
24408 {
24409 void *ptr;
24410 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24411 _v = 0;
24412 PyErr_Clear();
24413 } else {
24414 _v = 1;
24415 }
24416 }
24417 if (_v) {
24418 _v = SWIG_Check_int(argv[1]);
24419 if (_v) {
24420 return _wrap_DataFormat___eq____SWIG_0(self,args);
24421 }
24422 }
24423 }
24424
24425 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24426 return NULL;
24427 }
24428
24429
24430 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
24431 PyObject *resultobj;
24432 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24433 wxDataFormat *arg2 = 0 ;
24434 bool result;
24435 PyObject * obj0 = 0 ;
24436 PyObject * obj1 = 0 ;
24437
24438 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24442 SWIG_POINTER_EXCEPTION | 0)) == -1)
24443 SWIG_fail;
24444 if (arg2 == NULL) {
24445 PyErr_SetString(PyExc_TypeError,"null reference");
24446 SWIG_fail;
24447 }
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24451
24452 wxPyEndAllowThreads(__tstate);
24453 if (PyErr_Occurred()) SWIG_fail;
24454 }
24455 {
24456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24457 }
24458 return resultobj;
24459 fail:
24460 return NULL;
24461 }
24462
24463
24464 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24465 int argc;
24466 PyObject *argv[3];
24467 int ii;
24468
24469 argc = PyObject_Length(args);
24470 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24471 argv[ii] = PyTuple_GetItem(args,ii);
24472 }
24473 if (argc == 2) {
24474 int _v;
24475 {
24476 void *ptr;
24477 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24478 _v = 0;
24479 PyErr_Clear();
24480 } else {
24481 _v = 1;
24482 }
24483 }
24484 if (_v) {
24485 {
24486 void *ptr;
24487 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24488 _v = 0;
24489 PyErr_Clear();
24490 } else {
24491 _v = 1;
24492 }
24493 }
24494 if (_v) {
24495 return _wrap_DataFormat___ne____SWIG_1(self,args);
24496 }
24497 }
24498 }
24499 if (argc == 2) {
24500 int _v;
24501 {
24502 void *ptr;
24503 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24504 _v = 0;
24505 PyErr_Clear();
24506 } else {
24507 _v = 1;
24508 }
24509 }
24510 if (_v) {
24511 _v = SWIG_Check_int(argv[1]);
24512 if (_v) {
24513 return _wrap_DataFormat___ne____SWIG_0(self,args);
24514 }
24515 }
24516 }
24517
24518 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24519 return NULL;
24520 }
24521
24522
24523 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
24524 PyObject *resultobj;
24525 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24526 int arg2 ;
24527 PyObject * obj0 = 0 ;
24528 PyObject * obj1 = 0 ;
24529 char *kwnames[] = {
24530 (char *) "self",(char *) "format", NULL
24531 };
24532
24533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24536 arg2 = (int)SWIG_As_int(obj1);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 (arg1)->SetType((wxDataFormatId )arg2);
24541
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 Py_INCREF(Py_None); resultobj = Py_None;
24546 return resultobj;
24547 fail:
24548 return NULL;
24549 }
24550
24551
24552 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
24553 PyObject *resultobj;
24554 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24555 int result;
24556 PyObject * obj0 = 0 ;
24557 char *kwnames[] = {
24558 (char *) "self", NULL
24559 };
24560
24561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24564 {
24565 PyThreadState* __tstate = wxPyBeginAllowThreads();
24566 result = (int)((wxDataFormat const *)arg1)->GetType();
24567
24568 wxPyEndAllowThreads(__tstate);
24569 if (PyErr_Occurred()) SWIG_fail;
24570 }
24571 resultobj = SWIG_From_int((int)result);
24572 return resultobj;
24573 fail:
24574 return NULL;
24575 }
24576
24577
24578 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24579 PyObject *resultobj;
24580 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24581 wxString result;
24582 PyObject * obj0 = 0 ;
24583 char *kwnames[] = {
24584 (char *) "self", NULL
24585 };
24586
24587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = ((wxDataFormat const *)arg1)->GetId();
24593
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 {
24598 #if wxUSE_UNICODE
24599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24600 #else
24601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24602 #endif
24603 }
24604 return resultobj;
24605 fail:
24606 return NULL;
24607 }
24608
24609
24610 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj;
24612 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24613 wxString *arg2 = 0 ;
24614 bool temp2 = False ;
24615 PyObject * obj0 = 0 ;
24616 PyObject * obj1 = 0 ;
24617 char *kwnames[] = {
24618 (char *) "self",(char *) "format", NULL
24619 };
24620
24621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24624 {
24625 arg2 = wxString_in_helper(obj1);
24626 if (arg2 == NULL) SWIG_fail;
24627 temp2 = True;
24628 }
24629 {
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
24631 (arg1)->SetId((wxString const &)*arg2);
24632
24633 wxPyEndAllowThreads(__tstate);
24634 if (PyErr_Occurred()) SWIG_fail;
24635 }
24636 Py_INCREF(Py_None); resultobj = Py_None;
24637 {
24638 if (temp2)
24639 delete arg2;
24640 }
24641 return resultobj;
24642 fail:
24643 {
24644 if (temp2)
24645 delete arg2;
24646 }
24647 return NULL;
24648 }
24649
24650
24651 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
24652 PyObject *obj;
24653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24654 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24655 Py_INCREF(obj);
24656 return Py_BuildValue((char *)"");
24657 }
24658 static int _wrap_FormatInvalid_set(PyObject *) {
24659 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24660 return 1;
24661 }
24662
24663
24664 static PyObject *_wrap_FormatInvalid_get() {
24665 PyObject *pyobj;
24666
24667 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24668 return pyobj;
24669 }
24670
24671
24672 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24673 PyObject *resultobj;
24674 wxDataObject *arg1 = (wxDataObject *) 0 ;
24675 PyObject * obj0 = 0 ;
24676 char *kwnames[] = {
24677 (char *) "self", NULL
24678 };
24679
24680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 delete arg1;
24686
24687 wxPyEndAllowThreads(__tstate);
24688 if (PyErr_Occurred()) SWIG_fail;
24689 }
24690 Py_INCREF(Py_None); resultobj = Py_None;
24691 return resultobj;
24692 fail:
24693 return NULL;
24694 }
24695
24696
24697 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24698 PyObject *resultobj;
24699 wxDataObject *arg1 = (wxDataObject *) 0 ;
24700 int arg2 = (int) wxDataObject::Get ;
24701 SwigValueWrapper< wxDataFormat > result;
24702 PyObject * obj0 = 0 ;
24703 PyObject * obj1 = 0 ;
24704 char *kwnames[] = {
24705 (char *) "self",(char *) "dir", NULL
24706 };
24707
24708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24711 if (obj1) {
24712 arg2 = (int)SWIG_As_int(obj1);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 {
24716 PyThreadState* __tstate = wxPyBeginAllowThreads();
24717 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24718
24719 wxPyEndAllowThreads(__tstate);
24720 if (PyErr_Occurred()) SWIG_fail;
24721 }
24722 {
24723 wxDataFormat * resultptr;
24724 resultptr = new wxDataFormat((wxDataFormat &) result);
24725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24726 }
24727 return resultobj;
24728 fail:
24729 return NULL;
24730 }
24731
24732
24733 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj;
24735 wxDataObject *arg1 = (wxDataObject *) 0 ;
24736 int arg2 = (int) wxDataObject::Get ;
24737 size_t result;
24738 PyObject * obj0 = 0 ;
24739 PyObject * obj1 = 0 ;
24740 char *kwnames[] = {
24741 (char *) "self",(char *) "dir", NULL
24742 };
24743
24744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24747 if (obj1) {
24748 arg2 = (int)SWIG_As_int(obj1);
24749 if (PyErr_Occurred()) SWIG_fail;
24750 }
24751 {
24752 PyThreadState* __tstate = wxPyBeginAllowThreads();
24753 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24754
24755 wxPyEndAllowThreads(__tstate);
24756 if (PyErr_Occurred()) SWIG_fail;
24757 }
24758 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
24759 return resultobj;
24760 fail:
24761 return NULL;
24762 }
24763
24764
24765 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
24766 PyObject *resultobj;
24767 wxDataObject *arg1 = (wxDataObject *) 0 ;
24768 wxDataFormat *arg2 = 0 ;
24769 int arg3 = (int) wxDataObject::Get ;
24770 bool result;
24771 PyObject * obj0 = 0 ;
24772 PyObject * obj1 = 0 ;
24773 PyObject * obj2 = 0 ;
24774 char *kwnames[] = {
24775 (char *) "self",(char *) "format",(char *) "dir", NULL
24776 };
24777
24778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24782 SWIG_POINTER_EXCEPTION | 0)) == -1)
24783 SWIG_fail;
24784 if (arg2 == NULL) {
24785 PyErr_SetString(PyExc_TypeError,"null reference");
24786 SWIG_fail;
24787 }
24788 if (obj2) {
24789 arg3 = (int)SWIG_As_int(obj2);
24790 if (PyErr_Occurred()) SWIG_fail;
24791 }
24792 {
24793 PyThreadState* __tstate = wxPyBeginAllowThreads();
24794 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24795
24796 wxPyEndAllowThreads(__tstate);
24797 if (PyErr_Occurred()) SWIG_fail;
24798 }
24799 {
24800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24801 }
24802 return resultobj;
24803 fail:
24804 return NULL;
24805 }
24806
24807
24808 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
24809 PyObject *resultobj;
24810 wxDataObject *arg1 = (wxDataObject *) 0 ;
24811 wxDataFormat *arg2 = 0 ;
24812 size_t result;
24813 PyObject * obj0 = 0 ;
24814 PyObject * obj1 = 0 ;
24815 char *kwnames[] = {
24816 (char *) "self",(char *) "format", NULL
24817 };
24818
24819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24822 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24823 SWIG_POINTER_EXCEPTION | 0)) == -1)
24824 SWIG_fail;
24825 if (arg2 == NULL) {
24826 PyErr_SetString(PyExc_TypeError,"null reference");
24827 SWIG_fail;
24828 }
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24832
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
24837 return resultobj;
24838 fail:
24839 return NULL;
24840 }
24841
24842
24843 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
24844 PyObject *resultobj;
24845 wxDataObject *arg1 = (wxDataObject *) 0 ;
24846 int arg2 = (int) wxDataObject::Get ;
24847 PyObject *result;
24848 PyObject * obj0 = 0 ;
24849 PyObject * obj1 = 0 ;
24850 char *kwnames[] = {
24851 (char *) "self",(char *) "dir", NULL
24852 };
24853
24854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24857 if (obj1) {
24858 arg2 = (int)SWIG_As_int(obj1);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 }
24861 {
24862 PyThreadState* __tstate = wxPyBeginAllowThreads();
24863 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24864
24865 wxPyEndAllowThreads(__tstate);
24866 if (PyErr_Occurred()) SWIG_fail;
24867 }
24868 resultobj = result;
24869 return resultobj;
24870 fail:
24871 return NULL;
24872 }
24873
24874
24875 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
24876 PyObject *resultobj;
24877 wxDataObject *arg1 = (wxDataObject *) 0 ;
24878 wxDataFormat *arg2 = 0 ;
24879 PyObject *result;
24880 PyObject * obj0 = 0 ;
24881 PyObject * obj1 = 0 ;
24882 char *kwnames[] = {
24883 (char *) "self",(char *) "format", NULL
24884 };
24885
24886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24890 SWIG_POINTER_EXCEPTION | 0)) == -1)
24891 SWIG_fail;
24892 if (arg2 == NULL) {
24893 PyErr_SetString(PyExc_TypeError,"null reference");
24894 SWIG_fail;
24895 }
24896 {
24897 PyThreadState* __tstate = wxPyBeginAllowThreads();
24898 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24899
24900 wxPyEndAllowThreads(__tstate);
24901 if (PyErr_Occurred()) SWIG_fail;
24902 }
24903 resultobj = result;
24904 return resultobj;
24905 fail:
24906 return NULL;
24907 }
24908
24909
24910 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24911 PyObject *resultobj;
24912 wxDataObject *arg1 = (wxDataObject *) 0 ;
24913 wxDataFormat *arg2 = 0 ;
24914 PyObject *arg3 = (PyObject *) 0 ;
24915 bool result;
24916 PyObject * obj0 = 0 ;
24917 PyObject * obj1 = 0 ;
24918 PyObject * obj2 = 0 ;
24919 char *kwnames[] = {
24920 (char *) "self",(char *) "format",(char *) "data", NULL
24921 };
24922
24923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24927 SWIG_POINTER_EXCEPTION | 0)) == -1)
24928 SWIG_fail;
24929 if (arg2 == NULL) {
24930 PyErr_SetString(PyExc_TypeError,"null reference");
24931 SWIG_fail;
24932 }
24933 arg3 = obj2;
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24937
24938 wxPyEndAllowThreads(__tstate);
24939 if (PyErr_Occurred()) SWIG_fail;
24940 }
24941 {
24942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24943 }
24944 return resultobj;
24945 fail:
24946 return NULL;
24947 }
24948
24949
24950 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
24951 PyObject *obj;
24952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24953 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24954 Py_INCREF(obj);
24955 return Py_BuildValue((char *)"");
24956 }
24957 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
24958 PyObject *resultobj;
24959 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24960 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24961 wxDataObjectSimple *result;
24962 PyObject * obj0 = 0 ;
24963 char *kwnames[] = {
24964 (char *) "format", NULL
24965 };
24966
24967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24968 if (obj0) {
24969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24970 SWIG_POINTER_EXCEPTION | 0)) == -1)
24971 SWIG_fail;
24972 if (arg1 == NULL) {
24973 PyErr_SetString(PyExc_TypeError,"null reference");
24974 SWIG_fail;
24975 }
24976 }
24977 {
24978 PyThreadState* __tstate = wxPyBeginAllowThreads();
24979 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24980
24981 wxPyEndAllowThreads(__tstate);
24982 if (PyErr_Occurred()) SWIG_fail;
24983 }
24984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24985 return resultobj;
24986 fail:
24987 return NULL;
24988 }
24989
24990
24991 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24992 PyObject *resultobj;
24993 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24994 wxDataFormat *result;
24995 PyObject * obj0 = 0 ;
24996 char *kwnames[] = {
24997 (char *) "self", NULL
24998 };
24999
25000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
25001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 {
25006 wxDataFormat const &_result_ref = (arg1)->GetFormat();
25007 result = (wxDataFormat *) &_result_ref;
25008 }
25009
25010 wxPyEndAllowThreads(__tstate);
25011 if (PyErr_Occurred()) SWIG_fail;
25012 }
25013 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
25014 return resultobj;
25015 fail:
25016 return NULL;
25017 }
25018
25019
25020 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
25021 PyObject *resultobj;
25022 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25023 wxDataFormat *arg2 = 0 ;
25024 PyObject * obj0 = 0 ;
25025 PyObject * obj1 = 0 ;
25026 char *kwnames[] = {
25027 (char *) "self",(char *) "format", NULL
25028 };
25029
25030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
25031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25033 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25034 SWIG_POINTER_EXCEPTION | 0)) == -1)
25035 SWIG_fail;
25036 if (arg2 == NULL) {
25037 PyErr_SetString(PyExc_TypeError,"null reference");
25038 SWIG_fail;
25039 }
25040 {
25041 PyThreadState* __tstate = wxPyBeginAllowThreads();
25042 (arg1)->SetFormat((wxDataFormat const &)*arg2);
25043
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 Py_INCREF(Py_None); resultobj = Py_None;
25048 return resultobj;
25049 fail:
25050 return NULL;
25051 }
25052
25053
25054 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj;
25056 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25057 size_t result;
25058 PyObject * obj0 = 0 ;
25059 char *kwnames[] = {
25060 (char *) "self", NULL
25061 };
25062
25063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
25064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25066 {
25067 PyThreadState* __tstate = wxPyBeginAllowThreads();
25068 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
25069
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25074 return resultobj;
25075 fail:
25076 return NULL;
25077 }
25078
25079
25080 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj;
25082 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25083 PyObject *result;
25084 PyObject * obj0 = 0 ;
25085 char *kwnames[] = {
25086 (char *) "self", NULL
25087 };
25088
25089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
25090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25092 {
25093 PyThreadState* __tstate = wxPyBeginAllowThreads();
25094 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
25095
25096 wxPyEndAllowThreads(__tstate);
25097 if (PyErr_Occurred()) SWIG_fail;
25098 }
25099 resultobj = result;
25100 return resultobj;
25101 fail:
25102 return NULL;
25103 }
25104
25105
25106 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25107 PyObject *resultobj;
25108 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25109 PyObject *arg2 = (PyObject *) 0 ;
25110 bool result;
25111 PyObject * obj0 = 0 ;
25112 PyObject * obj1 = 0 ;
25113 char *kwnames[] = {
25114 (char *) "self",(char *) "data", NULL
25115 };
25116
25117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
25118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25120 arg2 = obj1;
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
25123 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
25124
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 {
25129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25130 }
25131 return resultobj;
25132 fail:
25133 return NULL;
25134 }
25135
25136
25137 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
25138 PyObject *obj;
25139 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25140 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25141 Py_INCREF(obj);
25142 return Py_BuildValue((char *)"");
25143 }
25144 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
25145 PyObject *resultobj;
25146 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25147 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25148 wxPyDataObjectSimple *result;
25149 PyObject * obj0 = 0 ;
25150 char *kwnames[] = {
25151 (char *) "format", NULL
25152 };
25153
25154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25155 if (obj0) {
25156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25157 SWIG_POINTER_EXCEPTION | 0)) == -1)
25158 SWIG_fail;
25159 if (arg1 == NULL) {
25160 PyErr_SetString(PyExc_TypeError,"null reference");
25161 SWIG_fail;
25162 }
25163 }
25164 {
25165 PyThreadState* __tstate = wxPyBeginAllowThreads();
25166 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25167
25168 wxPyEndAllowThreads(__tstate);
25169 if (PyErr_Occurred()) SWIG_fail;
25170 }
25171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25172 return resultobj;
25173 fail:
25174 return NULL;
25175 }
25176
25177
25178 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25179 PyObject *resultobj;
25180 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25181 PyObject *arg2 = (PyObject *) 0 ;
25182 PyObject *arg3 = (PyObject *) 0 ;
25183 PyObject * obj0 = 0 ;
25184 PyObject * obj1 = 0 ;
25185 PyObject * obj2 = 0 ;
25186 char *kwnames[] = {
25187 (char *) "self",(char *) "self",(char *) "_class", NULL
25188 };
25189
25190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25193 arg2 = obj1;
25194 arg3 = obj2;
25195 {
25196 PyThreadState* __tstate = wxPyBeginAllowThreads();
25197 (arg1)->_setCallbackInfo(arg2,arg3);
25198
25199 wxPyEndAllowThreads(__tstate);
25200 if (PyErr_Occurred()) SWIG_fail;
25201 }
25202 Py_INCREF(Py_None); resultobj = Py_None;
25203 return resultobj;
25204 fail:
25205 return NULL;
25206 }
25207
25208
25209 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
25210 PyObject *obj;
25211 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25212 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25213 Py_INCREF(obj);
25214 return Py_BuildValue((char *)"");
25215 }
25216 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
25217 PyObject *resultobj;
25218 wxDataObjectComposite *result;
25219 char *kwnames[] = {
25220 NULL
25221 };
25222
25223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25224 {
25225 PyThreadState* __tstate = wxPyBeginAllowThreads();
25226 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25227
25228 wxPyEndAllowThreads(__tstate);
25229 if (PyErr_Occurred()) SWIG_fail;
25230 }
25231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25232 return resultobj;
25233 fail:
25234 return NULL;
25235 }
25236
25237
25238 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
25239 PyObject *resultobj;
25240 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25241 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25242 bool arg3 = (bool) False ;
25243 PyObject * obj0 = 0 ;
25244 PyObject * obj1 = 0 ;
25245 PyObject * obj2 = 0 ;
25246 char *kwnames[] = {
25247 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25248 };
25249
25250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25254 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25255 if (obj2) {
25256 arg3 = (bool)SWIG_As_bool(obj2);
25257 if (PyErr_Occurred()) SWIG_fail;
25258 }
25259 {
25260 PyThreadState* __tstate = wxPyBeginAllowThreads();
25261 (arg1)->Add(arg2,arg3);
25262
25263 wxPyEndAllowThreads(__tstate);
25264 if (PyErr_Occurred()) SWIG_fail;
25265 }
25266 Py_INCREF(Py_None); resultobj = Py_None;
25267 return resultobj;
25268 fail:
25269 return NULL;
25270 }
25271
25272
25273 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
25274 PyObject *obj;
25275 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25276 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25277 Py_INCREF(obj);
25278 return Py_BuildValue((char *)"");
25279 }
25280 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25281 PyObject *resultobj;
25282 wxString const &arg1_defvalue = wxPyEmptyString ;
25283 wxString *arg1 = (wxString *) &arg1_defvalue ;
25284 wxTextDataObject *result;
25285 bool temp1 = False ;
25286 PyObject * obj0 = 0 ;
25287 char *kwnames[] = {
25288 (char *) "text", NULL
25289 };
25290
25291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25292 if (obj0) {
25293 {
25294 arg1 = wxString_in_helper(obj0);
25295 if (arg1 == NULL) SWIG_fail;
25296 temp1 = True;
25297 }
25298 }
25299 {
25300 PyThreadState* __tstate = wxPyBeginAllowThreads();
25301 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25302
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25307 {
25308 if (temp1)
25309 delete arg1;
25310 }
25311 return resultobj;
25312 fail:
25313 {
25314 if (temp1)
25315 delete arg1;
25316 }
25317 return NULL;
25318 }
25319
25320
25321 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
25322 PyObject *resultobj;
25323 wxTextDataObject *arg1 = (wxTextDataObject *) 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:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25333 {
25334 PyThreadState* __tstate = wxPyBeginAllowThreads();
25335 result = (size_t)(arg1)->GetTextLength();
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_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj;
25349 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25350 wxString result;
25351 PyObject * obj0 = 0 ;
25352 char *kwnames[] = {
25353 (char *) "self", NULL
25354 };
25355
25356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25359 {
25360 PyThreadState* __tstate = wxPyBeginAllowThreads();
25361 result = (arg1)->GetText();
25362
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 {
25367 #if wxUSE_UNICODE
25368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25369 #else
25370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25371 #endif
25372 }
25373 return resultobj;
25374 fail:
25375 return NULL;
25376 }
25377
25378
25379 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj;
25381 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25382 wxString *arg2 = 0 ;
25383 bool temp2 = False ;
25384 PyObject * obj0 = 0 ;
25385 PyObject * obj1 = 0 ;
25386 char *kwnames[] = {
25387 (char *) "self",(char *) "text", NULL
25388 };
25389
25390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25393 {
25394 arg2 = wxString_in_helper(obj1);
25395 if (arg2 == NULL) SWIG_fail;
25396 temp2 = True;
25397 }
25398 {
25399 PyThreadState* __tstate = wxPyBeginAllowThreads();
25400 (arg1)->SetText((wxString const &)*arg2);
25401
25402 wxPyEndAllowThreads(__tstate);
25403 if (PyErr_Occurred()) SWIG_fail;
25404 }
25405 Py_INCREF(Py_None); resultobj = Py_None;
25406 {
25407 if (temp2)
25408 delete arg2;
25409 }
25410 return resultobj;
25411 fail:
25412 {
25413 if (temp2)
25414 delete arg2;
25415 }
25416 return NULL;
25417 }
25418
25419
25420 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
25421 PyObject *obj;
25422 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25423 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25424 Py_INCREF(obj);
25425 return Py_BuildValue((char *)"");
25426 }
25427 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25428 PyObject *resultobj;
25429 wxString const &arg1_defvalue = wxPyEmptyString ;
25430 wxString *arg1 = (wxString *) &arg1_defvalue ;
25431 wxPyTextDataObject *result;
25432 bool temp1 = False ;
25433 PyObject * obj0 = 0 ;
25434 char *kwnames[] = {
25435 (char *) "text", NULL
25436 };
25437
25438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25439 if (obj0) {
25440 {
25441 arg1 = wxString_in_helper(obj0);
25442 if (arg1 == NULL) SWIG_fail;
25443 temp1 = True;
25444 }
25445 }
25446 {
25447 PyThreadState* __tstate = wxPyBeginAllowThreads();
25448 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25449
25450 wxPyEndAllowThreads(__tstate);
25451 if (PyErr_Occurred()) SWIG_fail;
25452 }
25453 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25454 {
25455 if (temp1)
25456 delete arg1;
25457 }
25458 return resultobj;
25459 fail:
25460 {
25461 if (temp1)
25462 delete arg1;
25463 }
25464 return NULL;
25465 }
25466
25467
25468 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj;
25470 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25471 PyObject *arg2 = (PyObject *) 0 ;
25472 PyObject *arg3 = (PyObject *) 0 ;
25473 PyObject * obj0 = 0 ;
25474 PyObject * obj1 = 0 ;
25475 PyObject * obj2 = 0 ;
25476 char *kwnames[] = {
25477 (char *) "self",(char *) "self",(char *) "_class", NULL
25478 };
25479
25480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25483 arg2 = obj1;
25484 arg3 = obj2;
25485 {
25486 PyThreadState* __tstate = wxPyBeginAllowThreads();
25487 (arg1)->_setCallbackInfo(arg2,arg3);
25488
25489 wxPyEndAllowThreads(__tstate);
25490 if (PyErr_Occurred()) SWIG_fail;
25491 }
25492 Py_INCREF(Py_None); resultobj = Py_None;
25493 return resultobj;
25494 fail:
25495 return NULL;
25496 }
25497
25498
25499 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
25500 PyObject *obj;
25501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25502 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25503 Py_INCREF(obj);
25504 return Py_BuildValue((char *)"");
25505 }
25506 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25507 PyObject *resultobj;
25508 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25509 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25510 wxBitmapDataObject *result;
25511 PyObject * obj0 = 0 ;
25512 char *kwnames[] = {
25513 (char *) "bitmap", NULL
25514 };
25515
25516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25517 if (obj0) {
25518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25519 SWIG_POINTER_EXCEPTION | 0)) == -1)
25520 SWIG_fail;
25521 if (arg1 == NULL) {
25522 PyErr_SetString(PyExc_TypeError,"null reference");
25523 SWIG_fail;
25524 }
25525 }
25526 {
25527 PyThreadState* __tstate = wxPyBeginAllowThreads();
25528 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25529
25530 wxPyEndAllowThreads(__tstate);
25531 if (PyErr_Occurred()) SWIG_fail;
25532 }
25533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25534 return resultobj;
25535 fail:
25536 return NULL;
25537 }
25538
25539
25540 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25541 PyObject *resultobj;
25542 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25543 wxBitmap result;
25544 PyObject * obj0 = 0 ;
25545 char *kwnames[] = {
25546 (char *) "self", NULL
25547 };
25548
25549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25552 {
25553 PyThreadState* __tstate = wxPyBeginAllowThreads();
25554 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25555
25556 wxPyEndAllowThreads(__tstate);
25557 if (PyErr_Occurred()) SWIG_fail;
25558 }
25559 {
25560 wxBitmap * resultptr;
25561 resultptr = new wxBitmap((wxBitmap &) result);
25562 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25563 }
25564 return resultobj;
25565 fail:
25566 return NULL;
25567 }
25568
25569
25570 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25571 PyObject *resultobj;
25572 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25573 wxBitmap *arg2 = 0 ;
25574 PyObject * obj0 = 0 ;
25575 PyObject * obj1 = 0 ;
25576 char *kwnames[] = {
25577 (char *) "self",(char *) "bitmap", NULL
25578 };
25579
25580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25583 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25584 SWIG_POINTER_EXCEPTION | 0)) == -1)
25585 SWIG_fail;
25586 if (arg2 == NULL) {
25587 PyErr_SetString(PyExc_TypeError,"null reference");
25588 SWIG_fail;
25589 }
25590 {
25591 PyThreadState* __tstate = wxPyBeginAllowThreads();
25592 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25593
25594 wxPyEndAllowThreads(__tstate);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 Py_INCREF(Py_None); resultobj = Py_None;
25598 return resultobj;
25599 fail:
25600 return NULL;
25601 }
25602
25603
25604 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
25605 PyObject *obj;
25606 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25607 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25608 Py_INCREF(obj);
25609 return Py_BuildValue((char *)"");
25610 }
25611 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25612 PyObject *resultobj;
25613 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25614 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25615 wxPyBitmapDataObject *result;
25616 PyObject * obj0 = 0 ;
25617 char *kwnames[] = {
25618 (char *) "bitmap", NULL
25619 };
25620
25621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25622 if (obj0) {
25623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25624 SWIG_POINTER_EXCEPTION | 0)) == -1)
25625 SWIG_fail;
25626 if (arg1 == NULL) {
25627 PyErr_SetString(PyExc_TypeError,"null reference");
25628 SWIG_fail;
25629 }
25630 }
25631 {
25632 PyThreadState* __tstate = wxPyBeginAllowThreads();
25633 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25634
25635 wxPyEndAllowThreads(__tstate);
25636 if (PyErr_Occurred()) SWIG_fail;
25637 }
25638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25639 return resultobj;
25640 fail:
25641 return NULL;
25642 }
25643
25644
25645 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25646 PyObject *resultobj;
25647 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25648 PyObject *arg2 = (PyObject *) 0 ;
25649 PyObject *arg3 = (PyObject *) 0 ;
25650 PyObject * obj0 = 0 ;
25651 PyObject * obj1 = 0 ;
25652 PyObject * obj2 = 0 ;
25653 char *kwnames[] = {
25654 (char *) "self",(char *) "self",(char *) "_class", NULL
25655 };
25656
25657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25660 arg2 = obj1;
25661 arg3 = obj2;
25662 {
25663 PyThreadState* __tstate = wxPyBeginAllowThreads();
25664 (arg1)->_setCallbackInfo(arg2,arg3);
25665
25666 wxPyEndAllowThreads(__tstate);
25667 if (PyErr_Occurred()) SWIG_fail;
25668 }
25669 Py_INCREF(Py_None); resultobj = Py_None;
25670 return resultobj;
25671 fail:
25672 return NULL;
25673 }
25674
25675
25676 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
25677 PyObject *obj;
25678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25679 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25680 Py_INCREF(obj);
25681 return Py_BuildValue((char *)"");
25682 }
25683 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25684 PyObject *resultobj;
25685 wxFileDataObject *result;
25686 char *kwnames[] = {
25687 NULL
25688 };
25689
25690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25691 {
25692 PyThreadState* __tstate = wxPyBeginAllowThreads();
25693 result = (wxFileDataObject *)new wxFileDataObject();
25694
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25699 return resultobj;
25700 fail:
25701 return NULL;
25702 }
25703
25704
25705 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
25706 PyObject *resultobj;
25707 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25708 wxArrayString *result;
25709 PyObject * obj0 = 0 ;
25710 char *kwnames[] = {
25711 (char *) "self", NULL
25712 };
25713
25714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25717 {
25718 PyThreadState* __tstate = wxPyBeginAllowThreads();
25719 {
25720 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25721 result = (wxArrayString *) &_result_ref;
25722 }
25723
25724 wxPyEndAllowThreads(__tstate);
25725 if (PyErr_Occurred()) SWIG_fail;
25726 }
25727 {
25728 resultobj = wxArrayString2PyList_helper(*result);
25729 }
25730 return resultobj;
25731 fail:
25732 return NULL;
25733 }
25734
25735
25736 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
25737 PyObject *resultobj;
25738 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25739 wxString *arg2 = 0 ;
25740 bool temp2 = False ;
25741 PyObject * obj0 = 0 ;
25742 PyObject * obj1 = 0 ;
25743 char *kwnames[] = {
25744 (char *) "self",(char *) "filename", NULL
25745 };
25746
25747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25750 {
25751 arg2 = wxString_in_helper(obj1);
25752 if (arg2 == NULL) SWIG_fail;
25753 temp2 = True;
25754 }
25755 {
25756 PyThreadState* __tstate = wxPyBeginAllowThreads();
25757 (arg1)->AddFile((wxString const &)*arg2);
25758
25759 wxPyEndAllowThreads(__tstate);
25760 if (PyErr_Occurred()) SWIG_fail;
25761 }
25762 Py_INCREF(Py_None); resultobj = Py_None;
25763 {
25764 if (temp2)
25765 delete arg2;
25766 }
25767 return resultobj;
25768 fail:
25769 {
25770 if (temp2)
25771 delete arg2;
25772 }
25773 return NULL;
25774 }
25775
25776
25777 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
25778 PyObject *obj;
25779 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25780 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25781 Py_INCREF(obj);
25782 return Py_BuildValue((char *)"");
25783 }
25784 static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25785 PyObject *resultobj;
25786 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25787 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25788 wxCustomDataObject *result;
25789 PyObject * obj0 = 0 ;
25790 char *kwnames[] = {
25791 (char *) "format", NULL
25792 };
25793
25794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25795 if (obj0) {
25796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25797 SWIG_POINTER_EXCEPTION | 0)) == -1)
25798 SWIG_fail;
25799 if (arg1 == NULL) {
25800 PyErr_SetString(PyExc_TypeError,"null reference");
25801 SWIG_fail;
25802 }
25803 }
25804 {
25805 PyThreadState* __tstate = wxPyBeginAllowThreads();
25806 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25807
25808 wxPyEndAllowThreads(__tstate);
25809 if (PyErr_Occurred()) SWIG_fail;
25810 }
25811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25812 return resultobj;
25813 fail:
25814 return NULL;
25815 }
25816
25817
25818 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25819 PyObject *resultobj;
25820 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25821 PyObject *arg2 = (PyObject *) 0 ;
25822 bool result;
25823 PyObject * obj0 = 0 ;
25824 PyObject * obj1 = 0 ;
25825 char *kwnames[] = {
25826 (char *) "self",(char *) "data", NULL
25827 };
25828
25829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25832 arg2 = obj1;
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25836
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 {
25841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25842 }
25843 return resultobj;
25844 fail:
25845 return NULL;
25846 }
25847
25848
25849 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
25850 PyObject *resultobj;
25851 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25852 size_t result;
25853 PyObject * obj0 = 0 ;
25854 char *kwnames[] = {
25855 (char *) "self", NULL
25856 };
25857
25858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25861 {
25862 PyThreadState* __tstate = wxPyBeginAllowThreads();
25863 result = (size_t)(arg1)->GetSize();
25864
25865 wxPyEndAllowThreads(__tstate);
25866 if (PyErr_Occurred()) SWIG_fail;
25867 }
25868 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25869 return resultobj;
25870 fail:
25871 return NULL;
25872 }
25873
25874
25875 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25876 PyObject *resultobj;
25877 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25878 PyObject *result;
25879 PyObject * obj0 = 0 ;
25880 char *kwnames[] = {
25881 (char *) "self", NULL
25882 };
25883
25884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25890
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 resultobj = result;
25895 return resultobj;
25896 fail:
25897 return NULL;
25898 }
25899
25900
25901 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
25902 PyObject *obj;
25903 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25904 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25905 Py_INCREF(obj);
25906 return Py_BuildValue((char *)"");
25907 }
25908 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25909 PyObject *resultobj;
25910 wxURLDataObject *result;
25911 char *kwnames[] = {
25912 NULL
25913 };
25914
25915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25916 {
25917 PyThreadState* __tstate = wxPyBeginAllowThreads();
25918 result = (wxURLDataObject *)new wxURLDataObject();
25919
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25924 return resultobj;
25925 fail:
25926 return NULL;
25927 }
25928
25929
25930 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25931 PyObject *resultobj;
25932 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25933 wxString result;
25934 PyObject * obj0 = 0 ;
25935 char *kwnames[] = {
25936 (char *) "self", NULL
25937 };
25938
25939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 result = (arg1)->GetURL();
25945
25946 wxPyEndAllowThreads(__tstate);
25947 if (PyErr_Occurred()) SWIG_fail;
25948 }
25949 {
25950 #if wxUSE_UNICODE
25951 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25952 #else
25953 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25954 #endif
25955 }
25956 return resultobj;
25957 fail:
25958 return NULL;
25959 }
25960
25961
25962 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25963 PyObject *resultobj;
25964 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25965 wxString *arg2 = 0 ;
25966 bool temp2 = False ;
25967 PyObject * obj0 = 0 ;
25968 PyObject * obj1 = 0 ;
25969 char *kwnames[] = {
25970 (char *) "self",(char *) "url", NULL
25971 };
25972
25973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25976 {
25977 arg2 = wxString_in_helper(obj1);
25978 if (arg2 == NULL) SWIG_fail;
25979 temp2 = True;
25980 }
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 (arg1)->SetURL((wxString const &)*arg2);
25984
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 Py_INCREF(Py_None); resultobj = Py_None;
25989 {
25990 if (temp2)
25991 delete arg2;
25992 }
25993 return resultobj;
25994 fail:
25995 {
25996 if (temp2)
25997 delete arg2;
25998 }
25999 return NULL;
26000 }
26001
26002
26003 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
26004 PyObject *obj;
26005 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26006 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
26007 Py_INCREF(obj);
26008 return Py_BuildValue((char *)"");
26009 }
26010 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26011 PyObject *resultobj;
26012 wxMetafileDataObject *result;
26013 char *kwnames[] = {
26014 NULL
26015 };
26016
26017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
26018 {
26019 PyThreadState* __tstate = wxPyBeginAllowThreads();
26020 result = (wxMetafileDataObject *)new wxMetafileDataObject();
26021
26022 wxPyEndAllowThreads(__tstate);
26023 if (PyErr_Occurred()) SWIG_fail;
26024 }
26025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
26026 return resultobj;
26027 fail:
26028 return NULL;
26029 }
26030
26031
26032 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
26033 PyObject *obj;
26034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26035 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
26036 Py_INCREF(obj);
26037 return Py_BuildValue((char *)"");
26038 }
26039 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
26040 PyObject *resultobj;
26041 int arg1 ;
26042 bool result;
26043 PyObject * obj0 = 0 ;
26044 char *kwnames[] = {
26045 (char *) "res", NULL
26046 };
26047
26048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
26049 arg1 = (int)SWIG_As_int(obj0);
26050 if (PyErr_Occurred()) SWIG_fail;
26051 {
26052 PyThreadState* __tstate = wxPyBeginAllowThreads();
26053 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
26054
26055 wxPyEndAllowThreads(__tstate);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 {
26059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26060 }
26061 return resultobj;
26062 fail:
26063 return NULL;
26064 }
26065
26066
26067 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26068 PyObject *resultobj;
26069 wxWindow *arg1 = (wxWindow *) 0 ;
26070 wxIcon const &arg2_defvalue = wxNullIcon ;
26071 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
26072 wxIcon const &arg3_defvalue = wxNullIcon ;
26073 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
26074 wxIcon const &arg4_defvalue = wxNullIcon ;
26075 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
26076 wxPyDropSource *result;
26077 PyObject * obj0 = 0 ;
26078 PyObject * obj1 = 0 ;
26079 PyObject * obj2 = 0 ;
26080 PyObject * obj3 = 0 ;
26081 char *kwnames[] = {
26082 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26083 };
26084
26085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26088 if (obj1) {
26089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
26090 SWIG_POINTER_EXCEPTION | 0)) == -1)
26091 SWIG_fail;
26092 if (arg2 == NULL) {
26093 PyErr_SetString(PyExc_TypeError,"null reference");
26094 SWIG_fail;
26095 }
26096 }
26097 if (obj2) {
26098 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
26099 SWIG_POINTER_EXCEPTION | 0)) == -1)
26100 SWIG_fail;
26101 if (arg3 == NULL) {
26102 PyErr_SetString(PyExc_TypeError,"null reference");
26103 SWIG_fail;
26104 }
26105 }
26106 if (obj3) {
26107 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
26108 SWIG_POINTER_EXCEPTION | 0)) == -1)
26109 SWIG_fail;
26110 if (arg4 == NULL) {
26111 PyErr_SetString(PyExc_TypeError,"null reference");
26112 SWIG_fail;
26113 }
26114 }
26115 {
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
26118
26119 wxPyEndAllowThreads(__tstate);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26123 return resultobj;
26124 fail:
26125 return NULL;
26126 }
26127
26128
26129 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26130 PyObject *resultobj;
26131 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26132 PyObject *arg2 = (PyObject *) 0 ;
26133 PyObject *arg3 = (PyObject *) 0 ;
26134 int arg4 ;
26135 PyObject * obj0 = 0 ;
26136 PyObject * obj1 = 0 ;
26137 PyObject * obj2 = 0 ;
26138 PyObject * obj3 = 0 ;
26139 char *kwnames[] = {
26140 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26141 };
26142
26143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26146 arg2 = obj1;
26147 arg3 = obj2;
26148 arg4 = (int)SWIG_As_int(obj3);
26149 if (PyErr_Occurred()) SWIG_fail;
26150 {
26151 PyThreadState* __tstate = wxPyBeginAllowThreads();
26152 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26153
26154 wxPyEndAllowThreads(__tstate);
26155 if (PyErr_Occurred()) SWIG_fail;
26156 }
26157 Py_INCREF(Py_None); resultobj = Py_None;
26158 return resultobj;
26159 fail:
26160 return NULL;
26161 }
26162
26163
26164 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26165 PyObject *resultobj;
26166 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26167 PyObject * obj0 = 0 ;
26168 char *kwnames[] = {
26169 (char *) "self", NULL
26170 };
26171
26172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26175 {
26176 PyThreadState* __tstate = wxPyBeginAllowThreads();
26177 delete arg1;
26178
26179 wxPyEndAllowThreads(__tstate);
26180 if (PyErr_Occurred()) SWIG_fail;
26181 }
26182 Py_INCREF(Py_None); resultobj = Py_None;
26183 return resultobj;
26184 fail:
26185 return NULL;
26186 }
26187
26188
26189 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
26190 PyObject *resultobj;
26191 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26192 wxDataObject *arg2 = 0 ;
26193 PyObject * obj0 = 0 ;
26194 PyObject * obj1 = 0 ;
26195 char *kwnames[] = {
26196 (char *) "self",(char *) "data", NULL
26197 };
26198
26199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26203 SWIG_POINTER_EXCEPTION | 0)) == -1)
26204 SWIG_fail;
26205 if (arg2 == NULL) {
26206 PyErr_SetString(PyExc_TypeError,"null reference");
26207 SWIG_fail;
26208 }
26209 {
26210 PyThreadState* __tstate = wxPyBeginAllowThreads();
26211 (arg1)->SetData(*arg2);
26212
26213 wxPyEndAllowThreads(__tstate);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 Py_INCREF(Py_None); resultobj = Py_None;
26217 return resultobj;
26218 fail:
26219 return NULL;
26220 }
26221
26222
26223 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26224 PyObject *resultobj;
26225 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26226 wxDataObject *result;
26227 PyObject * obj0 = 0 ;
26228 char *kwnames[] = {
26229 (char *) "self", NULL
26230 };
26231
26232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26235 {
26236 PyThreadState* __tstate = wxPyBeginAllowThreads();
26237 result = (wxDataObject *)(arg1)->GetDataObject();
26238
26239 wxPyEndAllowThreads(__tstate);
26240 if (PyErr_Occurred()) SWIG_fail;
26241 }
26242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26243 return resultobj;
26244 fail:
26245 return NULL;
26246 }
26247
26248
26249 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
26250 PyObject *resultobj;
26251 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26252 int arg2 ;
26253 wxCursor *arg3 = 0 ;
26254 PyObject * obj0 = 0 ;
26255 PyObject * obj1 = 0 ;
26256 PyObject * obj2 = 0 ;
26257 char *kwnames[] = {
26258 (char *) "self",(char *) "res",(char *) "cursor", NULL
26259 };
26260
26261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26264 arg2 = (int)SWIG_As_int(obj1);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26267 SWIG_POINTER_EXCEPTION | 0)) == -1)
26268 SWIG_fail;
26269 if (arg3 == NULL) {
26270 PyErr_SetString(PyExc_TypeError,"null reference");
26271 SWIG_fail;
26272 }
26273 {
26274 PyThreadState* __tstate = wxPyBeginAllowThreads();
26275 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26276
26277 wxPyEndAllowThreads(__tstate);
26278 if (PyErr_Occurred()) SWIG_fail;
26279 }
26280 Py_INCREF(Py_None); resultobj = Py_None;
26281 return resultobj;
26282 fail:
26283 return NULL;
26284 }
26285
26286
26287 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26288 PyObject *resultobj;
26289 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26290 int arg2 = (int) wxDrag_CopyOnly ;
26291 int result;
26292 PyObject * obj0 = 0 ;
26293 PyObject * obj1 = 0 ;
26294 char *kwnames[] = {
26295 (char *) "self",(char *) "flags", NULL
26296 };
26297
26298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26301 if (obj1) {
26302 arg2 = (int)SWIG_As_int(obj1);
26303 if (PyErr_Occurred()) SWIG_fail;
26304 }
26305 {
26306 PyThreadState* __tstate = wxPyBeginAllowThreads();
26307 result = (int)(arg1)->DoDragDrop(arg2);
26308
26309 wxPyEndAllowThreads(__tstate);
26310 if (PyErr_Occurred()) SWIG_fail;
26311 }
26312 resultobj = SWIG_From_int((int)result);
26313 return resultobj;
26314 fail:
26315 return NULL;
26316 }
26317
26318
26319 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
26320 PyObject *resultobj;
26321 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26322 int arg2 ;
26323 bool result;
26324 PyObject * obj0 = 0 ;
26325 PyObject * obj1 = 0 ;
26326 char *kwnames[] = {
26327 (char *) "self",(char *) "effect", NULL
26328 };
26329
26330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26333 arg2 = (int)SWIG_As_int(obj1);
26334 if (PyErr_Occurred()) SWIG_fail;
26335 {
26336 PyThreadState* __tstate = wxPyBeginAllowThreads();
26337 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26338
26339 wxPyEndAllowThreads(__tstate);
26340 if (PyErr_Occurred()) SWIG_fail;
26341 }
26342 {
26343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26344 }
26345 return resultobj;
26346 fail:
26347 return NULL;
26348 }
26349
26350
26351 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
26352 PyObject *obj;
26353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26354 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26355 Py_INCREF(obj);
26356 return Py_BuildValue((char *)"");
26357 }
26358 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26359 PyObject *resultobj;
26360 wxDataObject *arg1 = (wxDataObject *) NULL ;
26361 wxPyDropTarget *result;
26362 PyObject * obj0 = 0 ;
26363 char *kwnames[] = {
26364 (char *) "dataObject", NULL
26365 };
26366
26367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26368 if (obj0) {
26369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26370 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26371 }
26372 {
26373 PyThreadState* __tstate = wxPyBeginAllowThreads();
26374 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26375
26376 wxPyEndAllowThreads(__tstate);
26377 if (PyErr_Occurred()) SWIG_fail;
26378 }
26379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26380 return resultobj;
26381 fail:
26382 return NULL;
26383 }
26384
26385
26386 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26387 PyObject *resultobj;
26388 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26389 PyObject *arg2 = (PyObject *) 0 ;
26390 PyObject *arg3 = (PyObject *) 0 ;
26391 PyObject * obj0 = 0 ;
26392 PyObject * obj1 = 0 ;
26393 PyObject * obj2 = 0 ;
26394 char *kwnames[] = {
26395 (char *) "self",(char *) "self",(char *) "_class", NULL
26396 };
26397
26398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26401 arg2 = obj1;
26402 arg3 = obj2;
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 (arg1)->_setCallbackInfo(arg2,arg3);
26406
26407 wxPyEndAllowThreads(__tstate);
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 Py_INCREF(Py_None); resultobj = Py_None;
26411 return resultobj;
26412 fail:
26413 return NULL;
26414 }
26415
26416
26417 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26418 PyObject *resultobj;
26419 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26420 PyObject * obj0 = 0 ;
26421 char *kwnames[] = {
26422 (char *) "self", NULL
26423 };
26424
26425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26428 {
26429 PyThreadState* __tstate = wxPyBeginAllowThreads();
26430 delete arg1;
26431
26432 wxPyEndAllowThreads(__tstate);
26433 if (PyErr_Occurred()) SWIG_fail;
26434 }
26435 Py_INCREF(Py_None); resultobj = Py_None;
26436 return resultobj;
26437 fail:
26438 return NULL;
26439 }
26440
26441
26442 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26443 PyObject *resultobj;
26444 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26445 wxDataObject *result;
26446 PyObject * obj0 = 0 ;
26447 char *kwnames[] = {
26448 (char *) "self", NULL
26449 };
26450
26451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26454 {
26455 PyThreadState* __tstate = wxPyBeginAllowThreads();
26456 result = (wxDataObject *)(arg1)->GetDataObject();
26457
26458 wxPyEndAllowThreads(__tstate);
26459 if (PyErr_Occurred()) SWIG_fail;
26460 }
26461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26462 return resultobj;
26463 fail:
26464 return NULL;
26465 }
26466
26467
26468 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26469 PyObject *resultobj;
26470 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26471 wxDataObject *arg2 = (wxDataObject *) 0 ;
26472 PyObject * obj0 = 0 ;
26473 PyObject * obj1 = 0 ;
26474 char *kwnames[] = {
26475 (char *) "self",(char *) "dataObject", NULL
26476 };
26477
26478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26482 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26483 {
26484 PyThreadState* __tstate = wxPyBeginAllowThreads();
26485 (arg1)->SetDataObject(arg2);
26486
26487 wxPyEndAllowThreads(__tstate);
26488 if (PyErr_Occurred()) SWIG_fail;
26489 }
26490 Py_INCREF(Py_None); resultobj = Py_None;
26491 return resultobj;
26492 fail:
26493 return NULL;
26494 }
26495
26496
26497 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26498 PyObject *resultobj;
26499 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26500 int arg2 ;
26501 int arg3 ;
26502 int arg4 ;
26503 int result;
26504 PyObject * obj0 = 0 ;
26505 PyObject * obj1 = 0 ;
26506 PyObject * obj2 = 0 ;
26507 PyObject * obj3 = 0 ;
26508 char *kwnames[] = {
26509 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26510 };
26511
26512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26515 arg2 = (int)SWIG_As_int(obj1);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 arg3 = (int)SWIG_As_int(obj2);
26518 if (PyErr_Occurred()) SWIG_fail;
26519 arg4 = (int)SWIG_As_int(obj3);
26520 if (PyErr_Occurred()) SWIG_fail;
26521 {
26522 PyThreadState* __tstate = wxPyBeginAllowThreads();
26523 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26524
26525 wxPyEndAllowThreads(__tstate);
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
26528 resultobj = SWIG_From_int((int)result);
26529 return resultobj;
26530 fail:
26531 return NULL;
26532 }
26533
26534
26535 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26536 PyObject *resultobj;
26537 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26538 int arg2 ;
26539 int arg3 ;
26540 int arg4 ;
26541 int result;
26542 PyObject * obj0 = 0 ;
26543 PyObject * obj1 = 0 ;
26544 PyObject * obj2 = 0 ;
26545 PyObject * obj3 = 0 ;
26546 char *kwnames[] = {
26547 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26548 };
26549
26550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26553 arg2 = (int)SWIG_As_int(obj1);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 arg3 = (int)SWIG_As_int(obj2);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 arg4 = (int)SWIG_As_int(obj3);
26558 if (PyErr_Occurred()) SWIG_fail;
26559 {
26560 PyThreadState* __tstate = wxPyBeginAllowThreads();
26561 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26562
26563 wxPyEndAllowThreads(__tstate);
26564 if (PyErr_Occurred()) SWIG_fail;
26565 }
26566 resultobj = SWIG_From_int((int)result);
26567 return resultobj;
26568 fail:
26569 return NULL;
26570 }
26571
26572
26573 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26574 PyObject *resultobj;
26575 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26576 PyObject * obj0 = 0 ;
26577 char *kwnames[] = {
26578 (char *) "self", NULL
26579 };
26580
26581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26584 {
26585 PyThreadState* __tstate = wxPyBeginAllowThreads();
26586 (arg1)->base_OnLeave();
26587
26588 wxPyEndAllowThreads(__tstate);
26589 if (PyErr_Occurred()) SWIG_fail;
26590 }
26591 Py_INCREF(Py_None); resultobj = Py_None;
26592 return resultobj;
26593 fail:
26594 return NULL;
26595 }
26596
26597
26598 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26599 PyObject *resultobj;
26600 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26601 int arg2 ;
26602 int arg3 ;
26603 bool result;
26604 PyObject * obj0 = 0 ;
26605 PyObject * obj1 = 0 ;
26606 PyObject * obj2 = 0 ;
26607 char *kwnames[] = {
26608 (char *) "self",(char *) "x",(char *) "y", NULL
26609 };
26610
26611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26614 arg2 = (int)SWIG_As_int(obj1);
26615 if (PyErr_Occurred()) SWIG_fail;
26616 arg3 = (int)SWIG_As_int(obj2);
26617 if (PyErr_Occurred()) SWIG_fail;
26618 {
26619 PyThreadState* __tstate = wxPyBeginAllowThreads();
26620 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26621
26622 wxPyEndAllowThreads(__tstate);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 {
26626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26627 }
26628 return resultobj;
26629 fail:
26630 return NULL;
26631 }
26632
26633
26634 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26635 PyObject *resultobj;
26636 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26637 bool result;
26638 PyObject * obj0 = 0 ;
26639 char *kwnames[] = {
26640 (char *) "self", NULL
26641 };
26642
26643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26646 {
26647 PyThreadState* __tstate = wxPyBeginAllowThreads();
26648 result = (bool)(arg1)->GetData();
26649
26650 wxPyEndAllowThreads(__tstate);
26651 if (PyErr_Occurred()) SWIG_fail;
26652 }
26653 {
26654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26655 }
26656 return resultobj;
26657 fail:
26658 return NULL;
26659 }
26660
26661
26662 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
26663 PyObject *obj;
26664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26665 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26666 Py_INCREF(obj);
26667 return Py_BuildValue((char *)"");
26668 }
26669 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26670 PyObject *resultobj;
26671 wxPyTextDropTarget *result;
26672 char *kwnames[] = {
26673 NULL
26674 };
26675
26676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26677 {
26678 PyThreadState* __tstate = wxPyBeginAllowThreads();
26679 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26680
26681 wxPyEndAllowThreads(__tstate);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
26684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26685 return resultobj;
26686 fail:
26687 return NULL;
26688 }
26689
26690
26691 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26692 PyObject *resultobj;
26693 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26694 PyObject *arg2 = (PyObject *) 0 ;
26695 PyObject *arg3 = (PyObject *) 0 ;
26696 PyObject * obj0 = 0 ;
26697 PyObject * obj1 = 0 ;
26698 PyObject * obj2 = 0 ;
26699 char *kwnames[] = {
26700 (char *) "self",(char *) "self",(char *) "_class", NULL
26701 };
26702
26703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26706 arg2 = obj1;
26707 arg3 = obj2;
26708 {
26709 PyThreadState* __tstate = wxPyBeginAllowThreads();
26710 (arg1)->_setCallbackInfo(arg2,arg3);
26711
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 Py_INCREF(Py_None); resultobj = Py_None;
26716 return resultobj;
26717 fail:
26718 return NULL;
26719 }
26720
26721
26722 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26723 PyObject *resultobj;
26724 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26725 int arg2 ;
26726 int arg3 ;
26727 int arg4 ;
26728 int result;
26729 PyObject * obj0 = 0 ;
26730 PyObject * obj1 = 0 ;
26731 PyObject * obj2 = 0 ;
26732 PyObject * obj3 = 0 ;
26733 char *kwnames[] = {
26734 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26735 };
26736
26737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26740 arg2 = (int)SWIG_As_int(obj1);
26741 if (PyErr_Occurred()) SWIG_fail;
26742 arg3 = (int)SWIG_As_int(obj2);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 arg4 = (int)SWIG_As_int(obj3);
26745 if (PyErr_Occurred()) SWIG_fail;
26746 {
26747 PyThreadState* __tstate = wxPyBeginAllowThreads();
26748 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26749
26750 wxPyEndAllowThreads(__tstate);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 }
26753 resultobj = SWIG_From_int((int)result);
26754 return resultobj;
26755 fail:
26756 return NULL;
26757 }
26758
26759
26760 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26761 PyObject *resultobj;
26762 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26763 int arg2 ;
26764 int arg3 ;
26765 int arg4 ;
26766 int result;
26767 PyObject * obj0 = 0 ;
26768 PyObject * obj1 = 0 ;
26769 PyObject * obj2 = 0 ;
26770 PyObject * obj3 = 0 ;
26771 char *kwnames[] = {
26772 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26773 };
26774
26775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26778 arg2 = (int)SWIG_As_int(obj1);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 arg3 = (int)SWIG_As_int(obj2);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 arg4 = (int)SWIG_As_int(obj3);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 {
26785 PyThreadState* __tstate = wxPyBeginAllowThreads();
26786 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26787
26788 wxPyEndAllowThreads(__tstate);
26789 if (PyErr_Occurred()) SWIG_fail;
26790 }
26791 resultobj = SWIG_From_int((int)result);
26792 return resultobj;
26793 fail:
26794 return NULL;
26795 }
26796
26797
26798 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26799 PyObject *resultobj;
26800 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26801 PyObject * obj0 = 0 ;
26802 char *kwnames[] = {
26803 (char *) "self", NULL
26804 };
26805
26806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26809 {
26810 PyThreadState* __tstate = wxPyBeginAllowThreads();
26811 (arg1)->base_OnLeave();
26812
26813 wxPyEndAllowThreads(__tstate);
26814 if (PyErr_Occurred()) SWIG_fail;
26815 }
26816 Py_INCREF(Py_None); resultobj = Py_None;
26817 return resultobj;
26818 fail:
26819 return NULL;
26820 }
26821
26822
26823 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26824 PyObject *resultobj;
26825 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26826 int arg2 ;
26827 int arg3 ;
26828 bool result;
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 char *kwnames[] = {
26833 (char *) "self",(char *) "x",(char *) "y", NULL
26834 };
26835
26836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26839 arg2 = (int)SWIG_As_int(obj1);
26840 if (PyErr_Occurred()) SWIG_fail;
26841 arg3 = (int)SWIG_As_int(obj2);
26842 if (PyErr_Occurred()) SWIG_fail;
26843 {
26844 PyThreadState* __tstate = wxPyBeginAllowThreads();
26845 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26846
26847 wxPyEndAllowThreads(__tstate);
26848 if (PyErr_Occurred()) SWIG_fail;
26849 }
26850 {
26851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26852 }
26853 return resultobj;
26854 fail:
26855 return NULL;
26856 }
26857
26858
26859 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
26860 PyObject *resultobj;
26861 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26862 int arg2 ;
26863 int arg3 ;
26864 int arg4 ;
26865 int result;
26866 PyObject * obj0 = 0 ;
26867 PyObject * obj1 = 0 ;
26868 PyObject * obj2 = 0 ;
26869 PyObject * obj3 = 0 ;
26870 char *kwnames[] = {
26871 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26872 };
26873
26874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26877 arg2 = (int)SWIG_As_int(obj1);
26878 if (PyErr_Occurred()) SWIG_fail;
26879 arg3 = (int)SWIG_As_int(obj2);
26880 if (PyErr_Occurred()) SWIG_fail;
26881 arg4 = (int)SWIG_As_int(obj3);
26882 if (PyErr_Occurred()) SWIG_fail;
26883 {
26884 PyThreadState* __tstate = wxPyBeginAllowThreads();
26885 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26886
26887 wxPyEndAllowThreads(__tstate);
26888 if (PyErr_Occurred()) SWIG_fail;
26889 }
26890 resultobj = SWIG_From_int((int)result);
26891 return resultobj;
26892 fail:
26893 return NULL;
26894 }
26895
26896
26897 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
26898 PyObject *obj;
26899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26900 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26901 Py_INCREF(obj);
26902 return Py_BuildValue((char *)"");
26903 }
26904 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26905 PyObject *resultobj;
26906 wxPyFileDropTarget *result;
26907 char *kwnames[] = {
26908 NULL
26909 };
26910
26911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26912 {
26913 PyThreadState* __tstate = wxPyBeginAllowThreads();
26914 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26915
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26920 return resultobj;
26921 fail:
26922 return NULL;
26923 }
26924
26925
26926 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26927 PyObject *resultobj;
26928 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26929 PyObject *arg2 = (PyObject *) 0 ;
26930 PyObject *arg3 = (PyObject *) 0 ;
26931 PyObject * obj0 = 0 ;
26932 PyObject * obj1 = 0 ;
26933 PyObject * obj2 = 0 ;
26934 char *kwnames[] = {
26935 (char *) "self",(char *) "self",(char *) "_class", NULL
26936 };
26937
26938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26941 arg2 = obj1;
26942 arg3 = obj2;
26943 {
26944 PyThreadState* __tstate = wxPyBeginAllowThreads();
26945 (arg1)->_setCallbackInfo(arg2,arg3);
26946
26947 wxPyEndAllowThreads(__tstate);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 Py_INCREF(Py_None); resultobj = Py_None;
26951 return resultobj;
26952 fail:
26953 return NULL;
26954 }
26955
26956
26957 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26958 PyObject *resultobj;
26959 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26960 int arg2 ;
26961 int arg3 ;
26962 int arg4 ;
26963 int result;
26964 PyObject * obj0 = 0 ;
26965 PyObject * obj1 = 0 ;
26966 PyObject * obj2 = 0 ;
26967 PyObject * obj3 = 0 ;
26968 char *kwnames[] = {
26969 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26970 };
26971
26972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26975 arg2 = (int)SWIG_As_int(obj1);
26976 if (PyErr_Occurred()) SWIG_fail;
26977 arg3 = (int)SWIG_As_int(obj2);
26978 if (PyErr_Occurred()) SWIG_fail;
26979 arg4 = (int)SWIG_As_int(obj3);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 {
26982 PyThreadState* __tstate = wxPyBeginAllowThreads();
26983 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26984
26985 wxPyEndAllowThreads(__tstate);
26986 if (PyErr_Occurred()) SWIG_fail;
26987 }
26988 resultobj = SWIG_From_int((int)result);
26989 return resultobj;
26990 fail:
26991 return NULL;
26992 }
26993
26994
26995 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26996 PyObject *resultobj;
26997 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26998 int arg2 ;
26999 int arg3 ;
27000 int arg4 ;
27001 int result;
27002 PyObject * obj0 = 0 ;
27003 PyObject * obj1 = 0 ;
27004 PyObject * obj2 = 0 ;
27005 PyObject * obj3 = 0 ;
27006 char *kwnames[] = {
27007 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27008 };
27009
27010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27013 arg2 = (int)SWIG_As_int(obj1);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 arg3 = (int)SWIG_As_int(obj2);
27016 if (PyErr_Occurred()) SWIG_fail;
27017 arg4 = (int)SWIG_As_int(obj3);
27018 if (PyErr_Occurred()) SWIG_fail;
27019 {
27020 PyThreadState* __tstate = wxPyBeginAllowThreads();
27021 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27022
27023 wxPyEndAllowThreads(__tstate);
27024 if (PyErr_Occurred()) SWIG_fail;
27025 }
27026 resultobj = SWIG_From_int((int)result);
27027 return resultobj;
27028 fail:
27029 return NULL;
27030 }
27031
27032
27033 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
27034 PyObject *resultobj;
27035 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27036 PyObject * obj0 = 0 ;
27037 char *kwnames[] = {
27038 (char *) "self", NULL
27039 };
27040
27041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27044 {
27045 PyThreadState* __tstate = wxPyBeginAllowThreads();
27046 (arg1)->base_OnLeave();
27047
27048 wxPyEndAllowThreads(__tstate);
27049 if (PyErr_Occurred()) SWIG_fail;
27050 }
27051 Py_INCREF(Py_None); resultobj = Py_None;
27052 return resultobj;
27053 fail:
27054 return NULL;
27055 }
27056
27057
27058 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
27059 PyObject *resultobj;
27060 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27061 int arg2 ;
27062 int arg3 ;
27063 bool result;
27064 PyObject * obj0 = 0 ;
27065 PyObject * obj1 = 0 ;
27066 PyObject * obj2 = 0 ;
27067 char *kwnames[] = {
27068 (char *) "self",(char *) "x",(char *) "y", NULL
27069 };
27070
27071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27074 arg2 = (int)SWIG_As_int(obj1);
27075 if (PyErr_Occurred()) SWIG_fail;
27076 arg3 = (int)SWIG_As_int(obj2);
27077 if (PyErr_Occurred()) SWIG_fail;
27078 {
27079 PyThreadState* __tstate = wxPyBeginAllowThreads();
27080 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27081
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 {
27086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27087 }
27088 return resultobj;
27089 fail:
27090 return NULL;
27091 }
27092
27093
27094 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
27095 PyObject *resultobj;
27096 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27097 int arg2 ;
27098 int arg3 ;
27099 int arg4 ;
27100 int result;
27101 PyObject * obj0 = 0 ;
27102 PyObject * obj1 = 0 ;
27103 PyObject * obj2 = 0 ;
27104 PyObject * obj3 = 0 ;
27105 char *kwnames[] = {
27106 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27107 };
27108
27109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27112 arg2 = (int)SWIG_As_int(obj1);
27113 if (PyErr_Occurred()) SWIG_fail;
27114 arg3 = (int)SWIG_As_int(obj2);
27115 if (PyErr_Occurred()) SWIG_fail;
27116 arg4 = (int)SWIG_As_int(obj3);
27117 if (PyErr_Occurred()) SWIG_fail;
27118 {
27119 PyThreadState* __tstate = wxPyBeginAllowThreads();
27120 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27121
27122 wxPyEndAllowThreads(__tstate);
27123 if (PyErr_Occurred()) SWIG_fail;
27124 }
27125 resultobj = SWIG_From_int((int)result);
27126 return resultobj;
27127 fail:
27128 return NULL;
27129 }
27130
27131
27132 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
27133 PyObject *obj;
27134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27135 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27136 Py_INCREF(obj);
27137 return Py_BuildValue((char *)"");
27138 }
27139 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27140 PyObject *resultobj;
27141 wxClipboard *result;
27142 char *kwnames[] = {
27143 NULL
27144 };
27145
27146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27147 {
27148 PyThreadState* __tstate = wxPyBeginAllowThreads();
27149 result = (wxClipboard *)new wxClipboard();
27150
27151 wxPyEndAllowThreads(__tstate);
27152 if (PyErr_Occurred()) SWIG_fail;
27153 }
27154 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27155 return resultobj;
27156 fail:
27157 return NULL;
27158 }
27159
27160
27161 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27162 PyObject *resultobj;
27163 wxClipboard *arg1 = (wxClipboard *) 0 ;
27164 PyObject * obj0 = 0 ;
27165 char *kwnames[] = {
27166 (char *) "self", NULL
27167 };
27168
27169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27172 {
27173 PyThreadState* __tstate = wxPyBeginAllowThreads();
27174 delete arg1;
27175
27176 wxPyEndAllowThreads(__tstate);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 Py_INCREF(Py_None); resultobj = Py_None;
27180 return resultobj;
27181 fail:
27182 return NULL;
27183 }
27184
27185
27186 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
27187 PyObject *resultobj;
27188 wxClipboard *arg1 = (wxClipboard *) 0 ;
27189 bool result;
27190 PyObject * obj0 = 0 ;
27191 char *kwnames[] = {
27192 (char *) "self", NULL
27193 };
27194
27195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27198 {
27199 PyThreadState* __tstate = wxPyBeginAllowThreads();
27200 result = (bool)(arg1)->Open();
27201
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 {
27206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27207 }
27208 return resultobj;
27209 fail:
27210 return NULL;
27211 }
27212
27213
27214 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
27215 PyObject *resultobj;
27216 wxClipboard *arg1 = (wxClipboard *) 0 ;
27217 PyObject * obj0 = 0 ;
27218 char *kwnames[] = {
27219 (char *) "self", NULL
27220 };
27221
27222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27225 {
27226 PyThreadState* __tstate = wxPyBeginAllowThreads();
27227 (arg1)->Close();
27228
27229 wxPyEndAllowThreads(__tstate);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 }
27232 Py_INCREF(Py_None); resultobj = Py_None;
27233 return resultobj;
27234 fail:
27235 return NULL;
27236 }
27237
27238
27239 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
27240 PyObject *resultobj;
27241 wxClipboard *arg1 = (wxClipboard *) 0 ;
27242 bool result;
27243 PyObject * obj0 = 0 ;
27244 char *kwnames[] = {
27245 (char *) "self", NULL
27246 };
27247
27248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27251 {
27252 PyThreadState* __tstate = wxPyBeginAllowThreads();
27253 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27254
27255 wxPyEndAllowThreads(__tstate);
27256 if (PyErr_Occurred()) SWIG_fail;
27257 }
27258 {
27259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27260 }
27261 return resultobj;
27262 fail:
27263 return NULL;
27264 }
27265
27266
27267 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
27268 PyObject *resultobj;
27269 wxClipboard *arg1 = (wxClipboard *) 0 ;
27270 wxDataObject *arg2 = (wxDataObject *) 0 ;
27271 bool result;
27272 PyObject * obj0 = 0 ;
27273 PyObject * obj1 = 0 ;
27274 char *kwnames[] = {
27275 (char *) "self",(char *) "data", NULL
27276 };
27277
27278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27282 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27283 {
27284 PyThreadState* __tstate = wxPyBeginAllowThreads();
27285 result = (bool)(arg1)->AddData(arg2);
27286
27287 wxPyEndAllowThreads(__tstate);
27288 if (PyErr_Occurred()) SWIG_fail;
27289 }
27290 {
27291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27292 }
27293 return resultobj;
27294 fail:
27295 return NULL;
27296 }
27297
27298
27299 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
27300 PyObject *resultobj;
27301 wxClipboard *arg1 = (wxClipboard *) 0 ;
27302 wxDataObject *arg2 = (wxDataObject *) 0 ;
27303 bool result;
27304 PyObject * obj0 = 0 ;
27305 PyObject * obj1 = 0 ;
27306 char *kwnames[] = {
27307 (char *) "self",(char *) "data", NULL
27308 };
27309
27310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27314 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 result = (bool)(arg1)->SetData(arg2);
27318
27319 wxPyEndAllowThreads(__tstate);
27320 if (PyErr_Occurred()) SWIG_fail;
27321 }
27322 {
27323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27324 }
27325 return resultobj;
27326 fail:
27327 return NULL;
27328 }
27329
27330
27331 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
27332 PyObject *resultobj;
27333 wxClipboard *arg1 = (wxClipboard *) 0 ;
27334 wxDataFormat *arg2 = 0 ;
27335 bool result;
27336 PyObject * obj0 = 0 ;
27337 PyObject * obj1 = 0 ;
27338 char *kwnames[] = {
27339 (char *) "self",(char *) "format", NULL
27340 };
27341
27342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27346 SWIG_POINTER_EXCEPTION | 0)) == -1)
27347 SWIG_fail;
27348 if (arg2 == NULL) {
27349 PyErr_SetString(PyExc_TypeError,"null reference");
27350 SWIG_fail;
27351 }
27352 {
27353 PyThreadState* __tstate = wxPyBeginAllowThreads();
27354 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27355
27356 wxPyEndAllowThreads(__tstate);
27357 if (PyErr_Occurred()) SWIG_fail;
27358 }
27359 {
27360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27361 }
27362 return resultobj;
27363 fail:
27364 return NULL;
27365 }
27366
27367
27368 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
27369 PyObject *resultobj;
27370 wxClipboard *arg1 = (wxClipboard *) 0 ;
27371 wxDataObject *arg2 = 0 ;
27372 bool result;
27373 PyObject * obj0 = 0 ;
27374 PyObject * obj1 = 0 ;
27375 char *kwnames[] = {
27376 (char *) "self",(char *) "data", NULL
27377 };
27378
27379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27382 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27383 SWIG_POINTER_EXCEPTION | 0)) == -1)
27384 SWIG_fail;
27385 if (arg2 == NULL) {
27386 PyErr_SetString(PyExc_TypeError,"null reference");
27387 SWIG_fail;
27388 }
27389 {
27390 PyThreadState* __tstate = wxPyBeginAllowThreads();
27391 result = (bool)(arg1)->GetData(*arg2);
27392
27393 wxPyEndAllowThreads(__tstate);
27394 if (PyErr_Occurred()) SWIG_fail;
27395 }
27396 {
27397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27398 }
27399 return resultobj;
27400 fail:
27401 return NULL;
27402 }
27403
27404
27405 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
27406 PyObject *resultobj;
27407 wxClipboard *arg1 = (wxClipboard *) 0 ;
27408 PyObject * obj0 = 0 ;
27409 char *kwnames[] = {
27410 (char *) "self", NULL
27411 };
27412
27413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 (arg1)->Clear();
27419
27420 wxPyEndAllowThreads(__tstate);
27421 if (PyErr_Occurred()) SWIG_fail;
27422 }
27423 Py_INCREF(Py_None); resultobj = Py_None;
27424 return resultobj;
27425 fail:
27426 return NULL;
27427 }
27428
27429
27430 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
27431 PyObject *resultobj;
27432 wxClipboard *arg1 = (wxClipboard *) 0 ;
27433 bool result;
27434 PyObject * obj0 = 0 ;
27435 char *kwnames[] = {
27436 (char *) "self", NULL
27437 };
27438
27439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27442 {
27443 PyThreadState* __tstate = wxPyBeginAllowThreads();
27444 result = (bool)(arg1)->Flush();
27445
27446 wxPyEndAllowThreads(__tstate);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
27449 {
27450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27451 }
27452 return resultobj;
27453 fail:
27454 return NULL;
27455 }
27456
27457
27458 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
27459 PyObject *resultobj;
27460 wxClipboard *arg1 = (wxClipboard *) 0 ;
27461 bool arg2 = (bool) True ;
27462 PyObject * obj0 = 0 ;
27463 PyObject * obj1 = 0 ;
27464 char *kwnames[] = {
27465 (char *) "self",(char *) "primary", NULL
27466 };
27467
27468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27471 if (obj1) {
27472 arg2 = (bool)SWIG_As_bool(obj1);
27473 if (PyErr_Occurred()) SWIG_fail;
27474 }
27475 {
27476 PyThreadState* __tstate = wxPyBeginAllowThreads();
27477 (arg1)->UsePrimarySelection(arg2);
27478
27479 wxPyEndAllowThreads(__tstate);
27480 if (PyErr_Occurred()) SWIG_fail;
27481 }
27482 Py_INCREF(Py_None); resultobj = Py_None;
27483 return resultobj;
27484 fail:
27485 return NULL;
27486 }
27487
27488
27489 static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
27490 PyObject *resultobj;
27491 wxClipboard *result;
27492 char *kwnames[] = {
27493 NULL
27494 };
27495
27496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27497 {
27498 PyThreadState* __tstate = wxPyBeginAllowThreads();
27499 result = (wxClipboard *)wxClipboard::Get();
27500
27501 wxPyEndAllowThreads(__tstate);
27502 if (PyErr_Occurred()) SWIG_fail;
27503 }
27504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27505 return resultobj;
27506 fail:
27507 return NULL;
27508 }
27509
27510
27511 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
27512 PyObject *obj;
27513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27514 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27515 Py_INCREF(obj);
27516 return Py_BuildValue((char *)"");
27517 }
27518 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27519 PyObject *resultobj;
27520 wxClipboard *arg1 = (wxClipboard *) NULL ;
27521 wxClipboardLocker *result;
27522 PyObject * obj0 = 0 ;
27523 char *kwnames[] = {
27524 (char *) "clipboard", NULL
27525 };
27526
27527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27528 if (obj0) {
27529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27531 }
27532 {
27533 PyThreadState* __tstate = wxPyBeginAllowThreads();
27534 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27535
27536 wxPyEndAllowThreads(__tstate);
27537 if (PyErr_Occurred()) SWIG_fail;
27538 }
27539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27540 return resultobj;
27541 fail:
27542 return NULL;
27543 }
27544
27545
27546 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27547 PyObject *resultobj;
27548 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27549 PyObject * obj0 = 0 ;
27550 char *kwnames[] = {
27551 (char *) "self", NULL
27552 };
27553
27554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27557 {
27558 PyThreadState* __tstate = wxPyBeginAllowThreads();
27559 delete arg1;
27560
27561 wxPyEndAllowThreads(__tstate);
27562 if (PyErr_Occurred()) SWIG_fail;
27563 }
27564 Py_INCREF(Py_None); resultobj = Py_None;
27565 return resultobj;
27566 fail:
27567 return NULL;
27568 }
27569
27570
27571 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
27572 PyObject *resultobj;
27573 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27574 bool result;
27575 PyObject * obj0 = 0 ;
27576 char *kwnames[] = {
27577 (char *) "self", NULL
27578 };
27579
27580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27583 {
27584 PyThreadState* __tstate = wxPyBeginAllowThreads();
27585 result = (bool)wxClipboardLocker___nonzero__(arg1);
27586
27587 wxPyEndAllowThreads(__tstate);
27588 if (PyErr_Occurred()) SWIG_fail;
27589 }
27590 {
27591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27592 }
27593 return resultobj;
27594 fail:
27595 return NULL;
27596 }
27597
27598
27599 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
27600 PyObject *obj;
27601 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27602 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27603 Py_INCREF(obj);
27604 return Py_BuildValue((char *)"");
27605 }
27606 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27607 PyObject *resultobj;
27608 int arg1 = (int) 0 ;
27609 int arg2 = (int) 0 ;
27610 int arg3 = (int) 0 ;
27611 int arg4 = (int) 0 ;
27612 wxVideoMode *result;
27613 PyObject * obj0 = 0 ;
27614 PyObject * obj1 = 0 ;
27615 PyObject * obj2 = 0 ;
27616 PyObject * obj3 = 0 ;
27617 char *kwnames[] = {
27618 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27619 };
27620
27621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27622 if (obj0) {
27623 arg1 = (int)SWIG_As_int(obj0);
27624 if (PyErr_Occurred()) SWIG_fail;
27625 }
27626 if (obj1) {
27627 arg2 = (int)SWIG_As_int(obj1);
27628 if (PyErr_Occurred()) SWIG_fail;
27629 }
27630 if (obj2) {
27631 arg3 = (int)SWIG_As_int(obj2);
27632 if (PyErr_Occurred()) SWIG_fail;
27633 }
27634 if (obj3) {
27635 arg4 = (int)SWIG_As_int(obj3);
27636 if (PyErr_Occurred()) SWIG_fail;
27637 }
27638 {
27639 PyThreadState* __tstate = wxPyBeginAllowThreads();
27640 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27641
27642 wxPyEndAllowThreads(__tstate);
27643 if (PyErr_Occurred()) SWIG_fail;
27644 }
27645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27646 return resultobj;
27647 fail:
27648 return NULL;
27649 }
27650
27651
27652 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27653 PyObject *resultobj;
27654 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27655 PyObject * obj0 = 0 ;
27656 char *kwnames[] = {
27657 (char *) "self", NULL
27658 };
27659
27660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 delete arg1;
27666
27667 wxPyEndAllowThreads(__tstate);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 Py_INCREF(Py_None); resultobj = Py_None;
27671 return resultobj;
27672 fail:
27673 return NULL;
27674 }
27675
27676
27677 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
27678 PyObject *resultobj;
27679 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27680 wxVideoMode *arg2 = 0 ;
27681 bool result;
27682 PyObject * obj0 = 0 ;
27683 PyObject * obj1 = 0 ;
27684 char *kwnames[] = {
27685 (char *) "self",(char *) "other", NULL
27686 };
27687
27688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27692 SWIG_POINTER_EXCEPTION | 0)) == -1)
27693 SWIG_fail;
27694 if (arg2 == NULL) {
27695 PyErr_SetString(PyExc_TypeError,"null reference");
27696 SWIG_fail;
27697 }
27698 {
27699 PyThreadState* __tstate = wxPyBeginAllowThreads();
27700 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27701
27702 wxPyEndAllowThreads(__tstate);
27703 if (PyErr_Occurred()) SWIG_fail;
27704 }
27705 {
27706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27707 }
27708 return resultobj;
27709 fail:
27710 return NULL;
27711 }
27712
27713
27714 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27715 PyObject *resultobj;
27716 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27717 int result;
27718 PyObject * obj0 = 0 ;
27719 char *kwnames[] = {
27720 (char *) "self", NULL
27721 };
27722
27723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27726 {
27727 PyThreadState* __tstate = wxPyBeginAllowThreads();
27728 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27729
27730 wxPyEndAllowThreads(__tstate);
27731 if (PyErr_Occurred()) SWIG_fail;
27732 }
27733 resultobj = SWIG_From_int((int)result);
27734 return resultobj;
27735 fail:
27736 return NULL;
27737 }
27738
27739
27740 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
27741 PyObject *resultobj;
27742 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27743 int result;
27744 PyObject * obj0 = 0 ;
27745 char *kwnames[] = {
27746 (char *) "self", NULL
27747 };
27748
27749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27752 {
27753 PyThreadState* __tstate = wxPyBeginAllowThreads();
27754 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27755
27756 wxPyEndAllowThreads(__tstate);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 resultobj = SWIG_From_int((int)result);
27760 return resultobj;
27761 fail:
27762 return NULL;
27763 }
27764
27765
27766 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
27767 PyObject *resultobj;
27768 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27769 int result;
27770 PyObject * obj0 = 0 ;
27771 char *kwnames[] = {
27772 (char *) "self", NULL
27773 };
27774
27775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27778 {
27779 PyThreadState* __tstate = wxPyBeginAllowThreads();
27780 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27781
27782 wxPyEndAllowThreads(__tstate);
27783 if (PyErr_Occurred()) SWIG_fail;
27784 }
27785 resultobj = SWIG_From_int((int)result);
27786 return resultobj;
27787 fail:
27788 return NULL;
27789 }
27790
27791
27792 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
27793 PyObject *resultobj;
27794 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27795 bool result;
27796 PyObject * obj0 = 0 ;
27797 char *kwnames[] = {
27798 (char *) "self", NULL
27799 };
27800
27801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27804 {
27805 PyThreadState* __tstate = wxPyBeginAllowThreads();
27806 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27807
27808 wxPyEndAllowThreads(__tstate);
27809 if (PyErr_Occurred()) SWIG_fail;
27810 }
27811 {
27812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27813 }
27814 return resultobj;
27815 fail:
27816 return NULL;
27817 }
27818
27819
27820 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
27821 PyObject *resultobj;
27822 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27823 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27824 bool result;
27825 PyObject * obj0 = 0 ;
27826 PyObject * obj1 = 0 ;
27827 char *kwnames[] = {
27828 (char *) "self",(char *) "other", NULL
27829 };
27830
27831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27834 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27836 {
27837 PyThreadState* __tstate = wxPyBeginAllowThreads();
27838 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27839
27840 wxPyEndAllowThreads(__tstate);
27841 if (PyErr_Occurred()) SWIG_fail;
27842 }
27843 {
27844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27845 }
27846 return resultobj;
27847 fail:
27848 return NULL;
27849 }
27850
27851
27852 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
27853 PyObject *resultobj;
27854 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27855 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27856 bool result;
27857 PyObject * obj0 = 0 ;
27858 PyObject * obj1 = 0 ;
27859 char *kwnames[] = {
27860 (char *) "self",(char *) "other", NULL
27861 };
27862
27863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27866 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27868 {
27869 PyThreadState* __tstate = wxPyBeginAllowThreads();
27870 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27871
27872 wxPyEndAllowThreads(__tstate);
27873 if (PyErr_Occurred()) SWIG_fail;
27874 }
27875 {
27876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27877 }
27878 return resultobj;
27879 fail:
27880 return NULL;
27881 }
27882
27883
27884 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
27885 PyObject *resultobj;
27886 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27887 int arg2 ;
27888 PyObject * obj0 = 0 ;
27889 PyObject * obj1 = 0 ;
27890 char *kwnames[] = {
27891 (char *) "self",(char *) "w", NULL
27892 };
27893
27894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27897 arg2 = (int)SWIG_As_int(obj1);
27898 if (PyErr_Occurred()) SWIG_fail;
27899 if (arg1) (arg1)->w = arg2;
27900
27901 Py_INCREF(Py_None); resultobj = Py_None;
27902 return resultobj;
27903 fail:
27904 return NULL;
27905 }
27906
27907
27908 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
27909 PyObject *resultobj;
27910 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27911 int result;
27912 PyObject * obj0 = 0 ;
27913 char *kwnames[] = {
27914 (char *) "self", NULL
27915 };
27916
27917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27920 result = (int) ((arg1)->w);
27921
27922 resultobj = SWIG_From_int((int)result);
27923 return resultobj;
27924 fail:
27925 return NULL;
27926 }
27927
27928
27929 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
27930 PyObject *resultobj;
27931 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27932 int arg2 ;
27933 PyObject * obj0 = 0 ;
27934 PyObject * obj1 = 0 ;
27935 char *kwnames[] = {
27936 (char *) "self",(char *) "h", NULL
27937 };
27938
27939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27942 arg2 = (int)SWIG_As_int(obj1);
27943 if (PyErr_Occurred()) SWIG_fail;
27944 if (arg1) (arg1)->h = arg2;
27945
27946 Py_INCREF(Py_None); resultobj = Py_None;
27947 return resultobj;
27948 fail:
27949 return NULL;
27950 }
27951
27952
27953 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
27954 PyObject *resultobj;
27955 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27956 int result;
27957 PyObject * obj0 = 0 ;
27958 char *kwnames[] = {
27959 (char *) "self", NULL
27960 };
27961
27962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27965 result = (int) ((arg1)->h);
27966
27967 resultobj = SWIG_From_int((int)result);
27968 return resultobj;
27969 fail:
27970 return NULL;
27971 }
27972
27973
27974 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
27975 PyObject *resultobj;
27976 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27977 int arg2 ;
27978 PyObject * obj0 = 0 ;
27979 PyObject * obj1 = 0 ;
27980 char *kwnames[] = {
27981 (char *) "self",(char *) "bpp", NULL
27982 };
27983
27984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27987 arg2 = (int)SWIG_As_int(obj1);
27988 if (PyErr_Occurred()) SWIG_fail;
27989 if (arg1) (arg1)->bpp = arg2;
27990
27991 Py_INCREF(Py_None); resultobj = Py_None;
27992 return resultobj;
27993 fail:
27994 return NULL;
27995 }
27996
27997
27998 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
27999 PyObject *resultobj;
28000 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28001 int result;
28002 PyObject * obj0 = 0 ;
28003 char *kwnames[] = {
28004 (char *) "self", NULL
28005 };
28006
28007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
28008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28010 result = (int) ((arg1)->bpp);
28011
28012 resultobj = SWIG_From_int((int)result);
28013 return resultobj;
28014 fail:
28015 return NULL;
28016 }
28017
28018
28019 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
28020 PyObject *resultobj;
28021 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28022 int arg2 ;
28023 PyObject * obj0 = 0 ;
28024 PyObject * obj1 = 0 ;
28025 char *kwnames[] = {
28026 (char *) "self",(char *) "refresh", NULL
28027 };
28028
28029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
28030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28032 arg2 = (int)SWIG_As_int(obj1);
28033 if (PyErr_Occurred()) SWIG_fail;
28034 if (arg1) (arg1)->refresh = arg2;
28035
28036 Py_INCREF(Py_None); resultobj = Py_None;
28037 return resultobj;
28038 fail:
28039 return NULL;
28040 }
28041
28042
28043 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
28044 PyObject *resultobj;
28045 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28046 int result;
28047 PyObject * obj0 = 0 ;
28048 char *kwnames[] = {
28049 (char *) "self", NULL
28050 };
28051
28052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
28053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28055 result = (int) ((arg1)->refresh);
28056
28057 resultobj = SWIG_From_int((int)result);
28058 return resultobj;
28059 fail:
28060 return NULL;
28061 }
28062
28063
28064 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
28065 PyObject *obj;
28066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28067 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
28068 Py_INCREF(obj);
28069 return Py_BuildValue((char *)"");
28070 }
28071 static int _wrap_DefaultVideoMode_set(PyObject *) {
28072 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28073 return 1;
28074 }
28075
28076
28077 static PyObject *_wrap_DefaultVideoMode_get() {
28078 PyObject *pyobj;
28079
28080 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28081 return pyobj;
28082 }
28083
28084
28085 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28086 PyObject *resultobj;
28087 size_t arg1 = (size_t) 0 ;
28088 wxDisplay *result;
28089 PyObject * obj0 = 0 ;
28090 char *kwnames[] = {
28091 (char *) "index", NULL
28092 };
28093
28094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28095 if (obj0) {
28096 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
28097 if (PyErr_Occurred()) SWIG_fail;
28098 }
28099 {
28100 PyThreadState* __tstate = wxPyBeginAllowThreads();
28101 result = (wxDisplay *)new wxDisplay(arg1);
28102
28103 wxPyEndAllowThreads(__tstate);
28104 if (PyErr_Occurred()) SWIG_fail;
28105 }
28106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28107 return resultobj;
28108 fail:
28109 return NULL;
28110 }
28111
28112
28113 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28114 PyObject *resultobj;
28115 wxDisplay *arg1 = (wxDisplay *) 0 ;
28116 PyObject * obj0 = 0 ;
28117 char *kwnames[] = {
28118 (char *) "self", NULL
28119 };
28120
28121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28124 {
28125 PyThreadState* __tstate = wxPyBeginAllowThreads();
28126 delete arg1;
28127
28128 wxPyEndAllowThreads(__tstate);
28129 if (PyErr_Occurred()) SWIG_fail;
28130 }
28131 Py_INCREF(Py_None); resultobj = Py_None;
28132 return resultobj;
28133 fail:
28134 return NULL;
28135 }
28136
28137
28138 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
28139 PyObject *resultobj;
28140 size_t result;
28141 char *kwnames[] = {
28142 NULL
28143 };
28144
28145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28146 {
28147 PyThreadState* __tstate = wxPyBeginAllowThreads();
28148 result = (size_t)wxDisplay::GetCount();
28149
28150 wxPyEndAllowThreads(__tstate);
28151 if (PyErr_Occurred()) SWIG_fail;
28152 }
28153 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
28154 return resultobj;
28155 fail:
28156 return NULL;
28157 }
28158
28159
28160 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
28161 PyObject *resultobj;
28162 wxPoint *arg1 = 0 ;
28163 int result;
28164 wxPoint temp1 ;
28165 PyObject * obj0 = 0 ;
28166 char *kwnames[] = {
28167 (char *) "pt", NULL
28168 };
28169
28170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28171 {
28172 arg1 = &temp1;
28173 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28174 }
28175 {
28176 PyThreadState* __tstate = wxPyBeginAllowThreads();
28177 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28178
28179 wxPyEndAllowThreads(__tstate);
28180 if (PyErr_Occurred()) SWIG_fail;
28181 }
28182 resultobj = SWIG_From_int((int)result);
28183 return resultobj;
28184 fail:
28185 return NULL;
28186 }
28187
28188
28189 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28190 PyObject *resultobj;
28191 wxWindow *arg1 = (wxWindow *) 0 ;
28192 int result;
28193 PyObject * obj0 = 0 ;
28194 char *kwnames[] = {
28195 (char *) "window", NULL
28196 };
28197
28198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28201 {
28202 PyThreadState* __tstate = wxPyBeginAllowThreads();
28203 result = (int)Display_GetFromWindow(arg1);
28204
28205 wxPyEndAllowThreads(__tstate);
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
28208 resultobj = SWIG_From_int((int)result);
28209 return resultobj;
28210 fail:
28211 return NULL;
28212 }
28213
28214
28215 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
28216 PyObject *resultobj;
28217 wxDisplay *arg1 = (wxDisplay *) 0 ;
28218 bool result;
28219 PyObject * obj0 = 0 ;
28220 char *kwnames[] = {
28221 (char *) "self", NULL
28222 };
28223
28224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28227 {
28228 PyThreadState* __tstate = wxPyBeginAllowThreads();
28229 result = (bool)((wxDisplay const *)arg1)->IsOk();
28230
28231 wxPyEndAllowThreads(__tstate);
28232 if (PyErr_Occurred()) SWIG_fail;
28233 }
28234 {
28235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28236 }
28237 return resultobj;
28238 fail:
28239 return NULL;
28240 }
28241
28242
28243 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
28244 PyObject *resultobj;
28245 wxDisplay *arg1 = (wxDisplay *) 0 ;
28246 wxRect result;
28247 PyObject * obj0 = 0 ;
28248 char *kwnames[] = {
28249 (char *) "self", NULL
28250 };
28251
28252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28255 {
28256 PyThreadState* __tstate = wxPyBeginAllowThreads();
28257 result = ((wxDisplay const *)arg1)->GetGeometry();
28258
28259 wxPyEndAllowThreads(__tstate);
28260 if (PyErr_Occurred()) SWIG_fail;
28261 }
28262 {
28263 wxRect * resultptr;
28264 resultptr = new wxRect((wxRect &) result);
28265 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28266 }
28267 return resultobj;
28268 fail:
28269 return NULL;
28270 }
28271
28272
28273 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
28274 PyObject *resultobj;
28275 wxDisplay *arg1 = (wxDisplay *) 0 ;
28276 wxString result;
28277 PyObject * obj0 = 0 ;
28278 char *kwnames[] = {
28279 (char *) "self", NULL
28280 };
28281
28282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28285 {
28286 PyThreadState* __tstate = wxPyBeginAllowThreads();
28287 result = ((wxDisplay const *)arg1)->GetName();
28288
28289 wxPyEndAllowThreads(__tstate);
28290 if (PyErr_Occurred()) SWIG_fail;
28291 }
28292 {
28293 #if wxUSE_UNICODE
28294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28295 #else
28296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28297 #endif
28298 }
28299 return resultobj;
28300 fail:
28301 return NULL;
28302 }
28303
28304
28305 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
28306 PyObject *resultobj;
28307 wxDisplay *arg1 = (wxDisplay *) 0 ;
28308 bool result;
28309 PyObject * obj0 = 0 ;
28310 char *kwnames[] = {
28311 (char *) "self", NULL
28312 };
28313
28314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28317 {
28318 PyThreadState* __tstate = wxPyBeginAllowThreads();
28319 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28320
28321 wxPyEndAllowThreads(__tstate);
28322 if (PyErr_Occurred()) SWIG_fail;
28323 }
28324 {
28325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28326 }
28327 return resultobj;
28328 fail:
28329 return NULL;
28330 }
28331
28332
28333 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
28334 PyObject *resultobj;
28335 wxDisplay *arg1 = (wxDisplay *) 0 ;
28336 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28337 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28338 PyObject *result;
28339 PyObject * obj0 = 0 ;
28340 PyObject * obj1 = 0 ;
28341 char *kwnames[] = {
28342 (char *) "self",(char *) "mode", NULL
28343 };
28344
28345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28348 if (obj1) {
28349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28350 SWIG_POINTER_EXCEPTION | 0)) == -1)
28351 SWIG_fail;
28352 if (arg2 == NULL) {
28353 PyErr_SetString(PyExc_TypeError,"null reference");
28354 SWIG_fail;
28355 }
28356 }
28357 {
28358 PyThreadState* __tstate = wxPyBeginAllowThreads();
28359 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28360
28361 wxPyEndAllowThreads(__tstate);
28362 if (PyErr_Occurred()) SWIG_fail;
28363 }
28364 resultobj = result;
28365 return resultobj;
28366 fail:
28367 return NULL;
28368 }
28369
28370
28371 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
28372 PyObject *resultobj;
28373 wxDisplay *arg1 = (wxDisplay *) 0 ;
28374 wxVideoMode result;
28375 PyObject * obj0 = 0 ;
28376 char *kwnames[] = {
28377 (char *) "self", NULL
28378 };
28379
28380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28383 {
28384 PyThreadState* __tstate = wxPyBeginAllowThreads();
28385 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28386
28387 wxPyEndAllowThreads(__tstate);
28388 if (PyErr_Occurred()) SWIG_fail;
28389 }
28390 {
28391 wxVideoMode * resultptr;
28392 resultptr = new wxVideoMode((wxVideoMode &) result);
28393 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28394 }
28395 return resultobj;
28396 fail:
28397 return NULL;
28398 }
28399
28400
28401 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
28402 PyObject *resultobj;
28403 wxDisplay *arg1 = (wxDisplay *) 0 ;
28404 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28405 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28406 bool result;
28407 PyObject * obj0 = 0 ;
28408 PyObject * obj1 = 0 ;
28409 char *kwnames[] = {
28410 (char *) "self",(char *) "mode", NULL
28411 };
28412
28413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28416 if (obj1) {
28417 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28418 SWIG_POINTER_EXCEPTION | 0)) == -1)
28419 SWIG_fail;
28420 if (arg2 == NULL) {
28421 PyErr_SetString(PyExc_TypeError,"null reference");
28422 SWIG_fail;
28423 }
28424 }
28425 {
28426 PyThreadState* __tstate = wxPyBeginAllowThreads();
28427 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28428
28429 wxPyEndAllowThreads(__tstate);
28430 if (PyErr_Occurred()) SWIG_fail;
28431 }
28432 {
28433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28434 }
28435 return resultobj;
28436 fail:
28437 return NULL;
28438 }
28439
28440
28441 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
28442 PyObject *resultobj;
28443 wxDisplay *arg1 = (wxDisplay *) 0 ;
28444 PyObject * obj0 = 0 ;
28445 char *kwnames[] = {
28446 (char *) "self", NULL
28447 };
28448
28449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28452 {
28453 PyThreadState* __tstate = wxPyBeginAllowThreads();
28454 (arg1)->ResetMode();
28455
28456 wxPyEndAllowThreads(__tstate);
28457 if (PyErr_Occurred()) SWIG_fail;
28458 }
28459 Py_INCREF(Py_None); resultobj = Py_None;
28460 return resultobj;
28461 fail:
28462 return NULL;
28463 }
28464
28465
28466 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
28467 PyObject *obj;
28468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28469 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28470 Py_INCREF(obj);
28471 return Py_BuildValue((char *)"");
28472 }
28473 static PyMethodDef SwigMethods[] = {
28474 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
28475 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
28476 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
28477 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
28478 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28479 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28480 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
28481 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
28482 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28483 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28484 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28485 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28486 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
28487 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
28488 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
28489 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
28490 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
28491 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL },
28492 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28493 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28494 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
28495 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28496 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
28497 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
28498 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
28499 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28500 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
28501 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
28502 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
28503 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28504 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
28505 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
28506 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
28507 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28508 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28509 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
28510 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
28511 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
28512 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28513 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28514 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
28515 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
28516 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
28517 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
28518 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
28519 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
28520 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28521 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28522 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28523 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28524 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28525 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28526 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
28527 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28528 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
28529 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28530 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
28531 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28532 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28533 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28534 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28535 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28536 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28537 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28538 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28539 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28540 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28541 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28542 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28543 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28544 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
28545 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
28546 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
28547 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28548 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28549 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28550 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28551 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
28552 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
28553 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
28554 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28555 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28556 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28557 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
28558 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
28559 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
28560 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28561 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28562 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28563 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
28564 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28565 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28566 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28567 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28568 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28569 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
28570 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
28571 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
28572 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28573 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28574 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
28575 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
28576 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28577 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28578 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28579 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28580 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
28581 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28582 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28583 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
28584 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28585 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28586 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
28587 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
28588 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28589 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
28590 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28591 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
28592 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
28593 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28594 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28595 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28596 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28597 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
28598 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28599 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28600 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
28601 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
28602 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28603 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28604 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
28605 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
28606 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
28607 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28608 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28609 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28610 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28611 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28612 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
28613 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
28614 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28615 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28616 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
28617 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
28618 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
28619 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28620 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28621 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
28622 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
28623 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28624 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28625 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28626 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28627 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
28628 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
28629 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28630 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28631 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28632 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28633 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
28634 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
28635 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
28636 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28637 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28638 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
28639 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
28640 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
28641 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28642 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
28643 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
28644 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
28645 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
28646 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
28647 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28648 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
28649 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28650 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28651 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
28652 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28653 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28654 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28655 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28656 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28657 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28658 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28659 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28660 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28661 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28662 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28663 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28664 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28665 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28666 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28667 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
28668 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28669 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
28670 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
28671 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
28672 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
28673 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
28674 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
28675 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
28676 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28677 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28678 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28679 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28680 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28681 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28682 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
28683 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
28684 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
28685 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28686 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28687 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28688 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
28689 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
28690 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
28691 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
28692 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
28693 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
28694 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28695 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28696 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
28697 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28698 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
28699 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28700 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
28701 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
28702 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
28703 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28704 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28705 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28706 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
28707 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
28708 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28709 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
28710 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
28711 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
28712 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
28713 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
28714 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28715 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
28716 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
28717 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
28718 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
28719 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28720 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
28721 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28722 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
28723 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
28724 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28725 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28726 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
28727 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28728 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
28729 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
28730 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
28731 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
28732 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
28733 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
28734 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
28735 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
28736 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28737 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28738 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28739 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28740 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28741 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28742 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28743 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28744 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28745 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28746 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28747 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28748 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28749 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
28750 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
28751 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
28752 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
28753 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
28754 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
28755 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
28756 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
28757 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
28758 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
28759 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28760 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28761 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28762 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28763 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
28764 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
28765 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
28766 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
28767 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
28768 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
28769 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
28770 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
28771 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
28772 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
28773 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
28774 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
28775 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
28776 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
28777 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
28778 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28779 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28780 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
28781 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
28782 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
28783 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
28784 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
28785 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
28786 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
28787 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
28788 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
28789 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
28790 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
28791 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28792 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28793 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28794 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28795 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28796 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28797 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28798 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28799 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28800 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28801 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28802 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
28803 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
28804 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
28805 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
28806 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
28807 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
28808 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
28809 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
28810 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL },
28811 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
28812 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28813 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL },
28814 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28815 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL },
28816 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL },
28817 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28818 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
28819 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28820 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
28821 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28822 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
28823 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28824 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28825 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28826 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28827 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28828 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28829 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28830 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28831 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
28832 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
28833 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28834 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
28835 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28836 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28837 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28838 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28839 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28840 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28841 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28842 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28843 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28844 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28845 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
28846 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28847 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28848 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28849 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28850 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
28851 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
28852 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28853 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
28854 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
28855 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
28856 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28857 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
28858 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28859 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28860 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
28861 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
28862 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28863 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28864 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
28865 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28866 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28867 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28868 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28869 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28870 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
28871 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28872 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28873 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
28874 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
28875 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
28876 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
28877 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28878 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28879 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28880 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28881 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28882 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28883 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28884 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28885 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
28886 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
28887 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28888 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28889 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
28890 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
28891 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
28892 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
28893 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
28894 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
28895 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
28896 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
28897 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
28898 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
28899 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28900 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28901 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28902 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28903 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28904 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
28905 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28906 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28907 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
28908 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
28909 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28910 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
28911 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
28912 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
28913 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
28914 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
28915 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
28916 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
28917 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
28918 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
28919 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
28920 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
28921 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
28922 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
28923 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
28924 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
28925 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
28926 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
28927 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28928 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28929 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28930 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28931 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
28932 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
28933 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28934 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
28935 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
28936 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
28937 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28938 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
28939 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
28940 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
28941 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
28942 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
28943 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
28944 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28945 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
28946 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
28947 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
28948 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
28949 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
28950 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
28951 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
28952 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
28953 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
28954 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
28955 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
28956 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
28957 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
28958 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
28959 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
28960 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28961 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
28962 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
28963 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
28964 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
28965 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
28966 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28967 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28968 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28969 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28970 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28971 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28972 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28973 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28974 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28975 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28976 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28977 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
28978 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
28979 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
28980 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
28981 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
28982 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
28983 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
28984 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
28985 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
28986 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
28987 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
28988 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
28989 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
28990 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
28991 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
28992 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
28993 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
28994 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28995 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
28996 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28997 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
28998 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
28999 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29000 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29001 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29002 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29003 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29004 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
29005 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29006 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
29007 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29008 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29009 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29010 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
29011 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
29012 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
29013 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
29014 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
29015 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
29016 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
29017 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29018 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
29019 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
29020 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
29021 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
29022 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
29023 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
29024 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
29025 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
29026 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
29027 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
29028 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
29029 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29030 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29031 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
29032 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
29033 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29034 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
29035 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
29036 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
29037 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
29038 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
29039 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
29040 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
29041 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
29042 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
29043 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
29044 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
29045 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29046 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29047 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29048 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29049 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29050 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29051 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29052 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29053 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29054 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29055 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
29056 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29057 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29058 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29059 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29060 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29061 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29062 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29063 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29064 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
29065 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
29066 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
29067 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
29068 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29069 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29070 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
29071 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
29072 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
29073 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29074 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
29075 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29076 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29077 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29078 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
29079 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
29080 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
29081 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
29082 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29083 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
29084 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29085 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29086 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29087 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29088 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29089 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29090 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
29091 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
29092 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
29093 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
29094 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29095 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29096 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29097 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29098 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29099 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29100 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29101 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29102 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
29103 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29104 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29105 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29106 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29107 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29108 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29109 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29110 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29111 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29112 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29113 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29114 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29115 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29116 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29117 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
29118 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
29119 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
29120 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
29121 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
29122 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29123 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29124 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29125 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
29126 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
29127 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
29128 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
29129 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29130 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
29131 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
29132 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29133 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29134 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
29135 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29136 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29137 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
29138 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29139 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29140 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
29141 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29142 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29143 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29144 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29145 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29146 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29147 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
29148 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29149 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29150 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
29151 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
29152 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29153 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
29154 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29155 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
29156 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
29157 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
29158 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
29159 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29160 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29161 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
29162 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29163 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29164 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29165 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
29166 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29167 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29168 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
29169 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29170 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
29171 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
29172 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
29173 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29174 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29175 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29176 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29177 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
29178 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29179 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29180 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29181 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
29182 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29183 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
29184 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
29185 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29186 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29187 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29188 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29189 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29190 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29191 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29192 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
29193 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
29194 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29195 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29196 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29197 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29198 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29199 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29200 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29201 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29202 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29203 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29204 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
29205 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29206 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29207 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29208 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29209 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29210 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29211 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29212 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
29213 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29214 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29215 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29216 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29217 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29218 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29219 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29220 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
29221 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29222 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29223 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29224 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
29225 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29226 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
29227 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29228 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29229 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29230 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
29231 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29232 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
29233 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29234 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
29235 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29236 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29237 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
29238 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
29239 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29240 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29241 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL },
29242 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29243 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
29244 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29245 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29246 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29247 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29248 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL },
29249 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL },
29250 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL },
29251 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL },
29252 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL },
29253 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL },
29254 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL },
29255 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL },
29256 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL },
29257 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29258 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29259 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29260 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29261 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29262 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29263 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL },
29264 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
29265 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL },
29266 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL },
29267 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL },
29268 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL },
29269 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL },
29270 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL },
29271 { NULL, NULL, 0, NULL }
29272 };
29273
29274
29275 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29276
29277 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29278 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29279 }
29280 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29281 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29282 }
29283 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29284 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29285 }
29286 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29287 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29288 }
29289 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29290 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29291 }
29292 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29293 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29294 }
29295 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29296 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29297 }
29298 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29299 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29300 }
29301 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29302 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29303 }
29304 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29305 return (void *)((wxEvent *) ((wxPyEvent *) x));
29306 }
29307 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29308 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29309 }
29310 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29311 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29312 }
29313 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29314 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29315 }
29316 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29317 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29318 }
29319 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29320 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29321 }
29322 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29323 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29324 }
29325 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29326 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29327 }
29328 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29329 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29330 }
29331 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29332 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29333 }
29334 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29335 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29336 }
29337 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29338 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29339 }
29340 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29341 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29342 }
29343 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29344 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29345 }
29346 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29347 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29348 }
29349 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29350 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29351 }
29352 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29353 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29354 }
29355 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29356 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29357 }
29358 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29359 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29360 }
29361 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29362 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29363 }
29364 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29365 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29366 }
29367 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29368 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29369 }
29370 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29371 return (void *)((wxEvent *) ((wxShowEvent *) x));
29372 }
29373 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29374 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29375 }
29376 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29377 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29378 }
29379 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29380 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29381 }
29382 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29383 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29384 }
29385 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29386 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29387 }
29388 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29389 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29390 }
29391 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29392 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29393 }
29394 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29395 return (void *)((wxConfigBase *) ((wxConfig *) x));
29396 }
29397 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29398 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29399 }
29400 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29401 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29402 }
29403 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29404 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29405 }
29406 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29407 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29408 }
29409 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29410 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29411 }
29412 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29413 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29414 }
29415 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29416 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29417 }
29418 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29419 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29420 }
29421 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29422 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29423 }
29424 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29425 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29426 }
29427 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29428 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29429 }
29430 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29431 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29432 }
29433 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29434 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29435 }
29436 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29437 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29438 }
29439 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29440 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29441 }
29442 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29443 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29444 }
29445 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29446 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29447 }
29448 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29449 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29450 }
29451 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29452 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29453 }
29454 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29455 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29456 }
29457 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29458 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29459 }
29460 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29461 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29462 }
29463 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29464 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29465 }
29466 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29467 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29468 }
29469 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29470 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29471 }
29472 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29473 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29474 }
29475 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29476 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29477 }
29478 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29479 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29480 }
29481 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29482 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29483 }
29484 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29485 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29486 }
29487 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29488 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29489 }
29490 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29491 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29492 }
29493 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29494 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29495 }
29496 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29497 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29498 }
29499 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29500 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29501 }
29502 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29503 return (void *)((wxObject *) ((wxSizerItem *) x));
29504 }
29505 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29506 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29507 }
29508 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29509 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29510 }
29511 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29512 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29513 }
29514 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29515 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29516 }
29517 static void *_p_wxSizerTo_p_wxObject(void *x) {
29518 return (void *)((wxObject *) ((wxSizer *) x));
29519 }
29520 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29521 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29522 }
29523 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29524 return (void *)((wxObject *) ((wxFileHistory *) x));
29525 }
29526 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29527 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29528 }
29529 static void *_p_wxEventTo_p_wxObject(void *x) {
29530 return (void *)((wxObject *) ((wxEvent *) x));
29531 }
29532 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29533 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29534 }
29535 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29536 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29537 }
29538 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29539 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29540 }
29541 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29542 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29543 }
29544 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29545 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29546 }
29547 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29548 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29549 }
29550 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29551 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29552 }
29553 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29554 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29555 }
29556 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29557 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29558 }
29559 static void *_p_wxControlTo_p_wxObject(void *x) {
29560 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29561 }
29562 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29563 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29564 }
29565 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29566 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29567 }
29568 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29569 return (void *)((wxObject *) ((wxFSFile *) x));
29570 }
29571 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29572 return (void *)((wxObject *) ((wxClipboard *) x));
29573 }
29574 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29575 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29576 }
29577 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29578 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29579 }
29580 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29582 }
29583 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29584 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29585 }
29586 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29587 return (void *)((wxObject *) ((wxToolTip *) x));
29588 }
29589 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29590 return (void *)((wxObject *) ((wxMenuItem *) x));
29591 }
29592 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29593 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29594 }
29595 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29596 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29597 }
29598 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29599 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29600 }
29601 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29602 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29603 }
29604 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29605 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29606 }
29607 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29608 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29609 }
29610 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29611 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29612 }
29613 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29614 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29615 }
29616 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29617 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29618 }
29619 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29620 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29621 }
29622 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29623 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29624 }
29625 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29626 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29627 }
29628 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29629 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29630 }
29631 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29632 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29633 }
29634 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29635 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29636 }
29637 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29638 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29639 }
29640 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29641 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29642 }
29643 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29644 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29645 }
29646 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29647 return (void *)((wxObject *) ((wxImageHandler *) x));
29648 }
29649 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29650 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29651 }
29652 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29653 return (void *)((wxObject *) ((wxEvtHandler *) x));
29654 }
29655 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29656 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29657 }
29658 static void *_p_wxImageTo_p_wxObject(void *x) {
29659 return (void *)((wxObject *) ((wxImage *) x));
29660 }
29661 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29662 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29663 }
29664 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29665 return (void *)((wxObject *) ((wxSystemOptions *) x));
29666 }
29667 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29668 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29669 }
29670 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29671 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29672 }
29673 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29674 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29675 }
29676 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29677 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29678 }
29679 static void *_p_wxWindowTo_p_wxObject(void *x) {
29680 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29681 }
29682 static void *_p_wxMenuTo_p_wxObject(void *x) {
29683 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29684 }
29685 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29686 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29687 }
29688 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29689 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29690 }
29691 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29692 return (void *)((wxObject *) ((wxFileSystem *) x));
29693 }
29694 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29695 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29696 }
29697 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29698 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29699 }
29700 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29701 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29702 }
29703 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29704 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29705 }
29706 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29707 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29708 }
29709 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29710 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29711 }
29712 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29713 return (void *)((wxObject *) ((wxBusyInfo *) x));
29714 }
29715 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29716 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29717 }
29718 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29719 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29720 }
29721 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29722 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29723 }
29724 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29725 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29726 }
29727 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29728 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29729 }
29730 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29731 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29732 }
29733 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29734 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29735 }
29736 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29737 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29738 }
29739 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29740 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29741 }
29742 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29743 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29744 }
29745 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29746 return (void *)((wxLog *) ((wxLogStderr *) x));
29747 }
29748 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29749 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29750 }
29751 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29752 return (void *)((wxLog *) ((wxLogWindow *) x));
29753 }
29754 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29755 return (void *)((wxLog *) ((wxLogChain *) x));
29756 }
29757 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29758 return (void *)((wxLog *) ((wxLogGui *) x));
29759 }
29760 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29761 return (void *)((wxLog *) ((wxPyLog *) x));
29762 }
29763 static void *_p_wxControlTo_p_wxWindow(void *x) {
29764 return (void *)((wxWindow *) ((wxControl *) x));
29765 }
29766 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29767 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29768 }
29769 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29770 return (void *)((wxWindow *) ((wxMenuBar *) x));
29771 }
29772 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29773 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29774 }
29775 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29776 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29777 }
29778 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}};
29779 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}};
29780 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}};
29781 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}};
29782 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}};
29783 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}};
29784 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}};
29785 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}};
29786 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}};
29787 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}};
29788 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}};
29789 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}};
29790 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}};
29791 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}};
29792 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}};
29793 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}};
29794 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}};
29795 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}};
29796 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}};
29797 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}};
29798 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}};
29799 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}};
29800 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}};
29801 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}};
29802 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}};
29803 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}};
29804 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}};
29805 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}};
29806 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}};
29807 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}};
29808 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}};
29809 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}};
29810 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}};
29811 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}};
29812 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}};
29813 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}};
29814 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}};
29815 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}};
29816 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}};
29817 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}};
29818 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}};
29819 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}};
29820 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}};
29821 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}};
29822 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}};
29823 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}};
29824 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}};
29825 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}};
29826 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}};
29827 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}};
29828 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}};
29829 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}};
29830 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}};
29831 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}};
29832 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}};
29833 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}};
29834 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}};
29835 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}};
29836 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}};
29837 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}};
29838 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}};
29839 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}};
29840 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}};
29841 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}};
29842 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}};
29843 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}};
29844 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}};
29845 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}};
29846 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}};
29847 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}};
29848 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}};
29849 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}};
29850 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}};
29851 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}};
29852 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}};
29853 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}};
29854 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}};
29855 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}};
29856 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}};
29857 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}};
29858 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}};
29859 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}};
29860 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}};
29861 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}};
29862 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}};
29863
29864 static swig_type_info *swig_types_initial[] = {
29865 _swigt__p_wxLogChain,
29866 _swigt__p_wxMutexGuiLocker,
29867 _swigt__p_wxFileHistory,
29868 _swigt__p_wxLog,
29869 _swigt__p_wxDateTime__TimeZone,
29870 _swigt__p_wxMenu,
29871 _swigt__p_wxEvent,
29872 _swigt__p_wxConfigBase,
29873 _swigt__p_wxDisplay,
29874 _swigt__p_wxFileType,
29875 _swigt__p_wxLogGui,
29876 _swigt__p_wxFont,
29877 _swigt__p_wxDataFormat,
29878 _swigt__p_wxTimerEvent,
29879 _swigt__p_wxCaret,
29880 _swigt__p_int,
29881 _swigt__p_wxSize,
29882 _swigt__p_wxClipboard,
29883 _swigt__p_wxStopWatch,
29884 _swigt__p_wxDC,
29885 _swigt__p_wxClipboardLocker,
29886 _swigt__p_wxIcon,
29887 _swigt__p_wxLogStderr,
29888 _swigt__p_wxLogTextCtrl,
29889 _swigt__p_wxTextCtrl,
29890 _swigt__p_wxBusyCursor,
29891 _swigt__p_wxPyBitmapDataObject,
29892 _swigt__p_wxPyTextDataObject,
29893 _swigt__p_wxBitmapDataObject,
29894 _swigt__p_wxTextDataObject,
29895 _swigt__p_wxDataObject,
29896 _swigt__p_wxFileDataObject,
29897 _swigt__p_wxCustomDataObject,
29898 _swigt__p_wxURLDataObject,
29899 _swigt__p_wxMetafileDataObject,
29900 _swigt__p_wxSound,
29901 _swigt__p_wxTimerRunner,
29902 _swigt__p_wxLogWindow,
29903 _swigt__p_wxTimeSpan,
29904 _swigt__p_wxArrayString,
29905 _swigt__p_wxWindowDisabler,
29906 _swigt__p_wxToolTip,
29907 _swigt__p_wxDataObjectComposite,
29908 _swigt__p_wxFileConfig,
29909 _swigt__p_wxSystemSettings,
29910 _swigt__p_wxVideoMode,
29911 _swigt__p_wxPyDataObjectSimple,
29912 _swigt__p_wxDataObjectSimple,
29913 _swigt__p_wxEvtHandler,
29914 _swigt__p_wxRect,
29915 _swigt__p_char,
29916 _swigt__p_wxSingleInstanceChecker,
29917 _swigt__p_wxFileTypeInfo,
29918 _swigt__p_wxFrame,
29919 _swigt__p_wxTimer,
29920 _swigt__p_wxMimeTypesManager,
29921 _swigt__p_wxPyArtProvider,
29922 _swigt__p_wxPyTipProvider,
29923 _swigt__p_wxTipProvider,
29924 _swigt__p_wxJoystick,
29925 _swigt__p_wxSystemOptions,
29926 _swigt__p_wxPoint,
29927 _swigt__p_wxJoystickEvent,
29928 _swigt__p_wxCursor,
29929 _swigt__p_wxObject,
29930 _swigt__p_wxOutputStream,
29931 _swigt__p_wxDateTime,
29932 _swigt__p_wxPyDropSource,
29933 _swigt__p_wxWindow,
29934 _swigt__p_wxString,
29935 _swigt__p_wxPyProcess,
29936 _swigt__p_wxBitmap,
29937 _swigt__p_wxConfig,
29938 _swigt__p_wxChar,
29939 _swigt__p_wxBusyInfo,
29940 _swigt__p_wxPyDropTarget,
29941 _swigt__p_wxPyTextDropTarget,
29942 _swigt__p_wxPyFileDropTarget,
29943 _swigt__p_wxProcessEvent,
29944 _swigt__p_wxPyLog,
29945 _swigt__p_wxLogNull,
29946 _swigt__p_wxColour,
29947 _swigt__p_wxConfigPathChanger,
29948 _swigt__p_wxPyTimer,
29949 _swigt__p_wxDateSpan,
29950 0
29951 };
29952
29953
29954 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29955
29956 static swig_const_info swig_const_table[] = {
29957 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29958 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29959 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29960 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29961 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29962 {0, 0, 0, 0.0, 0, 0}};
29963
29964 #ifdef __cplusplus
29965 }
29966 #endif
29967
29968 #ifdef __cplusplus
29969 extern "C"
29970 #endif
29971 SWIGEXPORT(void) SWIG_init(void) {
29972 static PyObject *SWIG_globals = 0;
29973 static int typeinit = 0;
29974 PyObject *m, *d;
29975 int i;
29976 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29977 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29978 d = PyModule_GetDict(m);
29979
29980 if (!typeinit) {
29981 for (i = 0; swig_types_initial[i]; i++) {
29982 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29983 }
29984 typeinit = 1;
29985 }
29986 SWIG_InstallConstants(d,swig_const_table);
29987
29988 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT));
29989 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT));
29990 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT));
29991 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT));
29992 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT));
29993 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE));
29994 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT));
29995 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT));
29996 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT));
29997 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR));
29998 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND));
29999 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP));
30000 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION));
30001 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION));
30002 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU));
30003 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW));
30004 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME));
30005 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT));
30006 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT));
30007 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT));
30008 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER));
30009 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER));
30010 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE));
30011 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT));
30012 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
30013 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE));
30014 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE));
30015 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW));
30016 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW));
30017 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT));
30018 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT));
30019 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
30020 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT));
30021 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT));
30022 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT));
30023 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT));
30024 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW));
30025 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT));
30026 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT));
30027 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK));
30028 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX));
30029 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT));
30030 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
30031 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
30032 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT));
30033 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR));
30034 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX));
30035 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS));
30036 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X));
30037 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y));
30038 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X));
30039 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y));
30040 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X));
30041 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y));
30042 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X));
30043 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y));
30044 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X));
30045 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y));
30046 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X));
30047 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y));
30048 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X));
30049 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X));
30050 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y));
30051 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X));
30052 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y));
30053 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X));
30054 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y));
30055 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X));
30056 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y));
30057 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X));
30058 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y));
30059 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X));
30060 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y));
30061 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y));
30062 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X));
30063 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X));
30064 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y));
30065 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y));
30066 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y));
30067 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y));
30068 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT));
30069 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT));
30070 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS));
30071 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS));
30072 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30073 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME));
30074 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE));
30075 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY));
30076 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA));
30077 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL));
30078 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP));
30079 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
30080 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30081 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30082 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
30083 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF));
30084 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT));
30085 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS));
30086 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT));
30087 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
30088
30089 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30090
30091 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError));
30092 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error));
30093 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning));
30094 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message));
30095 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status));
30096 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info));
30097 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug));
30098 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace));
30099 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress));
30100 PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User));
30101 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max));
30102 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30103 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30104 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30105 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30106 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
30107 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001));
30108 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002));
30109 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004));
30110 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008));
30111 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100));
30112 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT));
30113 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT));
30114 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK));
30115 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL));
30116 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED));
30117 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS));
30118 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR));
30119 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE));
30120 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP));
30121 PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT));
30122 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT));
30123 PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL));
30124 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP));
30125 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT));
30126 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT));
30127 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT));
30128 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE));
30129 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL));
30130 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS));
30131 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV));
30132 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS));
30133 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE));
30134 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM));
30135 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM));
30136 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
30137 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC));
30138 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC));
30139 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE));
30140 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER));
30141
30142 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30143
30144 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1));
30145 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2));
30146 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY));
30147 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1));
30148 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2));
30149 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3));
30150 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4));
30151 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30152 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30153 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30154 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
30155 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC));
30156 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC));
30157 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP));
30158 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD));
30159 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE));
30160 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE));
30161 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME));
30162 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL));
30163 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30164 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30165 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30166 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30167 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30168 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30169 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
30170 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
30171 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30172 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30173 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30174 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30175 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30176 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30177 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30178 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30179 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30180 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30181 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30182 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30183 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30184 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30185 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30186 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30187 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30188 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30189 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30190 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30191 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30192 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30193 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30194 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30195 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30196 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30197 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30198 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30199 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30200 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30201 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30202 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30203
30204 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30205
30206 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE));
30207 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE));
30208 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH));
30209 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30210 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown));
30211 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String));
30212 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean));
30213 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer));
30214 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float));
30215 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30216 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30217 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local));
30218 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12));
30219 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11));
30220 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10));
30221 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9));
30222 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8));
30223 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7));
30224 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6));
30225 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5));
30226 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4));
30227 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3));
30228 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2));
30229 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1));
30230 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0));
30231 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1));
30232 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2));
30233 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3));
30234 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4));
30235 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5));
30236 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6));
30237 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7));
30238 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8));
30239 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9));
30240 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10));
30241 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11));
30242 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12));
30243 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET));
30244 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST));
30245 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET));
30246 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST));
30247 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET));
30248 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST));
30249 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK));
30250 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD));
30251 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST));
30252 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT));
30253 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST));
30254 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT));
30255 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST));
30256 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT));
30257 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST));
30258 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT));
30259 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST));
30260 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT));
30261 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST));
30262 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST));
30263 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT));
30264 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST));
30265 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST));
30266 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST));
30267 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST));
30268 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC));
30269 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian));
30270 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian));
30271 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown));
30272 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard));
30273 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska));
30274 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania));
30275 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria));
30276 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen));
30277 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg));
30278 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol));
30279 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia));
30280 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria));
30281 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium));
30282 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria));
30283 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1));
30284 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2));
30285 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3));
30286 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada));
30287 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China));
30288 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1));
30289 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2));
30290 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia));
30291 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark));
30292 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt));
30293 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia));
30294 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland));
30295 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France));
30296 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace));
30297 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine));
30298 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg));
30299 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany));
30300 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic));
30301 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia));
30302 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant));
30303 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain));
30304 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece));
30305 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary));
30306 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland));
30307 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy));
30308 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan));
30309 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1));
30310 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2));
30311 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3));
30312 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia));
30313 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania));
30314 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg));
30315 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands));
30316 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen));
30317 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland));
30318 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht));
30319 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland));
30320 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway));
30321 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland));
30322 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal));
30323 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania));
30324 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia));
30325 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland));
30326 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain));
30327 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden));
30328 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland));
30329 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic));
30330 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant));
30331 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey));
30332 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA));
30333 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales));
30334 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia));
30335 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown));
30336 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default));
30337 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start));
30338 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC));
30339 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France));
30340 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany));
30341 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK));
30342 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End));
30343 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia));
30344 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA));
30345 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan));
30346 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb));
30347 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar));
30348 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr));
30349 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May));
30350 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun));
30351 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul));
30352 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug));
30353 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep));
30354 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct));
30355 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov));
30356 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec));
30357 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month));
30358 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun));
30359 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon));
30360 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue));
30361 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed));
30362 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu));
30363 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri));
30364 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat));
30365 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay));
30366 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year));
30367 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full));
30368 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr));
30369 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First));
30370 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First));
30371 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First));
30372 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30373 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID));
30374 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT));
30375 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP));
30376 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE));
30377 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK));
30378 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF));
30379 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF));
30380 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT));
30381 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB));
30382 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE));
30383 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA));
30384 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF));
30385 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE));
30386 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT));
30387 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE));
30388 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME));
30389 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE));
30390 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE));
30391 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML));
30392 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX));
30393 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30394 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get));
30395 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set));
30396 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both));
30397 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly));
30398 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove));
30399 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove));
30400 PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError));
30401 PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone));
30402 PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy));
30403 PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove));
30404 PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink));
30405 PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel));
30406
30407 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30408 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30409 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30410 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30411
30412 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30413 }
30414