]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_misc_wrap.cpp
grid/dbgrid was not getting built for inclusion with this project
[wxWidgets.git] / wxPython / src / mac / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxMetafile swig_types[2]
212 #define SWIGTYPE_p_wxFileHistory swig_types[3]
213 #define SWIGTYPE_p_wxLog swig_types[4]
214 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215 #define SWIGTYPE_p_wxMenu swig_types[6]
216 #define SWIGTYPE_p_wxEvent swig_types[7]
217 #define SWIGTYPE_p_wxConfigBase swig_types[8]
218 #define SWIGTYPE_p_wxDisplay swig_types[9]
219 #define SWIGTYPE_p_wxFileType swig_types[10]
220 #define SWIGTYPE_p_wxLogGui swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxDataFormat swig_types[13]
223 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
224 #define SWIGTYPE_p_wxCaret swig_types[15]
225 #define SWIGTYPE_p_int swig_types[16]
226 #define SWIGTYPE_p_wxSize swig_types[17]
227 #define SWIGTYPE_p_wxClipboard swig_types[18]
228 #define SWIGTYPE_p_wxStopWatch swig_types[19]
229 #define SWIGTYPE_p_wxDC swig_types[20]
230 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231 #define SWIGTYPE_p_wxIcon swig_types[22]
232 #define SWIGTYPE_p_wxLogStderr swig_types[23]
233 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
235 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
236 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
239 #define SWIGTYPE_p_wxTextDataObject swig_types[30]
240 #define SWIGTYPE_p_wxDataObject swig_types[31]
241 #define SWIGTYPE_p_wxFileDataObject swig_types[32]
242 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243 #define SWIGTYPE_p_wxURLDataObject swig_types[34]
244 #define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245 #define SWIGTYPE_p_wxSound swig_types[36]
246 #define SWIGTYPE_p_wxTimerRunner swig_types[37]
247 #define SWIGTYPE_p_wxLogWindow swig_types[38]
248 #define SWIGTYPE_p_wxTimeSpan swig_types[39]
249 #define SWIGTYPE_p_wxArrayString swig_types[40]
250 #define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251 #define SWIGTYPE_p_wxToolTip swig_types[42]
252 #define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253 #define SWIGTYPE_p_wxFileConfig swig_types[44]
254 #define SWIGTYPE_p_wxSystemSettings swig_types[45]
255 #define SWIGTYPE_p_wxVideoMode swig_types[46]
256 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
259 #define SWIGTYPE_p_wxRect swig_types[50]
260 #define SWIGTYPE_p_char swig_types[51]
261 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262 #define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263 #define SWIGTYPE_p_wxFrame swig_types[54]
264 #define SWIGTYPE_p_wxTimer swig_types[55]
265 #define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266 #define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267 #define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxTipProvider swig_types[59]
269 #define SWIGTYPE_p_wxJoystick swig_types[60]
270 #define SWIGTYPE_p_wxSystemOptions swig_types[61]
271 #define SWIGTYPE_p_wxPoint swig_types[62]
272 #define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273 #define SWIGTYPE_p_wxCursor swig_types[64]
274 #define SWIGTYPE_p_wxObject swig_types[65]
275 #define SWIGTYPE_p_wxOutputStream swig_types[66]
276 #define SWIGTYPE_p_wxDateTime swig_types[67]
277 #define SWIGTYPE_p_wxPyDropSource swig_types[68]
278 #define SWIGTYPE_p_wxWindow swig_types[69]
279 #define SWIGTYPE_p_wxString swig_types[70]
280 #define SWIGTYPE_p_wxPyProcess swig_types[71]
281 #define SWIGTYPE_p_wxBitmap swig_types[72]
282 #define SWIGTYPE_p_wxConfig swig_types[73]
283 #define SWIGTYPE_p_wxChar swig_types[74]
284 #define SWIGTYPE_p_wxBusyInfo swig_types[75]
285 #define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288 #define SWIGTYPE_p_wxProcessEvent swig_types[79]
289 #define SWIGTYPE_p_wxPyLog swig_types[80]
290 #define SWIGTYPE_p_wxLogNull swig_types[81]
291 #define SWIGTYPE_p_wxColour swig_types[82]
292 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293 #define SWIGTYPE_p_wxPyTimer swig_types[84]
294 #define SWIGTYPE_p_wxDateSpan swig_types[85]
295 static swig_type_info *swig_types[87];
296
297 /* -------- TYPES TABLE (END) -------- */
298
299
300 /*-----------------------------------------------
301 @(target):= _misc_.so
302 ------------------------------------------------*/
303 #define SWIG_init init_misc_
304
305 #define SWIG_name "_misc_"
306
307 /* Auxiliar swig macros */
308
309 #ifdef __cplusplus
310 #define SWIGSTATICINLINE(a) static inline a
311 #define SWIGSTATIC(a) static a
312 #define swig_new_array(type, size) (new type[(size)])
313 #define swig_delete_array(cptr) delete[] cptr
314 #define swig_const_cast(type,a) const_cast<type>(a)
315 #define swig_static_cast(type,a) static_cast<type>(a)
316 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318 #ifdef HAVE_NUMERIC_CAST
319 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
320 #else
321 #define swig_numeric_cast(type,a) static_cast<type>(a)
322 #endif
323
324 #else /* C case */
325
326 #define SWIGSTATICINLINE(a) static a
327 #define SWIGSTATIC(a) static a
328 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329 #define swig_delete_array(cptr) free((char*)cptr)
330 #define swig_const_cast(type,a) (type)(a)
331 #define swig_static_cast(type,a) (type)(a)
332 #define swig_reinterpret_cast(type,a) (type)(a)
333 #define swig_numeric_cast(type,a) (type)(a)
334
335 #endif /* __cplusplus */
336
337
338 #define SWIG_FromSignedChar PyInt_FromLong
339 #define SWIG_FromUnsignedChar PyInt_FromLong
340 #define SWIG_FromShort PyInt_FromLong
341 #define SWIG_FromUnsignedShort PyInt_FromLong
342 #define SWIG_FromInt PyInt_FromLong
343 #define SWIG_FromLong PyInt_FromLong
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346 #define SWIG_FromFloat PyFloat_FromDouble
347 #define SWIG_FromDouble PyFloat_FromDouble
348
349
350 #include "wx/wxPython/wxPython.h"
351 #include "wx/wxPython/pyclasses.h"
352 #include "wx/wxPython/pyistream.h"
353
354
355 static const wxString wxPyEmptyString(wxEmptyString);
356
357
358
359 #include <limits.h>
360
361
362 SWIGSTATICINLINE(long)
363 SWIG_CheckLongInRange(long value, const char* type,
364 long min_value, long max_value)
365 {
366 if (!PyErr_Occurred()) {
367 if (value < min_value) {
368 PyObject *err =
369 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
370 value, type, min_value);
371
372 PyErr_SetObject(PyExc_OverflowError, err);
373 Py_DECREF(err);
374 } else if (value > max_value) {
375 PyObject *err =
376 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
377 value, type, max_value);
378 PyErr_SetObject(PyExc_OverflowError, err);
379 Py_DECREF(err);
380 }
381 }
382 return value;
383 }
384
385
386 SWIGSTATICINLINE(long)
387 SWIG_AsLong(PyObject * obj)
388 {
389 if (PyNumber_Check(obj))
390 return PyInt_AsLong(obj);
391 else {
392 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
393 obj->ob_type->tp_name);
394 PyErr_SetObject(PyExc_TypeError, errmsg);
395 Py_DECREF(errmsg);
396 return 0;
397 }
398 }
399
400
401 #if INT_MAX != LONG_MAX
402 SWIGSTATICINLINE(int)
403 SWIG_AsInt(PyObject *obj)
404 {
405 return swig_numeric_cast(int,
406 SWIG_CheckLongInRange(SWIG_AsLong(obj),
407 "int", INT_MIN, INT_MAX));
408 }
409 #else
410 #define SWIG_AsInt SWIG_AsLong
411 #endif
412
413
414 SWIGSTATICINLINE(int)
415 SWIG_CheckInt(PyObject* obj)
416 {
417 SWIG_AsInt(obj);
418 if (PyErr_Occurred()) {
419 PyErr_Clear();
420 return 0;
421 } else {
422 return 1;
423 }
424 }
425
426 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
427 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
428 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
429
430 SWIGSTATICINLINE(int)
431 SWIG_CheckLong(PyObject* obj)
432 {
433 SWIG_AsLong(obj);
434 if (PyErr_Occurred()) {
435 PyErr_Clear();
436 return 0;
437 } else {
438 return 1;
439 }
440 }
441
442
443 SWIGSTATICINLINE(bool)
444 SWIG_AsBool(PyObject *obj)
445 {
446 return PyObject_IsTrue(obj) ? true : false;
447 }
448
449
450 SWIGSTATICINLINE(int)
451 SWIG_CheckBool(PyObject* obj)
452 {
453 SWIG_AsBool(obj);
454 if (PyErr_Occurred()) {
455 PyErr_Clear();
456 return 0;
457 } else {
458 return 1;
459 }
460 }
461
462
463 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
464 PyObject* o2;
465 PyObject* o3;
466
467 if (!target) {
468 target = o;
469 } else if (target == Py_None) {
470 Py_DECREF(Py_None);
471 target = o;
472 } else {
473 if (!PyTuple_Check(target)) {
474 o2 = target;
475 target = PyTuple_New(1);
476 PyTuple_SetItem(target, 0, o2);
477 }
478 o3 = PyTuple_New(1);
479 PyTuple_SetItem(o3, 0, o);
480
481 o2 = target;
482 target = PySequence_Concat(o2, o3);
483 Py_DECREF(o2);
484 Py_DECREF(o3);
485 }
486 return target;
487 }
488
489
490 SWIGSTATICINLINE(unsigned long)
491 SWIG_AsUnsignedLong(PyObject * obj)
492 {
493 if (PyLong_Check(obj)) {
494 return PyLong_AsUnsignedLong(obj);
495 } else {
496 long i = SWIG_AsLong(obj);
497 if ( !PyErr_Occurred() && (i < 0)) {
498 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
499 }
500 return i;
501 }
502 }
503
504
505 SWIGSTATICINLINE(int)
506 SWIG_CheckUnsignedLong(PyObject* obj)
507 {
508 SWIG_AsUnsignedLong(obj);
509 if (PyErr_Occurred()) {
510 PyErr_Clear();
511 return 0;
512 } else {
513 return 1;
514 }
515 }
516
517
518 SWIGSTATICINLINE(PyObject* )
519 SWIG_FromUnsignedLong(unsigned long value)
520 {
521 return (value > LONG_MAX) ?
522 PyLong_FromUnsignedLong(value)
523 : PyInt_FromLong(swig_numeric_cast(long,value));
524 }
525
526
527 bool wxThread_IsMain() {
528 #ifdef WXP_WITH_THREAD
529 return wxThread::IsMain();
530 #else
531 return True;
532 #endif
533 }
534
535
536 int wxCaret_GetBlinkTime() {
537 return wxCaret::GetBlinkTime();
538 }
539
540 void wxCaret_SetBlinkTime(int milliseconds) {
541 wxCaret::SetBlinkTime(milliseconds);
542 }
543
544
545 #include <wx/snglinst.h>
546
547
548 #ifdef __WXMSW__
549 #include <wx/msw/private.h>
550 #include <wx/dynload.h>
551 #endif
552
553
554
555 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
556 {
557 #ifdef __WXMSW__
558
559 switch (method)
560 {
561 case 1:
562 // This one only partially works. Appears to be an undocumented
563 // "standard" convention that not all widgets adhear to. For
564 // example, for some widgets backgrounds or non-client areas may
565 // not be painted.
566 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
567 break;
568
569 case 2:
570 // This one works much better, except for on XP. On Win2k nearly
571 // all widgets and their children are captured correctly[**]. On
572 // XP with Themes activated most native widgets draw only
573 // partially, if at all. Without themes it works just like on
574 // Win2k.
575 //
576 // ** For example the radio buttons in a wxRadioBox are not its
577 // children by default, but you can capture it via the panel
578 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
579 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
580 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
581 PRF_ERASEBKGND | PRF_OWNED );
582 break;
583
584 case 3:
585 // This one is only defined in the latest SDK and is only
586 // available on XP. MSDN says it is similar to sending WM_PRINT
587 // so I expect that it will work similar to the above. Since it
588 // is avaialble only on XP, it can't be compiled like this and
589 // will have to be loaded dynamically.
590 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
591
592 // fall through
593
594 case 4:
595 // Use PrintWindow if available, or fallback to WM_PRINT
596 // otherwise. Unfortunately using PrintWindow is even worse than
597 // WM_PRINT. For most native widgets nothing is drawn to the dc
598 // at all, with or without Themes.
599 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
600 static bool s_triedToLoad = False;
601 static PrintWindow_t pfnPrintWindow = NULL;
602 if ( !s_triedToLoad )
603 {
604
605 s_triedToLoad = True;
606 wxDynamicLibrary dllUser32(_T("user32.dll"));
607 if ( dllUser32.IsLoaded() )
608 {
609 wxLogNull nolog; // Don't report errors here
610 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
611 }
612 }
613 if (pfnPrintWindow)
614 {
615 printf("Using PrintWindow\n");
616 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
617 }
618 else
619 {
620 printf("Using WM_PRINT\n");
621 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
622 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
623 }
624 }
625 #endif
626 }
627
628
629
630 #include <wx/tipdlg.h>
631
632
633 class wxPyTipProvider : public wxTipProvider {
634 public:
635 wxPyTipProvider(size_t currentTip)
636 : wxTipProvider(currentTip) {}
637
638 DEC_PYCALLBACK_STRING__pure(GetTip);
639 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
640 PYPRIVATE;
641 };
642
643 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
644 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
645
646
647 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
648
649 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
650
651 void wxPyTimer::Notify() {
652 bool found;
653 bool blocked = wxPyBeginBlockThreads();
654 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
655 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
656 wxPyEndBlockThreads(blocked);
657 if (! found)
658 wxTimer::Notify();
659 }
660 void wxPyTimer::base_Notify() {
661 wxTimer::Notify();
662 }
663
664
665
666 SWIGSTATICINLINE(PyObject *)
667 SWIG_FromCharPtr(const char* cptr)
668 {
669 size_t size = cptr ? strlen(cptr) : 0;
670 if (cptr) {
671 if (size > INT_MAX) {
672 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
673 SWIG_TypeQuery("char *"), 0);
674 } else {
675 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
676 }
677 } else {
678 Py_INCREF(Py_None);
679 return Py_None;
680 }
681 }
682
683
684 SWIGSTATICINLINE(unsigned long)
685 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
686 unsigned long max_value)
687 {
688 if (!PyErr_Occurred()) {
689 if (value > max_value) {
690 PyObject *err =
691 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
692 value, type, max_value);
693 PyErr_SetObject(PyExc_OverflowError, err);
694 Py_DECREF(err);
695 }
696 }
697 return value;
698 }
699
700
701 #if UINT_MAX != ULONG_MAX
702 SWIGSTATICINLINE(unsigned int)
703 SWIG_AsUnsignedInt(PyObject *obj)
704 {
705 return swig_numeric_cast(unsigned int,
706 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
707 "unsigned int", UINT_MAX));
708 }
709 #else
710 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
711 #endif
712
713
714 SWIGSTATICINLINE(int)
715 SWIG_CheckUnsignedInt(PyObject* obj)
716 {
717 SWIG_AsUnsignedInt(obj);
718 if (PyErr_Occurred()) {
719 PyErr_Clear();
720 return 0;
721 } else {
722 return 1;
723 }
724 }
725
726 wxString Log_TimeStamp(){
727 wxString msg;
728 wxLog::TimeStamp(&msg);
729 return msg;
730 }
731 void wxLog_Destroy(wxLog *self){ delete self; }
732
733 // A wxLog class that can be derived from in wxPython
734 class wxPyLog : public wxLog {
735 public:
736 wxPyLog() : wxLog() {}
737
738 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
739 bool found;
740 bool blocked = wxPyBeginBlockThreads();
741 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
742 PyObject* s = wx2PyString(szString);
743 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
744 Py_DECREF(s);
745 }
746 wxPyEndBlockThreads(blocked);
747 if (! found)
748 wxLog::DoLog(level, szString, t);
749 }
750
751 virtual void DoLogString(const wxChar *szString, time_t t) {
752 bool found;
753 bool blocked = wxPyBeginBlockThreads();
754 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
755 PyObject* s = wx2PyString(szString);
756 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
757 Py_DECREF(s);
758 }
759 wxPyEndBlockThreads(blocked);
760 if (! found)
761 wxLog::DoLogString(szString, t);
762 }
763
764 PYPRIVATE;
765 };
766
767
768
769
770 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
771
772
773 #include <wx/joystick.h>
774
775
776 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
777 // A C++ stub class for wxJoystick for platforms that don't have it.
778 class wxJoystick : public wxObject {
779 public:
780 wxJoystick(int joystick = wxJOYSTICK1) {
781 bool blocked = wxPyBeginBlockThreads();
782 PyErr_SetString(PyExc_NotImplementedError,
783 "wxJoystick is not available on this platform.");
784 wxPyEndBlockThreads(blocked);
785 }
786 wxPoint GetPosition() { return wxPoint(-1,-1); }
787 int GetZPosition() { return -1; }
788 int GetButtonState() { return -1; }
789 int GetPOVPosition() { return -1; }
790 int GetPOVCTSPosition() { return -1; }
791 int GetRudderPosition() { return -1; }
792 int GetUPosition() { return -1; }
793 int GetVPosition() { return -1; }
794 int GetMovementThreshold() { return -1; }
795 void SetMovementThreshold(int threshold) {}
796
797 bool IsOk(void) { return False; }
798 int GetNumberJoysticks() { return -1; }
799 int GetManufacturerId() { return -1; }
800 int GetProductId() { return -1; }
801 wxString GetProductName() { return wxEmptyString; }
802 int GetXMin() { return -1; }
803 int GetYMin() { return -1; }
804 int GetZMin() { return -1; }
805 int GetXMax() { return -1; }
806 int GetYMax() { return -1; }
807 int GetZMax() { return -1; }
808 int GetNumberButtons() { return -1; }
809 int GetNumberAxes() { return -1; }
810 int GetMaxButtons() { return -1; }
811 int GetMaxAxes() { return -1; }
812 int GetPollingMin() { return -1; }
813 int GetPollingMax() { return -1; }
814 int GetRudderMin() { return -1; }
815 int GetRudderMax() { return -1; }
816 int GetUMin() { return -1; }
817 int GetUMax() { return -1; }
818 int GetVMin() { return -1; }
819 int GetVMax() { return -1; }
820
821 bool HasRudder() { return False; }
822 bool HasZ() { return False; }
823 bool HasU() { return False; }
824 bool HasV() { return False; }
825 bool HasPOV() { return False; }
826 bool HasPOV4Dir() { return False; }
827 bool HasPOVCTS() { return False; }
828
829 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
830 bool ReleaseCapture() { return False; }
831 };
832 #endif
833
834
835 #include <wx/sound.h>
836
837
838 #if !wxUSE_SOUND
839 // A C++ stub class for wxWave for platforms that don't have it.
840 class wxSound : public wxObject
841 {
842 public:
843 wxSound() {
844 bool blocked = wxPyBeginBlockThreads();
845 PyErr_SetString(PyExc_NotImplementedError,
846 "wxSound is not available on this platform.");
847 wxPyEndBlockThreads(blocked);
848 }
849 wxSound(const wxString&/*, bool*/) {
850 bool blocked = wxPyBeginBlockThreads();
851 PyErr_SetString(PyExc_NotImplementedError,
852 "wxSound is not available on this platform.");
853 wxPyEndBlockThreads(blocked);
854 }
855 wxSound(int, const wxByte*) {
856 bool blocked = wxPyBeginBlockThreads();
857 PyErr_SetString(PyExc_NotImplementedError,
858 "wxSound is not available on this platform.");
859 wxPyEndBlockThreads(blocked);
860 }
861
862 ~wxSound() {};
863
864 bool Create(const wxString&/*, bool*/) { return false; }
865 bool Create(int, const wxByte*) { return false; };
866 bool IsOk() { return false; };
867 bool Play(unsigned) const { return false; }
868 static bool Play(const wxString&, unsigned) { return false; }
869 static void Stop() {}
870 };
871
872 #endif
873
874 wxSound *new_wxSound(wxString const &fileName){
875 if (fileName.Length() == 0)
876 return new wxSound;
877 else
878 return new wxSound(fileName);
879 }
880 wxSound *new_wxSound(PyObject *data){
881 unsigned char* buffer; int size;
882 wxSound *sound = NULL;
883
884 bool blocked = wxPyBeginBlockThreads();
885 if (!PyArg_Parse(data, "t#", &buffer, &size))
886 goto done;
887 sound = new wxSound(size, buffer);
888 done:
889 wxPyEndBlockThreads(blocked);
890 return sound;
891 }
892 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
893 #ifndef __WXMAC__
894 unsigned char* buffer;
895 int size;
896 bool rv = False;
897
898 bool blocked = wxPyBeginBlockThreads();
899 if (!PyArg_Parse(data, "t#", &buffer, &size))
900 goto done;
901 rv = self->Create(size, buffer);
902 done:
903 wxPyEndBlockThreads(blocked);
904 return rv;
905 #else
906 bool blocked = wxPyBeginBlockThreads();
907 PyErr_SetString(PyExc_NotImplementedError,
908 "Create from data is not available on this platform.");
909 wxPyEndBlockThreads(blocked);
910 return False;
911 #endif
912 }
913 void Sound_Stop(){ wxPyRaiseNotImplemented(); }
914
915 #include <wx/mimetype.h>
916
917 PyObject *wxFileType_GetMimeType(wxFileType *self){
918 wxString str;
919 if (self->GetMimeType(&str))
920 return wx2PyString(str);
921 else
922 RETURN_NONE();
923 }
924 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
925 wxArrayString arr;
926 if (self->GetMimeTypes(arr))
927 return wxArrayString2PyList_helper(arr);
928 else
929 RETURN_NONE();
930 }
931 PyObject *wxFileType_GetExtensions(wxFileType *self){
932 wxArrayString arr;
933 if (self->GetExtensions(arr))
934 return wxArrayString2PyList_helper(arr);
935 else
936 RETURN_NONE();
937 }
938 wxIcon *wxFileType_GetIcon(wxFileType *self){
939 wxIconLocation loc;
940 if (self->GetIcon(&loc))
941 return new wxIcon(loc);
942 else
943 return NULL;
944 }
945 PyObject *wxFileType_GetIconInfo(wxFileType *self){
946 wxIconLocation loc;
947 if (self->GetIcon(&loc)) {
948 wxString iconFile = loc.GetFileName();
949 int iconIndex = -1;
950
951
952
953 // Make a tuple and put the values in it
954 bool blocked = wxPyBeginBlockThreads();
955 PyObject* tuple = PyTuple_New(3);
956 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
957 wxT("wxIcon"), True));
958 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
959 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
960 wxPyEndBlockThreads(blocked);
961 return tuple;
962 }
963 else
964 RETURN_NONE();
965 }
966 PyObject *wxFileType_GetDescription(wxFileType *self){
967 wxString str;
968 if (self->GetDescription(&str))
969 return wx2PyString(str);
970 else
971 RETURN_NONE();
972 }
973 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
974 wxString str;
975 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
976 return wx2PyString(str);
977 else
978 RETURN_NONE();
979 }
980 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
981 wxString str;
982 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
983 return wx2PyString(str);
984 else
985 RETURN_NONE();
986 }
987 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
988 wxArrayString verbs;
989 wxArrayString commands;
990 if (self->GetAllCommands(&verbs, &commands,
991 wxFileType::MessageParameters(filename, mimetype))) {
992 bool blocked = wxPyBeginBlockThreads();
993 PyObject* tuple = PyTuple_New(2);
994 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
995 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
996 wxPyEndBlockThreads(blocked);
997 return tuple;
998 }
999 else
1000 RETURN_NONE();
1001 }
1002 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1003 return wxFileType::ExpandCommand(command,
1004 wxFileType::MessageParameters(filename, mimetype));
1005 }
1006 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1007 wxArrayString arr;
1008 self->EnumAllFileTypes(arr);
1009 return wxArrayString2PyList_helper(arr);
1010 }
1011
1012 #include <wx/artprov.h>
1013
1014 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1015 static const wxString wxPyART_MENU(wxART_MENU);
1016 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1017 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1018 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1019 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1020 static const wxString wxPyART_OTHER(wxART_OTHER);
1021 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1022 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1023 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1024 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1025 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1026 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1027 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1028 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1029 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1030 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1031 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1032 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1033 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1034 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1035 static const wxString wxPyART_PRINT(wxART_PRINT);
1036 static const wxString wxPyART_HELP(wxART_HELP);
1037 static const wxString wxPyART_TIP(wxART_TIP);
1038 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1039 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1040 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1041 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1042 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1043 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1044 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1045 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1046 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1047 static const wxString wxPyART_ERROR(wxART_ERROR);
1048 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1049 static const wxString wxPyART_WARNING(wxART_WARNING);
1050 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1051 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1052 // Python aware wxArtProvider
1053 class wxPyArtProvider : public wxArtProvider {
1054 public:
1055
1056 virtual wxBitmap CreateBitmap(const wxArtID& id,
1057 const wxArtClient& client,
1058 const wxSize& size) {
1059 wxBitmap rval = wxNullBitmap;
1060 bool blocked = wxPyBeginBlockThreads();
1061 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1062 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1063 PyObject* ro;
1064 wxBitmap* ptr;
1065 PyObject* s1, *s2;
1066 s1 = wx2PyString(id);
1067 s2 = wx2PyString(client);
1068 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1069 Py_DECREF(so);
1070 Py_DECREF(s1);
1071 Py_DECREF(s2);
1072 if (ro) {
1073 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1074 rval = *ptr;
1075 Py_DECREF(ro);
1076 }
1077 }
1078 wxPyEndBlockThreads(blocked);
1079 return rval;
1080 }
1081
1082 PYPRIVATE;
1083 };
1084
1085 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1086
1087
1088
1089 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1090 PyObject* ret = PyTuple_New(3);
1091 if (ret) {
1092 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1093 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1094 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1095 }
1096 return ret;
1097 }
1098
1099 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1100 bool cont;
1101 long index = 0;
1102 wxString value;
1103
1104 cont = self->GetFirstGroup(value, index);
1105 return __EnumerationHelper(cont, value, index);
1106 }
1107 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1108 bool cont;
1109 wxString value;
1110
1111 cont = self->GetNextGroup(value, index);
1112 return __EnumerationHelper(cont, value, index);
1113 }
1114 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1115 bool cont;
1116 long index = 0;
1117 wxString value;
1118
1119 cont = self->GetFirstEntry(value, index);
1120 return __EnumerationHelper(cont, value, index);
1121 }
1122 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1123 bool cont;
1124 wxString value;
1125
1126 cont = self->GetNextEntry(value, index);
1127 return __EnumerationHelper(cont, value, index);
1128 }
1129 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1130 long rv;
1131 self->Read(key, &rv, defaultVal);
1132 return rv;
1133 }
1134
1135 SWIGSTATICINLINE(double)
1136 SWIG_AsDouble(PyObject *obj)
1137 {
1138 if (PyNumber_Check(obj))
1139 return PyFloat_AsDouble(obj);
1140 else {
1141 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1142 obj->ob_type->tp_name);
1143 PyErr_SetObject(PyExc_TypeError, errmsg);
1144 Py_DECREF(errmsg);
1145 return 0;
1146 }
1147 }
1148
1149
1150 SWIGSTATICINLINE(int)
1151 SWIG_CheckDouble(PyObject* obj)
1152 {
1153 SWIG_AsDouble(obj);
1154 if (PyErr_Occurred()) {
1155 PyErr_Clear();
1156 return 0;
1157 } else {
1158 return 1;
1159 }
1160 }
1161
1162 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1163 double rv;
1164 self->Read(key, &rv, defaultVal);
1165 return rv;
1166 }
1167 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1168 bool rv;
1169 self->Read(key, &rv, defaultVal);
1170 return rv;
1171 }
1172
1173 #include <wx/datetime.h>
1174
1175
1176 static const wxString wxPyDateFormatStr(wxT("%c"));
1177 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1178
1179 #define LOCAL_TZ wxDateTime::Local
1180
1181
1182 #if UINT_MAX < LONG_MAX
1183 #define SWIG_FromUnsignedInt SWIG_FromLong
1184 #else
1185 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1186 #endif
1187
1188 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1189 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1190 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1191 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1192 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1193 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1194 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1195 return (*self < *other);
1196 }
1197 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1198 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1199 return (*self <= *other);
1200 }
1201 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1202 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1203 return (*self > *other);
1204 }
1205 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1206 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1207 return (*self >= *other);
1208 }
1209 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1210 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1211 return (*self == *other);
1212 }
1213 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1214 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1215 return (*self != *other);
1216 }
1217 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1218 const wxChar* rv;
1219 const wxChar* _date = date;
1220 rv = self->ParseRfc822Date(_date);
1221 if (rv == NULL) return -1;
1222 return rv - _date;
1223 }
1224 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1225 const wxChar* rv;
1226 const wxChar* _date = date;
1227 rv = self->ParseFormat(_date, format, dateDef);
1228 if (rv == NULL) return -1;
1229 return rv - _date;
1230 }
1231 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1232 const wxChar* rv;
1233 const wxChar* _datetime = datetime;
1234 rv = self->ParseDateTime(_datetime);
1235 if (rv == NULL) return -1;
1236 return rv - _datetime;
1237 }
1238 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1239 const wxChar* rv;
1240 const wxChar* _date = date;
1241 rv = self->ParseDate(_date);
1242 if (rv == NULL) return -1;
1243 return rv - _date;
1244 }
1245 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1246 const wxChar* rv;
1247 const wxChar* _time = time;
1248 rv = self->ParseTime(_time);
1249 if (rv == NULL) return -1;
1250 return rv - _time;
1251 }
1252 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1253 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1254 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1255 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1256 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1257 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1258 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1259 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1260 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1261 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1262 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1263 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1264 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1265 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1266 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1267 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1268
1269 #include <wx/dataobj.h>
1270
1271 // Create a new class for wxPython to use
1272 class wxPyDataObjectSimple : public wxDataObjectSimple {
1273 public:
1274 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1275 : wxDataObjectSimple(format) {}
1276
1277 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1278 bool GetDataHere(void *buf) const;
1279 bool SetData(size_t len, const void *buf) const;
1280 PYPRIVATE;
1281 };
1282
1283 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1284
1285 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1286 // We need to get the data for this object and write it to buf. I think
1287 // the best way to do this for wxPython is to have the Python method
1288 // return either a string or None and then act appropriately with the
1289 // C++ version.
1290
1291 bool rval = False;
1292 bool blocked = wxPyBeginBlockThreads();
1293 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1294 PyObject* ro;
1295 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1296 if (ro) {
1297 rval = (ro != Py_None && PyString_Check(ro));
1298 if (rval)
1299 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1300 Py_DECREF(ro);
1301 }
1302 }
1303 wxPyEndBlockThreads(blocked);
1304 return rval;
1305 }
1306
1307 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1308 // For this one we simply need to make a string from buf and len
1309 // and send it to the Python method.
1310 bool rval = False;
1311 bool blocked = wxPyBeginBlockThreads();
1312 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1313 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1314 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1315 Py_DECREF(data);
1316 }
1317 wxPyEndBlockThreads(blocked);
1318 return rval;
1319 }
1320
1321 // Create a new class for wxPython to use
1322 class wxPyTextDataObject : public wxTextDataObject {
1323 public:
1324 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1325 : wxTextDataObject(text) {}
1326
1327 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1328 DEC_PYCALLBACK_STRING__const(GetText);
1329 DEC_PYCALLBACK__STRING(SetText);
1330 PYPRIVATE;
1331 };
1332
1333 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1334 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1335 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1336
1337
1338 // Create a new class for wxPython to use
1339 class wxPyBitmapDataObject : public wxBitmapDataObject {
1340 public:
1341 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1342 : wxBitmapDataObject(bitmap) {}
1343
1344 wxBitmap GetBitmap() const;
1345 void SetBitmap(const wxBitmap& bitmap);
1346 PYPRIVATE;
1347 };
1348
1349 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1350 wxBitmap* rval = &wxNullBitmap;
1351 bool blocked = wxPyBeginBlockThreads();
1352 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1353 PyObject* ro;
1354 wxBitmap* ptr;
1355 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1356 if (ro) {
1357 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1358 rval = ptr;
1359 Py_DECREF(ro);
1360 }
1361 }
1362 wxPyEndBlockThreads(blocked);
1363 return *rval;
1364 }
1365
1366 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1367 bool blocked = wxPyBeginBlockThreads();
1368 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1369 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1370 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1371 Py_DECREF(bo);
1372 }
1373 wxPyEndBlockThreads(blocked);
1374 }
1375
1376 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1377 if (PyString_Check(data)) {
1378 // for Python we just call SetData here since we always need it to make a copy.
1379 self->SetData(PyString_Size(data), PyString_AsString(data));
1380 }
1381 else {
1382 // raise a TypeError if not a string
1383 PyErr_SetString(PyExc_TypeError, "String expected.");
1384 }
1385 }
1386 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1387 if (PyString_Check(data)) {
1388 return self->SetData(PyString_Size(data), PyString_AsString(data));
1389 }
1390 else {
1391 // raise a TypeError if not a string
1392 PyErr_SetString(PyExc_TypeError, "String expected.");
1393 return False;
1394 }
1395 }
1396 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1397 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1398 }
1399
1400 #include <wx/metafile.h>
1401
1402
1403 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1404
1405
1406 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1407 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1408 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1409 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1410 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1411
1412
1413 class wxPyTextDropTarget : public wxTextDropTarget {
1414 public:
1415 wxPyTextDropTarget() {}
1416
1417 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1418
1419 DEC_PYCALLBACK__(OnLeave);
1420 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1421 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1422 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1423 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1424
1425 PYPRIVATE;
1426 };
1427
1428 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1429 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1430 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1431 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1432 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1433 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1434
1435
1436
1437 class wxPyFileDropTarget : public wxFileDropTarget {
1438 public:
1439 wxPyFileDropTarget() {}
1440
1441 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1442
1443 DEC_PYCALLBACK__(OnLeave);
1444 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1445 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1446 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1447 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1448
1449 PYPRIVATE;
1450 };
1451
1452 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1453 const wxArrayString& filenames) {
1454 bool rval = False;
1455 bool blocked = wxPyBeginBlockThreads();
1456 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1457 PyObject* list = wxArrayString2PyList_helper(filenames);
1458 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1459 Py_DECREF(list);
1460 }
1461 wxPyEndBlockThreads(blocked);
1462 return rval;
1463 }
1464
1465
1466
1467 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1468 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1469 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1470 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1471 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1472
1473
1474
1475
1476 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1477
1478 #include "wx/display.h"
1479
1480 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1481 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1482 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1483 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1484 PyObject* pyList = NULL;
1485 wxArrayVideoModes arr = self->GetModes(mode);
1486 bool blocked = wxPyBeginBlockThreads();
1487 pyList = PyList_New(0);
1488 for (int i=0; i < arr.GetCount(); i++) {
1489 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1490 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1491 PyList_Append(pyList, pyObj);
1492 }
1493 wxPyEndBlockThreads(blocked);
1494 return pyList;
1495 }
1496 #ifdef __cplusplus
1497 extern "C" {
1498 #endif
1499 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 int arg1 ;
1502 wxColour result;
1503 PyObject * obj0 = 0 ;
1504 char *kwnames[] = {
1505 (char *) "index", NULL
1506 };
1507
1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1509 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1510 if (PyErr_Occurred()) SWIG_fail;
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 }
1518 {
1519 wxColour * resultptr;
1520 resultptr = new wxColour((wxColour &) result);
1521 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1522 }
1523 return resultobj;
1524 fail:
1525 return NULL;
1526 }
1527
1528
1529 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1530 PyObject *resultobj;
1531 int arg1 ;
1532 wxFont result;
1533 PyObject * obj0 = 0 ;
1534 char *kwnames[] = {
1535 (char *) "index", NULL
1536 };
1537
1538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1539 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1540 if (PyErr_Occurred()) SWIG_fail;
1541 {
1542 PyThreadState* __tstate = wxPyBeginAllowThreads();
1543 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1544
1545 wxPyEndAllowThreads(__tstate);
1546 if (PyErr_Occurred()) SWIG_fail;
1547 }
1548 {
1549 wxFont * resultptr;
1550 resultptr = new wxFont((wxFont &) result);
1551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1552 }
1553 return resultobj;
1554 fail:
1555 return NULL;
1556 }
1557
1558
1559 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1560 PyObject *resultobj;
1561 int arg1 ;
1562 int result;
1563 PyObject * obj0 = 0 ;
1564 char *kwnames[] = {
1565 (char *) "index", NULL
1566 };
1567
1568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1569 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1570 if (PyErr_Occurred()) SWIG_fail;
1571 {
1572 PyThreadState* __tstate = wxPyBeginAllowThreads();
1573 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1574
1575 wxPyEndAllowThreads(__tstate);
1576 if (PyErr_Occurred()) SWIG_fail;
1577 }
1578 resultobj = SWIG_FromInt((int)result);
1579 return resultobj;
1580 fail:
1581 return NULL;
1582 }
1583
1584
1585 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1586 PyObject *resultobj;
1587 int arg1 ;
1588 bool result;
1589 PyObject * obj0 = 0 ;
1590 char *kwnames[] = {
1591 (char *) "index", NULL
1592 };
1593
1594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1595 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1596 if (PyErr_Occurred()) SWIG_fail;
1597 {
1598 PyThreadState* __tstate = wxPyBeginAllowThreads();
1599 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1600
1601 wxPyEndAllowThreads(__tstate);
1602 if (PyErr_Occurred()) SWIG_fail;
1603 }
1604 {
1605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1606 }
1607 return resultobj;
1608 fail:
1609 return NULL;
1610 }
1611
1612
1613 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject *resultobj;
1615 int result;
1616 char *kwnames[] = {
1617 NULL
1618 };
1619
1620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1621 {
1622 PyThreadState* __tstate = wxPyBeginAllowThreads();
1623 result = (int)wxSystemSettings::GetScreenType();
1624
1625 wxPyEndAllowThreads(__tstate);
1626 if (PyErr_Occurred()) SWIG_fail;
1627 }
1628 resultobj = SWIG_FromInt((int)result);
1629 return resultobj;
1630 fail:
1631 return NULL;
1632 }
1633
1634
1635 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1636 PyObject *resultobj;
1637 int arg1 ;
1638 PyObject * obj0 = 0 ;
1639 char *kwnames[] = {
1640 (char *) "screen", NULL
1641 };
1642
1643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1644 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1645 if (PyErr_Occurred()) SWIG_fail;
1646 {
1647 PyThreadState* __tstate = wxPyBeginAllowThreads();
1648 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1649
1650 wxPyEndAllowThreads(__tstate);
1651 if (PyErr_Occurred()) SWIG_fail;
1652 }
1653 Py_INCREF(Py_None); resultobj = Py_None;
1654 return resultobj;
1655 fail:
1656 return NULL;
1657 }
1658
1659
1660 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1661 PyObject *obj;
1662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1663 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1664 Py_INCREF(obj);
1665 return Py_BuildValue((char *)"");
1666 }
1667 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1668 PyObject *resultobj;
1669 wxSystemOptions *result;
1670 char *kwnames[] = {
1671 NULL
1672 };
1673
1674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1675 {
1676 PyThreadState* __tstate = wxPyBeginAllowThreads();
1677 result = (wxSystemOptions *)new wxSystemOptions();
1678
1679 wxPyEndAllowThreads(__tstate);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1683 return resultobj;
1684 fail:
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 wxString *arg1 = 0 ;
1692 wxString *arg2 = 0 ;
1693 bool temp1 = False ;
1694 bool temp2 = False ;
1695 PyObject * obj0 = 0 ;
1696 PyObject * obj1 = 0 ;
1697 char *kwnames[] = {
1698 (char *) "name",(char *) "value", NULL
1699 };
1700
1701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1702 {
1703 arg1 = wxString_in_helper(obj0);
1704 if (arg1 == NULL) SWIG_fail;
1705 temp1 = True;
1706 }
1707 {
1708 arg2 = wxString_in_helper(obj1);
1709 if (arg2 == NULL) SWIG_fail;
1710 temp2 = True;
1711 }
1712 {
1713 PyThreadState* __tstate = wxPyBeginAllowThreads();
1714 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1715
1716 wxPyEndAllowThreads(__tstate);
1717 if (PyErr_Occurred()) SWIG_fail;
1718 }
1719 Py_INCREF(Py_None); resultobj = Py_None;
1720 {
1721 if (temp1)
1722 delete arg1;
1723 }
1724 {
1725 if (temp2)
1726 delete arg2;
1727 }
1728 return resultobj;
1729 fail:
1730 {
1731 if (temp1)
1732 delete arg1;
1733 }
1734 {
1735 if (temp2)
1736 delete arg2;
1737 }
1738 return NULL;
1739 }
1740
1741
1742 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1743 PyObject *resultobj;
1744 wxString *arg1 = 0 ;
1745 int arg2 ;
1746 bool temp1 = False ;
1747 PyObject * obj0 = 0 ;
1748 PyObject * obj1 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "name",(char *) "value", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1754 {
1755 arg1 = wxString_in_helper(obj0);
1756 if (arg1 == NULL) SWIG_fail;
1757 temp1 = True;
1758 }
1759 arg2 = (int) SWIG_AsInt(obj1);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 {
1762 PyThreadState* __tstate = wxPyBeginAllowThreads();
1763 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1764
1765 wxPyEndAllowThreads(__tstate);
1766 if (PyErr_Occurred()) SWIG_fail;
1767 }
1768 Py_INCREF(Py_None); resultobj = Py_None;
1769 {
1770 if (temp1)
1771 delete arg1;
1772 }
1773 return resultobj;
1774 fail:
1775 {
1776 if (temp1)
1777 delete arg1;
1778 }
1779 return NULL;
1780 }
1781
1782
1783 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1784 PyObject *resultobj;
1785 wxString *arg1 = 0 ;
1786 wxString result;
1787 bool temp1 = False ;
1788 PyObject * obj0 = 0 ;
1789 char *kwnames[] = {
1790 (char *) "name", NULL
1791 };
1792
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1794 {
1795 arg1 = wxString_in_helper(obj0);
1796 if (arg1 == NULL) SWIG_fail;
1797 temp1 = True;
1798 }
1799 {
1800 PyThreadState* __tstate = wxPyBeginAllowThreads();
1801 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1802
1803 wxPyEndAllowThreads(__tstate);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 {
1807 #if wxUSE_UNICODE
1808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1809 #else
1810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1811 #endif
1812 }
1813 {
1814 if (temp1)
1815 delete arg1;
1816 }
1817 return resultobj;
1818 fail:
1819 {
1820 if (temp1)
1821 delete arg1;
1822 }
1823 return NULL;
1824 }
1825
1826
1827 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1828 PyObject *resultobj;
1829 wxString *arg1 = 0 ;
1830 int result;
1831 bool temp1 = False ;
1832 PyObject * obj0 = 0 ;
1833 char *kwnames[] = {
1834 (char *) "name", NULL
1835 };
1836
1837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1838 {
1839 arg1 = wxString_in_helper(obj0);
1840 if (arg1 == NULL) SWIG_fail;
1841 temp1 = True;
1842 }
1843 {
1844 PyThreadState* __tstate = wxPyBeginAllowThreads();
1845 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1846
1847 wxPyEndAllowThreads(__tstate);
1848 if (PyErr_Occurred()) SWIG_fail;
1849 }
1850 resultobj = SWIG_FromInt((int)result);
1851 {
1852 if (temp1)
1853 delete arg1;
1854 }
1855 return resultobj;
1856 fail:
1857 {
1858 if (temp1)
1859 delete arg1;
1860 }
1861 return NULL;
1862 }
1863
1864
1865 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1866 PyObject *resultobj;
1867 wxString *arg1 = 0 ;
1868 bool result;
1869 bool temp1 = False ;
1870 PyObject * obj0 = 0 ;
1871 char *kwnames[] = {
1872 (char *) "name", NULL
1873 };
1874
1875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1876 {
1877 arg1 = wxString_in_helper(obj0);
1878 if (arg1 == NULL) SWIG_fail;
1879 temp1 = True;
1880 }
1881 {
1882 PyThreadState* __tstate = wxPyBeginAllowThreads();
1883 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1884
1885 wxPyEndAllowThreads(__tstate);
1886 if (PyErr_Occurred()) SWIG_fail;
1887 }
1888 {
1889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1890 }
1891 {
1892 if (temp1)
1893 delete arg1;
1894 }
1895 return resultobj;
1896 fail:
1897 {
1898 if (temp1)
1899 delete arg1;
1900 }
1901 return NULL;
1902 }
1903
1904
1905 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1906 PyObject *obj;
1907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1908 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1909 Py_INCREF(obj);
1910 return Py_BuildValue((char *)"");
1911 }
1912 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1913 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1914 return 1;
1915 }
1916
1917
1918 static PyObject *_wrap_FileSelectorPromptStr_get() {
1919 PyObject *pyobj;
1920
1921 {
1922 #if wxUSE_UNICODE
1923 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1924 #else
1925 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1926 #endif
1927 }
1928 return pyobj;
1929 }
1930
1931
1932 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
1933 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1934 return 1;
1935 }
1936
1937
1938 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1939 PyObject *pyobj;
1940
1941 {
1942 #if wxUSE_UNICODE
1943 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1944 #else
1945 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1946 #endif
1947 }
1948 return pyobj;
1949 }
1950
1951
1952 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
1953 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1954 return 1;
1955 }
1956
1957
1958 static PyObject *_wrap_DirSelectorPromptStr_get() {
1959 PyObject *pyobj;
1960
1961 {
1962 #if wxUSE_UNICODE
1963 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1964 #else
1965 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1966 #endif
1967 }
1968 return pyobj;
1969 }
1970
1971
1972 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1973 PyObject *resultobj;
1974 long result;
1975 char *kwnames[] = {
1976 NULL
1977 };
1978
1979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1980 {
1981 PyThreadState* __tstate = wxPyBeginAllowThreads();
1982 result = (long)wxNewId();
1983
1984 wxPyEndAllowThreads(__tstate);
1985 if (PyErr_Occurred()) SWIG_fail;
1986 }
1987 resultobj = SWIG_FromLong((long)result);
1988 return resultobj;
1989 fail:
1990 return NULL;
1991 }
1992
1993
1994 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject *resultobj;
1996 long arg1 ;
1997 PyObject * obj0 = 0 ;
1998 char *kwnames[] = {
1999 (char *) "id", NULL
2000 };
2001
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2003 arg1 = (long) SWIG_AsLong(obj0);
2004 if (PyErr_Occurred()) SWIG_fail;
2005 {
2006 PyThreadState* __tstate = wxPyBeginAllowThreads();
2007 wxRegisterId(arg1);
2008
2009 wxPyEndAllowThreads(__tstate);
2010 if (PyErr_Occurred()) SWIG_fail;
2011 }
2012 Py_INCREF(Py_None); resultobj = Py_None;
2013 return resultobj;
2014 fail:
2015 return NULL;
2016 }
2017
2018
2019 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2020 PyObject *resultobj;
2021 long result;
2022 char *kwnames[] = {
2023 NULL
2024 };
2025
2026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2027 {
2028 PyThreadState* __tstate = wxPyBeginAllowThreads();
2029 result = (long)wxGetCurrentId();
2030
2031 wxPyEndAllowThreads(__tstate);
2032 if (PyErr_Occurred()) SWIG_fail;
2033 }
2034 resultobj = SWIG_FromLong((long)result);
2035 return resultobj;
2036 fail:
2037 return NULL;
2038 }
2039
2040
2041 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2042 PyObject *resultobj;
2043 char *kwnames[] = {
2044 NULL
2045 };
2046
2047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2048 {
2049 PyThreadState* __tstate = wxPyBeginAllowThreads();
2050 wxBell();
2051
2052 wxPyEndAllowThreads(__tstate);
2053 if (PyErr_Occurred()) SWIG_fail;
2054 }
2055 Py_INCREF(Py_None); resultobj = Py_None;
2056 return resultobj;
2057 fail:
2058 return NULL;
2059 }
2060
2061
2062 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2063 PyObject *resultobj;
2064 char *kwnames[] = {
2065 NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
2071 wxEndBusyCursor();
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 }
2076 Py_INCREF(Py_None); resultobj = Py_None;
2077 return resultobj;
2078 fail:
2079 return NULL;
2080 }
2081
2082
2083 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2084 PyObject *resultobj;
2085 bool arg1 = (bool) True ;
2086 long result;
2087 PyObject * obj0 = 0 ;
2088 char *kwnames[] = {
2089 (char *) "resetTimer", NULL
2090 };
2091
2092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2093 if (obj0) {
2094 arg1 = (bool) SWIG_AsBool(obj0);
2095 if (PyErr_Occurred()) SWIG_fail;
2096 }
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 result = (long)wxGetElapsedTime(arg1);
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 }
2104 resultobj = SWIG_FromLong((long)result);
2105 return resultobj;
2106 fail:
2107 return NULL;
2108 }
2109
2110
2111 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject *resultobj;
2113 int *arg1 = (int *) 0 ;
2114 int *arg2 = (int *) 0 ;
2115 int temp1 ;
2116 int temp2 ;
2117 char *kwnames[] = {
2118 NULL
2119 };
2120
2121 arg1 = &temp1;
2122 arg2 = &temp2;
2123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2124 {
2125 PyThreadState* __tstate = wxPyBeginAllowThreads();
2126 wxGetMousePosition(arg1,arg2);
2127
2128 wxPyEndAllowThreads(__tstate);
2129 if (PyErr_Occurred()) SWIG_fail;
2130 }
2131 Py_INCREF(Py_None); resultobj = Py_None;
2132 {
2133 PyObject *o = PyInt_FromLong((long) (*arg1));
2134 resultobj = t_output_helper(resultobj,o);
2135 }
2136 {
2137 PyObject *o = PyInt_FromLong((long) (*arg2));
2138 resultobj = t_output_helper(resultobj,o);
2139 }
2140 return resultobj;
2141 fail:
2142 return NULL;
2143 }
2144
2145
2146 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2147 PyObject *resultobj;
2148 bool result;
2149 char *kwnames[] = {
2150 NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2154 {
2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
2156 result = (bool)wxIsBusy();
2157
2158 wxPyEndAllowThreads(__tstate);
2159 if (PyErr_Occurred()) SWIG_fail;
2160 }
2161 {
2162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2163 }
2164 return resultobj;
2165 fail:
2166 return NULL;
2167 }
2168
2169
2170 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2171 PyObject *resultobj;
2172 wxString result;
2173 char *kwnames[] = {
2174 NULL
2175 };
2176
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2178 {
2179 PyThreadState* __tstate = wxPyBeginAllowThreads();
2180 result = wxNow();
2181
2182 wxPyEndAllowThreads(__tstate);
2183 if (PyErr_Occurred()) SWIG_fail;
2184 }
2185 {
2186 #if wxUSE_UNICODE
2187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2188 #else
2189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2190 #endif
2191 }
2192 return resultobj;
2193 fail:
2194 return NULL;
2195 }
2196
2197
2198 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2199 PyObject *resultobj;
2200 wxString const &arg1_defvalue = wxPyEmptyString ;
2201 wxString *arg1 = (wxString *) &arg1_defvalue ;
2202 bool result;
2203 bool temp1 = False ;
2204 PyObject * obj0 = 0 ;
2205 char *kwnames[] = {
2206 (char *) "command", NULL
2207 };
2208
2209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2210 if (obj0) {
2211 {
2212 arg1 = wxString_in_helper(obj0);
2213 if (arg1 == NULL) SWIG_fail;
2214 temp1 = True;
2215 }
2216 }
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 result = (bool)wxShell((wxString const &)*arg1);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 {
2225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2226 }
2227 {
2228 if (temp1)
2229 delete arg1;
2230 }
2231 return resultobj;
2232 fail:
2233 {
2234 if (temp1)
2235 delete arg1;
2236 }
2237 return NULL;
2238 }
2239
2240
2241 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2242 PyObject *resultobj;
2243 char *kwnames[] = {
2244 NULL
2245 };
2246
2247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2248 {
2249 PyThreadState* __tstate = wxPyBeginAllowThreads();
2250 wxStartTimer();
2251
2252 wxPyEndAllowThreads(__tstate);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 }
2255 Py_INCREF(Py_None); resultobj = Py_None;
2256 return resultobj;
2257 fail:
2258 return NULL;
2259 }
2260
2261
2262 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2263 PyObject *resultobj;
2264 int *arg1 = (int *) 0 ;
2265 int *arg2 = (int *) 0 ;
2266 int result;
2267 int temp1 ;
2268 int temp2 ;
2269 char *kwnames[] = {
2270 NULL
2271 };
2272
2273 arg1 = &temp1;
2274 arg2 = &temp2;
2275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = (int)wxGetOsVersion(arg1,arg2);
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 resultobj = SWIG_FromInt((int)result);
2284 {
2285 PyObject *o = PyInt_FromLong((long) (*arg1));
2286 resultobj = t_output_helper(resultobj,o);
2287 }
2288 {
2289 PyObject *o = PyInt_FromLong((long) (*arg2));
2290 resultobj = t_output_helper(resultobj,o);
2291 }
2292 return resultobj;
2293 fail:
2294 return NULL;
2295 }
2296
2297
2298 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2299 PyObject *resultobj;
2300 wxString result;
2301 char *kwnames[] = {
2302 NULL
2303 };
2304
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2306 {
2307 PyThreadState* __tstate = wxPyBeginAllowThreads();
2308 result = wxGetOsDescription();
2309
2310 wxPyEndAllowThreads(__tstate);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 {
2314 #if wxUSE_UNICODE
2315 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2316 #else
2317 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2318 #endif
2319 }
2320 return resultobj;
2321 fail:
2322 return NULL;
2323 }
2324
2325
2326 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2327 PyObject *resultobj;
2328 long result;
2329 char *kwnames[] = {
2330 NULL
2331 };
2332
2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2334 {
2335 PyThreadState* __tstate = wxPyBeginAllowThreads();
2336 result = (long)wxGetFreeMemory();
2337
2338 wxPyEndAllowThreads(__tstate);
2339 if (PyErr_Occurred()) SWIG_fail;
2340 }
2341 resultobj = SWIG_FromLong((long)result);
2342 return resultobj;
2343 fail:
2344 return NULL;
2345 }
2346
2347
2348 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2349 PyObject *resultobj;
2350 int arg1 ;
2351 bool result;
2352 PyObject * obj0 = 0 ;
2353 char *kwnames[] = {
2354 (char *) "wFlags", NULL
2355 };
2356
2357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2358 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 {
2361 PyThreadState* __tstate = wxPyBeginAllowThreads();
2362 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2363
2364 wxPyEndAllowThreads(__tstate);
2365 if (PyErr_Occurred()) SWIG_fail;
2366 }
2367 {
2368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2369 }
2370 return resultobj;
2371 fail:
2372 return NULL;
2373 }
2374
2375
2376 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2377 PyObject *resultobj;
2378 int arg1 ;
2379 PyObject * obj0 = 0 ;
2380 char *kwnames[] = {
2381 (char *) "secs", NULL
2382 };
2383
2384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2385 arg1 = (int) SWIG_AsInt(obj0);
2386 if (PyErr_Occurred()) SWIG_fail;
2387 {
2388 PyThreadState* __tstate = wxPyBeginAllowThreads();
2389 wxSleep(arg1);
2390
2391 wxPyEndAllowThreads(__tstate);
2392 if (PyErr_Occurred()) SWIG_fail;
2393 }
2394 Py_INCREF(Py_None); resultobj = Py_None;
2395 return resultobj;
2396 fail:
2397 return NULL;
2398 }
2399
2400
2401 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2402 PyObject *resultobj;
2403 unsigned long arg1 ;
2404 PyObject * obj0 = 0 ;
2405 char *kwnames[] = {
2406 (char *) "milliseconds", NULL
2407 };
2408
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2410 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2411 if (PyErr_Occurred()) SWIG_fail;
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
2414 wxUsleep(arg1);
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 Py_INCREF(Py_None); resultobj = Py_None;
2420 return resultobj;
2421 fail:
2422 return NULL;
2423 }
2424
2425
2426 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2427 PyObject *resultobj;
2428 bool arg1 ;
2429 PyObject * obj0 = 0 ;
2430 char *kwnames[] = {
2431 (char *) "enable", NULL
2432 };
2433
2434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2435 arg1 = (bool) SWIG_AsBool(obj0);
2436 if (PyErr_Occurred()) SWIG_fail;
2437 {
2438 PyThreadState* __tstate = wxPyBeginAllowThreads();
2439 wxEnableTopLevelWindows(arg1);
2440
2441 wxPyEndAllowThreads(__tstate);
2442 if (PyErr_Occurred()) SWIG_fail;
2443 }
2444 Py_INCREF(Py_None); resultobj = Py_None;
2445 return resultobj;
2446 fail:
2447 return NULL;
2448 }
2449
2450
2451 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2452 PyObject *resultobj;
2453 wxString *arg1 = 0 ;
2454 wxString result;
2455 bool temp1 = False ;
2456 PyObject * obj0 = 0 ;
2457 char *kwnames[] = {
2458 (char *) "in", NULL
2459 };
2460
2461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2462 {
2463 arg1 = wxString_in_helper(obj0);
2464 if (arg1 == NULL) SWIG_fail;
2465 temp1 = True;
2466 }
2467 {
2468 PyThreadState* __tstate = wxPyBeginAllowThreads();
2469 result = wxStripMenuCodes((wxString const &)*arg1);
2470
2471 wxPyEndAllowThreads(__tstate);
2472 if (PyErr_Occurred()) SWIG_fail;
2473 }
2474 {
2475 #if wxUSE_UNICODE
2476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2477 #else
2478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2479 #endif
2480 }
2481 {
2482 if (temp1)
2483 delete arg1;
2484 }
2485 return resultobj;
2486 fail:
2487 {
2488 if (temp1)
2489 delete arg1;
2490 }
2491 return NULL;
2492 }
2493
2494
2495 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2496 PyObject *resultobj;
2497 wxString result;
2498 char *kwnames[] = {
2499 NULL
2500 };
2501
2502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2503 {
2504 PyThreadState* __tstate = wxPyBeginAllowThreads();
2505 result = wxGetEmailAddress();
2506
2507 wxPyEndAllowThreads(__tstate);
2508 if (PyErr_Occurred()) SWIG_fail;
2509 }
2510 {
2511 #if wxUSE_UNICODE
2512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2513 #else
2514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2515 #endif
2516 }
2517 return resultobj;
2518 fail:
2519 return NULL;
2520 }
2521
2522
2523 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2524 PyObject *resultobj;
2525 wxString result;
2526 char *kwnames[] = {
2527 NULL
2528 };
2529
2530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2531 {
2532 PyThreadState* __tstate = wxPyBeginAllowThreads();
2533 result = wxGetHostName();
2534
2535 wxPyEndAllowThreads(__tstate);
2536 if (PyErr_Occurred()) SWIG_fail;
2537 }
2538 {
2539 #if wxUSE_UNICODE
2540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2541 #else
2542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2543 #endif
2544 }
2545 return resultobj;
2546 fail:
2547 return NULL;
2548 }
2549
2550
2551 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2552 PyObject *resultobj;
2553 wxString result;
2554 char *kwnames[] = {
2555 NULL
2556 };
2557
2558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2559 {
2560 PyThreadState* __tstate = wxPyBeginAllowThreads();
2561 result = wxGetFullHostName();
2562
2563 wxPyEndAllowThreads(__tstate);
2564 if (PyErr_Occurred()) SWIG_fail;
2565 }
2566 {
2567 #if wxUSE_UNICODE
2568 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2569 #else
2570 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2571 #endif
2572 }
2573 return resultobj;
2574 fail:
2575 return NULL;
2576 }
2577
2578
2579 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2580 PyObject *resultobj;
2581 wxString result;
2582 char *kwnames[] = {
2583 NULL
2584 };
2585
2586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2587 {
2588 PyThreadState* __tstate = wxPyBeginAllowThreads();
2589 result = wxGetUserId();
2590
2591 wxPyEndAllowThreads(__tstate);
2592 if (PyErr_Occurred()) SWIG_fail;
2593 }
2594 {
2595 #if wxUSE_UNICODE
2596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2597 #else
2598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2599 #endif
2600 }
2601 return resultobj;
2602 fail:
2603 return NULL;
2604 }
2605
2606
2607 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2608 PyObject *resultobj;
2609 wxString result;
2610 char *kwnames[] = {
2611 NULL
2612 };
2613
2614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2615 {
2616 PyThreadState* __tstate = wxPyBeginAllowThreads();
2617 result = wxGetUserName();
2618
2619 wxPyEndAllowThreads(__tstate);
2620 if (PyErr_Occurred()) SWIG_fail;
2621 }
2622 {
2623 #if wxUSE_UNICODE
2624 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2625 #else
2626 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2627 #endif
2628 }
2629 return resultobj;
2630 fail:
2631 return NULL;
2632 }
2633
2634
2635 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2636 PyObject *resultobj;
2637 wxString result;
2638 char *kwnames[] = {
2639 NULL
2640 };
2641
2642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2643 {
2644 PyThreadState* __tstate = wxPyBeginAllowThreads();
2645 result = wxGetHomeDir();
2646
2647 wxPyEndAllowThreads(__tstate);
2648 if (PyErr_Occurred()) SWIG_fail;
2649 }
2650 {
2651 #if wxUSE_UNICODE
2652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2653 #else
2654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2655 #endif
2656 }
2657 return resultobj;
2658 fail:
2659 return NULL;
2660 }
2661
2662
2663 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2664 PyObject *resultobj;
2665 wxString const &arg1_defvalue = wxPyEmptyString ;
2666 wxString *arg1 = (wxString *) &arg1_defvalue ;
2667 wxString result;
2668 bool temp1 = False ;
2669 PyObject * obj0 = 0 ;
2670 char *kwnames[] = {
2671 (char *) "user", NULL
2672 };
2673
2674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2675 if (obj0) {
2676 {
2677 arg1 = wxString_in_helper(obj0);
2678 if (arg1 == NULL) SWIG_fail;
2679 temp1 = True;
2680 }
2681 }
2682 {
2683 PyThreadState* __tstate = wxPyBeginAllowThreads();
2684 result = wxGetUserHome((wxString const &)*arg1);
2685
2686 wxPyEndAllowThreads(__tstate);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 }
2689 {
2690 #if wxUSE_UNICODE
2691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2692 #else
2693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2694 #endif
2695 }
2696 {
2697 if (temp1)
2698 delete arg1;
2699 }
2700 return resultobj;
2701 fail:
2702 {
2703 if (temp1)
2704 delete arg1;
2705 }
2706 return NULL;
2707 }
2708
2709
2710 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2711 PyObject *resultobj;
2712 unsigned long result;
2713 char *kwnames[] = {
2714 NULL
2715 };
2716
2717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2718 {
2719 PyThreadState* __tstate = wxPyBeginAllowThreads();
2720 result = (unsigned long)wxGetProcessId();
2721
2722 wxPyEndAllowThreads(__tstate);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2726 return resultobj;
2727 fail:
2728 return NULL;
2729 }
2730
2731
2732 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject *resultobj;
2734 char *kwnames[] = {
2735 NULL
2736 };
2737
2738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2739 {
2740 PyThreadState* __tstate = wxPyBeginAllowThreads();
2741 wxTrap();
2742
2743 wxPyEndAllowThreads(__tstate);
2744 if (PyErr_Occurred()) SWIG_fail;
2745 }
2746 Py_INCREF(Py_None); resultobj = Py_None;
2747 return resultobj;
2748 fail:
2749 return NULL;
2750 }
2751
2752
2753 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2754 PyObject *resultobj;
2755 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2756 wxString *arg1 = (wxString *) &arg1_defvalue ;
2757 wxString const &arg2_defvalue = wxPyEmptyString ;
2758 wxString *arg2 = (wxString *) &arg2_defvalue ;
2759 wxString const &arg3_defvalue = wxPyEmptyString ;
2760 wxString *arg3 = (wxString *) &arg3_defvalue ;
2761 wxString const &arg4_defvalue = wxPyEmptyString ;
2762 wxString *arg4 = (wxString *) &arg4_defvalue ;
2763 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2764 wxString *arg5 = (wxString *) &arg5_defvalue ;
2765 int arg6 = (int) 0 ;
2766 wxWindow *arg7 = (wxWindow *) NULL ;
2767 int arg8 = (int) -1 ;
2768 int arg9 = (int) -1 ;
2769 wxString result;
2770 bool temp1 = False ;
2771 bool temp2 = False ;
2772 bool temp3 = False ;
2773 bool temp4 = False ;
2774 bool temp5 = False ;
2775 PyObject * obj0 = 0 ;
2776 PyObject * obj1 = 0 ;
2777 PyObject * obj2 = 0 ;
2778 PyObject * obj3 = 0 ;
2779 PyObject * obj4 = 0 ;
2780 PyObject * obj5 = 0 ;
2781 PyObject * obj6 = 0 ;
2782 PyObject * obj7 = 0 ;
2783 PyObject * obj8 = 0 ;
2784 char *kwnames[] = {
2785 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2786 };
2787
2788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2789 if (obj0) {
2790 {
2791 arg1 = wxString_in_helper(obj0);
2792 if (arg1 == NULL) SWIG_fail;
2793 temp1 = True;
2794 }
2795 }
2796 if (obj1) {
2797 {
2798 arg2 = wxString_in_helper(obj1);
2799 if (arg2 == NULL) SWIG_fail;
2800 temp2 = True;
2801 }
2802 }
2803 if (obj2) {
2804 {
2805 arg3 = wxString_in_helper(obj2);
2806 if (arg3 == NULL) SWIG_fail;
2807 temp3 = True;
2808 }
2809 }
2810 if (obj3) {
2811 {
2812 arg4 = wxString_in_helper(obj3);
2813 if (arg4 == NULL) SWIG_fail;
2814 temp4 = True;
2815 }
2816 }
2817 if (obj4) {
2818 {
2819 arg5 = wxString_in_helper(obj4);
2820 if (arg5 == NULL) SWIG_fail;
2821 temp5 = True;
2822 }
2823 }
2824 if (obj5) {
2825 arg6 = (int) SWIG_AsInt(obj5);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
2828 if (obj6) {
2829 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2831 }
2832 if (obj7) {
2833 arg8 = (int) SWIG_AsInt(obj7);
2834 if (PyErr_Occurred()) SWIG_fail;
2835 }
2836 if (obj8) {
2837 arg9 = (int) SWIG_AsInt(obj8);
2838 if (PyErr_Occurred()) SWIG_fail;
2839 }
2840 {
2841 PyThreadState* __tstate = wxPyBeginAllowThreads();
2842 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2843
2844 wxPyEndAllowThreads(__tstate);
2845 if (PyErr_Occurred()) SWIG_fail;
2846 }
2847 {
2848 #if wxUSE_UNICODE
2849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2850 #else
2851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2852 #endif
2853 }
2854 {
2855 if (temp1)
2856 delete arg1;
2857 }
2858 {
2859 if (temp2)
2860 delete arg2;
2861 }
2862 {
2863 if (temp3)
2864 delete arg3;
2865 }
2866 {
2867 if (temp4)
2868 delete arg4;
2869 }
2870 {
2871 if (temp5)
2872 delete arg5;
2873 }
2874 return resultobj;
2875 fail:
2876 {
2877 if (temp1)
2878 delete arg1;
2879 }
2880 {
2881 if (temp2)
2882 delete arg2;
2883 }
2884 {
2885 if (temp3)
2886 delete arg3;
2887 }
2888 {
2889 if (temp4)
2890 delete arg4;
2891 }
2892 {
2893 if (temp5)
2894 delete arg5;
2895 }
2896 return NULL;
2897 }
2898
2899
2900 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2901 PyObject *resultobj;
2902 wxString *arg1 = 0 ;
2903 wxString *arg2 = 0 ;
2904 wxString const &arg3_defvalue = wxPyEmptyString ;
2905 wxString *arg3 = (wxString *) &arg3_defvalue ;
2906 wxWindow *arg4 = (wxWindow *) NULL ;
2907 wxString result;
2908 bool temp1 = False ;
2909 bool temp2 = False ;
2910 bool temp3 = False ;
2911 PyObject * obj0 = 0 ;
2912 PyObject * obj1 = 0 ;
2913 PyObject * obj2 = 0 ;
2914 PyObject * obj3 = 0 ;
2915 char *kwnames[] = {
2916 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2917 };
2918
2919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2920 {
2921 arg1 = wxString_in_helper(obj0);
2922 if (arg1 == NULL) SWIG_fail;
2923 temp1 = True;
2924 }
2925 {
2926 arg2 = wxString_in_helper(obj1);
2927 if (arg2 == NULL) SWIG_fail;
2928 temp2 = True;
2929 }
2930 if (obj2) {
2931 {
2932 arg3 = wxString_in_helper(obj2);
2933 if (arg3 == NULL) SWIG_fail;
2934 temp3 = True;
2935 }
2936 }
2937 if (obj3) {
2938 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2940 }
2941 {
2942 PyThreadState* __tstate = wxPyBeginAllowThreads();
2943 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2944
2945 wxPyEndAllowThreads(__tstate);
2946 if (PyErr_Occurred()) SWIG_fail;
2947 }
2948 {
2949 #if wxUSE_UNICODE
2950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2951 #else
2952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2953 #endif
2954 }
2955 {
2956 if (temp1)
2957 delete arg1;
2958 }
2959 {
2960 if (temp2)
2961 delete arg2;
2962 }
2963 {
2964 if (temp3)
2965 delete arg3;
2966 }
2967 return resultobj;
2968 fail:
2969 {
2970 if (temp1)
2971 delete arg1;
2972 }
2973 {
2974 if (temp2)
2975 delete arg2;
2976 }
2977 {
2978 if (temp3)
2979 delete arg3;
2980 }
2981 return NULL;
2982 }
2983
2984
2985 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2986 PyObject *resultobj;
2987 wxString *arg1 = 0 ;
2988 wxString *arg2 = 0 ;
2989 wxString const &arg3_defvalue = wxPyEmptyString ;
2990 wxString *arg3 = (wxString *) &arg3_defvalue ;
2991 wxWindow *arg4 = (wxWindow *) NULL ;
2992 wxString result;
2993 bool temp1 = False ;
2994 bool temp2 = False ;
2995 bool temp3 = False ;
2996 PyObject * obj0 = 0 ;
2997 PyObject * obj1 = 0 ;
2998 PyObject * obj2 = 0 ;
2999 PyObject * obj3 = 0 ;
3000 char *kwnames[] = {
3001 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3002 };
3003
3004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3005 {
3006 arg1 = wxString_in_helper(obj0);
3007 if (arg1 == NULL) SWIG_fail;
3008 temp1 = True;
3009 }
3010 {
3011 arg2 = wxString_in_helper(obj1);
3012 if (arg2 == NULL) SWIG_fail;
3013 temp2 = True;
3014 }
3015 if (obj2) {
3016 {
3017 arg3 = wxString_in_helper(obj2);
3018 if (arg3 == NULL) SWIG_fail;
3019 temp3 = True;
3020 }
3021 }
3022 if (obj3) {
3023 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3025 }
3026 {
3027 PyThreadState* __tstate = wxPyBeginAllowThreads();
3028 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3029
3030 wxPyEndAllowThreads(__tstate);
3031 if (PyErr_Occurred()) SWIG_fail;
3032 }
3033 {
3034 #if wxUSE_UNICODE
3035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3036 #else
3037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3038 #endif
3039 }
3040 {
3041 if (temp1)
3042 delete arg1;
3043 }
3044 {
3045 if (temp2)
3046 delete arg2;
3047 }
3048 {
3049 if (temp3)
3050 delete arg3;
3051 }
3052 return resultobj;
3053 fail:
3054 {
3055 if (temp1)
3056 delete arg1;
3057 }
3058 {
3059 if (temp2)
3060 delete arg2;
3061 }
3062 {
3063 if (temp3)
3064 delete arg3;
3065 }
3066 return NULL;
3067 }
3068
3069
3070 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3071 PyObject *resultobj;
3072 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3073 wxString *arg1 = (wxString *) &arg1_defvalue ;
3074 wxString const &arg2_defvalue = wxPyEmptyString ;
3075 wxString *arg2 = (wxString *) &arg2_defvalue ;
3076 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3077 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3078 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3079 wxWindow *arg5 = (wxWindow *) NULL ;
3080 wxString result;
3081 bool temp1 = False ;
3082 bool temp2 = False ;
3083 wxPoint temp4 ;
3084 PyObject * obj0 = 0 ;
3085 PyObject * obj1 = 0 ;
3086 PyObject * obj2 = 0 ;
3087 PyObject * obj3 = 0 ;
3088 PyObject * obj4 = 0 ;
3089 char *kwnames[] = {
3090 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3091 };
3092
3093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3094 if (obj0) {
3095 {
3096 arg1 = wxString_in_helper(obj0);
3097 if (arg1 == NULL) SWIG_fail;
3098 temp1 = True;
3099 }
3100 }
3101 if (obj1) {
3102 {
3103 arg2 = wxString_in_helper(obj1);
3104 if (arg2 == NULL) SWIG_fail;
3105 temp2 = True;
3106 }
3107 }
3108 if (obj2) {
3109 arg3 = (long) SWIG_AsLong(obj2);
3110 if (PyErr_Occurred()) SWIG_fail;
3111 }
3112 if (obj3) {
3113 {
3114 arg4 = &temp4;
3115 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3116 }
3117 }
3118 if (obj4) {
3119 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3121 }
3122 {
3123 PyThreadState* __tstate = wxPyBeginAllowThreads();
3124 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3125
3126 wxPyEndAllowThreads(__tstate);
3127 if (PyErr_Occurred()) SWIG_fail;
3128 }
3129 {
3130 #if wxUSE_UNICODE
3131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3132 #else
3133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3134 #endif
3135 }
3136 {
3137 if (temp1)
3138 delete arg1;
3139 }
3140 {
3141 if (temp2)
3142 delete arg2;
3143 }
3144 return resultobj;
3145 fail:
3146 {
3147 if (temp1)
3148 delete arg1;
3149 }
3150 {
3151 if (temp2)
3152 delete arg2;
3153 }
3154 return NULL;
3155 }
3156
3157
3158 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3159 PyObject *resultobj;
3160 wxString *arg1 = 0 ;
3161 wxString const &arg2_defvalue = wxPyEmptyString ;
3162 wxString *arg2 = (wxString *) &arg2_defvalue ;
3163 wxString const &arg3_defvalue = wxPyEmptyString ;
3164 wxString *arg3 = (wxString *) &arg3_defvalue ;
3165 wxWindow *arg4 = (wxWindow *) NULL ;
3166 int arg5 = (int) -1 ;
3167 int arg6 = (int) -1 ;
3168 bool arg7 = (bool) True ;
3169 wxString result;
3170 bool temp1 = False ;
3171 bool temp2 = False ;
3172 bool temp3 = False ;
3173 PyObject * obj0 = 0 ;
3174 PyObject * obj1 = 0 ;
3175 PyObject * obj2 = 0 ;
3176 PyObject * obj3 = 0 ;
3177 PyObject * obj4 = 0 ;
3178 PyObject * obj5 = 0 ;
3179 PyObject * obj6 = 0 ;
3180 char *kwnames[] = {
3181 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3182 };
3183
3184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3185 {
3186 arg1 = wxString_in_helper(obj0);
3187 if (arg1 == NULL) SWIG_fail;
3188 temp1 = True;
3189 }
3190 if (obj1) {
3191 {
3192 arg2 = wxString_in_helper(obj1);
3193 if (arg2 == NULL) SWIG_fail;
3194 temp2 = True;
3195 }
3196 }
3197 if (obj2) {
3198 {
3199 arg3 = wxString_in_helper(obj2);
3200 if (arg3 == NULL) SWIG_fail;
3201 temp3 = True;
3202 }
3203 }
3204 if (obj3) {
3205 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3207 }
3208 if (obj4) {
3209 arg5 = (int) SWIG_AsInt(obj4);
3210 if (PyErr_Occurred()) SWIG_fail;
3211 }
3212 if (obj5) {
3213 arg6 = (int) SWIG_AsInt(obj5);
3214 if (PyErr_Occurred()) SWIG_fail;
3215 }
3216 if (obj6) {
3217 arg7 = (bool) SWIG_AsBool(obj6);
3218 if (PyErr_Occurred()) SWIG_fail;
3219 }
3220 {
3221 PyThreadState* __tstate = wxPyBeginAllowThreads();
3222 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3223
3224 wxPyEndAllowThreads(__tstate);
3225 if (PyErr_Occurred()) SWIG_fail;
3226 }
3227 {
3228 #if wxUSE_UNICODE
3229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3230 #else
3231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3232 #endif
3233 }
3234 {
3235 if (temp1)
3236 delete arg1;
3237 }
3238 {
3239 if (temp2)
3240 delete arg2;
3241 }
3242 {
3243 if (temp3)
3244 delete arg3;
3245 }
3246 return resultobj;
3247 fail:
3248 {
3249 if (temp1)
3250 delete arg1;
3251 }
3252 {
3253 if (temp2)
3254 delete arg2;
3255 }
3256 {
3257 if (temp3)
3258 delete arg3;
3259 }
3260 return NULL;
3261 }
3262
3263
3264 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3265 PyObject *resultobj;
3266 wxString *arg1 = 0 ;
3267 wxString const &arg2_defvalue = wxPyEmptyString ;
3268 wxString *arg2 = (wxString *) &arg2_defvalue ;
3269 wxString const &arg3_defvalue = wxPyEmptyString ;
3270 wxString *arg3 = (wxString *) &arg3_defvalue ;
3271 wxWindow *arg4 = (wxWindow *) NULL ;
3272 wxString result;
3273 bool temp1 = False ;
3274 bool temp2 = False ;
3275 bool temp3 = False ;
3276 PyObject * obj0 = 0 ;
3277 PyObject * obj1 = 0 ;
3278 PyObject * obj2 = 0 ;
3279 PyObject * obj3 = 0 ;
3280 char *kwnames[] = {
3281 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3282 };
3283
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3285 {
3286 arg1 = wxString_in_helper(obj0);
3287 if (arg1 == NULL) SWIG_fail;
3288 temp1 = True;
3289 }
3290 if (obj1) {
3291 {
3292 arg2 = wxString_in_helper(obj1);
3293 if (arg2 == NULL) SWIG_fail;
3294 temp2 = True;
3295 }
3296 }
3297 if (obj2) {
3298 {
3299 arg3 = wxString_in_helper(obj2);
3300 if (arg3 == NULL) SWIG_fail;
3301 temp3 = True;
3302 }
3303 }
3304 if (obj3) {
3305 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3307 }
3308 {
3309 PyThreadState* __tstate = wxPyBeginAllowThreads();
3310 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3311
3312 wxPyEndAllowThreads(__tstate);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 }
3315 {
3316 #if wxUSE_UNICODE
3317 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3318 #else
3319 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3320 #endif
3321 }
3322 {
3323 if (temp1)
3324 delete arg1;
3325 }
3326 {
3327 if (temp2)
3328 delete arg2;
3329 }
3330 {
3331 if (temp3)
3332 delete arg3;
3333 }
3334 return resultobj;
3335 fail:
3336 {
3337 if (temp1)
3338 delete arg1;
3339 }
3340 {
3341 if (temp2)
3342 delete arg2;
3343 }
3344 {
3345 if (temp3)
3346 delete arg3;
3347 }
3348 return NULL;
3349 }
3350
3351
3352 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3353 PyObject *resultobj;
3354 wxString *arg1 = 0 ;
3355 wxString *arg2 = 0 ;
3356 int arg3 ;
3357 wxString *arg4 = (wxString *) 0 ;
3358 wxWindow *arg5 = (wxWindow *) NULL ;
3359 int arg6 = (int) -1 ;
3360 int arg7 = (int) -1 ;
3361 bool arg8 = (bool) True ;
3362 int arg9 = (int) 150 ;
3363 int arg10 = (int) 200 ;
3364 wxString result;
3365 bool temp1 = False ;
3366 bool temp2 = False ;
3367 PyObject * obj0 = 0 ;
3368 PyObject * obj1 = 0 ;
3369 PyObject * obj2 = 0 ;
3370 PyObject * obj3 = 0 ;
3371 PyObject * obj4 = 0 ;
3372 PyObject * obj5 = 0 ;
3373 PyObject * obj6 = 0 ;
3374 PyObject * obj7 = 0 ;
3375 PyObject * obj8 = 0 ;
3376 char *kwnames[] = {
3377 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3378 };
3379
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3381 {
3382 arg1 = wxString_in_helper(obj0);
3383 if (arg1 == NULL) SWIG_fail;
3384 temp1 = True;
3385 }
3386 {
3387 arg2 = wxString_in_helper(obj1);
3388 if (arg2 == NULL) SWIG_fail;
3389 temp2 = True;
3390 }
3391 {
3392 arg3 = PyList_Size(obj2);
3393 arg4 = wxString_LIST_helper(obj2);
3394 if (arg4 == NULL) SWIG_fail;
3395 }
3396 if (obj3) {
3397 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3399 }
3400 if (obj4) {
3401 arg6 = (int) SWIG_AsInt(obj4);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 if (obj5) {
3405 arg7 = (int) SWIG_AsInt(obj5);
3406 if (PyErr_Occurred()) SWIG_fail;
3407 }
3408 if (obj6) {
3409 arg8 = (bool) SWIG_AsBool(obj6);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 if (obj7) {
3413 arg9 = (int) SWIG_AsInt(obj7);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 }
3416 if (obj8) {
3417 arg10 = (int) SWIG_AsInt(obj8);
3418 if (PyErr_Occurred()) SWIG_fail;
3419 }
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 {
3428 #if wxUSE_UNICODE
3429 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3430 #else
3431 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3432 #endif
3433 }
3434 {
3435 if (temp1)
3436 delete arg1;
3437 }
3438 {
3439 if (temp2)
3440 delete arg2;
3441 }
3442 {
3443 if (arg4) delete [] arg4;
3444 }
3445 return resultobj;
3446 fail:
3447 {
3448 if (temp1)
3449 delete arg1;
3450 }
3451 {
3452 if (temp2)
3453 delete arg2;
3454 }
3455 {
3456 if (arg4) delete [] arg4;
3457 }
3458 return NULL;
3459 }
3460
3461
3462 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3463 PyObject *resultobj;
3464 wxString *arg1 = 0 ;
3465 wxString *arg2 = 0 ;
3466 int arg3 ;
3467 wxString *arg4 = (wxString *) 0 ;
3468 wxWindow *arg5 = (wxWindow *) NULL ;
3469 int arg6 = (int) -1 ;
3470 int arg7 = (int) -1 ;
3471 bool arg8 = (bool) True ;
3472 int arg9 = (int) 150 ;
3473 int arg10 = (int) 200 ;
3474 int result;
3475 bool temp1 = False ;
3476 bool temp2 = False ;
3477 PyObject * obj0 = 0 ;
3478 PyObject * obj1 = 0 ;
3479 PyObject * obj2 = 0 ;
3480 PyObject * obj3 = 0 ;
3481 PyObject * obj4 = 0 ;
3482 PyObject * obj5 = 0 ;
3483 PyObject * obj6 = 0 ;
3484 PyObject * obj7 = 0 ;
3485 PyObject * obj8 = 0 ;
3486 char *kwnames[] = {
3487 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3488 };
3489
3490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3491 {
3492 arg1 = wxString_in_helper(obj0);
3493 if (arg1 == NULL) SWIG_fail;
3494 temp1 = True;
3495 }
3496 {
3497 arg2 = wxString_in_helper(obj1);
3498 if (arg2 == NULL) SWIG_fail;
3499 temp2 = True;
3500 }
3501 {
3502 arg3 = PyList_Size(obj2);
3503 arg4 = wxString_LIST_helper(obj2);
3504 if (arg4 == NULL) SWIG_fail;
3505 }
3506 if (obj3) {
3507 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3509 }
3510 if (obj4) {
3511 arg6 = (int) SWIG_AsInt(obj4);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 if (obj5) {
3515 arg7 = (int) SWIG_AsInt(obj5);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 if (obj6) {
3519 arg8 = (bool) SWIG_AsBool(obj6);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 if (obj7) {
3523 arg9 = (int) SWIG_AsInt(obj7);
3524 if (PyErr_Occurred()) SWIG_fail;
3525 }
3526 if (obj8) {
3527 arg10 = (int) SWIG_AsInt(obj8);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 }
3530 {
3531 PyThreadState* __tstate = wxPyBeginAllowThreads();
3532 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3533
3534 wxPyEndAllowThreads(__tstate);
3535 if (PyErr_Occurred()) SWIG_fail;
3536 }
3537 resultobj = SWIG_FromInt((int)result);
3538 {
3539 if (temp1)
3540 delete arg1;
3541 }
3542 {
3543 if (temp2)
3544 delete arg2;
3545 }
3546 {
3547 if (arg4) delete [] arg4;
3548 }
3549 return resultobj;
3550 fail:
3551 {
3552 if (temp1)
3553 delete arg1;
3554 }
3555 {
3556 if (temp2)
3557 delete arg2;
3558 }
3559 {
3560 if (arg4) delete [] arg4;
3561 }
3562 return NULL;
3563 }
3564
3565
3566 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3567 PyObject *resultobj;
3568 wxString *arg1 = 0 ;
3569 wxString const &arg2_defvalue = wxPyEmptyString ;
3570 wxString *arg2 = (wxString *) &arg2_defvalue ;
3571 int arg3 = (int) wxOK|wxCENTRE ;
3572 wxWindow *arg4 = (wxWindow *) NULL ;
3573 int arg5 = (int) -1 ;
3574 int arg6 = (int) -1 ;
3575 int result;
3576 bool temp1 = False ;
3577 bool temp2 = False ;
3578 PyObject * obj0 = 0 ;
3579 PyObject * obj1 = 0 ;
3580 PyObject * obj2 = 0 ;
3581 PyObject * obj3 = 0 ;
3582 PyObject * obj4 = 0 ;
3583 PyObject * obj5 = 0 ;
3584 char *kwnames[] = {
3585 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3586 };
3587
3588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3589 {
3590 arg1 = wxString_in_helper(obj0);
3591 if (arg1 == NULL) SWIG_fail;
3592 temp1 = True;
3593 }
3594 if (obj1) {
3595 {
3596 arg2 = wxString_in_helper(obj1);
3597 if (arg2 == NULL) SWIG_fail;
3598 temp2 = True;
3599 }
3600 }
3601 if (obj2) {
3602 arg3 = (int) SWIG_AsInt(obj2);
3603 if (PyErr_Occurred()) SWIG_fail;
3604 }
3605 if (obj3) {
3606 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3608 }
3609 if (obj4) {
3610 arg5 = (int) SWIG_AsInt(obj4);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 if (obj5) {
3614 arg6 = (int) SWIG_AsInt(obj5);
3615 if (PyErr_Occurred()) SWIG_fail;
3616 }
3617 {
3618 PyThreadState* __tstate = wxPyBeginAllowThreads();
3619 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3620
3621 wxPyEndAllowThreads(__tstate);
3622 if (PyErr_Occurred()) SWIG_fail;
3623 }
3624 resultobj = SWIG_FromInt((int)result);
3625 {
3626 if (temp1)
3627 delete arg1;
3628 }
3629 {
3630 if (temp2)
3631 delete arg2;
3632 }
3633 return resultobj;
3634 fail:
3635 {
3636 if (temp1)
3637 delete arg1;
3638 }
3639 {
3640 if (temp2)
3641 delete arg2;
3642 }
3643 return NULL;
3644 }
3645
3646
3647 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3648 PyObject *resultobj;
3649 wxString *arg1 = 0 ;
3650 wxString *arg2 = 0 ;
3651 wxString *arg3 = 0 ;
3652 long arg4 ;
3653 long arg5 = (long) 0 ;
3654 long arg6 = (long) 100 ;
3655 wxWindow *arg7 = (wxWindow *) NULL ;
3656 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3657 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3658 long result;
3659 bool temp1 = False ;
3660 bool temp2 = False ;
3661 bool temp3 = False ;
3662 wxPoint temp8 ;
3663 PyObject * obj0 = 0 ;
3664 PyObject * obj1 = 0 ;
3665 PyObject * obj2 = 0 ;
3666 PyObject * obj3 = 0 ;
3667 PyObject * obj4 = 0 ;
3668 PyObject * obj5 = 0 ;
3669 PyObject * obj6 = 0 ;
3670 PyObject * obj7 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3676 {
3677 arg1 = wxString_in_helper(obj0);
3678 if (arg1 == NULL) SWIG_fail;
3679 temp1 = True;
3680 }
3681 {
3682 arg2 = wxString_in_helper(obj1);
3683 if (arg2 == NULL) SWIG_fail;
3684 temp2 = True;
3685 }
3686 {
3687 arg3 = wxString_in_helper(obj2);
3688 if (arg3 == NULL) SWIG_fail;
3689 temp3 = True;
3690 }
3691 arg4 = (long) SWIG_AsLong(obj3);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 if (obj4) {
3694 arg5 = (long) SWIG_AsLong(obj4);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 if (obj5) {
3698 arg6 = (long) SWIG_AsLong(obj5);
3699 if (PyErr_Occurred()) SWIG_fail;
3700 }
3701 if (obj6) {
3702 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3704 }
3705 if (obj7) {
3706 {
3707 arg8 = &temp8;
3708 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3709 }
3710 }
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3714
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 resultobj = SWIG_FromLong((long)result);
3719 {
3720 if (temp1)
3721 delete arg1;
3722 }
3723 {
3724 if (temp2)
3725 delete arg2;
3726 }
3727 {
3728 if (temp3)
3729 delete arg3;
3730 }
3731 return resultobj;
3732 fail:
3733 {
3734 if (temp1)
3735 delete arg1;
3736 }
3737 {
3738 if (temp2)
3739 delete arg2;
3740 }
3741 {
3742 if (temp3)
3743 delete arg3;
3744 }
3745 return NULL;
3746 }
3747
3748
3749 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3750 PyObject *resultobj;
3751 bool result;
3752 char *kwnames[] = {
3753 NULL
3754 };
3755
3756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3757 {
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 result = (bool)wxColourDisplay();
3760
3761 wxPyEndAllowThreads(__tstate);
3762 if (PyErr_Occurred()) SWIG_fail;
3763 }
3764 {
3765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3766 }
3767 return resultobj;
3768 fail:
3769 return NULL;
3770 }
3771
3772
3773 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3774 PyObject *resultobj;
3775 int result;
3776 char *kwnames[] = {
3777 NULL
3778 };
3779
3780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3781 {
3782 PyThreadState* __tstate = wxPyBeginAllowThreads();
3783 result = (int)wxDisplayDepth();
3784
3785 wxPyEndAllowThreads(__tstate);
3786 if (PyErr_Occurred()) SWIG_fail;
3787 }
3788 resultobj = SWIG_FromInt((int)result);
3789 return resultobj;
3790 fail:
3791 return NULL;
3792 }
3793
3794
3795 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3796 PyObject *resultobj;
3797 int result;
3798 char *kwnames[] = {
3799 NULL
3800 };
3801
3802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3803 {
3804 PyThreadState* __tstate = wxPyBeginAllowThreads();
3805 result = (int)wxGetDisplayDepth();
3806
3807 wxPyEndAllowThreads(__tstate);
3808 if (PyErr_Occurred()) SWIG_fail;
3809 }
3810 resultobj = SWIG_FromInt((int)result);
3811 return resultobj;
3812 fail:
3813 return NULL;
3814 }
3815
3816
3817 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3818 PyObject *resultobj;
3819 int *arg1 = (int *) 0 ;
3820 int *arg2 = (int *) 0 ;
3821 int temp1 ;
3822 int temp2 ;
3823 char *kwnames[] = {
3824 NULL
3825 };
3826
3827 arg1 = &temp1;
3828 arg2 = &temp2;
3829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3830 {
3831 PyThreadState* __tstate = wxPyBeginAllowThreads();
3832 wxDisplaySize(arg1,arg2);
3833
3834 wxPyEndAllowThreads(__tstate);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 Py_INCREF(Py_None); resultobj = Py_None;
3838 {
3839 PyObject *o = PyInt_FromLong((long) (*arg1));
3840 resultobj = t_output_helper(resultobj,o);
3841 }
3842 {
3843 PyObject *o = PyInt_FromLong((long) (*arg2));
3844 resultobj = t_output_helper(resultobj,o);
3845 }
3846 return resultobj;
3847 fail:
3848 return NULL;
3849 }
3850
3851
3852 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3853 PyObject *resultobj;
3854 wxSize result;
3855 char *kwnames[] = {
3856 NULL
3857 };
3858
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 result = wxGetDisplaySize();
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 {
3868 wxSize * resultptr;
3869 resultptr = new wxSize((wxSize &) result);
3870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3871 }
3872 return resultobj;
3873 fail:
3874 return NULL;
3875 }
3876
3877
3878 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj;
3880 int *arg1 = (int *) 0 ;
3881 int *arg2 = (int *) 0 ;
3882 int temp1 ;
3883 int temp2 ;
3884 char *kwnames[] = {
3885 NULL
3886 };
3887
3888 arg1 = &temp1;
3889 arg2 = &temp2;
3890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3891 {
3892 PyThreadState* __tstate = wxPyBeginAllowThreads();
3893 wxDisplaySizeMM(arg1,arg2);
3894
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 Py_INCREF(Py_None); resultobj = Py_None;
3899 {
3900 PyObject *o = PyInt_FromLong((long) (*arg1));
3901 resultobj = t_output_helper(resultobj,o);
3902 }
3903 {
3904 PyObject *o = PyInt_FromLong((long) (*arg2));
3905 resultobj = t_output_helper(resultobj,o);
3906 }
3907 return resultobj;
3908 fail:
3909 return NULL;
3910 }
3911
3912
3913 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3914 PyObject *resultobj;
3915 wxSize result;
3916 char *kwnames[] = {
3917 NULL
3918 };
3919
3920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3921 {
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 result = wxGetDisplaySizeMM();
3924
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
3928 {
3929 wxSize * resultptr;
3930 resultptr = new wxSize((wxSize &) result);
3931 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3932 }
3933 return resultobj;
3934 fail:
3935 return NULL;
3936 }
3937
3938
3939 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject *resultobj;
3941 int *arg1 = (int *) 0 ;
3942 int *arg2 = (int *) 0 ;
3943 int *arg3 = (int *) 0 ;
3944 int *arg4 = (int *) 0 ;
3945 int temp1 ;
3946 int temp2 ;
3947 int temp3 ;
3948 int temp4 ;
3949 char *kwnames[] = {
3950 NULL
3951 };
3952
3953 arg1 = &temp1;
3954 arg2 = &temp2;
3955 arg3 = &temp3;
3956 arg4 = &temp4;
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3958 {
3959 PyThreadState* __tstate = wxPyBeginAllowThreads();
3960 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3961
3962 wxPyEndAllowThreads(__tstate);
3963 if (PyErr_Occurred()) SWIG_fail;
3964 }
3965 Py_INCREF(Py_None); resultobj = Py_None;
3966 {
3967 PyObject *o = PyInt_FromLong((long) (*arg1));
3968 resultobj = t_output_helper(resultobj,o);
3969 }
3970 {
3971 PyObject *o = PyInt_FromLong((long) (*arg2));
3972 resultobj = t_output_helper(resultobj,o);
3973 }
3974 {
3975 PyObject *o = PyInt_FromLong((long) (*arg3));
3976 resultobj = t_output_helper(resultobj,o);
3977 }
3978 {
3979 PyObject *o = PyInt_FromLong((long) (*arg4));
3980 resultobj = t_output_helper(resultobj,o);
3981 }
3982 return resultobj;
3983 fail:
3984 return NULL;
3985 }
3986
3987
3988 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3989 PyObject *resultobj;
3990 wxRect result;
3991 char *kwnames[] = {
3992 NULL
3993 };
3994
3995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3996 {
3997 PyThreadState* __tstate = wxPyBeginAllowThreads();
3998 result = wxGetClientDisplayRect();
3999
4000 wxPyEndAllowThreads(__tstate);
4001 if (PyErr_Occurred()) SWIG_fail;
4002 }
4003 {
4004 wxRect * resultptr;
4005 resultptr = new wxRect((wxRect &) result);
4006 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4007 }
4008 return resultobj;
4009 fail:
4010 return NULL;
4011 }
4012
4013
4014 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4015 PyObject *resultobj;
4016 wxCursor *arg1 = 0 ;
4017 PyObject * obj0 = 0 ;
4018 char *kwnames[] = {
4019 (char *) "cursor", NULL
4020 };
4021
4022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4024 SWIG_POINTER_EXCEPTION | 0)) == -1)
4025 SWIG_fail;
4026 if (arg1 == NULL) {
4027 PyErr_SetString(PyExc_TypeError,"null reference");
4028 SWIG_fail;
4029 }
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 wxSetCursor(*arg1);
4033
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 Py_INCREF(Py_None); resultobj = Py_None;
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj;
4046 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4047 PyObject * obj0 = 0 ;
4048 char *kwnames[] = {
4049 (char *) "cursor", NULL
4050 };
4051
4052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4053 if (obj0) {
4054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4056 }
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 wxBeginBusyCursor(arg1);
4060
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 Py_INCREF(Py_None); resultobj = Py_None;
4065 return resultobj;
4066 fail:
4067 return NULL;
4068 }
4069
4070
4071 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4072 PyObject *resultobj;
4073 wxWindow *result;
4074 char *kwnames[] = {
4075 NULL
4076 };
4077
4078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 result = (wxWindow *)wxGetActiveWindow();
4082
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 {
4087 resultobj = wxPyMake_wxObject(result);
4088 }
4089 return resultobj;
4090 fail:
4091 return NULL;
4092 }
4093
4094
4095 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4096 PyObject *resultobj;
4097 wxPoint *arg1 = 0 ;
4098 wxWindow *result;
4099 wxPoint temp1 ;
4100 PyObject * obj0 = 0 ;
4101 char *kwnames[] = {
4102 (char *) "pt", NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4106 {
4107 arg1 = &temp1;
4108 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4109 }
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4113
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 {
4118 resultobj = wxPyMake_wxObject(result);
4119 }
4120 return resultobj;
4121 fail:
4122 return NULL;
4123 }
4124
4125
4126 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4127 PyObject *resultobj;
4128 wxPoint *arg1 = 0 ;
4129 wxWindow *result;
4130 wxPoint temp1 ;
4131 PyObject * obj0 = 0 ;
4132 char *kwnames[] = {
4133 (char *) "pt", NULL
4134 };
4135
4136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4137 {
4138 arg1 = &temp1;
4139 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4140 }
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4144
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 {
4149 resultobj = wxPyMake_wxObject(result);
4150 }
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxWindow *arg1 = (wxWindow *) 0 ;
4160 wxWindow *result;
4161 PyObject * obj0 = 0 ;
4162 char *kwnames[] = {
4163 (char *) "win", NULL
4164 };
4165
4166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (wxWindow *)wxGetTopLevelParent(arg1);
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 {
4177 resultobj = wxPyMake_wxObject(result);
4178 }
4179 return resultobj;
4180 fail:
4181 return NULL;
4182 }
4183
4184
4185 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4186 PyObject *resultobj;
4187 int arg1 ;
4188 bool result;
4189 PyObject * obj0 = 0 ;
4190 char *kwnames[] = {
4191 (char *) "key", NULL
4192 };
4193
4194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4195 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4200
4201 wxPyEndAllowThreads(__tstate);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 {
4205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4206 }
4207 return resultobj;
4208 fail:
4209 return NULL;
4210 }
4211
4212
4213 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4214 PyObject *resultobj;
4215 char *kwnames[] = {
4216 NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4220 {
4221 PyThreadState* __tstate = wxPyBeginAllowThreads();
4222 wxWakeUpMainThread();
4223
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 Py_INCREF(Py_None); resultobj = Py_None;
4228 return resultobj;
4229 fail:
4230 return NULL;
4231 }
4232
4233
4234 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4235 PyObject *resultobj;
4236 char *kwnames[] = {
4237 NULL
4238 };
4239
4240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4241 {
4242 PyThreadState* __tstate = wxPyBeginAllowThreads();
4243 wxMutexGuiEnter();
4244
4245 wxPyEndAllowThreads(__tstate);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 }
4248 Py_INCREF(Py_None); resultobj = Py_None;
4249 return resultobj;
4250 fail:
4251 return NULL;
4252 }
4253
4254
4255 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4256 PyObject *resultobj;
4257 char *kwnames[] = {
4258 NULL
4259 };
4260
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 wxMutexGuiLeave();
4265
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 Py_INCREF(Py_None); resultobj = Py_None;
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj;
4278 wxMutexGuiLocker *result;
4279 char *kwnames[] = {
4280 NULL
4281 };
4282
4283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4284 {
4285 PyThreadState* __tstate = wxPyBeginAllowThreads();
4286 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4287
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4292 return resultobj;
4293 fail:
4294 return NULL;
4295 }
4296
4297
4298 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4299 PyObject *resultobj;
4300 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4301 PyObject * obj0 = 0 ;
4302 char *kwnames[] = {
4303 (char *) "self", NULL
4304 };
4305
4306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 delete arg1;
4312
4313 wxPyEndAllowThreads(__tstate);
4314 if (PyErr_Occurred()) SWIG_fail;
4315 }
4316 Py_INCREF(Py_None); resultobj = Py_None;
4317 return resultobj;
4318 fail:
4319 return NULL;
4320 }
4321
4322
4323 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4324 PyObject *obj;
4325 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4326 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4327 Py_INCREF(obj);
4328 return Py_BuildValue((char *)"");
4329 }
4330 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4331 PyObject *resultobj;
4332 bool result;
4333 char *kwnames[] = {
4334 NULL
4335 };
4336
4337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4338 {
4339 PyThreadState* __tstate = wxPyBeginAllowThreads();
4340 result = (bool)wxThread_IsMain();
4341
4342 wxPyEndAllowThreads(__tstate);
4343 if (PyErr_Occurred()) SWIG_fail;
4344 }
4345 {
4346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4347 }
4348 return resultobj;
4349 fail:
4350 return NULL;
4351 }
4352
4353
4354 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4355 PyObject *resultobj;
4356 wxString *arg1 = 0 ;
4357 wxToolTip *result;
4358 bool temp1 = False ;
4359 PyObject * obj0 = 0 ;
4360 char *kwnames[] = {
4361 (char *) "tip", NULL
4362 };
4363
4364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4365 {
4366 arg1 = wxString_in_helper(obj0);
4367 if (arg1 == NULL) SWIG_fail;
4368 temp1 = True;
4369 }
4370 {
4371 PyThreadState* __tstate = wxPyBeginAllowThreads();
4372 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4373
4374 wxPyEndAllowThreads(__tstate);
4375 if (PyErr_Occurred()) SWIG_fail;
4376 }
4377 {
4378 resultobj = wxPyMake_wxObject(result);
4379 }
4380 {
4381 if (temp1)
4382 delete arg1;
4383 }
4384 return resultobj;
4385 fail:
4386 {
4387 if (temp1)
4388 delete arg1;
4389 }
4390 return NULL;
4391 }
4392
4393
4394 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4395 PyObject *resultobj;
4396 wxToolTip *arg1 = (wxToolTip *) 0 ;
4397 wxString *arg2 = 0 ;
4398 bool temp2 = False ;
4399 PyObject * obj0 = 0 ;
4400 PyObject * obj1 = 0 ;
4401 char *kwnames[] = {
4402 (char *) "self",(char *) "tip", NULL
4403 };
4404
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4408 {
4409 arg2 = wxString_in_helper(obj1);
4410 if (arg2 == NULL) SWIG_fail;
4411 temp2 = True;
4412 }
4413 {
4414 PyThreadState* __tstate = wxPyBeginAllowThreads();
4415 (arg1)->SetTip((wxString const &)*arg2);
4416
4417 wxPyEndAllowThreads(__tstate);
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 Py_INCREF(Py_None); resultobj = Py_None;
4421 {
4422 if (temp2)
4423 delete arg2;
4424 }
4425 return resultobj;
4426 fail:
4427 {
4428 if (temp2)
4429 delete arg2;
4430 }
4431 return NULL;
4432 }
4433
4434
4435 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 wxToolTip *arg1 = (wxToolTip *) 0 ;
4438 wxString result;
4439 PyObject * obj0 = 0 ;
4440 char *kwnames[] = {
4441 (char *) "self", NULL
4442 };
4443
4444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 result = (arg1)->GetTip();
4450
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 {
4455 #if wxUSE_UNICODE
4456 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4457 #else
4458 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4459 #endif
4460 }
4461 return resultobj;
4462 fail:
4463 return NULL;
4464 }
4465
4466
4467 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4468 PyObject *resultobj;
4469 wxToolTip *arg1 = (wxToolTip *) 0 ;
4470 wxWindow *result;
4471 PyObject * obj0 = 0 ;
4472 char *kwnames[] = {
4473 (char *) "self", NULL
4474 };
4475
4476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (wxWindow *)(arg1)->GetWindow();
4482
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 {
4487 resultobj = wxPyMake_wxObject(result);
4488 }
4489 return resultobj;
4490 fail:
4491 return NULL;
4492 }
4493
4494
4495 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject *resultobj;
4497 bool arg1 ;
4498 PyObject * obj0 = 0 ;
4499 char *kwnames[] = {
4500 (char *) "flag", NULL
4501 };
4502
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4504 arg1 = (bool) SWIG_AsBool(obj0);
4505 if (PyErr_Occurred()) SWIG_fail;
4506 {
4507 PyThreadState* __tstate = wxPyBeginAllowThreads();
4508 wxToolTip::Enable(arg1);
4509
4510 wxPyEndAllowThreads(__tstate);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 }
4513 Py_INCREF(Py_None); resultobj = Py_None;
4514 return resultobj;
4515 fail:
4516 return NULL;
4517 }
4518
4519
4520 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj;
4522 long arg1 ;
4523 PyObject * obj0 = 0 ;
4524 char *kwnames[] = {
4525 (char *) "milliseconds", NULL
4526 };
4527
4528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4529 arg1 = (long) SWIG_AsLong(obj0);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 {
4532 PyThreadState* __tstate = wxPyBeginAllowThreads();
4533 wxToolTip::SetDelay(arg1);
4534
4535 wxPyEndAllowThreads(__tstate);
4536 if (PyErr_Occurred()) SWIG_fail;
4537 }
4538 Py_INCREF(Py_None); resultobj = Py_None;
4539 return resultobj;
4540 fail:
4541 return NULL;
4542 }
4543
4544
4545 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4546 PyObject *obj;
4547 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4548 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4549 Py_INCREF(obj);
4550 return Py_BuildValue((char *)"");
4551 }
4552 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4553 PyObject *resultobj;
4554 wxWindow *arg1 = (wxWindow *) 0 ;
4555 wxSize *arg2 = 0 ;
4556 wxCaret *result;
4557 wxSize temp2 ;
4558 PyObject * obj0 = 0 ;
4559 PyObject * obj1 = 0 ;
4560 char *kwnames[] = {
4561 (char *) "window",(char *) "size", NULL
4562 };
4563
4564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4567 {
4568 arg2 = &temp2;
4569 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4570 }
4571 {
4572 PyThreadState* __tstate = wxPyBeginAllowThreads();
4573 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4574
4575 wxPyEndAllowThreads(__tstate);
4576 if (PyErr_Occurred()) SWIG_fail;
4577 }
4578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4579 return resultobj;
4580 fail:
4581 return NULL;
4582 }
4583
4584
4585 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4586 PyObject *resultobj;
4587 wxCaret *arg1 = (wxCaret *) 0 ;
4588 PyObject * obj0 = 0 ;
4589 char *kwnames[] = {
4590 (char *) "self", NULL
4591 };
4592
4593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4596 {
4597 PyThreadState* __tstate = wxPyBeginAllowThreads();
4598 delete arg1;
4599
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 Py_INCREF(Py_None); resultobj = Py_None;
4604 return resultobj;
4605 fail:
4606 return NULL;
4607 }
4608
4609
4610 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4611 PyObject *resultobj;
4612 wxCaret *arg1 = (wxCaret *) 0 ;
4613 bool result;
4614 PyObject * obj0 = 0 ;
4615 char *kwnames[] = {
4616 (char *) "self", NULL
4617 };
4618
4619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4622 {
4623 PyThreadState* __tstate = wxPyBeginAllowThreads();
4624 result = (bool)(arg1)->IsOk();
4625
4626 wxPyEndAllowThreads(__tstate);
4627 if (PyErr_Occurred()) SWIG_fail;
4628 }
4629 {
4630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4631 }
4632 return resultobj;
4633 fail:
4634 return NULL;
4635 }
4636
4637
4638 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj;
4640 wxCaret *arg1 = (wxCaret *) 0 ;
4641 bool result;
4642 PyObject * obj0 = 0 ;
4643 char *kwnames[] = {
4644 (char *) "self", NULL
4645 };
4646
4647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4650 {
4651 PyThreadState* __tstate = wxPyBeginAllowThreads();
4652 result = (bool)(arg1)->IsVisible();
4653
4654 wxPyEndAllowThreads(__tstate);
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 {
4658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4659 }
4660 return resultobj;
4661 fail:
4662 return NULL;
4663 }
4664
4665
4666 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj;
4668 wxCaret *arg1 = (wxCaret *) 0 ;
4669 wxPoint result;
4670 PyObject * obj0 = 0 ;
4671 char *kwnames[] = {
4672 (char *) "self", NULL
4673 };
4674
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4678 {
4679 PyThreadState* __tstate = wxPyBeginAllowThreads();
4680 result = (arg1)->GetPosition();
4681
4682 wxPyEndAllowThreads(__tstate);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 {
4686 wxPoint * resultptr;
4687 resultptr = new wxPoint((wxPoint &) result);
4688 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4689 }
4690 return resultobj;
4691 fail:
4692 return NULL;
4693 }
4694
4695
4696 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4697 PyObject *resultobj;
4698 wxCaret *arg1 = (wxCaret *) 0 ;
4699 int *arg2 = (int *) 0 ;
4700 int *arg3 = (int *) 0 ;
4701 int temp2 ;
4702 int temp3 ;
4703 PyObject * obj0 = 0 ;
4704 char *kwnames[] = {
4705 (char *) "self", NULL
4706 };
4707
4708 arg2 = &temp2;
4709 arg3 = &temp3;
4710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4713 {
4714 PyThreadState* __tstate = wxPyBeginAllowThreads();
4715 (arg1)->GetPosition(arg2,arg3);
4716
4717 wxPyEndAllowThreads(__tstate);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 Py_INCREF(Py_None); resultobj = Py_None;
4721 {
4722 PyObject *o = PyInt_FromLong((long) (*arg2));
4723 resultobj = t_output_helper(resultobj,o);
4724 }
4725 {
4726 PyObject *o = PyInt_FromLong((long) (*arg3));
4727 resultobj = t_output_helper(resultobj,o);
4728 }
4729 return resultobj;
4730 fail:
4731 return NULL;
4732 }
4733
4734
4735 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4736 PyObject *resultobj;
4737 wxCaret *arg1 = (wxCaret *) 0 ;
4738 wxSize result;
4739 PyObject * obj0 = 0 ;
4740 char *kwnames[] = {
4741 (char *) "self", NULL
4742 };
4743
4744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4747 {
4748 PyThreadState* __tstate = wxPyBeginAllowThreads();
4749 result = (arg1)->GetSize();
4750
4751 wxPyEndAllowThreads(__tstate);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 {
4755 wxSize * resultptr;
4756 resultptr = new wxSize((wxSize &) result);
4757 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4758 }
4759 return resultobj;
4760 fail:
4761 return NULL;
4762 }
4763
4764
4765 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4766 PyObject *resultobj;
4767 wxCaret *arg1 = (wxCaret *) 0 ;
4768 int *arg2 = (int *) 0 ;
4769 int *arg3 = (int *) 0 ;
4770 int temp2 ;
4771 int temp3 ;
4772 PyObject * obj0 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self", NULL
4775 };
4776
4777 arg2 = &temp2;
4778 arg3 = &temp3;
4779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4782 {
4783 PyThreadState* __tstate = wxPyBeginAllowThreads();
4784 (arg1)->GetSize(arg2,arg3);
4785
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 Py_INCREF(Py_None); resultobj = Py_None;
4790 {
4791 PyObject *o = PyInt_FromLong((long) (*arg2));
4792 resultobj = t_output_helper(resultobj,o);
4793 }
4794 {
4795 PyObject *o = PyInt_FromLong((long) (*arg3));
4796 resultobj = t_output_helper(resultobj,o);
4797 }
4798 return resultobj;
4799 fail:
4800 return NULL;
4801 }
4802
4803
4804 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4805 PyObject *resultobj;
4806 wxCaret *arg1 = (wxCaret *) 0 ;
4807 wxWindow *result;
4808 PyObject * obj0 = 0 ;
4809 char *kwnames[] = {
4810 (char *) "self", NULL
4811 };
4812
4813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (wxWindow *)(arg1)->GetWindow();
4819
4820 wxPyEndAllowThreads(__tstate);
4821 if (PyErr_Occurred()) SWIG_fail;
4822 }
4823 {
4824 resultobj = wxPyMake_wxObject(result);
4825 }
4826 return resultobj;
4827 fail:
4828 return NULL;
4829 }
4830
4831
4832 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4833 PyObject *resultobj;
4834 wxCaret *arg1 = (wxCaret *) 0 ;
4835 int arg2 ;
4836 int arg3 ;
4837 PyObject * obj0 = 0 ;
4838 PyObject * obj1 = 0 ;
4839 PyObject * obj2 = 0 ;
4840 char *kwnames[] = {
4841 (char *) "self",(char *) "x",(char *) "y", NULL
4842 };
4843
4844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4847 arg2 = (int) SWIG_AsInt(obj1);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 arg3 = (int) SWIG_AsInt(obj2);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 (arg1)->Move(arg2,arg3);
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 Py_INCREF(Py_None); resultobj = Py_None;
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxCaret *arg1 = (wxCaret *) 0 ;
4868 wxPoint *arg2 = 0 ;
4869 wxPoint temp2 ;
4870 PyObject * obj0 = 0 ;
4871 PyObject * obj1 = 0 ;
4872 char *kwnames[] = {
4873 (char *) "self",(char *) "pt", NULL
4874 };
4875
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4879 {
4880 arg2 = &temp2;
4881 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4882 }
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 (arg1)->Move((wxPoint const &)*arg2);
4886
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 Py_INCREF(Py_None); resultobj = Py_None;
4891 return resultobj;
4892 fail:
4893 return NULL;
4894 }
4895
4896
4897 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj;
4899 wxCaret *arg1 = (wxCaret *) 0 ;
4900 int arg2 ;
4901 int arg3 ;
4902 PyObject * obj0 = 0 ;
4903 PyObject * obj1 = 0 ;
4904 PyObject * obj2 = 0 ;
4905 char *kwnames[] = {
4906 (char *) "self",(char *) "width",(char *) "height", NULL
4907 };
4908
4909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4912 arg2 = (int) SWIG_AsInt(obj1);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 arg3 = (int) SWIG_AsInt(obj2);
4915 if (PyErr_Occurred()) SWIG_fail;
4916 {
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 (arg1)->SetSize(arg2,arg3);
4919
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 Py_INCREF(Py_None); resultobj = Py_None;
4924 return resultobj;
4925 fail:
4926 return NULL;
4927 }
4928
4929
4930 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4931 PyObject *resultobj;
4932 wxCaret *arg1 = (wxCaret *) 0 ;
4933 wxSize *arg2 = 0 ;
4934 wxSize temp2 ;
4935 PyObject * obj0 = 0 ;
4936 PyObject * obj1 = 0 ;
4937 char *kwnames[] = {
4938 (char *) "self",(char *) "size", NULL
4939 };
4940
4941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4944 {
4945 arg2 = &temp2;
4946 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4947 }
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 (arg1)->SetSize((wxSize const &)*arg2);
4951
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 Py_INCREF(Py_None); resultobj = Py_None;
4956 return resultobj;
4957 fail:
4958 return NULL;
4959 }
4960
4961
4962 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4963 PyObject *resultobj;
4964 wxCaret *arg1 = (wxCaret *) 0 ;
4965 int arg2 = (int) True ;
4966 PyObject * obj0 = 0 ;
4967 PyObject * obj1 = 0 ;
4968 char *kwnames[] = {
4969 (char *) "self",(char *) "show", NULL
4970 };
4971
4972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4975 if (obj1) {
4976 arg2 = (int) SWIG_AsInt(obj1);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 }
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 (arg1)->Show(arg2);
4982
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 Py_INCREF(Py_None); resultobj = Py_None;
4987 return resultobj;
4988 fail:
4989 return NULL;
4990 }
4991
4992
4993 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4994 PyObject *resultobj;
4995 wxCaret *arg1 = (wxCaret *) 0 ;
4996 PyObject * obj0 = 0 ;
4997 char *kwnames[] = {
4998 (char *) "self", NULL
4999 };
5000
5001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 (arg1)->Hide();
5007
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 Py_INCREF(Py_None); resultobj = Py_None;
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5019 PyObject *obj;
5020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5021 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5022 Py_INCREF(obj);
5023 return Py_BuildValue((char *)"");
5024 }
5025 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj;
5027 int result;
5028 char *kwnames[] = {
5029 NULL
5030 };
5031
5032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = (int)wxCaret_GetBlinkTime();
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 resultobj = SWIG_FromInt((int)result);
5041 return resultobj;
5042 fail:
5043 return NULL;
5044 }
5045
5046
5047 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5048 PyObject *resultobj;
5049 int arg1 ;
5050 PyObject * obj0 = 0 ;
5051 char *kwnames[] = {
5052 (char *) "milliseconds", NULL
5053 };
5054
5055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5056 arg1 = (int) SWIG_AsInt(obj0);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 {
5059 PyThreadState* __tstate = wxPyBeginAllowThreads();
5060 wxCaret_SetBlinkTime(arg1);
5061
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 Py_INCREF(Py_None); resultobj = Py_None;
5066 return resultobj;
5067 fail:
5068 return NULL;
5069 }
5070
5071
5072 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5073 PyObject *resultobj;
5074 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5075 wxBusyCursor *result;
5076 PyObject * obj0 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "cursor", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5082 if (obj0) {
5083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5085 }
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj;
5102 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5103 PyObject * obj0 = 0 ;
5104 char *kwnames[] = {
5105 (char *) "self", NULL
5106 };
5107
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 delete arg1;
5114
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 Py_INCREF(Py_None); resultobj = Py_None;
5119 return resultobj;
5120 fail:
5121 return NULL;
5122 }
5123
5124
5125 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5126 PyObject *obj;
5127 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5128 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5129 Py_INCREF(obj);
5130 return Py_BuildValue((char *)"");
5131 }
5132 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5133 PyObject *resultobj;
5134 wxWindow *arg1 = (wxWindow *) NULL ;
5135 wxWindowDisabler *result;
5136 PyObject * obj0 = 0 ;
5137 char *kwnames[] = {
5138 (char *) "winToSkip", NULL
5139 };
5140
5141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5142 if (obj0) {
5143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5145 }
5146 {
5147 PyThreadState* __tstate = wxPyBeginAllowThreads();
5148 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5149
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5154 return resultobj;
5155 fail:
5156 return NULL;
5157 }
5158
5159
5160 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5161 PyObject *resultobj;
5162 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5163 PyObject * obj0 = 0 ;
5164 char *kwnames[] = {
5165 (char *) "self", NULL
5166 };
5167
5168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 delete arg1;
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 Py_INCREF(Py_None); resultobj = Py_None;
5179 return resultobj;
5180 fail:
5181 return NULL;
5182 }
5183
5184
5185 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5186 PyObject *obj;
5187 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5188 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5189 Py_INCREF(obj);
5190 return Py_BuildValue((char *)"");
5191 }
5192 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5193 PyObject *resultobj;
5194 wxString *arg1 = 0 ;
5195 wxBusyInfo *result;
5196 bool temp1 = False ;
5197 PyObject * obj0 = 0 ;
5198 char *kwnames[] = {
5199 (char *) "message", NULL
5200 };
5201
5202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5203 {
5204 arg1 = wxString_in_helper(obj0);
5205 if (arg1 == NULL) SWIG_fail;
5206 temp1 = True;
5207 }
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5211
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5216 {
5217 if (temp1)
5218 delete arg1;
5219 }
5220 return resultobj;
5221 fail:
5222 {
5223 if (temp1)
5224 delete arg1;
5225 }
5226 return NULL;
5227 }
5228
5229
5230 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5231 PyObject *resultobj;
5232 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5233 PyObject * obj0 = 0 ;
5234 char *kwnames[] = {
5235 (char *) "self", NULL
5236 };
5237
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5241 {
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 delete arg1;
5244
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 Py_INCREF(Py_None); resultobj = Py_None;
5249 return resultobj;
5250 fail:
5251 return NULL;
5252 }
5253
5254
5255 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5256 PyObject *obj;
5257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5258 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5259 Py_INCREF(obj);
5260 return Py_BuildValue((char *)"");
5261 }
5262 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5263 PyObject *resultobj;
5264 wxStopWatch *result;
5265 char *kwnames[] = {
5266 NULL
5267 };
5268
5269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 result = (wxStopWatch *)new wxStopWatch();
5273
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5278 return resultobj;
5279 fail:
5280 return NULL;
5281 }
5282
5283
5284 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5285 PyObject *resultobj;
5286 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5287 long arg2 = (long) 0 ;
5288 PyObject * obj0 = 0 ;
5289 PyObject * obj1 = 0 ;
5290 char *kwnames[] = {
5291 (char *) "self",(char *) "t0", NULL
5292 };
5293
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5297 if (obj1) {
5298 arg2 = (long) SWIG_AsLong(obj1);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 {
5302 PyThreadState* __tstate = wxPyBeginAllowThreads();
5303 (arg1)->Start(arg2);
5304
5305 wxPyEndAllowThreads(__tstate);
5306 if (PyErr_Occurred()) SWIG_fail;
5307 }
5308 Py_INCREF(Py_None); resultobj = Py_None;
5309 return resultobj;
5310 fail:
5311 return NULL;
5312 }
5313
5314
5315 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5316 PyObject *resultobj;
5317 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5318 PyObject * obj0 = 0 ;
5319 char *kwnames[] = {
5320 (char *) "self", NULL
5321 };
5322
5323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5326 {
5327 PyThreadState* __tstate = wxPyBeginAllowThreads();
5328 (arg1)->Pause();
5329
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 Py_INCREF(Py_None); resultobj = Py_None;
5334 return resultobj;
5335 fail:
5336 return NULL;
5337 }
5338
5339
5340 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5341 PyObject *resultobj;
5342 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5343 PyObject * obj0 = 0 ;
5344 char *kwnames[] = {
5345 (char *) "self", NULL
5346 };
5347
5348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5351 {
5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
5353 (arg1)->Resume();
5354
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 Py_INCREF(Py_None); resultobj = Py_None;
5359 return resultobj;
5360 fail:
5361 return NULL;
5362 }
5363
5364
5365 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj;
5367 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5368 long result;
5369 PyObject * obj0 = 0 ;
5370 char *kwnames[] = {
5371 (char *) "self", NULL
5372 };
5373
5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5377 {
5378 PyThreadState* __tstate = wxPyBeginAllowThreads();
5379 result = (long)((wxStopWatch const *)arg1)->Time();
5380
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 resultobj = SWIG_FromLong((long)result);
5385 return resultobj;
5386 fail:
5387 return NULL;
5388 }
5389
5390
5391 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5392 PyObject *obj;
5393 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5394 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5395 Py_INCREF(obj);
5396 return Py_BuildValue((char *)"");
5397 }
5398 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5399 PyObject *resultobj;
5400 int arg1 = (int) 9 ;
5401 wxFileHistory *result;
5402 PyObject * obj0 = 0 ;
5403 char *kwnames[] = {
5404 (char *) "maxFiles", NULL
5405 };
5406
5407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5408 if (obj0) {
5409 arg1 = (int) SWIG_AsInt(obj0);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 {
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 result = (wxFileHistory *)new wxFileHistory(arg1);
5415
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5420 return resultobj;
5421 fail:
5422 return NULL;
5423 }
5424
5425
5426 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject *resultobj;
5428 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5429 PyObject * obj0 = 0 ;
5430 char *kwnames[] = {
5431 (char *) "self", NULL
5432 };
5433
5434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5437 {
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 delete arg1;
5440
5441 wxPyEndAllowThreads(__tstate);
5442 if (PyErr_Occurred()) SWIG_fail;
5443 }
5444 Py_INCREF(Py_None); resultobj = Py_None;
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj;
5453 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5454 wxString *arg2 = 0 ;
5455 bool temp2 = False ;
5456 PyObject * obj0 = 0 ;
5457 PyObject * obj1 = 0 ;
5458 char *kwnames[] = {
5459 (char *) "self",(char *) "file", NULL
5460 };
5461
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5465 {
5466 arg2 = wxString_in_helper(obj1);
5467 if (arg2 == NULL) SWIG_fail;
5468 temp2 = True;
5469 }
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 (arg1)->AddFileToHistory((wxString const &)*arg2);
5473
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 Py_INCREF(Py_None); resultobj = Py_None;
5478 {
5479 if (temp2)
5480 delete arg2;
5481 }
5482 return resultobj;
5483 fail:
5484 {
5485 if (temp2)
5486 delete arg2;
5487 }
5488 return NULL;
5489 }
5490
5491
5492 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5493 PyObject *resultobj;
5494 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5495 int arg2 ;
5496 PyObject * obj0 = 0 ;
5497 PyObject * obj1 = 0 ;
5498 char *kwnames[] = {
5499 (char *) "self",(char *) "i", NULL
5500 };
5501
5502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5505 arg2 = (int) SWIG_AsInt(obj1);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 {
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 (arg1)->RemoveFileFromHistory(arg2);
5510
5511 wxPyEndAllowThreads(__tstate);
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 Py_INCREF(Py_None); resultobj = Py_None;
5515 return resultobj;
5516 fail:
5517 return NULL;
5518 }
5519
5520
5521 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5522 PyObject *resultobj;
5523 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5524 int result;
5525 PyObject * obj0 = 0 ;
5526 char *kwnames[] = {
5527 (char *) "self", NULL
5528 };
5529
5530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5533 {
5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
5535 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5536
5537 wxPyEndAllowThreads(__tstate);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 resultobj = SWIG_FromInt((int)result);
5541 return resultobj;
5542 fail:
5543 return NULL;
5544 }
5545
5546
5547 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5548 PyObject *resultobj;
5549 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5550 wxMenu *arg2 = (wxMenu *) 0 ;
5551 PyObject * obj0 = 0 ;
5552 PyObject * obj1 = 0 ;
5553 char *kwnames[] = {
5554 (char *) "self",(char *) "menu", NULL
5555 };
5556
5557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5562 {
5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
5564 (arg1)->UseMenu(arg2);
5565
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 Py_INCREF(Py_None); resultobj = Py_None;
5570 return resultobj;
5571 fail:
5572 return NULL;
5573 }
5574
5575
5576 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5577 PyObject *resultobj;
5578 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5579 wxMenu *arg2 = (wxMenu *) 0 ;
5580 PyObject * obj0 = 0 ;
5581 PyObject * obj1 = 0 ;
5582 char *kwnames[] = {
5583 (char *) "self",(char *) "menu", NULL
5584 };
5585
5586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5589 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5591 {
5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
5593 (arg1)->RemoveMenu(arg2);
5594
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 Py_INCREF(Py_None); resultobj = Py_None;
5599 return resultobj;
5600 fail:
5601 return NULL;
5602 }
5603
5604
5605 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj;
5607 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5608 wxConfigBase *arg2 = 0 ;
5609 PyObject * obj0 = 0 ;
5610 PyObject * obj1 = 0 ;
5611 char *kwnames[] = {
5612 (char *) "self",(char *) "config", NULL
5613 };
5614
5615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5618 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5619 SWIG_POINTER_EXCEPTION | 0)) == -1)
5620 SWIG_fail;
5621 if (arg2 == NULL) {
5622 PyErr_SetString(PyExc_TypeError,"null reference");
5623 SWIG_fail;
5624 }
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 (arg1)->Load(*arg2);
5628
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 Py_INCREF(Py_None); resultobj = Py_None;
5633 return resultobj;
5634 fail:
5635 return NULL;
5636 }
5637
5638
5639 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj;
5641 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5642 wxConfigBase *arg2 = 0 ;
5643 PyObject * obj0 = 0 ;
5644 PyObject * obj1 = 0 ;
5645 char *kwnames[] = {
5646 (char *) "self",(char *) "config", NULL
5647 };
5648
5649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5653 SWIG_POINTER_EXCEPTION | 0)) == -1)
5654 SWIG_fail;
5655 if (arg2 == NULL) {
5656 PyErr_SetString(PyExc_TypeError,"null reference");
5657 SWIG_fail;
5658 }
5659 {
5660 PyThreadState* __tstate = wxPyBeginAllowThreads();
5661 (arg1)->Save(*arg2);
5662
5663 wxPyEndAllowThreads(__tstate);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 Py_INCREF(Py_None); resultobj = Py_None;
5667 return resultobj;
5668 fail:
5669 return NULL;
5670 }
5671
5672
5673 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5674 PyObject *resultobj;
5675 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5676 PyObject * obj0 = 0 ;
5677 char *kwnames[] = {
5678 (char *) "self", NULL
5679 };
5680
5681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 (arg1)->AddFilesToMenu();
5687
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 Py_INCREF(Py_None); resultobj = Py_None;
5692 return resultobj;
5693 fail:
5694 return NULL;
5695 }
5696
5697
5698 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj;
5700 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5701 wxMenu *arg2 = (wxMenu *) 0 ;
5702 PyObject * obj0 = 0 ;
5703 PyObject * obj1 = 0 ;
5704 char *kwnames[] = {
5705 (char *) "self",(char *) "menu", NULL
5706 };
5707
5708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5711 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5713 {
5714 PyThreadState* __tstate = wxPyBeginAllowThreads();
5715 (arg1)->AddFilesToMenu(arg2);
5716
5717 wxPyEndAllowThreads(__tstate);
5718 if (PyErr_Occurred()) SWIG_fail;
5719 }
5720 Py_INCREF(Py_None); resultobj = Py_None;
5721 return resultobj;
5722 fail:
5723 return NULL;
5724 }
5725
5726
5727 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5728 PyObject *resultobj;
5729 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5730 int arg2 ;
5731 wxString result;
5732 PyObject * obj0 = 0 ;
5733 PyObject * obj1 = 0 ;
5734 char *kwnames[] = {
5735 (char *) "self",(char *) "i", NULL
5736 };
5737
5738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5741 arg2 = (int) SWIG_AsInt(obj1);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 {
5744 PyThreadState* __tstate = wxPyBeginAllowThreads();
5745 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5746
5747 wxPyEndAllowThreads(__tstate);
5748 if (PyErr_Occurred()) SWIG_fail;
5749 }
5750 {
5751 #if wxUSE_UNICODE
5752 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5753 #else
5754 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5755 #endif
5756 }
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5766 int result;
5767 PyObject * obj0 = 0 ;
5768 char *kwnames[] = {
5769 (char *) "self", NULL
5770 };
5771
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5775 {
5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
5777 result = (int)((wxFileHistory const *)arg1)->GetCount();
5778
5779 wxPyEndAllowThreads(__tstate);
5780 if (PyErr_Occurred()) SWIG_fail;
5781 }
5782 resultobj = SWIG_FromInt((int)result);
5783 return resultobj;
5784 fail:
5785 return NULL;
5786 }
5787
5788
5789 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5790 PyObject *obj;
5791 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5792 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5793 Py_INCREF(obj);
5794 return Py_BuildValue((char *)"");
5795 }
5796 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5797 PyObject *resultobj;
5798 wxString *arg1 = 0 ;
5799 wxString const &arg2_defvalue = wxPyEmptyString ;
5800 wxString *arg2 = (wxString *) &arg2_defvalue ;
5801 wxSingleInstanceChecker *result;
5802 bool temp1 = False ;
5803 bool temp2 = False ;
5804 PyObject * obj0 = 0 ;
5805 PyObject * obj1 = 0 ;
5806 char *kwnames[] = {
5807 (char *) "name",(char *) "path", NULL
5808 };
5809
5810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5811 {
5812 arg1 = wxString_in_helper(obj0);
5813 if (arg1 == NULL) SWIG_fail;
5814 temp1 = True;
5815 }
5816 if (obj1) {
5817 {
5818 arg2 = wxString_in_helper(obj1);
5819 if (arg2 == NULL) SWIG_fail;
5820 temp2 = True;
5821 }
5822 }
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5826
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5831 {
5832 if (temp1)
5833 delete arg1;
5834 }
5835 {
5836 if (temp2)
5837 delete arg2;
5838 }
5839 return resultobj;
5840 fail:
5841 {
5842 if (temp1)
5843 delete arg1;
5844 }
5845 {
5846 if (temp2)
5847 delete arg2;
5848 }
5849 return NULL;
5850 }
5851
5852
5853 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5854 PyObject *resultobj;
5855 wxSingleInstanceChecker *result;
5856 char *kwnames[] = {
5857 NULL
5858 };
5859
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5878 PyObject * obj0 = 0 ;
5879 char *kwnames[] = {
5880 (char *) "self", NULL
5881 };
5882
5883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 delete arg1;
5889
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 Py_INCREF(Py_None); resultobj = Py_None;
5894 return resultobj;
5895 fail:
5896 return NULL;
5897 }
5898
5899
5900 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5901 PyObject *resultobj;
5902 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5903 wxString *arg2 = 0 ;
5904 wxString const &arg3_defvalue = wxPyEmptyString ;
5905 wxString *arg3 = (wxString *) &arg3_defvalue ;
5906 bool result;
5907 bool temp2 = False ;
5908 bool temp3 = False ;
5909 PyObject * obj0 = 0 ;
5910 PyObject * obj1 = 0 ;
5911 PyObject * obj2 = 0 ;
5912 char *kwnames[] = {
5913 (char *) "self",(char *) "name",(char *) "path", NULL
5914 };
5915
5916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5919 {
5920 arg2 = wxString_in_helper(obj1);
5921 if (arg2 == NULL) SWIG_fail;
5922 temp2 = True;
5923 }
5924 if (obj2) {
5925 {
5926 arg3 = wxString_in_helper(obj2);
5927 if (arg3 == NULL) SWIG_fail;
5928 temp3 = True;
5929 }
5930 }
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5934
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 {
5939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5940 }
5941 {
5942 if (temp2)
5943 delete arg2;
5944 }
5945 {
5946 if (temp3)
5947 delete arg3;
5948 }
5949 return resultobj;
5950 fail:
5951 {
5952 if (temp2)
5953 delete arg2;
5954 }
5955 {
5956 if (temp3)
5957 delete arg3;
5958 }
5959 return NULL;
5960 }
5961
5962
5963 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5964 PyObject *resultobj;
5965 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5966 bool result;
5967 PyObject * obj0 = 0 ;
5968 char *kwnames[] = {
5969 (char *) "self", NULL
5970 };
5971
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5975 {
5976 PyThreadState* __tstate = wxPyBeginAllowThreads();
5977 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5978
5979 wxPyEndAllowThreads(__tstate);
5980 if (PyErr_Occurred()) SWIG_fail;
5981 }
5982 {
5983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5984 }
5985 return resultobj;
5986 fail:
5987 return NULL;
5988 }
5989
5990
5991 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5992 PyObject *obj;
5993 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5994 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5995 Py_INCREF(obj);
5996 return Py_BuildValue((char *)"");
5997 }
5998 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj;
6000 wxWindow *arg1 = (wxWindow *) 0 ;
6001 wxDC *arg2 = 0 ;
6002 int arg3 ;
6003 PyObject * obj0 = 0 ;
6004 PyObject * obj1 = 0 ;
6005 PyObject * obj2 = 0 ;
6006 char *kwnames[] = {
6007 (char *) "window",(char *) "dc",(char *) "method", NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6014 SWIG_POINTER_EXCEPTION | 0)) == -1)
6015 SWIG_fail;
6016 if (arg2 == NULL) {
6017 PyErr_SetString(PyExc_TypeError,"null reference");
6018 SWIG_fail;
6019 }
6020 arg3 = (int) SWIG_AsInt(obj2);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 Py_INCREF(Py_None); resultobj = Py_None;
6030 return resultobj;
6031 fail:
6032 return NULL;
6033 }
6034
6035
6036 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6037 PyObject *resultobj;
6038 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6039 PyObject * obj0 = 0 ;
6040 char *kwnames[] = {
6041 (char *) "self", NULL
6042 };
6043
6044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6047 {
6048 PyThreadState* __tstate = wxPyBeginAllowThreads();
6049 delete arg1;
6050
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 Py_INCREF(Py_None); resultobj = Py_None;
6055 return resultobj;
6056 fail:
6057 return NULL;
6058 }
6059
6060
6061 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6062 PyObject *resultobj;
6063 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6064 wxString result;
6065 PyObject * obj0 = 0 ;
6066 char *kwnames[] = {
6067 (char *) "self", NULL
6068 };
6069
6070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 result = (arg1)->GetTip();
6076
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 {
6081 #if wxUSE_UNICODE
6082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6083 #else
6084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6085 #endif
6086 }
6087 return resultobj;
6088 fail:
6089 return NULL;
6090 }
6091
6092
6093 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6094 PyObject *resultobj;
6095 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6096 size_t result;
6097 PyObject * obj0 = 0 ;
6098 char *kwnames[] = {
6099 (char *) "self", NULL
6100 };
6101
6102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 result = (size_t)(arg1)->GetCurrentTip();
6108
6109 wxPyEndAllowThreads(__tstate);
6110 if (PyErr_Occurred()) SWIG_fail;
6111 }
6112 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6113 return resultobj;
6114 fail:
6115 return NULL;
6116 }
6117
6118
6119 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6120 PyObject *resultobj;
6121 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6122 wxString *arg2 = 0 ;
6123 wxString result;
6124 bool temp2 = False ;
6125 PyObject * obj0 = 0 ;
6126 PyObject * obj1 = 0 ;
6127 char *kwnames[] = {
6128 (char *) "self",(char *) "tip", NULL
6129 };
6130
6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6134 {
6135 arg2 = wxString_in_helper(obj1);
6136 if (arg2 == NULL) SWIG_fail;
6137 temp2 = True;
6138 }
6139 {
6140 PyThreadState* __tstate = wxPyBeginAllowThreads();
6141 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6142
6143 wxPyEndAllowThreads(__tstate);
6144 if (PyErr_Occurred()) SWIG_fail;
6145 }
6146 {
6147 #if wxUSE_UNICODE
6148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6149 #else
6150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6151 #endif
6152 }
6153 {
6154 if (temp2)
6155 delete arg2;
6156 }
6157 return resultobj;
6158 fail:
6159 {
6160 if (temp2)
6161 delete arg2;
6162 }
6163 return NULL;
6164 }
6165
6166
6167 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6168 PyObject *obj;
6169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6170 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6171 Py_INCREF(obj);
6172 return Py_BuildValue((char *)"");
6173 }
6174 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6175 PyObject *resultobj;
6176 size_t arg1 ;
6177 wxPyTipProvider *result;
6178 PyObject * obj0 = 0 ;
6179 char *kwnames[] = {
6180 (char *) "currentTip", NULL
6181 };
6182
6183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6184 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 {
6187 PyThreadState* __tstate = wxPyBeginAllowThreads();
6188 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6189
6190 wxPyEndAllowThreads(__tstate);
6191 if (PyErr_Occurred()) SWIG_fail;
6192 }
6193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6194 return resultobj;
6195 fail:
6196 return NULL;
6197 }
6198
6199
6200 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6201 PyObject *resultobj;
6202 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6203 PyObject *arg2 = (PyObject *) 0 ;
6204 PyObject *arg3 = (PyObject *) 0 ;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 PyObject * obj2 = 0 ;
6208 char *kwnames[] = {
6209 (char *) "self",(char *) "self",(char *) "_class", NULL
6210 };
6211
6212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6215 arg2 = obj1;
6216 arg3 = obj2;
6217 {
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 (arg1)->_setCallbackInfo(arg2,arg3);
6220
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 Py_INCREF(Py_None); resultobj = Py_None;
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6232 PyObject *obj;
6233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6234 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6235 Py_INCREF(obj);
6236 return Py_BuildValue((char *)"");
6237 }
6238 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6239 PyObject *resultobj;
6240 wxWindow *arg1 = (wxWindow *) 0 ;
6241 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6242 bool arg3 = (bool) True ;
6243 bool result;
6244 PyObject * obj0 = 0 ;
6245 PyObject * obj1 = 0 ;
6246 PyObject * obj2 = 0 ;
6247 char *kwnames[] = {
6248 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6249 };
6250
6251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6254 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6256 if (obj2) {
6257 arg3 = (bool) SWIG_AsBool(obj2);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 {
6261 PyThreadState* __tstate = wxPyBeginAllowThreads();
6262 result = (bool)wxShowTip(arg1,arg2,arg3);
6263
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 {
6268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6269 }
6270 return resultobj;
6271 fail:
6272 return NULL;
6273 }
6274
6275
6276 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6277 PyObject *resultobj;
6278 wxString *arg1 = 0 ;
6279 size_t arg2 ;
6280 wxTipProvider *result;
6281 bool temp1 = False ;
6282 PyObject * obj0 = 0 ;
6283 PyObject * obj1 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "filename",(char *) "currentTip", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6289 {
6290 arg1 = wxString_in_helper(obj0);
6291 if (arg1 == NULL) SWIG_fail;
6292 temp1 = True;
6293 }
6294 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6295 if (PyErr_Occurred()) SWIG_fail;
6296 {
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6299
6300 wxPyEndAllowThreads(__tstate);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6304 {
6305 if (temp1)
6306 delete arg1;
6307 }
6308 return resultobj;
6309 fail:
6310 {
6311 if (temp1)
6312 delete arg1;
6313 }
6314 return NULL;
6315 }
6316
6317
6318 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj;
6320 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6321 int arg2 = (int) -1 ;
6322 wxPyTimer *result;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char *kwnames[] = {
6326 (char *) "owner",(char *) "id", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6330 if (obj0) {
6331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6333 }
6334 if (obj1) {
6335 arg2 = (int) SWIG_AsInt(obj1);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6341
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6346 return resultobj;
6347 fail:
6348 return NULL;
6349 }
6350
6351
6352 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6353 PyObject *resultobj;
6354 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6355 PyObject * obj0 = 0 ;
6356 char *kwnames[] = {
6357 (char *) "self", NULL
6358 };
6359
6360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 delete arg1;
6366
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 Py_INCREF(Py_None); resultobj = Py_None;
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj;
6379 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6380 PyObject *arg2 = (PyObject *) 0 ;
6381 PyObject *arg3 = (PyObject *) 0 ;
6382 int arg4 = (int) 1 ;
6383 PyObject * obj0 = 0 ;
6384 PyObject * obj1 = 0 ;
6385 PyObject * obj2 = 0 ;
6386 PyObject * obj3 = 0 ;
6387 char *kwnames[] = {
6388 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6389 };
6390
6391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6394 arg2 = obj1;
6395 arg3 = obj2;
6396 if (obj3) {
6397 arg4 = (int) SWIG_AsInt(obj3);
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 Py_INCREF(Py_None); resultobj = Py_None;
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6417 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6418 int arg3 = (int) -1 ;
6419 PyObject * obj0 = 0 ;
6420 PyObject * obj1 = 0 ;
6421 PyObject * obj2 = 0 ;
6422 char *kwnames[] = {
6423 (char *) "self",(char *) "owner",(char *) "id", NULL
6424 };
6425
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6431 if (obj2) {
6432 arg3 = (int) SWIG_AsInt(obj2);
6433 if (PyErr_Occurred()) SWIG_fail;
6434 }
6435 {
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 (arg1)->SetOwner(arg2,arg3);
6438
6439 wxPyEndAllowThreads(__tstate);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 Py_INCREF(Py_None); resultobj = Py_None;
6443 return resultobj;
6444 fail:
6445 return NULL;
6446 }
6447
6448
6449 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6450 PyObject *resultobj;
6451 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6452 wxEvtHandler *result;
6453 PyObject * obj0 = 0 ;
6454 char *kwnames[] = {
6455 (char *) "self", NULL
6456 };
6457
6458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 result = (wxEvtHandler *)(arg1)->GetOwner();
6464
6465 wxPyEndAllowThreads(__tstate);
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 resultobj = wxPyMake_wxObject(result);
6470 }
6471 return resultobj;
6472 fail:
6473 return NULL;
6474 }
6475
6476
6477 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject *resultobj;
6479 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6480 int arg2 = (int) -1 ;
6481 bool arg3 = (bool) False ;
6482 bool result;
6483 PyObject * obj0 = 0 ;
6484 PyObject * obj1 = 0 ;
6485 PyObject * obj2 = 0 ;
6486 char *kwnames[] = {
6487 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6488 };
6489
6490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6493 if (obj1) {
6494 arg2 = (int) SWIG_AsInt(obj1);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 if (obj2) {
6498 arg3 = (bool) SWIG_AsBool(obj2);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 {
6502 PyThreadState* __tstate = wxPyBeginAllowThreads();
6503 result = (bool)(arg1)->Start(arg2,arg3);
6504
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 {
6509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6510 }
6511 return resultobj;
6512 fail:
6513 return NULL;
6514 }
6515
6516
6517 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6518 PyObject *resultobj;
6519 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6520 PyObject * obj0 = 0 ;
6521 char *kwnames[] = {
6522 (char *) "self", NULL
6523 };
6524
6525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6528 {
6529 PyThreadState* __tstate = wxPyBeginAllowThreads();
6530 (arg1)->Stop();
6531
6532 wxPyEndAllowThreads(__tstate);
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 Py_INCREF(Py_None); resultobj = Py_None;
6536 return resultobj;
6537 fail:
6538 return NULL;
6539 }
6540
6541
6542 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6543 PyObject *resultobj;
6544 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6545 bool result;
6546 PyObject * obj0 = 0 ;
6547 char *kwnames[] = {
6548 (char *) "self", NULL
6549 };
6550
6551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6554 {
6555 PyThreadState* __tstate = wxPyBeginAllowThreads();
6556 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6557
6558 wxPyEndAllowThreads(__tstate);
6559 if (PyErr_Occurred()) SWIG_fail;
6560 }
6561 {
6562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6563 }
6564 return resultobj;
6565 fail:
6566 return NULL;
6567 }
6568
6569
6570 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6571 PyObject *resultobj;
6572 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6573 int result;
6574 PyObject * obj0 = 0 ;
6575 char *kwnames[] = {
6576 (char *) "self", NULL
6577 };
6578
6579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6582 {
6583 PyThreadState* __tstate = wxPyBeginAllowThreads();
6584 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6585
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 resultobj = SWIG_FromInt((int)result);
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj;
6598 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6599 bool result;
6600 PyObject * obj0 = 0 ;
6601 char *kwnames[] = {
6602 (char *) "self", NULL
6603 };
6604
6605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6608 {
6609 PyThreadState* __tstate = wxPyBeginAllowThreads();
6610 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6611
6612 wxPyEndAllowThreads(__tstate);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
6615 {
6616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6617 }
6618 return resultobj;
6619 fail:
6620 return NULL;
6621 }
6622
6623
6624 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6625 PyObject *resultobj;
6626 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6627 int result;
6628 PyObject * obj0 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6636 {
6637 PyThreadState* __tstate = wxPyBeginAllowThreads();
6638 result = (int)((wxPyTimer const *)arg1)->GetId();
6639
6640 wxPyEndAllowThreads(__tstate);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 resultobj = SWIG_FromInt((int)result);
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6651 PyObject *obj;
6652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6653 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6654 Py_INCREF(obj);
6655 return Py_BuildValue((char *)"");
6656 }
6657 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6658 PyObject *resultobj;
6659 int arg1 = (int) 0 ;
6660 int arg2 = (int) 0 ;
6661 wxTimerEvent *result;
6662 PyObject * obj0 = 0 ;
6663 PyObject * obj1 = 0 ;
6664 char *kwnames[] = {
6665 (char *) "timerid",(char *) "interval", NULL
6666 };
6667
6668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6669 if (obj0) {
6670 arg1 = (int) SWIG_AsInt(obj0);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 if (obj1) {
6674 arg2 = (int) SWIG_AsInt(obj1);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 {
6678 PyThreadState* __tstate = wxPyBeginAllowThreads();
6679 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6680
6681 wxPyEndAllowThreads(__tstate);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6685 return resultobj;
6686 fail:
6687 return NULL;
6688 }
6689
6690
6691 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6692 PyObject *resultobj;
6693 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6694 int result;
6695 PyObject * obj0 = 0 ;
6696 char *kwnames[] = {
6697 (char *) "self", NULL
6698 };
6699
6700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6703 {
6704 PyThreadState* __tstate = wxPyBeginAllowThreads();
6705 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6706
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 resultobj = SWIG_FromInt((int)result);
6711 return resultobj;
6712 fail:
6713 return NULL;
6714 }
6715
6716
6717 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6718 PyObject *obj;
6719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6720 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6721 Py_INCREF(obj);
6722 return Py_BuildValue((char *)"");
6723 }
6724 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6725 PyObject *resultobj;
6726 wxTimer *arg1 = 0 ;
6727 wxTimerRunner *result;
6728 PyObject * obj0 = 0 ;
6729
6730 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6732 SWIG_POINTER_EXCEPTION | 0)) == -1)
6733 SWIG_fail;
6734 if (arg1 == NULL) {
6735 PyErr_SetString(PyExc_TypeError,"null reference");
6736 SWIG_fail;
6737 }
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6741
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6753 PyObject *resultobj;
6754 wxTimer *arg1 = 0 ;
6755 int arg2 ;
6756 bool arg3 = (bool) False ;
6757 wxTimerRunner *result;
6758 PyObject * obj0 = 0 ;
6759 PyObject * obj1 = 0 ;
6760 PyObject * obj2 = 0 ;
6761
6762 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6764 SWIG_POINTER_EXCEPTION | 0)) == -1)
6765 SWIG_fail;
6766 if (arg1 == NULL) {
6767 PyErr_SetString(PyExc_TypeError,"null reference");
6768 SWIG_fail;
6769 }
6770 arg2 = (int) SWIG_AsInt(obj1);
6771 if (PyErr_Occurred()) SWIG_fail;
6772 if (obj2) {
6773 arg3 = (bool) SWIG_AsBool(obj2);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 {
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6779
6780 wxPyEndAllowThreads(__tstate);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6784 return resultobj;
6785 fail:
6786 return NULL;
6787 }
6788
6789
6790 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6791 int argc;
6792 PyObject *argv[4];
6793 int ii;
6794
6795 argc = PyObject_Length(args);
6796 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6797 argv[ii] = PyTuple_GetItem(args,ii);
6798 }
6799 if (argc == 1) {
6800 int _v;
6801 {
6802 void *ptr;
6803 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6804 _v = 0;
6805 PyErr_Clear();
6806 } else {
6807 _v = 1;
6808 }
6809 }
6810 if (_v) {
6811 return _wrap_new_TimerRunner__SWIG_0(self,args);
6812 }
6813 }
6814 if ((argc >= 2) && (argc <= 3)) {
6815 int _v;
6816 {
6817 void *ptr;
6818 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6819 _v = 0;
6820 PyErr_Clear();
6821 } else {
6822 _v = 1;
6823 }
6824 }
6825 if (_v) {
6826 _v = SWIG_CheckInt(argv[1]);
6827 if (_v) {
6828 if (argc <= 2) {
6829 return _wrap_new_TimerRunner__SWIG_1(self,args);
6830 }
6831 _v = SWIG_CheckBool(argv[2]);
6832 if (_v) {
6833 return _wrap_new_TimerRunner__SWIG_1(self,args);
6834 }
6835 }
6836 }
6837 }
6838
6839 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6840 return NULL;
6841 }
6842
6843
6844 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj;
6846 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6847 PyObject * obj0 = 0 ;
6848 char *kwnames[] = {
6849 (char *) "self", NULL
6850 };
6851
6852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6855 {
6856 PyThreadState* __tstate = wxPyBeginAllowThreads();
6857 delete arg1;
6858
6859 wxPyEndAllowThreads(__tstate);
6860 if (PyErr_Occurred()) SWIG_fail;
6861 }
6862 Py_INCREF(Py_None); resultobj = Py_None;
6863 return resultobj;
6864 fail:
6865 return NULL;
6866 }
6867
6868
6869 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6870 PyObject *resultobj;
6871 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6872 int arg2 ;
6873 bool arg3 = (bool) False ;
6874 PyObject * obj0 = 0 ;
6875 PyObject * obj1 = 0 ;
6876 PyObject * obj2 = 0 ;
6877 char *kwnames[] = {
6878 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6879 };
6880
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6884 arg2 = (int) SWIG_AsInt(obj1);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 if (obj2) {
6887 arg3 = (bool) SWIG_AsBool(obj2);
6888 if (PyErr_Occurred()) SWIG_fail;
6889 }
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 (arg1)->Start(arg2,arg3);
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 Py_INCREF(Py_None); resultobj = Py_None;
6898 return resultobj;
6899 fail:
6900 return NULL;
6901 }
6902
6903
6904 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6905 PyObject *obj;
6906 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6907 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6908 Py_INCREF(obj);
6909 return Py_BuildValue((char *)"");
6910 }
6911 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6912 PyObject *resultobj;
6913 wxLog *result;
6914 char *kwnames[] = {
6915 NULL
6916 };
6917
6918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6919 {
6920 PyThreadState* __tstate = wxPyBeginAllowThreads();
6921 result = (wxLog *)new wxLog();
6922
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6927 return resultobj;
6928 fail:
6929 return NULL;
6930 }
6931
6932
6933 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6934 PyObject *resultobj;
6935 bool result;
6936 char *kwnames[] = {
6937 NULL
6938 };
6939
6940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6941 {
6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
6943 result = (bool)wxLog::IsEnabled();
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_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6958 PyObject *resultobj;
6959 bool arg1 = (bool) True ;
6960 bool result;
6961 PyObject * obj0 = 0 ;
6962 char *kwnames[] = {
6963 (char *) "doIt", NULL
6964 };
6965
6966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6967 if (obj0) {
6968 arg1 = (bool) SWIG_AsBool(obj0);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 {
6972 PyThreadState* __tstate = wxPyBeginAllowThreads();
6973 result = (bool)wxLog::EnableLogging(arg1);
6974
6975 wxPyEndAllowThreads(__tstate);
6976 if (PyErr_Occurred()) SWIG_fail;
6977 }
6978 {
6979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6980 }
6981 return resultobj;
6982 fail:
6983 return NULL;
6984 }
6985
6986
6987 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6988 PyObject *resultobj;
6989 wxLogLevel arg1 ;
6990 wxChar *arg2 = (wxChar *) 0 ;
6991 time_t arg3 ;
6992 PyObject * obj0 = 0 ;
6993 PyObject * obj1 = 0 ;
6994 PyObject * obj2 = 0 ;
6995 char *kwnames[] = {
6996 (char *) "level",(char *) "szString",(char *) "t", NULL
6997 };
6998
6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7000 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7001 if (PyErr_Occurred()) SWIG_fail;
7002 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7004 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 {
7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
7008 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7009
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 Py_INCREF(Py_None); resultobj = Py_None;
7014 return resultobj;
7015 fail:
7016 return NULL;
7017 }
7018
7019
7020 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7021 PyObject *resultobj;
7022 wxLog *arg1 = (wxLog *) 0 ;
7023 PyObject * obj0 = 0 ;
7024 char *kwnames[] = {
7025 (char *) "self", NULL
7026 };
7027
7028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7031 {
7032 PyThreadState* __tstate = wxPyBeginAllowThreads();
7033 (arg1)->Flush();
7034
7035 wxPyEndAllowThreads(__tstate);
7036 if (PyErr_Occurred()) SWIG_fail;
7037 }
7038 Py_INCREF(Py_None); resultobj = Py_None;
7039 return resultobj;
7040 fail:
7041 return NULL;
7042 }
7043
7044
7045 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7046 PyObject *resultobj;
7047 char *kwnames[] = {
7048 NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 wxLog::FlushActive();
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 Py_INCREF(Py_None); resultobj = Py_None;
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj;
7068 wxLog *result;
7069 char *kwnames[] = {
7070 NULL
7071 };
7072
7073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7074 {
7075 PyThreadState* __tstate = wxPyBeginAllowThreads();
7076 result = (wxLog *)wxLog::GetActiveTarget();
7077
7078 wxPyEndAllowThreads(__tstate);
7079 if (PyErr_Occurred()) SWIG_fail;
7080 }
7081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7082 return resultobj;
7083 fail:
7084 return NULL;
7085 }
7086
7087
7088 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7089 PyObject *resultobj;
7090 wxLog *arg1 = (wxLog *) 0 ;
7091 wxLog *result;
7092 PyObject * obj0 = 0 ;
7093 char *kwnames[] = {
7094 (char *) "pLogger", NULL
7095 };
7096
7097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 char *kwnames[] = {
7117 NULL
7118 };
7119
7120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 wxLog::Suspend();
7124
7125 wxPyEndAllowThreads(__tstate);
7126 if (PyErr_Occurred()) SWIG_fail;
7127 }
7128 Py_INCREF(Py_None); resultobj = Py_None;
7129 return resultobj;
7130 fail:
7131 return NULL;
7132 }
7133
7134
7135 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 char *kwnames[] = {
7138 NULL
7139 };
7140
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 wxLog::Resume();
7145
7146 wxPyEndAllowThreads(__tstate);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 Py_INCREF(Py_None); resultobj = Py_None;
7150 return resultobj;
7151 fail:
7152 return NULL;
7153 }
7154
7155
7156 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7157 PyObject *resultobj;
7158 bool arg1 = (bool) True ;
7159 PyObject * obj0 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "bVerbose", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7165 if (obj0) {
7166 arg1 = (bool) SWIG_AsBool(obj0);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 wxLog::SetVerbose(arg1);
7172
7173 wxPyEndAllowThreads(__tstate);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 Py_INCREF(Py_None); resultobj = Py_None;
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxLogLevel arg1 ;
7186 PyObject * obj0 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "logLevel", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7192 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7193 if (PyErr_Occurred()) SWIG_fail;
7194 {
7195 PyThreadState* __tstate = wxPyBeginAllowThreads();
7196 wxLog::SetLogLevel(arg1);
7197
7198 wxPyEndAllowThreads(__tstate);
7199 if (PyErr_Occurred()) SWIG_fail;
7200 }
7201 Py_INCREF(Py_None); resultobj = Py_None;
7202 return resultobj;
7203 fail:
7204 return NULL;
7205 }
7206
7207
7208 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7209 PyObject *resultobj;
7210 char *kwnames[] = {
7211 NULL
7212 };
7213
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7215 {
7216 PyThreadState* __tstate = wxPyBeginAllowThreads();
7217 wxLog::DontCreateOnDemand();
7218
7219 wxPyEndAllowThreads(__tstate);
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 Py_INCREF(Py_None); resultobj = Py_None;
7223 return resultobj;
7224 fail:
7225 return NULL;
7226 }
7227
7228
7229 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7230 PyObject *resultobj;
7231 wxTraceMask arg1 ;
7232 PyObject * obj0 = 0 ;
7233 char *kwnames[] = {
7234 (char *) "ulMask", NULL
7235 };
7236
7237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7238 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 {
7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
7242 wxLog::SetTraceMask(arg1);
7243
7244 wxPyEndAllowThreads(__tstate);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 Py_INCREF(Py_None); resultobj = Py_None;
7248 return resultobj;
7249 fail:
7250 return NULL;
7251 }
7252
7253
7254 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7255 PyObject *resultobj;
7256 wxString *arg1 = 0 ;
7257 bool temp1 = False ;
7258 PyObject * obj0 = 0 ;
7259 char *kwnames[] = {
7260 (char *) "str", NULL
7261 };
7262
7263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7264 {
7265 arg1 = wxString_in_helper(obj0);
7266 if (arg1 == NULL) SWIG_fail;
7267 temp1 = True;
7268 }
7269 {
7270 PyThreadState* __tstate = wxPyBeginAllowThreads();
7271 wxLog::AddTraceMask((wxString const &)*arg1);
7272
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 Py_INCREF(Py_None); resultobj = Py_None;
7277 {
7278 if (temp1)
7279 delete arg1;
7280 }
7281 return resultobj;
7282 fail:
7283 {
7284 if (temp1)
7285 delete arg1;
7286 }
7287 return NULL;
7288 }
7289
7290
7291 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj;
7293 wxString *arg1 = 0 ;
7294 bool temp1 = False ;
7295 PyObject * obj0 = 0 ;
7296 char *kwnames[] = {
7297 (char *) "str", NULL
7298 };
7299
7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7301 {
7302 arg1 = wxString_in_helper(obj0);
7303 if (arg1 == NULL) SWIG_fail;
7304 temp1 = True;
7305 }
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 wxLog::RemoveTraceMask((wxString const &)*arg1);
7309
7310 wxPyEndAllowThreads(__tstate);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 Py_INCREF(Py_None); resultobj = Py_None;
7314 {
7315 if (temp1)
7316 delete arg1;
7317 }
7318 return resultobj;
7319 fail:
7320 {
7321 if (temp1)
7322 delete arg1;
7323 }
7324 return NULL;
7325 }
7326
7327
7328 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7329 PyObject *resultobj;
7330 char *kwnames[] = {
7331 NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 wxLog::ClearTraceMasks();
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 Py_INCREF(Py_None); resultobj = Py_None;
7343 return resultobj;
7344 fail:
7345 return NULL;
7346 }
7347
7348
7349 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj;
7351 wxArrayString *result;
7352 char *kwnames[] = {
7353 NULL
7354 };
7355
7356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7357 {
7358 PyThreadState* __tstate = wxPyBeginAllowThreads();
7359 {
7360 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7361 result = (wxArrayString *) &_result_ref;
7362 }
7363
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 {
7368 resultobj = wxArrayString2PyList_helper(*result);
7369 }
7370 return resultobj;
7371 fail:
7372 return NULL;
7373 }
7374
7375
7376 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7377 PyObject *resultobj;
7378 wxChar *arg1 = (wxChar *) 0 ;
7379 PyObject * obj0 = 0 ;
7380 char *kwnames[] = {
7381 (char *) "ts", NULL
7382 };
7383
7384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7387 {
7388 PyThreadState* __tstate = wxPyBeginAllowThreads();
7389 wxLog::SetTimestamp((wxChar const *)arg1);
7390
7391 wxPyEndAllowThreads(__tstate);
7392 if (PyErr_Occurred()) SWIG_fail;
7393 }
7394 Py_INCREF(Py_None); resultobj = Py_None;
7395 return resultobj;
7396 fail:
7397 return NULL;
7398 }
7399
7400
7401 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7402 PyObject *resultobj;
7403 bool result;
7404 char *kwnames[] = {
7405 NULL
7406 };
7407
7408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7409 {
7410 PyThreadState* __tstate = wxPyBeginAllowThreads();
7411 result = (bool)wxLog::GetVerbose();
7412
7413 wxPyEndAllowThreads(__tstate);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 {
7417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7418 }
7419 return resultobj;
7420 fail:
7421 return NULL;
7422 }
7423
7424
7425 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7426 PyObject *resultobj;
7427 wxTraceMask result;
7428 char *kwnames[] = {
7429 NULL
7430 };
7431
7432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 result = (wxTraceMask)wxLog::GetTraceMask();
7436
7437 wxPyEndAllowThreads(__tstate);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7441 return resultobj;
7442 fail:
7443 return NULL;
7444 }
7445
7446
7447 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj;
7449 wxChar *arg1 = (wxChar *) 0 ;
7450 bool result;
7451 PyObject * obj0 = 0 ;
7452 char *kwnames[] = {
7453 (char *) "mask", NULL
7454 };
7455
7456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 {
7467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7468 }
7469 return resultobj;
7470 fail:
7471 return NULL;
7472 }
7473
7474
7475 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7476 PyObject *resultobj;
7477 wxLogLevel result;
7478 char *kwnames[] = {
7479 NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7483 {
7484 PyThreadState* __tstate = wxPyBeginAllowThreads();
7485 result = (wxLogLevel)wxLog::GetLogLevel();
7486
7487 wxPyEndAllowThreads(__tstate);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7491 return resultobj;
7492 fail:
7493 return NULL;
7494 }
7495
7496
7497 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7498 PyObject *resultobj;
7499 wxChar *result;
7500 char *kwnames[] = {
7501 NULL
7502 };
7503
7504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7505 {
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 result = (wxChar *)wxLog::GetTimestamp();
7508
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7513 return resultobj;
7514 fail:
7515 return NULL;
7516 }
7517
7518
7519 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7520 PyObject *resultobj;
7521 wxString result;
7522 char *kwnames[] = {
7523 NULL
7524 };
7525
7526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7527 {
7528 PyThreadState* __tstate = wxPyBeginAllowThreads();
7529 result = Log_TimeStamp();
7530
7531 wxPyEndAllowThreads(__tstate);
7532 if (PyErr_Occurred()) SWIG_fail;
7533 }
7534 {
7535 #if wxUSE_UNICODE
7536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7537 #else
7538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7539 #endif
7540 }
7541 return resultobj;
7542 fail:
7543 return NULL;
7544 }
7545
7546
7547 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7548 PyObject *resultobj;
7549 wxLog *arg1 = (wxLog *) 0 ;
7550 PyObject * obj0 = 0 ;
7551 char *kwnames[] = {
7552 (char *) "self", NULL
7553 };
7554
7555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7558 {
7559 PyThreadState* __tstate = wxPyBeginAllowThreads();
7560 wxLog_Destroy(arg1);
7561
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 Py_INCREF(Py_None); resultobj = Py_None;
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7573 PyObject *obj;
7574 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7575 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7576 Py_INCREF(obj);
7577 return Py_BuildValue((char *)"");
7578 }
7579 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj;
7581 wxLogStderr *result;
7582 char *kwnames[] = {
7583 NULL
7584 };
7585
7586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7587 {
7588 PyThreadState* __tstate = wxPyBeginAllowThreads();
7589 result = (wxLogStderr *)new wxLogStderr();
7590
7591 wxPyEndAllowThreads(__tstate);
7592 if (PyErr_Occurred()) SWIG_fail;
7593 }
7594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7595 return resultobj;
7596 fail:
7597 return NULL;
7598 }
7599
7600
7601 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7602 PyObject *obj;
7603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7604 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7605 Py_INCREF(obj);
7606 return Py_BuildValue((char *)"");
7607 }
7608 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7609 PyObject *resultobj;
7610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7611 wxLogTextCtrl *result;
7612 PyObject * obj0 = 0 ;
7613 char *kwnames[] = {
7614 (char *) "pTextCtrl", NULL
7615 };
7616
7617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7620 {
7621 PyThreadState* __tstate = wxPyBeginAllowThreads();
7622 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7623
7624 wxPyEndAllowThreads(__tstate);
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7635 PyObject *obj;
7636 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7637 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7638 Py_INCREF(obj);
7639 return Py_BuildValue((char *)"");
7640 }
7641 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7642 PyObject *resultobj;
7643 wxLogGui *result;
7644 char *kwnames[] = {
7645 NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7649 {
7650 PyThreadState* __tstate = wxPyBeginAllowThreads();
7651 result = (wxLogGui *)new wxLogGui();
7652
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7664 PyObject *obj;
7665 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7666 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7667 Py_INCREF(obj);
7668 return Py_BuildValue((char *)"");
7669 }
7670 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7671 PyObject *resultobj;
7672 wxFrame *arg1 = (wxFrame *) 0 ;
7673 wxString *arg2 = 0 ;
7674 bool arg3 = (bool) True ;
7675 bool arg4 = (bool) True ;
7676 wxLogWindow *result;
7677 bool temp2 = False ;
7678 PyObject * obj0 = 0 ;
7679 PyObject * obj1 = 0 ;
7680 PyObject * obj2 = 0 ;
7681 PyObject * obj3 = 0 ;
7682 char *kwnames[] = {
7683 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7684 };
7685
7686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7689 {
7690 arg2 = wxString_in_helper(obj1);
7691 if (arg2 == NULL) SWIG_fail;
7692 temp2 = True;
7693 }
7694 if (obj2) {
7695 arg3 = (bool) SWIG_AsBool(obj2);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 }
7698 if (obj3) {
7699 arg4 = (bool) SWIG_AsBool(obj3);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 {
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7705
7706 wxPyEndAllowThreads(__tstate);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7710 {
7711 if (temp2)
7712 delete arg2;
7713 }
7714 return resultobj;
7715 fail:
7716 {
7717 if (temp2)
7718 delete arg2;
7719 }
7720 return NULL;
7721 }
7722
7723
7724 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7725 PyObject *resultobj;
7726 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7727 bool arg2 = (bool) True ;
7728 PyObject * obj0 = 0 ;
7729 PyObject * obj1 = 0 ;
7730 char *kwnames[] = {
7731 (char *) "self",(char *) "bShow", NULL
7732 };
7733
7734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7737 if (obj1) {
7738 arg2 = (bool) SWIG_AsBool(obj1);
7739 if (PyErr_Occurred()) SWIG_fail;
7740 }
7741 {
7742 PyThreadState* __tstate = wxPyBeginAllowThreads();
7743 (arg1)->Show(arg2);
7744
7745 wxPyEndAllowThreads(__tstate);
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 Py_INCREF(Py_None); resultobj = Py_None;
7749 return resultobj;
7750 fail:
7751 return NULL;
7752 }
7753
7754
7755 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7756 PyObject *resultobj;
7757 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7758 wxFrame *result;
7759 PyObject * obj0 = 0 ;
7760 char *kwnames[] = {
7761 (char *) "self", NULL
7762 };
7763
7764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 {
7775 resultobj = wxPyMake_wxObject(result);
7776 }
7777 return resultobj;
7778 fail:
7779 return NULL;
7780 }
7781
7782
7783 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj;
7785 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7786 wxLog *result;
7787 PyObject * obj0 = 0 ;
7788 char *kwnames[] = {
7789 (char *) "self", NULL
7790 };
7791
7792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7795 {
7796 PyThreadState* __tstate = wxPyBeginAllowThreads();
7797 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7798
7799 wxPyEndAllowThreads(__tstate);
7800 if (PyErr_Occurred()) SWIG_fail;
7801 }
7802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7803 return resultobj;
7804 fail:
7805 return NULL;
7806 }
7807
7808
7809 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7810 PyObject *resultobj;
7811 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7812 bool result;
7813 PyObject * obj0 = 0 ;
7814 char *kwnames[] = {
7815 (char *) "self", NULL
7816 };
7817
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7821 {
7822 PyThreadState* __tstate = wxPyBeginAllowThreads();
7823 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7824
7825 wxPyEndAllowThreads(__tstate);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 {
7829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7830 }
7831 return resultobj;
7832 fail:
7833 return NULL;
7834 }
7835
7836
7837 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7838 PyObject *resultobj;
7839 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7840 bool arg2 ;
7841 PyObject * obj0 = 0 ;
7842 PyObject * obj1 = 0 ;
7843 char *kwnames[] = {
7844 (char *) "self",(char *) "bDoPass", NULL
7845 };
7846
7847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7850 arg2 = (bool) SWIG_AsBool(obj1);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 {
7853 PyThreadState* __tstate = wxPyBeginAllowThreads();
7854 (arg1)->PassMessages(arg2);
7855
7856 wxPyEndAllowThreads(__tstate);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 Py_INCREF(Py_None); resultobj = Py_None;
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7867 PyObject *obj;
7868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7869 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7870 Py_INCREF(obj);
7871 return Py_BuildValue((char *)"");
7872 }
7873 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7874 PyObject *resultobj;
7875 wxLog *arg1 = (wxLog *) 0 ;
7876 wxLogChain *result;
7877 PyObject * obj0 = 0 ;
7878 char *kwnames[] = {
7879 (char *) "logger", NULL
7880 };
7881
7882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7885 {
7886 PyThreadState* __tstate = wxPyBeginAllowThreads();
7887 result = (wxLogChain *)new wxLogChain(arg1);
7888
7889 wxPyEndAllowThreads(__tstate);
7890 if (PyErr_Occurred()) SWIG_fail;
7891 }
7892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7893 return resultobj;
7894 fail:
7895 return NULL;
7896 }
7897
7898
7899 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7900 PyObject *resultobj;
7901 wxLogChain *arg1 = (wxLogChain *) 0 ;
7902 wxLog *arg2 = (wxLog *) 0 ;
7903 PyObject * obj0 = 0 ;
7904 PyObject * obj1 = 0 ;
7905 char *kwnames[] = {
7906 (char *) "self",(char *) "logger", NULL
7907 };
7908
7909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 (arg1)->SetLog(arg2);
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 Py_INCREF(Py_None); resultobj = Py_None;
7922 return resultobj;
7923 fail:
7924 return NULL;
7925 }
7926
7927
7928 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj;
7930 wxLogChain *arg1 = (wxLogChain *) 0 ;
7931 bool arg2 ;
7932 PyObject * obj0 = 0 ;
7933 PyObject * obj1 = 0 ;
7934 char *kwnames[] = {
7935 (char *) "self",(char *) "bDoPass", NULL
7936 };
7937
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7941 arg2 = (bool) SWIG_AsBool(obj1);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 (arg1)->PassMessages(arg2);
7946
7947 wxPyEndAllowThreads(__tstate);
7948 if (PyErr_Occurred()) SWIG_fail;
7949 }
7950 Py_INCREF(Py_None); resultobj = Py_None;
7951 return resultobj;
7952 fail:
7953 return NULL;
7954 }
7955
7956
7957 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7958 PyObject *resultobj;
7959 wxLogChain *arg1 = (wxLogChain *) 0 ;
7960 bool result;
7961 PyObject * obj0 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = (bool)(arg1)->IsPassingMessages();
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 }
7976 {
7977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7978 }
7979 return resultobj;
7980 fail:
7981 return NULL;
7982 }
7983
7984
7985 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7986 PyObject *resultobj;
7987 wxLogChain *arg1 = (wxLogChain *) 0 ;
7988 wxLog *result;
7989 PyObject * obj0 = 0 ;
7990 char *kwnames[] = {
7991 (char *) "self", NULL
7992 };
7993
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7997 {
7998 PyThreadState* __tstate = wxPyBeginAllowThreads();
7999 result = (wxLog *)(arg1)->GetOldLog();
8000
8001 wxPyEndAllowThreads(__tstate);
8002 if (PyErr_Occurred()) SWIG_fail;
8003 }
8004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8005 return resultobj;
8006 fail:
8007 return NULL;
8008 }
8009
8010
8011 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8012 PyObject *obj;
8013 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8014 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8015 Py_INCREF(obj);
8016 return Py_BuildValue((char *)"");
8017 }
8018 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8019 PyObject *resultobj;
8020 unsigned long result;
8021 char *kwnames[] = {
8022 NULL
8023 };
8024
8025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8026 {
8027 PyThreadState* __tstate = wxPyBeginAllowThreads();
8028 result = (unsigned long)wxSysErrorCode();
8029
8030 wxPyEndAllowThreads(__tstate);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8034 return resultobj;
8035 fail:
8036 return NULL;
8037 }
8038
8039
8040 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8041 PyObject *resultobj;
8042 unsigned long arg1 = (unsigned long) 0 ;
8043 wxString result;
8044 PyObject * obj0 = 0 ;
8045 char *kwnames[] = {
8046 (char *) "nErrCode", NULL
8047 };
8048
8049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8050 if (obj0) {
8051 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 {
8055 PyThreadState* __tstate = wxPyBeginAllowThreads();
8056 result = wxSysErrorMsg(arg1);
8057
8058 wxPyEndAllowThreads(__tstate);
8059 if (PyErr_Occurred()) SWIG_fail;
8060 }
8061 {
8062 #if wxUSE_UNICODE
8063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8064 #else
8065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8066 #endif
8067 }
8068 return resultobj;
8069 fail:
8070 return NULL;
8071 }
8072
8073
8074 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8075 PyObject *resultobj;
8076 wxString *arg1 = 0 ;
8077 bool temp1 = False ;
8078 PyObject * obj0 = 0 ;
8079 char *kwnames[] = {
8080 (char *) "msg", NULL
8081 };
8082
8083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8084 {
8085 arg1 = wxString_in_helper(obj0);
8086 if (arg1 == NULL) SWIG_fail;
8087 temp1 = True;
8088 }
8089 {
8090 PyThreadState* __tstate = wxPyBeginAllowThreads();
8091 wxLogFatalError((wxString const &)*arg1);
8092
8093 wxPyEndAllowThreads(__tstate);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 }
8096 Py_INCREF(Py_None); resultobj = Py_None;
8097 {
8098 if (temp1)
8099 delete arg1;
8100 }
8101 return resultobj;
8102 fail:
8103 {
8104 if (temp1)
8105 delete arg1;
8106 }
8107 return NULL;
8108 }
8109
8110
8111 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8112 PyObject *resultobj;
8113 wxString *arg1 = 0 ;
8114 bool temp1 = False ;
8115 PyObject * obj0 = 0 ;
8116 char *kwnames[] = {
8117 (char *) "msg", NULL
8118 };
8119
8120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8121 {
8122 arg1 = wxString_in_helper(obj0);
8123 if (arg1 == NULL) SWIG_fail;
8124 temp1 = True;
8125 }
8126 {
8127 PyThreadState* __tstate = wxPyBeginAllowThreads();
8128 wxLogError((wxString const &)*arg1);
8129
8130 wxPyEndAllowThreads(__tstate);
8131 if (PyErr_Occurred()) SWIG_fail;
8132 }
8133 Py_INCREF(Py_None); resultobj = Py_None;
8134 {
8135 if (temp1)
8136 delete arg1;
8137 }
8138 return resultobj;
8139 fail:
8140 {
8141 if (temp1)
8142 delete arg1;
8143 }
8144 return NULL;
8145 }
8146
8147
8148 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8149 PyObject *resultobj;
8150 wxString *arg1 = 0 ;
8151 bool temp1 = False ;
8152 PyObject * obj0 = 0 ;
8153 char *kwnames[] = {
8154 (char *) "msg", NULL
8155 };
8156
8157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8158 {
8159 arg1 = wxString_in_helper(obj0);
8160 if (arg1 == NULL) SWIG_fail;
8161 temp1 = True;
8162 }
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 wxLogWarning((wxString const &)*arg1);
8166
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 Py_INCREF(Py_None); resultobj = Py_None;
8171 {
8172 if (temp1)
8173 delete arg1;
8174 }
8175 return resultobj;
8176 fail:
8177 {
8178 if (temp1)
8179 delete arg1;
8180 }
8181 return NULL;
8182 }
8183
8184
8185 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8186 PyObject *resultobj;
8187 wxString *arg1 = 0 ;
8188 bool temp1 = False ;
8189 PyObject * obj0 = 0 ;
8190 char *kwnames[] = {
8191 (char *) "msg", NULL
8192 };
8193
8194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8195 {
8196 arg1 = wxString_in_helper(obj0);
8197 if (arg1 == NULL) SWIG_fail;
8198 temp1 = True;
8199 }
8200 {
8201 PyThreadState* __tstate = wxPyBeginAllowThreads();
8202 wxLogMessage((wxString const &)*arg1);
8203
8204 wxPyEndAllowThreads(__tstate);
8205 if (PyErr_Occurred()) SWIG_fail;
8206 }
8207 Py_INCREF(Py_None); resultobj = Py_None;
8208 {
8209 if (temp1)
8210 delete arg1;
8211 }
8212 return resultobj;
8213 fail:
8214 {
8215 if (temp1)
8216 delete arg1;
8217 }
8218 return NULL;
8219 }
8220
8221
8222 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8223 PyObject *resultobj;
8224 wxString *arg1 = 0 ;
8225 bool temp1 = False ;
8226 PyObject * obj0 = 0 ;
8227 char *kwnames[] = {
8228 (char *) "msg", NULL
8229 };
8230
8231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8232 {
8233 arg1 = wxString_in_helper(obj0);
8234 if (arg1 == NULL) SWIG_fail;
8235 temp1 = True;
8236 }
8237 {
8238 PyThreadState* __tstate = wxPyBeginAllowThreads();
8239 wxLogInfo((wxString const &)*arg1);
8240
8241 wxPyEndAllowThreads(__tstate);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 Py_INCREF(Py_None); resultobj = Py_None;
8245 {
8246 if (temp1)
8247 delete arg1;
8248 }
8249 return resultobj;
8250 fail:
8251 {
8252 if (temp1)
8253 delete arg1;
8254 }
8255 return NULL;
8256 }
8257
8258
8259 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8260 PyObject *resultobj;
8261 wxString *arg1 = 0 ;
8262 bool temp1 = False ;
8263 PyObject * obj0 = 0 ;
8264 char *kwnames[] = {
8265 (char *) "msg", NULL
8266 };
8267
8268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8269 {
8270 arg1 = wxString_in_helper(obj0);
8271 if (arg1 == NULL) SWIG_fail;
8272 temp1 = True;
8273 }
8274 {
8275 PyThreadState* __tstate = wxPyBeginAllowThreads();
8276 wxLogDebug((wxString const &)*arg1);
8277
8278 wxPyEndAllowThreads(__tstate);
8279 if (PyErr_Occurred()) SWIG_fail;
8280 }
8281 Py_INCREF(Py_None); resultobj = Py_None;
8282 {
8283 if (temp1)
8284 delete arg1;
8285 }
8286 return resultobj;
8287 fail:
8288 {
8289 if (temp1)
8290 delete arg1;
8291 }
8292 return NULL;
8293 }
8294
8295
8296 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8297 PyObject *resultobj;
8298 wxString *arg1 = 0 ;
8299 bool temp1 = False ;
8300 PyObject * obj0 = 0 ;
8301 char *kwnames[] = {
8302 (char *) "msg", NULL
8303 };
8304
8305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8306 {
8307 arg1 = wxString_in_helper(obj0);
8308 if (arg1 == NULL) SWIG_fail;
8309 temp1 = True;
8310 }
8311 {
8312 PyThreadState* __tstate = wxPyBeginAllowThreads();
8313 wxLogVerbose((wxString const &)*arg1);
8314
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 Py_INCREF(Py_None); resultobj = Py_None;
8319 {
8320 if (temp1)
8321 delete arg1;
8322 }
8323 return resultobj;
8324 fail:
8325 {
8326 if (temp1)
8327 delete arg1;
8328 }
8329 return NULL;
8330 }
8331
8332
8333 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8334 PyObject *resultobj;
8335 wxString *arg1 = 0 ;
8336 bool temp1 = False ;
8337 PyObject * obj0 = 0 ;
8338 char *kwnames[] = {
8339 (char *) "msg", NULL
8340 };
8341
8342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8343 {
8344 arg1 = wxString_in_helper(obj0);
8345 if (arg1 == NULL) SWIG_fail;
8346 temp1 = True;
8347 }
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 wxLogStatus((wxString const &)*arg1);
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 Py_INCREF(Py_None); resultobj = Py_None;
8356 {
8357 if (temp1)
8358 delete arg1;
8359 }
8360 return resultobj;
8361 fail:
8362 {
8363 if (temp1)
8364 delete arg1;
8365 }
8366 return NULL;
8367 }
8368
8369
8370 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8371 PyObject *resultobj;
8372 wxFrame *arg1 = (wxFrame *) 0 ;
8373 wxString *arg2 = 0 ;
8374 bool temp2 = False ;
8375 PyObject * obj0 = 0 ;
8376 PyObject * obj1 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "pFrame",(char *) "msg", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8384 {
8385 arg2 = wxString_in_helper(obj1);
8386 if (arg2 == NULL) SWIG_fail;
8387 temp2 = True;
8388 }
8389 {
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 wxLogStatus(arg1,(wxString const &)*arg2);
8392
8393 wxPyEndAllowThreads(__tstate);
8394 if (PyErr_Occurred()) SWIG_fail;
8395 }
8396 Py_INCREF(Py_None); resultobj = Py_None;
8397 {
8398 if (temp2)
8399 delete arg2;
8400 }
8401 return resultobj;
8402 fail:
8403 {
8404 if (temp2)
8405 delete arg2;
8406 }
8407 return NULL;
8408 }
8409
8410
8411 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8412 PyObject *resultobj;
8413 wxString *arg1 = 0 ;
8414 bool temp1 = False ;
8415 PyObject * obj0 = 0 ;
8416 char *kwnames[] = {
8417 (char *) "msg", NULL
8418 };
8419
8420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8421 {
8422 arg1 = wxString_in_helper(obj0);
8423 if (arg1 == NULL) SWIG_fail;
8424 temp1 = True;
8425 }
8426 {
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 wxLogSysError((wxString const &)*arg1);
8429
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 Py_INCREF(Py_None); resultobj = Py_None;
8434 {
8435 if (temp1)
8436 delete arg1;
8437 }
8438 return resultobj;
8439 fail:
8440 {
8441 if (temp1)
8442 delete arg1;
8443 }
8444 return NULL;
8445 }
8446
8447
8448 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8449 PyObject *resultobj;
8450 unsigned long arg1 ;
8451 wxString *arg2 = 0 ;
8452 bool temp2 = False ;
8453 PyObject * obj0 = 0 ;
8454 PyObject * obj1 = 0 ;
8455
8456 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8457 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 {
8460 arg2 = wxString_in_helper(obj1);
8461 if (arg2 == NULL) SWIG_fail;
8462 temp2 = True;
8463 }
8464 {
8465 PyThreadState* __tstate = wxPyBeginAllowThreads();
8466 wxLogTrace(arg1,(wxString const &)*arg2);
8467
8468 wxPyEndAllowThreads(__tstate);
8469 if (PyErr_Occurred()) SWIG_fail;
8470 }
8471 Py_INCREF(Py_None); resultobj = Py_None;
8472 {
8473 if (temp2)
8474 delete arg2;
8475 }
8476 return resultobj;
8477 fail:
8478 {
8479 if (temp2)
8480 delete arg2;
8481 }
8482 return NULL;
8483 }
8484
8485
8486 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8487 PyObject *resultobj;
8488 wxString *arg1 = 0 ;
8489 wxString *arg2 = 0 ;
8490 bool temp1 = False ;
8491 bool temp2 = False ;
8492 PyObject * obj0 = 0 ;
8493 PyObject * obj1 = 0 ;
8494
8495 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8496 {
8497 arg1 = wxString_in_helper(obj0);
8498 if (arg1 == NULL) SWIG_fail;
8499 temp1 = True;
8500 }
8501 {
8502 arg2 = wxString_in_helper(obj1);
8503 if (arg2 == NULL) SWIG_fail;
8504 temp2 = True;
8505 }
8506 {
8507 PyThreadState* __tstate = wxPyBeginAllowThreads();
8508 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8509
8510 wxPyEndAllowThreads(__tstate);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 Py_INCREF(Py_None); resultobj = Py_None;
8514 {
8515 if (temp1)
8516 delete arg1;
8517 }
8518 {
8519 if (temp2)
8520 delete arg2;
8521 }
8522 return resultobj;
8523 fail:
8524 {
8525 if (temp1)
8526 delete arg1;
8527 }
8528 {
8529 if (temp2)
8530 delete arg2;
8531 }
8532 return NULL;
8533 }
8534
8535
8536 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8537 int argc;
8538 PyObject *argv[3];
8539 int ii;
8540
8541 argc = PyObject_Length(args);
8542 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8543 argv[ii] = PyTuple_GetItem(args,ii);
8544 }
8545 if (argc == 2) {
8546 int _v;
8547 {
8548 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8549 }
8550 if (_v) {
8551 {
8552 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8553 }
8554 if (_v) {
8555 return _wrap_LogTrace__SWIG_1(self,args);
8556 }
8557 }
8558 }
8559 if (argc == 2) {
8560 int _v;
8561 _v = SWIG_CheckUnsignedLong(argv[0]);
8562 if (_v) {
8563 {
8564 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8565 }
8566 if (_v) {
8567 return _wrap_LogTrace__SWIG_0(self,args);
8568 }
8569 }
8570 }
8571
8572 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8573 return NULL;
8574 }
8575
8576
8577 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8578 PyObject *resultobj;
8579 unsigned long arg1 ;
8580 wxString *arg2 = 0 ;
8581 bool temp2 = False ;
8582 PyObject * obj0 = 0 ;
8583 PyObject * obj1 = 0 ;
8584 char *kwnames[] = {
8585 (char *) "level",(char *) "msg", NULL
8586 };
8587
8588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8589 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 {
8592 arg2 = wxString_in_helper(obj1);
8593 if (arg2 == NULL) SWIG_fail;
8594 temp2 = True;
8595 }
8596 {
8597 PyThreadState* __tstate = wxPyBeginAllowThreads();
8598 wxLogGeneric(arg1,(wxString const &)*arg2);
8599
8600 wxPyEndAllowThreads(__tstate);
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
8603 Py_INCREF(Py_None); resultobj = Py_None;
8604 {
8605 if (temp2)
8606 delete arg2;
8607 }
8608 return resultobj;
8609 fail:
8610 {
8611 if (temp2)
8612 delete arg2;
8613 }
8614 return NULL;
8615 }
8616
8617
8618 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8619 PyObject *resultobj;
8620 wxString *arg1 = 0 ;
8621 wxString *arg2 = 0 ;
8622 bool temp1 = False ;
8623 bool temp2 = False ;
8624 PyObject * obj0 = 0 ;
8625 PyObject * obj1 = 0 ;
8626 char *kwnames[] = {
8627 (char *) "title",(char *) "text", NULL
8628 };
8629
8630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8631 {
8632 arg1 = wxString_in_helper(obj0);
8633 if (arg1 == NULL) SWIG_fail;
8634 temp1 = True;
8635 }
8636 {
8637 arg2 = wxString_in_helper(obj1);
8638 if (arg2 == NULL) SWIG_fail;
8639 temp2 = True;
8640 }
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 Py_INCREF(Py_None); resultobj = Py_None;
8649 {
8650 if (temp1)
8651 delete arg1;
8652 }
8653 {
8654 if (temp2)
8655 delete arg2;
8656 }
8657 return resultobj;
8658 fail:
8659 {
8660 if (temp1)
8661 delete arg1;
8662 }
8663 {
8664 if (temp2)
8665 delete arg2;
8666 }
8667 return NULL;
8668 }
8669
8670
8671 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8672 PyObject *resultobj;
8673 wxLogNull *result;
8674 char *kwnames[] = {
8675 NULL
8676 };
8677
8678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8679 {
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 result = (wxLogNull *)new wxLogNull();
8682
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8687 return resultobj;
8688 fail:
8689 return NULL;
8690 }
8691
8692
8693 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj;
8695 wxLogNull *arg1 = (wxLogNull *) 0 ;
8696 PyObject * obj0 = 0 ;
8697 char *kwnames[] = {
8698 (char *) "self", NULL
8699 };
8700
8701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 delete arg1;
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 Py_INCREF(Py_None); resultobj = Py_None;
8712 return resultobj;
8713 fail:
8714 return NULL;
8715 }
8716
8717
8718 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8719 PyObject *obj;
8720 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8721 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8722 Py_INCREF(obj);
8723 return Py_BuildValue((char *)"");
8724 }
8725 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj;
8727 wxPyLog *result;
8728 char *kwnames[] = {
8729 NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 result = (wxPyLog *)new wxPyLog();
8736
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8741 return resultobj;
8742 fail:
8743 return NULL;
8744 }
8745
8746
8747 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8748 PyObject *resultobj;
8749 wxPyLog *arg1 = (wxPyLog *) 0 ;
8750 PyObject *arg2 = (PyObject *) 0 ;
8751 PyObject *arg3 = (PyObject *) 0 ;
8752 PyObject * obj0 = 0 ;
8753 PyObject * obj1 = 0 ;
8754 PyObject * obj2 = 0 ;
8755 char *kwnames[] = {
8756 (char *) "self",(char *) "self",(char *) "_class", NULL
8757 };
8758
8759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8762 arg2 = obj1;
8763 arg3 = obj2;
8764 {
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 (arg1)->_setCallbackInfo(arg2,arg3);
8767
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 Py_INCREF(Py_None); resultobj = Py_None;
8772 return resultobj;
8773 fail:
8774 return NULL;
8775 }
8776
8777
8778 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8779 PyObject *obj;
8780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8781 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8782 Py_INCREF(obj);
8783 return Py_BuildValue((char *)"");
8784 }
8785 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj;
8787 int arg1 ;
8788 int arg2 = (int) wxSIGTERM ;
8789 int result;
8790 PyObject * obj0 = 0 ;
8791 PyObject * obj1 = 0 ;
8792 char *kwnames[] = {
8793 (char *) "pid",(char *) "sig", NULL
8794 };
8795
8796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8797 arg1 = (int) SWIG_AsInt(obj0);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 if (obj1) {
8800 arg2 = (wxSignal) SWIG_AsInt(obj1);
8801 if (PyErr_Occurred()) SWIG_fail;
8802 }
8803 {
8804 PyThreadState* __tstate = wxPyBeginAllowThreads();
8805 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8806
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 resultobj = SWIG_FromInt((int)result);
8811 return resultobj;
8812 fail:
8813 return NULL;
8814 }
8815
8816
8817 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8818 PyObject *resultobj;
8819 int arg1 ;
8820 bool result;
8821 PyObject * obj0 = 0 ;
8822 char *kwnames[] = {
8823 (char *) "pid", NULL
8824 };
8825
8826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8827 arg1 = (int) SWIG_AsInt(obj0);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 {
8830 PyThreadState* __tstate = wxPyBeginAllowThreads();
8831 result = (bool)wxPyProcess::Exists(arg1);
8832
8833 wxPyEndAllowThreads(__tstate);
8834 if (PyErr_Occurred()) SWIG_fail;
8835 }
8836 {
8837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8838 }
8839 return resultobj;
8840 fail:
8841 return NULL;
8842 }
8843
8844
8845 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj;
8847 wxString *arg1 = 0 ;
8848 int arg2 = (int) wxEXEC_ASYNC ;
8849 wxPyProcess *result;
8850 bool temp1 = False ;
8851 PyObject * obj0 = 0 ;
8852 PyObject * obj1 = 0 ;
8853 char *kwnames[] = {
8854 (char *) "cmd",(char *) "flags", NULL
8855 };
8856
8857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8858 {
8859 arg1 = wxString_in_helper(obj0);
8860 if (arg1 == NULL) SWIG_fail;
8861 temp1 = True;
8862 }
8863 if (obj1) {
8864 arg2 = (int) SWIG_AsInt(obj1);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 }
8867 {
8868 PyThreadState* __tstate = wxPyBeginAllowThreads();
8869 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8870
8871 wxPyEndAllowThreads(__tstate);
8872 if (PyErr_Occurred()) SWIG_fail;
8873 }
8874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8875 {
8876 if (temp1)
8877 delete arg1;
8878 }
8879 return resultobj;
8880 fail:
8881 {
8882 if (temp1)
8883 delete arg1;
8884 }
8885 return NULL;
8886 }
8887
8888
8889 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8890 PyObject *resultobj;
8891 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8892 int arg2 = (int) -1 ;
8893 wxPyProcess *result;
8894 PyObject * obj0 = 0 ;
8895 PyObject * obj1 = 0 ;
8896 char *kwnames[] = {
8897 (char *) "parent",(char *) "id", NULL
8898 };
8899
8900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8901 if (obj0) {
8902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8904 }
8905 if (obj1) {
8906 arg2 = (int) SWIG_AsInt(obj1);
8907 if (PyErr_Occurred()) SWIG_fail;
8908 }
8909 {
8910 PyThreadState* __tstate = wxPyBeginAllowThreads();
8911 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8912
8913 wxPyEndAllowThreads(__tstate);
8914 if (PyErr_Occurred()) SWIG_fail;
8915 }
8916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8917 return resultobj;
8918 fail:
8919 return NULL;
8920 }
8921
8922
8923 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj;
8925 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8926 PyObject *arg2 = (PyObject *) 0 ;
8927 PyObject *arg3 = (PyObject *) 0 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 PyObject * obj2 = 0 ;
8931 char *kwnames[] = {
8932 (char *) "self",(char *) "self",(char *) "_class", NULL
8933 };
8934
8935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8938 arg2 = obj1;
8939 arg3 = obj2;
8940 {
8941 PyThreadState* __tstate = wxPyBeginAllowThreads();
8942 (arg1)->_setCallbackInfo(arg2,arg3);
8943
8944 wxPyEndAllowThreads(__tstate);
8945 if (PyErr_Occurred()) SWIG_fail;
8946 }
8947 Py_INCREF(Py_None); resultobj = Py_None;
8948 return resultobj;
8949 fail:
8950 return NULL;
8951 }
8952
8953
8954 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8955 PyObject *resultobj;
8956 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8957 int arg2 ;
8958 int arg3 ;
8959 PyObject * obj0 = 0 ;
8960 PyObject * obj1 = 0 ;
8961 PyObject * obj2 = 0 ;
8962 char *kwnames[] = {
8963 (char *) "self",(char *) "pid",(char *) "status", NULL
8964 };
8965
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8969 arg2 = (int) SWIG_AsInt(obj1);
8970 if (PyErr_Occurred()) SWIG_fail;
8971 arg3 = (int) SWIG_AsInt(obj2);
8972 if (PyErr_Occurred()) SWIG_fail;
8973 {
8974 PyThreadState* __tstate = wxPyBeginAllowThreads();
8975 (arg1)->base_OnTerminate(arg2,arg3);
8976
8977 wxPyEndAllowThreads(__tstate);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 Py_INCREF(Py_None); resultobj = Py_None;
8981 return resultobj;
8982 fail:
8983 return NULL;
8984 }
8985
8986
8987 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8988 PyObject *resultobj;
8989 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8990 PyObject * obj0 = 0 ;
8991 char *kwnames[] = {
8992 (char *) "self", NULL
8993 };
8994
8995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8998 {
8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
9000 (arg1)->Redirect();
9001
9002 wxPyEndAllowThreads(__tstate);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 }
9005 Py_INCREF(Py_None); resultobj = Py_None;
9006 return resultobj;
9007 fail:
9008 return NULL;
9009 }
9010
9011
9012 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9013 PyObject *resultobj;
9014 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9015 bool result;
9016 PyObject * obj0 = 0 ;
9017 char *kwnames[] = {
9018 (char *) "self", NULL
9019 };
9020
9021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9024 {
9025 PyThreadState* __tstate = wxPyBeginAllowThreads();
9026 result = (bool)(arg1)->IsRedirected();
9027
9028 wxPyEndAllowThreads(__tstate);
9029 if (PyErr_Occurred()) SWIG_fail;
9030 }
9031 {
9032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9033 }
9034 return resultobj;
9035 fail:
9036 return NULL;
9037 }
9038
9039
9040 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9041 PyObject *resultobj;
9042 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9043 PyObject * obj0 = 0 ;
9044 char *kwnames[] = {
9045 (char *) "self", NULL
9046 };
9047
9048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9051 {
9052 PyThreadState* __tstate = wxPyBeginAllowThreads();
9053 (arg1)->Detach();
9054
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 Py_INCREF(Py_None); resultobj = Py_None;
9059 return resultobj;
9060 fail:
9061 return NULL;
9062 }
9063
9064
9065 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9066 PyObject *resultobj;
9067 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9068 wxInputStream *result;
9069 PyObject * obj0 = 0 ;
9070 char *kwnames[] = {
9071 (char *) "self", NULL
9072 };
9073
9074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9077 {
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 result = (wxInputStream *)(arg1)->GetInputStream();
9080
9081 wxPyEndAllowThreads(__tstate);
9082 if (PyErr_Occurred()) SWIG_fail;
9083 }
9084 {
9085 wxPyInputStream * _ptr = NULL;
9086
9087 if (result) {
9088 _ptr = new wxPyInputStream(result);
9089 }
9090 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9091 }
9092 return resultobj;
9093 fail:
9094 return NULL;
9095 }
9096
9097
9098 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9099 PyObject *resultobj;
9100 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9101 wxInputStream *result;
9102 PyObject * obj0 = 0 ;
9103 char *kwnames[] = {
9104 (char *) "self", NULL
9105 };
9106
9107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 result = (wxInputStream *)(arg1)->GetErrorStream();
9113
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 {
9118 wxPyInputStream * _ptr = NULL;
9119
9120 if (result) {
9121 _ptr = new wxPyInputStream(result);
9122 }
9123 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9124 }
9125 return resultobj;
9126 fail:
9127 return NULL;
9128 }
9129
9130
9131 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9132 PyObject *resultobj;
9133 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9134 wxOutputStream *result;
9135 PyObject * obj0 = 0 ;
9136 char *kwnames[] = {
9137 (char *) "self", NULL
9138 };
9139
9140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 result = (wxOutputStream *)(arg1)->GetOutputStream();
9146
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9151 return resultobj;
9152 fail:
9153 return NULL;
9154 }
9155
9156
9157 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj;
9159 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9160 PyObject * obj0 = 0 ;
9161 char *kwnames[] = {
9162 (char *) "self", NULL
9163 };
9164
9165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 (arg1)->CloseOutput();
9171
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 Py_INCREF(Py_None); resultobj = Py_None;
9176 return resultobj;
9177 fail:
9178 return NULL;
9179 }
9180
9181
9182 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9183 PyObject *resultobj;
9184 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9185 bool result;
9186 PyObject * obj0 = 0 ;
9187 char *kwnames[] = {
9188 (char *) "self", NULL
9189 };
9190
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9197
9198 wxPyEndAllowThreads(__tstate);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 {
9202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9203 }
9204 return resultobj;
9205 fail:
9206 return NULL;
9207 }
9208
9209
9210 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9211 PyObject *resultobj;
9212 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9213 bool result;
9214 PyObject * obj0 = 0 ;
9215 char *kwnames[] = {
9216 (char *) "self", NULL
9217 };
9218
9219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9222 {
9223 PyThreadState* __tstate = wxPyBeginAllowThreads();
9224 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9225
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 {
9230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9231 }
9232 return resultobj;
9233 fail:
9234 return NULL;
9235 }
9236
9237
9238 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9239 PyObject *resultobj;
9240 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9241 bool result;
9242 PyObject * obj0 = 0 ;
9243 char *kwnames[] = {
9244 (char *) "self", NULL
9245 };
9246
9247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9250 {
9251 PyThreadState* __tstate = wxPyBeginAllowThreads();
9252 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9253
9254 wxPyEndAllowThreads(__tstate);
9255 if (PyErr_Occurred()) SWIG_fail;
9256 }
9257 {
9258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9259 }
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9267 PyObject *obj;
9268 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9269 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9270 Py_INCREF(obj);
9271 return Py_BuildValue((char *)"");
9272 }
9273 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9274 PyObject *resultobj;
9275 int arg1 = (int) 0 ;
9276 int arg2 = (int) 0 ;
9277 int arg3 = (int) 0 ;
9278 wxProcessEvent *result;
9279 PyObject * obj0 = 0 ;
9280 PyObject * obj1 = 0 ;
9281 PyObject * obj2 = 0 ;
9282 char *kwnames[] = {
9283 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9284 };
9285
9286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9287 if (obj0) {
9288 arg1 = (int) SWIG_AsInt(obj0);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 if (obj1) {
9292 arg2 = (int) SWIG_AsInt(obj1);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 if (obj2) {
9296 arg3 = (int) SWIG_AsInt(obj2);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9302
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9307 return resultobj;
9308 fail:
9309 return NULL;
9310 }
9311
9312
9313 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9314 PyObject *resultobj;
9315 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9316 int result;
9317 PyObject * obj0 = 0 ;
9318 char *kwnames[] = {
9319 (char *) "self", NULL
9320 };
9321
9322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 result = (int)(arg1)->GetPid();
9328
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 resultobj = SWIG_FromInt((int)result);
9333 return resultobj;
9334 fail:
9335 return NULL;
9336 }
9337
9338
9339 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj;
9341 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9342 int result;
9343 PyObject * obj0 = 0 ;
9344 char *kwnames[] = {
9345 (char *) "self", NULL
9346 };
9347
9348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9351 {
9352 PyThreadState* __tstate = wxPyBeginAllowThreads();
9353 result = (int)(arg1)->GetExitCode();
9354
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 resultobj = SWIG_FromInt((int)result);
9359 return resultobj;
9360 fail:
9361 return NULL;
9362 }
9363
9364
9365 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9366 PyObject *resultobj;
9367 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9368 int arg2 ;
9369 PyObject * obj0 = 0 ;
9370 PyObject * obj1 = 0 ;
9371 char *kwnames[] = {
9372 (char *) "self",(char *) "m_pid", NULL
9373 };
9374
9375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9378 arg2 = (int) SWIG_AsInt(obj1);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 if (arg1) (arg1)->m_pid = arg2;
9381
9382 Py_INCREF(Py_None); resultobj = Py_None;
9383 return resultobj;
9384 fail:
9385 return NULL;
9386 }
9387
9388
9389 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj;
9391 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9392 int result;
9393 PyObject * obj0 = 0 ;
9394 char *kwnames[] = {
9395 (char *) "self", NULL
9396 };
9397
9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9401 result = (int) ((arg1)->m_pid);
9402
9403 resultobj = SWIG_FromInt((int)result);
9404 return resultobj;
9405 fail:
9406 return NULL;
9407 }
9408
9409
9410 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj;
9412 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9413 int arg2 ;
9414 PyObject * obj0 = 0 ;
9415 PyObject * obj1 = 0 ;
9416 char *kwnames[] = {
9417 (char *) "self",(char *) "m_exitcode", NULL
9418 };
9419
9420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9423 arg2 = (int) SWIG_AsInt(obj1);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 if (arg1) (arg1)->m_exitcode = arg2;
9426
9427 Py_INCREF(Py_None); resultobj = Py_None;
9428 return resultobj;
9429 fail:
9430 return NULL;
9431 }
9432
9433
9434 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9435 PyObject *resultobj;
9436 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9437 int result;
9438 PyObject * obj0 = 0 ;
9439 char *kwnames[] = {
9440 (char *) "self", NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9446 result = (int) ((arg1)->m_exitcode);
9447
9448 resultobj = SWIG_FromInt((int)result);
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9456 PyObject *obj;
9457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9458 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9459 Py_INCREF(obj);
9460 return Py_BuildValue((char *)"");
9461 }
9462 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9463 PyObject *resultobj;
9464 wxString *arg1 = 0 ;
9465 int arg2 = (int) wxEXEC_ASYNC ;
9466 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9467 long result;
9468 bool temp1 = False ;
9469 PyObject * obj0 = 0 ;
9470 PyObject * obj1 = 0 ;
9471 PyObject * obj2 = 0 ;
9472 char *kwnames[] = {
9473 (char *) "command",(char *) "flags",(char *) "process", NULL
9474 };
9475
9476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9477 {
9478 arg1 = wxString_in_helper(obj0);
9479 if (arg1 == NULL) SWIG_fail;
9480 temp1 = True;
9481 }
9482 if (obj1) {
9483 arg2 = (int) SWIG_AsInt(obj1);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 if (obj2) {
9487 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9489 }
9490 {
9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
9492 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9493
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 resultobj = SWIG_FromLong((long)result);
9498 {
9499 if (temp1)
9500 delete arg1;
9501 }
9502 return resultobj;
9503 fail:
9504 {
9505 if (temp1)
9506 delete arg1;
9507 }
9508 return NULL;
9509 }
9510
9511
9512 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9513 PyObject *resultobj;
9514 int arg1 = (int) wxJOYSTICK1 ;
9515 wxJoystick *result;
9516 PyObject * obj0 = 0 ;
9517 char *kwnames[] = {
9518 (char *) "joystick", NULL
9519 };
9520
9521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9522 if (obj0) {
9523 arg1 = (int) SWIG_AsInt(obj0);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 result = (wxJoystick *)new wxJoystick(arg1);
9529
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj;
9542 wxJoystick *arg1 = (wxJoystick *) 0 ;
9543 PyObject * obj0 = 0 ;
9544 char *kwnames[] = {
9545 (char *) "self", NULL
9546 };
9547
9548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 delete arg1;
9554
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 Py_INCREF(Py_None); resultobj = Py_None;
9559 return resultobj;
9560 fail:
9561 return NULL;
9562 }
9563
9564
9565 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9566 PyObject *resultobj;
9567 wxJoystick *arg1 = (wxJoystick *) 0 ;
9568 wxPoint result;
9569 PyObject * obj0 = 0 ;
9570 char *kwnames[] = {
9571 (char *) "self", NULL
9572 };
9573
9574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9577 {
9578 PyThreadState* __tstate = wxPyBeginAllowThreads();
9579 result = (arg1)->GetPosition();
9580
9581 wxPyEndAllowThreads(__tstate);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 }
9584 {
9585 wxPoint * resultptr;
9586 resultptr = new wxPoint((wxPoint &) result);
9587 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9588 }
9589 return resultobj;
9590 fail:
9591 return NULL;
9592 }
9593
9594
9595 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9596 PyObject *resultobj;
9597 wxJoystick *arg1 = (wxJoystick *) 0 ;
9598 int result;
9599 PyObject * obj0 = 0 ;
9600 char *kwnames[] = {
9601 (char *) "self", NULL
9602 };
9603
9604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 result = (int)(arg1)->GetZPosition();
9610
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 resultobj = SWIG_FromInt((int)result);
9615 return resultobj;
9616 fail:
9617 return NULL;
9618 }
9619
9620
9621 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9622 PyObject *resultobj;
9623 wxJoystick *arg1 = (wxJoystick *) 0 ;
9624 int result;
9625 PyObject * obj0 = 0 ;
9626 char *kwnames[] = {
9627 (char *) "self", NULL
9628 };
9629
9630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9633 {
9634 PyThreadState* __tstate = wxPyBeginAllowThreads();
9635 result = (int)(arg1)->GetButtonState();
9636
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 resultobj = SWIG_FromInt((int)result);
9641 return resultobj;
9642 fail:
9643 return NULL;
9644 }
9645
9646
9647 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj;
9649 wxJoystick *arg1 = (wxJoystick *) 0 ;
9650 int result;
9651 PyObject * obj0 = 0 ;
9652 char *kwnames[] = {
9653 (char *) "self", NULL
9654 };
9655
9656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9659 {
9660 PyThreadState* __tstate = wxPyBeginAllowThreads();
9661 result = (int)(arg1)->GetPOVPosition();
9662
9663 wxPyEndAllowThreads(__tstate);
9664 if (PyErr_Occurred()) SWIG_fail;
9665 }
9666 resultobj = SWIG_FromInt((int)result);
9667 return resultobj;
9668 fail:
9669 return NULL;
9670 }
9671
9672
9673 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9674 PyObject *resultobj;
9675 wxJoystick *arg1 = (wxJoystick *) 0 ;
9676 int result;
9677 PyObject * obj0 = 0 ;
9678 char *kwnames[] = {
9679 (char *) "self", NULL
9680 };
9681
9682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
9687 result = (int)(arg1)->GetPOVCTSPosition();
9688
9689 wxPyEndAllowThreads(__tstate);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 }
9692 resultobj = SWIG_FromInt((int)result);
9693 return resultobj;
9694 fail:
9695 return NULL;
9696 }
9697
9698
9699 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9700 PyObject *resultobj;
9701 wxJoystick *arg1 = (wxJoystick *) 0 ;
9702 int result;
9703 PyObject * obj0 = 0 ;
9704 char *kwnames[] = {
9705 (char *) "self", NULL
9706 };
9707
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 result = (int)(arg1)->GetRudderPosition();
9714
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 resultobj = SWIG_FromInt((int)result);
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj;
9727 wxJoystick *arg1 = (wxJoystick *) 0 ;
9728 int result;
9729 PyObject * obj0 = 0 ;
9730 char *kwnames[] = {
9731 (char *) "self", NULL
9732 };
9733
9734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 result = (int)(arg1)->GetUPosition();
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 resultobj = SWIG_FromInt((int)result);
9745 return resultobj;
9746 fail:
9747 return NULL;
9748 }
9749
9750
9751 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj;
9753 wxJoystick *arg1 = (wxJoystick *) 0 ;
9754 int result;
9755 PyObject * obj0 = 0 ;
9756 char *kwnames[] = {
9757 (char *) "self", NULL
9758 };
9759
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9763 {
9764 PyThreadState* __tstate = wxPyBeginAllowThreads();
9765 result = (int)(arg1)->GetVPosition();
9766
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 resultobj = SWIG_FromInt((int)result);
9771 return resultobj;
9772 fail:
9773 return NULL;
9774 }
9775
9776
9777 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj;
9779 wxJoystick *arg1 = (wxJoystick *) 0 ;
9780 int result;
9781 PyObject * obj0 = 0 ;
9782 char *kwnames[] = {
9783 (char *) "self", NULL
9784 };
9785
9786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = (int)(arg1)->GetMovementThreshold();
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_FromInt((int)result);
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxJoystick *arg1 = (wxJoystick *) 0 ;
9806 int arg2 ;
9807 PyObject * obj0 = 0 ;
9808 PyObject * obj1 = 0 ;
9809 char *kwnames[] = {
9810 (char *) "self",(char *) "threshold", NULL
9811 };
9812
9813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9816 arg2 = (int) SWIG_AsInt(obj1);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 (arg1)->SetMovementThreshold(arg2);
9821
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 Py_INCREF(Py_None); resultobj = Py_None;
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj;
9834 wxJoystick *arg1 = (wxJoystick *) 0 ;
9835 bool result;
9836 PyObject * obj0 = 0 ;
9837 char *kwnames[] = {
9838 (char *) "self", NULL
9839 };
9840
9841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 result = (bool)(arg1)->IsOk();
9847
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 {
9852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9853 }
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj;
9862 wxJoystick *arg1 = (wxJoystick *) 0 ;
9863 int result;
9864 PyObject * obj0 = 0 ;
9865 char *kwnames[] = {
9866 (char *) "self", NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9872 {
9873 PyThreadState* __tstate = wxPyBeginAllowThreads();
9874 result = (int)(arg1)->GetNumberJoysticks();
9875
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 resultobj = SWIG_FromInt((int)result);
9880 return resultobj;
9881 fail:
9882 return NULL;
9883 }
9884
9885
9886 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj;
9888 wxJoystick *arg1 = (wxJoystick *) 0 ;
9889 int result;
9890 PyObject * obj0 = 0 ;
9891 char *kwnames[] = {
9892 (char *) "self", NULL
9893 };
9894
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9898 {
9899 PyThreadState* __tstate = wxPyBeginAllowThreads();
9900 result = (int)(arg1)->GetManufacturerId();
9901
9902 wxPyEndAllowThreads(__tstate);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 resultobj = SWIG_FromInt((int)result);
9906 return resultobj;
9907 fail:
9908 return NULL;
9909 }
9910
9911
9912 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9913 PyObject *resultobj;
9914 wxJoystick *arg1 = (wxJoystick *) 0 ;
9915 int result;
9916 PyObject * obj0 = 0 ;
9917 char *kwnames[] = {
9918 (char *) "self", NULL
9919 };
9920
9921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9924 {
9925 PyThreadState* __tstate = wxPyBeginAllowThreads();
9926 result = (int)(arg1)->GetProductId();
9927
9928 wxPyEndAllowThreads(__tstate);
9929 if (PyErr_Occurred()) SWIG_fail;
9930 }
9931 resultobj = SWIG_FromInt((int)result);
9932 return resultobj;
9933 fail:
9934 return NULL;
9935 }
9936
9937
9938 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9939 PyObject *resultobj;
9940 wxJoystick *arg1 = (wxJoystick *) 0 ;
9941 wxString result;
9942 PyObject * obj0 = 0 ;
9943 char *kwnames[] = {
9944 (char *) "self", NULL
9945 };
9946
9947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = (arg1)->GetProductName();
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 {
9958 #if wxUSE_UNICODE
9959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9960 #else
9961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9962 #endif
9963 }
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj;
9972 wxJoystick *arg1 = (wxJoystick *) 0 ;
9973 int result;
9974 PyObject * obj0 = 0 ;
9975 char *kwnames[] = {
9976 (char *) "self", NULL
9977 };
9978
9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9982 {
9983 PyThreadState* __tstate = wxPyBeginAllowThreads();
9984 result = (int)(arg1)->GetXMin();
9985
9986 wxPyEndAllowThreads(__tstate);
9987 if (PyErr_Occurred()) SWIG_fail;
9988 }
9989 resultobj = SWIG_FromInt((int)result);
9990 return resultobj;
9991 fail:
9992 return NULL;
9993 }
9994
9995
9996 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9997 PyObject *resultobj;
9998 wxJoystick *arg1 = (wxJoystick *) 0 ;
9999 int result;
10000 PyObject * obj0 = 0 ;
10001 char *kwnames[] = {
10002 (char *) "self", NULL
10003 };
10004
10005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 result = (int)(arg1)->GetYMin();
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 resultobj = SWIG_FromInt((int)result);
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 wxJoystick *arg1 = (wxJoystick *) 0 ;
10025 int result;
10026 PyObject * obj0 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "self", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 result = (int)(arg1)->GetZMin();
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 resultobj = SWIG_FromInt((int)result);
10042 return resultobj;
10043 fail:
10044 return NULL;
10045 }
10046
10047
10048 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10049 PyObject *resultobj;
10050 wxJoystick *arg1 = (wxJoystick *) 0 ;
10051 int result;
10052 PyObject * obj0 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "self", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (int)(arg1)->GetXMax();
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_FromInt((int)result);
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj;
10076 wxJoystick *arg1 = (wxJoystick *) 0 ;
10077 int result;
10078 PyObject * obj0 = 0 ;
10079 char *kwnames[] = {
10080 (char *) "self", NULL
10081 };
10082
10083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = (int)(arg1)->GetYMax();
10089
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 resultobj = SWIG_FromInt((int)result);
10094 return resultobj;
10095 fail:
10096 return NULL;
10097 }
10098
10099
10100 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10101 PyObject *resultobj;
10102 wxJoystick *arg1 = (wxJoystick *) 0 ;
10103 int result;
10104 PyObject * obj0 = 0 ;
10105 char *kwnames[] = {
10106 (char *) "self", NULL
10107 };
10108
10109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10112 {
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (int)(arg1)->GetZMax();
10115
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_FromInt((int)result);
10120 return resultobj;
10121 fail:
10122 return NULL;
10123 }
10124
10125
10126 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10127 PyObject *resultobj;
10128 wxJoystick *arg1 = (wxJoystick *) 0 ;
10129 int result;
10130 PyObject * obj0 = 0 ;
10131 char *kwnames[] = {
10132 (char *) "self", NULL
10133 };
10134
10135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10138 {
10139 PyThreadState* __tstate = wxPyBeginAllowThreads();
10140 result = (int)(arg1)->GetNumberButtons();
10141
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_FromInt((int)result);
10146 return resultobj;
10147 fail:
10148 return NULL;
10149 }
10150
10151
10152 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10153 PyObject *resultobj;
10154 wxJoystick *arg1 = (wxJoystick *) 0 ;
10155 int result;
10156 PyObject * obj0 = 0 ;
10157 char *kwnames[] = {
10158 (char *) "self", NULL
10159 };
10160
10161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10164 {
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 result = (int)(arg1)->GetNumberAxes();
10167
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 resultobj = SWIG_FromInt((int)result);
10172 return resultobj;
10173 fail:
10174 return NULL;
10175 }
10176
10177
10178 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10179 PyObject *resultobj;
10180 wxJoystick *arg1 = (wxJoystick *) 0 ;
10181 int result;
10182 PyObject * obj0 = 0 ;
10183 char *kwnames[] = {
10184 (char *) "self", NULL
10185 };
10186
10187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = (int)(arg1)->GetMaxButtons();
10193
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_FromInt((int)result);
10198 return resultobj;
10199 fail:
10200 return NULL;
10201 }
10202
10203
10204 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj;
10206 wxJoystick *arg1 = (wxJoystick *) 0 ;
10207 int result;
10208 PyObject * obj0 = 0 ;
10209 char *kwnames[] = {
10210 (char *) "self", NULL
10211 };
10212
10213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (int)(arg1)->GetMaxAxes();
10219
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 resultobj = SWIG_FromInt((int)result);
10224 return resultobj;
10225 fail:
10226 return NULL;
10227 }
10228
10229
10230 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10231 PyObject *resultobj;
10232 wxJoystick *arg1 = (wxJoystick *) 0 ;
10233 int result;
10234 PyObject * obj0 = 0 ;
10235 char *kwnames[] = {
10236 (char *) "self", NULL
10237 };
10238
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (int)(arg1)->GetPollingMin();
10245
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 resultobj = SWIG_FromInt((int)result);
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj;
10258 wxJoystick *arg1 = (wxJoystick *) 0 ;
10259 int result;
10260 PyObject * obj0 = 0 ;
10261 char *kwnames[] = {
10262 (char *) "self", NULL
10263 };
10264
10265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
10270 result = (int)(arg1)->GetPollingMax();
10271
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 resultobj = SWIG_FromInt((int)result);
10276 return resultobj;
10277 fail:
10278 return NULL;
10279 }
10280
10281
10282 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj;
10284 wxJoystick *arg1 = (wxJoystick *) 0 ;
10285 int result;
10286 PyObject * obj0 = 0 ;
10287 char *kwnames[] = {
10288 (char *) "self", NULL
10289 };
10290
10291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (int)(arg1)->GetRudderMin();
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 resultobj = SWIG_FromInt((int)result);
10302 return resultobj;
10303 fail:
10304 return NULL;
10305 }
10306
10307
10308 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj;
10310 wxJoystick *arg1 = (wxJoystick *) 0 ;
10311 int result;
10312 PyObject * obj0 = 0 ;
10313 char *kwnames[] = {
10314 (char *) "self", NULL
10315 };
10316
10317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 result = (int)(arg1)->GetRudderMax();
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 resultobj = SWIG_FromInt((int)result);
10328 return resultobj;
10329 fail:
10330 return NULL;
10331 }
10332
10333
10334 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj;
10336 wxJoystick *arg1 = (wxJoystick *) 0 ;
10337 int result;
10338 PyObject * obj0 = 0 ;
10339 char *kwnames[] = {
10340 (char *) "self", NULL
10341 };
10342
10343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 result = (int)(arg1)->GetUMin();
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_FromInt((int)result);
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 wxJoystick *arg1 = (wxJoystick *) 0 ;
10363 int result;
10364 PyObject * obj0 = 0 ;
10365 char *kwnames[] = {
10366 (char *) "self", NULL
10367 };
10368
10369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10372 {
10373 PyThreadState* __tstate = wxPyBeginAllowThreads();
10374 result = (int)(arg1)->GetUMax();
10375
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 resultobj = SWIG_FromInt((int)result);
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj;
10388 wxJoystick *arg1 = (wxJoystick *) 0 ;
10389 int result;
10390 PyObject * obj0 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 result = (int)(arg1)->GetVMin();
10401
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = SWIG_FromInt((int)result);
10406 return resultobj;
10407 fail:
10408 return NULL;
10409 }
10410
10411
10412 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj;
10414 wxJoystick *arg1 = (wxJoystick *) 0 ;
10415 int result;
10416 PyObject * obj0 = 0 ;
10417 char *kwnames[] = {
10418 (char *) "self", NULL
10419 };
10420
10421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = (int)(arg1)->GetVMax();
10427
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 resultobj = SWIG_FromInt((int)result);
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj;
10440 wxJoystick *arg1 = (wxJoystick *) 0 ;
10441 bool result;
10442 PyObject * obj0 = 0 ;
10443 char *kwnames[] = {
10444 (char *) "self", NULL
10445 };
10446
10447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (bool)(arg1)->HasRudder();
10453
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 {
10458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10459 }
10460 return resultobj;
10461 fail:
10462 return NULL;
10463 }
10464
10465
10466 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10467 PyObject *resultobj;
10468 wxJoystick *arg1 = (wxJoystick *) 0 ;
10469 bool result;
10470 PyObject * obj0 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "self", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (bool)(arg1)->HasZ();
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 {
10486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10487 }
10488 return resultobj;
10489 fail:
10490 return NULL;
10491 }
10492
10493
10494 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10495 PyObject *resultobj;
10496 wxJoystick *arg1 = (wxJoystick *) 0 ;
10497 bool result;
10498 PyObject * obj0 = 0 ;
10499 char *kwnames[] = {
10500 (char *) "self", NULL
10501 };
10502
10503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10506 {
10507 PyThreadState* __tstate = wxPyBeginAllowThreads();
10508 result = (bool)(arg1)->HasU();
10509
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 {
10514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10515 }
10516 return resultobj;
10517 fail:
10518 return NULL;
10519 }
10520
10521
10522 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10523 PyObject *resultobj;
10524 wxJoystick *arg1 = (wxJoystick *) 0 ;
10525 bool result;
10526 PyObject * obj0 = 0 ;
10527 char *kwnames[] = {
10528 (char *) "self", NULL
10529 };
10530
10531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 result = (bool)(arg1)->HasV();
10537
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 {
10542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10543 }
10544 return resultobj;
10545 fail:
10546 return NULL;
10547 }
10548
10549
10550 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10551 PyObject *resultobj;
10552 wxJoystick *arg1 = (wxJoystick *) 0 ;
10553 bool result;
10554 PyObject * obj0 = 0 ;
10555 char *kwnames[] = {
10556 (char *) "self", NULL
10557 };
10558
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 result = (bool)(arg1)->HasPOV();
10565
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 {
10570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10571 }
10572 return resultobj;
10573 fail:
10574 return NULL;
10575 }
10576
10577
10578 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj;
10580 wxJoystick *arg1 = (wxJoystick *) 0 ;
10581 bool result;
10582 PyObject * obj0 = 0 ;
10583 char *kwnames[] = {
10584 (char *) "self", NULL
10585 };
10586
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 result = (bool)(arg1)->HasPOV4Dir();
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 {
10598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10599 }
10600 return resultobj;
10601 fail:
10602 return NULL;
10603 }
10604
10605
10606 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10607 PyObject *resultobj;
10608 wxJoystick *arg1 = (wxJoystick *) 0 ;
10609 bool result;
10610 PyObject * obj0 = 0 ;
10611 char *kwnames[] = {
10612 (char *) "self", NULL
10613 };
10614
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10618 {
10619 PyThreadState* __tstate = wxPyBeginAllowThreads();
10620 result = (bool)(arg1)->HasPOVCTS();
10621
10622 wxPyEndAllowThreads(__tstate);
10623 if (PyErr_Occurred()) SWIG_fail;
10624 }
10625 {
10626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10627 }
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj;
10636 wxJoystick *arg1 = (wxJoystick *) 0 ;
10637 wxWindow *arg2 = (wxWindow *) 0 ;
10638 int arg3 = (int) 0 ;
10639 bool result;
10640 PyObject * obj0 = 0 ;
10641 PyObject * obj1 = 0 ;
10642 PyObject * obj2 = 0 ;
10643 char *kwnames[] = {
10644 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10645 };
10646
10647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10652 if (obj2) {
10653 arg3 = (int) SWIG_AsInt(obj2);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 {
10657 PyThreadState* __tstate = wxPyBeginAllowThreads();
10658 result = (bool)(arg1)->SetCapture(arg2,arg3);
10659
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 {
10664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10665 }
10666 return resultobj;
10667 fail:
10668 return NULL;
10669 }
10670
10671
10672 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj;
10674 wxJoystick *arg1 = (wxJoystick *) 0 ;
10675 bool result;
10676 PyObject * obj0 = 0 ;
10677 char *kwnames[] = {
10678 (char *) "self", NULL
10679 };
10680
10681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10684 {
10685 PyThreadState* __tstate = wxPyBeginAllowThreads();
10686 result = (bool)(arg1)->ReleaseCapture();
10687
10688 wxPyEndAllowThreads(__tstate);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 }
10691 {
10692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10693 }
10694 return resultobj;
10695 fail:
10696 return NULL;
10697 }
10698
10699
10700 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10701 PyObject *obj;
10702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10703 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10704 Py_INCREF(obj);
10705 return Py_BuildValue((char *)"");
10706 }
10707 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10708 PyObject *resultobj;
10709 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10710 wxPoint *arg2 = (wxPoint *) 0 ;
10711 PyObject * obj0 = 0 ;
10712 PyObject * obj1 = 0 ;
10713 char *kwnames[] = {
10714 (char *) "self",(char *) "m_pos", NULL
10715 };
10716
10717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10722 if (arg1) (arg1)->m_pos = *arg2;
10723
10724 Py_INCREF(Py_None); resultobj = Py_None;
10725 return resultobj;
10726 fail:
10727 return NULL;
10728 }
10729
10730
10731 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10732 PyObject *resultobj;
10733 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10734 wxPoint *result;
10735 PyObject * obj0 = 0 ;
10736 char *kwnames[] = {
10737 (char *) "self", NULL
10738 };
10739
10740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10743 result = (wxPoint *)& ((arg1)->m_pos);
10744
10745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10746 return resultobj;
10747 fail:
10748 return NULL;
10749 }
10750
10751
10752 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10753 PyObject *resultobj;
10754 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10755 int arg2 ;
10756 PyObject * obj0 = 0 ;
10757 PyObject * obj1 = 0 ;
10758 char *kwnames[] = {
10759 (char *) "self",(char *) "m_zPosition", NULL
10760 };
10761
10762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10765 arg2 = (int) SWIG_AsInt(obj1);
10766 if (PyErr_Occurred()) SWIG_fail;
10767 if (arg1) (arg1)->m_zPosition = arg2;
10768
10769 Py_INCREF(Py_None); resultobj = Py_None;
10770 return resultobj;
10771 fail:
10772 return NULL;
10773 }
10774
10775
10776 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10777 PyObject *resultobj;
10778 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10779 int result;
10780 PyObject * obj0 = 0 ;
10781 char *kwnames[] = {
10782 (char *) "self", NULL
10783 };
10784
10785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10788 result = (int) ((arg1)->m_zPosition);
10789
10790 resultobj = SWIG_FromInt((int)result);
10791 return resultobj;
10792 fail:
10793 return NULL;
10794 }
10795
10796
10797 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10798 PyObject *resultobj;
10799 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10800 int arg2 ;
10801 PyObject * obj0 = 0 ;
10802 PyObject * obj1 = 0 ;
10803 char *kwnames[] = {
10804 (char *) "self",(char *) "m_buttonChange", NULL
10805 };
10806
10807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10810 arg2 = (int) SWIG_AsInt(obj1);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 if (arg1) (arg1)->m_buttonChange = arg2;
10813
10814 Py_INCREF(Py_None); resultobj = Py_None;
10815 return resultobj;
10816 fail:
10817 return NULL;
10818 }
10819
10820
10821 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj;
10823 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10824 int result;
10825 PyObject * obj0 = 0 ;
10826 char *kwnames[] = {
10827 (char *) "self", NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10833 result = (int) ((arg1)->m_buttonChange);
10834
10835 resultobj = SWIG_FromInt((int)result);
10836 return resultobj;
10837 fail:
10838 return NULL;
10839 }
10840
10841
10842 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10843 PyObject *resultobj;
10844 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10845 int arg2 ;
10846 PyObject * obj0 = 0 ;
10847 PyObject * obj1 = 0 ;
10848 char *kwnames[] = {
10849 (char *) "self",(char *) "m_buttonState", NULL
10850 };
10851
10852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10855 arg2 = (int) SWIG_AsInt(obj1);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 if (arg1) (arg1)->m_buttonState = arg2;
10858
10859 Py_INCREF(Py_None); resultobj = Py_None;
10860 return resultobj;
10861 fail:
10862 return NULL;
10863 }
10864
10865
10866 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj;
10868 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10869 int result;
10870 PyObject * obj0 = 0 ;
10871 char *kwnames[] = {
10872 (char *) "self", NULL
10873 };
10874
10875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10878 result = (int) ((arg1)->m_buttonState);
10879
10880 resultobj = SWIG_FromInt((int)result);
10881 return resultobj;
10882 fail:
10883 return NULL;
10884 }
10885
10886
10887 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10888 PyObject *resultobj;
10889 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10890 int arg2 ;
10891 PyObject * obj0 = 0 ;
10892 PyObject * obj1 = 0 ;
10893 char *kwnames[] = {
10894 (char *) "self",(char *) "m_joyStick", NULL
10895 };
10896
10897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10900 arg2 = (int) SWIG_AsInt(obj1);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 if (arg1) (arg1)->m_joyStick = arg2;
10903
10904 Py_INCREF(Py_None); resultobj = Py_None;
10905 return resultobj;
10906 fail:
10907 return NULL;
10908 }
10909
10910
10911 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10912 PyObject *resultobj;
10913 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10914 int result;
10915 PyObject * obj0 = 0 ;
10916 char *kwnames[] = {
10917 (char *) "self", NULL
10918 };
10919
10920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10923 result = (int) ((arg1)->m_joyStick);
10924
10925 resultobj = SWIG_FromInt((int)result);
10926 return resultobj;
10927 fail:
10928 return NULL;
10929 }
10930
10931
10932 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10933 PyObject *resultobj;
10934 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10935 int arg2 = (int) 0 ;
10936 int arg3 = (int) wxJOYSTICK1 ;
10937 int arg4 = (int) 0 ;
10938 wxJoystickEvent *result;
10939 PyObject * obj0 = 0 ;
10940 PyObject * obj1 = 0 ;
10941 PyObject * obj2 = 0 ;
10942 PyObject * obj3 = 0 ;
10943 char *kwnames[] = {
10944 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10945 };
10946
10947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10948 if (obj0) {
10949 arg1 = (wxEventType) SWIG_AsInt(obj0);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 if (obj1) {
10953 arg2 = (int) SWIG_AsInt(obj1);
10954 if (PyErr_Occurred()) SWIG_fail;
10955 }
10956 if (obj2) {
10957 arg3 = (int) SWIG_AsInt(obj2);
10958 if (PyErr_Occurred()) SWIG_fail;
10959 }
10960 if (obj3) {
10961 arg4 = (int) SWIG_AsInt(obj3);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 {
10965 PyThreadState* __tstate = wxPyBeginAllowThreads();
10966 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10967
10968 wxPyEndAllowThreads(__tstate);
10969 if (PyErr_Occurred()) SWIG_fail;
10970 }
10971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10972 return resultobj;
10973 fail:
10974 return NULL;
10975 }
10976
10977
10978 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10979 PyObject *resultobj;
10980 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10981 wxPoint result;
10982 PyObject * obj0 = 0 ;
10983 char *kwnames[] = {
10984 (char *) "self", NULL
10985 };
10986
10987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10993
10994 wxPyEndAllowThreads(__tstate);
10995 if (PyErr_Occurred()) SWIG_fail;
10996 }
10997 {
10998 wxPoint * resultptr;
10999 resultptr = new wxPoint((wxPoint &) result);
11000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11001 }
11002 return resultobj;
11003 fail:
11004 return NULL;
11005 }
11006
11007
11008 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11009 PyObject *resultobj;
11010 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11011 int result;
11012 PyObject * obj0 = 0 ;
11013 char *kwnames[] = {
11014 (char *) "self", NULL
11015 };
11016
11017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11023
11024 wxPyEndAllowThreads(__tstate);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 resultobj = SWIG_FromInt((int)result);
11028 return resultobj;
11029 fail:
11030 return NULL;
11031 }
11032
11033
11034 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11035 PyObject *resultobj;
11036 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11037 int result;
11038 PyObject * obj0 = 0 ;
11039 char *kwnames[] = {
11040 (char *) "self", NULL
11041 };
11042
11043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11049
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 resultobj = SWIG_FromInt((int)result);
11054 return resultobj;
11055 fail:
11056 return NULL;
11057 }
11058
11059
11060 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11061 PyObject *resultobj;
11062 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11063 int result;
11064 PyObject * obj0 = 0 ;
11065 char *kwnames[] = {
11066 (char *) "self", NULL
11067 };
11068
11069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11072 {
11073 PyThreadState* __tstate = wxPyBeginAllowThreads();
11074 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11075
11076 wxPyEndAllowThreads(__tstate);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 }
11079 resultobj = SWIG_FromInt((int)result);
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj;
11088 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11089 int result;
11090 PyObject * obj0 = 0 ;
11091 char *kwnames[] = {
11092 (char *) "self", NULL
11093 };
11094
11095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11101
11102 wxPyEndAllowThreads(__tstate);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 }
11105 resultobj = SWIG_FromInt((int)result);
11106 return resultobj;
11107 fail:
11108 return NULL;
11109 }
11110
11111
11112 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11113 PyObject *resultobj;
11114 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11115 int arg2 ;
11116 PyObject * obj0 = 0 ;
11117 PyObject * obj1 = 0 ;
11118 char *kwnames[] = {
11119 (char *) "self",(char *) "stick", NULL
11120 };
11121
11122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11125 arg2 = (int) SWIG_AsInt(obj1);
11126 if (PyErr_Occurred()) SWIG_fail;
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 (arg1)->SetJoystick(arg2);
11130
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 Py_INCREF(Py_None); resultobj = Py_None;
11135 return resultobj;
11136 fail:
11137 return NULL;
11138 }
11139
11140
11141 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11142 PyObject *resultobj;
11143 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11144 int arg2 ;
11145 PyObject * obj0 = 0 ;
11146 PyObject * obj1 = 0 ;
11147 char *kwnames[] = {
11148 (char *) "self",(char *) "state", NULL
11149 };
11150
11151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11154 arg2 = (int) SWIG_AsInt(obj1);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 (arg1)->SetButtonState(arg2);
11159
11160 wxPyEndAllowThreads(__tstate);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 Py_INCREF(Py_None); resultobj = Py_None;
11164 return resultobj;
11165 fail:
11166 return NULL;
11167 }
11168
11169
11170 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11171 PyObject *resultobj;
11172 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11173 int arg2 ;
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 char *kwnames[] = {
11177 (char *) "self",(char *) "change", NULL
11178 };
11179
11180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11183 arg2 = (int) SWIG_AsInt(obj1);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 {
11186 PyThreadState* __tstate = wxPyBeginAllowThreads();
11187 (arg1)->SetButtonChange(arg2);
11188
11189 wxPyEndAllowThreads(__tstate);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 Py_INCREF(Py_None); resultobj = Py_None;
11193 return resultobj;
11194 fail:
11195 return NULL;
11196 }
11197
11198
11199 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj;
11201 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11202 wxPoint *arg2 = 0 ;
11203 wxPoint temp2 ;
11204 PyObject * obj0 = 0 ;
11205 PyObject * obj1 = 0 ;
11206 char *kwnames[] = {
11207 (char *) "self",(char *) "pos", NULL
11208 };
11209
11210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11213 {
11214 arg2 = &temp2;
11215 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11216 }
11217 {
11218 PyThreadState* __tstate = wxPyBeginAllowThreads();
11219 (arg1)->SetPosition((wxPoint const &)*arg2);
11220
11221 wxPyEndAllowThreads(__tstate);
11222 if (PyErr_Occurred()) SWIG_fail;
11223 }
11224 Py_INCREF(Py_None); resultobj = Py_None;
11225 return resultobj;
11226 fail:
11227 return NULL;
11228 }
11229
11230
11231 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11232 PyObject *resultobj;
11233 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11234 int arg2 ;
11235 PyObject * obj0 = 0 ;
11236 PyObject * obj1 = 0 ;
11237 char *kwnames[] = {
11238 (char *) "self",(char *) "zPos", NULL
11239 };
11240
11241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11244 arg2 = (int) SWIG_AsInt(obj1);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 (arg1)->SetZPosition(arg2);
11249
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) SWIG_fail;
11252 }
11253 Py_INCREF(Py_None); resultobj = Py_None;
11254 return resultobj;
11255 fail:
11256 return NULL;
11257 }
11258
11259
11260 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11261 PyObject *resultobj;
11262 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11263 bool result;
11264 PyObject * obj0 = 0 ;
11265 char *kwnames[] = {
11266 (char *) "self", NULL
11267 };
11268
11269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
11274 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11275
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 {
11280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11281 }
11282 return resultobj;
11283 fail:
11284 return NULL;
11285 }
11286
11287
11288 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11289 PyObject *resultobj;
11290 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11291 bool result;
11292 PyObject * obj0 = 0 ;
11293 char *kwnames[] = {
11294 (char *) "self", NULL
11295 };
11296
11297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11300 {
11301 PyThreadState* __tstate = wxPyBeginAllowThreads();
11302 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11303
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 {
11308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11309 }
11310 return resultobj;
11311 fail:
11312 return NULL;
11313 }
11314
11315
11316 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11317 PyObject *resultobj;
11318 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11319 bool result;
11320 PyObject * obj0 = 0 ;
11321 char *kwnames[] = {
11322 (char *) "self", NULL
11323 };
11324
11325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11328 {
11329 PyThreadState* __tstate = wxPyBeginAllowThreads();
11330 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11331
11332 wxPyEndAllowThreads(__tstate);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 }
11335 {
11336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11337 }
11338 return resultobj;
11339 fail:
11340 return NULL;
11341 }
11342
11343
11344 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11345 PyObject *resultobj;
11346 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11347 int arg2 = (int) wxJOY_BUTTON_ANY ;
11348 bool result;
11349 PyObject * obj0 = 0 ;
11350 PyObject * obj1 = 0 ;
11351 char *kwnames[] = {
11352 (char *) "self",(char *) "but", NULL
11353 };
11354
11355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11358 if (obj1) {
11359 arg2 = (int) SWIG_AsInt(obj1);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 {
11370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11371 }
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11379 PyObject *resultobj;
11380 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11381 int arg2 = (int) wxJOY_BUTTON_ANY ;
11382 bool result;
11383 PyObject * obj0 = 0 ;
11384 PyObject * obj1 = 0 ;
11385 char *kwnames[] = {
11386 (char *) "self",(char *) "but", NULL
11387 };
11388
11389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11392 if (obj1) {
11393 arg2 = (int) SWIG_AsInt(obj1);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11399
11400 wxPyEndAllowThreads(__tstate);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
11403 {
11404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11405 }
11406 return resultobj;
11407 fail:
11408 return NULL;
11409 }
11410
11411
11412 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11413 PyObject *resultobj;
11414 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11415 int arg2 = (int) wxJOY_BUTTON_ANY ;
11416 bool result;
11417 PyObject * obj0 = 0 ;
11418 PyObject * obj1 = 0 ;
11419 char *kwnames[] = {
11420 (char *) "self",(char *) "but", NULL
11421 };
11422
11423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11426 if (obj1) {
11427 arg2 = (int) SWIG_AsInt(obj1);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11433
11434 wxPyEndAllowThreads(__tstate);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 }
11437 {
11438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11439 }
11440 return resultobj;
11441 fail:
11442 return NULL;
11443 }
11444
11445
11446 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11447 PyObject *obj;
11448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11449 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11450 Py_INCREF(obj);
11451 return Py_BuildValue((char *)"");
11452 }
11453 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11454 PyObject *resultobj;
11455 wxString const &arg1_defvalue = wxPyEmptyString ;
11456 wxString *arg1 = (wxString *) &arg1_defvalue ;
11457 wxSound *result;
11458 bool temp1 = False ;
11459 PyObject * obj0 = 0 ;
11460 char *kwnames[] = {
11461 (char *) "fileName", NULL
11462 };
11463
11464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11465 if (obj0) {
11466 {
11467 arg1 = wxString_in_helper(obj0);
11468 if (arg1 == NULL) SWIG_fail;
11469 temp1 = True;
11470 }
11471 }
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11480 {
11481 if (temp1)
11482 delete arg1;
11483 }
11484 return resultobj;
11485 fail:
11486 {
11487 if (temp1)
11488 delete arg1;
11489 }
11490 return NULL;
11491 }
11492
11493
11494 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11495 PyObject *resultobj;
11496 PyObject *arg1 = (PyObject *) 0 ;
11497 wxSound *result;
11498 PyObject * obj0 = 0 ;
11499 char *kwnames[] = {
11500 (char *) "data", NULL
11501 };
11502
11503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11504 arg1 = obj0;
11505 {
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 result = (wxSound *)new_wxSound(arg1);
11508
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11513 return resultobj;
11514 fail:
11515 return NULL;
11516 }
11517
11518
11519 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11520 PyObject *resultobj;
11521 wxSound *arg1 = (wxSound *) 0 ;
11522 PyObject * obj0 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "self", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 delete arg1;
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 Py_INCREF(Py_None); resultobj = Py_None;
11538 return resultobj;
11539 fail:
11540 return NULL;
11541 }
11542
11543
11544 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11545 PyObject *resultobj;
11546 wxSound *arg1 = (wxSound *) 0 ;
11547 wxString *arg2 = 0 ;
11548 bool result;
11549 bool temp2 = False ;
11550 PyObject * obj0 = 0 ;
11551 PyObject * obj1 = 0 ;
11552 char *kwnames[] = {
11553 (char *) "self",(char *) "fileName", NULL
11554 };
11555
11556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11559 {
11560 arg2 = wxString_in_helper(obj1);
11561 if (arg2 == NULL) SWIG_fail;
11562 temp2 = True;
11563 }
11564 {
11565 PyThreadState* __tstate = wxPyBeginAllowThreads();
11566 result = (bool)(arg1)->Create((wxString const &)*arg2);
11567
11568 wxPyEndAllowThreads(__tstate);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 }
11571 {
11572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11573 }
11574 {
11575 if (temp2)
11576 delete arg2;
11577 }
11578 return resultobj;
11579 fail:
11580 {
11581 if (temp2)
11582 delete arg2;
11583 }
11584 return NULL;
11585 }
11586
11587
11588 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11589 PyObject *resultobj;
11590 wxSound *arg1 = (wxSound *) 0 ;
11591 PyObject *arg2 = (PyObject *) 0 ;
11592 bool result;
11593 PyObject * obj0 = 0 ;
11594 PyObject * obj1 = 0 ;
11595 char *kwnames[] = {
11596 (char *) "self",(char *) "data", NULL
11597 };
11598
11599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11602 arg2 = obj1;
11603 {
11604 PyThreadState* __tstate = wxPyBeginAllowThreads();
11605 result = (bool)wxSound_CreateFromData(arg1,arg2);
11606
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 {
11611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11612 }
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj;
11621 wxSound *arg1 = (wxSound *) 0 ;
11622 bool result;
11623 PyObject * obj0 = 0 ;
11624 char *kwnames[] = {
11625 (char *) "self", NULL
11626 };
11627
11628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11631 {
11632 PyThreadState* __tstate = wxPyBeginAllowThreads();
11633 result = (bool)(arg1)->IsOk();
11634
11635 wxPyEndAllowThreads(__tstate);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 {
11639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11640 }
11641 return resultobj;
11642 fail:
11643 return NULL;
11644 }
11645
11646
11647 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11648 PyObject *resultobj;
11649 wxSound *arg1 = (wxSound *) 0 ;
11650 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11651 bool result;
11652 PyObject * obj0 = 0 ;
11653 PyObject * obj1 = 0 ;
11654 char *kwnames[] = {
11655 (char *) "self",(char *) "flags", NULL
11656 };
11657
11658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11661 if (obj1) {
11662 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11663 if (PyErr_Occurred()) SWIG_fail;
11664 }
11665 {
11666 PyThreadState* __tstate = wxPyBeginAllowThreads();
11667 result = (bool)((wxSound const *)arg1)->Play(arg2);
11668
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 {
11673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11674 }
11675 return resultobj;
11676 fail:
11677 return NULL;
11678 }
11679
11680
11681 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11682 PyObject *resultobj;
11683 wxString *arg1 = 0 ;
11684 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11685 bool result;
11686 bool temp1 = False ;
11687 PyObject * obj0 = 0 ;
11688 PyObject * obj1 = 0 ;
11689 char *kwnames[] = {
11690 (char *) "filename",(char *) "flags", NULL
11691 };
11692
11693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11694 {
11695 arg1 = wxString_in_helper(obj0);
11696 if (arg1 == NULL) SWIG_fail;
11697 temp1 = True;
11698 }
11699 if (obj1) {
11700 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11701 if (PyErr_Occurred()) SWIG_fail;
11702 }
11703 {
11704 PyThreadState* __tstate = wxPyBeginAllowThreads();
11705 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11706
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 {
11711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11712 }
11713 {
11714 if (temp1)
11715 delete arg1;
11716 }
11717 return resultobj;
11718 fail:
11719 {
11720 if (temp1)
11721 delete arg1;
11722 }
11723 return NULL;
11724 }
11725
11726
11727 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11728 PyObject *resultobj;
11729 char *kwnames[] = {
11730 NULL
11731 };
11732
11733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 Sound_Stop();
11737
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 Py_INCREF(Py_None); resultobj = Py_None;
11742 return resultobj;
11743 fail:
11744 return NULL;
11745 }
11746
11747
11748 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11749 PyObject *obj;
11750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11751 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11752 Py_INCREF(obj);
11753 return Py_BuildValue((char *)"");
11754 }
11755 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11756 PyObject *resultobj;
11757 wxString *arg1 = 0 ;
11758 wxString *arg2 = 0 ;
11759 wxString *arg3 = 0 ;
11760 wxString *arg4 = 0 ;
11761 wxFileTypeInfo *result;
11762 bool temp1 = False ;
11763 bool temp2 = False ;
11764 bool temp3 = False ;
11765 bool temp4 = False ;
11766 PyObject * obj0 = 0 ;
11767 PyObject * obj1 = 0 ;
11768 PyObject * obj2 = 0 ;
11769 PyObject * obj3 = 0 ;
11770 char *kwnames[] = {
11771 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11772 };
11773
11774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11775 {
11776 arg1 = wxString_in_helper(obj0);
11777 if (arg1 == NULL) SWIG_fail;
11778 temp1 = True;
11779 }
11780 {
11781 arg2 = wxString_in_helper(obj1);
11782 if (arg2 == NULL) SWIG_fail;
11783 temp2 = True;
11784 }
11785 {
11786 arg3 = wxString_in_helper(obj2);
11787 if (arg3 == NULL) SWIG_fail;
11788 temp3 = True;
11789 }
11790 {
11791 arg4 = wxString_in_helper(obj3);
11792 if (arg4 == NULL) SWIG_fail;
11793 temp4 = True;
11794 }
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11798
11799 wxPyEndAllowThreads(__tstate);
11800 if (PyErr_Occurred()) SWIG_fail;
11801 }
11802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11803 {
11804 if (temp1)
11805 delete arg1;
11806 }
11807 {
11808 if (temp2)
11809 delete arg2;
11810 }
11811 {
11812 if (temp3)
11813 delete arg3;
11814 }
11815 {
11816 if (temp4)
11817 delete arg4;
11818 }
11819 return resultobj;
11820 fail:
11821 {
11822 if (temp1)
11823 delete arg1;
11824 }
11825 {
11826 if (temp2)
11827 delete arg2;
11828 }
11829 {
11830 if (temp3)
11831 delete arg3;
11832 }
11833 {
11834 if (temp4)
11835 delete arg4;
11836 }
11837 return NULL;
11838 }
11839
11840
11841 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11842 PyObject *resultobj;
11843 wxArrayString *arg1 = 0 ;
11844 wxFileTypeInfo *result;
11845 bool temp1 = False ;
11846 PyObject * obj0 = 0 ;
11847 char *kwnames[] = {
11848 (char *) "sArray", NULL
11849 };
11850
11851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11852 {
11853 if (! PySequence_Check(obj0)) {
11854 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11855 SWIG_fail;
11856 }
11857 arg1 = new wxArrayString;
11858 temp1 = True;
11859 int i, len=PySequence_Length(obj0);
11860 for (i=0; i<len; i++) {
11861 PyObject* item = PySequence_GetItem(obj0, i);
11862 #if wxUSE_UNICODE
11863 PyObject* str = PyObject_Unicode(item);
11864 #else
11865 PyObject* str = PyObject_Str(item);
11866 #endif
11867 if (PyErr_Occurred()) SWIG_fail;
11868 arg1->Add(Py2wxString(str));
11869 Py_DECREF(item);
11870 Py_DECREF(str);
11871 }
11872 }
11873 {
11874 PyThreadState* __tstate = wxPyBeginAllowThreads();
11875 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11876
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11881 {
11882 if (temp1) delete arg1;
11883 }
11884 return resultobj;
11885 fail:
11886 {
11887 if (temp1) delete arg1;
11888 }
11889 return NULL;
11890 }
11891
11892
11893 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11894 PyObject *resultobj;
11895 wxFileTypeInfo *result;
11896 char *kwnames[] = {
11897 NULL
11898 };
11899
11900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11901 {
11902 PyThreadState* __tstate = wxPyBeginAllowThreads();
11903 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11904
11905 wxPyEndAllowThreads(__tstate);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11909 return resultobj;
11910 fail:
11911 return NULL;
11912 }
11913
11914
11915 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11916 PyObject *resultobj;
11917 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11918 bool result;
11919 PyObject * obj0 = 0 ;
11920 char *kwnames[] = {
11921 (char *) "self", NULL
11922 };
11923
11924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11927 {
11928 PyThreadState* __tstate = wxPyBeginAllowThreads();
11929 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11930
11931 wxPyEndAllowThreads(__tstate);
11932 if (PyErr_Occurred()) SWIG_fail;
11933 }
11934 {
11935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11936 }
11937 return resultobj;
11938 fail:
11939 return NULL;
11940 }
11941
11942
11943 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11944 PyObject *resultobj;
11945 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11946 wxString *arg2 = 0 ;
11947 int arg3 = (int) 0 ;
11948 bool temp2 = False ;
11949 PyObject * obj0 = 0 ;
11950 PyObject * obj1 = 0 ;
11951 PyObject * obj2 = 0 ;
11952 char *kwnames[] = {
11953 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
11954 };
11955
11956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11959 {
11960 arg2 = wxString_in_helper(obj1);
11961 if (arg2 == NULL) SWIG_fail;
11962 temp2 = True;
11963 }
11964 if (obj2) {
11965 arg3 = (int) SWIG_AsInt(obj2);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 (arg1)->SetIcon((wxString const &)*arg2,arg3);
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 Py_INCREF(Py_None); resultobj = Py_None;
11976 {
11977 if (temp2)
11978 delete arg2;
11979 }
11980 return resultobj;
11981 fail:
11982 {
11983 if (temp2)
11984 delete arg2;
11985 }
11986 return NULL;
11987 }
11988
11989
11990 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj;
11992 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11993 wxString *arg2 = 0 ;
11994 bool temp2 = False ;
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 char *kwnames[] = {
11998 (char *) "self",(char *) "shortDesc", NULL
11999 };
12000
12001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12004 {
12005 arg2 = wxString_in_helper(obj1);
12006 if (arg2 == NULL) SWIG_fail;
12007 temp2 = True;
12008 }
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 (arg1)->SetShortDesc((wxString const &)*arg2);
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 Py_INCREF(Py_None); resultobj = Py_None;
12017 {
12018 if (temp2)
12019 delete arg2;
12020 }
12021 return resultobj;
12022 fail:
12023 {
12024 if (temp2)
12025 delete arg2;
12026 }
12027 return NULL;
12028 }
12029
12030
12031 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12032 PyObject *resultobj;
12033 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12034 wxString *result;
12035 PyObject * obj0 = 0 ;
12036 char *kwnames[] = {
12037 (char *) "self", NULL
12038 };
12039
12040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 {
12046 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12047 result = (wxString *) &_result_ref;
12048 }
12049
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 {
12054 #if wxUSE_UNICODE
12055 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12056 #else
12057 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12058 #endif
12059 }
12060 return resultobj;
12061 fail:
12062 return NULL;
12063 }
12064
12065
12066 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12067 PyObject *resultobj;
12068 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12069 wxString *result;
12070 PyObject * obj0 = 0 ;
12071 char *kwnames[] = {
12072 (char *) "self", NULL
12073 };
12074
12075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 {
12081 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12082 result = (wxString *) &_result_ref;
12083 }
12084
12085 wxPyEndAllowThreads(__tstate);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 {
12089 #if wxUSE_UNICODE
12090 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12091 #else
12092 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12093 #endif
12094 }
12095 return resultobj;
12096 fail:
12097 return NULL;
12098 }
12099
12100
12101 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12102 PyObject *resultobj;
12103 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12104 wxString *result;
12105 PyObject * obj0 = 0 ;
12106 char *kwnames[] = {
12107 (char *) "self", NULL
12108 };
12109
12110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 {
12116 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12117 result = (wxString *) &_result_ref;
12118 }
12119
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 {
12124 #if wxUSE_UNICODE
12125 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12126 #else
12127 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12128 #endif
12129 }
12130 return resultobj;
12131 fail:
12132 return NULL;
12133 }
12134
12135
12136 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12137 PyObject *resultobj;
12138 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12139 wxString *result;
12140 PyObject * obj0 = 0 ;
12141 char *kwnames[] = {
12142 (char *) "self", NULL
12143 };
12144
12145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 {
12151 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12152 result = (wxString *) &_result_ref;
12153 }
12154
12155 wxPyEndAllowThreads(__tstate);
12156 if (PyErr_Occurred()) SWIG_fail;
12157 }
12158 {
12159 #if wxUSE_UNICODE
12160 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12161 #else
12162 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12163 #endif
12164 }
12165 return resultobj;
12166 fail:
12167 return NULL;
12168 }
12169
12170
12171 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12172 PyObject *resultobj;
12173 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12174 wxString *result;
12175 PyObject * obj0 = 0 ;
12176 char *kwnames[] = {
12177 (char *) "self", NULL
12178 };
12179
12180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 {
12186 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12187 result = (wxString *) &_result_ref;
12188 }
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 #if wxUSE_UNICODE
12195 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12196 #else
12197 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12198 #endif
12199 }
12200 return resultobj;
12201 fail:
12202 return NULL;
12203 }
12204
12205
12206 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12207 PyObject *resultobj;
12208 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12209 wxArrayString *result;
12210 PyObject * obj0 = 0 ;
12211 char *kwnames[] = {
12212 (char *) "self", NULL
12213 };
12214
12215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12218 {
12219 PyThreadState* __tstate = wxPyBeginAllowThreads();
12220 {
12221 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12222 result = (wxArrayString *) &_result_ref;
12223 }
12224
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 {
12229 resultobj = wxArrayString2PyList_helper(*result);
12230 }
12231 return resultobj;
12232 fail:
12233 return NULL;
12234 }
12235
12236
12237 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12238 PyObject *resultobj;
12239 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12240 int result;
12241 PyObject * obj0 = 0 ;
12242 char *kwnames[] = {
12243 (char *) "self", NULL
12244 };
12245
12246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12252
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 resultobj = SWIG_FromInt((int)result);
12257 return resultobj;
12258 fail:
12259 return NULL;
12260 }
12261
12262
12263 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12264 PyObject *resultobj;
12265 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12266 wxString *result;
12267 PyObject * obj0 = 0 ;
12268 char *kwnames[] = {
12269 (char *) "self", NULL
12270 };
12271
12272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12275 {
12276 PyThreadState* __tstate = wxPyBeginAllowThreads();
12277 {
12278 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12279 result = (wxString *) &_result_ref;
12280 }
12281
12282 wxPyEndAllowThreads(__tstate);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 {
12286 #if wxUSE_UNICODE
12287 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12288 #else
12289 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12290 #endif
12291 }
12292 return resultobj;
12293 fail:
12294 return NULL;
12295 }
12296
12297
12298 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12299 PyObject *resultobj;
12300 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12301 int result;
12302 PyObject * obj0 = 0 ;
12303 char *kwnames[] = {
12304 (char *) "self", NULL
12305 };
12306
12307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 resultobj = SWIG_FromInt((int)result);
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12325 PyObject *obj;
12326 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12327 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12328 Py_INCREF(obj);
12329 return Py_BuildValue((char *)"");
12330 }
12331 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12332 PyObject *resultobj;
12333 wxFileTypeInfo *arg1 = 0 ;
12334 wxFileType *result;
12335 PyObject * obj0 = 0 ;
12336 char *kwnames[] = {
12337 (char *) "ftInfo", NULL
12338 };
12339
12340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12342 SWIG_POINTER_EXCEPTION | 0)) == -1)
12343 SWIG_fail;
12344 if (arg1 == NULL) {
12345 PyErr_SetString(PyExc_TypeError,"null reference");
12346 SWIG_fail;
12347 }
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12351
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12356 return resultobj;
12357 fail:
12358 return NULL;
12359 }
12360
12361
12362 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12363 PyObject *resultobj;
12364 wxFileType *arg1 = (wxFileType *) 0 ;
12365 PyObject * obj0 = 0 ;
12366 char *kwnames[] = {
12367 (char *) "self", NULL
12368 };
12369
12370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 delete arg1;
12376
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 Py_INCREF(Py_None); resultobj = Py_None;
12381 return resultobj;
12382 fail:
12383 return NULL;
12384 }
12385
12386
12387 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12388 PyObject *resultobj;
12389 wxFileType *arg1 = (wxFileType *) 0 ;
12390 PyObject *result;
12391 PyObject * obj0 = 0 ;
12392 char *kwnames[] = {
12393 (char *) "self", NULL
12394 };
12395
12396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 result = (PyObject *)wxFileType_GetMimeType(arg1);
12402
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
12406 resultobj = result;
12407 return resultobj;
12408 fail:
12409 return NULL;
12410 }
12411
12412
12413 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12414 PyObject *resultobj;
12415 wxFileType *arg1 = (wxFileType *) 0 ;
12416 PyObject *result;
12417 PyObject * obj0 = 0 ;
12418 char *kwnames[] = {
12419 (char *) "self", NULL
12420 };
12421
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 resultobj = result;
12433 return resultobj;
12434 fail:
12435 return NULL;
12436 }
12437
12438
12439 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj;
12441 wxFileType *arg1 = (wxFileType *) 0 ;
12442 PyObject *result;
12443 PyObject * obj0 = 0 ;
12444 char *kwnames[] = {
12445 (char *) "self", NULL
12446 };
12447
12448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 result = (PyObject *)wxFileType_GetExtensions(arg1);
12454
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 resultobj = result;
12459 return resultobj;
12460 fail:
12461 return NULL;
12462 }
12463
12464
12465 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj;
12467 wxFileType *arg1 = (wxFileType *) 0 ;
12468 wxIcon *result;
12469 PyObject * obj0 = 0 ;
12470 char *kwnames[] = {
12471 (char *) "self", NULL
12472 };
12473
12474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = (wxIcon *)wxFileType_GetIcon(arg1);
12480
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12485 return resultobj;
12486 fail:
12487 return NULL;
12488 }
12489
12490
12491 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12492 PyObject *resultobj;
12493 wxFileType *arg1 = (wxFileType *) 0 ;
12494 PyObject *result;
12495 PyObject * obj0 = 0 ;
12496 char *kwnames[] = {
12497 (char *) "self", NULL
12498 };
12499
12500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 resultobj = result;
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxFileType *arg1 = (wxFileType *) 0 ;
12520 PyObject *result;
12521 PyObject * obj0 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 result = (PyObject *)wxFileType_GetDescription(arg1);
12532
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 resultobj = result;
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12544 PyObject *resultobj;
12545 wxFileType *arg1 = (wxFileType *) 0 ;
12546 wxString *arg2 = 0 ;
12547 wxString const &arg3_defvalue = wxPyEmptyString ;
12548 wxString *arg3 = (wxString *) &arg3_defvalue ;
12549 PyObject *result;
12550 bool temp2 = False ;
12551 bool temp3 = False ;
12552 PyObject * obj0 = 0 ;
12553 PyObject * obj1 = 0 ;
12554 PyObject * obj2 = 0 ;
12555 char *kwnames[] = {
12556 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12557 };
12558
12559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12562 {
12563 arg2 = wxString_in_helper(obj1);
12564 if (arg2 == NULL) SWIG_fail;
12565 temp2 = True;
12566 }
12567 if (obj2) {
12568 {
12569 arg3 = wxString_in_helper(obj2);
12570 if (arg3 == NULL) SWIG_fail;
12571 temp3 = True;
12572 }
12573 }
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12577
12578 wxPyEndAllowThreads(__tstate);
12579 if (PyErr_Occurred()) SWIG_fail;
12580 }
12581 resultobj = result;
12582 {
12583 if (temp2)
12584 delete arg2;
12585 }
12586 {
12587 if (temp3)
12588 delete arg3;
12589 }
12590 return resultobj;
12591 fail:
12592 {
12593 if (temp2)
12594 delete arg2;
12595 }
12596 {
12597 if (temp3)
12598 delete arg3;
12599 }
12600 return NULL;
12601 }
12602
12603
12604 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12605 PyObject *resultobj;
12606 wxFileType *arg1 = (wxFileType *) 0 ;
12607 wxString *arg2 = 0 ;
12608 wxString const &arg3_defvalue = wxPyEmptyString ;
12609 wxString *arg3 = (wxString *) &arg3_defvalue ;
12610 PyObject *result;
12611 bool temp2 = False ;
12612 bool temp3 = False ;
12613 PyObject * obj0 = 0 ;
12614 PyObject * obj1 = 0 ;
12615 PyObject * obj2 = 0 ;
12616 char *kwnames[] = {
12617 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12618 };
12619
12620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12623 {
12624 arg2 = wxString_in_helper(obj1);
12625 if (arg2 == NULL) SWIG_fail;
12626 temp2 = True;
12627 }
12628 if (obj2) {
12629 {
12630 arg3 = wxString_in_helper(obj2);
12631 if (arg3 == NULL) SWIG_fail;
12632 temp3 = True;
12633 }
12634 }
12635 {
12636 PyThreadState* __tstate = wxPyBeginAllowThreads();
12637 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12638
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) SWIG_fail;
12641 }
12642 resultobj = result;
12643 {
12644 if (temp2)
12645 delete arg2;
12646 }
12647 {
12648 if (temp3)
12649 delete arg3;
12650 }
12651 return resultobj;
12652 fail:
12653 {
12654 if (temp2)
12655 delete arg2;
12656 }
12657 {
12658 if (temp3)
12659 delete arg3;
12660 }
12661 return NULL;
12662 }
12663
12664
12665 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12666 PyObject *resultobj;
12667 wxFileType *arg1 = (wxFileType *) 0 ;
12668 wxString *arg2 = 0 ;
12669 wxString const &arg3_defvalue = wxPyEmptyString ;
12670 wxString *arg3 = (wxString *) &arg3_defvalue ;
12671 PyObject *result;
12672 bool temp2 = False ;
12673 bool temp3 = False ;
12674 PyObject * obj0 = 0 ;
12675 PyObject * obj1 = 0 ;
12676 PyObject * obj2 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12684 {
12685 arg2 = wxString_in_helper(obj1);
12686 if (arg2 == NULL) SWIG_fail;
12687 temp2 = True;
12688 }
12689 if (obj2) {
12690 {
12691 arg3 = wxString_in_helper(obj2);
12692 if (arg3 == NULL) SWIG_fail;
12693 temp3 = True;
12694 }
12695 }
12696 {
12697 PyThreadState* __tstate = wxPyBeginAllowThreads();
12698 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12699
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 resultobj = result;
12704 {
12705 if (temp2)
12706 delete arg2;
12707 }
12708 {
12709 if (temp3)
12710 delete arg3;
12711 }
12712 return resultobj;
12713 fail:
12714 {
12715 if (temp2)
12716 delete arg2;
12717 }
12718 {
12719 if (temp3)
12720 delete arg3;
12721 }
12722 return NULL;
12723 }
12724
12725
12726 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12727 PyObject *resultobj;
12728 wxFileType *arg1 = (wxFileType *) 0 ;
12729 wxString *arg2 = 0 ;
12730 wxString *arg3 = 0 ;
12731 bool arg4 = (bool) True ;
12732 bool result;
12733 bool temp2 = False ;
12734 bool temp3 = False ;
12735 PyObject * obj0 = 0 ;
12736 PyObject * obj1 = 0 ;
12737 PyObject * obj2 = 0 ;
12738 PyObject * obj3 = 0 ;
12739 char *kwnames[] = {
12740 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12741 };
12742
12743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12746 {
12747 arg2 = wxString_in_helper(obj1);
12748 if (arg2 == NULL) SWIG_fail;
12749 temp2 = True;
12750 }
12751 {
12752 arg3 = wxString_in_helper(obj2);
12753 if (arg3 == NULL) SWIG_fail;
12754 temp3 = True;
12755 }
12756 if (obj3) {
12757 arg4 = (bool) SWIG_AsBool(obj3);
12758 if (PyErr_Occurred()) SWIG_fail;
12759 }
12760 {
12761 PyThreadState* __tstate = wxPyBeginAllowThreads();
12762 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12763
12764 wxPyEndAllowThreads(__tstate);
12765 if (PyErr_Occurred()) SWIG_fail;
12766 }
12767 {
12768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12769 }
12770 {
12771 if (temp2)
12772 delete arg2;
12773 }
12774 {
12775 if (temp3)
12776 delete arg3;
12777 }
12778 return resultobj;
12779 fail:
12780 {
12781 if (temp2)
12782 delete arg2;
12783 }
12784 {
12785 if (temp3)
12786 delete arg3;
12787 }
12788 return NULL;
12789 }
12790
12791
12792 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12793 PyObject *resultobj;
12794 wxFileType *arg1 = (wxFileType *) 0 ;
12795 wxString const &arg2_defvalue = wxPyEmptyString ;
12796 wxString *arg2 = (wxString *) &arg2_defvalue ;
12797 int arg3 = (int) 0 ;
12798 bool result;
12799 bool temp2 = False ;
12800 PyObject * obj0 = 0 ;
12801 PyObject * obj1 = 0 ;
12802 PyObject * obj2 = 0 ;
12803 char *kwnames[] = {
12804 (char *) "self",(char *) "cmd",(char *) "index", NULL
12805 };
12806
12807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12810 if (obj1) {
12811 {
12812 arg2 = wxString_in_helper(obj1);
12813 if (arg2 == NULL) SWIG_fail;
12814 temp2 = True;
12815 }
12816 }
12817 if (obj2) {
12818 arg3 = (int) SWIG_AsInt(obj2);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12824
12825 wxPyEndAllowThreads(__tstate);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 {
12829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12830 }
12831 {
12832 if (temp2)
12833 delete arg2;
12834 }
12835 return resultobj;
12836 fail:
12837 {
12838 if (temp2)
12839 delete arg2;
12840 }
12841 return NULL;
12842 }
12843
12844
12845 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12846 PyObject *resultobj;
12847 wxFileType *arg1 = (wxFileType *) 0 ;
12848 bool result;
12849 PyObject * obj0 = 0 ;
12850 char *kwnames[] = {
12851 (char *) "self", NULL
12852 };
12853
12854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12857 {
12858 PyThreadState* __tstate = wxPyBeginAllowThreads();
12859 result = (bool)(arg1)->Unassociate();
12860
12861 wxPyEndAllowThreads(__tstate);
12862 if (PyErr_Occurred()) SWIG_fail;
12863 }
12864 {
12865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12866 }
12867 return resultobj;
12868 fail:
12869 return NULL;
12870 }
12871
12872
12873 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12874 PyObject *resultobj;
12875 wxString *arg1 = 0 ;
12876 wxString *arg2 = 0 ;
12877 wxString const &arg3_defvalue = wxPyEmptyString ;
12878 wxString *arg3 = (wxString *) &arg3_defvalue ;
12879 wxString result;
12880 bool temp1 = False ;
12881 bool temp2 = False ;
12882 bool temp3 = False ;
12883 PyObject * obj0 = 0 ;
12884 PyObject * obj1 = 0 ;
12885 PyObject * obj2 = 0 ;
12886 char *kwnames[] = {
12887 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12888 };
12889
12890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12891 {
12892 arg1 = wxString_in_helper(obj0);
12893 if (arg1 == NULL) SWIG_fail;
12894 temp1 = True;
12895 }
12896 {
12897 arg2 = wxString_in_helper(obj1);
12898 if (arg2 == NULL) SWIG_fail;
12899 temp2 = True;
12900 }
12901 if (obj2) {
12902 {
12903 arg3 = wxString_in_helper(obj2);
12904 if (arg3 == NULL) SWIG_fail;
12905 temp3 = True;
12906 }
12907 }
12908 {
12909 PyThreadState* __tstate = wxPyBeginAllowThreads();
12910 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12911
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 {
12916 #if wxUSE_UNICODE
12917 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12918 #else
12919 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12920 #endif
12921 }
12922 {
12923 if (temp1)
12924 delete arg1;
12925 }
12926 {
12927 if (temp2)
12928 delete arg2;
12929 }
12930 {
12931 if (temp3)
12932 delete arg3;
12933 }
12934 return resultobj;
12935 fail:
12936 {
12937 if (temp1)
12938 delete arg1;
12939 }
12940 {
12941 if (temp2)
12942 delete arg2;
12943 }
12944 {
12945 if (temp3)
12946 delete arg3;
12947 }
12948 return NULL;
12949 }
12950
12951
12952 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
12953 PyObject *obj;
12954 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12955 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
12956 Py_INCREF(obj);
12957 return Py_BuildValue((char *)"");
12958 }
12959 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
12960 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
12961 return 1;
12962 }
12963
12964
12965 static PyObject *_wrap_TheMimeTypesManager_get() {
12966 PyObject *pyobj;
12967
12968 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
12969 return pyobj;
12970 }
12971
12972
12973 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
12974 PyObject *resultobj;
12975 wxString *arg1 = 0 ;
12976 wxString *arg2 = 0 ;
12977 bool result;
12978 bool temp1 = False ;
12979 bool temp2 = False ;
12980 PyObject * obj0 = 0 ;
12981 PyObject * obj1 = 0 ;
12982 char *kwnames[] = {
12983 (char *) "mimeType",(char *) "wildcard", NULL
12984 };
12985
12986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
12987 {
12988 arg1 = wxString_in_helper(obj0);
12989 if (arg1 == NULL) SWIG_fail;
12990 temp1 = True;
12991 }
12992 {
12993 arg2 = wxString_in_helper(obj1);
12994 if (arg2 == NULL) SWIG_fail;
12995 temp2 = True;
12996 }
12997 {
12998 PyThreadState* __tstate = wxPyBeginAllowThreads();
12999 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13000
13001 wxPyEndAllowThreads(__tstate);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 {
13005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13006 }
13007 {
13008 if (temp1)
13009 delete arg1;
13010 }
13011 {
13012 if (temp2)
13013 delete arg2;
13014 }
13015 return resultobj;
13016 fail:
13017 {
13018 if (temp1)
13019 delete arg1;
13020 }
13021 {
13022 if (temp2)
13023 delete arg2;
13024 }
13025 return NULL;
13026 }
13027
13028
13029 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13030 PyObject *resultobj;
13031 wxMimeTypesManager *result;
13032 char *kwnames[] = {
13033 NULL
13034 };
13035
13036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13040
13041 wxPyEndAllowThreads(__tstate);
13042 if (PyErr_Occurred()) SWIG_fail;
13043 }
13044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13045 return resultobj;
13046 fail:
13047 return NULL;
13048 }
13049
13050
13051 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj;
13053 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13054 int arg2 = (int) wxMAILCAP_ALL ;
13055 wxString const &arg3_defvalue = wxPyEmptyString ;
13056 wxString *arg3 = (wxString *) &arg3_defvalue ;
13057 bool temp3 = False ;
13058 PyObject * obj0 = 0 ;
13059 PyObject * obj1 = 0 ;
13060 PyObject * obj2 = 0 ;
13061 char *kwnames[] = {
13062 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13063 };
13064
13065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13068 if (obj1) {
13069 arg2 = (int) SWIG_AsInt(obj1);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 if (obj2) {
13073 {
13074 arg3 = wxString_in_helper(obj2);
13075 if (arg3 == NULL) SWIG_fail;
13076 temp3 = True;
13077 }
13078 }
13079 {
13080 PyThreadState* __tstate = wxPyBeginAllowThreads();
13081 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13082
13083 wxPyEndAllowThreads(__tstate);
13084 if (PyErr_Occurred()) SWIG_fail;
13085 }
13086 Py_INCREF(Py_None); resultobj = Py_None;
13087 {
13088 if (temp3)
13089 delete arg3;
13090 }
13091 return resultobj;
13092 fail:
13093 {
13094 if (temp3)
13095 delete arg3;
13096 }
13097 return NULL;
13098 }
13099
13100
13101 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13102 PyObject *resultobj;
13103 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13104 PyObject * obj0 = 0 ;
13105 char *kwnames[] = {
13106 (char *) "self", NULL
13107 };
13108
13109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 (arg1)->ClearData();
13115
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 Py_INCREF(Py_None); resultobj = Py_None;
13120 return resultobj;
13121 fail:
13122 return NULL;
13123 }
13124
13125
13126 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13127 PyObject *resultobj;
13128 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13129 wxString *arg2 = 0 ;
13130 wxFileType *result;
13131 bool temp2 = False ;
13132 PyObject * obj0 = 0 ;
13133 PyObject * obj1 = 0 ;
13134 char *kwnames[] = {
13135 (char *) "self",(char *) "ext", NULL
13136 };
13137
13138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13141 {
13142 arg2 = wxString_in_helper(obj1);
13143 if (arg2 == NULL) SWIG_fail;
13144 temp2 = True;
13145 }
13146 {
13147 PyThreadState* __tstate = wxPyBeginAllowThreads();
13148 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13149
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13154 {
13155 if (temp2)
13156 delete arg2;
13157 }
13158 return resultobj;
13159 fail:
13160 {
13161 if (temp2)
13162 delete arg2;
13163 }
13164 return NULL;
13165 }
13166
13167
13168 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj;
13170 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13171 wxString *arg2 = 0 ;
13172 wxFileType *result;
13173 bool temp2 = False ;
13174 PyObject * obj0 = 0 ;
13175 PyObject * obj1 = 0 ;
13176 char *kwnames[] = {
13177 (char *) "self",(char *) "mimeType", NULL
13178 };
13179
13180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13183 {
13184 arg2 = wxString_in_helper(obj1);
13185 if (arg2 == NULL) SWIG_fail;
13186 temp2 = True;
13187 }
13188 {
13189 PyThreadState* __tstate = wxPyBeginAllowThreads();
13190 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13191
13192 wxPyEndAllowThreads(__tstate);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 }
13195 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13196 {
13197 if (temp2)
13198 delete arg2;
13199 }
13200 return resultobj;
13201 fail:
13202 {
13203 if (temp2)
13204 delete arg2;
13205 }
13206 return NULL;
13207 }
13208
13209
13210 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13211 PyObject *resultobj;
13212 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13213 wxString *arg2 = 0 ;
13214 bool arg3 = (bool) False ;
13215 bool result;
13216 bool temp2 = False ;
13217 PyObject * obj0 = 0 ;
13218 PyObject * obj1 = 0 ;
13219 PyObject * obj2 = 0 ;
13220 char *kwnames[] = {
13221 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13222 };
13223
13224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13227 {
13228 arg2 = wxString_in_helper(obj1);
13229 if (arg2 == NULL) SWIG_fail;
13230 temp2 = True;
13231 }
13232 if (obj2) {
13233 arg3 = (bool) SWIG_AsBool(obj2);
13234 if (PyErr_Occurred()) SWIG_fail;
13235 }
13236 {
13237 PyThreadState* __tstate = wxPyBeginAllowThreads();
13238 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13239
13240 wxPyEndAllowThreads(__tstate);
13241 if (PyErr_Occurred()) SWIG_fail;
13242 }
13243 {
13244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13245 }
13246 {
13247 if (temp2)
13248 delete arg2;
13249 }
13250 return resultobj;
13251 fail:
13252 {
13253 if (temp2)
13254 delete arg2;
13255 }
13256 return NULL;
13257 }
13258
13259
13260 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13261 PyObject *resultobj;
13262 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13263 wxString *arg2 = 0 ;
13264 bool result;
13265 bool temp2 = False ;
13266 PyObject * obj0 = 0 ;
13267 PyObject * obj1 = 0 ;
13268 char *kwnames[] = {
13269 (char *) "self",(char *) "filename", NULL
13270 };
13271
13272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13275 {
13276 arg2 = wxString_in_helper(obj1);
13277 if (arg2 == NULL) SWIG_fail;
13278 temp2 = True;
13279 }
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13283
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 {
13288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13289 }
13290 {
13291 if (temp2)
13292 delete arg2;
13293 }
13294 return resultobj;
13295 fail:
13296 {
13297 if (temp2)
13298 delete arg2;
13299 }
13300 return NULL;
13301 }
13302
13303
13304 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13305 PyObject *resultobj;
13306 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13307 PyObject *result;
13308 PyObject * obj0 = 0 ;
13309 char *kwnames[] = {
13310 (char *) "self", NULL
13311 };
13312
13313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13319
13320 wxPyEndAllowThreads(__tstate);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 }
13323 resultobj = result;
13324 return resultobj;
13325 fail:
13326 return NULL;
13327 }
13328
13329
13330 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13331 PyObject *resultobj;
13332 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13333 wxFileTypeInfo *arg2 = 0 ;
13334 PyObject * obj0 = 0 ;
13335 PyObject * obj1 = 0 ;
13336 char *kwnames[] = {
13337 (char *) "self",(char *) "ft", NULL
13338 };
13339
13340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13344 SWIG_POINTER_EXCEPTION | 0)) == -1)
13345 SWIG_fail;
13346 if (arg2 == NULL) {
13347 PyErr_SetString(PyExc_TypeError,"null reference");
13348 SWIG_fail;
13349 }
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13353
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 Py_INCREF(Py_None); resultobj = Py_None;
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13365 PyObject *resultobj;
13366 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13367 wxFileTypeInfo *arg2 = 0 ;
13368 wxFileType *result;
13369 PyObject * obj0 = 0 ;
13370 PyObject * obj1 = 0 ;
13371 char *kwnames[] = {
13372 (char *) "self",(char *) "ftInfo", NULL
13373 };
13374
13375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13379 SWIG_POINTER_EXCEPTION | 0)) == -1)
13380 SWIG_fail;
13381 if (arg2 == NULL) {
13382 PyErr_SetString(PyExc_TypeError,"null reference");
13383 SWIG_fail;
13384 }
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13388
13389 wxPyEndAllowThreads(__tstate);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 }
13392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13393 return resultobj;
13394 fail:
13395 return NULL;
13396 }
13397
13398
13399 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13400 PyObject *resultobj;
13401 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13402 wxFileType *arg2 = (wxFileType *) 0 ;
13403 bool result;
13404 PyObject * obj0 = 0 ;
13405 PyObject * obj1 = 0 ;
13406 char *kwnames[] = {
13407 (char *) "self",(char *) "ft", NULL
13408 };
13409
13410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13415 {
13416 PyThreadState* __tstate = wxPyBeginAllowThreads();
13417 result = (bool)(arg1)->Unassociate(arg2);
13418
13419 wxPyEndAllowThreads(__tstate);
13420 if (PyErr_Occurred()) SWIG_fail;
13421 }
13422 {
13423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13424 }
13425 return resultobj;
13426 fail:
13427 return NULL;
13428 }
13429
13430
13431 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13432 PyObject *resultobj;
13433 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13434 PyObject * obj0 = 0 ;
13435 char *kwnames[] = {
13436 (char *) "self", NULL
13437 };
13438
13439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 delete arg1;
13445
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 Py_INCREF(Py_None); resultobj = Py_None;
13450 return resultobj;
13451 fail:
13452 return NULL;
13453 }
13454
13455
13456 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13457 PyObject *obj;
13458 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13459 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13460 Py_INCREF(obj);
13461 return Py_BuildValue((char *)"");
13462 }
13463 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13464 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13465 return 1;
13466 }
13467
13468
13469 static PyObject *_wrap_ART_TOOLBAR_get() {
13470 PyObject *pyobj;
13471
13472 {
13473 #if wxUSE_UNICODE
13474 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13475 #else
13476 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13477 #endif
13478 }
13479 return pyobj;
13480 }
13481
13482
13483 static int _wrap_ART_MENU_set(PyObject *_val) {
13484 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13485 return 1;
13486 }
13487
13488
13489 static PyObject *_wrap_ART_MENU_get() {
13490 PyObject *pyobj;
13491
13492 {
13493 #if wxUSE_UNICODE
13494 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13495 #else
13496 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13497 #endif
13498 }
13499 return pyobj;
13500 }
13501
13502
13503 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13504 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13505 return 1;
13506 }
13507
13508
13509 static PyObject *_wrap_ART_FRAME_ICON_get() {
13510 PyObject *pyobj;
13511
13512 {
13513 #if wxUSE_UNICODE
13514 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13515 #else
13516 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13517 #endif
13518 }
13519 return pyobj;
13520 }
13521
13522
13523 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13524 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13525 return 1;
13526 }
13527
13528
13529 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13530 PyObject *pyobj;
13531
13532 {
13533 #if wxUSE_UNICODE
13534 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13535 #else
13536 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13537 #endif
13538 }
13539 return pyobj;
13540 }
13541
13542
13543 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13544 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13545 return 1;
13546 }
13547
13548
13549 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13550 PyObject *pyobj;
13551
13552 {
13553 #if wxUSE_UNICODE
13554 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13555 #else
13556 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13557 #endif
13558 }
13559 return pyobj;
13560 }
13561
13562
13563 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13564 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13565 return 1;
13566 }
13567
13568
13569 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13570 PyObject *pyobj;
13571
13572 {
13573 #if wxUSE_UNICODE
13574 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13575 #else
13576 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13577 #endif
13578 }
13579 return pyobj;
13580 }
13581
13582
13583 static int _wrap_ART_OTHER_set(PyObject *_val) {
13584 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13585 return 1;
13586 }
13587
13588
13589 static PyObject *_wrap_ART_OTHER_get() {
13590 PyObject *pyobj;
13591
13592 {
13593 #if wxUSE_UNICODE
13594 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13595 #else
13596 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13597 #endif
13598 }
13599 return pyobj;
13600 }
13601
13602
13603 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13604 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13605 return 1;
13606 }
13607
13608
13609 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13610 PyObject *pyobj;
13611
13612 {
13613 #if wxUSE_UNICODE
13614 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13615 #else
13616 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13617 #endif
13618 }
13619 return pyobj;
13620 }
13621
13622
13623 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13624 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13625 return 1;
13626 }
13627
13628
13629 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13630 PyObject *pyobj;
13631
13632 {
13633 #if wxUSE_UNICODE
13634 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13635 #else
13636 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13637 #endif
13638 }
13639 return pyobj;
13640 }
13641
13642
13643 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13644 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13645 return 1;
13646 }
13647
13648
13649 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13650 PyObject *pyobj;
13651
13652 {
13653 #if wxUSE_UNICODE
13654 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13655 #else
13656 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13657 #endif
13658 }
13659 return pyobj;
13660 }
13661
13662
13663 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13664 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13665 return 1;
13666 }
13667
13668
13669 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13670 PyObject *pyobj;
13671
13672 {
13673 #if wxUSE_UNICODE
13674 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13675 #else
13676 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13677 #endif
13678 }
13679 return pyobj;
13680 }
13681
13682
13683 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13684 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13685 return 1;
13686 }
13687
13688
13689 static PyObject *_wrap_ART_HELP_BOOK_get() {
13690 PyObject *pyobj;
13691
13692 {
13693 #if wxUSE_UNICODE
13694 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13695 #else
13696 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13697 #endif
13698 }
13699 return pyobj;
13700 }
13701
13702
13703 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13704 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13705 return 1;
13706 }
13707
13708
13709 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13710 PyObject *pyobj;
13711
13712 {
13713 #if wxUSE_UNICODE
13714 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13715 #else
13716 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13717 #endif
13718 }
13719 return pyobj;
13720 }
13721
13722
13723 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13724 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13725 return 1;
13726 }
13727
13728
13729 static PyObject *_wrap_ART_HELP_PAGE_get() {
13730 PyObject *pyobj;
13731
13732 {
13733 #if wxUSE_UNICODE
13734 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13735 #else
13736 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13737 #endif
13738 }
13739 return pyobj;
13740 }
13741
13742
13743 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13744 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13745 return 1;
13746 }
13747
13748
13749 static PyObject *_wrap_ART_GO_BACK_get() {
13750 PyObject *pyobj;
13751
13752 {
13753 #if wxUSE_UNICODE
13754 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13755 #else
13756 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13757 #endif
13758 }
13759 return pyobj;
13760 }
13761
13762
13763 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13764 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13765 return 1;
13766 }
13767
13768
13769 static PyObject *_wrap_ART_GO_FORWARD_get() {
13770 PyObject *pyobj;
13771
13772 {
13773 #if wxUSE_UNICODE
13774 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13775 #else
13776 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13777 #endif
13778 }
13779 return pyobj;
13780 }
13781
13782
13783 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13784 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13785 return 1;
13786 }
13787
13788
13789 static PyObject *_wrap_ART_GO_UP_get() {
13790 PyObject *pyobj;
13791
13792 {
13793 #if wxUSE_UNICODE
13794 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13795 #else
13796 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13797 #endif
13798 }
13799 return pyobj;
13800 }
13801
13802
13803 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13804 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13805 return 1;
13806 }
13807
13808
13809 static PyObject *_wrap_ART_GO_DOWN_get() {
13810 PyObject *pyobj;
13811
13812 {
13813 #if wxUSE_UNICODE
13814 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13815 #else
13816 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13817 #endif
13818 }
13819 return pyobj;
13820 }
13821
13822
13823 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13824 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13825 return 1;
13826 }
13827
13828
13829 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13830 PyObject *pyobj;
13831
13832 {
13833 #if wxUSE_UNICODE
13834 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13835 #else
13836 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13837 #endif
13838 }
13839 return pyobj;
13840 }
13841
13842
13843 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13844 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13845 return 1;
13846 }
13847
13848
13849 static PyObject *_wrap_ART_GO_HOME_get() {
13850 PyObject *pyobj;
13851
13852 {
13853 #if wxUSE_UNICODE
13854 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13855 #else
13856 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13857 #endif
13858 }
13859 return pyobj;
13860 }
13861
13862
13863 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13864 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13865 return 1;
13866 }
13867
13868
13869 static PyObject *_wrap_ART_FILE_OPEN_get() {
13870 PyObject *pyobj;
13871
13872 {
13873 #if wxUSE_UNICODE
13874 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13875 #else
13876 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13877 #endif
13878 }
13879 return pyobj;
13880 }
13881
13882
13883 static int _wrap_ART_PRINT_set(PyObject *_val) {
13884 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13885 return 1;
13886 }
13887
13888
13889 static PyObject *_wrap_ART_PRINT_get() {
13890 PyObject *pyobj;
13891
13892 {
13893 #if wxUSE_UNICODE
13894 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13895 #else
13896 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13897 #endif
13898 }
13899 return pyobj;
13900 }
13901
13902
13903 static int _wrap_ART_HELP_set(PyObject *_val) {
13904 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13905 return 1;
13906 }
13907
13908
13909 static PyObject *_wrap_ART_HELP_get() {
13910 PyObject *pyobj;
13911
13912 {
13913 #if wxUSE_UNICODE
13914 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13915 #else
13916 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13917 #endif
13918 }
13919 return pyobj;
13920 }
13921
13922
13923 static int _wrap_ART_TIP_set(PyObject *_val) {
13924 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13925 return 1;
13926 }
13927
13928
13929 static PyObject *_wrap_ART_TIP_get() {
13930 PyObject *pyobj;
13931
13932 {
13933 #if wxUSE_UNICODE
13934 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13935 #else
13936 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13937 #endif
13938 }
13939 return pyobj;
13940 }
13941
13942
13943 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
13944 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13945 return 1;
13946 }
13947
13948
13949 static PyObject *_wrap_ART_REPORT_VIEW_get() {
13950 PyObject *pyobj;
13951
13952 {
13953 #if wxUSE_UNICODE
13954 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13955 #else
13956 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13957 #endif
13958 }
13959 return pyobj;
13960 }
13961
13962
13963 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
13964 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
13965 return 1;
13966 }
13967
13968
13969 static PyObject *_wrap_ART_LIST_VIEW_get() {
13970 PyObject *pyobj;
13971
13972 {
13973 #if wxUSE_UNICODE
13974 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13975 #else
13976 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13977 #endif
13978 }
13979 return pyobj;
13980 }
13981
13982
13983 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
13984 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
13985 return 1;
13986 }
13987
13988
13989 static PyObject *_wrap_ART_NEW_DIR_get() {
13990 PyObject *pyobj;
13991
13992 {
13993 #if wxUSE_UNICODE
13994 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13995 #else
13996 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13997 #endif
13998 }
13999 return pyobj;
14000 }
14001
14002
14003 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14004 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14005 return 1;
14006 }
14007
14008
14009 static PyObject *_wrap_ART_FOLDER_get() {
14010 PyObject *pyobj;
14011
14012 {
14013 #if wxUSE_UNICODE
14014 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14015 #else
14016 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14017 #endif
14018 }
14019 return pyobj;
14020 }
14021
14022
14023 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14024 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14025 return 1;
14026 }
14027
14028
14029 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14030 PyObject *pyobj;
14031
14032 {
14033 #if wxUSE_UNICODE
14034 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14035 #else
14036 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14037 #endif
14038 }
14039 return pyobj;
14040 }
14041
14042
14043 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14044 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14045 return 1;
14046 }
14047
14048
14049 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14050 PyObject *pyobj;
14051
14052 {
14053 #if wxUSE_UNICODE
14054 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14055 #else
14056 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14057 #endif
14058 }
14059 return pyobj;
14060 }
14061
14062
14063 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14064 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14065 return 1;
14066 }
14067
14068
14069 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14070 PyObject *pyobj;
14071
14072 {
14073 #if wxUSE_UNICODE
14074 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14075 #else
14076 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14077 #endif
14078 }
14079 return pyobj;
14080 }
14081
14082
14083 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14084 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14085 return 1;
14086 }
14087
14088
14089 static PyObject *_wrap_ART_TICK_MARK_get() {
14090 PyObject *pyobj;
14091
14092 {
14093 #if wxUSE_UNICODE
14094 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14095 #else
14096 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14097 #endif
14098 }
14099 return pyobj;
14100 }
14101
14102
14103 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14104 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14105 return 1;
14106 }
14107
14108
14109 static PyObject *_wrap_ART_CROSS_MARK_get() {
14110 PyObject *pyobj;
14111
14112 {
14113 #if wxUSE_UNICODE
14114 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14115 #else
14116 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14117 #endif
14118 }
14119 return pyobj;
14120 }
14121
14122
14123 static int _wrap_ART_ERROR_set(PyObject *_val) {
14124 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14125 return 1;
14126 }
14127
14128
14129 static PyObject *_wrap_ART_ERROR_get() {
14130 PyObject *pyobj;
14131
14132 {
14133 #if wxUSE_UNICODE
14134 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14135 #else
14136 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14137 #endif
14138 }
14139 return pyobj;
14140 }
14141
14142
14143 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14144 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14145 return 1;
14146 }
14147
14148
14149 static PyObject *_wrap_ART_QUESTION_get() {
14150 PyObject *pyobj;
14151
14152 {
14153 #if wxUSE_UNICODE
14154 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14155 #else
14156 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14157 #endif
14158 }
14159 return pyobj;
14160 }
14161
14162
14163 static int _wrap_ART_WARNING_set(PyObject *_val) {
14164 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14165 return 1;
14166 }
14167
14168
14169 static PyObject *_wrap_ART_WARNING_get() {
14170 PyObject *pyobj;
14171
14172 {
14173 #if wxUSE_UNICODE
14174 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14175 #else
14176 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14177 #endif
14178 }
14179 return pyobj;
14180 }
14181
14182
14183 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14184 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14185 return 1;
14186 }
14187
14188
14189 static PyObject *_wrap_ART_INFORMATION_get() {
14190 PyObject *pyobj;
14191
14192 {
14193 #if wxUSE_UNICODE
14194 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14195 #else
14196 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14197 #endif
14198 }
14199 return pyobj;
14200 }
14201
14202
14203 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14204 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14205 return 1;
14206 }
14207
14208
14209 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14210 PyObject *pyobj;
14211
14212 {
14213 #if wxUSE_UNICODE
14214 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14215 #else
14216 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14217 #endif
14218 }
14219 return pyobj;
14220 }
14221
14222
14223 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14224 PyObject *resultobj;
14225 wxPyArtProvider *result;
14226 char *kwnames[] = {
14227 NULL
14228 };
14229
14230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (wxPyArtProvider *)new wxPyArtProvider();
14234
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14239 return resultobj;
14240 fail:
14241 return NULL;
14242 }
14243
14244
14245 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14246 PyObject *resultobj;
14247 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14248 PyObject *arg2 = (PyObject *) 0 ;
14249 PyObject *arg3 = (PyObject *) 0 ;
14250 PyObject * obj0 = 0 ;
14251 PyObject * obj1 = 0 ;
14252 PyObject * obj2 = 0 ;
14253 char *kwnames[] = {
14254 (char *) "self",(char *) "self",(char *) "_class", NULL
14255 };
14256
14257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14260 arg2 = obj1;
14261 arg3 = obj2;
14262 {
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 (arg1)->_setCallbackInfo(arg2,arg3);
14265
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 Py_INCREF(Py_None); resultobj = Py_None;
14270 return resultobj;
14271 fail:
14272 return NULL;
14273 }
14274
14275
14276 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14277 PyObject *resultobj;
14278 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14279 PyObject * obj0 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "provider", NULL
14282 };
14283
14284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14287 {
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 wxPyArtProvider::PushProvider(arg1);
14290
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 Py_INCREF(Py_None); resultobj = Py_None;
14295 return resultobj;
14296 fail:
14297 return NULL;
14298 }
14299
14300
14301 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj;
14303 bool result;
14304 char *kwnames[] = {
14305 NULL
14306 };
14307
14308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14309 {
14310 PyThreadState* __tstate = wxPyBeginAllowThreads();
14311 result = (bool)wxPyArtProvider::PopProvider();
14312
14313 wxPyEndAllowThreads(__tstate);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 }
14316 {
14317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14318 }
14319 return resultobj;
14320 fail:
14321 return NULL;
14322 }
14323
14324
14325 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14326 PyObject *resultobj;
14327 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14328 bool result;
14329 PyObject * obj0 = 0 ;
14330 char *kwnames[] = {
14331 (char *) "provider", NULL
14332 };
14333
14334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 {
14345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14346 }
14347 return resultobj;
14348 fail:
14349 return NULL;
14350 }
14351
14352
14353 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14354 PyObject *resultobj;
14355 wxString *arg1 = 0 ;
14356 wxString const &arg2_defvalue = wxPyART_OTHER ;
14357 wxString *arg2 = (wxString *) &arg2_defvalue ;
14358 wxSize const &arg3_defvalue = wxDefaultSize ;
14359 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14360 wxBitmap result;
14361 bool temp1 = False ;
14362 bool temp2 = False ;
14363 wxSize temp3 ;
14364 PyObject * obj0 = 0 ;
14365 PyObject * obj1 = 0 ;
14366 PyObject * obj2 = 0 ;
14367 char *kwnames[] = {
14368 (char *) "id",(char *) "client",(char *) "size", NULL
14369 };
14370
14371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14372 {
14373 arg1 = wxString_in_helper(obj0);
14374 if (arg1 == NULL) SWIG_fail;
14375 temp1 = True;
14376 }
14377 if (obj1) {
14378 {
14379 arg2 = wxString_in_helper(obj1);
14380 if (arg2 == NULL) SWIG_fail;
14381 temp2 = True;
14382 }
14383 }
14384 if (obj2) {
14385 {
14386 arg3 = &temp3;
14387 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14388 }
14389 }
14390 {
14391 PyThreadState* __tstate = wxPyBeginAllowThreads();
14392 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14393
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 {
14398 wxBitmap * resultptr;
14399 resultptr = new wxBitmap((wxBitmap &) result);
14400 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14401 }
14402 {
14403 if (temp1)
14404 delete arg1;
14405 }
14406 {
14407 if (temp2)
14408 delete arg2;
14409 }
14410 return resultobj;
14411 fail:
14412 {
14413 if (temp1)
14414 delete arg1;
14415 }
14416 {
14417 if (temp2)
14418 delete arg2;
14419 }
14420 return NULL;
14421 }
14422
14423
14424 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14425 PyObject *resultobj;
14426 wxString *arg1 = 0 ;
14427 wxString const &arg2_defvalue = wxPyART_OTHER ;
14428 wxString *arg2 = (wxString *) &arg2_defvalue ;
14429 wxSize const &arg3_defvalue = wxDefaultSize ;
14430 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14431 wxIcon result;
14432 bool temp1 = False ;
14433 bool temp2 = False ;
14434 wxSize temp3 ;
14435 PyObject * obj0 = 0 ;
14436 PyObject * obj1 = 0 ;
14437 PyObject * obj2 = 0 ;
14438 char *kwnames[] = {
14439 (char *) "id",(char *) "client",(char *) "size", NULL
14440 };
14441
14442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14443 {
14444 arg1 = wxString_in_helper(obj0);
14445 if (arg1 == NULL) SWIG_fail;
14446 temp1 = True;
14447 }
14448 if (obj1) {
14449 {
14450 arg2 = wxString_in_helper(obj1);
14451 if (arg2 == NULL) SWIG_fail;
14452 temp2 = True;
14453 }
14454 }
14455 if (obj2) {
14456 {
14457 arg3 = &temp3;
14458 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14459 }
14460 }
14461 {
14462 PyThreadState* __tstate = wxPyBeginAllowThreads();
14463 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14464
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 {
14469 wxIcon * resultptr;
14470 resultptr = new wxIcon((wxIcon &) result);
14471 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14472 }
14473 {
14474 if (temp1)
14475 delete arg1;
14476 }
14477 {
14478 if (temp2)
14479 delete arg2;
14480 }
14481 return resultobj;
14482 fail:
14483 {
14484 if (temp1)
14485 delete arg1;
14486 }
14487 {
14488 if (temp2)
14489 delete arg2;
14490 }
14491 return NULL;
14492 }
14493
14494
14495 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14496 PyObject *resultobj;
14497 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14498 PyObject * obj0 = 0 ;
14499 char *kwnames[] = {
14500 (char *) "self", NULL
14501 };
14502
14503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14506 {
14507 PyThreadState* __tstate = wxPyBeginAllowThreads();
14508 wxPyArtProvider_Destroy(arg1);
14509
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 Py_INCREF(Py_None); resultobj = Py_None;
14514 return resultobj;
14515 fail:
14516 return NULL;
14517 }
14518
14519
14520 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14521 PyObject *obj;
14522 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14523 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14524 Py_INCREF(obj);
14525 return Py_BuildValue((char *)"");
14526 }
14527 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj;
14529 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14530 PyObject * obj0 = 0 ;
14531 char *kwnames[] = {
14532 (char *) "self", NULL
14533 };
14534
14535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 delete arg1;
14541
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 Py_INCREF(Py_None); resultobj = Py_None;
14546 return resultobj;
14547 fail:
14548 return NULL;
14549 }
14550
14551
14552 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14553 PyObject *resultobj;
14554 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14555 wxConfigBase *result;
14556 PyObject * obj0 = 0 ;
14557 char *kwnames[] = {
14558 (char *) "config", NULL
14559 };
14560
14561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14564 {
14565 PyThreadState* __tstate = wxPyBeginAllowThreads();
14566 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14567
14568 wxPyEndAllowThreads(__tstate);
14569 if (PyErr_Occurred()) SWIG_fail;
14570 }
14571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14572 return resultobj;
14573 fail:
14574 return NULL;
14575 }
14576
14577
14578 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj;
14580 bool arg1 = (bool) True ;
14581 wxConfigBase *result;
14582 PyObject * obj0 = 0 ;
14583 char *kwnames[] = {
14584 (char *) "createOnDemand", NULL
14585 };
14586
14587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14588 if (obj0) {
14589 arg1 = (bool) SWIG_AsBool(obj0);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14595
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14600 return resultobj;
14601 fail:
14602 return NULL;
14603 }
14604
14605
14606 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14607 PyObject *resultobj;
14608 wxConfigBase *result;
14609 char *kwnames[] = {
14610 NULL
14611 };
14612
14613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14614 {
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 result = (wxConfigBase *)wxConfigBase::Create();
14617
14618 wxPyEndAllowThreads(__tstate);
14619 if (PyErr_Occurred()) SWIG_fail;
14620 }
14621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14622 return resultobj;
14623 fail:
14624 return NULL;
14625 }
14626
14627
14628 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14629 PyObject *resultobj;
14630 char *kwnames[] = {
14631 NULL
14632 };
14633
14634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14635 {
14636 PyThreadState* __tstate = wxPyBeginAllowThreads();
14637 wxConfigBase::DontCreateOnDemand();
14638
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 Py_INCREF(Py_None); resultobj = Py_None;
14643 return resultobj;
14644 fail:
14645 return NULL;
14646 }
14647
14648
14649 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14650 PyObject *resultobj;
14651 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14652 wxString *arg2 = 0 ;
14653 bool temp2 = False ;
14654 PyObject * obj0 = 0 ;
14655 PyObject * obj1 = 0 ;
14656 char *kwnames[] = {
14657 (char *) "self",(char *) "path", NULL
14658 };
14659
14660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14663 {
14664 arg2 = wxString_in_helper(obj1);
14665 if (arg2 == NULL) SWIG_fail;
14666 temp2 = True;
14667 }
14668 {
14669 PyThreadState* __tstate = wxPyBeginAllowThreads();
14670 (arg1)->SetPath((wxString const &)*arg2);
14671
14672 wxPyEndAllowThreads(__tstate);
14673 if (PyErr_Occurred()) SWIG_fail;
14674 }
14675 Py_INCREF(Py_None); resultobj = Py_None;
14676 {
14677 if (temp2)
14678 delete arg2;
14679 }
14680 return resultobj;
14681 fail:
14682 {
14683 if (temp2)
14684 delete arg2;
14685 }
14686 return NULL;
14687 }
14688
14689
14690 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj;
14692 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14693 wxString *result;
14694 PyObject * obj0 = 0 ;
14695 char *kwnames[] = {
14696 (char *) "self", NULL
14697 };
14698
14699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14702 {
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 {
14705 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14706 result = (wxString *) &_result_ref;
14707 }
14708
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 {
14713 #if wxUSE_UNICODE
14714 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14715 #else
14716 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14717 #endif
14718 }
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14728 PyObject *result;
14729 PyObject * obj0 = 0 ;
14730 char *kwnames[] = {
14731 (char *) "self", NULL
14732 };
14733
14734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14737 {
14738 PyThreadState* __tstate = wxPyBeginAllowThreads();
14739 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14740
14741 wxPyEndAllowThreads(__tstate);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 }
14744 resultobj = result;
14745 return resultobj;
14746 fail:
14747 return NULL;
14748 }
14749
14750
14751 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14752 PyObject *resultobj;
14753 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14754 long arg2 ;
14755 PyObject *result;
14756 PyObject * obj0 = 0 ;
14757 PyObject * obj1 = 0 ;
14758 char *kwnames[] = {
14759 (char *) "self",(char *) "index", NULL
14760 };
14761
14762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14765 arg2 = (long) SWIG_AsLong(obj1);
14766 if (PyErr_Occurred()) SWIG_fail;
14767 {
14768 PyThreadState* __tstate = wxPyBeginAllowThreads();
14769 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14770
14771 wxPyEndAllowThreads(__tstate);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 }
14774 resultobj = result;
14775 return resultobj;
14776 fail:
14777 return NULL;
14778 }
14779
14780
14781 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14782 PyObject *resultobj;
14783 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14784 PyObject *result;
14785 PyObject * obj0 = 0 ;
14786 char *kwnames[] = {
14787 (char *) "self", NULL
14788 };
14789
14790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14796
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 resultobj = result;
14801 return resultobj;
14802 fail:
14803 return NULL;
14804 }
14805
14806
14807 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14808 PyObject *resultobj;
14809 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14810 long arg2 ;
14811 PyObject *result;
14812 PyObject * obj0 = 0 ;
14813 PyObject * obj1 = 0 ;
14814 char *kwnames[] = {
14815 (char *) "self",(char *) "index", NULL
14816 };
14817
14818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14821 arg2 = (long) SWIG_AsLong(obj1);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 {
14824 PyThreadState* __tstate = wxPyBeginAllowThreads();
14825 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14826
14827 wxPyEndAllowThreads(__tstate);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 resultobj = result;
14831 return resultobj;
14832 fail:
14833 return NULL;
14834 }
14835
14836
14837 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14838 PyObject *resultobj;
14839 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14840 bool arg2 = (bool) False ;
14841 size_t result;
14842 PyObject * obj0 = 0 ;
14843 PyObject * obj1 = 0 ;
14844 char *kwnames[] = {
14845 (char *) "self",(char *) "recursive", NULL
14846 };
14847
14848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14851 if (obj1) {
14852 arg2 = (bool) SWIG_AsBool(obj1);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14858
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14870 PyObject *resultobj;
14871 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14872 bool arg2 = (bool) False ;
14873 size_t result;
14874 PyObject * obj0 = 0 ;
14875 PyObject * obj1 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "self",(char *) "recursive", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14883 if (obj1) {
14884 arg2 = (bool) SWIG_AsBool(obj1);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14890
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14895 return resultobj;
14896 fail:
14897 return NULL;
14898 }
14899
14900
14901 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14902 PyObject *resultobj;
14903 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14904 wxString *arg2 = 0 ;
14905 bool result;
14906 bool temp2 = False ;
14907 PyObject * obj0 = 0 ;
14908 PyObject * obj1 = 0 ;
14909 char *kwnames[] = {
14910 (char *) "self",(char *) "name", NULL
14911 };
14912
14913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14916 {
14917 arg2 = wxString_in_helper(obj1);
14918 if (arg2 == NULL) SWIG_fail;
14919 temp2 = True;
14920 }
14921 {
14922 PyThreadState* __tstate = wxPyBeginAllowThreads();
14923 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14924
14925 wxPyEndAllowThreads(__tstate);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 }
14928 {
14929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14930 }
14931 {
14932 if (temp2)
14933 delete arg2;
14934 }
14935 return resultobj;
14936 fail:
14937 {
14938 if (temp2)
14939 delete arg2;
14940 }
14941 return NULL;
14942 }
14943
14944
14945 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14948 wxString *arg2 = 0 ;
14949 bool result;
14950 bool temp2 = False ;
14951 PyObject * obj0 = 0 ;
14952 PyObject * obj1 = 0 ;
14953 char *kwnames[] = {
14954 (char *) "self",(char *) "name", NULL
14955 };
14956
14957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
14958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14960 {
14961 arg2 = wxString_in_helper(obj1);
14962 if (arg2 == NULL) SWIG_fail;
14963 temp2 = True;
14964 }
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
14968
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 {
14973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14974 }
14975 {
14976 if (temp2)
14977 delete arg2;
14978 }
14979 return resultobj;
14980 fail:
14981 {
14982 if (temp2)
14983 delete arg2;
14984 }
14985 return NULL;
14986 }
14987
14988
14989 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj;
14991 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14992 wxString *arg2 = 0 ;
14993 bool result;
14994 bool temp2 = False ;
14995 PyObject * obj0 = 0 ;
14996 PyObject * obj1 = 0 ;
14997 char *kwnames[] = {
14998 (char *) "self",(char *) "name", NULL
14999 };
15000
15001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15004 {
15005 arg2 = wxString_in_helper(obj1);
15006 if (arg2 == NULL) SWIG_fail;
15007 temp2 = True;
15008 }
15009 {
15010 PyThreadState* __tstate = wxPyBeginAllowThreads();
15011 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15012
15013 wxPyEndAllowThreads(__tstate);
15014 if (PyErr_Occurred()) SWIG_fail;
15015 }
15016 {
15017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15018 }
15019 {
15020 if (temp2)
15021 delete arg2;
15022 }
15023 return resultobj;
15024 fail:
15025 {
15026 if (temp2)
15027 delete arg2;
15028 }
15029 return NULL;
15030 }
15031
15032
15033 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15034 PyObject *resultobj;
15035 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15036 wxString *arg2 = 0 ;
15037 int result;
15038 bool temp2 = False ;
15039 PyObject * obj0 = 0 ;
15040 PyObject * obj1 = 0 ;
15041 char *kwnames[] = {
15042 (char *) "self",(char *) "name", NULL
15043 };
15044
15045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15048 {
15049 arg2 = wxString_in_helper(obj1);
15050 if (arg2 == NULL) SWIG_fail;
15051 temp2 = True;
15052 }
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 resultobj = SWIG_FromInt((int)result);
15061 {
15062 if (temp2)
15063 delete arg2;
15064 }
15065 return resultobj;
15066 fail:
15067 {
15068 if (temp2)
15069 delete arg2;
15070 }
15071 return NULL;
15072 }
15073
15074
15075 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj;
15077 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15078 wxString *arg2 = 0 ;
15079 wxString const &arg3_defvalue = wxPyEmptyString ;
15080 wxString *arg3 = (wxString *) &arg3_defvalue ;
15081 wxString result;
15082 bool temp2 = False ;
15083 bool temp3 = False ;
15084 PyObject * obj0 = 0 ;
15085 PyObject * obj1 = 0 ;
15086 PyObject * obj2 = 0 ;
15087 char *kwnames[] = {
15088 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15089 };
15090
15091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15094 {
15095 arg2 = wxString_in_helper(obj1);
15096 if (arg2 == NULL) SWIG_fail;
15097 temp2 = True;
15098 }
15099 if (obj2) {
15100 {
15101 arg3 = wxString_in_helper(obj2);
15102 if (arg3 == NULL) SWIG_fail;
15103 temp3 = True;
15104 }
15105 }
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15109
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 {
15114 #if wxUSE_UNICODE
15115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15116 #else
15117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15118 #endif
15119 }
15120 {
15121 if (temp2)
15122 delete arg2;
15123 }
15124 {
15125 if (temp3)
15126 delete arg3;
15127 }
15128 return resultobj;
15129 fail:
15130 {
15131 if (temp2)
15132 delete arg2;
15133 }
15134 {
15135 if (temp3)
15136 delete arg3;
15137 }
15138 return NULL;
15139 }
15140
15141
15142 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15143 PyObject *resultobj;
15144 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15145 wxString *arg2 = 0 ;
15146 long arg3 = (long) 0 ;
15147 long result;
15148 bool temp2 = False ;
15149 PyObject * obj0 = 0 ;
15150 PyObject * obj1 = 0 ;
15151 PyObject * obj2 = 0 ;
15152 char *kwnames[] = {
15153 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15154 };
15155
15156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15159 {
15160 arg2 = wxString_in_helper(obj1);
15161 if (arg2 == NULL) SWIG_fail;
15162 temp2 = True;
15163 }
15164 if (obj2) {
15165 arg3 = (long) SWIG_AsLong(obj2);
15166 if (PyErr_Occurred()) SWIG_fail;
15167 }
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15171
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 resultobj = SWIG_FromLong((long)result);
15176 {
15177 if (temp2)
15178 delete arg2;
15179 }
15180 return resultobj;
15181 fail:
15182 {
15183 if (temp2)
15184 delete arg2;
15185 }
15186 return NULL;
15187 }
15188
15189
15190 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15191 PyObject *resultobj;
15192 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15193 wxString *arg2 = 0 ;
15194 double arg3 = (double) 0.0 ;
15195 double result;
15196 bool temp2 = False ;
15197 PyObject * obj0 = 0 ;
15198 PyObject * obj1 = 0 ;
15199 PyObject * obj2 = 0 ;
15200 char *kwnames[] = {
15201 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15202 };
15203
15204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15207 {
15208 arg2 = wxString_in_helper(obj1);
15209 if (arg2 == NULL) SWIG_fail;
15210 temp2 = True;
15211 }
15212 if (obj2) {
15213 arg3 = (double) SWIG_AsDouble(obj2);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15219
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 resultobj = SWIG_FromDouble((double)result);
15224 {
15225 if (temp2)
15226 delete arg2;
15227 }
15228 return resultobj;
15229 fail:
15230 {
15231 if (temp2)
15232 delete arg2;
15233 }
15234 return NULL;
15235 }
15236
15237
15238 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15239 PyObject *resultobj;
15240 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15241 wxString *arg2 = 0 ;
15242 bool arg3 = (bool) False ;
15243 bool result;
15244 bool temp2 = False ;
15245 PyObject * obj0 = 0 ;
15246 PyObject * obj1 = 0 ;
15247 PyObject * obj2 = 0 ;
15248 char *kwnames[] = {
15249 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15250 };
15251
15252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15255 {
15256 arg2 = wxString_in_helper(obj1);
15257 if (arg2 == NULL) SWIG_fail;
15258 temp2 = True;
15259 }
15260 if (obj2) {
15261 arg3 = (bool) SWIG_AsBool(obj2);
15262 if (PyErr_Occurred()) SWIG_fail;
15263 }
15264 {
15265 PyThreadState* __tstate = wxPyBeginAllowThreads();
15266 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15267
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
15271 {
15272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15273 }
15274 {
15275 if (temp2)
15276 delete arg2;
15277 }
15278 return resultobj;
15279 fail:
15280 {
15281 if (temp2)
15282 delete arg2;
15283 }
15284 return NULL;
15285 }
15286
15287
15288 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15289 PyObject *resultobj;
15290 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15291 wxString *arg2 = 0 ;
15292 wxString *arg3 = 0 ;
15293 bool result;
15294 bool temp2 = False ;
15295 bool temp3 = False ;
15296 PyObject * obj0 = 0 ;
15297 PyObject * obj1 = 0 ;
15298 PyObject * obj2 = 0 ;
15299 char *kwnames[] = {
15300 (char *) "self",(char *) "key",(char *) "value", NULL
15301 };
15302
15303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15306 {
15307 arg2 = wxString_in_helper(obj1);
15308 if (arg2 == NULL) SWIG_fail;
15309 temp2 = True;
15310 }
15311 {
15312 arg3 = wxString_in_helper(obj2);
15313 if (arg3 == NULL) SWIG_fail;
15314 temp3 = True;
15315 }
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15319
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 {
15324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15325 }
15326 {
15327 if (temp2)
15328 delete arg2;
15329 }
15330 {
15331 if (temp3)
15332 delete arg3;
15333 }
15334 return resultobj;
15335 fail:
15336 {
15337 if (temp2)
15338 delete arg2;
15339 }
15340 {
15341 if (temp3)
15342 delete arg3;
15343 }
15344 return NULL;
15345 }
15346
15347
15348 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15349 PyObject *resultobj;
15350 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15351 wxString *arg2 = 0 ;
15352 long arg3 ;
15353 bool result;
15354 bool temp2 = False ;
15355 PyObject * obj0 = 0 ;
15356 PyObject * obj1 = 0 ;
15357 PyObject * obj2 = 0 ;
15358 char *kwnames[] = {
15359 (char *) "self",(char *) "key",(char *) "value", NULL
15360 };
15361
15362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15365 {
15366 arg2 = wxString_in_helper(obj1);
15367 if (arg2 == NULL) SWIG_fail;
15368 temp2 = True;
15369 }
15370 arg3 = (long) SWIG_AsLong(obj2);
15371 if (PyErr_Occurred()) SWIG_fail;
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 {
15380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15381 }
15382 {
15383 if (temp2)
15384 delete arg2;
15385 }
15386 return resultobj;
15387 fail:
15388 {
15389 if (temp2)
15390 delete arg2;
15391 }
15392 return NULL;
15393 }
15394
15395
15396 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15397 PyObject *resultobj;
15398 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15399 wxString *arg2 = 0 ;
15400 double arg3 ;
15401 bool result;
15402 bool temp2 = False ;
15403 PyObject * obj0 = 0 ;
15404 PyObject * obj1 = 0 ;
15405 PyObject * obj2 = 0 ;
15406 char *kwnames[] = {
15407 (char *) "self",(char *) "key",(char *) "value", NULL
15408 };
15409
15410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15413 {
15414 arg2 = wxString_in_helper(obj1);
15415 if (arg2 == NULL) SWIG_fail;
15416 temp2 = True;
15417 }
15418 arg3 = (double) SWIG_AsDouble(obj2);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 {
15421 PyThreadState* __tstate = wxPyBeginAllowThreads();
15422 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15423
15424 wxPyEndAllowThreads(__tstate);
15425 if (PyErr_Occurred()) SWIG_fail;
15426 }
15427 {
15428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15429 }
15430 {
15431 if (temp2)
15432 delete arg2;
15433 }
15434 return resultobj;
15435 fail:
15436 {
15437 if (temp2)
15438 delete arg2;
15439 }
15440 return NULL;
15441 }
15442
15443
15444 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15445 PyObject *resultobj;
15446 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15447 wxString *arg2 = 0 ;
15448 bool arg3 ;
15449 bool result;
15450 bool temp2 = False ;
15451 PyObject * obj0 = 0 ;
15452 PyObject * obj1 = 0 ;
15453 PyObject * obj2 = 0 ;
15454 char *kwnames[] = {
15455 (char *) "self",(char *) "key",(char *) "value", NULL
15456 };
15457
15458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15461 {
15462 arg2 = wxString_in_helper(obj1);
15463 if (arg2 == NULL) SWIG_fail;
15464 temp2 = True;
15465 }
15466 arg3 = (bool) SWIG_AsBool(obj2);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 {
15469 PyThreadState* __tstate = wxPyBeginAllowThreads();
15470 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15471
15472 wxPyEndAllowThreads(__tstate);
15473 if (PyErr_Occurred()) SWIG_fail;
15474 }
15475 {
15476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15477 }
15478 {
15479 if (temp2)
15480 delete arg2;
15481 }
15482 return resultobj;
15483 fail:
15484 {
15485 if (temp2)
15486 delete arg2;
15487 }
15488 return NULL;
15489 }
15490
15491
15492 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj;
15494 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15495 bool arg2 = (bool) False ;
15496 bool result;
15497 PyObject * obj0 = 0 ;
15498 PyObject * obj1 = 0 ;
15499 char *kwnames[] = {
15500 (char *) "self",(char *) "currentOnly", NULL
15501 };
15502
15503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15506 if (obj1) {
15507 arg2 = (bool) SWIG_AsBool(obj1);
15508 if (PyErr_Occurred()) SWIG_fail;
15509 }
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 result = (bool)(arg1)->Flush(arg2);
15513
15514 wxPyEndAllowThreads(__tstate);
15515 if (PyErr_Occurred()) SWIG_fail;
15516 }
15517 {
15518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15519 }
15520 return resultobj;
15521 fail:
15522 return NULL;
15523 }
15524
15525
15526 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15527 PyObject *resultobj;
15528 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15529 wxString *arg2 = 0 ;
15530 wxString *arg3 = 0 ;
15531 bool result;
15532 bool temp2 = False ;
15533 bool temp3 = False ;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 PyObject * obj2 = 0 ;
15537 char *kwnames[] = {
15538 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15539 };
15540
15541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15544 {
15545 arg2 = wxString_in_helper(obj1);
15546 if (arg2 == NULL) SWIG_fail;
15547 temp2 = True;
15548 }
15549 {
15550 arg3 = wxString_in_helper(obj2);
15551 if (arg3 == NULL) SWIG_fail;
15552 temp3 = True;
15553 }
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 {
15562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15563 }
15564 {
15565 if (temp2)
15566 delete arg2;
15567 }
15568 {
15569 if (temp3)
15570 delete arg3;
15571 }
15572 return resultobj;
15573 fail:
15574 {
15575 if (temp2)
15576 delete arg2;
15577 }
15578 {
15579 if (temp3)
15580 delete arg3;
15581 }
15582 return NULL;
15583 }
15584
15585
15586 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15587 PyObject *resultobj;
15588 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15589 wxString *arg2 = 0 ;
15590 wxString *arg3 = 0 ;
15591 bool result;
15592 bool temp2 = False ;
15593 bool temp3 = False ;
15594 PyObject * obj0 = 0 ;
15595 PyObject * obj1 = 0 ;
15596 PyObject * obj2 = 0 ;
15597 char *kwnames[] = {
15598 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15599 };
15600
15601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15604 {
15605 arg2 = wxString_in_helper(obj1);
15606 if (arg2 == NULL) SWIG_fail;
15607 temp2 = True;
15608 }
15609 {
15610 arg3 = wxString_in_helper(obj2);
15611 if (arg3 == NULL) SWIG_fail;
15612 temp3 = True;
15613 }
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15617
15618 wxPyEndAllowThreads(__tstate);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 {
15622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15623 }
15624 {
15625 if (temp2)
15626 delete arg2;
15627 }
15628 {
15629 if (temp3)
15630 delete arg3;
15631 }
15632 return resultobj;
15633 fail:
15634 {
15635 if (temp2)
15636 delete arg2;
15637 }
15638 {
15639 if (temp3)
15640 delete arg3;
15641 }
15642 return NULL;
15643 }
15644
15645
15646 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15647 PyObject *resultobj;
15648 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15649 wxString *arg2 = 0 ;
15650 bool arg3 = (bool) True ;
15651 bool result;
15652 bool temp2 = False ;
15653 PyObject * obj0 = 0 ;
15654 PyObject * obj1 = 0 ;
15655 PyObject * obj2 = 0 ;
15656 char *kwnames[] = {
15657 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15658 };
15659
15660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15663 {
15664 arg2 = wxString_in_helper(obj1);
15665 if (arg2 == NULL) SWIG_fail;
15666 temp2 = True;
15667 }
15668 if (obj2) {
15669 arg3 = (bool) SWIG_AsBool(obj2);
15670 if (PyErr_Occurred()) SWIG_fail;
15671 }
15672 {
15673 PyThreadState* __tstate = wxPyBeginAllowThreads();
15674 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15675
15676 wxPyEndAllowThreads(__tstate);
15677 if (PyErr_Occurred()) SWIG_fail;
15678 }
15679 {
15680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15681 }
15682 {
15683 if (temp2)
15684 delete arg2;
15685 }
15686 return resultobj;
15687 fail:
15688 {
15689 if (temp2)
15690 delete arg2;
15691 }
15692 return NULL;
15693 }
15694
15695
15696 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15697 PyObject *resultobj;
15698 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15699 wxString *arg2 = 0 ;
15700 bool result;
15701 bool temp2 = False ;
15702 PyObject * obj0 = 0 ;
15703 PyObject * obj1 = 0 ;
15704 char *kwnames[] = {
15705 (char *) "self",(char *) "key", NULL
15706 };
15707
15708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15711 {
15712 arg2 = wxString_in_helper(obj1);
15713 if (arg2 == NULL) SWIG_fail;
15714 temp2 = True;
15715 }
15716 {
15717 PyThreadState* __tstate = wxPyBeginAllowThreads();
15718 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15719
15720 wxPyEndAllowThreads(__tstate);
15721 if (PyErr_Occurred()) SWIG_fail;
15722 }
15723 {
15724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15725 }
15726 {
15727 if (temp2)
15728 delete arg2;
15729 }
15730 return resultobj;
15731 fail:
15732 {
15733 if (temp2)
15734 delete arg2;
15735 }
15736 return NULL;
15737 }
15738
15739
15740 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15741 PyObject *resultobj;
15742 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15743 bool result;
15744 PyObject * obj0 = 0 ;
15745 char *kwnames[] = {
15746 (char *) "self", NULL
15747 };
15748
15749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15752 {
15753 PyThreadState* __tstate = wxPyBeginAllowThreads();
15754 result = (bool)(arg1)->DeleteAll();
15755
15756 wxPyEndAllowThreads(__tstate);
15757 if (PyErr_Occurred()) SWIG_fail;
15758 }
15759 {
15760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15761 }
15762 return resultobj;
15763 fail:
15764 return NULL;
15765 }
15766
15767
15768 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15769 PyObject *resultobj;
15770 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15771 bool arg2 = (bool) True ;
15772 PyObject * obj0 = 0 ;
15773 PyObject * obj1 = 0 ;
15774 char *kwnames[] = {
15775 (char *) "self",(char *) "doIt", NULL
15776 };
15777
15778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15781 if (obj1) {
15782 arg2 = (bool) SWIG_AsBool(obj1);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 (arg1)->SetExpandEnvVars(arg2);
15788
15789 wxPyEndAllowThreads(__tstate);
15790 if (PyErr_Occurred()) SWIG_fail;
15791 }
15792 Py_INCREF(Py_None); resultobj = Py_None;
15793 return resultobj;
15794 fail:
15795 return NULL;
15796 }
15797
15798
15799 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15800 PyObject *resultobj;
15801 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15802 bool result;
15803 PyObject * obj0 = 0 ;
15804 char *kwnames[] = {
15805 (char *) "self", NULL
15806 };
15807
15808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15811 {
15812 PyThreadState* __tstate = wxPyBeginAllowThreads();
15813 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15814
15815 wxPyEndAllowThreads(__tstate);
15816 if (PyErr_Occurred()) SWIG_fail;
15817 }
15818 {
15819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15820 }
15821 return resultobj;
15822 fail:
15823 return NULL;
15824 }
15825
15826
15827 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15828 PyObject *resultobj;
15829 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15830 bool arg2 = (bool) True ;
15831 PyObject * obj0 = 0 ;
15832 PyObject * obj1 = 0 ;
15833 char *kwnames[] = {
15834 (char *) "self",(char *) "doIt", NULL
15835 };
15836
15837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15840 if (obj1) {
15841 arg2 = (bool) SWIG_AsBool(obj1);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 }
15844 {
15845 PyThreadState* __tstate = wxPyBeginAllowThreads();
15846 (arg1)->SetRecordDefaults(arg2);
15847
15848 wxPyEndAllowThreads(__tstate);
15849 if (PyErr_Occurred()) SWIG_fail;
15850 }
15851 Py_INCREF(Py_None); resultobj = Py_None;
15852 return resultobj;
15853 fail:
15854 return NULL;
15855 }
15856
15857
15858 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15859 PyObject *resultobj;
15860 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15861 bool result;
15862 PyObject * obj0 = 0 ;
15863 char *kwnames[] = {
15864 (char *) "self", NULL
15865 };
15866
15867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15870 {
15871 PyThreadState* __tstate = wxPyBeginAllowThreads();
15872 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15873
15874 wxPyEndAllowThreads(__tstate);
15875 if (PyErr_Occurred()) SWIG_fail;
15876 }
15877 {
15878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15879 }
15880 return resultobj;
15881 fail:
15882 return NULL;
15883 }
15884
15885
15886 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15887 PyObject *resultobj;
15888 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15889 wxString *arg2 = 0 ;
15890 wxString result;
15891 bool temp2 = False ;
15892 PyObject * obj0 = 0 ;
15893 PyObject * obj1 = 0 ;
15894 char *kwnames[] = {
15895 (char *) "self",(char *) "str", NULL
15896 };
15897
15898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15901 {
15902 arg2 = wxString_in_helper(obj1);
15903 if (arg2 == NULL) SWIG_fail;
15904 temp2 = True;
15905 }
15906 {
15907 PyThreadState* __tstate = wxPyBeginAllowThreads();
15908 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15909
15910 wxPyEndAllowThreads(__tstate);
15911 if (PyErr_Occurred()) SWIG_fail;
15912 }
15913 {
15914 #if wxUSE_UNICODE
15915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15916 #else
15917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15918 #endif
15919 }
15920 {
15921 if (temp2)
15922 delete arg2;
15923 }
15924 return resultobj;
15925 fail:
15926 {
15927 if (temp2)
15928 delete arg2;
15929 }
15930 return NULL;
15931 }
15932
15933
15934 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15935 PyObject *resultobj;
15936 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15937 wxString result;
15938 PyObject * obj0 = 0 ;
15939 char *kwnames[] = {
15940 (char *) "self", NULL
15941 };
15942
15943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15946 {
15947 PyThreadState* __tstate = wxPyBeginAllowThreads();
15948 result = ((wxConfigBase const *)arg1)->GetAppName();
15949
15950 wxPyEndAllowThreads(__tstate);
15951 if (PyErr_Occurred()) SWIG_fail;
15952 }
15953 {
15954 #if wxUSE_UNICODE
15955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15956 #else
15957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15958 #endif
15959 }
15960 return resultobj;
15961 fail:
15962 return NULL;
15963 }
15964
15965
15966 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15967 PyObject *resultobj;
15968 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15969 wxString result;
15970 PyObject * obj0 = 0 ;
15971 char *kwnames[] = {
15972 (char *) "self", NULL
15973 };
15974
15975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
15976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15978 {
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 result = ((wxConfigBase const *)arg1)->GetVendorName();
15981
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 {
15986 #if wxUSE_UNICODE
15987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15988 #else
15989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15990 #endif
15991 }
15992 return resultobj;
15993 fail:
15994 return NULL;
15995 }
15996
15997
15998 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15999 PyObject *resultobj;
16000 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16001 wxString *arg2 = 0 ;
16002 bool temp2 = False ;
16003 PyObject * obj0 = 0 ;
16004 PyObject * obj1 = 0 ;
16005 char *kwnames[] = {
16006 (char *) "self",(char *) "appName", NULL
16007 };
16008
16009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16012 {
16013 arg2 = wxString_in_helper(obj1);
16014 if (arg2 == NULL) SWIG_fail;
16015 temp2 = True;
16016 }
16017 {
16018 PyThreadState* __tstate = wxPyBeginAllowThreads();
16019 (arg1)->SetAppName((wxString const &)*arg2);
16020
16021 wxPyEndAllowThreads(__tstate);
16022 if (PyErr_Occurred()) SWIG_fail;
16023 }
16024 Py_INCREF(Py_None); resultobj = Py_None;
16025 {
16026 if (temp2)
16027 delete arg2;
16028 }
16029 return resultobj;
16030 fail:
16031 {
16032 if (temp2)
16033 delete arg2;
16034 }
16035 return NULL;
16036 }
16037
16038
16039 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16040 PyObject *resultobj;
16041 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16042 wxString *arg2 = 0 ;
16043 bool temp2 = False ;
16044 PyObject * obj0 = 0 ;
16045 PyObject * obj1 = 0 ;
16046 char *kwnames[] = {
16047 (char *) "self",(char *) "vendorName", NULL
16048 };
16049
16050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16053 {
16054 arg2 = wxString_in_helper(obj1);
16055 if (arg2 == NULL) SWIG_fail;
16056 temp2 = True;
16057 }
16058 {
16059 PyThreadState* __tstate = wxPyBeginAllowThreads();
16060 (arg1)->SetVendorName((wxString const &)*arg2);
16061
16062 wxPyEndAllowThreads(__tstate);
16063 if (PyErr_Occurred()) SWIG_fail;
16064 }
16065 Py_INCREF(Py_None); resultobj = Py_None;
16066 {
16067 if (temp2)
16068 delete arg2;
16069 }
16070 return resultobj;
16071 fail:
16072 {
16073 if (temp2)
16074 delete arg2;
16075 }
16076 return NULL;
16077 }
16078
16079
16080 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj;
16082 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16083 long arg2 ;
16084 PyObject * obj0 = 0 ;
16085 PyObject * obj1 = 0 ;
16086 char *kwnames[] = {
16087 (char *) "self",(char *) "style", NULL
16088 };
16089
16090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16093 arg2 = (long) SWIG_AsLong(obj1);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 (arg1)->SetStyle(arg2);
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 Py_INCREF(Py_None); resultobj = Py_None;
16103 return resultobj;
16104 fail:
16105 return NULL;
16106 }
16107
16108
16109 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj;
16111 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16112 long result;
16113 PyObject * obj0 = 0 ;
16114 char *kwnames[] = {
16115 (char *) "self", NULL
16116 };
16117
16118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16121 {
16122 PyThreadState* __tstate = wxPyBeginAllowThreads();
16123 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16124
16125 wxPyEndAllowThreads(__tstate);
16126 if (PyErr_Occurred()) SWIG_fail;
16127 }
16128 resultobj = SWIG_FromLong((long)result);
16129 return resultobj;
16130 fail:
16131 return NULL;
16132 }
16133
16134
16135 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16136 PyObject *obj;
16137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16138 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16139 Py_INCREF(obj);
16140 return Py_BuildValue((char *)"");
16141 }
16142 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj;
16144 wxString const &arg1_defvalue = wxPyEmptyString ;
16145 wxString *arg1 = (wxString *) &arg1_defvalue ;
16146 wxString const &arg2_defvalue = wxPyEmptyString ;
16147 wxString *arg2 = (wxString *) &arg2_defvalue ;
16148 wxString const &arg3_defvalue = wxPyEmptyString ;
16149 wxString *arg3 = (wxString *) &arg3_defvalue ;
16150 wxString const &arg4_defvalue = wxPyEmptyString ;
16151 wxString *arg4 = (wxString *) &arg4_defvalue ;
16152 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16153 wxConfig *result;
16154 bool temp1 = False ;
16155 bool temp2 = False ;
16156 bool temp3 = False ;
16157 bool temp4 = False ;
16158 PyObject * obj0 = 0 ;
16159 PyObject * obj1 = 0 ;
16160 PyObject * obj2 = 0 ;
16161 PyObject * obj3 = 0 ;
16162 PyObject * obj4 = 0 ;
16163 char *kwnames[] = {
16164 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16165 };
16166
16167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16168 if (obj0) {
16169 {
16170 arg1 = wxString_in_helper(obj0);
16171 if (arg1 == NULL) SWIG_fail;
16172 temp1 = True;
16173 }
16174 }
16175 if (obj1) {
16176 {
16177 arg2 = wxString_in_helper(obj1);
16178 if (arg2 == NULL) SWIG_fail;
16179 temp2 = True;
16180 }
16181 }
16182 if (obj2) {
16183 {
16184 arg3 = wxString_in_helper(obj2);
16185 if (arg3 == NULL) SWIG_fail;
16186 temp3 = True;
16187 }
16188 }
16189 if (obj3) {
16190 {
16191 arg4 = wxString_in_helper(obj3);
16192 if (arg4 == NULL) SWIG_fail;
16193 temp4 = True;
16194 }
16195 }
16196 if (obj4) {
16197 arg5 = (long) SWIG_AsLong(obj4);
16198 if (PyErr_Occurred()) SWIG_fail;
16199 }
16200 {
16201 PyThreadState* __tstate = wxPyBeginAllowThreads();
16202 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16203
16204 wxPyEndAllowThreads(__tstate);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16208 {
16209 if (temp1)
16210 delete arg1;
16211 }
16212 {
16213 if (temp2)
16214 delete arg2;
16215 }
16216 {
16217 if (temp3)
16218 delete arg3;
16219 }
16220 {
16221 if (temp4)
16222 delete arg4;
16223 }
16224 return resultobj;
16225 fail:
16226 {
16227 if (temp1)
16228 delete arg1;
16229 }
16230 {
16231 if (temp2)
16232 delete arg2;
16233 }
16234 {
16235 if (temp3)
16236 delete arg3;
16237 }
16238 {
16239 if (temp4)
16240 delete arg4;
16241 }
16242 return NULL;
16243 }
16244
16245
16246 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16247 PyObject *resultobj;
16248 wxConfig *arg1 = (wxConfig *) 0 ;
16249 PyObject * obj0 = 0 ;
16250 char *kwnames[] = {
16251 (char *) "self", NULL
16252 };
16253
16254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16257 {
16258 PyThreadState* __tstate = wxPyBeginAllowThreads();
16259 delete arg1;
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 * Config_swigregister(PyObject *self, PyObject *args) {
16272 PyObject *obj;
16273 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16274 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16275 Py_INCREF(obj);
16276 return Py_BuildValue((char *)"");
16277 }
16278 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16279 PyObject *resultobj;
16280 wxString const &arg1_defvalue = wxPyEmptyString ;
16281 wxString *arg1 = (wxString *) &arg1_defvalue ;
16282 wxString const &arg2_defvalue = wxPyEmptyString ;
16283 wxString *arg2 = (wxString *) &arg2_defvalue ;
16284 wxString const &arg3_defvalue = wxPyEmptyString ;
16285 wxString *arg3 = (wxString *) &arg3_defvalue ;
16286 wxString const &arg4_defvalue = wxPyEmptyString ;
16287 wxString *arg4 = (wxString *) &arg4_defvalue ;
16288 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16289 wxFileConfig *result;
16290 bool temp1 = False ;
16291 bool temp2 = False ;
16292 bool temp3 = False ;
16293 bool temp4 = False ;
16294 PyObject * obj0 = 0 ;
16295 PyObject * obj1 = 0 ;
16296 PyObject * obj2 = 0 ;
16297 PyObject * obj3 = 0 ;
16298 PyObject * obj4 = 0 ;
16299 char *kwnames[] = {
16300 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16301 };
16302
16303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16304 if (obj0) {
16305 {
16306 arg1 = wxString_in_helper(obj0);
16307 if (arg1 == NULL) SWIG_fail;
16308 temp1 = True;
16309 }
16310 }
16311 if (obj1) {
16312 {
16313 arg2 = wxString_in_helper(obj1);
16314 if (arg2 == NULL) SWIG_fail;
16315 temp2 = True;
16316 }
16317 }
16318 if (obj2) {
16319 {
16320 arg3 = wxString_in_helper(obj2);
16321 if (arg3 == NULL) SWIG_fail;
16322 temp3 = True;
16323 }
16324 }
16325 if (obj3) {
16326 {
16327 arg4 = wxString_in_helper(obj3);
16328 if (arg4 == NULL) SWIG_fail;
16329 temp4 = True;
16330 }
16331 }
16332 if (obj4) {
16333 arg5 = (long) SWIG_AsLong(obj4);
16334 if (PyErr_Occurred()) SWIG_fail;
16335 }
16336 {
16337 PyThreadState* __tstate = wxPyBeginAllowThreads();
16338 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16339
16340 wxPyEndAllowThreads(__tstate);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 }
16343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16344 {
16345 if (temp1)
16346 delete arg1;
16347 }
16348 {
16349 if (temp2)
16350 delete arg2;
16351 }
16352 {
16353 if (temp3)
16354 delete arg3;
16355 }
16356 {
16357 if (temp4)
16358 delete arg4;
16359 }
16360 return resultobj;
16361 fail:
16362 {
16363 if (temp1)
16364 delete arg1;
16365 }
16366 {
16367 if (temp2)
16368 delete arg2;
16369 }
16370 {
16371 if (temp3)
16372 delete arg3;
16373 }
16374 {
16375 if (temp4)
16376 delete arg4;
16377 }
16378 return NULL;
16379 }
16380
16381
16382 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj;
16384 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16385 PyObject * obj0 = 0 ;
16386 char *kwnames[] = {
16387 (char *) "self", NULL
16388 };
16389
16390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16393 {
16394 PyThreadState* __tstate = wxPyBeginAllowThreads();
16395 delete arg1;
16396
16397 wxPyEndAllowThreads(__tstate);
16398 if (PyErr_Occurred()) SWIG_fail;
16399 }
16400 Py_INCREF(Py_None); resultobj = Py_None;
16401 return resultobj;
16402 fail:
16403 return NULL;
16404 }
16405
16406
16407 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16408 PyObject *obj;
16409 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16410 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16411 Py_INCREF(obj);
16412 return Py_BuildValue((char *)"");
16413 }
16414 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16415 PyObject *resultobj;
16416 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16417 wxString *arg2 = 0 ;
16418 wxConfigPathChanger *result;
16419 bool temp2 = False ;
16420 PyObject * obj0 = 0 ;
16421 PyObject * obj1 = 0 ;
16422 char *kwnames[] = {
16423 (char *) "config",(char *) "entry", NULL
16424 };
16425
16426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16429 {
16430 arg2 = wxString_in_helper(obj1);
16431 if (arg2 == NULL) SWIG_fail;
16432 temp2 = True;
16433 }
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16437
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16442 {
16443 if (temp2)
16444 delete arg2;
16445 }
16446 return resultobj;
16447 fail:
16448 {
16449 if (temp2)
16450 delete arg2;
16451 }
16452 return NULL;
16453 }
16454
16455
16456 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16457 PyObject *resultobj;
16458 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16459 PyObject * obj0 = 0 ;
16460 char *kwnames[] = {
16461 (char *) "self", NULL
16462 };
16463
16464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 delete arg1;
16470
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 Py_INCREF(Py_None); resultobj = Py_None;
16475 return resultobj;
16476 fail:
16477 return NULL;
16478 }
16479
16480
16481 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16484 wxString *result;
16485 PyObject * obj0 = 0 ;
16486 char *kwnames[] = {
16487 (char *) "self", NULL
16488 };
16489
16490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 {
16496 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16497 result = (wxString *) &_result_ref;
16498 }
16499
16500 wxPyEndAllowThreads(__tstate);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 }
16503 {
16504 #if wxUSE_UNICODE
16505 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16506 #else
16507 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16508 #endif
16509 }
16510 return resultobj;
16511 fail:
16512 return NULL;
16513 }
16514
16515
16516 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16517 PyObject *obj;
16518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16519 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16520 Py_INCREF(obj);
16521 return Py_BuildValue((char *)"");
16522 }
16523 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16524 PyObject *resultobj;
16525 wxString *arg1 = 0 ;
16526 wxString result;
16527 bool temp1 = False ;
16528 PyObject * obj0 = 0 ;
16529 char *kwnames[] = {
16530 (char *) "sz", NULL
16531 };
16532
16533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16534 {
16535 arg1 = wxString_in_helper(obj0);
16536 if (arg1 == NULL) SWIG_fail;
16537 temp1 = True;
16538 }
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 result = wxExpandEnvVars((wxString const &)*arg1);
16542
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 {
16547 #if wxUSE_UNICODE
16548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16549 #else
16550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16551 #endif
16552 }
16553 {
16554 if (temp1)
16555 delete arg1;
16556 }
16557 return resultobj;
16558 fail:
16559 {
16560 if (temp1)
16561 delete arg1;
16562 }
16563 return NULL;
16564 }
16565
16566
16567 static int _wrap_DateFormatStr_set(PyObject *_val) {
16568 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16569 return 1;
16570 }
16571
16572
16573 static PyObject *_wrap_DateFormatStr_get() {
16574 PyObject *pyobj;
16575
16576 {
16577 #if wxUSE_UNICODE
16578 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16579 #else
16580 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16581 #endif
16582 }
16583 return pyobj;
16584 }
16585
16586
16587 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16588 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16589 return 1;
16590 }
16591
16592
16593 static PyObject *_wrap_TimeSpanFormatStr_get() {
16594 PyObject *pyobj;
16595
16596 {
16597 #if wxUSE_UNICODE
16598 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16599 #else
16600 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16601 #endif
16602 }
16603 return pyobj;
16604 }
16605
16606
16607 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16608 PyObject *resultobj;
16609 int arg1 ;
16610 PyObject * obj0 = 0 ;
16611 char *kwnames[] = {
16612 (char *) "country", NULL
16613 };
16614
16615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16616 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16617 if (PyErr_Occurred()) SWIG_fail;
16618 {
16619 PyThreadState* __tstate = wxPyBeginAllowThreads();
16620 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16621
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 Py_INCREF(Py_None); resultobj = Py_None;
16626 return resultobj;
16627 fail:
16628 return NULL;
16629 }
16630
16631
16632 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16633 PyObject *resultobj;
16634 int result;
16635 char *kwnames[] = {
16636 NULL
16637 };
16638
16639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16640 {
16641 PyThreadState* __tstate = wxPyBeginAllowThreads();
16642 result = (int)wxDateTime::GetCountry();
16643
16644 wxPyEndAllowThreads(__tstate);
16645 if (PyErr_Occurred()) SWIG_fail;
16646 }
16647 resultobj = SWIG_FromInt((int)result);
16648 return resultobj;
16649 fail:
16650 return NULL;
16651 }
16652
16653
16654 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16655 PyObject *resultobj;
16656 int arg1 = (int) wxDateTime::Country_Default ;
16657 bool result;
16658 PyObject * obj0 = 0 ;
16659 char *kwnames[] = {
16660 (char *) "country", NULL
16661 };
16662
16663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16664 if (obj0) {
16665 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 {
16669 PyThreadState* __tstate = wxPyBeginAllowThreads();
16670 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16671
16672 wxPyEndAllowThreads(__tstate);
16673 if (PyErr_Occurred()) SWIG_fail;
16674 }
16675 {
16676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16677 }
16678 return resultobj;
16679 fail:
16680 return NULL;
16681 }
16682
16683
16684 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16685 PyObject *resultobj;
16686 int arg1 = (int) wxDateTime::Gregorian ;
16687 int result;
16688 PyObject * obj0 = 0 ;
16689 char *kwnames[] = {
16690 (char *) "cal", NULL
16691 };
16692
16693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16694 if (obj0) {
16695 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16696 if (PyErr_Occurred()) SWIG_fail;
16697 }
16698 {
16699 PyThreadState* __tstate = wxPyBeginAllowThreads();
16700 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16701
16702 wxPyEndAllowThreads(__tstate);
16703 if (PyErr_Occurred()) SWIG_fail;
16704 }
16705 resultobj = SWIG_FromInt((int)result);
16706 return resultobj;
16707 fail:
16708 return NULL;
16709 }
16710
16711
16712 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16713 PyObject *resultobj;
16714 int arg1 ;
16715 int result;
16716 PyObject * obj0 = 0 ;
16717 char *kwnames[] = {
16718 (char *) "year", NULL
16719 };
16720
16721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16722 arg1 = (int) SWIG_AsInt(obj0);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 {
16725 PyThreadState* __tstate = wxPyBeginAllowThreads();
16726 result = (int)wxDateTime::ConvertYearToBC(arg1);
16727
16728 wxPyEndAllowThreads(__tstate);
16729 if (PyErr_Occurred()) SWIG_fail;
16730 }
16731 resultobj = SWIG_FromInt((int)result);
16732 return resultobj;
16733 fail:
16734 return NULL;
16735 }
16736
16737
16738 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16739 PyObject *resultobj;
16740 int arg1 = (int) wxDateTime::Gregorian ;
16741 int result;
16742 PyObject * obj0 = 0 ;
16743 char *kwnames[] = {
16744 (char *) "cal", NULL
16745 };
16746
16747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16748 if (obj0) {
16749 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16750 if (PyErr_Occurred()) SWIG_fail;
16751 }
16752 {
16753 PyThreadState* __tstate = wxPyBeginAllowThreads();
16754 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16755
16756 wxPyEndAllowThreads(__tstate);
16757 if (PyErr_Occurred()) SWIG_fail;
16758 }
16759 resultobj = SWIG_FromInt((int)result);
16760 return resultobj;
16761 fail:
16762 return NULL;
16763 }
16764
16765
16766 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16767 PyObject *resultobj;
16768 int arg1 = (int) wxDateTime::Inv_Year ;
16769 int arg2 = (int) wxDateTime::Gregorian ;
16770 bool result;
16771 PyObject * obj0 = 0 ;
16772 PyObject * obj1 = 0 ;
16773 char *kwnames[] = {
16774 (char *) "year",(char *) "cal", NULL
16775 };
16776
16777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16778 if (obj0) {
16779 arg1 = (int) SWIG_AsInt(obj0);
16780 if (PyErr_Occurred()) SWIG_fail;
16781 }
16782 if (obj1) {
16783 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16789
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 {
16794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16795 }
16796 return resultobj;
16797 fail:
16798 return NULL;
16799 }
16800
16801
16802 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16803 PyObject *resultobj;
16804 int arg1 = (int) wxDateTime::Inv_Year ;
16805 int result;
16806 PyObject * obj0 = 0 ;
16807 char *kwnames[] = {
16808 (char *) "year", NULL
16809 };
16810
16811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16812 if (obj0) {
16813 arg1 = (int) SWIG_AsInt(obj0);
16814 if (PyErr_Occurred()) SWIG_fail;
16815 }
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 result = (int)wxDateTime::GetCentury(arg1);
16819
16820 wxPyEndAllowThreads(__tstate);
16821 if (PyErr_Occurred()) SWIG_fail;
16822 }
16823 resultobj = SWIG_FromInt((int)result);
16824 return resultobj;
16825 fail:
16826 return NULL;
16827 }
16828
16829
16830 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16831 PyObject *resultobj;
16832 int arg1 ;
16833 int arg2 = (int) wxDateTime::Gregorian ;
16834 int result;
16835 PyObject * obj0 = 0 ;
16836 PyObject * obj1 = 0 ;
16837 char *kwnames[] = {
16838 (char *) "year",(char *) "cal", NULL
16839 };
16840
16841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16842 arg1 = (int) SWIG_AsInt(obj0);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 if (obj1) {
16845 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16851
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 resultobj = SWIG_FromInt((int)result);
16856 return resultobj;
16857 fail:
16858 return NULL;
16859 }
16860
16861
16862 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16863 PyObject *resultobj;
16864 int arg1 ;
16865 int arg2 = (int) wxDateTime::Inv_Year ;
16866 int arg3 = (int) wxDateTime::Gregorian ;
16867 int result;
16868 PyObject * obj0 = 0 ;
16869 PyObject * obj1 = 0 ;
16870 PyObject * obj2 = 0 ;
16871 char *kwnames[] = {
16872 (char *) "month",(char *) "year",(char *) "cal", NULL
16873 };
16874
16875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16876 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16877 if (PyErr_Occurred()) SWIG_fail;
16878 if (obj1) {
16879 arg2 = (int) SWIG_AsInt(obj1);
16880 if (PyErr_Occurred()) SWIG_fail;
16881 }
16882 if (obj2) {
16883 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16884 if (PyErr_Occurred()) SWIG_fail;
16885 }
16886 {
16887 PyThreadState* __tstate = wxPyBeginAllowThreads();
16888 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16889
16890 wxPyEndAllowThreads(__tstate);
16891 if (PyErr_Occurred()) SWIG_fail;
16892 }
16893 resultobj = SWIG_FromInt((int)result);
16894 return resultobj;
16895 fail:
16896 return NULL;
16897 }
16898
16899
16900 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16901 PyObject *resultobj;
16902 int arg1 ;
16903 int arg2 = (int) wxDateTime::Name_Full ;
16904 wxString result;
16905 PyObject * obj0 = 0 ;
16906 PyObject * obj1 = 0 ;
16907 char *kwnames[] = {
16908 (char *) "month",(char *) "flags", NULL
16909 };
16910
16911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16912 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16913 if (PyErr_Occurred()) SWIG_fail;
16914 if (obj1) {
16915 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 {
16919 PyThreadState* __tstate = wxPyBeginAllowThreads();
16920 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16921
16922 wxPyEndAllowThreads(__tstate);
16923 if (PyErr_Occurred()) SWIG_fail;
16924 }
16925 {
16926 #if wxUSE_UNICODE
16927 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16928 #else
16929 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16930 #endif
16931 }
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj;
16940 int arg1 ;
16941 int arg2 = (int) wxDateTime::Name_Full ;
16942 wxString result;
16943 PyObject * obj0 = 0 ;
16944 PyObject * obj1 = 0 ;
16945 char *kwnames[] = {
16946 (char *) "weekday",(char *) "flags", NULL
16947 };
16948
16949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
16950 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 if (obj1) {
16953 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16954 if (PyErr_Occurred()) SWIG_fail;
16955 }
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
16959
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 {
16964 #if wxUSE_UNICODE
16965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16966 #else
16967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16968 #endif
16969 }
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 wxString *arg1 = (wxString *) 0 ;
16979 wxString *arg2 = (wxString *) 0 ;
16980 bool temp1 = False ;
16981 bool temp2 = False ;
16982 PyObject * obj0 = 0 ;
16983 PyObject * obj1 = 0 ;
16984 char *kwnames[] = {
16985 (char *) "OUTPUT",(char *) "OUTPUT", NULL
16986 };
16987
16988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
16989 {
16990 arg1 = wxString_in_helper(obj0);
16991 if (arg1 == NULL) SWIG_fail;
16992 temp1 = True;
16993 }
16994 {
16995 arg2 = wxString_in_helper(obj1);
16996 if (arg2 == NULL) SWIG_fail;
16997 temp2 = True;
16998 }
16999 {
17000 PyThreadState* __tstate = wxPyBeginAllowThreads();
17001 wxDateTime::GetAmPmStrings(arg1,arg2);
17002
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 Py_INCREF(Py_None); resultobj = Py_None;
17007 {
17008 if (temp1)
17009 delete arg1;
17010 }
17011 {
17012 if (temp2)
17013 delete arg2;
17014 }
17015 return resultobj;
17016 fail:
17017 {
17018 if (temp1)
17019 delete arg1;
17020 }
17021 {
17022 if (temp2)
17023 delete arg2;
17024 }
17025 return NULL;
17026 }
17027
17028
17029 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj;
17031 int arg1 = (int) wxDateTime::Inv_Year ;
17032 int arg2 = (int) wxDateTime::Country_Default ;
17033 bool result;
17034 PyObject * obj0 = 0 ;
17035 PyObject * obj1 = 0 ;
17036 char *kwnames[] = {
17037 (char *) "year",(char *) "country", NULL
17038 };
17039
17040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17041 if (obj0) {
17042 arg1 = (int) SWIG_AsInt(obj0);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 if (obj1) {
17046 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17047 if (PyErr_Occurred()) SWIG_fail;
17048 }
17049 {
17050 PyThreadState* __tstate = wxPyBeginAllowThreads();
17051 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17052
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 {
17057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17058 }
17059 return resultobj;
17060 fail:
17061 return NULL;
17062 }
17063
17064
17065 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17066 PyObject *resultobj;
17067 int arg1 = (int) wxDateTime::Inv_Year ;
17068 int arg2 = (int) wxDateTime::Country_Default ;
17069 wxDateTime result;
17070 PyObject * obj0 = 0 ;
17071 PyObject * obj1 = 0 ;
17072 char *kwnames[] = {
17073 (char *) "year",(char *) "country", NULL
17074 };
17075
17076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17077 if (obj0) {
17078 arg1 = (int) SWIG_AsInt(obj0);
17079 if (PyErr_Occurred()) SWIG_fail;
17080 }
17081 if (obj1) {
17082 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 }
17085 {
17086 PyThreadState* __tstate = wxPyBeginAllowThreads();
17087 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17088
17089 wxPyEndAllowThreads(__tstate);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 }
17092 {
17093 wxDateTime * resultptr;
17094 resultptr = new wxDateTime((wxDateTime &) result);
17095 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17096 }
17097 return resultobj;
17098 fail:
17099 return NULL;
17100 }
17101
17102
17103 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17104 PyObject *resultobj;
17105 int arg1 = (int) wxDateTime::Inv_Year ;
17106 int arg2 = (int) wxDateTime::Country_Default ;
17107 wxDateTime result;
17108 PyObject * obj0 = 0 ;
17109 PyObject * obj1 = 0 ;
17110 char *kwnames[] = {
17111 (char *) "year",(char *) "country", NULL
17112 };
17113
17114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17115 if (obj0) {
17116 arg1 = (int) SWIG_AsInt(obj0);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 if (obj1) {
17120 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 {
17124 PyThreadState* __tstate = wxPyBeginAllowThreads();
17125 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17126
17127 wxPyEndAllowThreads(__tstate);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131 wxDateTime * resultptr;
17132 resultptr = new wxDateTime((wxDateTime &) result);
17133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17134 }
17135 return resultobj;
17136 fail:
17137 return NULL;
17138 }
17139
17140
17141 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17142 PyObject *resultobj;
17143 wxDateTime result;
17144 char *kwnames[] = {
17145 NULL
17146 };
17147
17148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17149 {
17150 PyThreadState* __tstate = wxPyBeginAllowThreads();
17151 result = wxDateTime::Now();
17152
17153 wxPyEndAllowThreads(__tstate);
17154 if (PyErr_Occurred()) SWIG_fail;
17155 }
17156 {
17157 wxDateTime * resultptr;
17158 resultptr = new wxDateTime((wxDateTime &) result);
17159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17160 }
17161 return resultobj;
17162 fail:
17163 return NULL;
17164 }
17165
17166
17167 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17168 PyObject *resultobj;
17169 wxDateTime result;
17170 char *kwnames[] = {
17171 NULL
17172 };
17173
17174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17175 {
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 result = wxDateTime::UNow();
17178
17179 wxPyEndAllowThreads(__tstate);
17180 if (PyErr_Occurred()) SWIG_fail;
17181 }
17182 {
17183 wxDateTime * resultptr;
17184 resultptr = new wxDateTime((wxDateTime &) result);
17185 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17186 }
17187 return resultobj;
17188 fail:
17189 return NULL;
17190 }
17191
17192
17193 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17194 PyObject *resultobj;
17195 wxDateTime result;
17196 char *kwnames[] = {
17197 NULL
17198 };
17199
17200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17201 {
17202 PyThreadState* __tstate = wxPyBeginAllowThreads();
17203 result = wxDateTime::Today();
17204
17205 wxPyEndAllowThreads(__tstate);
17206 if (PyErr_Occurred()) SWIG_fail;
17207 }
17208 {
17209 wxDateTime * resultptr;
17210 resultptr = new wxDateTime((wxDateTime &) result);
17211 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17212 }
17213 return resultobj;
17214 fail:
17215 return NULL;
17216 }
17217
17218
17219 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj;
17221 wxDateTime *result;
17222 char *kwnames[] = {
17223 NULL
17224 };
17225
17226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17227 {
17228 PyThreadState* __tstate = wxPyBeginAllowThreads();
17229 result = (wxDateTime *)new wxDateTime();
17230
17231 wxPyEndAllowThreads(__tstate);
17232 if (PyErr_Occurred()) SWIG_fail;
17233 }
17234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17235 return resultobj;
17236 fail:
17237 return NULL;
17238 }
17239
17240
17241 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17242 PyObject *resultobj;
17243 time_t arg1 ;
17244 wxDateTime *result;
17245 PyObject * obj0 = 0 ;
17246 char *kwnames[] = {
17247 (char *) "timet", NULL
17248 };
17249
17250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17251 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17252 if (PyErr_Occurred()) SWIG_fail;
17253 {
17254 PyThreadState* __tstate = wxPyBeginAllowThreads();
17255 result = (wxDateTime *)new wxDateTime(arg1);
17256
17257 wxPyEndAllowThreads(__tstate);
17258 if (PyErr_Occurred()) SWIG_fail;
17259 }
17260 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17261 return resultobj;
17262 fail:
17263 return NULL;
17264 }
17265
17266
17267 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17268 PyObject *resultobj;
17269 double arg1 ;
17270 wxDateTime *result;
17271 PyObject * obj0 = 0 ;
17272 char *kwnames[] = {
17273 (char *) "jdn", NULL
17274 };
17275
17276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17277 arg1 = (double) SWIG_AsDouble(obj0);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 result = (wxDateTime *)new wxDateTime(arg1);
17282
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17287 return resultobj;
17288 fail:
17289 return NULL;
17290 }
17291
17292
17293 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17294 PyObject *resultobj;
17295 int arg1 ;
17296 int arg2 = (int) 0 ;
17297 int arg3 = (int) 0 ;
17298 int arg4 = (int) 0 ;
17299 wxDateTime *result;
17300 PyObject * obj0 = 0 ;
17301 PyObject * obj1 = 0 ;
17302 PyObject * obj2 = 0 ;
17303 PyObject * obj3 = 0 ;
17304 char *kwnames[] = {
17305 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17306 };
17307
17308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17309 arg1 = (int) SWIG_AsInt(obj0);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 if (obj1) {
17312 arg2 = (int) SWIG_AsInt(obj1);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
17315 if (obj2) {
17316 arg3 = (int) SWIG_AsInt(obj2);
17317 if (PyErr_Occurred()) SWIG_fail;
17318 }
17319 if (obj3) {
17320 arg4 = (int) SWIG_AsInt(obj3);
17321 if (PyErr_Occurred()) SWIG_fail;
17322 }
17323 {
17324 PyThreadState* __tstate = wxPyBeginAllowThreads();
17325 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17326
17327 wxPyEndAllowThreads(__tstate);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 }
17330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17331 return resultobj;
17332 fail:
17333 return NULL;
17334 }
17335
17336
17337 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17338 PyObject *resultobj;
17339 int arg1 ;
17340 int arg2 = (int) wxDateTime::Inv_Month ;
17341 int arg3 = (int) wxDateTime::Inv_Year ;
17342 int arg4 = (int) 0 ;
17343 int arg5 = (int) 0 ;
17344 int arg6 = (int) 0 ;
17345 int arg7 = (int) 0 ;
17346 wxDateTime *result;
17347 PyObject * obj0 = 0 ;
17348 PyObject * obj1 = 0 ;
17349 PyObject * obj2 = 0 ;
17350 PyObject * obj3 = 0 ;
17351 PyObject * obj4 = 0 ;
17352 PyObject * obj5 = 0 ;
17353 PyObject * obj6 = 0 ;
17354 char *kwnames[] = {
17355 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17356 };
17357
17358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17359 arg1 = (int) SWIG_AsInt(obj0);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 if (obj1) {
17362 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17363 if (PyErr_Occurred()) SWIG_fail;
17364 }
17365 if (obj2) {
17366 arg3 = (int) SWIG_AsInt(obj2);
17367 if (PyErr_Occurred()) SWIG_fail;
17368 }
17369 if (obj3) {
17370 arg4 = (int) SWIG_AsInt(obj3);
17371 if (PyErr_Occurred()) SWIG_fail;
17372 }
17373 if (obj4) {
17374 arg5 = (int) SWIG_AsInt(obj4);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 }
17377 if (obj5) {
17378 arg6 = (int) SWIG_AsInt(obj5);
17379 if (PyErr_Occurred()) SWIG_fail;
17380 }
17381 if (obj6) {
17382 arg7 = (int) SWIG_AsInt(obj6);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17388
17389 wxPyEndAllowThreads(__tstate);
17390 if (PyErr_Occurred()) SWIG_fail;
17391 }
17392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17393 return resultobj;
17394 fail:
17395 return NULL;
17396 }
17397
17398
17399 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17400 PyObject *resultobj;
17401 wxDateTime *arg1 = (wxDateTime *) 0 ;
17402 PyObject * obj0 = 0 ;
17403 char *kwnames[] = {
17404 (char *) "self", NULL
17405 };
17406
17407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17410 {
17411 PyThreadState* __tstate = wxPyBeginAllowThreads();
17412 delete arg1;
17413
17414 wxPyEndAllowThreads(__tstate);
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 Py_INCREF(Py_None); resultobj = Py_None;
17418 return resultobj;
17419 fail:
17420 return NULL;
17421 }
17422
17423
17424 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17425 PyObject *resultobj;
17426 wxDateTime *arg1 = (wxDateTime *) 0 ;
17427 wxDateTime *result;
17428 PyObject * obj0 = 0 ;
17429 char *kwnames[] = {
17430 (char *) "self", NULL
17431 };
17432
17433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17436 {
17437 PyThreadState* __tstate = wxPyBeginAllowThreads();
17438 {
17439 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17440 result = (wxDateTime *) &_result_ref;
17441 }
17442
17443 wxPyEndAllowThreads(__tstate);
17444 if (PyErr_Occurred()) SWIG_fail;
17445 }
17446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17447 return resultobj;
17448 fail:
17449 return NULL;
17450 }
17451
17452
17453 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17454 PyObject *resultobj;
17455 wxDateTime *arg1 = (wxDateTime *) 0 ;
17456 time_t arg2 ;
17457 wxDateTime *result;
17458 PyObject * obj0 = 0 ;
17459 PyObject * obj1 = 0 ;
17460 char *kwnames[] = {
17461 (char *) "self",(char *) "timet", NULL
17462 };
17463
17464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17467 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 {
17470 PyThreadState* __tstate = wxPyBeginAllowThreads();
17471 {
17472 wxDateTime &_result_ref = (arg1)->Set(arg2);
17473 result = (wxDateTime *) &_result_ref;
17474 }
17475
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17480 return resultobj;
17481 fail:
17482 return NULL;
17483 }
17484
17485
17486 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj;
17488 wxDateTime *arg1 = (wxDateTime *) 0 ;
17489 double arg2 ;
17490 wxDateTime *result;
17491 PyObject * obj0 = 0 ;
17492 PyObject * obj1 = 0 ;
17493 char *kwnames[] = {
17494 (char *) "self",(char *) "jdn", NULL
17495 };
17496
17497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17500 arg2 = (double) SWIG_AsDouble(obj1);
17501 if (PyErr_Occurred()) SWIG_fail;
17502 {
17503 PyThreadState* __tstate = wxPyBeginAllowThreads();
17504 {
17505 wxDateTime &_result_ref = (arg1)->Set(arg2);
17506 result = (wxDateTime *) &_result_ref;
17507 }
17508
17509 wxPyEndAllowThreads(__tstate);
17510 if (PyErr_Occurred()) SWIG_fail;
17511 }
17512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17513 return resultobj;
17514 fail:
17515 return NULL;
17516 }
17517
17518
17519 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17520 PyObject *resultobj;
17521 wxDateTime *arg1 = (wxDateTime *) 0 ;
17522 int arg2 ;
17523 int arg3 = (int) 0 ;
17524 int arg4 = (int) 0 ;
17525 int arg5 = (int) 0 ;
17526 wxDateTime *result;
17527 PyObject * obj0 = 0 ;
17528 PyObject * obj1 = 0 ;
17529 PyObject * obj2 = 0 ;
17530 PyObject * obj3 = 0 ;
17531 PyObject * obj4 = 0 ;
17532 char *kwnames[] = {
17533 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17534 };
17535
17536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17539 arg2 = (int) SWIG_AsInt(obj1);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 if (obj2) {
17542 arg3 = (int) SWIG_AsInt(obj2);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 }
17545 if (obj3) {
17546 arg4 = (int) SWIG_AsInt(obj3);
17547 if (PyErr_Occurred()) SWIG_fail;
17548 }
17549 if (obj4) {
17550 arg5 = (int) SWIG_AsInt(obj4);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 {
17554 PyThreadState* __tstate = wxPyBeginAllowThreads();
17555 {
17556 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17557 result = (wxDateTime *) &_result_ref;
17558 }
17559
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17564 return resultobj;
17565 fail:
17566 return NULL;
17567 }
17568
17569
17570 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17571 PyObject *resultobj;
17572 wxDateTime *arg1 = (wxDateTime *) 0 ;
17573 int arg2 ;
17574 int arg3 = (int) wxDateTime::Inv_Month ;
17575 int arg4 = (int) wxDateTime::Inv_Year ;
17576 int arg5 = (int) 0 ;
17577 int arg6 = (int) 0 ;
17578 int arg7 = (int) 0 ;
17579 int arg8 = (int) 0 ;
17580 wxDateTime *result;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 PyObject * obj2 = 0 ;
17584 PyObject * obj3 = 0 ;
17585 PyObject * obj4 = 0 ;
17586 PyObject * obj5 = 0 ;
17587 PyObject * obj6 = 0 ;
17588 PyObject * obj7 = 0 ;
17589 char *kwnames[] = {
17590 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17591 };
17592
17593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17596 arg2 = (int) SWIG_AsInt(obj1);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 if (obj2) {
17599 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 if (obj3) {
17603 arg4 = (int) SWIG_AsInt(obj3);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 if (obj4) {
17607 arg5 = (int) SWIG_AsInt(obj4);
17608 if (PyErr_Occurred()) SWIG_fail;
17609 }
17610 if (obj5) {
17611 arg6 = (int) SWIG_AsInt(obj5);
17612 if (PyErr_Occurred()) SWIG_fail;
17613 }
17614 if (obj6) {
17615 arg7 = (int) SWIG_AsInt(obj6);
17616 if (PyErr_Occurred()) SWIG_fail;
17617 }
17618 if (obj7) {
17619 arg8 = (int) SWIG_AsInt(obj7);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 }
17622 {
17623 PyThreadState* __tstate = wxPyBeginAllowThreads();
17624 {
17625 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17626 result = (wxDateTime *) &_result_ref;
17627 }
17628
17629 wxPyEndAllowThreads(__tstate);
17630 if (PyErr_Occurred()) SWIG_fail;
17631 }
17632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17633 return resultobj;
17634 fail:
17635 return NULL;
17636 }
17637
17638
17639 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17640 PyObject *resultobj;
17641 wxDateTime *arg1 = (wxDateTime *) 0 ;
17642 wxDateTime *result;
17643 PyObject * obj0 = 0 ;
17644 char *kwnames[] = {
17645 (char *) "self", NULL
17646 };
17647
17648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17651 {
17652 PyThreadState* __tstate = wxPyBeginAllowThreads();
17653 {
17654 wxDateTime &_result_ref = (arg1)->ResetTime();
17655 result = (wxDateTime *) &_result_ref;
17656 }
17657
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17662 return resultobj;
17663 fail:
17664 return NULL;
17665 }
17666
17667
17668 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj;
17670 wxDateTime *arg1 = (wxDateTime *) 0 ;
17671 int arg2 ;
17672 wxDateTime *result;
17673 PyObject * obj0 = 0 ;
17674 PyObject * obj1 = 0 ;
17675 char *kwnames[] = {
17676 (char *) "self",(char *) "year", NULL
17677 };
17678
17679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17682 arg2 = (int) SWIG_AsInt(obj1);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 {
17685 PyThreadState* __tstate = wxPyBeginAllowThreads();
17686 {
17687 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17688 result = (wxDateTime *) &_result_ref;
17689 }
17690
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17695 return resultobj;
17696 fail:
17697 return NULL;
17698 }
17699
17700
17701 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17702 PyObject *resultobj;
17703 wxDateTime *arg1 = (wxDateTime *) 0 ;
17704 int arg2 ;
17705 wxDateTime *result;
17706 PyObject * obj0 = 0 ;
17707 PyObject * obj1 = 0 ;
17708 char *kwnames[] = {
17709 (char *) "self",(char *) "month", NULL
17710 };
17711
17712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17715 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17716 if (PyErr_Occurred()) SWIG_fail;
17717 {
17718 PyThreadState* __tstate = wxPyBeginAllowThreads();
17719 {
17720 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17721 result = (wxDateTime *) &_result_ref;
17722 }
17723
17724 wxPyEndAllowThreads(__tstate);
17725 if (PyErr_Occurred()) SWIG_fail;
17726 }
17727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17728 return resultobj;
17729 fail:
17730 return NULL;
17731 }
17732
17733
17734 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17735 PyObject *resultobj;
17736 wxDateTime *arg1 = (wxDateTime *) 0 ;
17737 int arg2 ;
17738 wxDateTime *result;
17739 PyObject * obj0 = 0 ;
17740 PyObject * obj1 = 0 ;
17741 char *kwnames[] = {
17742 (char *) "self",(char *) "day", NULL
17743 };
17744
17745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17748 arg2 = (int) SWIG_AsInt(obj1);
17749 if (PyErr_Occurred()) SWIG_fail;
17750 {
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 {
17753 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17754 result = (wxDateTime *) &_result_ref;
17755 }
17756
17757 wxPyEndAllowThreads(__tstate);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17761 return resultobj;
17762 fail:
17763 return NULL;
17764 }
17765
17766
17767 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17768 PyObject *resultobj;
17769 wxDateTime *arg1 = (wxDateTime *) 0 ;
17770 int arg2 ;
17771 wxDateTime *result;
17772 PyObject * obj0 = 0 ;
17773 PyObject * obj1 = 0 ;
17774 char *kwnames[] = {
17775 (char *) "self",(char *) "hour", NULL
17776 };
17777
17778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17781 arg2 = (int) SWIG_AsInt(obj1);
17782 if (PyErr_Occurred()) SWIG_fail;
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 {
17786 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17787 result = (wxDateTime *) &_result_ref;
17788 }
17789
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17794 return resultobj;
17795 fail:
17796 return NULL;
17797 }
17798
17799
17800 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17801 PyObject *resultobj;
17802 wxDateTime *arg1 = (wxDateTime *) 0 ;
17803 int arg2 ;
17804 wxDateTime *result;
17805 PyObject * obj0 = 0 ;
17806 PyObject * obj1 = 0 ;
17807 char *kwnames[] = {
17808 (char *) "self",(char *) "minute", NULL
17809 };
17810
17811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17814 arg2 = (int) SWIG_AsInt(obj1);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 {
17819 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17820 result = (wxDateTime *) &_result_ref;
17821 }
17822
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17827 return resultobj;
17828 fail:
17829 return NULL;
17830 }
17831
17832
17833 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj;
17835 wxDateTime *arg1 = (wxDateTime *) 0 ;
17836 int arg2 ;
17837 wxDateTime *result;
17838 PyObject * obj0 = 0 ;
17839 PyObject * obj1 = 0 ;
17840 char *kwnames[] = {
17841 (char *) "self",(char *) "second", NULL
17842 };
17843
17844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17847 arg2 = (int) SWIG_AsInt(obj1);
17848 if (PyErr_Occurred()) SWIG_fail;
17849 {
17850 PyThreadState* __tstate = wxPyBeginAllowThreads();
17851 {
17852 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17853 result = (wxDateTime *) &_result_ref;
17854 }
17855
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17860 return resultobj;
17861 fail:
17862 return NULL;
17863 }
17864
17865
17866 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17867 PyObject *resultobj;
17868 wxDateTime *arg1 = (wxDateTime *) 0 ;
17869 int arg2 ;
17870 wxDateTime *result;
17871 PyObject * obj0 = 0 ;
17872 PyObject * obj1 = 0 ;
17873 char *kwnames[] = {
17874 (char *) "self",(char *) "millisecond", NULL
17875 };
17876
17877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17880 arg2 = (int) SWIG_AsInt(obj1);
17881 if (PyErr_Occurred()) SWIG_fail;
17882 {
17883 PyThreadState* __tstate = wxPyBeginAllowThreads();
17884 {
17885 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17886 result = (wxDateTime *) &_result_ref;
17887 }
17888
17889 wxPyEndAllowThreads(__tstate);
17890 if (PyErr_Occurred()) SWIG_fail;
17891 }
17892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17893 return resultobj;
17894 fail:
17895 return NULL;
17896 }
17897
17898
17899 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17900 PyObject *resultobj;
17901 wxDateTime *arg1 = (wxDateTime *) 0 ;
17902 int arg2 ;
17903 int arg3 = (int) wxDateTime::Monday_First ;
17904 wxDateTime *result;
17905 PyObject * obj0 = 0 ;
17906 PyObject * obj1 = 0 ;
17907 PyObject * obj2 = 0 ;
17908 char *kwnames[] = {
17909 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17910 };
17911
17912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17915 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17916 if (PyErr_Occurred()) SWIG_fail;
17917 if (obj2) {
17918 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 {
17924 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17925 result = (wxDateTime *) &_result_ref;
17926 }
17927
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17932 return resultobj;
17933 fail:
17934 return NULL;
17935 }
17936
17937
17938 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj;
17940 wxDateTime *arg1 = (wxDateTime *) 0 ;
17941 int arg2 ;
17942 int arg3 = (int) wxDateTime::Monday_First ;
17943 wxDateTime result;
17944 PyObject * obj0 = 0 ;
17945 PyObject * obj1 = 0 ;
17946 PyObject * obj2 = 0 ;
17947 char *kwnames[] = {
17948 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17949 };
17950
17951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17954 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 if (obj2) {
17957 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17963
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 {
17968 wxDateTime * resultptr;
17969 resultptr = new wxDateTime((wxDateTime &) result);
17970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17971 }
17972 return resultobj;
17973 fail:
17974 return NULL;
17975 }
17976
17977
17978 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17979 PyObject *resultobj;
17980 wxDateTime *arg1 = (wxDateTime *) 0 ;
17981 int arg2 ;
17982 wxDateTime *result;
17983 PyObject * obj0 = 0 ;
17984 PyObject * obj1 = 0 ;
17985 char *kwnames[] = {
17986 (char *) "self",(char *) "weekday", NULL
17987 };
17988
17989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
17990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17992 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 {
17995 PyThreadState* __tstate = wxPyBeginAllowThreads();
17996 {
17997 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
17998 result = (wxDateTime *) &_result_ref;
17999 }
18000
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxDateTime *arg1 = (wxDateTime *) 0 ;
18014 int arg2 ;
18015 wxDateTime result;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 char *kwnames[] = {
18019 (char *) "self",(char *) "weekday", NULL
18020 };
18021
18022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18025 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 {
18028 PyThreadState* __tstate = wxPyBeginAllowThreads();
18029 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18030
18031 wxPyEndAllowThreads(__tstate);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 {
18035 wxDateTime * resultptr;
18036 resultptr = new wxDateTime((wxDateTime &) result);
18037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18038 }
18039 return resultobj;
18040 fail:
18041 return NULL;
18042 }
18043
18044
18045 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj;
18047 wxDateTime *arg1 = (wxDateTime *) 0 ;
18048 int arg2 ;
18049 wxDateTime *result;
18050 PyObject * obj0 = 0 ;
18051 PyObject * obj1 = 0 ;
18052 char *kwnames[] = {
18053 (char *) "self",(char *) "weekday", NULL
18054 };
18055
18056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18059 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18060 if (PyErr_Occurred()) SWIG_fail;
18061 {
18062 PyThreadState* __tstate = wxPyBeginAllowThreads();
18063 {
18064 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18065 result = (wxDateTime *) &_result_ref;
18066 }
18067
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18072 return resultobj;
18073 fail:
18074 return NULL;
18075 }
18076
18077
18078 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj;
18080 wxDateTime *arg1 = (wxDateTime *) 0 ;
18081 int arg2 ;
18082 wxDateTime result;
18083 PyObject * obj0 = 0 ;
18084 PyObject * obj1 = 0 ;
18085 char *kwnames[] = {
18086 (char *) "self",(char *) "weekday", NULL
18087 };
18088
18089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18092 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 {
18095 PyThreadState* __tstate = wxPyBeginAllowThreads();
18096 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18097
18098 wxPyEndAllowThreads(__tstate);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 }
18101 {
18102 wxDateTime * resultptr;
18103 resultptr = new wxDateTime((wxDateTime &) result);
18104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18105 }
18106 return resultobj;
18107 fail:
18108 return NULL;
18109 }
18110
18111
18112 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18113 PyObject *resultobj;
18114 wxDateTime *arg1 = (wxDateTime *) 0 ;
18115 int arg2 ;
18116 int arg3 = (int) 1 ;
18117 int arg4 = (int) wxDateTime::Inv_Month ;
18118 int arg5 = (int) wxDateTime::Inv_Year ;
18119 bool result;
18120 PyObject * obj0 = 0 ;
18121 PyObject * obj1 = 0 ;
18122 PyObject * obj2 = 0 ;
18123 PyObject * obj3 = 0 ;
18124 PyObject * obj4 = 0 ;
18125 char *kwnames[] = {
18126 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18127 };
18128
18129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18132 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 if (obj2) {
18135 arg3 = (int) SWIG_AsInt(obj2);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 if (obj3) {
18139 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 }
18142 if (obj4) {
18143 arg5 = (int) SWIG_AsInt(obj4);
18144 if (PyErr_Occurred()) SWIG_fail;
18145 }
18146 {
18147 PyThreadState* __tstate = wxPyBeginAllowThreads();
18148 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18149
18150 wxPyEndAllowThreads(__tstate);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 }
18153 {
18154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18155 }
18156 return resultobj;
18157 fail:
18158 return NULL;
18159 }
18160
18161
18162 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18163 PyObject *resultobj;
18164 wxDateTime *arg1 = (wxDateTime *) 0 ;
18165 int arg2 ;
18166 int arg3 = (int) wxDateTime::Inv_Month ;
18167 int arg4 = (int) wxDateTime::Inv_Year ;
18168 bool result;
18169 PyObject * obj0 = 0 ;
18170 PyObject * obj1 = 0 ;
18171 PyObject * obj2 = 0 ;
18172 PyObject * obj3 = 0 ;
18173 char *kwnames[] = {
18174 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18175 };
18176
18177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18180 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 if (obj2) {
18183 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 if (obj3) {
18187 arg4 = (int) SWIG_AsInt(obj3);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 {
18191 PyThreadState* __tstate = wxPyBeginAllowThreads();
18192 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18193
18194 wxPyEndAllowThreads(__tstate);
18195 if (PyErr_Occurred()) SWIG_fail;
18196 }
18197 {
18198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18199 }
18200 return resultobj;
18201 fail:
18202 return NULL;
18203 }
18204
18205
18206 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18207 PyObject *resultobj;
18208 wxDateTime *arg1 = (wxDateTime *) 0 ;
18209 int arg2 ;
18210 int arg3 = (int) wxDateTime::Inv_Month ;
18211 int arg4 = (int) wxDateTime::Inv_Year ;
18212 wxDateTime result;
18213 PyObject * obj0 = 0 ;
18214 PyObject * obj1 = 0 ;
18215 PyObject * obj2 = 0 ;
18216 PyObject * obj3 = 0 ;
18217 char *kwnames[] = {
18218 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18219 };
18220
18221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18224 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 if (obj2) {
18227 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18228 if (PyErr_Occurred()) SWIG_fail;
18229 }
18230 if (obj3) {
18231 arg4 = (int) SWIG_AsInt(obj3);
18232 if (PyErr_Occurred()) SWIG_fail;
18233 }
18234 {
18235 PyThreadState* __tstate = wxPyBeginAllowThreads();
18236 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18237
18238 wxPyEndAllowThreads(__tstate);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 {
18242 wxDateTime * resultptr;
18243 resultptr = new wxDateTime((wxDateTime &) result);
18244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18245 }
18246 return resultobj;
18247 fail:
18248 return NULL;
18249 }
18250
18251
18252 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18253 PyObject *resultobj;
18254 wxDateTime *arg1 = (wxDateTime *) 0 ;
18255 int arg2 ;
18256 int arg3 = (int) wxDateTime::Mon ;
18257 int arg4 = (int) wxDateTime::Monday_First ;
18258 bool result;
18259 PyObject * obj0 = 0 ;
18260 PyObject * obj1 = 0 ;
18261 PyObject * obj2 = 0 ;
18262 PyObject * obj3 = 0 ;
18263 char *kwnames[] = {
18264 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18265 };
18266
18267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18270 arg2 = (int) SWIG_AsInt(obj1);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 if (obj2) {
18273 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18274 if (PyErr_Occurred()) SWIG_fail;
18275 }
18276 if (obj3) {
18277 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 }
18280 {
18281 PyThreadState* __tstate = wxPyBeginAllowThreads();
18282 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18283
18284 wxPyEndAllowThreads(__tstate);
18285 if (PyErr_Occurred()) SWIG_fail;
18286 }
18287 {
18288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18289 }
18290 return resultobj;
18291 fail:
18292 return NULL;
18293 }
18294
18295
18296 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18297 PyObject *resultobj;
18298 wxDateTime *arg1 = (wxDateTime *) 0 ;
18299 int arg2 ;
18300 int arg3 = (int) wxDateTime::Mon ;
18301 int arg4 = (int) wxDateTime::Monday_First ;
18302 wxDateTime result;
18303 PyObject * obj0 = 0 ;
18304 PyObject * obj1 = 0 ;
18305 PyObject * obj2 = 0 ;
18306 PyObject * obj3 = 0 ;
18307 char *kwnames[] = {
18308 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18309 };
18310
18311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18314 arg2 = (int) SWIG_AsInt(obj1);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 if (obj2) {
18317 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 if (obj3) {
18321 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18322 if (PyErr_Occurred()) SWIG_fail;
18323 }
18324 {
18325 PyThreadState* __tstate = wxPyBeginAllowThreads();
18326 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18327
18328 wxPyEndAllowThreads(__tstate);
18329 if (PyErr_Occurred()) SWIG_fail;
18330 }
18331 {
18332 wxDateTime * resultptr;
18333 resultptr = new wxDateTime((wxDateTime &) result);
18334 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18335 }
18336 return resultobj;
18337 fail:
18338 return NULL;
18339 }
18340
18341
18342 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18343 PyObject *resultobj;
18344 wxDateTime *arg1 = (wxDateTime *) 0 ;
18345 int arg2 = (int) wxDateTime::Inv_Month ;
18346 int arg3 = (int) wxDateTime::Inv_Year ;
18347 wxDateTime *result;
18348 PyObject * obj0 = 0 ;
18349 PyObject * obj1 = 0 ;
18350 PyObject * obj2 = 0 ;
18351 char *kwnames[] = {
18352 (char *) "self",(char *) "month",(char *) "year", NULL
18353 };
18354
18355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18358 if (obj1) {
18359 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18360 if (PyErr_Occurred()) SWIG_fail;
18361 }
18362 if (obj2) {
18363 arg3 = (int) SWIG_AsInt(obj2);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 {
18369 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18370 result = (wxDateTime *) &_result_ref;
18371 }
18372
18373 wxPyEndAllowThreads(__tstate);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18377 return resultobj;
18378 fail:
18379 return NULL;
18380 }
18381
18382
18383 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18384 PyObject *resultobj;
18385 wxDateTime *arg1 = (wxDateTime *) 0 ;
18386 int arg2 = (int) wxDateTime::Inv_Month ;
18387 int arg3 = (int) wxDateTime::Inv_Year ;
18388 wxDateTime result;
18389 PyObject * obj0 = 0 ;
18390 PyObject * obj1 = 0 ;
18391 PyObject * obj2 = 0 ;
18392 char *kwnames[] = {
18393 (char *) "self",(char *) "month",(char *) "year", NULL
18394 };
18395
18396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18399 if (obj1) {
18400 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18401 if (PyErr_Occurred()) SWIG_fail;
18402 }
18403 if (obj2) {
18404 arg3 = (int) SWIG_AsInt(obj2);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 {
18408 PyThreadState* __tstate = wxPyBeginAllowThreads();
18409 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18410
18411 wxPyEndAllowThreads(__tstate);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 }
18414 {
18415 wxDateTime * resultptr;
18416 resultptr = new wxDateTime((wxDateTime &) result);
18417 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18418 }
18419 return resultobj;
18420 fail:
18421 return NULL;
18422 }
18423
18424
18425 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18426 PyObject *resultobj;
18427 wxDateTime *arg1 = (wxDateTime *) 0 ;
18428 int arg2 ;
18429 wxDateTime *result;
18430 PyObject * obj0 = 0 ;
18431 PyObject * obj1 = 0 ;
18432 char *kwnames[] = {
18433 (char *) "self",(char *) "yday", NULL
18434 };
18435
18436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18439 arg2 = (int) SWIG_AsInt(obj1);
18440 if (PyErr_Occurred()) SWIG_fail;
18441 {
18442 PyThreadState* __tstate = wxPyBeginAllowThreads();
18443 {
18444 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18445 result = (wxDateTime *) &_result_ref;
18446 }
18447
18448 wxPyEndAllowThreads(__tstate);
18449 if (PyErr_Occurred()) SWIG_fail;
18450 }
18451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18452 return resultobj;
18453 fail:
18454 return NULL;
18455 }
18456
18457
18458 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18459 PyObject *resultobj;
18460 wxDateTime *arg1 = (wxDateTime *) 0 ;
18461 int arg2 ;
18462 wxDateTime result;
18463 PyObject * obj0 = 0 ;
18464 PyObject * obj1 = 0 ;
18465 char *kwnames[] = {
18466 (char *) "self",(char *) "yday", NULL
18467 };
18468
18469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18472 arg2 = (int) SWIG_AsInt(obj1);
18473 if (PyErr_Occurred()) SWIG_fail;
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 result = (arg1)->GetYearDay(arg2);
18477
18478 wxPyEndAllowThreads(__tstate);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 }
18481 {
18482 wxDateTime * resultptr;
18483 resultptr = new wxDateTime((wxDateTime &) result);
18484 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18485 }
18486 return resultobj;
18487 fail:
18488 return NULL;
18489 }
18490
18491
18492 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18493 PyObject *resultobj;
18494 wxDateTime *arg1 = (wxDateTime *) 0 ;
18495 double result;
18496 PyObject * obj0 = 0 ;
18497 char *kwnames[] = {
18498 (char *) "self", NULL
18499 };
18500
18501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 result = (double)(arg1)->GetJulianDayNumber();
18507
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 resultobj = SWIG_FromDouble((double)result);
18512 return resultobj;
18513 fail:
18514 return NULL;
18515 }
18516
18517
18518 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18519 PyObject *resultobj;
18520 wxDateTime *arg1 = (wxDateTime *) 0 ;
18521 double result;
18522 PyObject * obj0 = 0 ;
18523 char *kwnames[] = {
18524 (char *) "self", NULL
18525 };
18526
18527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 result = (double)(arg1)->GetJDN();
18533
18534 wxPyEndAllowThreads(__tstate);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 }
18537 resultobj = SWIG_FromDouble((double)result);
18538 return resultobj;
18539 fail:
18540 return NULL;
18541 }
18542
18543
18544 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj;
18546 wxDateTime *arg1 = (wxDateTime *) 0 ;
18547 double result;
18548 PyObject * obj0 = 0 ;
18549 char *kwnames[] = {
18550 (char *) "self", NULL
18551 };
18552
18553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18556 {
18557 PyThreadState* __tstate = wxPyBeginAllowThreads();
18558 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18559
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_FromDouble((double)result);
18564 return resultobj;
18565 fail:
18566 return NULL;
18567 }
18568
18569
18570 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18571 PyObject *resultobj;
18572 wxDateTime *arg1 = (wxDateTime *) 0 ;
18573 double result;
18574 PyObject * obj0 = 0 ;
18575 char *kwnames[] = {
18576 (char *) "self", NULL
18577 };
18578
18579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 result = (double)(arg1)->GetMJD();
18585
18586 wxPyEndAllowThreads(__tstate);
18587 if (PyErr_Occurred()) SWIG_fail;
18588 }
18589 resultobj = SWIG_FromDouble((double)result);
18590 return resultobj;
18591 fail:
18592 return NULL;
18593 }
18594
18595
18596 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18597 PyObject *resultobj;
18598 wxDateTime *arg1 = (wxDateTime *) 0 ;
18599 double result;
18600 PyObject * obj0 = 0 ;
18601 char *kwnames[] = {
18602 (char *) "self", NULL
18603 };
18604
18605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18608 {
18609 PyThreadState* __tstate = wxPyBeginAllowThreads();
18610 result = (double)(arg1)->GetRataDie();
18611
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = SWIG_FromDouble((double)result);
18616 return resultobj;
18617 fail:
18618 return NULL;
18619 }
18620
18621
18622 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18623 PyObject *resultobj;
18624 wxDateTime *arg1 = (wxDateTime *) 0 ;
18625 wxDateTime::TimeZone *arg2 = 0 ;
18626 bool arg3 = (bool) False ;
18627 wxDateTime result;
18628 bool temp2 = False ;
18629 PyObject * obj0 = 0 ;
18630 PyObject * obj1 = 0 ;
18631 PyObject * obj2 = 0 ;
18632 char *kwnames[] = {
18633 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18634 };
18635
18636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18639 {
18640 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18641 temp2 = True;
18642 }
18643 if (obj2) {
18644 arg3 = (bool) SWIG_AsBool(obj2);
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 {
18648 PyThreadState* __tstate = wxPyBeginAllowThreads();
18649 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18650
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 {
18655 wxDateTime * resultptr;
18656 resultptr = new wxDateTime((wxDateTime &) result);
18657 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18658 }
18659 {
18660 if (temp2) delete arg2;
18661 }
18662 return resultobj;
18663 fail:
18664 {
18665 if (temp2) delete arg2;
18666 }
18667 return NULL;
18668 }
18669
18670
18671 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18672 PyObject *resultobj;
18673 wxDateTime *arg1 = (wxDateTime *) 0 ;
18674 wxDateTime::TimeZone *arg2 = 0 ;
18675 bool arg3 = (bool) False ;
18676 wxDateTime *result;
18677 bool temp2 = False ;
18678 PyObject * obj0 = 0 ;
18679 PyObject * obj1 = 0 ;
18680 PyObject * obj2 = 0 ;
18681 char *kwnames[] = {
18682 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18683 };
18684
18685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18688 {
18689 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18690 temp2 = True;
18691 }
18692 if (obj2) {
18693 arg3 = (bool) SWIG_AsBool(obj2);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 {
18699 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18700 result = (wxDateTime *) &_result_ref;
18701 }
18702
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18707 {
18708 if (temp2) delete arg2;
18709 }
18710 return resultobj;
18711 fail:
18712 {
18713 if (temp2) delete arg2;
18714 }
18715 return NULL;
18716 }
18717
18718
18719 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18720 PyObject *resultobj;
18721 wxDateTime *arg1 = (wxDateTime *) 0 ;
18722 bool arg2 = (bool) False ;
18723 wxDateTime result;
18724 PyObject * obj0 = 0 ;
18725 PyObject * obj1 = 0 ;
18726 char *kwnames[] = {
18727 (char *) "self",(char *) "noDST", NULL
18728 };
18729
18730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18733 if (obj1) {
18734 arg2 = (bool) SWIG_AsBool(obj1);
18735 if (PyErr_Occurred()) SWIG_fail;
18736 }
18737 {
18738 PyThreadState* __tstate = wxPyBeginAllowThreads();
18739 result = (arg1)->ToGMT(arg2);
18740
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 {
18745 wxDateTime * resultptr;
18746 resultptr = new wxDateTime((wxDateTime &) result);
18747 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18748 }
18749 return resultobj;
18750 fail:
18751 return NULL;
18752 }
18753
18754
18755 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18756 PyObject *resultobj;
18757 wxDateTime *arg1 = (wxDateTime *) 0 ;
18758 bool arg2 = (bool) False ;
18759 wxDateTime *result;
18760 PyObject * obj0 = 0 ;
18761 PyObject * obj1 = 0 ;
18762 char *kwnames[] = {
18763 (char *) "self",(char *) "noDST", NULL
18764 };
18765
18766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18769 if (obj1) {
18770 arg2 = (bool) SWIG_AsBool(obj1);
18771 if (PyErr_Occurred()) SWIG_fail;
18772 }
18773 {
18774 PyThreadState* __tstate = wxPyBeginAllowThreads();
18775 {
18776 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18777 result = (wxDateTime *) &_result_ref;
18778 }
18779
18780 wxPyEndAllowThreads(__tstate);
18781 if (PyErr_Occurred()) SWIG_fail;
18782 }
18783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18784 return resultobj;
18785 fail:
18786 return NULL;
18787 }
18788
18789
18790 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18791 PyObject *resultobj;
18792 wxDateTime *arg1 = (wxDateTime *) 0 ;
18793 int arg2 = (int) wxDateTime::Country_Default ;
18794 int result;
18795 PyObject * obj0 = 0 ;
18796 PyObject * obj1 = 0 ;
18797 char *kwnames[] = {
18798 (char *) "self",(char *) "country", NULL
18799 };
18800
18801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18804 if (obj1) {
18805 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18806 if (PyErr_Occurred()) SWIG_fail;
18807 }
18808 {
18809 PyThreadState* __tstate = wxPyBeginAllowThreads();
18810 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18811
18812 wxPyEndAllowThreads(__tstate);
18813 if (PyErr_Occurred()) SWIG_fail;
18814 }
18815 resultobj = SWIG_FromInt((int)result);
18816 return resultobj;
18817 fail:
18818 return NULL;
18819 }
18820
18821
18822 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj;
18824 wxDateTime *arg1 = (wxDateTime *) 0 ;
18825 bool result;
18826 PyObject * obj0 = 0 ;
18827 char *kwnames[] = {
18828 (char *) "self", NULL
18829 };
18830
18831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18834 {
18835 PyThreadState* __tstate = wxPyBeginAllowThreads();
18836 result = (bool)((wxDateTime const *)arg1)->IsValid();
18837
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 {
18842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18843 }
18844 return resultobj;
18845 fail:
18846 return NULL;
18847 }
18848
18849
18850 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18851 PyObject *resultobj;
18852 wxDateTime *arg1 = (wxDateTime *) 0 ;
18853 time_t result;
18854 PyObject * obj0 = 0 ;
18855 char *kwnames[] = {
18856 (char *) "self", NULL
18857 };
18858
18859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18862 {
18863 PyThreadState* __tstate = wxPyBeginAllowThreads();
18864 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18865
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18870 return resultobj;
18871 fail:
18872 return NULL;
18873 }
18874
18875
18876 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18877 PyObject *resultobj;
18878 wxDateTime *arg1 = (wxDateTime *) 0 ;
18879 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18880 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18881 int result;
18882 bool temp2 = False ;
18883 PyObject * obj0 = 0 ;
18884 PyObject * obj1 = 0 ;
18885 char *kwnames[] = {
18886 (char *) "self",(char *) "tz", NULL
18887 };
18888
18889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18892 if (obj1) {
18893 {
18894 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18895 temp2 = True;
18896 }
18897 }
18898 {
18899 PyThreadState* __tstate = wxPyBeginAllowThreads();
18900 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18901
18902 wxPyEndAllowThreads(__tstate);
18903 if (PyErr_Occurred()) SWIG_fail;
18904 }
18905 resultobj = SWIG_FromInt((int)result);
18906 {
18907 if (temp2) delete arg2;
18908 }
18909 return resultobj;
18910 fail:
18911 {
18912 if (temp2) delete arg2;
18913 }
18914 return NULL;
18915 }
18916
18917
18918 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18919 PyObject *resultobj;
18920 wxDateTime *arg1 = (wxDateTime *) 0 ;
18921 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18922 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18923 int result;
18924 bool temp2 = False ;
18925 PyObject * obj0 = 0 ;
18926 PyObject * obj1 = 0 ;
18927 char *kwnames[] = {
18928 (char *) "self",(char *) "tz", NULL
18929 };
18930
18931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18934 if (obj1) {
18935 {
18936 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18937 temp2 = True;
18938 }
18939 }
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18943
18944 wxPyEndAllowThreads(__tstate);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 }
18947 resultobj = SWIG_FromInt((int)result);
18948 {
18949 if (temp2) delete arg2;
18950 }
18951 return resultobj;
18952 fail:
18953 {
18954 if (temp2) delete arg2;
18955 }
18956 return NULL;
18957 }
18958
18959
18960 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18961 PyObject *resultobj;
18962 wxDateTime *arg1 = (wxDateTime *) 0 ;
18963 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18964 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18965 int result;
18966 bool temp2 = False ;
18967 PyObject * obj0 = 0 ;
18968 PyObject * obj1 = 0 ;
18969 char *kwnames[] = {
18970 (char *) "self",(char *) "tz", NULL
18971 };
18972
18973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
18974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18976 if (obj1) {
18977 {
18978 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18979 temp2 = True;
18980 }
18981 }
18982 {
18983 PyThreadState* __tstate = wxPyBeginAllowThreads();
18984 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
18985
18986 wxPyEndAllowThreads(__tstate);
18987 if (PyErr_Occurred()) SWIG_fail;
18988 }
18989 resultobj = SWIG_FromInt((int)result);
18990 {
18991 if (temp2) delete arg2;
18992 }
18993 return resultobj;
18994 fail:
18995 {
18996 if (temp2) delete arg2;
18997 }
18998 return NULL;
18999 }
19000
19001
19002 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19003 PyObject *resultobj;
19004 wxDateTime *arg1 = (wxDateTime *) 0 ;
19005 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19006 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19007 int result;
19008 bool temp2 = False ;
19009 PyObject * obj0 = 0 ;
19010 PyObject * obj1 = 0 ;
19011 char *kwnames[] = {
19012 (char *) "self",(char *) "tz", NULL
19013 };
19014
19015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19018 if (obj1) {
19019 {
19020 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19021 temp2 = True;
19022 }
19023 }
19024 {
19025 PyThreadState* __tstate = wxPyBeginAllowThreads();
19026 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19027
19028 wxPyEndAllowThreads(__tstate);
19029 if (PyErr_Occurred()) SWIG_fail;
19030 }
19031 resultobj = SWIG_FromInt((int)result);
19032 {
19033 if (temp2) delete arg2;
19034 }
19035 return resultobj;
19036 fail:
19037 {
19038 if (temp2) delete arg2;
19039 }
19040 return NULL;
19041 }
19042
19043
19044 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19045 PyObject *resultobj;
19046 wxDateTime *arg1 = (wxDateTime *) 0 ;
19047 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19048 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19049 int result;
19050 bool temp2 = False ;
19051 PyObject * obj0 = 0 ;
19052 PyObject * obj1 = 0 ;
19053 char *kwnames[] = {
19054 (char *) "self",(char *) "tz", NULL
19055 };
19056
19057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19060 if (obj1) {
19061 {
19062 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19063 temp2 = True;
19064 }
19065 }
19066 {
19067 PyThreadState* __tstate = wxPyBeginAllowThreads();
19068 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19069
19070 wxPyEndAllowThreads(__tstate);
19071 if (PyErr_Occurred()) SWIG_fail;
19072 }
19073 resultobj = SWIG_FromInt((int)result);
19074 {
19075 if (temp2) delete arg2;
19076 }
19077 return resultobj;
19078 fail:
19079 {
19080 if (temp2) delete arg2;
19081 }
19082 return NULL;
19083 }
19084
19085
19086 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19087 PyObject *resultobj;
19088 wxDateTime *arg1 = (wxDateTime *) 0 ;
19089 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19090 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19091 int result;
19092 bool temp2 = False ;
19093 PyObject * obj0 = 0 ;
19094 PyObject * obj1 = 0 ;
19095 char *kwnames[] = {
19096 (char *) "self",(char *) "tz", NULL
19097 };
19098
19099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19102 if (obj1) {
19103 {
19104 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19105 temp2 = True;
19106 }
19107 }
19108 {
19109 PyThreadState* __tstate = wxPyBeginAllowThreads();
19110 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19111
19112 wxPyEndAllowThreads(__tstate);
19113 if (PyErr_Occurred()) SWIG_fail;
19114 }
19115 resultobj = SWIG_FromInt((int)result);
19116 {
19117 if (temp2) delete arg2;
19118 }
19119 return resultobj;
19120 fail:
19121 {
19122 if (temp2) delete arg2;
19123 }
19124 return NULL;
19125 }
19126
19127
19128 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj;
19130 wxDateTime *arg1 = (wxDateTime *) 0 ;
19131 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19132 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19133 int result;
19134 bool temp2 = False ;
19135 PyObject * obj0 = 0 ;
19136 PyObject * obj1 = 0 ;
19137 char *kwnames[] = {
19138 (char *) "self",(char *) "tz", NULL
19139 };
19140
19141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19144 if (obj1) {
19145 {
19146 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19147 temp2 = True;
19148 }
19149 }
19150 {
19151 PyThreadState* __tstate = wxPyBeginAllowThreads();
19152 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19153
19154 wxPyEndAllowThreads(__tstate);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 resultobj = SWIG_FromInt((int)result);
19158 {
19159 if (temp2) delete arg2;
19160 }
19161 return resultobj;
19162 fail:
19163 {
19164 if (temp2) delete arg2;
19165 }
19166 return NULL;
19167 }
19168
19169
19170 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19171 PyObject *resultobj;
19172 wxDateTime *arg1 = (wxDateTime *) 0 ;
19173 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19174 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19175 int result;
19176 bool temp2 = False ;
19177 PyObject * obj0 = 0 ;
19178 PyObject * obj1 = 0 ;
19179 char *kwnames[] = {
19180 (char *) "self",(char *) "tz", NULL
19181 };
19182
19183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19186 if (obj1) {
19187 {
19188 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19189 temp2 = True;
19190 }
19191 }
19192 {
19193 PyThreadState* __tstate = wxPyBeginAllowThreads();
19194 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19195
19196 wxPyEndAllowThreads(__tstate);
19197 if (PyErr_Occurred()) SWIG_fail;
19198 }
19199 resultobj = SWIG_FromInt((int)result);
19200 {
19201 if (temp2) delete arg2;
19202 }
19203 return resultobj;
19204 fail:
19205 {
19206 if (temp2) delete arg2;
19207 }
19208 return NULL;
19209 }
19210
19211
19212 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19213 PyObject *resultobj;
19214 wxDateTime *arg1 = (wxDateTime *) 0 ;
19215 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19216 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19217 int result;
19218 bool temp2 = False ;
19219 PyObject * obj0 = 0 ;
19220 PyObject * obj1 = 0 ;
19221 char *kwnames[] = {
19222 (char *) "self",(char *) "tz", NULL
19223 };
19224
19225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19228 if (obj1) {
19229 {
19230 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19231 temp2 = True;
19232 }
19233 }
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19237
19238 wxPyEndAllowThreads(__tstate);
19239 if (PyErr_Occurred()) SWIG_fail;
19240 }
19241 resultobj = SWIG_FromInt((int)result);
19242 {
19243 if (temp2) delete arg2;
19244 }
19245 return resultobj;
19246 fail:
19247 {
19248 if (temp2) delete arg2;
19249 }
19250 return NULL;
19251 }
19252
19253
19254 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19255 PyObject *resultobj;
19256 wxDateTime *arg1 = (wxDateTime *) 0 ;
19257 int arg2 = (int) wxDateTime::Monday_First ;
19258 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19259 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19260 int result;
19261 bool temp3 = False ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 PyObject * obj2 = 0 ;
19265 char *kwnames[] = {
19266 (char *) "self",(char *) "flags",(char *) "tz", NULL
19267 };
19268
19269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19272 if (obj1) {
19273 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19274 if (PyErr_Occurred()) SWIG_fail;
19275 }
19276 if (obj2) {
19277 {
19278 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19279 temp3 = True;
19280 }
19281 }
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19285
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 resultobj = SWIG_FromInt((int)result);
19290 {
19291 if (temp3) delete arg3;
19292 }
19293 return resultobj;
19294 fail:
19295 {
19296 if (temp3) delete arg3;
19297 }
19298 return NULL;
19299 }
19300
19301
19302 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19303 PyObject *resultobj;
19304 wxDateTime *arg1 = (wxDateTime *) 0 ;
19305 int arg2 = (int) wxDateTime::Monday_First ;
19306 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19307 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19308 int result;
19309 bool temp3 = False ;
19310 PyObject * obj0 = 0 ;
19311 PyObject * obj1 = 0 ;
19312 PyObject * obj2 = 0 ;
19313 char *kwnames[] = {
19314 (char *) "self",(char *) "flags",(char *) "tz", NULL
19315 };
19316
19317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19320 if (obj1) {
19321 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19322 if (PyErr_Occurred()) SWIG_fail;
19323 }
19324 if (obj2) {
19325 {
19326 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19327 temp3 = True;
19328 }
19329 }
19330 {
19331 PyThreadState* __tstate = wxPyBeginAllowThreads();
19332 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19333
19334 wxPyEndAllowThreads(__tstate);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 resultobj = SWIG_FromInt((int)result);
19338 {
19339 if (temp3) delete arg3;
19340 }
19341 return resultobj;
19342 fail:
19343 {
19344 if (temp3) delete arg3;
19345 }
19346 return NULL;
19347 }
19348
19349
19350 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19351 PyObject *resultobj;
19352 wxDateTime *arg1 = (wxDateTime *) 0 ;
19353 int arg2 = (int) wxDateTime::Country_Default ;
19354 bool result;
19355 PyObject * obj0 = 0 ;
19356 PyObject * obj1 = 0 ;
19357 char *kwnames[] = {
19358 (char *) "self",(char *) "country", NULL
19359 };
19360
19361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",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 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19366 if (PyErr_Occurred()) SWIG_fail;
19367 }
19368 {
19369 PyThreadState* __tstate = wxPyBeginAllowThreads();
19370 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19371
19372 wxPyEndAllowThreads(__tstate);
19373 if (PyErr_Occurred()) SWIG_fail;
19374 }
19375 {
19376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19377 }
19378 return resultobj;
19379 fail:
19380 return NULL;
19381 }
19382
19383
19384 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19385 PyObject *resultobj;
19386 wxDateTime *arg1 = (wxDateTime *) 0 ;
19387 wxDateTime *arg2 = 0 ;
19388 bool result;
19389 PyObject * obj0 = 0 ;
19390 PyObject * obj1 = 0 ;
19391 char *kwnames[] = {
19392 (char *) "self",(char *) "datetime", NULL
19393 };
19394
19395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19399 SWIG_POINTER_EXCEPTION | 0)) == -1)
19400 SWIG_fail;
19401 if (arg2 == NULL) {
19402 PyErr_SetString(PyExc_TypeError,"null reference");
19403 SWIG_fail;
19404 }
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19408
19409 wxPyEndAllowThreads(__tstate);
19410 if (PyErr_Occurred()) SWIG_fail;
19411 }
19412 {
19413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19414 }
19415 return resultobj;
19416 fail:
19417 return NULL;
19418 }
19419
19420
19421 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19422 PyObject *resultobj;
19423 wxDateTime *arg1 = (wxDateTime *) 0 ;
19424 wxDateTime *arg2 = 0 ;
19425 bool result;
19426 PyObject * obj0 = 0 ;
19427 PyObject * obj1 = 0 ;
19428 char *kwnames[] = {
19429 (char *) "self",(char *) "datetime", NULL
19430 };
19431
19432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19435 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19436 SWIG_POINTER_EXCEPTION | 0)) == -1)
19437 SWIG_fail;
19438 if (arg2 == NULL) {
19439 PyErr_SetString(PyExc_TypeError,"null reference");
19440 SWIG_fail;
19441 }
19442 {
19443 PyThreadState* __tstate = wxPyBeginAllowThreads();
19444 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19445
19446 wxPyEndAllowThreads(__tstate);
19447 if (PyErr_Occurred()) SWIG_fail;
19448 }
19449 {
19450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19451 }
19452 return resultobj;
19453 fail:
19454 return NULL;
19455 }
19456
19457
19458 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19459 PyObject *resultobj;
19460 wxDateTime *arg1 = (wxDateTime *) 0 ;
19461 wxDateTime *arg2 = 0 ;
19462 bool result;
19463 PyObject * obj0 = 0 ;
19464 PyObject * obj1 = 0 ;
19465 char *kwnames[] = {
19466 (char *) "self",(char *) "datetime", NULL
19467 };
19468
19469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19473 SWIG_POINTER_EXCEPTION | 0)) == -1)
19474 SWIG_fail;
19475 if (arg2 == NULL) {
19476 PyErr_SetString(PyExc_TypeError,"null reference");
19477 SWIG_fail;
19478 }
19479 {
19480 PyThreadState* __tstate = wxPyBeginAllowThreads();
19481 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19482
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 {
19487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19488 }
19489 return resultobj;
19490 fail:
19491 return NULL;
19492 }
19493
19494
19495 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj;
19497 wxDateTime *arg1 = (wxDateTime *) 0 ;
19498 wxDateTime *arg2 = 0 ;
19499 wxDateTime *arg3 = 0 ;
19500 bool result;
19501 PyObject * obj0 = 0 ;
19502 PyObject * obj1 = 0 ;
19503 PyObject * obj2 = 0 ;
19504 char *kwnames[] = {
19505 (char *) "self",(char *) "t1",(char *) "t2", NULL
19506 };
19507
19508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19511 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19512 SWIG_POINTER_EXCEPTION | 0)) == -1)
19513 SWIG_fail;
19514 if (arg2 == NULL) {
19515 PyErr_SetString(PyExc_TypeError,"null reference");
19516 SWIG_fail;
19517 }
19518 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19519 SWIG_POINTER_EXCEPTION | 0)) == -1)
19520 SWIG_fail;
19521 if (arg3 == NULL) {
19522 PyErr_SetString(PyExc_TypeError,"null reference");
19523 SWIG_fail;
19524 }
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19528
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 {
19533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19534 }
19535 return resultobj;
19536 fail:
19537 return NULL;
19538 }
19539
19540
19541 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19542 PyObject *resultobj;
19543 wxDateTime *arg1 = (wxDateTime *) 0 ;
19544 wxDateTime *arg2 = 0 ;
19545 wxDateTime *arg3 = 0 ;
19546 bool result;
19547 PyObject * obj0 = 0 ;
19548 PyObject * obj1 = 0 ;
19549 PyObject * obj2 = 0 ;
19550 char *kwnames[] = {
19551 (char *) "self",(char *) "t1",(char *) "t2", NULL
19552 };
19553
19554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19557 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19558 SWIG_POINTER_EXCEPTION | 0)) == -1)
19559 SWIG_fail;
19560 if (arg2 == NULL) {
19561 PyErr_SetString(PyExc_TypeError,"null reference");
19562 SWIG_fail;
19563 }
19564 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19565 SWIG_POINTER_EXCEPTION | 0)) == -1)
19566 SWIG_fail;
19567 if (arg3 == NULL) {
19568 PyErr_SetString(PyExc_TypeError,"null reference");
19569 SWIG_fail;
19570 }
19571 {
19572 PyThreadState* __tstate = wxPyBeginAllowThreads();
19573 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19574
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
19578 {
19579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19580 }
19581 return resultobj;
19582 fail:
19583 return NULL;
19584 }
19585
19586
19587 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19588 PyObject *resultobj;
19589 wxDateTime *arg1 = (wxDateTime *) 0 ;
19590 wxDateTime *arg2 = 0 ;
19591 bool result;
19592 PyObject * obj0 = 0 ;
19593 PyObject * obj1 = 0 ;
19594 char *kwnames[] = {
19595 (char *) "self",(char *) "dt", NULL
19596 };
19597
19598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19602 SWIG_POINTER_EXCEPTION | 0)) == -1)
19603 SWIG_fail;
19604 if (arg2 == NULL) {
19605 PyErr_SetString(PyExc_TypeError,"null reference");
19606 SWIG_fail;
19607 }
19608 {
19609 PyThreadState* __tstate = wxPyBeginAllowThreads();
19610 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19611
19612 wxPyEndAllowThreads(__tstate);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 }
19615 {
19616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19617 }
19618 return resultobj;
19619 fail:
19620 return NULL;
19621 }
19622
19623
19624 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19625 PyObject *resultobj;
19626 wxDateTime *arg1 = (wxDateTime *) 0 ;
19627 wxDateTime *arg2 = 0 ;
19628 bool result;
19629 PyObject * obj0 = 0 ;
19630 PyObject * obj1 = 0 ;
19631 char *kwnames[] = {
19632 (char *) "self",(char *) "dt", NULL
19633 };
19634
19635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19639 SWIG_POINTER_EXCEPTION | 0)) == -1)
19640 SWIG_fail;
19641 if (arg2 == NULL) {
19642 PyErr_SetString(PyExc_TypeError,"null reference");
19643 SWIG_fail;
19644 }
19645 {
19646 PyThreadState* __tstate = wxPyBeginAllowThreads();
19647 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19648
19649 wxPyEndAllowThreads(__tstate);
19650 if (PyErr_Occurred()) SWIG_fail;
19651 }
19652 {
19653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19654 }
19655 return resultobj;
19656 fail:
19657 return NULL;
19658 }
19659
19660
19661 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19662 PyObject *resultobj;
19663 wxDateTime *arg1 = (wxDateTime *) 0 ;
19664 wxDateTime *arg2 = 0 ;
19665 wxTimeSpan *arg3 = 0 ;
19666 bool result;
19667 PyObject * obj0 = 0 ;
19668 PyObject * obj1 = 0 ;
19669 PyObject * obj2 = 0 ;
19670 char *kwnames[] = {
19671 (char *) "self",(char *) "dt",(char *) "ts", NULL
19672 };
19673
19674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19677 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19678 SWIG_POINTER_EXCEPTION | 0)) == -1)
19679 SWIG_fail;
19680 if (arg2 == NULL) {
19681 PyErr_SetString(PyExc_TypeError,"null reference");
19682 SWIG_fail;
19683 }
19684 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19685 SWIG_POINTER_EXCEPTION | 0)) == -1)
19686 SWIG_fail;
19687 if (arg3 == NULL) {
19688 PyErr_SetString(PyExc_TypeError,"null reference");
19689 SWIG_fail;
19690 }
19691 {
19692 PyThreadState* __tstate = wxPyBeginAllowThreads();
19693 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19694
19695 wxPyEndAllowThreads(__tstate);
19696 if (PyErr_Occurred()) SWIG_fail;
19697 }
19698 {
19699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19700 }
19701 return resultobj;
19702 fail:
19703 return NULL;
19704 }
19705
19706
19707 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19708 PyObject *resultobj;
19709 wxDateTime *arg1 = (wxDateTime *) 0 ;
19710 wxTimeSpan *arg2 = 0 ;
19711 wxDateTime *result;
19712 PyObject * obj0 = 0 ;
19713 PyObject * obj1 = 0 ;
19714 char *kwnames[] = {
19715 (char *) "self",(char *) "diff", NULL
19716 };
19717
19718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19722 SWIG_POINTER_EXCEPTION | 0)) == -1)
19723 SWIG_fail;
19724 if (arg2 == NULL) {
19725 PyErr_SetString(PyExc_TypeError,"null reference");
19726 SWIG_fail;
19727 }
19728 {
19729 PyThreadState* __tstate = wxPyBeginAllowThreads();
19730 {
19731 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19732 result = (wxDateTime *) &_result_ref;
19733 }
19734
19735 wxPyEndAllowThreads(__tstate);
19736 if (PyErr_Occurred()) SWIG_fail;
19737 }
19738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19739 return resultobj;
19740 fail:
19741 return NULL;
19742 }
19743
19744
19745 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19746 PyObject *resultobj;
19747 wxDateTime *arg1 = (wxDateTime *) 0 ;
19748 wxDateSpan *arg2 = 0 ;
19749 wxDateTime *result;
19750 PyObject * obj0 = 0 ;
19751 PyObject * obj1 = 0 ;
19752 char *kwnames[] = {
19753 (char *) "self",(char *) "diff", NULL
19754 };
19755
19756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19760 SWIG_POINTER_EXCEPTION | 0)) == -1)
19761 SWIG_fail;
19762 if (arg2 == NULL) {
19763 PyErr_SetString(PyExc_TypeError,"null reference");
19764 SWIG_fail;
19765 }
19766 {
19767 PyThreadState* __tstate = wxPyBeginAllowThreads();
19768 {
19769 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19770 result = (wxDateTime *) &_result_ref;
19771 }
19772
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj;
19785 wxDateTime *arg1 = (wxDateTime *) 0 ;
19786 wxTimeSpan *arg2 = 0 ;
19787 wxDateTime *result;
19788 PyObject * obj0 = 0 ;
19789 PyObject * obj1 = 0 ;
19790 char *kwnames[] = {
19791 (char *) "self",(char *) "diff", NULL
19792 };
19793
19794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19798 SWIG_POINTER_EXCEPTION | 0)) == -1)
19799 SWIG_fail;
19800 if (arg2 == NULL) {
19801 PyErr_SetString(PyExc_TypeError,"null reference");
19802 SWIG_fail;
19803 }
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 {
19807 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19808 result = (wxDateTime *) &_result_ref;
19809 }
19810
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19815 return resultobj;
19816 fail:
19817 return NULL;
19818 }
19819
19820
19821 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19822 PyObject *resultobj;
19823 wxDateTime *arg1 = (wxDateTime *) 0 ;
19824 wxDateSpan *arg2 = 0 ;
19825 wxDateTime *result;
19826 PyObject * obj0 = 0 ;
19827 PyObject * obj1 = 0 ;
19828 char *kwnames[] = {
19829 (char *) "self",(char *) "diff", NULL
19830 };
19831
19832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19835 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19836 SWIG_POINTER_EXCEPTION | 0)) == -1)
19837 SWIG_fail;
19838 if (arg2 == NULL) {
19839 PyErr_SetString(PyExc_TypeError,"null reference");
19840 SWIG_fail;
19841 }
19842 {
19843 PyThreadState* __tstate = wxPyBeginAllowThreads();
19844 {
19845 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19846 result = (wxDateTime *) &_result_ref;
19847 }
19848
19849 wxPyEndAllowThreads(__tstate);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 }
19852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19853 return resultobj;
19854 fail:
19855 return NULL;
19856 }
19857
19858
19859 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj;
19861 wxDateTime *arg1 = (wxDateTime *) 0 ;
19862 wxDateTime *arg2 = 0 ;
19863 wxTimeSpan result;
19864 PyObject * obj0 = 0 ;
19865 PyObject * obj1 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self",(char *) "dt", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19873 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19874 SWIG_POINTER_EXCEPTION | 0)) == -1)
19875 SWIG_fail;
19876 if (arg2 == NULL) {
19877 PyErr_SetString(PyExc_TypeError,"null reference");
19878 SWIG_fail;
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19883
19884 wxPyEndAllowThreads(__tstate);
19885 if (PyErr_Occurred()) SWIG_fail;
19886 }
19887 {
19888 wxTimeSpan * resultptr;
19889 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19890 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19891 }
19892 return resultobj;
19893 fail:
19894 return NULL;
19895 }
19896
19897
19898 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19899 PyObject *resultobj;
19900 wxDateTime *arg1 = (wxDateTime *) 0 ;
19901 wxTimeSpan *arg2 = 0 ;
19902 wxDateTime *result;
19903 PyObject * obj0 = 0 ;
19904 PyObject * obj1 = 0 ;
19905
19906 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19909 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19910 SWIG_POINTER_EXCEPTION | 0)) == -1)
19911 SWIG_fail;
19912 if (arg2 == NULL) {
19913 PyErr_SetString(PyExc_TypeError,"null reference");
19914 SWIG_fail;
19915 }
19916 {
19917 PyThreadState* __tstate = wxPyBeginAllowThreads();
19918 {
19919 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19920 result = (wxDateTime *) &_result_ref;
19921 }
19922
19923 wxPyEndAllowThreads(__tstate);
19924 if (PyErr_Occurred()) SWIG_fail;
19925 }
19926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19927 return resultobj;
19928 fail:
19929 return NULL;
19930 }
19931
19932
19933 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
19934 PyObject *resultobj;
19935 wxDateTime *arg1 = (wxDateTime *) 0 ;
19936 wxDateSpan *arg2 = 0 ;
19937 wxDateTime *result;
19938 PyObject * obj0 = 0 ;
19939 PyObject * obj1 = 0 ;
19940
19941 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&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_wxDateSpan,
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 {
19954 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
19955 result = (wxDateTime *) &_result_ref;
19956 }
19957
19958 wxPyEndAllowThreads(__tstate);
19959 if (PyErr_Occurred()) SWIG_fail;
19960 }
19961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19962 return resultobj;
19963 fail:
19964 return NULL;
19965 }
19966
19967
19968 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
19969 int argc;
19970 PyObject *argv[3];
19971 int ii;
19972
19973 argc = PyObject_Length(args);
19974 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19975 argv[ii] = PyTuple_GetItem(args,ii);
19976 }
19977 if (argc == 2) {
19978 int _v;
19979 {
19980 void *ptr;
19981 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19982 _v = 0;
19983 PyErr_Clear();
19984 } else {
19985 _v = 1;
19986 }
19987 }
19988 if (_v) {
19989 {
19990 void *ptr;
19991 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19992 _v = 0;
19993 PyErr_Clear();
19994 } else {
19995 _v = 1;
19996 }
19997 }
19998 if (_v) {
19999 return _wrap_DateTime___iadd____SWIG_0(self,args);
20000 }
20001 }
20002 }
20003 if (argc == 2) {
20004 int _v;
20005 {
20006 void *ptr;
20007 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20008 _v = 0;
20009 PyErr_Clear();
20010 } else {
20011 _v = 1;
20012 }
20013 }
20014 if (_v) {
20015 {
20016 void *ptr;
20017 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20018 _v = 0;
20019 PyErr_Clear();
20020 } else {
20021 _v = 1;
20022 }
20023 }
20024 if (_v) {
20025 return _wrap_DateTime___iadd____SWIG_1(self,args);
20026 }
20027 }
20028 }
20029
20030 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20031 return NULL;
20032 }
20033
20034
20035 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20036 PyObject *resultobj;
20037 wxDateTime *arg1 = (wxDateTime *) 0 ;
20038 wxTimeSpan *arg2 = 0 ;
20039 wxDateTime *result;
20040 PyObject * obj0 = 0 ;
20041 PyObject * obj1 = 0 ;
20042
20043 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20046 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20047 SWIG_POINTER_EXCEPTION | 0)) == -1)
20048 SWIG_fail;
20049 if (arg2 == NULL) {
20050 PyErr_SetString(PyExc_TypeError,"null reference");
20051 SWIG_fail;
20052 }
20053 {
20054 PyThreadState* __tstate = wxPyBeginAllowThreads();
20055 {
20056 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20057 result = (wxDateTime *) &_result_ref;
20058 }
20059
20060 wxPyEndAllowThreads(__tstate);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 }
20063 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20064 return resultobj;
20065 fail:
20066 return NULL;
20067 }
20068
20069
20070 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20071 PyObject *resultobj;
20072 wxDateTime *arg1 = (wxDateTime *) 0 ;
20073 wxDateSpan *arg2 = 0 ;
20074 wxDateTime *result;
20075 PyObject * obj0 = 0 ;
20076 PyObject * obj1 = 0 ;
20077
20078 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20082 SWIG_POINTER_EXCEPTION | 0)) == -1)
20083 SWIG_fail;
20084 if (arg2 == NULL) {
20085 PyErr_SetString(PyExc_TypeError,"null reference");
20086 SWIG_fail;
20087 }
20088 {
20089 PyThreadState* __tstate = wxPyBeginAllowThreads();
20090 {
20091 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20092 result = (wxDateTime *) &_result_ref;
20093 }
20094
20095 wxPyEndAllowThreads(__tstate);
20096 if (PyErr_Occurred()) SWIG_fail;
20097 }
20098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20099 return resultobj;
20100 fail:
20101 return NULL;
20102 }
20103
20104
20105 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20106 int argc;
20107 PyObject *argv[3];
20108 int ii;
20109
20110 argc = PyObject_Length(args);
20111 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20112 argv[ii] = PyTuple_GetItem(args,ii);
20113 }
20114 if (argc == 2) {
20115 int _v;
20116 {
20117 void *ptr;
20118 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20119 _v = 0;
20120 PyErr_Clear();
20121 } else {
20122 _v = 1;
20123 }
20124 }
20125 if (_v) {
20126 {
20127 void *ptr;
20128 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20129 _v = 0;
20130 PyErr_Clear();
20131 } else {
20132 _v = 1;
20133 }
20134 }
20135 if (_v) {
20136 return _wrap_DateTime___isub____SWIG_0(self,args);
20137 }
20138 }
20139 }
20140 if (argc == 2) {
20141 int _v;
20142 {
20143 void *ptr;
20144 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20145 _v = 0;
20146 PyErr_Clear();
20147 } else {
20148 _v = 1;
20149 }
20150 }
20151 if (_v) {
20152 {
20153 void *ptr;
20154 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20155 _v = 0;
20156 PyErr_Clear();
20157 } else {
20158 _v = 1;
20159 }
20160 }
20161 if (_v) {
20162 return _wrap_DateTime___isub____SWIG_1(self,args);
20163 }
20164 }
20165 }
20166
20167 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20168 return NULL;
20169 }
20170
20171
20172 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20173 PyObject *resultobj;
20174 wxDateTime *arg1 = (wxDateTime *) 0 ;
20175 wxTimeSpan *arg2 = 0 ;
20176 wxDateTime result;
20177 PyObject * obj0 = 0 ;
20178 PyObject * obj1 = 0 ;
20179
20180 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20183 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20184 SWIG_POINTER_EXCEPTION | 0)) == -1)
20185 SWIG_fail;
20186 if (arg2 == NULL) {
20187 PyErr_SetString(PyExc_TypeError,"null reference");
20188 SWIG_fail;
20189 }
20190 {
20191 PyThreadState* __tstate = wxPyBeginAllowThreads();
20192 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20193
20194 wxPyEndAllowThreads(__tstate);
20195 if (PyErr_Occurred()) SWIG_fail;
20196 }
20197 {
20198 wxDateTime * resultptr;
20199 resultptr = new wxDateTime((wxDateTime &) result);
20200 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20201 }
20202 return resultobj;
20203 fail:
20204 return NULL;
20205 }
20206
20207
20208 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20209 PyObject *resultobj;
20210 wxDateTime *arg1 = (wxDateTime *) 0 ;
20211 wxDateSpan *arg2 = 0 ;
20212 wxDateTime result;
20213 PyObject * obj0 = 0 ;
20214 PyObject * obj1 = 0 ;
20215
20216 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20219 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20220 SWIG_POINTER_EXCEPTION | 0)) == -1)
20221 SWIG_fail;
20222 if (arg2 == NULL) {
20223 PyErr_SetString(PyExc_TypeError,"null reference");
20224 SWIG_fail;
20225 }
20226 {
20227 PyThreadState* __tstate = wxPyBeginAllowThreads();
20228 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20229
20230 wxPyEndAllowThreads(__tstate);
20231 if (PyErr_Occurred()) SWIG_fail;
20232 }
20233 {
20234 wxDateTime * resultptr;
20235 resultptr = new wxDateTime((wxDateTime &) result);
20236 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20237 }
20238 return resultobj;
20239 fail:
20240 return NULL;
20241 }
20242
20243
20244 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20245 int argc;
20246 PyObject *argv[3];
20247 int ii;
20248
20249 argc = PyObject_Length(args);
20250 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20251 argv[ii] = PyTuple_GetItem(args,ii);
20252 }
20253 if (argc == 2) {
20254 int _v;
20255 {
20256 void *ptr;
20257 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20258 _v = 0;
20259 PyErr_Clear();
20260 } else {
20261 _v = 1;
20262 }
20263 }
20264 if (_v) {
20265 {
20266 void *ptr;
20267 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20268 _v = 0;
20269 PyErr_Clear();
20270 } else {
20271 _v = 1;
20272 }
20273 }
20274 if (_v) {
20275 return _wrap_DateTime___add____SWIG_0(self,args);
20276 }
20277 }
20278 }
20279 if (argc == 2) {
20280 int _v;
20281 {
20282 void *ptr;
20283 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20284 _v = 0;
20285 PyErr_Clear();
20286 } else {
20287 _v = 1;
20288 }
20289 }
20290 if (_v) {
20291 {
20292 void *ptr;
20293 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20294 _v = 0;
20295 PyErr_Clear();
20296 } else {
20297 _v = 1;
20298 }
20299 }
20300 if (_v) {
20301 return _wrap_DateTime___add____SWIG_1(self,args);
20302 }
20303 }
20304 }
20305
20306 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20307 return NULL;
20308 }
20309
20310
20311 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20312 PyObject *resultobj;
20313 wxDateTime *arg1 = (wxDateTime *) 0 ;
20314 wxDateTime *arg2 = 0 ;
20315 wxTimeSpan result;
20316 PyObject * obj0 = 0 ;
20317 PyObject * obj1 = 0 ;
20318
20319 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20323 SWIG_POINTER_EXCEPTION | 0)) == -1)
20324 SWIG_fail;
20325 if (arg2 == NULL) {
20326 PyErr_SetString(PyExc_TypeError,"null reference");
20327 SWIG_fail;
20328 }
20329 {
20330 PyThreadState* __tstate = wxPyBeginAllowThreads();
20331 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20332
20333 wxPyEndAllowThreads(__tstate);
20334 if (PyErr_Occurred()) SWIG_fail;
20335 }
20336 {
20337 wxTimeSpan * resultptr;
20338 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20340 }
20341 return resultobj;
20342 fail:
20343 return NULL;
20344 }
20345
20346
20347 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20348 PyObject *resultobj;
20349 wxDateTime *arg1 = (wxDateTime *) 0 ;
20350 wxTimeSpan *arg2 = 0 ;
20351 wxDateTime result;
20352 PyObject * obj0 = 0 ;
20353 PyObject * obj1 = 0 ;
20354
20355 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20358 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20359 SWIG_POINTER_EXCEPTION | 0)) == -1)
20360 SWIG_fail;
20361 if (arg2 == NULL) {
20362 PyErr_SetString(PyExc_TypeError,"null reference");
20363 SWIG_fail;
20364 }
20365 {
20366 PyThreadState* __tstate = wxPyBeginAllowThreads();
20367 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20368
20369 wxPyEndAllowThreads(__tstate);
20370 if (PyErr_Occurred()) SWIG_fail;
20371 }
20372 {
20373 wxDateTime * resultptr;
20374 resultptr = new wxDateTime((wxDateTime &) result);
20375 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20376 }
20377 return resultobj;
20378 fail:
20379 return NULL;
20380 }
20381
20382
20383 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20384 PyObject *resultobj;
20385 wxDateTime *arg1 = (wxDateTime *) 0 ;
20386 wxDateSpan *arg2 = 0 ;
20387 wxDateTime result;
20388 PyObject * obj0 = 0 ;
20389 PyObject * obj1 = 0 ;
20390
20391 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20394 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20395 SWIG_POINTER_EXCEPTION | 0)) == -1)
20396 SWIG_fail;
20397 if (arg2 == NULL) {
20398 PyErr_SetString(PyExc_TypeError,"null reference");
20399 SWIG_fail;
20400 }
20401 {
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20404
20405 wxPyEndAllowThreads(__tstate);
20406 if (PyErr_Occurred()) SWIG_fail;
20407 }
20408 {
20409 wxDateTime * resultptr;
20410 resultptr = new wxDateTime((wxDateTime &) result);
20411 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20412 }
20413 return resultobj;
20414 fail:
20415 return NULL;
20416 }
20417
20418
20419 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20420 int argc;
20421 PyObject *argv[3];
20422 int ii;
20423
20424 argc = PyObject_Length(args);
20425 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20426 argv[ii] = PyTuple_GetItem(args,ii);
20427 }
20428 if (argc == 2) {
20429 int _v;
20430 {
20431 void *ptr;
20432 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20433 _v = 0;
20434 PyErr_Clear();
20435 } else {
20436 _v = 1;
20437 }
20438 }
20439 if (_v) {
20440 {
20441 void *ptr;
20442 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20443 _v = 0;
20444 PyErr_Clear();
20445 } else {
20446 _v = 1;
20447 }
20448 }
20449 if (_v) {
20450 return _wrap_DateTime___sub____SWIG_0(self,args);
20451 }
20452 }
20453 }
20454 if (argc == 2) {
20455 int _v;
20456 {
20457 void *ptr;
20458 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20459 _v = 0;
20460 PyErr_Clear();
20461 } else {
20462 _v = 1;
20463 }
20464 }
20465 if (_v) {
20466 {
20467 void *ptr;
20468 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20469 _v = 0;
20470 PyErr_Clear();
20471 } else {
20472 _v = 1;
20473 }
20474 }
20475 if (_v) {
20476 return _wrap_DateTime___sub____SWIG_1(self,args);
20477 }
20478 }
20479 }
20480 if (argc == 2) {
20481 int _v;
20482 {
20483 void *ptr;
20484 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20485 _v = 0;
20486 PyErr_Clear();
20487 } else {
20488 _v = 1;
20489 }
20490 }
20491 if (_v) {
20492 {
20493 void *ptr;
20494 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20495 _v = 0;
20496 PyErr_Clear();
20497 } else {
20498 _v = 1;
20499 }
20500 }
20501 if (_v) {
20502 return _wrap_DateTime___sub____SWIG_2(self,args);
20503 }
20504 }
20505 }
20506
20507 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20508 return NULL;
20509 }
20510
20511
20512 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20513 PyObject *resultobj;
20514 wxDateTime *arg1 = (wxDateTime *) 0 ;
20515 wxDateTime *arg2 = (wxDateTime *) 0 ;
20516 bool result;
20517 PyObject * obj0 = 0 ;
20518 PyObject * obj1 = 0 ;
20519
20520 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20523 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20528
20529 wxPyEndAllowThreads(__tstate);
20530 if (PyErr_Occurred()) SWIG_fail;
20531 }
20532 {
20533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20534 }
20535 return resultobj;
20536 fail:
20537 return NULL;
20538 }
20539
20540
20541 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20542 PyObject *resultobj;
20543 wxDateTime *arg1 = (wxDateTime *) 0 ;
20544 wxDateTime *arg2 = (wxDateTime *) 0 ;
20545 bool result;
20546 PyObject * obj0 = 0 ;
20547 PyObject * obj1 = 0 ;
20548
20549 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20552 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20554 {
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20557
20558 wxPyEndAllowThreads(__tstate);
20559 if (PyErr_Occurred()) SWIG_fail;
20560 }
20561 {
20562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20563 }
20564 return resultobj;
20565 fail:
20566 return NULL;
20567 }
20568
20569
20570 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20571 PyObject *resultobj;
20572 wxDateTime *arg1 = (wxDateTime *) 0 ;
20573 wxDateTime *arg2 = (wxDateTime *) 0 ;
20574 bool result;
20575 PyObject * obj0 = 0 ;
20576 PyObject * obj1 = 0 ;
20577
20578 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20583 {
20584 PyThreadState* __tstate = wxPyBeginAllowThreads();
20585 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20586
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 {
20591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20592 }
20593 return resultobj;
20594 fail:
20595 return NULL;
20596 }
20597
20598
20599 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20600 PyObject *resultobj;
20601 wxDateTime *arg1 = (wxDateTime *) 0 ;
20602 wxDateTime *arg2 = (wxDateTime *) 0 ;
20603 bool result;
20604 PyObject * obj0 = 0 ;
20605 PyObject * obj1 = 0 ;
20606
20607 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20612 {
20613 PyThreadState* __tstate = wxPyBeginAllowThreads();
20614 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20615
20616 wxPyEndAllowThreads(__tstate);
20617 if (PyErr_Occurred()) SWIG_fail;
20618 }
20619 {
20620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20621 }
20622 return resultobj;
20623 fail:
20624 return NULL;
20625 }
20626
20627
20628 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20629 PyObject *resultobj;
20630 wxDateTime *arg1 = (wxDateTime *) 0 ;
20631 wxDateTime *arg2 = (wxDateTime *) 0 ;
20632 bool result;
20633 PyObject * obj0 = 0 ;
20634 PyObject * obj1 = 0 ;
20635
20636 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20641 {
20642 PyThreadState* __tstate = wxPyBeginAllowThreads();
20643 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20644
20645 wxPyEndAllowThreads(__tstate);
20646 if (PyErr_Occurred()) SWIG_fail;
20647 }
20648 {
20649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20650 }
20651 return resultobj;
20652 fail:
20653 return NULL;
20654 }
20655
20656
20657 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20658 PyObject *resultobj;
20659 wxDateTime *arg1 = (wxDateTime *) 0 ;
20660 wxDateTime *arg2 = (wxDateTime *) 0 ;
20661 bool result;
20662 PyObject * obj0 = 0 ;
20663 PyObject * obj1 = 0 ;
20664
20665 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20668 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20670 {
20671 PyThreadState* __tstate = wxPyBeginAllowThreads();
20672 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20673
20674 wxPyEndAllowThreads(__tstate);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 }
20677 {
20678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20679 }
20680 return resultobj;
20681 fail:
20682 return NULL;
20683 }
20684
20685
20686 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20687 PyObject *resultobj;
20688 wxDateTime *arg1 = (wxDateTime *) 0 ;
20689 wxString *arg2 = 0 ;
20690 int result;
20691 bool temp2 = False ;
20692 PyObject * obj0 = 0 ;
20693 PyObject * obj1 = 0 ;
20694 char *kwnames[] = {
20695 (char *) "self",(char *) "date", NULL
20696 };
20697
20698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20701 {
20702 arg2 = wxString_in_helper(obj1);
20703 if (arg2 == NULL) SWIG_fail;
20704 temp2 = True;
20705 }
20706 {
20707 PyThreadState* __tstate = wxPyBeginAllowThreads();
20708 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20709
20710 wxPyEndAllowThreads(__tstate);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 }
20713 resultobj = SWIG_FromInt((int)result);
20714 {
20715 if (temp2)
20716 delete arg2;
20717 }
20718 return resultobj;
20719 fail:
20720 {
20721 if (temp2)
20722 delete arg2;
20723 }
20724 return NULL;
20725 }
20726
20727
20728 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20729 PyObject *resultobj;
20730 wxDateTime *arg1 = (wxDateTime *) 0 ;
20731 wxString *arg2 = 0 ;
20732 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20733 wxString *arg3 = (wxString *) &arg3_defvalue ;
20734 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20735 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20736 int result;
20737 bool temp2 = False ;
20738 bool temp3 = False ;
20739 PyObject * obj0 = 0 ;
20740 PyObject * obj1 = 0 ;
20741 PyObject * obj2 = 0 ;
20742 PyObject * obj3 = 0 ;
20743 char *kwnames[] = {
20744 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20745 };
20746
20747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20750 {
20751 arg2 = wxString_in_helper(obj1);
20752 if (arg2 == NULL) SWIG_fail;
20753 temp2 = True;
20754 }
20755 if (obj2) {
20756 {
20757 arg3 = wxString_in_helper(obj2);
20758 if (arg3 == NULL) SWIG_fail;
20759 temp3 = True;
20760 }
20761 }
20762 if (obj3) {
20763 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20764 SWIG_POINTER_EXCEPTION | 0)) == -1)
20765 SWIG_fail;
20766 if (arg4 == NULL) {
20767 PyErr_SetString(PyExc_TypeError,"null reference");
20768 SWIG_fail;
20769 }
20770 }
20771 {
20772 PyThreadState* __tstate = wxPyBeginAllowThreads();
20773 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20774
20775 wxPyEndAllowThreads(__tstate);
20776 if (PyErr_Occurred()) SWIG_fail;
20777 }
20778 resultobj = SWIG_FromInt((int)result);
20779 {
20780 if (temp2)
20781 delete arg2;
20782 }
20783 {
20784 if (temp3)
20785 delete arg3;
20786 }
20787 return resultobj;
20788 fail:
20789 {
20790 if (temp2)
20791 delete arg2;
20792 }
20793 {
20794 if (temp3)
20795 delete arg3;
20796 }
20797 return NULL;
20798 }
20799
20800
20801 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20802 PyObject *resultobj;
20803 wxDateTime *arg1 = (wxDateTime *) 0 ;
20804 wxString *arg2 = 0 ;
20805 int result;
20806 bool temp2 = False ;
20807 PyObject * obj0 = 0 ;
20808 PyObject * obj1 = 0 ;
20809 char *kwnames[] = {
20810 (char *) "self",(char *) "datetime", NULL
20811 };
20812
20813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20816 {
20817 arg2 = wxString_in_helper(obj1);
20818 if (arg2 == NULL) SWIG_fail;
20819 temp2 = True;
20820 }
20821 {
20822 PyThreadState* __tstate = wxPyBeginAllowThreads();
20823 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20824
20825 wxPyEndAllowThreads(__tstate);
20826 if (PyErr_Occurred()) SWIG_fail;
20827 }
20828 resultobj = SWIG_FromInt((int)result);
20829 {
20830 if (temp2)
20831 delete arg2;
20832 }
20833 return resultobj;
20834 fail:
20835 {
20836 if (temp2)
20837 delete arg2;
20838 }
20839 return NULL;
20840 }
20841
20842
20843 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20844 PyObject *resultobj;
20845 wxDateTime *arg1 = (wxDateTime *) 0 ;
20846 wxString *arg2 = 0 ;
20847 int result;
20848 bool temp2 = False ;
20849 PyObject * obj0 = 0 ;
20850 PyObject * obj1 = 0 ;
20851 char *kwnames[] = {
20852 (char *) "self",(char *) "date", NULL
20853 };
20854
20855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20858 {
20859 arg2 = wxString_in_helper(obj1);
20860 if (arg2 == NULL) SWIG_fail;
20861 temp2 = True;
20862 }
20863 {
20864 PyThreadState* __tstate = wxPyBeginAllowThreads();
20865 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20866
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 resultobj = SWIG_FromInt((int)result);
20871 {
20872 if (temp2)
20873 delete arg2;
20874 }
20875 return resultobj;
20876 fail:
20877 {
20878 if (temp2)
20879 delete arg2;
20880 }
20881 return NULL;
20882 }
20883
20884
20885 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20886 PyObject *resultobj;
20887 wxDateTime *arg1 = (wxDateTime *) 0 ;
20888 wxString *arg2 = 0 ;
20889 int result;
20890 bool temp2 = False ;
20891 PyObject * obj0 = 0 ;
20892 PyObject * obj1 = 0 ;
20893 char *kwnames[] = {
20894 (char *) "self",(char *) "time", NULL
20895 };
20896
20897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20900 {
20901 arg2 = wxString_in_helper(obj1);
20902 if (arg2 == NULL) SWIG_fail;
20903 temp2 = True;
20904 }
20905 {
20906 PyThreadState* __tstate = wxPyBeginAllowThreads();
20907 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20908
20909 wxPyEndAllowThreads(__tstate);
20910 if (PyErr_Occurred()) SWIG_fail;
20911 }
20912 resultobj = SWIG_FromInt((int)result);
20913 {
20914 if (temp2)
20915 delete arg2;
20916 }
20917 return resultobj;
20918 fail:
20919 {
20920 if (temp2)
20921 delete arg2;
20922 }
20923 return NULL;
20924 }
20925
20926
20927 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20928 PyObject *resultobj;
20929 wxDateTime *arg1 = (wxDateTime *) 0 ;
20930 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20931 wxString *arg2 = (wxString *) &arg2_defvalue ;
20932 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20933 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20934 wxString result;
20935 bool temp2 = False ;
20936 bool temp3 = False ;
20937 PyObject * obj0 = 0 ;
20938 PyObject * obj1 = 0 ;
20939 PyObject * obj2 = 0 ;
20940 char *kwnames[] = {
20941 (char *) "self",(char *) "format",(char *) "tz", NULL
20942 };
20943
20944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
20945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20947 if (obj1) {
20948 {
20949 arg2 = wxString_in_helper(obj1);
20950 if (arg2 == NULL) SWIG_fail;
20951 temp2 = True;
20952 }
20953 }
20954 if (obj2) {
20955 {
20956 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
20957 temp3 = True;
20958 }
20959 }
20960 {
20961 PyThreadState* __tstate = wxPyBeginAllowThreads();
20962 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
20963
20964 wxPyEndAllowThreads(__tstate);
20965 if (PyErr_Occurred()) SWIG_fail;
20966 }
20967 {
20968 #if wxUSE_UNICODE
20969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20970 #else
20971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20972 #endif
20973 }
20974 {
20975 if (temp2)
20976 delete arg2;
20977 }
20978 {
20979 if (temp3) delete arg3;
20980 }
20981 return resultobj;
20982 fail:
20983 {
20984 if (temp2)
20985 delete arg2;
20986 }
20987 {
20988 if (temp3) delete arg3;
20989 }
20990 return NULL;
20991 }
20992
20993
20994 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20995 PyObject *resultobj;
20996 wxDateTime *arg1 = (wxDateTime *) 0 ;
20997 wxString result;
20998 PyObject * obj0 = 0 ;
20999 char *kwnames[] = {
21000 (char *) "self", NULL
21001 };
21002
21003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21006 {
21007 PyThreadState* __tstate = wxPyBeginAllowThreads();
21008 result = ((wxDateTime const *)arg1)->FormatDate();
21009
21010 wxPyEndAllowThreads(__tstate);
21011 if (PyErr_Occurred()) SWIG_fail;
21012 }
21013 {
21014 #if wxUSE_UNICODE
21015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21016 #else
21017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21018 #endif
21019 }
21020 return resultobj;
21021 fail:
21022 return NULL;
21023 }
21024
21025
21026 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21027 PyObject *resultobj;
21028 wxDateTime *arg1 = (wxDateTime *) 0 ;
21029 wxString result;
21030 PyObject * obj0 = 0 ;
21031 char *kwnames[] = {
21032 (char *) "self", NULL
21033 };
21034
21035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21038 {
21039 PyThreadState* __tstate = wxPyBeginAllowThreads();
21040 result = ((wxDateTime const *)arg1)->FormatTime();
21041
21042 wxPyEndAllowThreads(__tstate);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 }
21045 {
21046 #if wxUSE_UNICODE
21047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21048 #else
21049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21050 #endif
21051 }
21052 return resultobj;
21053 fail:
21054 return NULL;
21055 }
21056
21057
21058 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21059 PyObject *resultobj;
21060 wxDateTime *arg1 = (wxDateTime *) 0 ;
21061 wxString result;
21062 PyObject * obj0 = 0 ;
21063 char *kwnames[] = {
21064 (char *) "self", NULL
21065 };
21066
21067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21070 {
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 result = ((wxDateTime const *)arg1)->FormatISODate();
21073
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 {
21078 #if wxUSE_UNICODE
21079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21080 #else
21081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21082 #endif
21083 }
21084 return resultobj;
21085 fail:
21086 return NULL;
21087 }
21088
21089
21090 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21091 PyObject *resultobj;
21092 wxDateTime *arg1 = (wxDateTime *) 0 ;
21093 wxString result;
21094 PyObject * obj0 = 0 ;
21095 char *kwnames[] = {
21096 (char *) "self", NULL
21097 };
21098
21099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21102 {
21103 PyThreadState* __tstate = wxPyBeginAllowThreads();
21104 result = ((wxDateTime const *)arg1)->FormatISOTime();
21105
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 {
21110 #if wxUSE_UNICODE
21111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21112 #else
21113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21114 #endif
21115 }
21116 return resultobj;
21117 fail:
21118 return NULL;
21119 }
21120
21121
21122 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21123 PyObject *obj;
21124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21125 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21126 Py_INCREF(obj);
21127 return Py_BuildValue((char *)"");
21128 }
21129 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21130 PyObject *resultobj;
21131 long arg1 ;
21132 wxTimeSpan result;
21133 PyObject * obj0 = 0 ;
21134 char *kwnames[] = {
21135 (char *) "sec", NULL
21136 };
21137
21138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21139 arg1 = (long) SWIG_AsLong(obj0);
21140 if (PyErr_Occurred()) SWIG_fail;
21141 {
21142 PyThreadState* __tstate = wxPyBeginAllowThreads();
21143 result = wxTimeSpan::Seconds(arg1);
21144
21145 wxPyEndAllowThreads(__tstate);
21146 if (PyErr_Occurred()) SWIG_fail;
21147 }
21148 {
21149 wxTimeSpan * resultptr;
21150 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21152 }
21153 return resultobj;
21154 fail:
21155 return NULL;
21156 }
21157
21158
21159 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21160 PyObject *resultobj;
21161 wxTimeSpan result;
21162 char *kwnames[] = {
21163 NULL
21164 };
21165
21166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21167 {
21168 PyThreadState* __tstate = wxPyBeginAllowThreads();
21169 result = wxTimeSpan::Second();
21170
21171 wxPyEndAllowThreads(__tstate);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
21174 {
21175 wxTimeSpan * resultptr;
21176 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21177 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21178 }
21179 return resultobj;
21180 fail:
21181 return NULL;
21182 }
21183
21184
21185 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21186 PyObject *resultobj;
21187 long arg1 ;
21188 wxTimeSpan result;
21189 PyObject * obj0 = 0 ;
21190 char *kwnames[] = {
21191 (char *) "min", NULL
21192 };
21193
21194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21195 arg1 = (long) SWIG_AsLong(obj0);
21196 if (PyErr_Occurred()) SWIG_fail;
21197 {
21198 PyThreadState* __tstate = wxPyBeginAllowThreads();
21199 result = wxTimeSpan::Minutes(arg1);
21200
21201 wxPyEndAllowThreads(__tstate);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 {
21205 wxTimeSpan * resultptr;
21206 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21207 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21208 }
21209 return resultobj;
21210 fail:
21211 return NULL;
21212 }
21213
21214
21215 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21216 PyObject *resultobj;
21217 wxTimeSpan result;
21218 char *kwnames[] = {
21219 NULL
21220 };
21221
21222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21223 {
21224 PyThreadState* __tstate = wxPyBeginAllowThreads();
21225 result = wxTimeSpan::Minute();
21226
21227 wxPyEndAllowThreads(__tstate);
21228 if (PyErr_Occurred()) SWIG_fail;
21229 }
21230 {
21231 wxTimeSpan * resultptr;
21232 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21233 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21234 }
21235 return resultobj;
21236 fail:
21237 return NULL;
21238 }
21239
21240
21241 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21242 PyObject *resultobj;
21243 long arg1 ;
21244 wxTimeSpan result;
21245 PyObject * obj0 = 0 ;
21246 char *kwnames[] = {
21247 (char *) "hours", NULL
21248 };
21249
21250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21251 arg1 = (long) SWIG_AsLong(obj0);
21252 if (PyErr_Occurred()) SWIG_fail;
21253 {
21254 PyThreadState* __tstate = wxPyBeginAllowThreads();
21255 result = wxTimeSpan::Hours(arg1);
21256
21257 wxPyEndAllowThreads(__tstate);
21258 if (PyErr_Occurred()) SWIG_fail;
21259 }
21260 {
21261 wxTimeSpan * resultptr;
21262 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21263 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21264 }
21265 return resultobj;
21266 fail:
21267 return NULL;
21268 }
21269
21270
21271 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21272 PyObject *resultobj;
21273 wxTimeSpan result;
21274 char *kwnames[] = {
21275 NULL
21276 };
21277
21278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 result = wxTimeSpan::Hour();
21282
21283 wxPyEndAllowThreads(__tstate);
21284 if (PyErr_Occurred()) SWIG_fail;
21285 }
21286 {
21287 wxTimeSpan * resultptr;
21288 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21290 }
21291 return resultobj;
21292 fail:
21293 return NULL;
21294 }
21295
21296
21297 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21298 PyObject *resultobj;
21299 long arg1 ;
21300 wxTimeSpan result;
21301 PyObject * obj0 = 0 ;
21302 char *kwnames[] = {
21303 (char *) "days", NULL
21304 };
21305
21306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21307 arg1 = (long) SWIG_AsLong(obj0);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 {
21310 PyThreadState* __tstate = wxPyBeginAllowThreads();
21311 result = wxTimeSpan::Days(arg1);
21312
21313 wxPyEndAllowThreads(__tstate);
21314 if (PyErr_Occurred()) SWIG_fail;
21315 }
21316 {
21317 wxTimeSpan * resultptr;
21318 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21319 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21320 }
21321 return resultobj;
21322 fail:
21323 return NULL;
21324 }
21325
21326
21327 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21328 PyObject *resultobj;
21329 wxTimeSpan result;
21330 char *kwnames[] = {
21331 NULL
21332 };
21333
21334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21335 {
21336 PyThreadState* __tstate = wxPyBeginAllowThreads();
21337 result = wxTimeSpan::Day();
21338
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 {
21343 wxTimeSpan * resultptr;
21344 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21345 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21346 }
21347 return resultobj;
21348 fail:
21349 return NULL;
21350 }
21351
21352
21353 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21354 PyObject *resultobj;
21355 long arg1 ;
21356 wxTimeSpan result;
21357 PyObject * obj0 = 0 ;
21358 char *kwnames[] = {
21359 (char *) "days", NULL
21360 };
21361
21362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21363 arg1 = (long) SWIG_AsLong(obj0);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 {
21366 PyThreadState* __tstate = wxPyBeginAllowThreads();
21367 result = wxTimeSpan::Weeks(arg1);
21368
21369 wxPyEndAllowThreads(__tstate);
21370 if (PyErr_Occurred()) SWIG_fail;
21371 }
21372 {
21373 wxTimeSpan * resultptr;
21374 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21375 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21376 }
21377 return resultobj;
21378 fail:
21379 return NULL;
21380 }
21381
21382
21383 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21384 PyObject *resultobj;
21385 wxTimeSpan result;
21386 char *kwnames[] = {
21387 NULL
21388 };
21389
21390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21391 {
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 result = wxTimeSpan::Week();
21394
21395 wxPyEndAllowThreads(__tstate);
21396 if (PyErr_Occurred()) SWIG_fail;
21397 }
21398 {
21399 wxTimeSpan * resultptr;
21400 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21401 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21402 }
21403 return resultobj;
21404 fail:
21405 return NULL;
21406 }
21407
21408
21409 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21410 PyObject *resultobj;
21411 long arg1 = (long) 0 ;
21412 long arg2 = (long) 0 ;
21413 long arg3 = (long) 0 ;
21414 long arg4 = (long) 0 ;
21415 wxTimeSpan *result;
21416 PyObject * obj0 = 0 ;
21417 PyObject * obj1 = 0 ;
21418 PyObject * obj2 = 0 ;
21419 PyObject * obj3 = 0 ;
21420 char *kwnames[] = {
21421 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21422 };
21423
21424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21425 if (obj0) {
21426 arg1 = (long) SWIG_AsLong(obj0);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 if (obj1) {
21430 arg2 = (long) SWIG_AsLong(obj1);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 if (obj2) {
21434 arg3 = (long) SWIG_AsLong(obj2);
21435 if (PyErr_Occurred()) SWIG_fail;
21436 }
21437 if (obj3) {
21438 arg4 = (long) SWIG_AsLong(obj3);
21439 if (PyErr_Occurred()) SWIG_fail;
21440 }
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21444
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21449 return resultobj;
21450 fail:
21451 return NULL;
21452 }
21453
21454
21455 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21456 PyObject *resultobj;
21457 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21458 PyObject * obj0 = 0 ;
21459 char *kwnames[] = {
21460 (char *) "self", NULL
21461 };
21462
21463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21466 {
21467 PyThreadState* __tstate = wxPyBeginAllowThreads();
21468 delete arg1;
21469
21470 wxPyEndAllowThreads(__tstate);
21471 if (PyErr_Occurred()) SWIG_fail;
21472 }
21473 Py_INCREF(Py_None); resultobj = Py_None;
21474 return resultobj;
21475 fail:
21476 return NULL;
21477 }
21478
21479
21480 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21481 PyObject *resultobj;
21482 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21483 wxTimeSpan *arg2 = 0 ;
21484 wxTimeSpan *result;
21485 PyObject * obj0 = 0 ;
21486 PyObject * obj1 = 0 ;
21487 char *kwnames[] = {
21488 (char *) "self",(char *) "diff", NULL
21489 };
21490
21491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21495 SWIG_POINTER_EXCEPTION | 0)) == -1)
21496 SWIG_fail;
21497 if (arg2 == NULL) {
21498 PyErr_SetString(PyExc_TypeError,"null reference");
21499 SWIG_fail;
21500 }
21501 {
21502 PyThreadState* __tstate = wxPyBeginAllowThreads();
21503 {
21504 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21505 result = (wxTimeSpan *) &_result_ref;
21506 }
21507
21508 wxPyEndAllowThreads(__tstate);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21512 return resultobj;
21513 fail:
21514 return NULL;
21515 }
21516
21517
21518 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21519 PyObject *resultobj;
21520 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21521 wxTimeSpan *arg2 = 0 ;
21522 wxTimeSpan *result;
21523 PyObject * obj0 = 0 ;
21524 PyObject * obj1 = 0 ;
21525 char *kwnames[] = {
21526 (char *) "self",(char *) "diff", NULL
21527 };
21528
21529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21533 SWIG_POINTER_EXCEPTION | 0)) == -1)
21534 SWIG_fail;
21535 if (arg2 == NULL) {
21536 PyErr_SetString(PyExc_TypeError,"null reference");
21537 SWIG_fail;
21538 }
21539 {
21540 PyThreadState* __tstate = wxPyBeginAllowThreads();
21541 {
21542 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21543 result = (wxTimeSpan *) &_result_ref;
21544 }
21545
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj;
21558 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21559 int arg2 ;
21560 wxTimeSpan *result;
21561 PyObject * obj0 = 0 ;
21562 PyObject * obj1 = 0 ;
21563 char *kwnames[] = {
21564 (char *) "self",(char *) "n", NULL
21565 };
21566
21567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21570 arg2 = (int) SWIG_AsInt(obj1);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 {
21573 PyThreadState* __tstate = wxPyBeginAllowThreads();
21574 {
21575 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21576 result = (wxTimeSpan *) &_result_ref;
21577 }
21578
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21583 return resultobj;
21584 fail:
21585 return NULL;
21586 }
21587
21588
21589 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21590 PyObject *resultobj;
21591 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21592 wxTimeSpan *result;
21593 PyObject * obj0 = 0 ;
21594 char *kwnames[] = {
21595 (char *) "self", NULL
21596 };
21597
21598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21601 {
21602 PyThreadState* __tstate = wxPyBeginAllowThreads();
21603 {
21604 wxTimeSpan &_result_ref = (arg1)->Neg();
21605 result = (wxTimeSpan *) &_result_ref;
21606 }
21607
21608 wxPyEndAllowThreads(__tstate);
21609 if (PyErr_Occurred()) SWIG_fail;
21610 }
21611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21612 return resultobj;
21613 fail:
21614 return NULL;
21615 }
21616
21617
21618 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj;
21620 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21621 wxTimeSpan result;
21622 PyObject * obj0 = 0 ;
21623 char *kwnames[] = {
21624 (char *) "self", NULL
21625 };
21626
21627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21630 {
21631 PyThreadState* __tstate = wxPyBeginAllowThreads();
21632 result = ((wxTimeSpan const *)arg1)->Abs();
21633
21634 wxPyEndAllowThreads(__tstate);
21635 if (PyErr_Occurred()) SWIG_fail;
21636 }
21637 {
21638 wxTimeSpan * resultptr;
21639 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21640 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21641 }
21642 return resultobj;
21643 fail:
21644 return NULL;
21645 }
21646
21647
21648 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21649 PyObject *resultobj;
21650 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21651 wxTimeSpan *arg2 = 0 ;
21652 wxTimeSpan *result;
21653 PyObject * obj0 = 0 ;
21654 PyObject * obj1 = 0 ;
21655 char *kwnames[] = {
21656 (char *) "self",(char *) "diff", NULL
21657 };
21658
21659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21662 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21663 SWIG_POINTER_EXCEPTION | 0)) == -1)
21664 SWIG_fail;
21665 if (arg2 == NULL) {
21666 PyErr_SetString(PyExc_TypeError,"null reference");
21667 SWIG_fail;
21668 }
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 {
21672 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21673 result = (wxTimeSpan *) &_result_ref;
21674 }
21675
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21680 return resultobj;
21681 fail:
21682 return NULL;
21683 }
21684
21685
21686 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj;
21688 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21689 wxTimeSpan *arg2 = 0 ;
21690 wxTimeSpan *result;
21691 PyObject * obj0 = 0 ;
21692 PyObject * obj1 = 0 ;
21693 char *kwnames[] = {
21694 (char *) "self",(char *) "diff", NULL
21695 };
21696
21697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21701 SWIG_POINTER_EXCEPTION | 0)) == -1)
21702 SWIG_fail;
21703 if (arg2 == NULL) {
21704 PyErr_SetString(PyExc_TypeError,"null reference");
21705 SWIG_fail;
21706 }
21707 {
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 {
21710 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21711 result = (wxTimeSpan *) &_result_ref;
21712 }
21713
21714 wxPyEndAllowThreads(__tstate);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 }
21717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21718 return resultobj;
21719 fail:
21720 return NULL;
21721 }
21722
21723
21724 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21725 PyObject *resultobj;
21726 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21727 int arg2 ;
21728 wxTimeSpan *result;
21729 PyObject * obj0 = 0 ;
21730 PyObject * obj1 = 0 ;
21731 char *kwnames[] = {
21732 (char *) "self",(char *) "n", NULL
21733 };
21734
21735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21738 arg2 = (int) SWIG_AsInt(obj1);
21739 if (PyErr_Occurred()) SWIG_fail;
21740 {
21741 PyThreadState* __tstate = wxPyBeginAllowThreads();
21742 {
21743 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21744 result = (wxTimeSpan *) &_result_ref;
21745 }
21746
21747 wxPyEndAllowThreads(__tstate);
21748 if (PyErr_Occurred()) SWIG_fail;
21749 }
21750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21751 return resultobj;
21752 fail:
21753 return NULL;
21754 }
21755
21756
21757 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21758 PyObject *resultobj;
21759 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21760 wxTimeSpan *result;
21761 PyObject * obj0 = 0 ;
21762 char *kwnames[] = {
21763 (char *) "self", NULL
21764 };
21765
21766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21769 {
21770 PyThreadState* __tstate = wxPyBeginAllowThreads();
21771 {
21772 wxTimeSpan &_result_ref = (arg1)->operator -();
21773 result = (wxTimeSpan *) &_result_ref;
21774 }
21775
21776 wxPyEndAllowThreads(__tstate);
21777 if (PyErr_Occurred()) SWIG_fail;
21778 }
21779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21780 return resultobj;
21781 fail:
21782 return NULL;
21783 }
21784
21785
21786 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21787 PyObject *resultobj;
21788 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21789 wxTimeSpan *arg2 = 0 ;
21790 wxTimeSpan result;
21791 PyObject * obj0 = 0 ;
21792 PyObject * obj1 = 0 ;
21793 char *kwnames[] = {
21794 (char *) "self",(char *) "other", NULL
21795 };
21796
21797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21801 SWIG_POINTER_EXCEPTION | 0)) == -1)
21802 SWIG_fail;
21803 if (arg2 == NULL) {
21804 PyErr_SetString(PyExc_TypeError,"null reference");
21805 SWIG_fail;
21806 }
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
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___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21826 PyObject *resultobj;
21827 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21828 wxTimeSpan *arg2 = 0 ;
21829 wxTimeSpan result;
21830 PyObject * obj0 = 0 ;
21831 PyObject * obj1 = 0 ;
21832 char *kwnames[] = {
21833 (char *) "self",(char *) "other", NULL
21834 };
21835
21836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21839 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21840 SWIG_POINTER_EXCEPTION | 0)) == -1)
21841 SWIG_fail;
21842 if (arg2 == NULL) {
21843 PyErr_SetString(PyExc_TypeError,"null reference");
21844 SWIG_fail;
21845 }
21846 {
21847 PyThreadState* __tstate = wxPyBeginAllowThreads();
21848 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21849
21850 wxPyEndAllowThreads(__tstate);
21851 if (PyErr_Occurred()) SWIG_fail;
21852 }
21853 {
21854 wxTimeSpan * resultptr;
21855 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21857 }
21858 return resultobj;
21859 fail:
21860 return NULL;
21861 }
21862
21863
21864 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21865 PyObject *resultobj;
21866 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21867 int arg2 ;
21868 wxTimeSpan result;
21869 PyObject * obj0 = 0 ;
21870 PyObject * obj1 = 0 ;
21871 char *kwnames[] = {
21872 (char *) "self",(char *) "n", NULL
21873 };
21874
21875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21878 arg2 = (int) SWIG_AsInt(obj1);
21879 if (PyErr_Occurred()) SWIG_fail;
21880 {
21881 PyThreadState* __tstate = wxPyBeginAllowThreads();
21882 result = wxTimeSpan___mul__(arg1,arg2);
21883
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 {
21888 wxTimeSpan * resultptr;
21889 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21890 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21891 }
21892 return resultobj;
21893 fail:
21894 return NULL;
21895 }
21896
21897
21898 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21899 PyObject *resultobj;
21900 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21901 int arg2 ;
21902 wxTimeSpan result;
21903 PyObject * obj0 = 0 ;
21904 PyObject * obj1 = 0 ;
21905 char *kwnames[] = {
21906 (char *) "self",(char *) "n", NULL
21907 };
21908
21909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21912 arg2 = (int) SWIG_AsInt(obj1);
21913 if (PyErr_Occurred()) SWIG_fail;
21914 {
21915 PyThreadState* __tstate = wxPyBeginAllowThreads();
21916 result = wxTimeSpan___rmul__(arg1,arg2);
21917
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 {
21922 wxTimeSpan * resultptr;
21923 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21924 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21925 }
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj;
21934 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21935 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21936 bool result;
21937 PyObject * obj0 = 0 ;
21938 PyObject * obj1 = 0 ;
21939 char *kwnames[] = {
21940 (char *) "self",(char *) "other", NULL
21941 };
21942
21943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
21944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21946 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21948 {
21949 PyThreadState* __tstate = wxPyBeginAllowThreads();
21950 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
21951
21952 wxPyEndAllowThreads(__tstate);
21953 if (PyErr_Occurred()) SWIG_fail;
21954 }
21955 {
21956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21957 }
21958 return resultobj;
21959 fail:
21960 return NULL;
21961 }
21962
21963
21964 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
21965 PyObject *resultobj;
21966 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21967 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21968 bool result;
21969 PyObject * obj0 = 0 ;
21970 PyObject * obj1 = 0 ;
21971 char *kwnames[] = {
21972 (char *) "self",(char *) "other", NULL
21973 };
21974
21975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
21976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21980 {
21981 PyThreadState* __tstate = wxPyBeginAllowThreads();
21982 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
21983
21984 wxPyEndAllowThreads(__tstate);
21985 if (PyErr_Occurred()) SWIG_fail;
21986 }
21987 {
21988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21989 }
21990 return resultobj;
21991 fail:
21992 return NULL;
21993 }
21994
21995
21996 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21997 PyObject *resultobj;
21998 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21999 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22000 bool result;
22001 PyObject * obj0 = 0 ;
22002 PyObject * obj1 = 0 ;
22003 char *kwnames[] = {
22004 (char *) "self",(char *) "other", NULL
22005 };
22006
22007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22010 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22012 {
22013 PyThreadState* __tstate = wxPyBeginAllowThreads();
22014 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22015
22016 wxPyEndAllowThreads(__tstate);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 }
22019 {
22020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22021 }
22022 return resultobj;
22023 fail:
22024 return NULL;
22025 }
22026
22027
22028 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22029 PyObject *resultobj;
22030 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22031 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22032 bool result;
22033 PyObject * obj0 = 0 ;
22034 PyObject * obj1 = 0 ;
22035 char *kwnames[] = {
22036 (char *) "self",(char *) "other", NULL
22037 };
22038
22039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22042 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22044 {
22045 PyThreadState* __tstate = wxPyBeginAllowThreads();
22046 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22047
22048 wxPyEndAllowThreads(__tstate);
22049 if (PyErr_Occurred()) SWIG_fail;
22050 }
22051 {
22052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22053 }
22054 return resultobj;
22055 fail:
22056 return NULL;
22057 }
22058
22059
22060 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj;
22062 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22063 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22064 bool result;
22065 PyObject * obj0 = 0 ;
22066 PyObject * obj1 = 0 ;
22067 char *kwnames[] = {
22068 (char *) "self",(char *) "other", NULL
22069 };
22070
22071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22079
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 {
22084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22085 }
22086 return resultobj;
22087 fail:
22088 return NULL;
22089 }
22090
22091
22092 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22093 PyObject *resultobj;
22094 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22095 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22096 bool result;
22097 PyObject * obj0 = 0 ;
22098 PyObject * obj1 = 0 ;
22099 char *kwnames[] = {
22100 (char *) "self",(char *) "other", NULL
22101 };
22102
22103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22108 {
22109 PyThreadState* __tstate = wxPyBeginAllowThreads();
22110 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22111
22112 wxPyEndAllowThreads(__tstate);
22113 if (PyErr_Occurred()) SWIG_fail;
22114 }
22115 {
22116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22117 }
22118 return resultobj;
22119 fail:
22120 return NULL;
22121 }
22122
22123
22124 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22125 PyObject *resultobj;
22126 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22127 bool result;
22128 PyObject * obj0 = 0 ;
22129 char *kwnames[] = {
22130 (char *) "self", NULL
22131 };
22132
22133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22136 {
22137 PyThreadState* __tstate = wxPyBeginAllowThreads();
22138 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22139
22140 wxPyEndAllowThreads(__tstate);
22141 if (PyErr_Occurred()) SWIG_fail;
22142 }
22143 {
22144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22145 }
22146 return resultobj;
22147 fail:
22148 return NULL;
22149 }
22150
22151
22152 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22153 PyObject *resultobj;
22154 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22155 bool result;
22156 PyObject * obj0 = 0 ;
22157 char *kwnames[] = {
22158 (char *) "self", NULL
22159 };
22160
22161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22164 {
22165 PyThreadState* __tstate = wxPyBeginAllowThreads();
22166 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22167
22168 wxPyEndAllowThreads(__tstate);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 }
22171 {
22172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22173 }
22174 return resultobj;
22175 fail:
22176 return NULL;
22177 }
22178
22179
22180 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22181 PyObject *resultobj;
22182 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22183 bool result;
22184 PyObject * obj0 = 0 ;
22185 char *kwnames[] = {
22186 (char *) "self", NULL
22187 };
22188
22189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22195
22196 wxPyEndAllowThreads(__tstate);
22197 if (PyErr_Occurred()) SWIG_fail;
22198 }
22199 {
22200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22201 }
22202 return resultobj;
22203 fail:
22204 return NULL;
22205 }
22206
22207
22208 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22209 PyObject *resultobj;
22210 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22211 wxTimeSpan *arg2 = 0 ;
22212 bool result;
22213 PyObject * obj0 = 0 ;
22214 PyObject * obj1 = 0 ;
22215 char *kwnames[] = {
22216 (char *) "self",(char *) "ts", NULL
22217 };
22218
22219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22223 SWIG_POINTER_EXCEPTION | 0)) == -1)
22224 SWIG_fail;
22225 if (arg2 == NULL) {
22226 PyErr_SetString(PyExc_TypeError,"null reference");
22227 SWIG_fail;
22228 }
22229 {
22230 PyThreadState* __tstate = wxPyBeginAllowThreads();
22231 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22232
22233 wxPyEndAllowThreads(__tstate);
22234 if (PyErr_Occurred()) SWIG_fail;
22235 }
22236 {
22237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22238 }
22239 return resultobj;
22240 fail:
22241 return NULL;
22242 }
22243
22244
22245 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22246 PyObject *resultobj;
22247 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22248 wxTimeSpan *arg2 = 0 ;
22249 bool result;
22250 PyObject * obj0 = 0 ;
22251 PyObject * obj1 = 0 ;
22252 char *kwnames[] = {
22253 (char *) "self",(char *) "ts", NULL
22254 };
22255
22256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22259 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22260 SWIG_POINTER_EXCEPTION | 0)) == -1)
22261 SWIG_fail;
22262 if (arg2 == NULL) {
22263 PyErr_SetString(PyExc_TypeError,"null reference");
22264 SWIG_fail;
22265 }
22266 {
22267 PyThreadState* __tstate = wxPyBeginAllowThreads();
22268 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22269
22270 wxPyEndAllowThreads(__tstate);
22271 if (PyErr_Occurred()) SWIG_fail;
22272 }
22273 {
22274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22275 }
22276 return resultobj;
22277 fail:
22278 return NULL;
22279 }
22280
22281
22282 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22283 PyObject *resultobj;
22284 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22285 wxTimeSpan *arg2 = 0 ;
22286 bool result;
22287 PyObject * obj0 = 0 ;
22288 PyObject * obj1 = 0 ;
22289 char *kwnames[] = {
22290 (char *) "self",(char *) "t", NULL
22291 };
22292
22293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22297 SWIG_POINTER_EXCEPTION | 0)) == -1)
22298 SWIG_fail;
22299 if (arg2 == NULL) {
22300 PyErr_SetString(PyExc_TypeError,"null reference");
22301 SWIG_fail;
22302 }
22303 {
22304 PyThreadState* __tstate = wxPyBeginAllowThreads();
22305 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22306
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 {
22311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22312 }
22313 return resultobj;
22314 fail:
22315 return NULL;
22316 }
22317
22318
22319 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22320 PyObject *resultobj;
22321 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22322 int result;
22323 PyObject * obj0 = 0 ;
22324 char *kwnames[] = {
22325 (char *) "self", NULL
22326 };
22327
22328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22331 {
22332 PyThreadState* __tstate = wxPyBeginAllowThreads();
22333 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22334
22335 wxPyEndAllowThreads(__tstate);
22336 if (PyErr_Occurred()) SWIG_fail;
22337 }
22338 resultobj = SWIG_FromInt((int)result);
22339 return resultobj;
22340 fail:
22341 return NULL;
22342 }
22343
22344
22345 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22346 PyObject *resultobj;
22347 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22348 int result;
22349 PyObject * obj0 = 0 ;
22350 char *kwnames[] = {
22351 (char *) "self", NULL
22352 };
22353
22354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22357 {
22358 PyThreadState* __tstate = wxPyBeginAllowThreads();
22359 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22360
22361 wxPyEndAllowThreads(__tstate);
22362 if (PyErr_Occurred()) SWIG_fail;
22363 }
22364 resultobj = SWIG_FromInt((int)result);
22365 return resultobj;
22366 fail:
22367 return NULL;
22368 }
22369
22370
22371 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22372 PyObject *resultobj;
22373 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22374 int result;
22375 PyObject * obj0 = 0 ;
22376 char *kwnames[] = {
22377 (char *) "self", NULL
22378 };
22379
22380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22383 {
22384 PyThreadState* __tstate = wxPyBeginAllowThreads();
22385 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22386
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 resultobj = SWIG_FromInt((int)result);
22391 return resultobj;
22392 fail:
22393 return NULL;
22394 }
22395
22396
22397 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22398 PyObject *resultobj;
22399 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22400 int result;
22401 PyObject * obj0 = 0 ;
22402 char *kwnames[] = {
22403 (char *) "self", NULL
22404 };
22405
22406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22412
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 resultobj = SWIG_FromInt((int)result);
22417 return resultobj;
22418 fail:
22419 return NULL;
22420 }
22421
22422
22423 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22424 PyObject *resultobj;
22425 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22426 wxLongLong result;
22427 PyObject * obj0 = 0 ;
22428 char *kwnames[] = {
22429 (char *) "self", NULL
22430 };
22431
22432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22435 {
22436 PyThreadState* __tstate = wxPyBeginAllowThreads();
22437 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22438
22439 wxPyEndAllowThreads(__tstate);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 {
22443 PyObject *hi, *lo, *shifter, *shifted;
22444 hi = PyLong_FromLong( (&result)->GetHi() );
22445 lo = PyLong_FromLong( (&result)->GetLo() );
22446 shifter = PyLong_FromLong(32);
22447 shifted = PyNumber_Lshift(hi, shifter);
22448 resultobj = PyNumber_Or(shifted, lo);
22449 Py_DECREF(hi);
22450 Py_DECREF(lo);
22451 Py_DECREF(shifter);
22452 Py_DECREF(shifted);
22453 }
22454 return resultobj;
22455 fail:
22456 return NULL;
22457 }
22458
22459
22460 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22461 PyObject *resultobj;
22462 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22463 wxLongLong result;
22464 PyObject * obj0 = 0 ;
22465 char *kwnames[] = {
22466 (char *) "self", NULL
22467 };
22468
22469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22472 {
22473 PyThreadState* __tstate = wxPyBeginAllowThreads();
22474 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22475
22476 wxPyEndAllowThreads(__tstate);
22477 if (PyErr_Occurred()) SWIG_fail;
22478 }
22479 {
22480 PyObject *hi, *lo, *shifter, *shifted;
22481 hi = PyLong_FromLong( (&result)->GetHi() );
22482 lo = PyLong_FromLong( (&result)->GetLo() );
22483 shifter = PyLong_FromLong(32);
22484 shifted = PyNumber_Lshift(hi, shifter);
22485 resultobj = PyNumber_Or(shifted, lo);
22486 Py_DECREF(hi);
22487 Py_DECREF(lo);
22488 Py_DECREF(shifter);
22489 Py_DECREF(shifted);
22490 }
22491 return resultobj;
22492 fail:
22493 return NULL;
22494 }
22495
22496
22497 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22498 PyObject *resultobj;
22499 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22500 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22501 wxString *arg2 = (wxString *) &arg2_defvalue ;
22502 wxString result;
22503 bool temp2 = False ;
22504 PyObject * obj0 = 0 ;
22505 PyObject * obj1 = 0 ;
22506 char *kwnames[] = {
22507 (char *) "self",(char *) "format", NULL
22508 };
22509
22510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22513 if (obj1) {
22514 {
22515 arg2 = wxString_in_helper(obj1);
22516 if (arg2 == NULL) SWIG_fail;
22517 temp2 = True;
22518 }
22519 }
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22523
22524 wxPyEndAllowThreads(__tstate);
22525 if (PyErr_Occurred()) SWIG_fail;
22526 }
22527 {
22528 #if wxUSE_UNICODE
22529 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22530 #else
22531 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22532 #endif
22533 }
22534 {
22535 if (temp2)
22536 delete arg2;
22537 }
22538 return resultobj;
22539 fail:
22540 {
22541 if (temp2)
22542 delete arg2;
22543 }
22544 return NULL;
22545 }
22546
22547
22548 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22549 PyObject *obj;
22550 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22551 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22552 Py_INCREF(obj);
22553 return Py_BuildValue((char *)"");
22554 }
22555 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22556 PyObject *resultobj;
22557 int arg1 = (int) 0 ;
22558 int arg2 = (int) 0 ;
22559 int arg3 = (int) 0 ;
22560 int arg4 = (int) 0 ;
22561 wxDateSpan *result;
22562 PyObject * obj0 = 0 ;
22563 PyObject * obj1 = 0 ;
22564 PyObject * obj2 = 0 ;
22565 PyObject * obj3 = 0 ;
22566 char *kwnames[] = {
22567 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22568 };
22569
22570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22571 if (obj0) {
22572 arg1 = (int) SWIG_AsInt(obj0);
22573 if (PyErr_Occurred()) SWIG_fail;
22574 }
22575 if (obj1) {
22576 arg2 = (int) SWIG_AsInt(obj1);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 if (obj2) {
22580 arg3 = (int) SWIG_AsInt(obj2);
22581 if (PyErr_Occurred()) SWIG_fail;
22582 }
22583 if (obj3) {
22584 arg4 = (int) SWIG_AsInt(obj3);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
22587 {
22588 PyThreadState* __tstate = wxPyBeginAllowThreads();
22589 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22590
22591 wxPyEndAllowThreads(__tstate);
22592 if (PyErr_Occurred()) SWIG_fail;
22593 }
22594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22595 return resultobj;
22596 fail:
22597 return NULL;
22598 }
22599
22600
22601 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22602 PyObject *resultobj;
22603 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22604 PyObject * obj0 = 0 ;
22605 char *kwnames[] = {
22606 (char *) "self", NULL
22607 };
22608
22609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22612 {
22613 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 delete arg1;
22615
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 Py_INCREF(Py_None); resultobj = Py_None;
22620 return resultobj;
22621 fail:
22622 return NULL;
22623 }
22624
22625
22626 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22627 PyObject *resultobj;
22628 int arg1 ;
22629 wxDateSpan result;
22630 PyObject * obj0 = 0 ;
22631 char *kwnames[] = {
22632 (char *) "days", NULL
22633 };
22634
22635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22636 arg1 = (int) SWIG_AsInt(obj0);
22637 if (PyErr_Occurred()) SWIG_fail;
22638 {
22639 PyThreadState* __tstate = wxPyBeginAllowThreads();
22640 result = wxDateSpan::Days(arg1);
22641
22642 wxPyEndAllowThreads(__tstate);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 {
22646 wxDateSpan * resultptr;
22647 resultptr = new wxDateSpan((wxDateSpan &) result);
22648 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22649 }
22650 return resultobj;
22651 fail:
22652 return NULL;
22653 }
22654
22655
22656 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22657 PyObject *resultobj;
22658 wxDateSpan result;
22659 char *kwnames[] = {
22660 NULL
22661 };
22662
22663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22664 {
22665 PyThreadState* __tstate = wxPyBeginAllowThreads();
22666 result = wxDateSpan::Day();
22667
22668 wxPyEndAllowThreads(__tstate);
22669 if (PyErr_Occurred()) SWIG_fail;
22670 }
22671 {
22672 wxDateSpan * resultptr;
22673 resultptr = new wxDateSpan((wxDateSpan &) result);
22674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22675 }
22676 return resultobj;
22677 fail:
22678 return NULL;
22679 }
22680
22681
22682 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22683 PyObject *resultobj;
22684 int arg1 ;
22685 wxDateSpan result;
22686 PyObject * obj0 = 0 ;
22687 char *kwnames[] = {
22688 (char *) "weeks", NULL
22689 };
22690
22691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22692 arg1 = (int) SWIG_AsInt(obj0);
22693 if (PyErr_Occurred()) SWIG_fail;
22694 {
22695 PyThreadState* __tstate = wxPyBeginAllowThreads();
22696 result = wxDateSpan::Weeks(arg1);
22697
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 {
22702 wxDateSpan * resultptr;
22703 resultptr = new wxDateSpan((wxDateSpan &) result);
22704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22705 }
22706 return resultobj;
22707 fail:
22708 return NULL;
22709 }
22710
22711
22712 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22713 PyObject *resultobj;
22714 wxDateSpan result;
22715 char *kwnames[] = {
22716 NULL
22717 };
22718
22719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22720 {
22721 PyThreadState* __tstate = wxPyBeginAllowThreads();
22722 result = wxDateSpan::Week();
22723
22724 wxPyEndAllowThreads(__tstate);
22725 if (PyErr_Occurred()) SWIG_fail;
22726 }
22727 {
22728 wxDateSpan * resultptr;
22729 resultptr = new wxDateSpan((wxDateSpan &) result);
22730 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22731 }
22732 return resultobj;
22733 fail:
22734 return NULL;
22735 }
22736
22737
22738 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22739 PyObject *resultobj;
22740 int arg1 ;
22741 wxDateSpan result;
22742 PyObject * obj0 = 0 ;
22743 char *kwnames[] = {
22744 (char *) "mon", NULL
22745 };
22746
22747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22748 arg1 = (int) SWIG_AsInt(obj0);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 {
22751 PyThreadState* __tstate = wxPyBeginAllowThreads();
22752 result = wxDateSpan::Months(arg1);
22753
22754 wxPyEndAllowThreads(__tstate);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 }
22757 {
22758 wxDateSpan * resultptr;
22759 resultptr = new wxDateSpan((wxDateSpan &) result);
22760 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22761 }
22762 return resultobj;
22763 fail:
22764 return NULL;
22765 }
22766
22767
22768 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22769 PyObject *resultobj;
22770 wxDateSpan result;
22771 char *kwnames[] = {
22772 NULL
22773 };
22774
22775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22776 {
22777 PyThreadState* __tstate = wxPyBeginAllowThreads();
22778 result = wxDateSpan::Month();
22779
22780 wxPyEndAllowThreads(__tstate);
22781 if (PyErr_Occurred()) SWIG_fail;
22782 }
22783 {
22784 wxDateSpan * resultptr;
22785 resultptr = new wxDateSpan((wxDateSpan &) result);
22786 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22787 }
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22795 PyObject *resultobj;
22796 int arg1 ;
22797 wxDateSpan result;
22798 PyObject * obj0 = 0 ;
22799 char *kwnames[] = {
22800 (char *) "years", NULL
22801 };
22802
22803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22804 arg1 = (int) SWIG_AsInt(obj0);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 {
22807 PyThreadState* __tstate = wxPyBeginAllowThreads();
22808 result = wxDateSpan::Years(arg1);
22809
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 {
22814 wxDateSpan * resultptr;
22815 resultptr = new wxDateSpan((wxDateSpan &) result);
22816 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22817 }
22818 return resultobj;
22819 fail:
22820 return NULL;
22821 }
22822
22823
22824 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22825 PyObject *resultobj;
22826 wxDateSpan result;
22827 char *kwnames[] = {
22828 NULL
22829 };
22830
22831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22832 {
22833 PyThreadState* __tstate = wxPyBeginAllowThreads();
22834 result = wxDateSpan::Year();
22835
22836 wxPyEndAllowThreads(__tstate);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 }
22839 {
22840 wxDateSpan * resultptr;
22841 resultptr = new wxDateSpan((wxDateSpan &) result);
22842 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22843 }
22844 return resultobj;
22845 fail:
22846 return NULL;
22847 }
22848
22849
22850 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22851 PyObject *resultobj;
22852 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22853 int arg2 ;
22854 wxDateSpan *result;
22855 PyObject * obj0 = 0 ;
22856 PyObject * obj1 = 0 ;
22857 char *kwnames[] = {
22858 (char *) "self",(char *) "n", NULL
22859 };
22860
22861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22864 arg2 = (int) SWIG_AsInt(obj1);
22865 if (PyErr_Occurred()) SWIG_fail;
22866 {
22867 PyThreadState* __tstate = wxPyBeginAllowThreads();
22868 {
22869 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22870 result = (wxDateSpan *) &_result_ref;
22871 }
22872
22873 wxPyEndAllowThreads(__tstate);
22874 if (PyErr_Occurred()) SWIG_fail;
22875 }
22876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22877 return resultobj;
22878 fail:
22879 return NULL;
22880 }
22881
22882
22883 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22884 PyObject *resultobj;
22885 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22886 int arg2 ;
22887 wxDateSpan *result;
22888 PyObject * obj0 = 0 ;
22889 PyObject * obj1 = 0 ;
22890 char *kwnames[] = {
22891 (char *) "self",(char *) "n", NULL
22892 };
22893
22894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22897 arg2 = (int) SWIG_AsInt(obj1);
22898 if (PyErr_Occurred()) SWIG_fail;
22899 {
22900 PyThreadState* __tstate = wxPyBeginAllowThreads();
22901 {
22902 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22903 result = (wxDateSpan *) &_result_ref;
22904 }
22905
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22910 return resultobj;
22911 fail:
22912 return NULL;
22913 }
22914
22915
22916 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22917 PyObject *resultobj;
22918 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22919 int arg2 ;
22920 wxDateSpan *result;
22921 PyObject * obj0 = 0 ;
22922 PyObject * obj1 = 0 ;
22923 char *kwnames[] = {
22924 (char *) "self",(char *) "n", NULL
22925 };
22926
22927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22930 arg2 = (int) SWIG_AsInt(obj1);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 {
22933 PyThreadState* __tstate = wxPyBeginAllowThreads();
22934 {
22935 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22936 result = (wxDateSpan *) &_result_ref;
22937 }
22938
22939 wxPyEndAllowThreads(__tstate);
22940 if (PyErr_Occurred()) SWIG_fail;
22941 }
22942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22943 return resultobj;
22944 fail:
22945 return NULL;
22946 }
22947
22948
22949 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj;
22951 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22952 int arg2 ;
22953 wxDateSpan *result;
22954 PyObject * obj0 = 0 ;
22955 PyObject * obj1 = 0 ;
22956 char *kwnames[] = {
22957 (char *) "self",(char *) "n", NULL
22958 };
22959
22960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
22961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22963 arg2 = (int) SWIG_AsInt(obj1);
22964 if (PyErr_Occurred()) SWIG_fail;
22965 {
22966 PyThreadState* __tstate = wxPyBeginAllowThreads();
22967 {
22968 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
22969 result = (wxDateSpan *) &_result_ref;
22970 }
22971
22972 wxPyEndAllowThreads(__tstate);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 }
22975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22976 return resultobj;
22977 fail:
22978 return NULL;
22979 }
22980
22981
22982 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22983 PyObject *resultobj;
22984 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22985 int result;
22986 PyObject * obj0 = 0 ;
22987 char *kwnames[] = {
22988 (char *) "self", NULL
22989 };
22990
22991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
22992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 result = (int)((wxDateSpan const *)arg1)->GetYears();
22997
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 resultobj = SWIG_FromInt((int)result);
23002 return resultobj;
23003 fail:
23004 return NULL;
23005 }
23006
23007
23008 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23009 PyObject *resultobj;
23010 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23011 int result;
23012 PyObject * obj0 = 0 ;
23013 char *kwnames[] = {
23014 (char *) "self", NULL
23015 };
23016
23017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23023
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 resultobj = SWIG_FromInt((int)result);
23028 return resultobj;
23029 fail:
23030 return NULL;
23031 }
23032
23033
23034 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23035 PyObject *resultobj;
23036 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23037 int result;
23038 PyObject * obj0 = 0 ;
23039 char *kwnames[] = {
23040 (char *) "self", NULL
23041 };
23042
23043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23046 {
23047 PyThreadState* __tstate = wxPyBeginAllowThreads();
23048 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23049
23050 wxPyEndAllowThreads(__tstate);
23051 if (PyErr_Occurred()) SWIG_fail;
23052 }
23053 resultobj = SWIG_FromInt((int)result);
23054 return resultobj;
23055 fail:
23056 return NULL;
23057 }
23058
23059
23060 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23061 PyObject *resultobj;
23062 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23063 int result;
23064 PyObject * obj0 = 0 ;
23065 char *kwnames[] = {
23066 (char *) "self", NULL
23067 };
23068
23069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (int)((wxDateSpan const *)arg1)->GetDays();
23075
23076 wxPyEndAllowThreads(__tstate);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 }
23079 resultobj = SWIG_FromInt((int)result);
23080 return resultobj;
23081 fail:
23082 return NULL;
23083 }
23084
23085
23086 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23087 PyObject *resultobj;
23088 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23089 int result;
23090 PyObject * obj0 = 0 ;
23091 char *kwnames[] = {
23092 (char *) "self", NULL
23093 };
23094
23095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23098 {
23099 PyThreadState* __tstate = wxPyBeginAllowThreads();
23100 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23101
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 resultobj = SWIG_FromInt((int)result);
23106 return resultobj;
23107 fail:
23108 return NULL;
23109 }
23110
23111
23112 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23113 PyObject *resultobj;
23114 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23115 wxDateSpan *arg2 = 0 ;
23116 wxDateSpan *result;
23117 PyObject * obj0 = 0 ;
23118 PyObject * obj1 = 0 ;
23119 char *kwnames[] = {
23120 (char *) "self",(char *) "other", NULL
23121 };
23122
23123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23127 SWIG_POINTER_EXCEPTION | 0)) == -1)
23128 SWIG_fail;
23129 if (arg2 == NULL) {
23130 PyErr_SetString(PyExc_TypeError,"null reference");
23131 SWIG_fail;
23132 }
23133 {
23134 PyThreadState* __tstate = wxPyBeginAllowThreads();
23135 {
23136 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23137 result = (wxDateSpan *) &_result_ref;
23138 }
23139
23140 wxPyEndAllowThreads(__tstate);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
23143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23144 return resultobj;
23145 fail:
23146 return NULL;
23147 }
23148
23149
23150 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23151 PyObject *resultobj;
23152 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23153 wxDateSpan *arg2 = 0 ;
23154 wxDateSpan *result;
23155 PyObject * obj0 = 0 ;
23156 PyObject * obj1 = 0 ;
23157 char *kwnames[] = {
23158 (char *) "self",(char *) "other", NULL
23159 };
23160
23161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23165 SWIG_POINTER_EXCEPTION | 0)) == -1)
23166 SWIG_fail;
23167 if (arg2 == NULL) {
23168 PyErr_SetString(PyExc_TypeError,"null reference");
23169 SWIG_fail;
23170 }
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 {
23174 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23175 result = (wxDateSpan *) &_result_ref;
23176 }
23177
23178 wxPyEndAllowThreads(__tstate);
23179 if (PyErr_Occurred()) SWIG_fail;
23180 }
23181 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23182 return resultobj;
23183 fail:
23184 return NULL;
23185 }
23186
23187
23188 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23189 PyObject *resultobj;
23190 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23191 wxDateSpan *result;
23192 PyObject * obj0 = 0 ;
23193 char *kwnames[] = {
23194 (char *) "self", NULL
23195 };
23196
23197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23200 {
23201 PyThreadState* __tstate = wxPyBeginAllowThreads();
23202 {
23203 wxDateSpan &_result_ref = (arg1)->Neg();
23204 result = (wxDateSpan *) &_result_ref;
23205 }
23206
23207 wxPyEndAllowThreads(__tstate);
23208 if (PyErr_Occurred()) SWIG_fail;
23209 }
23210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23211 return resultobj;
23212 fail:
23213 return NULL;
23214 }
23215
23216
23217 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj;
23219 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23220 int arg2 ;
23221 wxDateSpan *result;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char *kwnames[] = {
23225 (char *) "self",(char *) "factor", NULL
23226 };
23227
23228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23231 arg2 = (int) SWIG_AsInt(obj1);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 {
23236 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23237 result = (wxDateSpan *) &_result_ref;
23238 }
23239
23240 wxPyEndAllowThreads(__tstate);
23241 if (PyErr_Occurred()) SWIG_fail;
23242 }
23243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23244 return resultobj;
23245 fail:
23246 return NULL;
23247 }
23248
23249
23250 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23251 PyObject *resultobj;
23252 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23253 wxDateSpan *arg2 = 0 ;
23254 wxDateSpan *result;
23255 PyObject * obj0 = 0 ;
23256 PyObject * obj1 = 0 ;
23257 char *kwnames[] = {
23258 (char *) "self",(char *) "other", NULL
23259 };
23260
23261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23264 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23265 SWIG_POINTER_EXCEPTION | 0)) == -1)
23266 SWIG_fail;
23267 if (arg2 == NULL) {
23268 PyErr_SetString(PyExc_TypeError,"null reference");
23269 SWIG_fail;
23270 }
23271 {
23272 PyThreadState* __tstate = wxPyBeginAllowThreads();
23273 {
23274 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23275 result = (wxDateSpan *) &_result_ref;
23276 }
23277
23278 wxPyEndAllowThreads(__tstate);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 }
23281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23282 return resultobj;
23283 fail:
23284 return NULL;
23285 }
23286
23287
23288 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23289 PyObject *resultobj;
23290 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23291 wxDateSpan *arg2 = 0 ;
23292 wxDateSpan *result;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 char *kwnames[] = {
23296 (char *) "self",(char *) "other", NULL
23297 };
23298
23299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23302 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23303 SWIG_POINTER_EXCEPTION | 0)) == -1)
23304 SWIG_fail;
23305 if (arg2 == NULL) {
23306 PyErr_SetString(PyExc_TypeError,"null reference");
23307 SWIG_fail;
23308 }
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 {
23312 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23313 result = (wxDateSpan *) &_result_ref;
23314 }
23315
23316 wxPyEndAllowThreads(__tstate);
23317 if (PyErr_Occurred()) SWIG_fail;
23318 }
23319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23320 return resultobj;
23321 fail:
23322 return NULL;
23323 }
23324
23325
23326 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23327 PyObject *resultobj;
23328 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23329 wxDateSpan *result;
23330 PyObject * obj0 = 0 ;
23331 char *kwnames[] = {
23332 (char *) "self", NULL
23333 };
23334
23335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23338 {
23339 PyThreadState* __tstate = wxPyBeginAllowThreads();
23340 {
23341 wxDateSpan &_result_ref = (arg1)->operator -();
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___imul__(PyObject *self, 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 *) "factor", NULL
23364 };
23365
23366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",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_AsInt(obj1);
23370 if (PyErr_Occurred()) SWIG_fail;
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 {
23374 wxDateSpan &_result_ref = (arg1)->operator *=(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___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23389 PyObject *resultobj;
23390 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23391 wxDateSpan *arg2 = 0 ;
23392 wxDateSpan result;
23393 PyObject * obj0 = 0 ;
23394 PyObject * obj1 = 0 ;
23395 char *kwnames[] = {
23396 (char *) "self",(char *) "other", NULL
23397 };
23398
23399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23403 SWIG_POINTER_EXCEPTION | 0)) == -1)
23404 SWIG_fail;
23405 if (arg2 == NULL) {
23406 PyErr_SetString(PyExc_TypeError,"null reference");
23407 SWIG_fail;
23408 }
23409 {
23410 PyThreadState* __tstate = wxPyBeginAllowThreads();
23411 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23412
23413 wxPyEndAllowThreads(__tstate);
23414 if (PyErr_Occurred()) SWIG_fail;
23415 }
23416 {
23417 wxDateSpan * resultptr;
23418 resultptr = new wxDateSpan((wxDateSpan &) result);
23419 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23420 }
23421 return resultobj;
23422 fail:
23423 return NULL;
23424 }
23425
23426
23427 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23428 PyObject *resultobj;
23429 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23430 wxDateSpan *arg2 = 0 ;
23431 wxDateSpan result;
23432 PyObject * obj0 = 0 ;
23433 PyObject * obj1 = 0 ;
23434 char *kwnames[] = {
23435 (char *) "self",(char *) "other", NULL
23436 };
23437
23438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23442 SWIG_POINTER_EXCEPTION | 0)) == -1)
23443 SWIG_fail;
23444 if (arg2 == NULL) {
23445 PyErr_SetString(PyExc_TypeError,"null reference");
23446 SWIG_fail;
23447 }
23448 {
23449 PyThreadState* __tstate = wxPyBeginAllowThreads();
23450 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23451
23452 wxPyEndAllowThreads(__tstate);
23453 if (PyErr_Occurred()) SWIG_fail;
23454 }
23455 {
23456 wxDateSpan * resultptr;
23457 resultptr = new wxDateSpan((wxDateSpan &) result);
23458 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23459 }
23460 return resultobj;
23461 fail:
23462 return NULL;
23463 }
23464
23465
23466 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23467 PyObject *resultobj;
23468 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23469 int arg2 ;
23470 wxDateSpan result;
23471 PyObject * obj0 = 0 ;
23472 PyObject * obj1 = 0 ;
23473 char *kwnames[] = {
23474 (char *) "self",(char *) "n", NULL
23475 };
23476
23477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23480 arg2 = (int) SWIG_AsInt(obj1);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 {
23483 PyThreadState* __tstate = wxPyBeginAllowThreads();
23484 result = wxDateSpan___mul__(arg1,arg2);
23485
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 {
23490 wxDateSpan * resultptr;
23491 resultptr = new wxDateSpan((wxDateSpan &) result);
23492 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23493 }
23494 return resultobj;
23495 fail:
23496 return NULL;
23497 }
23498
23499
23500 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23501 PyObject *resultobj;
23502 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23503 int arg2 ;
23504 wxDateSpan result;
23505 PyObject * obj0 = 0 ;
23506 PyObject * obj1 = 0 ;
23507 char *kwnames[] = {
23508 (char *) "self",(char *) "n", NULL
23509 };
23510
23511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23514 arg2 = (int) SWIG_AsInt(obj1);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 result = wxDateSpan___rmul__(arg1,arg2);
23519
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 {
23524 wxDateSpan * resultptr;
23525 resultptr = new wxDateSpan((wxDateSpan &) result);
23526 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23527 }
23528 return resultobj;
23529 fail:
23530 return NULL;
23531 }
23532
23533
23534 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23535 PyObject *resultobj;
23536 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23537 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23538 bool result;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 char *kwnames[] = {
23542 (char *) "self",(char *) "other", NULL
23543 };
23544
23545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23550 {
23551 PyThreadState* __tstate = wxPyBeginAllowThreads();
23552 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23553
23554 wxPyEndAllowThreads(__tstate);
23555 if (PyErr_Occurred()) SWIG_fail;
23556 }
23557 {
23558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23559 }
23560 return resultobj;
23561 fail:
23562 return NULL;
23563 }
23564
23565
23566 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23567 PyObject *resultobj;
23568 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23569 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23570 bool result;
23571 PyObject * obj0 = 0 ;
23572 PyObject * obj1 = 0 ;
23573 char *kwnames[] = {
23574 (char *) "self",(char *) "other", NULL
23575 };
23576
23577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23580 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23582 {
23583 PyThreadState* __tstate = wxPyBeginAllowThreads();
23584 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23585
23586 wxPyEndAllowThreads(__tstate);
23587 if (PyErr_Occurred()) SWIG_fail;
23588 }
23589 {
23590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23591 }
23592 return resultobj;
23593 fail:
23594 return NULL;
23595 }
23596
23597
23598 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23599 PyObject *obj;
23600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23601 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23602 Py_INCREF(obj);
23603 return Py_BuildValue((char *)"");
23604 }
23605 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23606 PyObject *resultobj;
23607 long result;
23608 char *kwnames[] = {
23609 NULL
23610 };
23611
23612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23613 {
23614 PyThreadState* __tstate = wxPyBeginAllowThreads();
23615 result = (long)wxGetLocalTime();
23616
23617 wxPyEndAllowThreads(__tstate);
23618 if (PyErr_Occurred()) SWIG_fail;
23619 }
23620 resultobj = SWIG_FromLong((long)result);
23621 return resultobj;
23622 fail:
23623 return NULL;
23624 }
23625
23626
23627 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23628 PyObject *resultobj;
23629 long result;
23630 char *kwnames[] = {
23631 NULL
23632 };
23633
23634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23635 {
23636 PyThreadState* __tstate = wxPyBeginAllowThreads();
23637 result = (long)wxGetUTCTime();
23638
23639 wxPyEndAllowThreads(__tstate);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 }
23642 resultobj = SWIG_FromLong((long)result);
23643 return resultobj;
23644 fail:
23645 return NULL;
23646 }
23647
23648
23649 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23650 PyObject *resultobj;
23651 long result;
23652 char *kwnames[] = {
23653 NULL
23654 };
23655
23656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23657 {
23658 PyThreadState* __tstate = wxPyBeginAllowThreads();
23659 result = (long)wxGetCurrentTime();
23660
23661 wxPyEndAllowThreads(__tstate);
23662 if (PyErr_Occurred()) SWIG_fail;
23663 }
23664 resultobj = SWIG_FromLong((long)result);
23665 return resultobj;
23666 fail:
23667 return NULL;
23668 }
23669
23670
23671 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23672 PyObject *resultobj;
23673 wxLongLong result;
23674 char *kwnames[] = {
23675 NULL
23676 };
23677
23678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23679 {
23680 PyThreadState* __tstate = wxPyBeginAllowThreads();
23681 result = wxGetLocalTimeMillis();
23682
23683 wxPyEndAllowThreads(__tstate);
23684 if (PyErr_Occurred()) SWIG_fail;
23685 }
23686 {
23687 PyObject *hi, *lo, *shifter, *shifted;
23688 hi = PyLong_FromLong( (&result)->GetHi() );
23689 lo = PyLong_FromLong( (&result)->GetLo() );
23690 shifter = PyLong_FromLong(32);
23691 shifted = PyNumber_Lshift(hi, shifter);
23692 resultobj = PyNumber_Or(shifted, lo);
23693 Py_DECREF(hi);
23694 Py_DECREF(lo);
23695 Py_DECREF(shifter);
23696 Py_DECREF(shifted);
23697 }
23698 return resultobj;
23699 fail:
23700 return NULL;
23701 }
23702
23703
23704 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23705 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23706 return 1;
23707 }
23708
23709
23710 static PyObject *_wrap_DefaultDateTime_get() {
23711 PyObject *pyobj;
23712
23713 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23714 return pyobj;
23715 }
23716
23717
23718 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23719 PyObject *resultobj;
23720 int arg1 ;
23721 wxDataFormat *result;
23722 PyObject * obj0 = 0 ;
23723 char *kwnames[] = {
23724 (char *) "type", NULL
23725 };
23726
23727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23728 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 {
23731 PyThreadState* __tstate = wxPyBeginAllowThreads();
23732 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23733
23734 wxPyEndAllowThreads(__tstate);
23735 if (PyErr_Occurred()) SWIG_fail;
23736 }
23737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23738 return resultobj;
23739 fail:
23740 return NULL;
23741 }
23742
23743
23744 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23745 PyObject *resultobj;
23746 wxString *arg1 = 0 ;
23747 wxDataFormat *result;
23748 bool temp1 = False ;
23749 PyObject * obj0 = 0 ;
23750 char *kwnames[] = {
23751 (char *) "format", NULL
23752 };
23753
23754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23755 {
23756 arg1 = wxString_in_helper(obj0);
23757 if (arg1 == NULL) SWIG_fail;
23758 temp1 = True;
23759 }
23760 {
23761 PyThreadState* __tstate = wxPyBeginAllowThreads();
23762 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23763
23764 wxPyEndAllowThreads(__tstate);
23765 if (PyErr_Occurred()) SWIG_fail;
23766 }
23767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23768 {
23769 if (temp1)
23770 delete arg1;
23771 }
23772 return resultobj;
23773 fail:
23774 {
23775 if (temp1)
23776 delete arg1;
23777 }
23778 return NULL;
23779 }
23780
23781
23782 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23783 PyObject *resultobj;
23784 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23785 PyObject * obj0 = 0 ;
23786 char *kwnames[] = {
23787 (char *) "self", NULL
23788 };
23789
23790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 delete arg1;
23796
23797 wxPyEndAllowThreads(__tstate);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 }
23800 Py_INCREF(Py_None); resultobj = Py_None;
23801 return resultobj;
23802 fail:
23803 return NULL;
23804 }
23805
23806
23807 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23808 PyObject *resultobj;
23809 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23810 int arg2 ;
23811 bool result;
23812 PyObject * obj0 = 0 ;
23813 PyObject * obj1 = 0 ;
23814
23815 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23818 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23819 if (PyErr_Occurred()) SWIG_fail;
23820 {
23821 PyThreadState* __tstate = wxPyBeginAllowThreads();
23822 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23823
23824 wxPyEndAllowThreads(__tstate);
23825 if (PyErr_Occurred()) SWIG_fail;
23826 }
23827 {
23828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23829 }
23830 return resultobj;
23831 fail:
23832 return NULL;
23833 }
23834
23835
23836 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23837 PyObject *resultobj;
23838 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23839 int arg2 ;
23840 bool result;
23841 PyObject * obj0 = 0 ;
23842 PyObject * obj1 = 0 ;
23843
23844 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23847 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23848 if (PyErr_Occurred()) SWIG_fail;
23849 {
23850 PyThreadState* __tstate = wxPyBeginAllowThreads();
23851 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23852
23853 wxPyEndAllowThreads(__tstate);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 }
23856 {
23857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23858 }
23859 return resultobj;
23860 fail:
23861 return NULL;
23862 }
23863
23864
23865 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23866 PyObject *resultobj;
23867 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23868 wxDataFormat *arg2 = 0 ;
23869 bool result;
23870 PyObject * obj0 = 0 ;
23871 PyObject * obj1 = 0 ;
23872
23873 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23877 SWIG_POINTER_EXCEPTION | 0)) == -1)
23878 SWIG_fail;
23879 if (arg2 == NULL) {
23880 PyErr_SetString(PyExc_TypeError,"null reference");
23881 SWIG_fail;
23882 }
23883 {
23884 PyThreadState* __tstate = wxPyBeginAllowThreads();
23885 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23886
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 {
23891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23892 }
23893 return resultobj;
23894 fail:
23895 return NULL;
23896 }
23897
23898
23899 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23900 int argc;
23901 PyObject *argv[3];
23902 int ii;
23903
23904 argc = PyObject_Length(args);
23905 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23906 argv[ii] = PyTuple_GetItem(args,ii);
23907 }
23908 if (argc == 2) {
23909 int _v;
23910 {
23911 void *ptr;
23912 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23913 _v = 0;
23914 PyErr_Clear();
23915 } else {
23916 _v = 1;
23917 }
23918 }
23919 if (_v) {
23920 {
23921 void *ptr;
23922 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23923 _v = 0;
23924 PyErr_Clear();
23925 } else {
23926 _v = 1;
23927 }
23928 }
23929 if (_v) {
23930 return _wrap_DataFormat___eq____SWIG_1(self,args);
23931 }
23932 }
23933 }
23934 if (argc == 2) {
23935 int _v;
23936 {
23937 void *ptr;
23938 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23939 _v = 0;
23940 PyErr_Clear();
23941 } else {
23942 _v = 1;
23943 }
23944 }
23945 if (_v) {
23946 _v = SWIG_CheckInt(argv[1]);
23947 if (_v) {
23948 return _wrap_DataFormat___eq____SWIG_0(self,args);
23949 }
23950 }
23951 }
23952
23953 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
23954 return NULL;
23955 }
23956
23957
23958 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
23959 PyObject *resultobj;
23960 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23961 wxDataFormat *arg2 = 0 ;
23962 bool result;
23963 PyObject * obj0 = 0 ;
23964 PyObject * obj1 = 0 ;
23965
23966 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23969 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23970 SWIG_POINTER_EXCEPTION | 0)) == -1)
23971 SWIG_fail;
23972 if (arg2 == NULL) {
23973 PyErr_SetString(PyExc_TypeError,"null reference");
23974 SWIG_fail;
23975 }
23976 {
23977 PyThreadState* __tstate = wxPyBeginAllowThreads();
23978 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
23979
23980 wxPyEndAllowThreads(__tstate);
23981 if (PyErr_Occurred()) SWIG_fail;
23982 }
23983 {
23984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23985 }
23986 return resultobj;
23987 fail:
23988 return NULL;
23989 }
23990
23991
23992 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
23993 int argc;
23994 PyObject *argv[3];
23995 int ii;
23996
23997 argc = PyObject_Length(args);
23998 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23999 argv[ii] = PyTuple_GetItem(args,ii);
24000 }
24001 if (argc == 2) {
24002 int _v;
24003 {
24004 void *ptr;
24005 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24006 _v = 0;
24007 PyErr_Clear();
24008 } else {
24009 _v = 1;
24010 }
24011 }
24012 if (_v) {
24013 {
24014 void *ptr;
24015 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24016 _v = 0;
24017 PyErr_Clear();
24018 } else {
24019 _v = 1;
24020 }
24021 }
24022 if (_v) {
24023 return _wrap_DataFormat___ne____SWIG_1(self,args);
24024 }
24025 }
24026 }
24027 if (argc == 2) {
24028 int _v;
24029 {
24030 void *ptr;
24031 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24032 _v = 0;
24033 PyErr_Clear();
24034 } else {
24035 _v = 1;
24036 }
24037 }
24038 if (_v) {
24039 _v = SWIG_CheckInt(argv[1]);
24040 if (_v) {
24041 return _wrap_DataFormat___ne____SWIG_0(self,args);
24042 }
24043 }
24044 }
24045
24046 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24047 return NULL;
24048 }
24049
24050
24051 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24052 PyObject *resultobj;
24053 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24054 int arg2 ;
24055 PyObject * obj0 = 0 ;
24056 PyObject * obj1 = 0 ;
24057 char *kwnames[] = {
24058 (char *) "self",(char *) "format", NULL
24059 };
24060
24061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24064 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24065 if (PyErr_Occurred()) SWIG_fail;
24066 {
24067 PyThreadState* __tstate = wxPyBeginAllowThreads();
24068 (arg1)->SetType((wxDataFormatId )arg2);
24069
24070 wxPyEndAllowThreads(__tstate);
24071 if (PyErr_Occurred()) SWIG_fail;
24072 }
24073 Py_INCREF(Py_None); resultobj = Py_None;
24074 return resultobj;
24075 fail:
24076 return NULL;
24077 }
24078
24079
24080 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24081 PyObject *resultobj;
24082 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24083 int result;
24084 PyObject * obj0 = 0 ;
24085 char *kwnames[] = {
24086 (char *) "self", NULL
24087 };
24088
24089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24092 {
24093 PyThreadState* __tstate = wxPyBeginAllowThreads();
24094 result = (int)((wxDataFormat const *)arg1)->GetType();
24095
24096 wxPyEndAllowThreads(__tstate);
24097 if (PyErr_Occurred()) SWIG_fail;
24098 }
24099 resultobj = SWIG_FromInt((int)result);
24100 return resultobj;
24101 fail:
24102 return NULL;
24103 }
24104
24105
24106 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24107 PyObject *resultobj;
24108 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24109 wxString result;
24110 PyObject * obj0 = 0 ;
24111 char *kwnames[] = {
24112 (char *) "self", NULL
24113 };
24114
24115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24118 {
24119 PyThreadState* __tstate = wxPyBeginAllowThreads();
24120 result = ((wxDataFormat const *)arg1)->GetId();
24121
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 {
24126 #if wxUSE_UNICODE
24127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24128 #else
24129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24130 #endif
24131 }
24132 return resultobj;
24133 fail:
24134 return NULL;
24135 }
24136
24137
24138 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24139 PyObject *resultobj;
24140 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24141 wxString *arg2 = 0 ;
24142 bool temp2 = False ;
24143 PyObject * obj0 = 0 ;
24144 PyObject * obj1 = 0 ;
24145 char *kwnames[] = {
24146 (char *) "self",(char *) "format", NULL
24147 };
24148
24149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24152 {
24153 arg2 = wxString_in_helper(obj1);
24154 if (arg2 == NULL) SWIG_fail;
24155 temp2 = True;
24156 }
24157 {
24158 PyThreadState* __tstate = wxPyBeginAllowThreads();
24159 (arg1)->SetId((wxString const &)*arg2);
24160
24161 wxPyEndAllowThreads(__tstate);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 Py_INCREF(Py_None); resultobj = Py_None;
24165 {
24166 if (temp2)
24167 delete arg2;
24168 }
24169 return resultobj;
24170 fail:
24171 {
24172 if (temp2)
24173 delete arg2;
24174 }
24175 return NULL;
24176 }
24177
24178
24179 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24180 PyObject *obj;
24181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24182 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24183 Py_INCREF(obj);
24184 return Py_BuildValue((char *)"");
24185 }
24186 static int _wrap_FormatInvalid_set(PyObject *_val) {
24187 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24188 return 1;
24189 }
24190
24191
24192 static PyObject *_wrap_FormatInvalid_get() {
24193 PyObject *pyobj;
24194
24195 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24196 return pyobj;
24197 }
24198
24199
24200 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24201 PyObject *resultobj;
24202 wxDataObject *arg1 = (wxDataObject *) 0 ;
24203 PyObject * obj0 = 0 ;
24204 char *kwnames[] = {
24205 (char *) "self", NULL
24206 };
24207
24208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24211 {
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 delete arg1;
24214
24215 wxPyEndAllowThreads(__tstate);
24216 if (PyErr_Occurred()) SWIG_fail;
24217 }
24218 Py_INCREF(Py_None); resultobj = Py_None;
24219 return resultobj;
24220 fail:
24221 return NULL;
24222 }
24223
24224
24225 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24226 PyObject *resultobj;
24227 wxDataObject *arg1 = (wxDataObject *) 0 ;
24228 int arg2 = (int) wxDataObject::Get ;
24229 SwigValueWrapper< wxDataFormat > result;
24230 PyObject * obj0 = 0 ;
24231 PyObject * obj1 = 0 ;
24232 char *kwnames[] = {
24233 (char *) "self",(char *) "dir", NULL
24234 };
24235
24236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24239 if (obj1) {
24240 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24241 if (PyErr_Occurred()) SWIG_fail;
24242 }
24243 {
24244 PyThreadState* __tstate = wxPyBeginAllowThreads();
24245 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24246
24247 wxPyEndAllowThreads(__tstate);
24248 if (PyErr_Occurred()) SWIG_fail;
24249 }
24250 {
24251 wxDataFormat * resultptr;
24252 resultptr = new wxDataFormat((wxDataFormat &) result);
24253 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24254 }
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24262 PyObject *resultobj;
24263 wxDataObject *arg1 = (wxDataObject *) 0 ;
24264 int arg2 = (int) wxDataObject::Get ;
24265 size_t result;
24266 PyObject * obj0 = 0 ;
24267 PyObject * obj1 = 0 ;
24268 char *kwnames[] = {
24269 (char *) "self",(char *) "dir", NULL
24270 };
24271
24272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24275 if (obj1) {
24276 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24277 if (PyErr_Occurred()) SWIG_fail;
24278 }
24279 {
24280 PyThreadState* __tstate = wxPyBeginAllowThreads();
24281 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24282
24283 wxPyEndAllowThreads(__tstate);
24284 if (PyErr_Occurred()) SWIG_fail;
24285 }
24286 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24287 return resultobj;
24288 fail:
24289 return NULL;
24290 }
24291
24292
24293 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24294 PyObject *resultobj;
24295 wxDataObject *arg1 = (wxDataObject *) 0 ;
24296 wxDataFormat *arg2 = 0 ;
24297 int arg3 = (int) wxDataObject::Get ;
24298 bool result;
24299 PyObject * obj0 = 0 ;
24300 PyObject * obj1 = 0 ;
24301 PyObject * obj2 = 0 ;
24302 char *kwnames[] = {
24303 (char *) "self",(char *) "format",(char *) "dir", NULL
24304 };
24305
24306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24310 SWIG_POINTER_EXCEPTION | 0)) == -1)
24311 SWIG_fail;
24312 if (arg2 == NULL) {
24313 PyErr_SetString(PyExc_TypeError,"null reference");
24314 SWIG_fail;
24315 }
24316 if (obj2) {
24317 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24318 if (PyErr_Occurred()) SWIG_fail;
24319 }
24320 {
24321 PyThreadState* __tstate = wxPyBeginAllowThreads();
24322 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24323
24324 wxPyEndAllowThreads(__tstate);
24325 if (PyErr_Occurred()) SWIG_fail;
24326 }
24327 {
24328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24329 }
24330 return resultobj;
24331 fail:
24332 return NULL;
24333 }
24334
24335
24336 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24337 PyObject *resultobj;
24338 wxDataObject *arg1 = (wxDataObject *) 0 ;
24339 wxDataFormat *arg2 = 0 ;
24340 size_t result;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 char *kwnames[] = {
24344 (char *) "self",(char *) "format", NULL
24345 };
24346
24347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24351 SWIG_POINTER_EXCEPTION | 0)) == -1)
24352 SWIG_fail;
24353 if (arg2 == NULL) {
24354 PyErr_SetString(PyExc_TypeError,"null reference");
24355 SWIG_fail;
24356 }
24357 {
24358 PyThreadState* __tstate = wxPyBeginAllowThreads();
24359 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24360
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj;
24373 wxDataObject *arg1 = (wxDataObject *) 0 ;
24374 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24375 int arg3 = (int) wxDataObject::Get ;
24376 PyObject * obj0 = 0 ;
24377 PyObject * obj1 = 0 ;
24378 PyObject * obj2 = 0 ;
24379 char *kwnames[] = {
24380 (char *) "self",(char *) "formats",(char *) "dir", NULL
24381 };
24382
24383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24386 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24388 if (obj2) {
24389 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 {
24393 PyThreadState* __tstate = wxPyBeginAllowThreads();
24394 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24395
24396 wxPyEndAllowThreads(__tstate);
24397 if (PyErr_Occurred()) SWIG_fail;
24398 }
24399 Py_INCREF(Py_None); resultobj = Py_None;
24400 return resultobj;
24401 fail:
24402 return NULL;
24403 }
24404
24405
24406 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24407 PyObject *resultobj;
24408 wxDataObject *arg1 = (wxDataObject *) 0 ;
24409 wxDataFormat *arg2 = 0 ;
24410 void *arg3 = (void *) 0 ;
24411 bool result;
24412 PyObject * obj0 = 0 ;
24413 PyObject * obj1 = 0 ;
24414 PyObject * obj2 = 0 ;
24415 char *kwnames[] = {
24416 (char *) "self",(char *) "format",(char *) "buf", NULL
24417 };
24418
24419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24422 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24423 SWIG_POINTER_EXCEPTION | 0)) == -1)
24424 SWIG_fail;
24425 if (arg2 == NULL) {
24426 PyErr_SetString(PyExc_TypeError,"null reference");
24427 SWIG_fail;
24428 }
24429 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24430 {
24431 PyThreadState* __tstate = wxPyBeginAllowThreads();
24432 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24433
24434 wxPyEndAllowThreads(__tstate);
24435 if (PyErr_Occurred()) SWIG_fail;
24436 }
24437 {
24438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24439 }
24440 return resultobj;
24441 fail:
24442 return NULL;
24443 }
24444
24445
24446 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24447 PyObject *resultobj;
24448 wxDataObject *arg1 = (wxDataObject *) 0 ;
24449 wxDataFormat *arg2 = 0 ;
24450 size_t arg3 ;
24451 void *arg4 = (void *) 0 ;
24452 bool result;
24453 PyObject * obj0 = 0 ;
24454 PyObject * obj1 = 0 ;
24455 PyObject * obj2 = 0 ;
24456 PyObject * obj3 = 0 ;
24457 char *kwnames[] = {
24458 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24459 };
24460
24461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24465 SWIG_POINTER_EXCEPTION | 0)) == -1)
24466 SWIG_fail;
24467 if (arg2 == NULL) {
24468 PyErr_SetString(PyExc_TypeError,"null reference");
24469 SWIG_fail;
24470 }
24471 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24472 if (PyErr_Occurred()) SWIG_fail;
24473 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24477
24478 wxPyEndAllowThreads(__tstate);
24479 if (PyErr_Occurred()) SWIG_fail;
24480 }
24481 {
24482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24483 }
24484 return resultobj;
24485 fail:
24486 return NULL;
24487 }
24488
24489
24490 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24491 PyObject *obj;
24492 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24493 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24494 Py_INCREF(obj);
24495 return Py_BuildValue((char *)"");
24496 }
24497 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24498 PyObject *resultobj;
24499 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24500 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24501 wxDataObjectSimple *result;
24502 PyObject * obj0 = 0 ;
24503 char *kwnames[] = {
24504 (char *) "format", NULL
24505 };
24506
24507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24508 if (obj0) {
24509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24510 SWIG_POINTER_EXCEPTION | 0)) == -1)
24511 SWIG_fail;
24512 if (arg1 == NULL) {
24513 PyErr_SetString(PyExc_TypeError,"null reference");
24514 SWIG_fail;
24515 }
24516 }
24517 {
24518 PyThreadState* __tstate = wxPyBeginAllowThreads();
24519 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24520
24521 wxPyEndAllowThreads(__tstate);
24522 if (PyErr_Occurred()) SWIG_fail;
24523 }
24524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24525 return resultobj;
24526 fail:
24527 return NULL;
24528 }
24529
24530
24531 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24532 PyObject *resultobj;
24533 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24534 wxDataFormat *result;
24535 PyObject * obj0 = 0 ;
24536 char *kwnames[] = {
24537 (char *) "self", NULL
24538 };
24539
24540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 {
24546 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24547 result = (wxDataFormat *) &_result_ref;
24548 }
24549
24550 wxPyEndAllowThreads(__tstate);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24554 return resultobj;
24555 fail:
24556 return NULL;
24557 }
24558
24559
24560 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24561 PyObject *resultobj;
24562 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24563 wxDataFormat *arg2 = 0 ;
24564 PyObject * obj0 = 0 ;
24565 PyObject * obj1 = 0 ;
24566 char *kwnames[] = {
24567 (char *) "self",(char *) "format", NULL
24568 };
24569
24570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24574 SWIG_POINTER_EXCEPTION | 0)) == -1)
24575 SWIG_fail;
24576 if (arg2 == NULL) {
24577 PyErr_SetString(PyExc_TypeError,"null reference");
24578 SWIG_fail;
24579 }
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
24582 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24583
24584 wxPyEndAllowThreads(__tstate);
24585 if (PyErr_Occurred()) SWIG_fail;
24586 }
24587 Py_INCREF(Py_None); resultobj = Py_None;
24588 return resultobj;
24589 fail:
24590 return NULL;
24591 }
24592
24593
24594 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24595 PyObject *obj;
24596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24597 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24598 Py_INCREF(obj);
24599 return Py_BuildValue((char *)"");
24600 }
24601 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24602 PyObject *resultobj;
24603 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24604 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24605 wxPyDataObjectSimple *result;
24606 PyObject * obj0 = 0 ;
24607 char *kwnames[] = {
24608 (char *) "format", NULL
24609 };
24610
24611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24612 if (obj0) {
24613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24614 SWIG_POINTER_EXCEPTION | 0)) == -1)
24615 SWIG_fail;
24616 if (arg1 == NULL) {
24617 PyErr_SetString(PyExc_TypeError,"null reference");
24618 SWIG_fail;
24619 }
24620 }
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24624
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24629 return resultobj;
24630 fail:
24631 return NULL;
24632 }
24633
24634
24635 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24636 PyObject *resultobj;
24637 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24638 PyObject *arg2 = (PyObject *) 0 ;
24639 PyObject *arg3 = (PyObject *) 0 ;
24640 PyObject * obj0 = 0 ;
24641 PyObject * obj1 = 0 ;
24642 PyObject * obj2 = 0 ;
24643 char *kwnames[] = {
24644 (char *) "self",(char *) "self",(char *) "_class", NULL
24645 };
24646
24647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24650 arg2 = obj1;
24651 arg3 = obj2;
24652 {
24653 PyThreadState* __tstate = wxPyBeginAllowThreads();
24654 (arg1)->_setCallbackInfo(arg2,arg3);
24655
24656 wxPyEndAllowThreads(__tstate);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 Py_INCREF(Py_None); resultobj = Py_None;
24660 return resultobj;
24661 fail:
24662 return NULL;
24663 }
24664
24665
24666 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24667 PyObject *obj;
24668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24669 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24670 Py_INCREF(obj);
24671 return Py_BuildValue((char *)"");
24672 }
24673 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj;
24675 wxDataObjectComposite *result;
24676 char *kwnames[] = {
24677 NULL
24678 };
24679
24680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24681 {
24682 PyThreadState* __tstate = wxPyBeginAllowThreads();
24683 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24684
24685 wxPyEndAllowThreads(__tstate);
24686 if (PyErr_Occurred()) SWIG_fail;
24687 }
24688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24689 return resultobj;
24690 fail:
24691 return NULL;
24692 }
24693
24694
24695 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24696 PyObject *resultobj;
24697 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24698 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24699 int arg3 = (int) False ;
24700 PyObject * obj0 = 0 ;
24701 PyObject * obj1 = 0 ;
24702 PyObject * obj2 = 0 ;
24703 char *kwnames[] = {
24704 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24705 };
24706
24707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24710 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24711 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24712 if (obj2) {
24713 arg3 = (int) SWIG_AsInt(obj2);
24714 if (PyErr_Occurred()) SWIG_fail;
24715 }
24716 {
24717 PyThreadState* __tstate = wxPyBeginAllowThreads();
24718 (arg1)->Add(arg2,arg3);
24719
24720 wxPyEndAllowThreads(__tstate);
24721 if (PyErr_Occurred()) SWIG_fail;
24722 }
24723 Py_INCREF(Py_None); resultobj = Py_None;
24724 return resultobj;
24725 fail:
24726 return NULL;
24727 }
24728
24729
24730 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24731 PyObject *obj;
24732 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24733 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24734 Py_INCREF(obj);
24735 return Py_BuildValue((char *)"");
24736 }
24737 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24738 PyObject *resultobj;
24739 wxString const &arg1_defvalue = wxPyEmptyString ;
24740 wxString *arg1 = (wxString *) &arg1_defvalue ;
24741 wxTextDataObject *result;
24742 bool temp1 = False ;
24743 PyObject * obj0 = 0 ;
24744 char *kwnames[] = {
24745 (char *) "text", NULL
24746 };
24747
24748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24749 if (obj0) {
24750 {
24751 arg1 = wxString_in_helper(obj0);
24752 if (arg1 == NULL) SWIG_fail;
24753 temp1 = True;
24754 }
24755 }
24756 {
24757 PyThreadState* __tstate = wxPyBeginAllowThreads();
24758 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24759
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24764 {
24765 if (temp1)
24766 delete arg1;
24767 }
24768 return resultobj;
24769 fail:
24770 {
24771 if (temp1)
24772 delete arg1;
24773 }
24774 return NULL;
24775 }
24776
24777
24778 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24779 PyObject *resultobj;
24780 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24781 size_t result;
24782 PyObject * obj0 = 0 ;
24783 char *kwnames[] = {
24784 (char *) "self", NULL
24785 };
24786
24787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 result = (size_t)(arg1)->GetTextLength();
24793
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24807 wxString result;
24808 PyObject * obj0 = 0 ;
24809 char *kwnames[] = {
24810 (char *) "self", NULL
24811 };
24812
24813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24816 {
24817 PyThreadState* __tstate = wxPyBeginAllowThreads();
24818 result = (arg1)->GetText();
24819
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 {
24824 #if wxUSE_UNICODE
24825 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24826 #else
24827 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24828 #endif
24829 }
24830 return resultobj;
24831 fail:
24832 return NULL;
24833 }
24834
24835
24836 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24837 PyObject *resultobj;
24838 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24839 wxString *arg2 = 0 ;
24840 bool temp2 = False ;
24841 PyObject * obj0 = 0 ;
24842 PyObject * obj1 = 0 ;
24843 char *kwnames[] = {
24844 (char *) "self",(char *) "text", NULL
24845 };
24846
24847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24850 {
24851 arg2 = wxString_in_helper(obj1);
24852 if (arg2 == NULL) SWIG_fail;
24853 temp2 = True;
24854 }
24855 {
24856 PyThreadState* __tstate = wxPyBeginAllowThreads();
24857 (arg1)->SetText((wxString const &)*arg2);
24858
24859 wxPyEndAllowThreads(__tstate);
24860 if (PyErr_Occurred()) SWIG_fail;
24861 }
24862 Py_INCREF(Py_None); resultobj = Py_None;
24863 {
24864 if (temp2)
24865 delete arg2;
24866 }
24867 return resultobj;
24868 fail:
24869 {
24870 if (temp2)
24871 delete arg2;
24872 }
24873 return NULL;
24874 }
24875
24876
24877 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24878 PyObject *obj;
24879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24880 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24881 Py_INCREF(obj);
24882 return Py_BuildValue((char *)"");
24883 }
24884 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24885 PyObject *resultobj;
24886 wxString const &arg1_defvalue = wxPyEmptyString ;
24887 wxString *arg1 = (wxString *) &arg1_defvalue ;
24888 wxPyTextDataObject *result;
24889 bool temp1 = False ;
24890 PyObject * obj0 = 0 ;
24891 char *kwnames[] = {
24892 (char *) "text", NULL
24893 };
24894
24895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24896 if (obj0) {
24897 {
24898 arg1 = wxString_in_helper(obj0);
24899 if (arg1 == NULL) SWIG_fail;
24900 temp1 = True;
24901 }
24902 }
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24906
24907 wxPyEndAllowThreads(__tstate);
24908 if (PyErr_Occurred()) SWIG_fail;
24909 }
24910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24911 {
24912 if (temp1)
24913 delete arg1;
24914 }
24915 return resultobj;
24916 fail:
24917 {
24918 if (temp1)
24919 delete arg1;
24920 }
24921 return NULL;
24922 }
24923
24924
24925 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24926 PyObject *resultobj;
24927 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24928 PyObject *arg2 = (PyObject *) 0 ;
24929 PyObject *arg3 = (PyObject *) 0 ;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 PyObject * obj2 = 0 ;
24933 char *kwnames[] = {
24934 (char *) "self",(char *) "self",(char *) "_class", NULL
24935 };
24936
24937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
24939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24940 arg2 = obj1;
24941 arg3 = obj2;
24942 {
24943 PyThreadState* __tstate = wxPyBeginAllowThreads();
24944 (arg1)->_setCallbackInfo(arg2,arg3);
24945
24946 wxPyEndAllowThreads(__tstate);
24947 if (PyErr_Occurred()) SWIG_fail;
24948 }
24949 Py_INCREF(Py_None); resultobj = Py_None;
24950 return resultobj;
24951 fail:
24952 return NULL;
24953 }
24954
24955
24956 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
24957 PyObject *obj;
24958 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24959 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
24960 Py_INCREF(obj);
24961 return Py_BuildValue((char *)"");
24962 }
24963 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24964 PyObject *resultobj;
24965 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24966 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24967 wxBitmapDataObject *result;
24968 PyObject * obj0 = 0 ;
24969 char *kwnames[] = {
24970 (char *) "bitmap", NULL
24971 };
24972
24973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
24974 if (obj0) {
24975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24976 SWIG_POINTER_EXCEPTION | 0)) == -1)
24977 SWIG_fail;
24978 if (arg1 == NULL) {
24979 PyErr_SetString(PyExc_TypeError,"null reference");
24980 SWIG_fail;
24981 }
24982 }
24983 {
24984 PyThreadState* __tstate = wxPyBeginAllowThreads();
24985 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
24986
24987 wxPyEndAllowThreads(__tstate);
24988 if (PyErr_Occurred()) SWIG_fail;
24989 }
24990 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
24991 return resultobj;
24992 fail:
24993 return NULL;
24994 }
24995
24996
24997 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24998 PyObject *resultobj;
24999 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25000 wxBitmap result;
25001 PyObject * obj0 = 0 ;
25002 char *kwnames[] = {
25003 (char *) "self", NULL
25004 };
25005
25006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25009 {
25010 PyThreadState* __tstate = wxPyBeginAllowThreads();
25011 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25012
25013 wxPyEndAllowThreads(__tstate);
25014 if (PyErr_Occurred()) SWIG_fail;
25015 }
25016 {
25017 wxBitmap * resultptr;
25018 resultptr = new wxBitmap((wxBitmap &) result);
25019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25020 }
25021 return resultobj;
25022 fail:
25023 return NULL;
25024 }
25025
25026
25027 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj;
25029 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25030 wxBitmap *arg2 = 0 ;
25031 PyObject * obj0 = 0 ;
25032 PyObject * obj1 = 0 ;
25033 char *kwnames[] = {
25034 (char *) "self",(char *) "bitmap", NULL
25035 };
25036
25037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25041 SWIG_POINTER_EXCEPTION | 0)) == -1)
25042 SWIG_fail;
25043 if (arg2 == NULL) {
25044 PyErr_SetString(PyExc_TypeError,"null reference");
25045 SWIG_fail;
25046 }
25047 {
25048 PyThreadState* __tstate = wxPyBeginAllowThreads();
25049 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25050
25051 wxPyEndAllowThreads(__tstate);
25052 if (PyErr_Occurred()) SWIG_fail;
25053 }
25054 Py_INCREF(Py_None); resultobj = Py_None;
25055 return resultobj;
25056 fail:
25057 return NULL;
25058 }
25059
25060
25061 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25062 PyObject *obj;
25063 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25064 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25065 Py_INCREF(obj);
25066 return Py_BuildValue((char *)"");
25067 }
25068 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25069 PyObject *resultobj;
25070 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25071 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25072 wxPyBitmapDataObject *result;
25073 PyObject * obj0 = 0 ;
25074 char *kwnames[] = {
25075 (char *) "bitmap", NULL
25076 };
25077
25078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25079 if (obj0) {
25080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25081 SWIG_POINTER_EXCEPTION | 0)) == -1)
25082 SWIG_fail;
25083 if (arg1 == NULL) {
25084 PyErr_SetString(PyExc_TypeError,"null reference");
25085 SWIG_fail;
25086 }
25087 }
25088 {
25089 PyThreadState* __tstate = wxPyBeginAllowThreads();
25090 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25091
25092 wxPyEndAllowThreads(__tstate);
25093 if (PyErr_Occurred()) SWIG_fail;
25094 }
25095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25096 return resultobj;
25097 fail:
25098 return NULL;
25099 }
25100
25101
25102 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25103 PyObject *resultobj;
25104 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25105 PyObject *arg2 = (PyObject *) 0 ;
25106 PyObject *arg3 = (PyObject *) 0 ;
25107 PyObject * obj0 = 0 ;
25108 PyObject * obj1 = 0 ;
25109 PyObject * obj2 = 0 ;
25110 char *kwnames[] = {
25111 (char *) "self",(char *) "self",(char *) "_class", NULL
25112 };
25113
25114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25117 arg2 = obj1;
25118 arg3 = obj2;
25119 {
25120 PyThreadState* __tstate = wxPyBeginAllowThreads();
25121 (arg1)->_setCallbackInfo(arg2,arg3);
25122
25123 wxPyEndAllowThreads(__tstate);
25124 if (PyErr_Occurred()) SWIG_fail;
25125 }
25126 Py_INCREF(Py_None); resultobj = Py_None;
25127 return resultobj;
25128 fail:
25129 return NULL;
25130 }
25131
25132
25133 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25134 PyObject *obj;
25135 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25136 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25137 Py_INCREF(obj);
25138 return Py_BuildValue((char *)"");
25139 }
25140 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25141 PyObject *resultobj;
25142 wxFileDataObject *result;
25143 char *kwnames[] = {
25144 NULL
25145 };
25146
25147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25148 {
25149 PyThreadState* __tstate = wxPyBeginAllowThreads();
25150 result = (wxFileDataObject *)new wxFileDataObject();
25151
25152 wxPyEndAllowThreads(__tstate);
25153 if (PyErr_Occurred()) SWIG_fail;
25154 }
25155 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25156 return resultobj;
25157 fail:
25158 return NULL;
25159 }
25160
25161
25162 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25163 PyObject *resultobj;
25164 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25165 wxArrayString *result;
25166 PyObject * obj0 = 0 ;
25167 char *kwnames[] = {
25168 (char *) "self", NULL
25169 };
25170
25171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 {
25177 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25178 result = (wxArrayString *) &_result_ref;
25179 }
25180
25181 wxPyEndAllowThreads(__tstate);
25182 if (PyErr_Occurred()) SWIG_fail;
25183 }
25184 {
25185 resultobj = wxArrayString2PyList_helper(*result);
25186 }
25187 return resultobj;
25188 fail:
25189 return NULL;
25190 }
25191
25192
25193 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj;
25195 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25196 wxString *arg2 = 0 ;
25197 bool temp2 = False ;
25198 PyObject * obj0 = 0 ;
25199 PyObject * obj1 = 0 ;
25200 char *kwnames[] = {
25201 (char *) "self",(char *) "filename", NULL
25202 };
25203
25204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25207 {
25208 arg2 = wxString_in_helper(obj1);
25209 if (arg2 == NULL) SWIG_fail;
25210 temp2 = True;
25211 }
25212 {
25213 PyThreadState* __tstate = wxPyBeginAllowThreads();
25214 (arg1)->AddFile((wxString const &)*arg2);
25215
25216 wxPyEndAllowThreads(__tstate);
25217 if (PyErr_Occurred()) SWIG_fail;
25218 }
25219 Py_INCREF(Py_None); resultobj = Py_None;
25220 {
25221 if (temp2)
25222 delete arg2;
25223 }
25224 return resultobj;
25225 fail:
25226 {
25227 if (temp2)
25228 delete arg2;
25229 }
25230 return NULL;
25231 }
25232
25233
25234 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25235 PyObject *obj;
25236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25237 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25238 Py_INCREF(obj);
25239 return Py_BuildValue((char *)"");
25240 }
25241 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25242 PyObject *resultobj;
25243 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25244 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25245 wxCustomDataObject *result;
25246 PyObject * obj0 = 0 ;
25247 char *kwnames[] = {
25248 (char *) "format", NULL
25249 };
25250
25251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25252 if (obj0) {
25253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25254 SWIG_POINTER_EXCEPTION | 0)) == -1)
25255 SWIG_fail;
25256 if (arg1 == NULL) {
25257 PyErr_SetString(PyExc_TypeError,"null reference");
25258 SWIG_fail;
25259 }
25260 }
25261 {
25262 PyThreadState* __tstate = wxPyBeginAllowThreads();
25263 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25264
25265 wxPyEndAllowThreads(__tstate);
25266 if (PyErr_Occurred()) SWIG_fail;
25267 }
25268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25269 return resultobj;
25270 fail:
25271 return NULL;
25272 }
25273
25274
25275 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
25276 PyObject *resultobj;
25277 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25278 PyObject *arg2 = (PyObject *) 0 ;
25279 PyObject * obj0 = 0 ;
25280 PyObject * obj1 = 0 ;
25281 char *kwnames[] = {
25282 (char *) "self",(char *) "data", NULL
25283 };
25284
25285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25288 arg2 = obj1;
25289 {
25290 PyThreadState* __tstate = wxPyBeginAllowThreads();
25291 wxCustomDataObject_TakeData(arg1,arg2);
25292
25293 wxPyEndAllowThreads(__tstate);
25294 if (PyErr_Occurred()) SWIG_fail;
25295 }
25296 Py_INCREF(Py_None); resultobj = Py_None;
25297 return resultobj;
25298 fail:
25299 return NULL;
25300 }
25301
25302
25303 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25304 PyObject *resultobj;
25305 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25306 PyObject *arg2 = (PyObject *) 0 ;
25307 bool result;
25308 PyObject * obj0 = 0 ;
25309 PyObject * obj1 = 0 ;
25310 char *kwnames[] = {
25311 (char *) "self",(char *) "data", NULL
25312 };
25313
25314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25317 arg2 = obj1;
25318 {
25319 PyThreadState* __tstate = wxPyBeginAllowThreads();
25320 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25321
25322 wxPyEndAllowThreads(__tstate);
25323 if (PyErr_Occurred()) SWIG_fail;
25324 }
25325 {
25326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25327 }
25328 return resultobj;
25329 fail:
25330 return NULL;
25331 }
25332
25333
25334 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25335 PyObject *resultobj;
25336 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25337 size_t result;
25338 PyObject * obj0 = 0 ;
25339 char *kwnames[] = {
25340 (char *) "self", NULL
25341 };
25342
25343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25346 {
25347 PyThreadState* __tstate = wxPyBeginAllowThreads();
25348 result = (size_t)(arg1)->GetSize();
25349
25350 wxPyEndAllowThreads(__tstate);
25351 if (PyErr_Occurred()) SWIG_fail;
25352 }
25353 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25354 return resultobj;
25355 fail:
25356 return NULL;
25357 }
25358
25359
25360 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25361 PyObject *resultobj;
25362 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25363 PyObject *result;
25364 PyObject * obj0 = 0 ;
25365 char *kwnames[] = {
25366 (char *) "self", NULL
25367 };
25368
25369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25372 {
25373 PyThreadState* __tstate = wxPyBeginAllowThreads();
25374 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25375
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 resultobj = result;
25380 return resultobj;
25381 fail:
25382 return NULL;
25383 }
25384
25385
25386 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25387 PyObject *obj;
25388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25389 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25390 Py_INCREF(obj);
25391 return Py_BuildValue((char *)"");
25392 }
25393 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25394 PyObject *resultobj;
25395 wxURLDataObject *result;
25396 char *kwnames[] = {
25397 NULL
25398 };
25399
25400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25401 {
25402 PyThreadState* __tstate = wxPyBeginAllowThreads();
25403 result = (wxURLDataObject *)new wxURLDataObject();
25404
25405 wxPyEndAllowThreads(__tstate);
25406 if (PyErr_Occurred()) SWIG_fail;
25407 }
25408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25409 return resultobj;
25410 fail:
25411 return NULL;
25412 }
25413
25414
25415 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25416 PyObject *resultobj;
25417 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25418 wxString result;
25419 PyObject * obj0 = 0 ;
25420 char *kwnames[] = {
25421 (char *) "self", NULL
25422 };
25423
25424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25427 {
25428 PyThreadState* __tstate = wxPyBeginAllowThreads();
25429 result = (arg1)->GetURL();
25430
25431 wxPyEndAllowThreads(__tstate);
25432 if (PyErr_Occurred()) SWIG_fail;
25433 }
25434 {
25435 #if wxUSE_UNICODE
25436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25437 #else
25438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25439 #endif
25440 }
25441 return resultobj;
25442 fail:
25443 return NULL;
25444 }
25445
25446
25447 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25448 PyObject *resultobj;
25449 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25450 wxString *arg2 = 0 ;
25451 bool temp2 = False ;
25452 PyObject * obj0 = 0 ;
25453 PyObject * obj1 = 0 ;
25454 char *kwnames[] = {
25455 (char *) "self",(char *) "url", NULL
25456 };
25457
25458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25461 {
25462 arg2 = wxString_in_helper(obj1);
25463 if (arg2 == NULL) SWIG_fail;
25464 temp2 = True;
25465 }
25466 {
25467 PyThreadState* __tstate = wxPyBeginAllowThreads();
25468 (arg1)->SetURL((wxString const &)*arg2);
25469
25470 wxPyEndAllowThreads(__tstate);
25471 if (PyErr_Occurred()) SWIG_fail;
25472 }
25473 Py_INCREF(Py_None); resultobj = Py_None;
25474 {
25475 if (temp2)
25476 delete arg2;
25477 }
25478 return resultobj;
25479 fail:
25480 {
25481 if (temp2)
25482 delete arg2;
25483 }
25484 return NULL;
25485 }
25486
25487
25488 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25489 PyObject *obj;
25490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25491 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25492 Py_INCREF(obj);
25493 return Py_BuildValue((char *)"");
25494 }
25495 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25496 PyObject *resultobj;
25497 wxMetafileDataObject *result;
25498 char *kwnames[] = {
25499 NULL
25500 };
25501
25502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25503 {
25504 PyThreadState* __tstate = wxPyBeginAllowThreads();
25505 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25506
25507 wxPyEndAllowThreads(__tstate);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25511 return resultobj;
25512 fail:
25513 return NULL;
25514 }
25515
25516
25517 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25518 PyObject *resultobj;
25519 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25520 wxMetafile *arg2 = 0 ;
25521 PyObject * obj0 = 0 ;
25522 PyObject * obj1 = 0 ;
25523 char *kwnames[] = {
25524 (char *) "self",(char *) "metafile", NULL
25525 };
25526
25527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25531 SWIG_POINTER_EXCEPTION | 0)) == -1)
25532 SWIG_fail;
25533 if (arg2 == NULL) {
25534 PyErr_SetString(PyExc_TypeError,"null reference");
25535 SWIG_fail;
25536 }
25537 {
25538 PyThreadState* __tstate = wxPyBeginAllowThreads();
25539 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25540
25541 wxPyEndAllowThreads(__tstate);
25542 if (PyErr_Occurred()) SWIG_fail;
25543 }
25544 Py_INCREF(Py_None); resultobj = Py_None;
25545 return resultobj;
25546 fail:
25547 return NULL;
25548 }
25549
25550
25551 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25552 PyObject *resultobj;
25553 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25554 wxMetafile result;
25555 PyObject * obj0 = 0 ;
25556 char *kwnames[] = {
25557 (char *) "self", NULL
25558 };
25559
25560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25563 {
25564 PyThreadState* __tstate = wxPyBeginAllowThreads();
25565 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25566
25567 wxPyEndAllowThreads(__tstate);
25568 if (PyErr_Occurred()) SWIG_fail;
25569 }
25570 {
25571 wxMetafile * resultptr;
25572 resultptr = new wxMetafile((wxMetafile &) result);
25573 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25574 }
25575 return resultobj;
25576 fail:
25577 return NULL;
25578 }
25579
25580
25581 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25582 PyObject *obj;
25583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25584 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25585 Py_INCREF(obj);
25586 return Py_BuildValue((char *)"");
25587 }
25588 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25589 PyObject *resultobj;
25590 int arg1 ;
25591 bool result;
25592 PyObject * obj0 = 0 ;
25593 char *kwnames[] = {
25594 (char *) "res", NULL
25595 };
25596
25597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25598 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25599 if (PyErr_Occurred()) SWIG_fail;
25600 {
25601 PyThreadState* __tstate = wxPyBeginAllowThreads();
25602 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25603
25604 wxPyEndAllowThreads(__tstate);
25605 if (PyErr_Occurred()) SWIG_fail;
25606 }
25607 {
25608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25609 }
25610 return resultobj;
25611 fail:
25612 return NULL;
25613 }
25614
25615
25616 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25617 PyObject *resultobj;
25618 wxWindow *arg1 = (wxWindow *) 0 ;
25619 wxCursor const &arg2_defvalue = wxNullCursor ;
25620 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25621 wxCursor const &arg3_defvalue = wxNullCursor ;
25622 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25623 wxCursor const &arg4_defvalue = wxNullCursor ;
25624 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25625 wxPyDropSource *result;
25626 PyObject * obj0 = 0 ;
25627 PyObject * obj1 = 0 ;
25628 PyObject * obj2 = 0 ;
25629 PyObject * obj3 = 0 ;
25630 char *kwnames[] = {
25631 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25632 };
25633
25634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25637 if (obj1) {
25638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25639 SWIG_POINTER_EXCEPTION | 0)) == -1)
25640 SWIG_fail;
25641 if (arg2 == NULL) {
25642 PyErr_SetString(PyExc_TypeError,"null reference");
25643 SWIG_fail;
25644 }
25645 }
25646 if (obj2) {
25647 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25648 SWIG_POINTER_EXCEPTION | 0)) == -1)
25649 SWIG_fail;
25650 if (arg3 == NULL) {
25651 PyErr_SetString(PyExc_TypeError,"null reference");
25652 SWIG_fail;
25653 }
25654 }
25655 if (obj3) {
25656 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25657 SWIG_POINTER_EXCEPTION | 0)) == -1)
25658 SWIG_fail;
25659 if (arg4 == NULL) {
25660 PyErr_SetString(PyExc_TypeError,"null reference");
25661 SWIG_fail;
25662 }
25663 }
25664 {
25665 PyThreadState* __tstate = wxPyBeginAllowThreads();
25666 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25667
25668 wxPyEndAllowThreads(__tstate);
25669 if (PyErr_Occurred()) SWIG_fail;
25670 }
25671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25672 return resultobj;
25673 fail:
25674 return NULL;
25675 }
25676
25677
25678 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25679 PyObject *resultobj;
25680 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25681 PyObject *arg2 = (PyObject *) 0 ;
25682 PyObject *arg3 = (PyObject *) 0 ;
25683 int arg4 ;
25684 PyObject * obj0 = 0 ;
25685 PyObject * obj1 = 0 ;
25686 PyObject * obj2 = 0 ;
25687 PyObject * obj3 = 0 ;
25688 char *kwnames[] = {
25689 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25690 };
25691
25692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25695 arg2 = obj1;
25696 arg3 = obj2;
25697 arg4 = (int) SWIG_AsInt(obj3);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 {
25700 PyThreadState* __tstate = wxPyBeginAllowThreads();
25701 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25702
25703 wxPyEndAllowThreads(__tstate);
25704 if (PyErr_Occurred()) SWIG_fail;
25705 }
25706 Py_INCREF(Py_None); resultobj = Py_None;
25707 return resultobj;
25708 fail:
25709 return NULL;
25710 }
25711
25712
25713 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25714 PyObject *resultobj;
25715 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25716 PyObject * obj0 = 0 ;
25717 char *kwnames[] = {
25718 (char *) "self", NULL
25719 };
25720
25721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25724 {
25725 PyThreadState* __tstate = wxPyBeginAllowThreads();
25726 delete arg1;
25727
25728 wxPyEndAllowThreads(__tstate);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
25731 Py_INCREF(Py_None); resultobj = Py_None;
25732 return resultobj;
25733 fail:
25734 return NULL;
25735 }
25736
25737
25738 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25739 PyObject *resultobj;
25740 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25741 wxDataObject *arg2 = 0 ;
25742 PyObject * obj0 = 0 ;
25743 PyObject * obj1 = 0 ;
25744 char *kwnames[] = {
25745 (char *) "self",(char *) "data", NULL
25746 };
25747
25748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25751 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25752 SWIG_POINTER_EXCEPTION | 0)) == -1)
25753 SWIG_fail;
25754 if (arg2 == NULL) {
25755 PyErr_SetString(PyExc_TypeError,"null reference");
25756 SWIG_fail;
25757 }
25758 {
25759 PyThreadState* __tstate = wxPyBeginAllowThreads();
25760 (arg1)->SetData(*arg2);
25761
25762 wxPyEndAllowThreads(__tstate);
25763 if (PyErr_Occurred()) SWIG_fail;
25764 }
25765 Py_INCREF(Py_None); resultobj = Py_None;
25766 return resultobj;
25767 fail:
25768 return NULL;
25769 }
25770
25771
25772 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25773 PyObject *resultobj;
25774 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25775 wxDataObject *result;
25776 PyObject * obj0 = 0 ;
25777 char *kwnames[] = {
25778 (char *) "self", NULL
25779 };
25780
25781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25784 {
25785 PyThreadState* __tstate = wxPyBeginAllowThreads();
25786 result = (wxDataObject *)(arg1)->GetDataObject();
25787
25788 wxPyEndAllowThreads(__tstate);
25789 if (PyErr_Occurred()) SWIG_fail;
25790 }
25791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25792 return resultobj;
25793 fail:
25794 return NULL;
25795 }
25796
25797
25798 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25799 PyObject *resultobj;
25800 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25801 int arg2 ;
25802 wxCursor *arg3 = 0 ;
25803 PyObject * obj0 = 0 ;
25804 PyObject * obj1 = 0 ;
25805 PyObject * obj2 = 0 ;
25806 char *kwnames[] = {
25807 (char *) "self",(char *) "res",(char *) "cursor", NULL
25808 };
25809
25810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25813 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25814 if (PyErr_Occurred()) SWIG_fail;
25815 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25816 SWIG_POINTER_EXCEPTION | 0)) == -1)
25817 SWIG_fail;
25818 if (arg3 == NULL) {
25819 PyErr_SetString(PyExc_TypeError,"null reference");
25820 SWIG_fail;
25821 }
25822 {
25823 PyThreadState* __tstate = wxPyBeginAllowThreads();
25824 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25825
25826 wxPyEndAllowThreads(__tstate);
25827 if (PyErr_Occurred()) SWIG_fail;
25828 }
25829 Py_INCREF(Py_None); resultobj = Py_None;
25830 return resultobj;
25831 fail:
25832 return NULL;
25833 }
25834
25835
25836 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25837 PyObject *resultobj;
25838 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25839 int arg2 = (int) wxDrag_CopyOnly ;
25840 int result;
25841 PyObject * obj0 = 0 ;
25842 PyObject * obj1 = 0 ;
25843 char *kwnames[] = {
25844 (char *) "self",(char *) "flags", NULL
25845 };
25846
25847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25850 if (obj1) {
25851 arg2 = (int) SWIG_AsInt(obj1);
25852 if (PyErr_Occurred()) SWIG_fail;
25853 }
25854 {
25855 PyThreadState* __tstate = wxPyBeginAllowThreads();
25856 result = (int)(arg1)->DoDragDrop(arg2);
25857
25858 wxPyEndAllowThreads(__tstate);
25859 if (PyErr_Occurred()) SWIG_fail;
25860 }
25861 resultobj = SWIG_FromInt((int)result);
25862 return resultobj;
25863 fail:
25864 return NULL;
25865 }
25866
25867
25868 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25869 PyObject *resultobj;
25870 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25871 int arg2 ;
25872 bool result;
25873 PyObject * obj0 = 0 ;
25874 PyObject * obj1 = 0 ;
25875 char *kwnames[] = {
25876 (char *) "self",(char *) "effect", NULL
25877 };
25878
25879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25882 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25887
25888 wxPyEndAllowThreads(__tstate);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
25891 {
25892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25893 }
25894 return resultobj;
25895 fail:
25896 return NULL;
25897 }
25898
25899
25900 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25901 PyObject *obj;
25902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25903 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25904 Py_INCREF(obj);
25905 return Py_BuildValue((char *)"");
25906 }
25907 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25908 PyObject *resultobj;
25909 wxDataObject *arg1 = (wxDataObject *) NULL ;
25910 wxPyDropTarget *result;
25911 PyObject * obj0 = 0 ;
25912 char *kwnames[] = {
25913 (char *) "dataObject", NULL
25914 };
25915
25916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25917 if (obj0) {
25918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25919 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25920 }
25921 {
25922 PyThreadState* __tstate = wxPyBeginAllowThreads();
25923 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25924
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25929 return resultobj;
25930 fail:
25931 return NULL;
25932 }
25933
25934
25935 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25936 PyObject *resultobj;
25937 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25938 PyObject *arg2 = (PyObject *) 0 ;
25939 PyObject *arg3 = (PyObject *) 0 ;
25940 PyObject * obj0 = 0 ;
25941 PyObject * obj1 = 0 ;
25942 PyObject * obj2 = 0 ;
25943 char *kwnames[] = {
25944 (char *) "self",(char *) "self",(char *) "_class", NULL
25945 };
25946
25947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25950 arg2 = obj1;
25951 arg3 = obj2;
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 (arg1)->_setCallbackInfo(arg2,arg3);
25955
25956 wxPyEndAllowThreads(__tstate);
25957 if (PyErr_Occurred()) SWIG_fail;
25958 }
25959 Py_INCREF(Py_None); resultobj = Py_None;
25960 return resultobj;
25961 fail:
25962 return NULL;
25963 }
25964
25965
25966 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25967 PyObject *resultobj;
25968 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25969 PyObject * obj0 = 0 ;
25970 char *kwnames[] = {
25971 (char *) "self", NULL
25972 };
25973
25974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
25975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25977 {
25978 PyThreadState* __tstate = wxPyBeginAllowThreads();
25979 delete arg1;
25980
25981 wxPyEndAllowThreads(__tstate);
25982 if (PyErr_Occurred()) SWIG_fail;
25983 }
25984 Py_INCREF(Py_None); resultobj = Py_None;
25985 return resultobj;
25986 fail:
25987 return NULL;
25988 }
25989
25990
25991 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25992 PyObject *resultobj;
25993 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25994 wxDataObject *result;
25995 PyObject * obj0 = 0 ;
25996 char *kwnames[] = {
25997 (char *) "self", NULL
25998 };
25999
26000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26003 {
26004 PyThreadState* __tstate = wxPyBeginAllowThreads();
26005 result = (wxDataObject *)(arg1)->GetDataObject();
26006
26007 wxPyEndAllowThreads(__tstate);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26011 return resultobj;
26012 fail:
26013 return NULL;
26014 }
26015
26016
26017 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26018 PyObject *resultobj;
26019 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26020 wxDataObject *arg2 = (wxDataObject *) 0 ;
26021 PyObject * obj0 = 0 ;
26022 PyObject * obj1 = 0 ;
26023 char *kwnames[] = {
26024 (char *) "self",(char *) "dataObject", NULL
26025 };
26026
26027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26031 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26032 {
26033 PyThreadState* __tstate = wxPyBeginAllowThreads();
26034 (arg1)->SetDataObject(arg2);
26035
26036 wxPyEndAllowThreads(__tstate);
26037 if (PyErr_Occurred()) SWIG_fail;
26038 }
26039 Py_INCREF(Py_None); resultobj = Py_None;
26040 return resultobj;
26041 fail:
26042 return NULL;
26043 }
26044
26045
26046 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26047 PyObject *resultobj;
26048 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26049 int arg2 ;
26050 int arg3 ;
26051 int arg4 ;
26052 int result;
26053 PyObject * obj0 = 0 ;
26054 PyObject * obj1 = 0 ;
26055 PyObject * obj2 = 0 ;
26056 PyObject * obj3 = 0 ;
26057 char *kwnames[] = {
26058 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26059 };
26060
26061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26064 arg2 = (int) SWIG_AsInt(obj1);
26065 if (PyErr_Occurred()) SWIG_fail;
26066 arg3 = (int) SWIG_AsInt(obj2);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 {
26071 PyThreadState* __tstate = wxPyBeginAllowThreads();
26072 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26073
26074 wxPyEndAllowThreads(__tstate);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 resultobj = SWIG_FromInt((int)result);
26078 return resultobj;
26079 fail:
26080 return NULL;
26081 }
26082
26083
26084 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26085 PyObject *resultobj;
26086 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26087 int arg2 ;
26088 int arg3 ;
26089 int arg4 ;
26090 int result;
26091 PyObject * obj0 = 0 ;
26092 PyObject * obj1 = 0 ;
26093 PyObject * obj2 = 0 ;
26094 PyObject * obj3 = 0 ;
26095 char *kwnames[] = {
26096 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26097 };
26098
26099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26102 arg2 = (int) SWIG_AsInt(obj1);
26103 if (PyErr_Occurred()) SWIG_fail;
26104 arg3 = (int) SWIG_AsInt(obj2);
26105 if (PyErr_Occurred()) SWIG_fail;
26106 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26107 if (PyErr_Occurred()) SWIG_fail;
26108 {
26109 PyThreadState* __tstate = wxPyBeginAllowThreads();
26110 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26111
26112 wxPyEndAllowThreads(__tstate);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_FromInt((int)result);
26116 return resultobj;
26117 fail:
26118 return NULL;
26119 }
26120
26121
26122 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26123 PyObject *resultobj;
26124 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26125 PyObject * obj0 = 0 ;
26126 char *kwnames[] = {
26127 (char *) "self", NULL
26128 };
26129
26130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 (arg1)->base_OnLeave();
26136
26137 wxPyEndAllowThreads(__tstate);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
26140 Py_INCREF(Py_None); resultobj = Py_None;
26141 return resultobj;
26142 fail:
26143 return NULL;
26144 }
26145
26146
26147 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26148 PyObject *resultobj;
26149 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26150 int arg2 ;
26151 int arg3 ;
26152 bool result;
26153 PyObject * obj0 = 0 ;
26154 PyObject * obj1 = 0 ;
26155 PyObject * obj2 = 0 ;
26156 char *kwnames[] = {
26157 (char *) "self",(char *) "x",(char *) "y", NULL
26158 };
26159
26160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26163 arg2 = (int) SWIG_AsInt(obj1);
26164 if (PyErr_Occurred()) SWIG_fail;
26165 arg3 = (int) SWIG_AsInt(obj2);
26166 if (PyErr_Occurred()) SWIG_fail;
26167 {
26168 PyThreadState* __tstate = wxPyBeginAllowThreads();
26169 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26170
26171 wxPyEndAllowThreads(__tstate);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 {
26175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26176 }
26177 return resultobj;
26178 fail:
26179 return NULL;
26180 }
26181
26182
26183 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26184 PyObject *resultobj;
26185 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26186 bool result;
26187 PyObject * obj0 = 0 ;
26188 char *kwnames[] = {
26189 (char *) "self", NULL
26190 };
26191
26192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26195 {
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 result = (bool)(arg1)->GetData();
26198
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 {
26203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26204 }
26205 return resultobj;
26206 fail:
26207 return NULL;
26208 }
26209
26210
26211 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26212 PyObject *obj;
26213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26214 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26215 Py_INCREF(obj);
26216 return Py_BuildValue((char *)"");
26217 }
26218 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26219 PyObject *resultobj;
26220 wxPyTextDropTarget *result;
26221 char *kwnames[] = {
26222 NULL
26223 };
26224
26225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26226 {
26227 PyThreadState* __tstate = wxPyBeginAllowThreads();
26228 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26229
26230 wxPyEndAllowThreads(__tstate);
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26234 return resultobj;
26235 fail:
26236 return NULL;
26237 }
26238
26239
26240 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26241 PyObject *resultobj;
26242 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26243 PyObject *arg2 = (PyObject *) 0 ;
26244 PyObject *arg3 = (PyObject *) 0 ;
26245 PyObject * obj0 = 0 ;
26246 PyObject * obj1 = 0 ;
26247 PyObject * obj2 = 0 ;
26248 char *kwnames[] = {
26249 (char *) "self",(char *) "self",(char *) "_class", NULL
26250 };
26251
26252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26255 arg2 = obj1;
26256 arg3 = obj2;
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 (arg1)->_setCallbackInfo(arg2,arg3);
26260
26261 wxPyEndAllowThreads(__tstate);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 Py_INCREF(Py_None); resultobj = Py_None;
26265 return resultobj;
26266 fail:
26267 return NULL;
26268 }
26269
26270
26271 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26272 PyObject *resultobj;
26273 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26274 int arg2 ;
26275 int arg3 ;
26276 int arg4 ;
26277 int result;
26278 PyObject * obj0 = 0 ;
26279 PyObject * obj1 = 0 ;
26280 PyObject * obj2 = 0 ;
26281 PyObject * obj3 = 0 ;
26282 char *kwnames[] = {
26283 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26284 };
26285
26286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26289 arg2 = (int) SWIG_AsInt(obj1);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 arg3 = (int) SWIG_AsInt(obj2);
26292 if (PyErr_Occurred()) SWIG_fail;
26293 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26294 if (PyErr_Occurred()) SWIG_fail;
26295 {
26296 PyThreadState* __tstate = wxPyBeginAllowThreads();
26297 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26298
26299 wxPyEndAllowThreads(__tstate);
26300 if (PyErr_Occurred()) SWIG_fail;
26301 }
26302 resultobj = SWIG_FromInt((int)result);
26303 return resultobj;
26304 fail:
26305 return NULL;
26306 }
26307
26308
26309 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26310 PyObject *resultobj;
26311 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26312 int arg2 ;
26313 int arg3 ;
26314 int arg4 ;
26315 int result;
26316 PyObject * obj0 = 0 ;
26317 PyObject * obj1 = 0 ;
26318 PyObject * obj2 = 0 ;
26319 PyObject * obj3 = 0 ;
26320 char *kwnames[] = {
26321 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26322 };
26323
26324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26327 arg2 = (int) SWIG_AsInt(obj1);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 arg3 = (int) SWIG_AsInt(obj2);
26330 if (PyErr_Occurred()) SWIG_fail;
26331 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26332 if (PyErr_Occurred()) SWIG_fail;
26333 {
26334 PyThreadState* __tstate = wxPyBeginAllowThreads();
26335 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26336
26337 wxPyEndAllowThreads(__tstate);
26338 if (PyErr_Occurred()) SWIG_fail;
26339 }
26340 resultobj = SWIG_FromInt((int)result);
26341 return resultobj;
26342 fail:
26343 return NULL;
26344 }
26345
26346
26347 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26348 PyObject *resultobj;
26349 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26350 PyObject * obj0 = 0 ;
26351 char *kwnames[] = {
26352 (char *) "self", NULL
26353 };
26354
26355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26358 {
26359 PyThreadState* __tstate = wxPyBeginAllowThreads();
26360 (arg1)->base_OnLeave();
26361
26362 wxPyEndAllowThreads(__tstate);
26363 if (PyErr_Occurred()) SWIG_fail;
26364 }
26365 Py_INCREF(Py_None); resultobj = Py_None;
26366 return resultobj;
26367 fail:
26368 return NULL;
26369 }
26370
26371
26372 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26373 PyObject *resultobj;
26374 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26375 int arg2 ;
26376 int arg3 ;
26377 bool result;
26378 PyObject * obj0 = 0 ;
26379 PyObject * obj1 = 0 ;
26380 PyObject * obj2 = 0 ;
26381 char *kwnames[] = {
26382 (char *) "self",(char *) "x",(char *) "y", NULL
26383 };
26384
26385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26388 arg2 = (int) SWIG_AsInt(obj1);
26389 if (PyErr_Occurred()) SWIG_fail;
26390 arg3 = (int) SWIG_AsInt(obj2);
26391 if (PyErr_Occurred()) SWIG_fail;
26392 {
26393 PyThreadState* __tstate = wxPyBeginAllowThreads();
26394 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26395
26396 wxPyEndAllowThreads(__tstate);
26397 if (PyErr_Occurred()) SWIG_fail;
26398 }
26399 {
26400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26401 }
26402 return resultobj;
26403 fail:
26404 return NULL;
26405 }
26406
26407
26408 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26409 PyObject *resultobj;
26410 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26411 int arg2 ;
26412 int arg3 ;
26413 int arg4 ;
26414 int result;
26415 PyObject * obj0 = 0 ;
26416 PyObject * obj1 = 0 ;
26417 PyObject * obj2 = 0 ;
26418 PyObject * obj3 = 0 ;
26419 char *kwnames[] = {
26420 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26421 };
26422
26423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26426 arg2 = (int) SWIG_AsInt(obj1);
26427 if (PyErr_Occurred()) SWIG_fail;
26428 arg3 = (int) SWIG_AsInt(obj2);
26429 if (PyErr_Occurred()) SWIG_fail;
26430 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26431 if (PyErr_Occurred()) SWIG_fail;
26432 {
26433 PyThreadState* __tstate = wxPyBeginAllowThreads();
26434 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26435
26436 wxPyEndAllowThreads(__tstate);
26437 if (PyErr_Occurred()) SWIG_fail;
26438 }
26439 resultobj = SWIG_FromInt((int)result);
26440 return resultobj;
26441 fail:
26442 return NULL;
26443 }
26444
26445
26446 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26447 PyObject *obj;
26448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26449 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26450 Py_INCREF(obj);
26451 return Py_BuildValue((char *)"");
26452 }
26453 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26454 PyObject *resultobj;
26455 wxPyFileDropTarget *result;
26456 char *kwnames[] = {
26457 NULL
26458 };
26459
26460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26461 {
26462 PyThreadState* __tstate = wxPyBeginAllowThreads();
26463 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26464
26465 wxPyEndAllowThreads(__tstate);
26466 if (PyErr_Occurred()) SWIG_fail;
26467 }
26468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26469 return resultobj;
26470 fail:
26471 return NULL;
26472 }
26473
26474
26475 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26476 PyObject *resultobj;
26477 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26478 PyObject *arg2 = (PyObject *) 0 ;
26479 PyObject *arg3 = (PyObject *) 0 ;
26480 PyObject * obj0 = 0 ;
26481 PyObject * obj1 = 0 ;
26482 PyObject * obj2 = 0 ;
26483 char *kwnames[] = {
26484 (char *) "self",(char *) "self",(char *) "_class", NULL
26485 };
26486
26487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26490 arg2 = obj1;
26491 arg3 = obj2;
26492 {
26493 PyThreadState* __tstate = wxPyBeginAllowThreads();
26494 (arg1)->_setCallbackInfo(arg2,arg3);
26495
26496 wxPyEndAllowThreads(__tstate);
26497 if (PyErr_Occurred()) SWIG_fail;
26498 }
26499 Py_INCREF(Py_None); resultobj = Py_None;
26500 return resultobj;
26501 fail:
26502 return NULL;
26503 }
26504
26505
26506 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26507 PyObject *resultobj;
26508 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26509 int arg2 ;
26510 int arg3 ;
26511 int arg4 ;
26512 int result;
26513 PyObject * obj0 = 0 ;
26514 PyObject * obj1 = 0 ;
26515 PyObject * obj2 = 0 ;
26516 PyObject * obj3 = 0 ;
26517 char *kwnames[] = {
26518 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26519 };
26520
26521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26524 arg2 = (int) SWIG_AsInt(obj1);
26525 if (PyErr_Occurred()) SWIG_fail;
26526 arg3 = (int) SWIG_AsInt(obj2);
26527 if (PyErr_Occurred()) SWIG_fail;
26528 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26529 if (PyErr_Occurred()) SWIG_fail;
26530 {
26531 PyThreadState* __tstate = wxPyBeginAllowThreads();
26532 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26533
26534 wxPyEndAllowThreads(__tstate);
26535 if (PyErr_Occurred()) SWIG_fail;
26536 }
26537 resultobj = SWIG_FromInt((int)result);
26538 return resultobj;
26539 fail:
26540 return NULL;
26541 }
26542
26543
26544 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26545 PyObject *resultobj;
26546 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26547 int arg2 ;
26548 int arg3 ;
26549 int arg4 ;
26550 int result;
26551 PyObject * obj0 = 0 ;
26552 PyObject * obj1 = 0 ;
26553 PyObject * obj2 = 0 ;
26554 PyObject * obj3 = 0 ;
26555 char *kwnames[] = {
26556 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26557 };
26558
26559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26562 arg2 = (int) SWIG_AsInt(obj1);
26563 if (PyErr_Occurred()) SWIG_fail;
26564 arg3 = (int) SWIG_AsInt(obj2);
26565 if (PyErr_Occurred()) SWIG_fail;
26566 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26567 if (PyErr_Occurred()) SWIG_fail;
26568 {
26569 PyThreadState* __tstate = wxPyBeginAllowThreads();
26570 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26571
26572 wxPyEndAllowThreads(__tstate);
26573 if (PyErr_Occurred()) SWIG_fail;
26574 }
26575 resultobj = SWIG_FromInt((int)result);
26576 return resultobj;
26577 fail:
26578 return NULL;
26579 }
26580
26581
26582 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26583 PyObject *resultobj;
26584 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26585 PyObject * obj0 = 0 ;
26586 char *kwnames[] = {
26587 (char *) "self", NULL
26588 };
26589
26590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26593 {
26594 PyThreadState* __tstate = wxPyBeginAllowThreads();
26595 (arg1)->base_OnLeave();
26596
26597 wxPyEndAllowThreads(__tstate);
26598 if (PyErr_Occurred()) SWIG_fail;
26599 }
26600 Py_INCREF(Py_None); resultobj = Py_None;
26601 return resultobj;
26602 fail:
26603 return NULL;
26604 }
26605
26606
26607 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26608 PyObject *resultobj;
26609 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26610 int arg2 ;
26611 int arg3 ;
26612 bool result;
26613 PyObject * obj0 = 0 ;
26614 PyObject * obj1 = 0 ;
26615 PyObject * obj2 = 0 ;
26616 char *kwnames[] = {
26617 (char *) "self",(char *) "x",(char *) "y", NULL
26618 };
26619
26620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26623 arg2 = (int) SWIG_AsInt(obj1);
26624 if (PyErr_Occurred()) SWIG_fail;
26625 arg3 = (int) SWIG_AsInt(obj2);
26626 if (PyErr_Occurred()) SWIG_fail;
26627 {
26628 PyThreadState* __tstate = wxPyBeginAllowThreads();
26629 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26630
26631 wxPyEndAllowThreads(__tstate);
26632 if (PyErr_Occurred()) SWIG_fail;
26633 }
26634 {
26635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26636 }
26637 return resultobj;
26638 fail:
26639 return NULL;
26640 }
26641
26642
26643 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26644 PyObject *resultobj;
26645 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26646 int arg2 ;
26647 int arg3 ;
26648 int arg4 ;
26649 int result;
26650 PyObject * obj0 = 0 ;
26651 PyObject * obj1 = 0 ;
26652 PyObject * obj2 = 0 ;
26653 PyObject * obj3 = 0 ;
26654 char *kwnames[] = {
26655 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26656 };
26657
26658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26661 arg2 = (int) SWIG_AsInt(obj1);
26662 if (PyErr_Occurred()) SWIG_fail;
26663 arg3 = (int) SWIG_AsInt(obj2);
26664 if (PyErr_Occurred()) SWIG_fail;
26665 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26666 if (PyErr_Occurred()) SWIG_fail;
26667 {
26668 PyThreadState* __tstate = wxPyBeginAllowThreads();
26669 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26670
26671 wxPyEndAllowThreads(__tstate);
26672 if (PyErr_Occurred()) SWIG_fail;
26673 }
26674 resultobj = SWIG_FromInt((int)result);
26675 return resultobj;
26676 fail:
26677 return NULL;
26678 }
26679
26680
26681 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26682 PyObject *obj;
26683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26684 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26685 Py_INCREF(obj);
26686 return Py_BuildValue((char *)"");
26687 }
26688 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26689 PyObject *resultobj;
26690 wxClipboard *result;
26691 char *kwnames[] = {
26692 NULL
26693 };
26694
26695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26696 {
26697 PyThreadState* __tstate = wxPyBeginAllowThreads();
26698 result = (wxClipboard *)new wxClipboard();
26699
26700 wxPyEndAllowThreads(__tstate);
26701 if (PyErr_Occurred()) SWIG_fail;
26702 }
26703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26704 return resultobj;
26705 fail:
26706 return NULL;
26707 }
26708
26709
26710 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26711 PyObject *resultobj;
26712 wxClipboard *arg1 = (wxClipboard *) 0 ;
26713 PyObject * obj0 = 0 ;
26714 char *kwnames[] = {
26715 (char *) "self", NULL
26716 };
26717
26718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26721 {
26722 PyThreadState* __tstate = wxPyBeginAllowThreads();
26723 delete arg1;
26724
26725 wxPyEndAllowThreads(__tstate);
26726 if (PyErr_Occurred()) SWIG_fail;
26727 }
26728 Py_INCREF(Py_None); resultobj = Py_None;
26729 return resultobj;
26730 fail:
26731 return NULL;
26732 }
26733
26734
26735 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26736 PyObject *resultobj;
26737 wxClipboard *arg1 = (wxClipboard *) 0 ;
26738 bool result;
26739 PyObject * obj0 = 0 ;
26740 char *kwnames[] = {
26741 (char *) "self", NULL
26742 };
26743
26744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26747 {
26748 PyThreadState* __tstate = wxPyBeginAllowThreads();
26749 result = (bool)(arg1)->Open();
26750
26751 wxPyEndAllowThreads(__tstate);
26752 if (PyErr_Occurred()) SWIG_fail;
26753 }
26754 {
26755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26756 }
26757 return resultobj;
26758 fail:
26759 return NULL;
26760 }
26761
26762
26763 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26764 PyObject *resultobj;
26765 wxClipboard *arg1 = (wxClipboard *) 0 ;
26766 PyObject * obj0 = 0 ;
26767 char *kwnames[] = {
26768 (char *) "self", NULL
26769 };
26770
26771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26774 {
26775 PyThreadState* __tstate = wxPyBeginAllowThreads();
26776 (arg1)->Close();
26777
26778 wxPyEndAllowThreads(__tstate);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 }
26781 Py_INCREF(Py_None); resultobj = Py_None;
26782 return resultobj;
26783 fail:
26784 return NULL;
26785 }
26786
26787
26788 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26789 PyObject *resultobj;
26790 wxClipboard *arg1 = (wxClipboard *) 0 ;
26791 bool result;
26792 PyObject * obj0 = 0 ;
26793 char *kwnames[] = {
26794 (char *) "self", NULL
26795 };
26796
26797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26800 {
26801 PyThreadState* __tstate = wxPyBeginAllowThreads();
26802 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26803
26804 wxPyEndAllowThreads(__tstate);
26805 if (PyErr_Occurred()) SWIG_fail;
26806 }
26807 {
26808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26809 }
26810 return resultobj;
26811 fail:
26812 return NULL;
26813 }
26814
26815
26816 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26817 PyObject *resultobj;
26818 wxClipboard *arg1 = (wxClipboard *) 0 ;
26819 wxDataObject *arg2 = (wxDataObject *) 0 ;
26820 bool result;
26821 PyObject * obj0 = 0 ;
26822 PyObject * obj1 = 0 ;
26823 char *kwnames[] = {
26824 (char *) "self",(char *) "data", NULL
26825 };
26826
26827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26830 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26831 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26832 {
26833 PyThreadState* __tstate = wxPyBeginAllowThreads();
26834 result = (bool)(arg1)->AddData(arg2);
26835
26836 wxPyEndAllowThreads(__tstate);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
26839 {
26840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26841 }
26842 return resultobj;
26843 fail:
26844 return NULL;
26845 }
26846
26847
26848 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26849 PyObject *resultobj;
26850 wxClipboard *arg1 = (wxClipboard *) 0 ;
26851 wxDataObject *arg2 = (wxDataObject *) 0 ;
26852 bool result;
26853 PyObject * obj0 = 0 ;
26854 PyObject * obj1 = 0 ;
26855 char *kwnames[] = {
26856 (char *) "self",(char *) "data", NULL
26857 };
26858
26859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26863 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26864 {
26865 PyThreadState* __tstate = wxPyBeginAllowThreads();
26866 result = (bool)(arg1)->SetData(arg2);
26867
26868 wxPyEndAllowThreads(__tstate);
26869 if (PyErr_Occurred()) SWIG_fail;
26870 }
26871 {
26872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26873 }
26874 return resultobj;
26875 fail:
26876 return NULL;
26877 }
26878
26879
26880 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26881 PyObject *resultobj;
26882 wxClipboard *arg1 = (wxClipboard *) 0 ;
26883 wxDataFormat *arg2 = 0 ;
26884 bool result;
26885 PyObject * obj0 = 0 ;
26886 PyObject * obj1 = 0 ;
26887 char *kwnames[] = {
26888 (char *) "self",(char *) "format", NULL
26889 };
26890
26891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26895 SWIG_POINTER_EXCEPTION | 0)) == -1)
26896 SWIG_fail;
26897 if (arg2 == NULL) {
26898 PyErr_SetString(PyExc_TypeError,"null reference");
26899 SWIG_fail;
26900 }
26901 {
26902 PyThreadState* __tstate = wxPyBeginAllowThreads();
26903 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26904
26905 wxPyEndAllowThreads(__tstate);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 {
26909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26910 }
26911 return resultobj;
26912 fail:
26913 return NULL;
26914 }
26915
26916
26917 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26918 PyObject *resultobj;
26919 wxClipboard *arg1 = (wxClipboard *) 0 ;
26920 wxDataObject *arg2 = 0 ;
26921 bool result;
26922 PyObject * obj0 = 0 ;
26923 PyObject * obj1 = 0 ;
26924 char *kwnames[] = {
26925 (char *) "self",(char *) "data", NULL
26926 };
26927
26928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26931 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26932 SWIG_POINTER_EXCEPTION | 0)) == -1)
26933 SWIG_fail;
26934 if (arg2 == NULL) {
26935 PyErr_SetString(PyExc_TypeError,"null reference");
26936 SWIG_fail;
26937 }
26938 {
26939 PyThreadState* __tstate = wxPyBeginAllowThreads();
26940 result = (bool)(arg1)->GetData(*arg2);
26941
26942 wxPyEndAllowThreads(__tstate);
26943 if (PyErr_Occurred()) SWIG_fail;
26944 }
26945 {
26946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26947 }
26948 return resultobj;
26949 fail:
26950 return NULL;
26951 }
26952
26953
26954 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
26955 PyObject *resultobj;
26956 wxClipboard *arg1 = (wxClipboard *) 0 ;
26957 PyObject * obj0 = 0 ;
26958 char *kwnames[] = {
26959 (char *) "self", NULL
26960 };
26961
26962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
26963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26965 {
26966 PyThreadState* __tstate = wxPyBeginAllowThreads();
26967 (arg1)->Clear();
26968
26969 wxPyEndAllowThreads(__tstate);
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 Py_INCREF(Py_None); resultobj = Py_None;
26973 return resultobj;
26974 fail:
26975 return NULL;
26976 }
26977
26978
26979 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
26980 PyObject *resultobj;
26981 wxClipboard *arg1 = (wxClipboard *) 0 ;
26982 bool result;
26983 PyObject * obj0 = 0 ;
26984 char *kwnames[] = {
26985 (char *) "self", NULL
26986 };
26987
26988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
26989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26991 {
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 result = (bool)(arg1)->Flush();
26994
26995 wxPyEndAllowThreads(__tstate);
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 {
26999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27000 }
27001 return resultobj;
27002 fail:
27003 return NULL;
27004 }
27005
27006
27007 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27008 PyObject *resultobj;
27009 wxClipboard *arg1 = (wxClipboard *) 0 ;
27010 bool arg2 = (bool) True ;
27011 PyObject * obj0 = 0 ;
27012 PyObject * obj1 = 0 ;
27013 char *kwnames[] = {
27014 (char *) "self",(char *) "primary", NULL
27015 };
27016
27017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27020 if (obj1) {
27021 arg2 = (bool) SWIG_AsBool(obj1);
27022 if (PyErr_Occurred()) SWIG_fail;
27023 }
27024 {
27025 PyThreadState* __tstate = wxPyBeginAllowThreads();
27026 (arg1)->UsePrimarySelection(arg2);
27027
27028 wxPyEndAllowThreads(__tstate);
27029 if (PyErr_Occurred()) SWIG_fail;
27030 }
27031 Py_INCREF(Py_None); resultobj = Py_None;
27032 return resultobj;
27033 fail:
27034 return NULL;
27035 }
27036
27037
27038 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27039 PyObject *obj;
27040 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27041 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27042 Py_INCREF(obj);
27043 return Py_BuildValue((char *)"");
27044 }
27045 static int _wrap_TheClipboard_set(PyObject *_val) {
27046 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
27047 return 1;
27048 }
27049
27050
27051 static PyObject *_wrap_TheClipboard_get() {
27052 PyObject *pyobj;
27053
27054 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27055 return pyobj;
27056 }
27057
27058
27059 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27060 PyObject *resultobj;
27061 wxClipboard *arg1 = (wxClipboard *) NULL ;
27062 wxClipboardLocker *result;
27063 PyObject * obj0 = 0 ;
27064 char *kwnames[] = {
27065 (char *) "clipboard", NULL
27066 };
27067
27068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27069 if (obj0) {
27070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27072 }
27073 {
27074 PyThreadState* __tstate = wxPyBeginAllowThreads();
27075 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27076
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27088 PyObject *resultobj;
27089 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27090 PyObject * obj0 = 0 ;
27091 char *kwnames[] = {
27092 (char *) "self", NULL
27093 };
27094
27095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27098 {
27099 PyThreadState* __tstate = wxPyBeginAllowThreads();
27100 delete arg1;
27101
27102 wxPyEndAllowThreads(__tstate);
27103 if (PyErr_Occurred()) SWIG_fail;
27104 }
27105 Py_INCREF(Py_None); resultobj = Py_None;
27106 return resultobj;
27107 fail:
27108 return NULL;
27109 }
27110
27111
27112 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27113 PyObject *resultobj;
27114 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27115 bool result;
27116 PyObject * obj0 = 0 ;
27117 char *kwnames[] = {
27118 (char *) "self", NULL
27119 };
27120
27121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 result = (bool)wxClipboardLocker___nonzero__(arg1);
27127
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 {
27132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27133 }
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27141 PyObject *obj;
27142 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27143 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27144 Py_INCREF(obj);
27145 return Py_BuildValue((char *)"");
27146 }
27147 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27148 PyObject *resultobj;
27149 int arg1 = (int) 0 ;
27150 int arg2 = (int) 0 ;
27151 int arg3 = (int) 0 ;
27152 int arg4 = (int) 0 ;
27153 wxVideoMode *result;
27154 PyObject * obj0 = 0 ;
27155 PyObject * obj1 = 0 ;
27156 PyObject * obj2 = 0 ;
27157 PyObject * obj3 = 0 ;
27158 char *kwnames[] = {
27159 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27160 };
27161
27162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27163 if (obj0) {
27164 arg1 = (int) SWIG_AsInt(obj0);
27165 if (PyErr_Occurred()) SWIG_fail;
27166 }
27167 if (obj1) {
27168 arg2 = (int) SWIG_AsInt(obj1);
27169 if (PyErr_Occurred()) SWIG_fail;
27170 }
27171 if (obj2) {
27172 arg3 = (int) SWIG_AsInt(obj2);
27173 if (PyErr_Occurred()) SWIG_fail;
27174 }
27175 if (obj3) {
27176 arg4 = (int) SWIG_AsInt(obj3);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 {
27180 PyThreadState* __tstate = wxPyBeginAllowThreads();
27181 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27182
27183 wxPyEndAllowThreads(__tstate);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27194 PyObject *resultobj;
27195 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27196 PyObject * obj0 = 0 ;
27197 char *kwnames[] = {
27198 (char *) "self", NULL
27199 };
27200
27201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27204 {
27205 PyThreadState* __tstate = wxPyBeginAllowThreads();
27206 delete arg1;
27207
27208 wxPyEndAllowThreads(__tstate);
27209 if (PyErr_Occurred()) SWIG_fail;
27210 }
27211 Py_INCREF(Py_None); resultobj = Py_None;
27212 return resultobj;
27213 fail:
27214 return NULL;
27215 }
27216
27217
27218 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27219 PyObject *resultobj;
27220 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27221 wxVideoMode *arg2 = 0 ;
27222 bool result;
27223 PyObject * obj0 = 0 ;
27224 PyObject * obj1 = 0 ;
27225 char *kwnames[] = {
27226 (char *) "self",(char *) "other", NULL
27227 };
27228
27229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27233 SWIG_POINTER_EXCEPTION | 0)) == -1)
27234 SWIG_fail;
27235 if (arg2 == NULL) {
27236 PyErr_SetString(PyExc_TypeError,"null reference");
27237 SWIG_fail;
27238 }
27239 {
27240 PyThreadState* __tstate = wxPyBeginAllowThreads();
27241 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27242
27243 wxPyEndAllowThreads(__tstate);
27244 if (PyErr_Occurred()) SWIG_fail;
27245 }
27246 {
27247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27248 }
27249 return resultobj;
27250 fail:
27251 return NULL;
27252 }
27253
27254
27255 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27256 PyObject *resultobj;
27257 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27258 int result;
27259 PyObject * obj0 = 0 ;
27260 char *kwnames[] = {
27261 (char *) "self", NULL
27262 };
27263
27264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27270
27271 wxPyEndAllowThreads(__tstate);
27272 if (PyErr_Occurred()) SWIG_fail;
27273 }
27274 resultobj = SWIG_FromInt((int)result);
27275 return resultobj;
27276 fail:
27277 return NULL;
27278 }
27279
27280
27281 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27282 PyObject *resultobj;
27283 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27284 int result;
27285 PyObject * obj0 = 0 ;
27286 char *kwnames[] = {
27287 (char *) "self", NULL
27288 };
27289
27290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27293 {
27294 PyThreadState* __tstate = wxPyBeginAllowThreads();
27295 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27296
27297 wxPyEndAllowThreads(__tstate);
27298 if (PyErr_Occurred()) SWIG_fail;
27299 }
27300 resultobj = SWIG_FromInt((int)result);
27301 return resultobj;
27302 fail:
27303 return NULL;
27304 }
27305
27306
27307 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27308 PyObject *resultobj;
27309 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27310 int result;
27311 PyObject * obj0 = 0 ;
27312 char *kwnames[] = {
27313 (char *) "self", NULL
27314 };
27315
27316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27319 {
27320 PyThreadState* __tstate = wxPyBeginAllowThreads();
27321 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27322
27323 wxPyEndAllowThreads(__tstate);
27324 if (PyErr_Occurred()) SWIG_fail;
27325 }
27326 resultobj = SWIG_FromInt((int)result);
27327 return resultobj;
27328 fail:
27329 return NULL;
27330 }
27331
27332
27333 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27334 PyObject *resultobj;
27335 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27336 bool result;
27337 PyObject * obj0 = 0 ;
27338 char *kwnames[] = {
27339 (char *) "self", NULL
27340 };
27341
27342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27345 {
27346 PyThreadState* __tstate = wxPyBeginAllowThreads();
27347 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27348
27349 wxPyEndAllowThreads(__tstate);
27350 if (PyErr_Occurred()) SWIG_fail;
27351 }
27352 {
27353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27354 }
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj;
27363 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27364 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27365 bool result;
27366 PyObject * obj0 = 0 ;
27367 PyObject * obj1 = 0 ;
27368 char *kwnames[] = {
27369 (char *) "self",(char *) "other", NULL
27370 };
27371
27372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27377 {
27378 PyThreadState* __tstate = wxPyBeginAllowThreads();
27379 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27380
27381 wxPyEndAllowThreads(__tstate);
27382 if (PyErr_Occurred()) SWIG_fail;
27383 }
27384 {
27385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27386 }
27387 return resultobj;
27388 fail:
27389 return NULL;
27390 }
27391
27392
27393 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27394 PyObject *resultobj;
27395 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27396 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27397 bool result;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 char *kwnames[] = {
27401 (char *) "self",(char *) "other", NULL
27402 };
27403
27404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27409 {
27410 PyThreadState* __tstate = wxPyBeginAllowThreads();
27411 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27412
27413 wxPyEndAllowThreads(__tstate);
27414 if (PyErr_Occurred()) SWIG_fail;
27415 }
27416 {
27417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27418 }
27419 return resultobj;
27420 fail:
27421 return NULL;
27422 }
27423
27424
27425 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27426 PyObject *resultobj;
27427 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27428 int arg2 ;
27429 PyObject * obj0 = 0 ;
27430 PyObject * obj1 = 0 ;
27431 char *kwnames[] = {
27432 (char *) "self",(char *) "w", NULL
27433 };
27434
27435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27438 arg2 = (int) SWIG_AsInt(obj1);
27439 if (PyErr_Occurred()) SWIG_fail;
27440 if (arg1) (arg1)->w = arg2;
27441
27442 Py_INCREF(Py_None); resultobj = Py_None;
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27450 PyObject *resultobj;
27451 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27452 int result;
27453 PyObject * obj0 = 0 ;
27454 char *kwnames[] = {
27455 (char *) "self", NULL
27456 };
27457
27458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27461 result = (int) ((arg1)->w);
27462
27463 resultobj = SWIG_FromInt((int)result);
27464 return resultobj;
27465 fail:
27466 return NULL;
27467 }
27468
27469
27470 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27471 PyObject *resultobj;
27472 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27473 int arg2 ;
27474 PyObject * obj0 = 0 ;
27475 PyObject * obj1 = 0 ;
27476 char *kwnames[] = {
27477 (char *) "self",(char *) "h", NULL
27478 };
27479
27480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27483 arg2 = (int) SWIG_AsInt(obj1);
27484 if (PyErr_Occurred()) SWIG_fail;
27485 if (arg1) (arg1)->h = arg2;
27486
27487 Py_INCREF(Py_None); resultobj = Py_None;
27488 return resultobj;
27489 fail:
27490 return NULL;
27491 }
27492
27493
27494 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27495 PyObject *resultobj;
27496 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27497 int result;
27498 PyObject * obj0 = 0 ;
27499 char *kwnames[] = {
27500 (char *) "self", NULL
27501 };
27502
27503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27506 result = (int) ((arg1)->h);
27507
27508 resultobj = SWIG_FromInt((int)result);
27509 return resultobj;
27510 fail:
27511 return NULL;
27512 }
27513
27514
27515 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27516 PyObject *resultobj;
27517 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27518 int arg2 ;
27519 PyObject * obj0 = 0 ;
27520 PyObject * obj1 = 0 ;
27521 char *kwnames[] = {
27522 (char *) "self",(char *) "bpp", NULL
27523 };
27524
27525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27528 arg2 = (int) SWIG_AsInt(obj1);
27529 if (PyErr_Occurred()) SWIG_fail;
27530 if (arg1) (arg1)->bpp = arg2;
27531
27532 Py_INCREF(Py_None); resultobj = Py_None;
27533 return resultobj;
27534 fail:
27535 return NULL;
27536 }
27537
27538
27539 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27540 PyObject *resultobj;
27541 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27542 int result;
27543 PyObject * obj0 = 0 ;
27544 char *kwnames[] = {
27545 (char *) "self", NULL
27546 };
27547
27548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27551 result = (int) ((arg1)->bpp);
27552
27553 resultobj = SWIG_FromInt((int)result);
27554 return resultobj;
27555 fail:
27556 return NULL;
27557 }
27558
27559
27560 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27561 PyObject *resultobj;
27562 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27563 int arg2 ;
27564 PyObject * obj0 = 0 ;
27565 PyObject * obj1 = 0 ;
27566 char *kwnames[] = {
27567 (char *) "self",(char *) "refresh", NULL
27568 };
27569
27570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27573 arg2 = (int) SWIG_AsInt(obj1);
27574 if (PyErr_Occurred()) SWIG_fail;
27575 if (arg1) (arg1)->refresh = arg2;
27576
27577 Py_INCREF(Py_None); resultobj = Py_None;
27578 return resultobj;
27579 fail:
27580 return NULL;
27581 }
27582
27583
27584 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27585 PyObject *resultobj;
27586 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27587 int result;
27588 PyObject * obj0 = 0 ;
27589 char *kwnames[] = {
27590 (char *) "self", NULL
27591 };
27592
27593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27596 result = (int) ((arg1)->refresh);
27597
27598 resultobj = SWIG_FromInt((int)result);
27599 return resultobj;
27600 fail:
27601 return NULL;
27602 }
27603
27604
27605 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27606 PyObject *obj;
27607 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27608 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27609 Py_INCREF(obj);
27610 return Py_BuildValue((char *)"");
27611 }
27612 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27613 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27614 return 1;
27615 }
27616
27617
27618 static PyObject *_wrap_DefaultVideoMode_get() {
27619 PyObject *pyobj;
27620
27621 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27622 return pyobj;
27623 }
27624
27625
27626 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27627 PyObject *resultobj;
27628 size_t arg1 = (size_t) 0 ;
27629 wxDisplay *result;
27630 PyObject * obj0 = 0 ;
27631 char *kwnames[] = {
27632 (char *) "index", NULL
27633 };
27634
27635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27636 if (obj0) {
27637 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27638 if (PyErr_Occurred()) SWIG_fail;
27639 }
27640 {
27641 PyThreadState* __tstate = wxPyBeginAllowThreads();
27642 result = (wxDisplay *)new wxDisplay(arg1);
27643
27644 wxPyEndAllowThreads(__tstate);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27648 return resultobj;
27649 fail:
27650 return NULL;
27651 }
27652
27653
27654 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27655 PyObject *resultobj;
27656 wxDisplay *arg1 = (wxDisplay *) 0 ;
27657 PyObject * obj0 = 0 ;
27658 char *kwnames[] = {
27659 (char *) "self", NULL
27660 };
27661
27662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27665 {
27666 PyThreadState* __tstate = wxPyBeginAllowThreads();
27667 delete arg1;
27668
27669 wxPyEndAllowThreads(__tstate);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
27672 Py_INCREF(Py_None); resultobj = Py_None;
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27680 PyObject *resultobj;
27681 size_t result;
27682 char *kwnames[] = {
27683 NULL
27684 };
27685
27686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27687 {
27688 PyThreadState* __tstate = wxPyBeginAllowThreads();
27689 result = (size_t)wxDisplay::GetCount();
27690
27691 wxPyEndAllowThreads(__tstate);
27692 if (PyErr_Occurred()) SWIG_fail;
27693 }
27694 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27695 return resultobj;
27696 fail:
27697 return NULL;
27698 }
27699
27700
27701 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj;
27703 wxPoint *arg1 = 0 ;
27704 int result;
27705 wxPoint temp1 ;
27706 PyObject * obj0 = 0 ;
27707 char *kwnames[] = {
27708 (char *) "pt", NULL
27709 };
27710
27711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27712 {
27713 arg1 = &temp1;
27714 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27715 }
27716 {
27717 PyThreadState* __tstate = wxPyBeginAllowThreads();
27718 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27719
27720 wxPyEndAllowThreads(__tstate);
27721 if (PyErr_Occurred()) SWIG_fail;
27722 }
27723 resultobj = SWIG_FromInt((int)result);
27724 return resultobj;
27725 fail:
27726 return NULL;
27727 }
27728
27729
27730 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27731 PyObject *resultobj;
27732 wxWindow *arg1 = (wxWindow *) 0 ;
27733 int result;
27734 PyObject * obj0 = 0 ;
27735 char *kwnames[] = {
27736 (char *) "window", NULL
27737 };
27738
27739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27742 {
27743 PyThreadState* __tstate = wxPyBeginAllowThreads();
27744 result = (int)Display_GetFromWindow(arg1);
27745
27746 wxPyEndAllowThreads(__tstate);
27747 if (PyErr_Occurred()) SWIG_fail;
27748 }
27749 resultobj = SWIG_FromInt((int)result);
27750 return resultobj;
27751 fail:
27752 return NULL;
27753 }
27754
27755
27756 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27757 PyObject *resultobj;
27758 wxDisplay *arg1 = (wxDisplay *) 0 ;
27759 bool result;
27760 PyObject * obj0 = 0 ;
27761 char *kwnames[] = {
27762 (char *) "self", NULL
27763 };
27764
27765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27768 {
27769 PyThreadState* __tstate = wxPyBeginAllowThreads();
27770 result = (bool)((wxDisplay const *)arg1)->IsOk();
27771
27772 wxPyEndAllowThreads(__tstate);
27773 if (PyErr_Occurred()) SWIG_fail;
27774 }
27775 {
27776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27777 }
27778 return resultobj;
27779 fail:
27780 return NULL;
27781 }
27782
27783
27784 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27785 PyObject *resultobj;
27786 wxDisplay *arg1 = (wxDisplay *) 0 ;
27787 wxRect result;
27788 PyObject * obj0 = 0 ;
27789 char *kwnames[] = {
27790 (char *) "self", NULL
27791 };
27792
27793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27796 {
27797 PyThreadState* __tstate = wxPyBeginAllowThreads();
27798 result = ((wxDisplay const *)arg1)->GetGeometry();
27799
27800 wxPyEndAllowThreads(__tstate);
27801 if (PyErr_Occurred()) SWIG_fail;
27802 }
27803 {
27804 wxRect * resultptr;
27805 resultptr = new wxRect((wxRect &) result);
27806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27807 }
27808 return resultobj;
27809 fail:
27810 return NULL;
27811 }
27812
27813
27814 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27815 PyObject *resultobj;
27816 wxDisplay *arg1 = (wxDisplay *) 0 ;
27817 wxString result;
27818 PyObject * obj0 = 0 ;
27819 char *kwnames[] = {
27820 (char *) "self", NULL
27821 };
27822
27823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27826 {
27827 PyThreadState* __tstate = wxPyBeginAllowThreads();
27828 result = ((wxDisplay const *)arg1)->GetName();
27829
27830 wxPyEndAllowThreads(__tstate);
27831 if (PyErr_Occurred()) SWIG_fail;
27832 }
27833 {
27834 #if wxUSE_UNICODE
27835 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27836 #else
27837 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27838 #endif
27839 }
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27847 PyObject *resultobj;
27848 wxDisplay *arg1 = (wxDisplay *) 0 ;
27849 bool result;
27850 PyObject * obj0 = 0 ;
27851 char *kwnames[] = {
27852 (char *) "self", NULL
27853 };
27854
27855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27858 {
27859 PyThreadState* __tstate = wxPyBeginAllowThreads();
27860 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27861
27862 wxPyEndAllowThreads(__tstate);
27863 if (PyErr_Occurred()) SWIG_fail;
27864 }
27865 {
27866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27867 }
27868 return resultobj;
27869 fail:
27870 return NULL;
27871 }
27872
27873
27874 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
27875 PyObject *resultobj;
27876 wxDisplay *arg1 = (wxDisplay *) 0 ;
27877 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27878 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27879 PyObject *result;
27880 PyObject * obj0 = 0 ;
27881 PyObject * obj1 = 0 ;
27882 char *kwnames[] = {
27883 (char *) "self",(char *) "mode", NULL
27884 };
27885
27886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
27887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27889 if (obj1) {
27890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27891 SWIG_POINTER_EXCEPTION | 0)) == -1)
27892 SWIG_fail;
27893 if (arg2 == NULL) {
27894 PyErr_SetString(PyExc_TypeError,"null reference");
27895 SWIG_fail;
27896 }
27897 }
27898 {
27899 PyThreadState* __tstate = wxPyBeginAllowThreads();
27900 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
27901
27902 wxPyEndAllowThreads(__tstate);
27903 if (PyErr_Occurred()) SWIG_fail;
27904 }
27905 resultobj = result;
27906 return resultobj;
27907 fail:
27908 return NULL;
27909 }
27910
27911
27912 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27913 PyObject *resultobj;
27914 wxDisplay *arg1 = (wxDisplay *) 0 ;
27915 wxVideoMode result;
27916 PyObject * obj0 = 0 ;
27917 char *kwnames[] = {
27918 (char *) "self", NULL
27919 };
27920
27921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
27922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27924 {
27925 PyThreadState* __tstate = wxPyBeginAllowThreads();
27926 result = ((wxDisplay const *)arg1)->GetCurrentMode();
27927
27928 wxPyEndAllowThreads(__tstate);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 {
27932 wxVideoMode * resultptr;
27933 resultptr = new wxVideoMode((wxVideoMode &) result);
27934 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
27935 }
27936 return resultobj;
27937 fail:
27938 return NULL;
27939 }
27940
27941
27942 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27943 PyObject *resultobj;
27944 wxDisplay *arg1 = (wxDisplay *) 0 ;
27945 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27946 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27947 bool result;
27948 PyObject * obj0 = 0 ;
27949 PyObject * obj1 = 0 ;
27950 char *kwnames[] = {
27951 (char *) "self",(char *) "mode", NULL
27952 };
27953
27954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
27955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27957 if (obj1) {
27958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27959 SWIG_POINTER_EXCEPTION | 0)) == -1)
27960 SWIG_fail;
27961 if (arg2 == NULL) {
27962 PyErr_SetString(PyExc_TypeError,"null reference");
27963 SWIG_fail;
27964 }
27965 }
27966 {
27967 PyThreadState* __tstate = wxPyBeginAllowThreads();
27968 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
27969
27970 wxPyEndAllowThreads(__tstate);
27971 if (PyErr_Occurred()) SWIG_fail;
27972 }
27973 {
27974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27975 }
27976 return resultobj;
27977 fail:
27978 return NULL;
27979 }
27980
27981
27982 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27983 PyObject *resultobj;
27984 wxDisplay *arg1 = (wxDisplay *) 0 ;
27985 PyObject * obj0 = 0 ;
27986 char *kwnames[] = {
27987 (char *) "self", NULL
27988 };
27989
27990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
27991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27993 {
27994 PyThreadState* __tstate = wxPyBeginAllowThreads();
27995 (arg1)->ResetMode();
27996
27997 wxPyEndAllowThreads(__tstate);
27998 if (PyErr_Occurred()) SWIG_fail;
27999 }
28000 Py_INCREF(Py_None); resultobj = Py_None;
28001 return resultobj;
28002 fail:
28003 return NULL;
28004 }
28005
28006
28007 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28008 PyObject *obj;
28009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28010 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28011 Py_INCREF(obj);
28012 return Py_BuildValue((char *)"");
28013 }
28014 static PyMethodDef SwigMethods[] = {
28015 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28016 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28017 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28018 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28019 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28020 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28021 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28022 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28023 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28024 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28025 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28026 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28027 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28028 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28029 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28030 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28031 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28032 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28033 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28034 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28035 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28036 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28037 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28038 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28039 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28040 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28041 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28042 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28043 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28044 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28045 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
28046 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28047 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28048 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28049 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28050 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28051 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28052 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28053 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28054 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28055 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28056 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28057 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28058 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28059 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28060 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28061 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28062 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28063 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28064 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28065 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28066 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28067 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28068 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28069 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28070 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28071 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28072 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28073 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28074 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28075 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28076 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28077 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28078 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28079 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28080 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28081 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28082 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28083 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28084 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28085 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28086 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28087 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28088 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28089 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28090 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28091 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28092 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28093 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28094 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28095 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28096 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28097 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28098 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28099 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28100 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28101 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28102 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28103 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28104 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28105 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28106 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28107 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28108 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28109 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28110 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28111 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28112 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28113 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28114 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28115 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28116 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28117 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28118 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28119 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28120 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28121 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28122 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28123 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28124 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28125 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28126 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28127 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28128 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28129 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28130 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28131 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28132 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28133 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28134 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28135 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28136 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28137 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28138 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28139 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28140 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28141 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28142 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28143 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28144 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28147 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28148 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28150 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28153 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28154 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28156 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28158 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28159 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28160 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28162 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28166 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28169 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28170 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28171 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28173 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28174 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28175 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28176 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28177 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28178 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28179 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28180 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28182 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28183 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28188 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28193 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28196 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28197 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28203 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28207 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28208 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28209 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28210 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28211 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28212 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28213 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28214 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28215 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28216 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28218 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28220 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28221 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28222 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28225 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28226 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28228 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28229 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28232 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28234 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28237 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28238 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28239 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28240 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28241 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28242 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28243 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28244 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28245 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28246 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28247 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28249 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28264 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28272 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28318 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28346 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28356 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28372 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28388 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28402 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28411 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28454 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28457 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28460 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28464 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28556 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28557 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28558 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28559 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28560 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28561 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28562 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28563 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28564 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28565 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28576 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28621 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28655 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28663 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28664 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28669 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28678 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28682 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28685 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28688 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28693 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28696 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28700 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28703 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28707 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28713 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28717 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28721 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28731 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28742 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28750 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28758 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28771 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28775 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28793 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28807 { NULL, NULL }
28808 };
28809
28810
28811 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28812
28813 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28814 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28815 }
28816 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28817 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28818 }
28819 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28820 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28821 }
28822 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28823 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28824 }
28825 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28826 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28827 }
28828 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28829 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28830 }
28831 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28832 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28833 }
28834 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28835 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28836 }
28837 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28838 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28839 }
28840 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28841 return (void *)((wxEvent *) ((wxPyEvent *) x));
28842 }
28843 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28844 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28845 }
28846 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28847 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28848 }
28849 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28850 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28851 }
28852 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28853 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28854 }
28855 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28856 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28857 }
28858 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28859 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28860 }
28861 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28862 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28863 }
28864 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28865 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28866 }
28867 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28868 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28869 }
28870 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28871 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28872 }
28873 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28874 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28875 }
28876 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
28877 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
28878 }
28879 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
28880 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
28881 }
28882 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
28883 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
28884 }
28885 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
28886 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
28887 }
28888 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
28889 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28890 }
28891 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
28892 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
28893 }
28894 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
28895 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
28896 }
28897 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
28898 return (void *)((wxEvent *) ((wxFocusEvent *) x));
28899 }
28900 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
28901 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
28902 }
28903 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
28904 return (void *)((wxEvent *) ((wxProcessEvent *) x));
28905 }
28906 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
28907 return (void *)((wxEvent *) ((wxShowEvent *) x));
28908 }
28909 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
28910 return (void *)((wxEvent *) ((wxCommandEvent *) x));
28911 }
28912 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
28913 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
28914 }
28915 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
28916 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28917 }
28918 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
28919 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
28920 }
28921 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
28922 return (void *)((wxEvent *) ((wxKeyEvent *) x));
28923 }
28924 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
28925 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
28926 }
28927 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
28928 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
28929 }
28930 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
28931 return (void *)((wxConfigBase *) ((wxConfig *) x));
28932 }
28933 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
28934 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28935 }
28936 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
28937 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
28938 }
28939 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
28940 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
28941 }
28942 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
28943 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28944 }
28945 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
28946 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
28947 }
28948 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
28949 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
28950 }
28951 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
28952 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
28953 }
28954 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
28955 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28956 }
28957 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
28958 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28959 }
28960 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
28961 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
28962 }
28963 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
28964 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
28965 }
28966 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
28967 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
28968 }
28969 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
28970 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28971 }
28972 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
28973 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
28974 }
28975 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
28976 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28977 }
28978 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28979 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
28980 }
28981 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28982 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
28983 }
28984 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28985 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28986 }
28987 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28988 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28989 }
28990 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
28991 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
28992 }
28993 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
28994 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
28995 }
28996 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
28997 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28998 }
28999 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29000 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29001 }
29002 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29003 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29004 }
29005 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29006 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29007 }
29008 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29009 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29010 }
29011 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29012 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29013 }
29014 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29015 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29016 }
29017 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29018 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29019 }
29020 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29021 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29022 }
29023 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29024 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29025 }
29026 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29027 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29028 }
29029 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29030 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29031 }
29032 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29033 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29034 }
29035 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29036 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29037 }
29038 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29039 return (void *)((wxObject *) ((wxSizerItem *) x));
29040 }
29041 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29042 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29043 }
29044 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29045 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29046 }
29047 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29048 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29049 }
29050 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29051 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29052 }
29053 static void *_p_wxSizerTo_p_wxObject(void *x) {
29054 return (void *)((wxObject *) ((wxSizer *) x));
29055 }
29056 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29057 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29058 }
29059 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29060 return (void *)((wxObject *) ((wxFileHistory *) x));
29061 }
29062 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29063 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29064 }
29065 static void *_p_wxEventTo_p_wxObject(void *x) {
29066 return (void *)((wxObject *) ((wxEvent *) x));
29067 }
29068 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29069 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29070 }
29071 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29072 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29073 }
29074 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29075 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29076 }
29077 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29078 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29079 }
29080 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29081 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29082 }
29083 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29084 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29085 }
29086 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29087 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29088 }
29089 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29090 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29091 }
29092 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29093 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29094 }
29095 static void *_p_wxControlTo_p_wxObject(void *x) {
29096 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29097 }
29098 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29099 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29100 }
29101 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29102 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29103 }
29104 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29105 return (void *)((wxObject *) ((wxFSFile *) x));
29106 }
29107 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29108 return (void *)((wxObject *) ((wxClipboard *) x));
29109 }
29110 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29111 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29112 }
29113 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29114 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29115 }
29116 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29117 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29118 }
29119 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29120 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29121 }
29122 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29123 return (void *)((wxObject *) ((wxToolTip *) x));
29124 }
29125 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29126 return (void *)((wxObject *) ((wxMenuItem *) x));
29127 }
29128 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29129 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29130 }
29131 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29132 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29133 }
29134 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29135 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29136 }
29137 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29138 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29139 }
29140 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29141 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29142 }
29143 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29144 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29145 }
29146 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29147 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29148 }
29149 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29150 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29151 }
29152 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29153 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29154 }
29155 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29156 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29157 }
29158 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29159 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29160 }
29161 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29162 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29163 }
29164 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29165 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29166 }
29167 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29168 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29169 }
29170 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29171 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29172 }
29173 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29174 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29175 }
29176 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29177 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29178 }
29179 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29180 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29181 }
29182 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29183 return (void *)((wxObject *) ((wxImageHandler *) x));
29184 }
29185 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29186 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29187 }
29188 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29189 return (void *)((wxObject *) ((wxEvtHandler *) x));
29190 }
29191 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29192 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29193 }
29194 static void *_p_wxImageTo_p_wxObject(void *x) {
29195 return (void *)((wxObject *) ((wxImage *) x));
29196 }
29197 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29198 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29199 }
29200 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29201 return (void *)((wxObject *) ((wxSystemOptions *) x));
29202 }
29203 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29204 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29205 }
29206 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29207 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29208 }
29209 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29210 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29211 }
29212 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29213 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29214 }
29215 static void *_p_wxWindowTo_p_wxObject(void *x) {
29216 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29217 }
29218 static void *_p_wxMenuTo_p_wxObject(void *x) {
29219 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29220 }
29221 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29222 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29223 }
29224 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29225 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29226 }
29227 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29228 return (void *)((wxObject *) ((wxFileSystem *) x));
29229 }
29230 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29231 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29232 }
29233 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29234 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29235 }
29236 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29237 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29238 }
29239 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29240 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29241 }
29242 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29243 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29244 }
29245 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29246 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29247 }
29248 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29249 return (void *)((wxObject *) ((wxBusyInfo *) x));
29250 }
29251 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29252 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29253 }
29254 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29255 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29256 }
29257 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29258 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29259 }
29260 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29261 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29262 }
29263 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29264 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29265 }
29266 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29267 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29268 }
29269 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29270 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29271 }
29272 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29273 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29274 }
29275 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29276 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29277 }
29278 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29279 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29280 }
29281 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29282 return (void *)((wxLog *) ((wxLogStderr *) x));
29283 }
29284 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29285 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29286 }
29287 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29288 return (void *)((wxLog *) ((wxLogWindow *) x));
29289 }
29290 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29291 return (void *)((wxLog *) ((wxLogChain *) x));
29292 }
29293 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29294 return (void *)((wxLog *) ((wxLogGui *) x));
29295 }
29296 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29297 return (void *)((wxLog *) ((wxPyLog *) x));
29298 }
29299 static void *_p_wxControlTo_p_wxWindow(void *x) {
29300 return (void *)((wxWindow *) ((wxControl *) x));
29301 }
29302 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29303 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29304 }
29305 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29306 return (void *)((wxWindow *) ((wxMenuBar *) x));
29307 }
29308 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29309 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29310 }
29311 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29312 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29313 }
29314 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}};
29315 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}};
29316 static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29317 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}};
29318 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}};
29319 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}};
29320 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}};
29321 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}};
29322 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}};
29323 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}};
29324 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}};
29325 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}};
29326 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}};
29327 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}};
29328 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}};
29329 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}};
29330 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}};
29331 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}};
29332 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}};
29333 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}};
29334 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}};
29335 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}};
29336 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}};
29337 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}};
29338 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}};
29339 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}};
29340 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}};
29341 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}};
29342 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}};
29343 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}};
29344 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}};
29345 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}};
29346 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}};
29347 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}};
29348 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}};
29349 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}};
29350 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}};
29351 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}};
29352 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}};
29353 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}};
29354 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}};
29355 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}};
29356 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}};
29357 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}};
29358 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}};
29359 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}};
29360 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}};
29361 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}};
29362 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}};
29363 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}};
29364 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}};
29365 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}};
29366 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}};
29367 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}};
29368 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}};
29369 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}};
29370 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}};
29371 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}};
29372 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}};
29373 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}};
29374 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}};
29375 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}};
29376 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}};
29377 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}};
29378 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}};
29379 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}};
29380 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}};
29381 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}};
29382 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}};
29383 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}};
29384 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}};
29385 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}};
29386 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}};
29387 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}};
29388 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}};
29389 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}};
29390 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}};
29391 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}};
29392 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}};
29393 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}};
29394 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}};
29395 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}};
29396 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}};
29397 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}};
29398 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}};
29399 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}};
29400
29401 static swig_type_info *swig_types_initial[] = {
29402 _swigt__p_wxLogChain,
29403 _swigt__p_wxMutexGuiLocker,
29404 _swigt__p_wxMetafile,
29405 _swigt__p_wxFileHistory,
29406 _swigt__p_wxLog,
29407 _swigt__p_wxDateTime__TimeZone,
29408 _swigt__p_wxMenu,
29409 _swigt__p_wxEvent,
29410 _swigt__p_wxConfigBase,
29411 _swigt__p_wxDisplay,
29412 _swigt__p_wxFileType,
29413 _swigt__p_wxLogGui,
29414 _swigt__p_wxFont,
29415 _swigt__p_wxDataFormat,
29416 _swigt__p_wxTimerEvent,
29417 _swigt__p_wxCaret,
29418 _swigt__p_int,
29419 _swigt__p_wxSize,
29420 _swigt__p_wxClipboard,
29421 _swigt__p_wxStopWatch,
29422 _swigt__p_wxDC,
29423 _swigt__p_wxClipboardLocker,
29424 _swigt__p_wxIcon,
29425 _swigt__p_wxLogStderr,
29426 _swigt__p_wxLogTextCtrl,
29427 _swigt__p_wxTextCtrl,
29428 _swigt__p_wxBusyCursor,
29429 _swigt__p_wxPyBitmapDataObject,
29430 _swigt__p_wxPyTextDataObject,
29431 _swigt__p_wxBitmapDataObject,
29432 _swigt__p_wxTextDataObject,
29433 _swigt__p_wxDataObject,
29434 _swigt__p_wxFileDataObject,
29435 _swigt__p_wxCustomDataObject,
29436 _swigt__p_wxURLDataObject,
29437 _swigt__p_wxMetafileDataObject,
29438 _swigt__p_wxSound,
29439 _swigt__p_wxTimerRunner,
29440 _swigt__p_wxLogWindow,
29441 _swigt__p_wxTimeSpan,
29442 _swigt__p_wxArrayString,
29443 _swigt__p_wxWindowDisabler,
29444 _swigt__p_wxToolTip,
29445 _swigt__p_wxDataObjectComposite,
29446 _swigt__p_wxFileConfig,
29447 _swigt__p_wxSystemSettings,
29448 _swigt__p_wxVideoMode,
29449 _swigt__p_wxPyDataObjectSimple,
29450 _swigt__p_wxDataObjectSimple,
29451 _swigt__p_wxEvtHandler,
29452 _swigt__p_wxRect,
29453 _swigt__p_char,
29454 _swigt__p_wxSingleInstanceChecker,
29455 _swigt__p_wxFileTypeInfo,
29456 _swigt__p_wxFrame,
29457 _swigt__p_wxTimer,
29458 _swigt__p_wxMimeTypesManager,
29459 _swigt__p_wxPyArtProvider,
29460 _swigt__p_wxPyTipProvider,
29461 _swigt__p_wxTipProvider,
29462 _swigt__p_wxJoystick,
29463 _swigt__p_wxSystemOptions,
29464 _swigt__p_wxPoint,
29465 _swigt__p_wxJoystickEvent,
29466 _swigt__p_wxCursor,
29467 _swigt__p_wxObject,
29468 _swigt__p_wxOutputStream,
29469 _swigt__p_wxDateTime,
29470 _swigt__p_wxPyDropSource,
29471 _swigt__p_wxWindow,
29472 _swigt__p_wxString,
29473 _swigt__p_wxPyProcess,
29474 _swigt__p_wxBitmap,
29475 _swigt__p_wxConfig,
29476 _swigt__p_wxChar,
29477 _swigt__p_wxBusyInfo,
29478 _swigt__p_wxPyDropTarget,
29479 _swigt__p_wxPyTextDropTarget,
29480 _swigt__p_wxPyFileDropTarget,
29481 _swigt__p_wxProcessEvent,
29482 _swigt__p_wxPyLog,
29483 _swigt__p_wxLogNull,
29484 _swigt__p_wxColour,
29485 _swigt__p_wxConfigPathChanger,
29486 _swigt__p_wxPyTimer,
29487 _swigt__p_wxDateSpan,
29488 0
29489 };
29490
29491
29492 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29493
29494 static swig_const_info swig_const_table[] = {
29495 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29496 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29497 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29498 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29499 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29500 {0}};
29501
29502 #ifdef __cplusplus
29503 }
29504 #endif
29505
29506 #ifdef __cplusplus
29507 extern "C"
29508 #endif
29509 SWIGEXPORT(void) SWIG_init(void) {
29510 static PyObject *SWIG_globals = 0;
29511 static int typeinit = 0;
29512 PyObject *m, *d;
29513 int i;
29514 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29515 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29516 d = PyModule_GetDict(m);
29517
29518 if (!typeinit) {
29519 for (i = 0; swig_types_initial[i]; i++) {
29520 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29521 }
29522 typeinit = 1;
29523 }
29524 SWIG_InstallConstants(d,swig_const_table);
29525
29526 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29527 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29528 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29529 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29530 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29531 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29532 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29533 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29534 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29535 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29536 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29537 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29538 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29539 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29540 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29541 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29542 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29543 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29544 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29545 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29546 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29547 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29548 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29549 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29550 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29551 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29552 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29553 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29554 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29555 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29556 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29557 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29558 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29559 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29560 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29561 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29562 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29563 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29564 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29565 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29566 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29567 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29568 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29569 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29570 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29571 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29572 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29573 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29574 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29575 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29576 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29577 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29578 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29579 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29580 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29581 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29582 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29583 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29584 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29585 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29586 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29587 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29588 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29589 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29590 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29591 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29592 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29593 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29594 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29595 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29596 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29597 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29598 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29599 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29600 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29601 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29602 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29603 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29604 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29605 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29606 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29607 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29608 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29609 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29610 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29611 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29612 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29613 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29614 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29615 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29616 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29617 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29618 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29619 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29620 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29621 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29622 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29623 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29624 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29625 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29626
29627 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29628
29629 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29630 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29631 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29632 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29633 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29634 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29635 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29636 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29637 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29638 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29639 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29640 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29641 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29642 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29643 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29644 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29645 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29646 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29647 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29648 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29649 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29650 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29651 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29652 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29653 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29654 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29655 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29656 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29657 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29658 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29659 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29660 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29661 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29662 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29663 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29664 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29665 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29666 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29667 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29668 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29669 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29670 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29671 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29672 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29673 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29674 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29675 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29676 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29677 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29678 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29679
29680 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29681
29682 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29683 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29684 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29685 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29686 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29687 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29688 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29689 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29690 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29691 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29692 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29693 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29694 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29695 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29696 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29697 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29698 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29699 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29700 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29701 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29702 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29703 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29704 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29705 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29706 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29707 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29708 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29709 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29710 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29711 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29712 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29713 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29714 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29715 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29716 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29717 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29718 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29719 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29720 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29721 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29722 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29723 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29724 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29725 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29726 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29727 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29728 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29729 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29730 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29731 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29732 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29733 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29734 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29735 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29736 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29737 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29738 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29739 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29740
29741 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29742
29743 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29744 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29745 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29746 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29747 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29748 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29749 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29750 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29751 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29752 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29753 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29754 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29755 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29756 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29757 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29758 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29759 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29760 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29761 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29762 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29763 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29764 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29765 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29766 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29767 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29768 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29769 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29770 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29771 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29772 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29773 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29774 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29775 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29776 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29777 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29778 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29779 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29780 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29781 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29782 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29783 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29784 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29785 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29786 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29787 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29788 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29789 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29790 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29791 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29792 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29793 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29794 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29795 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29796 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29797 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29798 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29799 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29800 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29801 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29802 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29803 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29804 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29805 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29806 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29807 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29808 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29809 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29810 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29811 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29812 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29813 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29814 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29815 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29816 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29817 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29818 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29819 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29820 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29821 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29822 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29823 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29824 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29825 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29826 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29827 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29828 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29829 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29830 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29831 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29832 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29833 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29834 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29835 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29836 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29837 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29838 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29839 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29840 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29841 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29842 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29843 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29844 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29845 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29846 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29847 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29848 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29849 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29850 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29851 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29852 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29853 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29854 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29855 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29856 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29857 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29858 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29859 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29860 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29861 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29862 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29863 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29864 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29865 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29866 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29867 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29868 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29869 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29870 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29871 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29872 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29873 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29874 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29875 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29876 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
29877 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
29878 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
29879 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
29880 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
29881 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
29882 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
29883 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
29884 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
29885 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
29886 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
29887 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
29888 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
29889 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
29890 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
29891 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
29892 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
29893 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
29894 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
29895 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
29896 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
29897 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
29898 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
29899 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
29900 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
29901 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
29902 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
29903 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
29904 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
29905 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
29906 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
29907 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
29908 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
29909 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
29910 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
29911 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
29912 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
29913 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
29914 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
29915 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
29916 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
29917 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
29918 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
29919 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
29920 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
29921 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
29922 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
29923 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
29924 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
29925 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
29926 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
29927 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
29928 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
29929 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
29930 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
29931 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
29932 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
29933 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
29934 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
29935 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
29936 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
29937 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
29938 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
29939 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
29940 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
29941 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
29942 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
29943
29944 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
29945 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
29946 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
29947 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
29948
29949 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
29950 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
29951 }
29952