]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_misc_wrap.cpp
bc0a7ab1508842b08c28336a551ff2803994ce88
[wxWidgets.git] / wxPython / src / msw / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_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 static const wxString wxPyEmptyString(wxEmptyString);
355
356
357
358 #include <limits.h>
359
360
361 SWIGSTATICINLINE(long)
362 SWIG_CheckLongInRange(long value, const char* type,
363 long min_value, long max_value)
364 {
365 if (!PyErr_Occurred()) {
366 if (value < min_value) {
367 PyObject *err =
368 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
369 value, type, min_value);
370
371 PyErr_SetObject(PyExc_OverflowError, err);
372 Py_DECREF(err);
373 } else if (value > max_value) {
374 PyObject *err =
375 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
376 value, type, max_value);
377 PyErr_SetObject(PyExc_OverflowError, err);
378 Py_DECREF(err);
379 }
380 }
381 return value;
382 }
383
384
385 SWIGSTATICINLINE(long)
386 SWIG_AsLong(PyObject * obj)
387 {
388 if (PyNumber_Check(obj))
389 return PyInt_AsLong(obj);
390 else {
391 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
392 obj->ob_type->tp_name);
393 PyErr_SetObject(PyExc_TypeError, errmsg);
394 Py_DECREF(errmsg);
395 return 0;
396 }
397 }
398
399
400 #if INT_MAX != LONG_MAX
401 SWIGSTATICINLINE(int)
402 SWIG_AsInt(PyObject *obj)
403 {
404 return swig_numeric_cast(int,
405 SWIG_CheckLongInRange(SWIG_AsLong(obj),
406 "int", INT_MIN, INT_MAX));
407 }
408 #else
409 #define SWIG_AsInt SWIG_AsLong
410 #endif
411
412
413 SWIGSTATICINLINE(int)
414 SWIG_CheckInt(PyObject* obj)
415 {
416 SWIG_AsInt(obj);
417 if (PyErr_Occurred()) {
418 PyErr_Clear();
419 return 0;
420 } else {
421 return 1;
422 }
423 }
424
425 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
426 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
427 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
428
429 SWIGSTATICINLINE(int)
430 SWIG_CheckLong(PyObject* obj)
431 {
432 SWIG_AsLong(obj);
433 if (PyErr_Occurred()) {
434 PyErr_Clear();
435 return 0;
436 } else {
437 return 1;
438 }
439 }
440
441
442 SWIGSTATICINLINE(bool)
443 SWIG_AsBool(PyObject *obj)
444 {
445 return PyObject_IsTrue(obj) ? true : false;
446 }
447
448
449 SWIGSTATICINLINE(int)
450 SWIG_CheckBool(PyObject* obj)
451 {
452 SWIG_AsBool(obj);
453 if (PyErr_Occurred()) {
454 PyErr_Clear();
455 return 0;
456 } else {
457 return 1;
458 }
459 }
460
461
462 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
463 PyObject* o2;
464 PyObject* o3;
465
466 if (!target) {
467 target = o;
468 } else if (target == Py_None) {
469 Py_DECREF(Py_None);
470 target = o;
471 } else {
472 if (!PyTuple_Check(target)) {
473 o2 = target;
474 target = PyTuple_New(1);
475 PyTuple_SetItem(target, 0, o2);
476 }
477 o3 = PyTuple_New(1);
478 PyTuple_SetItem(o3, 0, o);
479
480 o2 = target;
481 target = PySequence_Concat(o2, o3);
482 Py_DECREF(o2);
483 Py_DECREF(o3);
484 }
485 return target;
486 }
487
488
489 SWIGSTATICINLINE(unsigned long)
490 SWIG_AsUnsignedLong(PyObject * obj)
491 {
492 if (PyLong_Check(obj)) {
493 return PyLong_AsUnsignedLong(obj);
494 } else {
495 long i = SWIG_AsLong(obj);
496 if ( !PyErr_Occurred() && (i < 0)) {
497 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
498 }
499 return i;
500 }
501 }
502
503
504 SWIGSTATICINLINE(int)
505 SWIG_CheckUnsignedLong(PyObject* obj)
506 {
507 SWIG_AsUnsignedLong(obj);
508 if (PyErr_Occurred()) {
509 PyErr_Clear();
510 return 0;
511 } else {
512 return 1;
513 }
514 }
515
516
517 SWIGSTATICINLINE(PyObject* )
518 SWIG_FromUnsignedLong(unsigned long value)
519 {
520 return (value > LONG_MAX) ?
521 PyLong_FromUnsignedLong(value)
522 : PyInt_FromLong(swig_numeric_cast(long,value));
523 }
524
525
526 bool wxThread_IsMain() {
527 #ifdef WXP_WITH_THREAD
528 return wxThread::IsMain();
529 #else
530 return True;
531 #endif
532 }
533
534
535 int wxCaret_GetBlinkTime() {
536 return wxCaret::GetBlinkTime();
537 }
538
539 void wxCaret_SetBlinkTime(int milliseconds) {
540 wxCaret::SetBlinkTime(milliseconds);
541 }
542
543
544 #include <wx/snglinst.h>
545
546
547 #ifdef __WXMSW__
548 #include <wx/msw/private.h>
549 #include <wx/dynload.h>
550 #endif
551
552
553
554 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
555 {
556 #ifdef __WXMSW__
557
558 switch (method)
559 {
560 case 1:
561 // This one only partially works. Appears to be an undocumented
562 // "standard" convention that not all widgets adhear to. For
563 // example, for some widgets backgrounds or non-client areas may
564 // not be painted.
565 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
566 break;
567
568 case 2:
569 // This one works much better, except for on XP. On Win2k nearly
570 // all widgets and their children are captured correctly[**]. On
571 // XP with Themes activated most native widgets draw only
572 // partially, if at all. Without themes it works just like on
573 // Win2k.
574 //
575 // ** For example the radio buttons in a wxRadioBox are not its
576 // children by default, but you can capture it via the panel
577 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
578 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
579 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
580 PRF_ERASEBKGND | PRF_OWNED );
581 break;
582
583 case 3:
584 // This one is only defined in the latest SDK and is only
585 // available on XP. MSDN says it is similar to sending WM_PRINT
586 // so I expect that it will work similar to the above. Since it
587 // is avaialble only on XP, it can't be compiled like this and
588 // will have to be loaded dynamically.
589 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
590
591 // fall through
592
593 case 4:
594 // Use PrintWindow if available, or fallback to WM_PRINT
595 // otherwise. Unfortunately using PrintWindow is even worse than
596 // WM_PRINT. For most native widgets nothing is drawn to the dc
597 // at all, with or without Themes.
598 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
599 static bool s_triedToLoad = False;
600 static PrintWindow_t pfnPrintWindow = NULL;
601 if ( !s_triedToLoad )
602 {
603
604 s_triedToLoad = True;
605 wxDynamicLibrary dllUser32(_T("user32.dll"));
606 if ( dllUser32.IsLoaded() )
607 {
608 wxLogNull nolog; // Don't report errors here
609 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
610 }
611 }
612 if (pfnPrintWindow)
613 {
614 printf("Using PrintWindow\n");
615 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
616 }
617 else
618 {
619 printf("Using WM_PRINT\n");
620 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
621 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
622 }
623 }
624 #endif
625 }
626
627
628
629 #include <wx/tipdlg.h>
630
631
632 class wxPyTipProvider : public wxTipProvider {
633 public:
634 wxPyTipProvider(size_t currentTip)
635 : wxTipProvider(currentTip) {}
636
637 DEC_PYCALLBACK_STRING__pure(GetTip);
638 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
639 PYPRIVATE;
640 };
641
642 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
643 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
644
645
646 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
647
648 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
649
650 void wxPyTimer::Notify() {
651 bool found;
652 bool blocked = wxPyBeginBlockThreads();
653 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
654 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
655 wxPyEndBlockThreads(blocked);
656 if (! found)
657 wxTimer::Notify();
658 }
659 void wxPyTimer::base_Notify() {
660 wxTimer::Notify();
661 }
662
663
664
665 SWIGSTATICINLINE(PyObject *)
666 SWIG_FromCharPtr(const char* cptr)
667 {
668 size_t size = cptr ? strlen(cptr) : 0;
669 if (cptr) {
670 if (size > INT_MAX) {
671 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
672 SWIG_TypeQuery("char *"), 0);
673 } else {
674 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
675 }
676 } else {
677 Py_INCREF(Py_None);
678 return Py_None;
679 }
680 }
681
682
683 SWIGSTATICINLINE(unsigned long)
684 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
685 unsigned long max_value)
686 {
687 if (!PyErr_Occurred()) {
688 if (value > max_value) {
689 PyObject *err =
690 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
691 value, type, max_value);
692 PyErr_SetObject(PyExc_OverflowError, err);
693 Py_DECREF(err);
694 }
695 }
696 return value;
697 }
698
699
700 #if UINT_MAX != ULONG_MAX
701 SWIGSTATICINLINE(unsigned int)
702 SWIG_AsUnsignedInt(PyObject *obj)
703 {
704 return swig_numeric_cast(unsigned int,
705 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
706 "unsigned int", UINT_MAX));
707 }
708 #else
709 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
710 #endif
711
712
713 SWIGSTATICINLINE(int)
714 SWIG_CheckUnsignedInt(PyObject* obj)
715 {
716 SWIG_AsUnsignedInt(obj);
717 if (PyErr_Occurred()) {
718 PyErr_Clear();
719 return 0;
720 } else {
721 return 1;
722 }
723 }
724
725 wxString Log_TimeStamp(){
726 wxString msg;
727 wxLog::TimeStamp(&msg);
728 return msg;
729 }
730 void wxLog_Destroy(wxLog *self){ delete self; }
731
732 // A wxLog class that can be derived from in wxPython
733 class wxPyLog : public wxLog {
734 public:
735 wxPyLog() : wxLog() {}
736
737 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
738 bool found;
739 bool blocked = wxPyBeginBlockThreads();
740 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
741 PyObject* s = wx2PyString(szString);
742 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
743 Py_DECREF(s);
744 }
745 wxPyEndBlockThreads(blocked);
746 if (! found)
747 wxLog::DoLog(level, szString, t);
748 }
749
750 virtual void DoLogString(const wxChar *szString, time_t t) {
751 bool found;
752 bool blocked = wxPyBeginBlockThreads();
753 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
754 PyObject* s = wx2PyString(szString);
755 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
756 Py_DECREF(s);
757 }
758 wxPyEndBlockThreads(blocked);
759 if (! found)
760 wxLog::DoLogString(szString, t);
761 }
762
763 PYPRIVATE;
764 };
765
766
767
768
769 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
770
771
772 #include <wx/joystick.h>
773
774
775 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
776 // A C++ stub class for wxJoystick for platforms that don't have it.
777 class wxJoystick : public wxObject {
778 public:
779 wxJoystick(int joystick = wxJOYSTICK1) {
780 bool blocked = wxPyBeginBlockThreads();
781 PyErr_SetString(PyExc_NotImplementedError,
782 "wxJoystick is not available on this platform.");
783 wxPyEndBlockThreads(blocked);
784 }
785 wxPoint GetPosition() { return wxPoint(-1,-1); }
786 int GetZPosition() { return -1; }
787 int GetButtonState() { return -1; }
788 int GetPOVPosition() { return -1; }
789 int GetPOVCTSPosition() { return -1; }
790 int GetRudderPosition() { return -1; }
791 int GetUPosition() { return -1; }
792 int GetVPosition() { return -1; }
793 int GetMovementThreshold() { return -1; }
794 void SetMovementThreshold(int threshold) {}
795
796 bool IsOk(void) { return False; }
797 int GetNumberJoysticks() { return -1; }
798 int GetManufacturerId() { return -1; }
799 int GetProductId() { return -1; }
800 wxString GetProductName() { return wxEmptyString; }
801 int GetXMin() { return -1; }
802 int GetYMin() { return -1; }
803 int GetZMin() { return -1; }
804 int GetXMax() { return -1; }
805 int GetYMax() { return -1; }
806 int GetZMax() { return -1; }
807 int GetNumberButtons() { return -1; }
808 int GetNumberAxes() { return -1; }
809 int GetMaxButtons() { return -1; }
810 int GetMaxAxes() { return -1; }
811 int GetPollingMin() { return -1; }
812 int GetPollingMax() { return -1; }
813 int GetRudderMin() { return -1; }
814 int GetRudderMax() { return -1; }
815 int GetUMin() { return -1; }
816 int GetUMax() { return -1; }
817 int GetVMin() { return -1; }
818 int GetVMax() { return -1; }
819
820 bool HasRudder() { return False; }
821 bool HasZ() { return False; }
822 bool HasU() { return False; }
823 bool HasV() { return False; }
824 bool HasPOV() { return False; }
825 bool HasPOV4Dir() { return False; }
826 bool HasPOVCTS() { return False; }
827
828 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
829 bool ReleaseCapture() { return False; }
830 };
831 #endif
832
833
834 #include <wx/sound.h>
835
836
837 #if !wxUSE_SOUND
838 // A C++ stub class for wxWave for platforms that don't have it.
839 class wxSound : public wxObject
840 {
841 public:
842 wxSound() {
843 bool blocked = wxPyBeginBlockThreads();
844 PyErr_SetString(PyExc_NotImplementedError,
845 "wxSound is not available on this platform.");
846 wxPyEndBlockThreads(blocked);
847 }
848 wxSound(const wxString&/*, bool*/) {
849 bool blocked = wxPyBeginBlockThreads();
850 PyErr_SetString(PyExc_NotImplementedError,
851 "wxSound is not available on this platform.");
852 wxPyEndBlockThreads(blocked);
853 }
854 wxSound(int, const wxByte*) {
855 bool blocked = wxPyBeginBlockThreads();
856 PyErr_SetString(PyExc_NotImplementedError,
857 "wxSound is not available on this platform.");
858 wxPyEndBlockThreads(blocked);
859 }
860
861 ~wxSound() {};
862
863 bool Create(const wxString&/*, bool*/) { return false; }
864 bool Create(int, const wxByte*) { return false; };
865 bool IsOk() { return false; };
866 bool Play(unsigned) const { return false; }
867 static bool Play(const wxString&, unsigned) { return false; }
868 static void Stop() {}
869 };
870
871 #endif
872
873 wxSound *new_wxSound(wxString const &fileName){
874 if (fileName.Length() == 0)
875 return new wxSound;
876 else
877 return new wxSound(fileName);
878 }
879 wxSound *new_wxSound(PyObject *data){
880 unsigned char* buffer; int size;
881 wxSound *sound = NULL;
882
883 bool blocked = wxPyBeginBlockThreads();
884 if (!PyArg_Parse(data, "t#", &buffer, &size))
885 goto done;
886 sound = new wxSound(size, buffer);
887 done:
888 wxPyEndBlockThreads(blocked);
889 return sound;
890 }
891 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
892 #ifndef __WXMAC__
893 unsigned char* buffer;
894 int size;
895 bool rv = False;
896
897 bool blocked = wxPyBeginBlockThreads();
898 if (!PyArg_Parse(data, "t#", &buffer, &size))
899 goto done;
900 rv = self->Create(size, buffer);
901 done:
902 wxPyEndBlockThreads(blocked);
903 return rv;
904 #else
905 bool blocked = wxPyBeginBlockThreads();
906 PyErr_SetString(PyExc_NotImplementedError,
907 "Create from data is not available on this platform.");
908 wxPyEndBlockThreads(blocked);
909 return False;
910 #endif
911 }
912
913 #include <wx/mimetype.h>
914
915 PyObject *wxFileType_GetMimeType(wxFileType *self){
916 wxString str;
917 if (self->GetMimeType(&str))
918 return wx2PyString(str);
919 else
920 RETURN_NONE();
921 }
922 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
923 wxArrayString arr;
924 if (self->GetMimeTypes(arr))
925 return wxArrayString2PyList_helper(arr);
926 else
927 RETURN_NONE();
928 }
929 PyObject *wxFileType_GetExtensions(wxFileType *self){
930 wxArrayString arr;
931 if (self->GetExtensions(arr))
932 return wxArrayString2PyList_helper(arr);
933 else
934 RETURN_NONE();
935 }
936 wxIcon *wxFileType_GetIcon(wxFileType *self){
937 wxIconLocation loc;
938 if (self->GetIcon(&loc))
939 return new wxIcon(loc);
940 else
941 return NULL;
942 }
943 PyObject *wxFileType_GetIconInfo(wxFileType *self){
944 wxIconLocation loc;
945 if (self->GetIcon(&loc)) {
946 wxString iconFile = loc.GetFileName();
947 int iconIndex = -1;
948
949 iconIndex = loc.GetIndex();
950
951 // Make a tuple and put the values in it
952 bool blocked = wxPyBeginBlockThreads();
953 PyObject* tuple = PyTuple_New(3);
954 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
955 wxT("wxIcon"), True));
956 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
957 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
958 wxPyEndBlockThreads(blocked);
959 return tuple;
960 }
961 else
962 RETURN_NONE();
963 }
964 PyObject *wxFileType_GetDescription(wxFileType *self){
965 wxString str;
966 if (self->GetDescription(&str))
967 return wx2PyString(str);
968 else
969 RETURN_NONE();
970 }
971 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
972 wxString str;
973 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
974 return wx2PyString(str);
975 else
976 RETURN_NONE();
977 }
978 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
979 wxString str;
980 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
981 return wx2PyString(str);
982 else
983 RETURN_NONE();
984 }
985 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
986 wxArrayString verbs;
987 wxArrayString commands;
988 if (self->GetAllCommands(&verbs, &commands,
989 wxFileType::MessageParameters(filename, mimetype))) {
990 bool blocked = wxPyBeginBlockThreads();
991 PyObject* tuple = PyTuple_New(2);
992 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
993 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
994 wxPyEndBlockThreads(blocked);
995 return tuple;
996 }
997 else
998 RETURN_NONE();
999 }
1000 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1001 return wxFileType::ExpandCommand(command,
1002 wxFileType::MessageParameters(filename, mimetype));
1003 }
1004 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1005 wxArrayString arr;
1006 self->EnumAllFileTypes(arr);
1007 return wxArrayString2PyList_helper(arr);
1008 }
1009
1010 #include <wx/artprov.h>
1011
1012 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1013 static const wxString wxPyART_MENU(wxART_MENU);
1014 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1015 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1016 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1017 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1018 static const wxString wxPyART_OTHER(wxART_OTHER);
1019 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1020 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1021 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1022 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1023 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1024 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1025 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1026 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1027 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1028 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1029 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1030 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1031 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1032 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1033 static const wxString wxPyART_PRINT(wxART_PRINT);
1034 static const wxString wxPyART_HELP(wxART_HELP);
1035 static const wxString wxPyART_TIP(wxART_TIP);
1036 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1037 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1038 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1039 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1040 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1041 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1042 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1043 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1044 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1045 static const wxString wxPyART_ERROR(wxART_ERROR);
1046 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1047 static const wxString wxPyART_WARNING(wxART_WARNING);
1048 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1049 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1050 // Python aware wxArtProvider
1051 class wxPyArtProvider : public wxArtProvider {
1052 public:
1053
1054 virtual wxBitmap CreateBitmap(const wxArtID& id,
1055 const wxArtClient& client,
1056 const wxSize& size) {
1057 wxBitmap rval = wxNullBitmap;
1058 bool blocked = wxPyBeginBlockThreads();
1059 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1060 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1061 PyObject* ro;
1062 wxBitmap* ptr;
1063 PyObject* s1, *s2;
1064 s1 = wx2PyString(id);
1065 s2 = wx2PyString(client);
1066 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1067 Py_DECREF(so);
1068 Py_DECREF(s1);
1069 Py_DECREF(s2);
1070 if (ro) {
1071 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1072 rval = *ptr;
1073 Py_DECREF(ro);
1074 }
1075 }
1076 wxPyEndBlockThreads(blocked);
1077 return rval;
1078 }
1079
1080 PYPRIVATE;
1081 };
1082
1083 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1084
1085
1086
1087 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1088 PyObject* ret = PyTuple_New(3);
1089 if (ret) {
1090 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1091 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1092 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1093 }
1094 return ret;
1095 }
1096
1097 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1098 bool cont;
1099 long index = 0;
1100 wxString value;
1101
1102 cont = self->GetFirstGroup(value, index);
1103 return __EnumerationHelper(cont, value, index);
1104 }
1105 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1106 bool cont;
1107 wxString value;
1108
1109 cont = self->GetNextGroup(value, index);
1110 return __EnumerationHelper(cont, value, index);
1111 }
1112 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1113 bool cont;
1114 long index = 0;
1115 wxString value;
1116
1117 cont = self->GetFirstEntry(value, index);
1118 return __EnumerationHelper(cont, value, index);
1119 }
1120 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1121 bool cont;
1122 wxString value;
1123
1124 cont = self->GetNextEntry(value, index);
1125 return __EnumerationHelper(cont, value, index);
1126 }
1127 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1128 long rv;
1129 self->Read(key, &rv, defaultVal);
1130 return rv;
1131 }
1132
1133 SWIGSTATICINLINE(double)
1134 SWIG_AsDouble(PyObject *obj)
1135 {
1136 if (PyNumber_Check(obj))
1137 return PyFloat_AsDouble(obj);
1138 else {
1139 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1140 obj->ob_type->tp_name);
1141 PyErr_SetObject(PyExc_TypeError, errmsg);
1142 Py_DECREF(errmsg);
1143 return 0;
1144 }
1145 }
1146
1147
1148 SWIGSTATICINLINE(int)
1149 SWIG_CheckDouble(PyObject* obj)
1150 {
1151 SWIG_AsDouble(obj);
1152 if (PyErr_Occurred()) {
1153 PyErr_Clear();
1154 return 0;
1155 } else {
1156 return 1;
1157 }
1158 }
1159
1160 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1161 double rv;
1162 self->Read(key, &rv, defaultVal);
1163 return rv;
1164 }
1165 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1166 bool rv;
1167 self->Read(key, &rv, defaultVal);
1168 return rv;
1169 }
1170
1171 #include <wx/datetime.h>
1172
1173
1174 static const wxString wxPyDateFormatStr(wxT("%c"));
1175 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1176
1177 #define LOCAL_TZ wxDateTime::Local
1178
1179
1180 #if UINT_MAX < LONG_MAX
1181 #define SWIG_FromUnsignedInt SWIG_FromLong
1182 #else
1183 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1184 #endif
1185
1186 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1187 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1188 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1189 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1190 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1191 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1192 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1193 return (*self < *other);
1194 }
1195 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1196 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1197 return (*self <= *other);
1198 }
1199 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1200 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1201 return (*self > *other);
1202 }
1203 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1204 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1205 return (*self >= *other);
1206 }
1207 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1208 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1209 return (*self == *other);
1210 }
1211 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1212 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1213 return (*self != *other);
1214 }
1215 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1216 const wxChar* rv;
1217 const wxChar* _date = date;
1218 rv = self->ParseRfc822Date(_date);
1219 if (rv == NULL) return -1;
1220 return rv - _date;
1221 }
1222 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1223 const wxChar* rv;
1224 const wxChar* _date = date;
1225 rv = self->ParseFormat(_date, format, dateDef);
1226 if (rv == NULL) return -1;
1227 return rv - _date;
1228 }
1229 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1230 const wxChar* rv;
1231 const wxChar* _datetime = datetime;
1232 rv = self->ParseDateTime(_datetime);
1233 if (rv == NULL) return -1;
1234 return rv - _datetime;
1235 }
1236 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1237 const wxChar* rv;
1238 const wxChar* _date = date;
1239 rv = self->ParseDate(_date);
1240 if (rv == NULL) return -1;
1241 return rv - _date;
1242 }
1243 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1244 const wxChar* rv;
1245 const wxChar* _time = time;
1246 rv = self->ParseTime(_time);
1247 if (rv == NULL) return -1;
1248 return rv - _time;
1249 }
1250 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1251 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1252 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1253 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1254 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1255 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1256 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1257 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1258 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1259 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1260 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1261 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1262 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1263 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1264 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1265 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1266
1267 #include <wx/dataobj.h>
1268
1269 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1270 size_t count = self->GetFormatCount(dir);
1271 wxDataFormat* formats = new wxDataFormat[count];
1272 self->GetAllFormats(formats, dir);
1273
1274 bool blocked = wxPyBeginBlockThreads();
1275 PyObject* list = PyList_New(count);
1276 for (size_t i=0; i<count; i++) {
1277 wxDataFormat* format = new wxDataFormat(formats[i]);
1278 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1279 PyList_Append(list, obj);
1280 Py_DECREF(obj);
1281 }
1282 wxPyEndBlockThreads(blocked);
1283 delete [] formats;
1284 return list;
1285 }
1286 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1287 PyObject* rval = NULL;
1288 size_t size = self->GetDataSize(format);
1289 bool blocked = wxPyBeginBlockThreads();
1290 if (size) {
1291 char* buf = new char[size];
1292 if (self->GetDataHere(format, buf))
1293 rval = PyString_FromStringAndSize(buf, size);
1294 delete [] buf;
1295 }
1296 if (! rval) {
1297 rval = Py_None;
1298 Py_INCREF(rval);
1299 }
1300 wxPyEndBlockThreads(blocked);
1301 return rval;
1302 }
1303 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1304 bool rval;
1305 bool blocked = wxPyBeginBlockThreads();
1306 if (PyString_Check(data)) {
1307 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1308 }
1309 else {
1310 // raise a TypeError if not a string
1311 PyErr_SetString(PyExc_TypeError, "String expected.");
1312 rval = False;
1313 }
1314 wxPyEndBlockThreads(blocked);
1315 return rval;
1316 }
1317 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1318 PyObject* rval = NULL;
1319 size_t size = self->GetDataSize();
1320 bool blocked = wxPyBeginBlockThreads();
1321 if (size) {
1322 char* buf = new char[size];
1323 if (self->GetDataHere(buf))
1324 rval = PyString_FromStringAndSize(buf, size);
1325 delete [] buf;
1326 }
1327 if (! rval) {
1328 rval = Py_None;
1329 Py_INCREF(rval);
1330 }
1331 wxPyEndBlockThreads(blocked);
1332 return rval;
1333 }
1334 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1335 bool rval;
1336 bool blocked = wxPyBeginBlockThreads();
1337 if (PyString_Check(data)) {
1338 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1339 }
1340 else {
1341 // raise a TypeError if not a string
1342 PyErr_SetString(PyExc_TypeError, "String expected.");
1343 rval = False;
1344 }
1345 wxPyEndBlockThreads(blocked);
1346 return rval;
1347 }
1348 // Create a new class for wxPython to use
1349 class wxPyDataObjectSimple : public wxDataObjectSimple {
1350 public:
1351 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1352 : wxDataObjectSimple(format) {}
1353
1354 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1355 bool GetDataHere(void *buf) const;
1356 bool SetData(size_t len, const void *buf) const;
1357 PYPRIVATE;
1358 };
1359
1360 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1361
1362 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1363 // We need to get the data for this object and write it to buf. I think
1364 // the best way to do this for wxPython is to have the Python method
1365 // return either a string or None and then act appropriately with the
1366 // C++ version.
1367
1368 bool rval = False;
1369 bool blocked = wxPyBeginBlockThreads();
1370 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1371 PyObject* ro;
1372 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1373 if (ro) {
1374 rval = (ro != Py_None && PyString_Check(ro));
1375 if (rval)
1376 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1377 Py_DECREF(ro);
1378 }
1379 }
1380 wxPyEndBlockThreads(blocked);
1381 return rval;
1382 }
1383
1384 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1385 // For this one we simply need to make a string from buf and len
1386 // and send it to the Python method.
1387 bool rval = False;
1388 bool blocked = wxPyBeginBlockThreads();
1389 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1390 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1391 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1392 Py_DECREF(data);
1393 }
1394 wxPyEndBlockThreads(blocked);
1395 return rval;
1396 }
1397
1398 // Create a new class for wxPython to use
1399 class wxPyTextDataObject : public wxTextDataObject {
1400 public:
1401 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1402 : wxTextDataObject(text) {}
1403
1404 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1405 DEC_PYCALLBACK_STRING__const(GetText);
1406 DEC_PYCALLBACK__STRING(SetText);
1407 PYPRIVATE;
1408 };
1409
1410 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1411 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1412 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1413
1414
1415 // Create a new class for wxPython to use
1416 class wxPyBitmapDataObject : public wxBitmapDataObject {
1417 public:
1418 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1419 : wxBitmapDataObject(bitmap) {}
1420
1421 wxBitmap GetBitmap() const;
1422 void SetBitmap(const wxBitmap& bitmap);
1423 PYPRIVATE;
1424 };
1425
1426 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1427 wxBitmap* rval = &wxNullBitmap;
1428 bool blocked = wxPyBeginBlockThreads();
1429 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1430 PyObject* ro;
1431 wxBitmap* ptr;
1432 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1433 if (ro) {
1434 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1435 rval = ptr;
1436 Py_DECREF(ro);
1437 }
1438 }
1439 wxPyEndBlockThreads(blocked);
1440 return *rval;
1441 }
1442
1443 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1444 bool blocked = wxPyBeginBlockThreads();
1445 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1446 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1447 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1448 Py_DECREF(bo);
1449 }
1450 wxPyEndBlockThreads(blocked);
1451 }
1452
1453 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1454 bool rval;
1455 bool blocked = wxPyBeginBlockThreads();
1456 if (PyString_Check(data)) {
1457 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1458 }
1459 else {
1460 // raise a TypeError if not a string
1461 PyErr_SetString(PyExc_TypeError, "String expected.");
1462 rval = False;
1463 }
1464 wxPyEndBlockThreads(blocked);
1465 return rval;
1466 }
1467 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1468 PyObject* obj;
1469 bool blocked = wxPyBeginBlockThreads();
1470 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1471 wxPyEndBlockThreads(blocked);
1472 return obj;
1473 }
1474
1475 #include <wx/metafile.h>
1476
1477
1478 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1479
1480
1481 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1482 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1483 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1484 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1485 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1486
1487
1488 class wxPyTextDropTarget : public wxTextDropTarget {
1489 public:
1490 wxPyTextDropTarget() {}
1491
1492 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1493
1494 DEC_PYCALLBACK__(OnLeave);
1495 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1496 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1497 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1498 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1499
1500 PYPRIVATE;
1501 };
1502
1503 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1504 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1505 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1506 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1507 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1508 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1509
1510
1511
1512 class wxPyFileDropTarget : public wxFileDropTarget {
1513 public:
1514 wxPyFileDropTarget() {}
1515
1516 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1517
1518 DEC_PYCALLBACK__(OnLeave);
1519 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1520 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1521 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1522 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1523
1524 PYPRIVATE;
1525 };
1526
1527 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1528 const wxArrayString& filenames) {
1529 bool rval = False;
1530 bool blocked = wxPyBeginBlockThreads();
1531 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1532 PyObject* list = wxArrayString2PyList_helper(filenames);
1533 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1534 Py_DECREF(list);
1535 }
1536 wxPyEndBlockThreads(blocked);
1537 return rval;
1538 }
1539
1540
1541
1542 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1543 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1544 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1545 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1546 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1547
1548
1549
1550
1551 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1552
1553 #include <wx/display.h>
1554
1555 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1556 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1557
1558 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1559 #if !wxUSE_DISPLAY
1560 #include <wx/dynarray.h>
1561 #include <wx/vidmode.h>
1562
1563 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1564 #include "wx/arrimpl.cpp"
1565 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1566 const wxVideoMode wxDefaultVideoMode;
1567
1568 class wxDisplay
1569 {
1570 public:
1571 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1572 ~wxDisplay() {}
1573
1574 static size_t GetCount()
1575 { wxPyRaiseNotImplemented(); return 0; }
1576
1577 static int GetFromPoint(const wxPoint& pt)
1578 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1579 static int GetFromWindow(wxWindow *window)
1580 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1581
1582 virtual bool IsOk() const { return false; }
1583 virtual wxRect GetGeometry() const { wxRect r; return r; }
1584 virtual wxString GetName() const { return wxEmptyString; }
1585 bool IsPrimary() const { return false; }
1586
1587 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1588 { wxArrayVideoModes a; return a; }
1589
1590 virtual wxVideoMode GetCurrentMode() const
1591 { return wxDefaultVideoMode; }
1592
1593 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1594 { return false; }
1595
1596 void ResetMode() {}
1597 };
1598 #endif
1599
1600 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1601 PyObject* pyList = NULL;
1602 wxArrayVideoModes arr = self->GetModes(mode);
1603 bool blocked = wxPyBeginBlockThreads();
1604 pyList = PyList_New(0);
1605 for (int i=0; i < arr.GetCount(); i++) {
1606 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1607 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1608 PyList_Append(pyList, pyObj);
1609 Py_DECREF(pyObj);
1610 }
1611 wxPyEndBlockThreads(blocked);
1612 return pyList;
1613 }
1614 #ifdef __cplusplus
1615 extern "C" {
1616 #endif
1617 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1618 PyObject *resultobj;
1619 int arg1 ;
1620 wxColour result;
1621 PyObject * obj0 = 0 ;
1622 char *kwnames[] = {
1623 (char *) "index", NULL
1624 };
1625
1626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1627 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1628 if (PyErr_Occurred()) SWIG_fail;
1629 {
1630 if (!wxPyCheckForApp()) SWIG_fail;
1631 PyThreadState* __tstate = wxPyBeginAllowThreads();
1632 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1633
1634 wxPyEndAllowThreads(__tstate);
1635 if (PyErr_Occurred()) SWIG_fail;
1636 }
1637 {
1638 wxColour * resultptr;
1639 resultptr = new wxColour((wxColour &) result);
1640 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1641 }
1642 return resultobj;
1643 fail:
1644 return NULL;
1645 }
1646
1647
1648 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 int arg1 ;
1651 wxFont result;
1652 PyObject * obj0 = 0 ;
1653 char *kwnames[] = {
1654 (char *) "index", NULL
1655 };
1656
1657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1658 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1659 if (PyErr_Occurred()) SWIG_fail;
1660 {
1661 if (!wxPyCheckForApp()) SWIG_fail;
1662 PyThreadState* __tstate = wxPyBeginAllowThreads();
1663 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1664
1665 wxPyEndAllowThreads(__tstate);
1666 if (PyErr_Occurred()) SWIG_fail;
1667 }
1668 {
1669 wxFont * resultptr;
1670 resultptr = new wxFont((wxFont &) result);
1671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1672 }
1673 return resultobj;
1674 fail:
1675 return NULL;
1676 }
1677
1678
1679 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1680 PyObject *resultobj;
1681 int arg1 ;
1682 int result;
1683 PyObject * obj0 = 0 ;
1684 char *kwnames[] = {
1685 (char *) "index", NULL
1686 };
1687
1688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1689 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1690 if (PyErr_Occurred()) SWIG_fail;
1691 {
1692 if (!wxPyCheckForApp()) SWIG_fail;
1693 PyThreadState* __tstate = wxPyBeginAllowThreads();
1694 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1695
1696 wxPyEndAllowThreads(__tstate);
1697 if (PyErr_Occurred()) SWIG_fail;
1698 }
1699 resultobj = SWIG_FromInt((int)result);
1700 return resultobj;
1701 fail:
1702 return NULL;
1703 }
1704
1705
1706 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1707 PyObject *resultobj;
1708 int arg1 ;
1709 bool result;
1710 PyObject * obj0 = 0 ;
1711 char *kwnames[] = {
1712 (char *) "index", NULL
1713 };
1714
1715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1716 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1717 if (PyErr_Occurred()) SWIG_fail;
1718 {
1719 if (!wxPyCheckForApp()) SWIG_fail;
1720 PyThreadState* __tstate = wxPyBeginAllowThreads();
1721 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1722
1723 wxPyEndAllowThreads(__tstate);
1724 if (PyErr_Occurred()) SWIG_fail;
1725 }
1726 {
1727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1728 }
1729 return resultobj;
1730 fail:
1731 return NULL;
1732 }
1733
1734
1735 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1736 PyObject *resultobj;
1737 int result;
1738 char *kwnames[] = {
1739 NULL
1740 };
1741
1742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1743 {
1744 if (!wxPyCheckForApp()) SWIG_fail;
1745 PyThreadState* __tstate = wxPyBeginAllowThreads();
1746 result = (int)wxSystemSettings::GetScreenType();
1747
1748 wxPyEndAllowThreads(__tstate);
1749 if (PyErr_Occurred()) SWIG_fail;
1750 }
1751 resultobj = SWIG_FromInt((int)result);
1752 return resultobj;
1753 fail:
1754 return NULL;
1755 }
1756
1757
1758 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject *resultobj;
1760 int arg1 ;
1761 PyObject * obj0 = 0 ;
1762 char *kwnames[] = {
1763 (char *) "screen", NULL
1764 };
1765
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1767 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1768 if (PyErr_Occurred()) SWIG_fail;
1769 {
1770 if (!wxPyCheckForApp()) SWIG_fail;
1771 PyThreadState* __tstate = wxPyBeginAllowThreads();
1772 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1773
1774 wxPyEndAllowThreads(__tstate);
1775 if (PyErr_Occurred()) SWIG_fail;
1776 }
1777 Py_INCREF(Py_None); resultobj = Py_None;
1778 return resultobj;
1779 fail:
1780 return NULL;
1781 }
1782
1783
1784 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1785 PyObject *obj;
1786 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1787 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1788 Py_INCREF(obj);
1789 return Py_BuildValue((char *)"");
1790 }
1791 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1792 PyObject *resultobj;
1793 wxSystemOptions *result;
1794 char *kwnames[] = {
1795 NULL
1796 };
1797
1798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1799 {
1800 PyThreadState* __tstate = wxPyBeginAllowThreads();
1801 result = (wxSystemOptions *)new wxSystemOptions();
1802
1803 wxPyEndAllowThreads(__tstate);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1807 return resultobj;
1808 fail:
1809 return NULL;
1810 }
1811
1812
1813 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxString *arg1 = 0 ;
1816 wxString *arg2 = 0 ;
1817 bool temp1 = False ;
1818 bool temp2 = False ;
1819 PyObject * obj0 = 0 ;
1820 PyObject * obj1 = 0 ;
1821 char *kwnames[] = {
1822 (char *) "name",(char *) "value", NULL
1823 };
1824
1825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1826 {
1827 arg1 = wxString_in_helper(obj0);
1828 if (arg1 == NULL) SWIG_fail;
1829 temp1 = True;
1830 }
1831 {
1832 arg2 = wxString_in_helper(obj1);
1833 if (arg2 == NULL) SWIG_fail;
1834 temp2 = True;
1835 }
1836 {
1837 PyThreadState* __tstate = wxPyBeginAllowThreads();
1838 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1839
1840 wxPyEndAllowThreads(__tstate);
1841 if (PyErr_Occurred()) SWIG_fail;
1842 }
1843 Py_INCREF(Py_None); resultobj = Py_None;
1844 {
1845 if (temp1)
1846 delete arg1;
1847 }
1848 {
1849 if (temp2)
1850 delete arg2;
1851 }
1852 return resultobj;
1853 fail:
1854 {
1855 if (temp1)
1856 delete arg1;
1857 }
1858 {
1859 if (temp2)
1860 delete arg2;
1861 }
1862 return NULL;
1863 }
1864
1865
1866 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1867 PyObject *resultobj;
1868 wxString *arg1 = 0 ;
1869 int arg2 ;
1870 bool temp1 = False ;
1871 PyObject * obj0 = 0 ;
1872 PyObject * obj1 = 0 ;
1873 char *kwnames[] = {
1874 (char *) "name",(char *) "value", NULL
1875 };
1876
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1878 {
1879 arg1 = wxString_in_helper(obj0);
1880 if (arg1 == NULL) SWIG_fail;
1881 temp1 = True;
1882 }
1883 arg2 = (int) SWIG_AsInt(obj1);
1884 if (PyErr_Occurred()) SWIG_fail;
1885 {
1886 PyThreadState* __tstate = wxPyBeginAllowThreads();
1887 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1888
1889 wxPyEndAllowThreads(__tstate);
1890 if (PyErr_Occurred()) SWIG_fail;
1891 }
1892 Py_INCREF(Py_None); resultobj = Py_None;
1893 {
1894 if (temp1)
1895 delete arg1;
1896 }
1897 return resultobj;
1898 fail:
1899 {
1900 if (temp1)
1901 delete arg1;
1902 }
1903 return NULL;
1904 }
1905
1906
1907 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject *resultobj;
1909 wxString *arg1 = 0 ;
1910 wxString result;
1911 bool temp1 = False ;
1912 PyObject * obj0 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "name", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1918 {
1919 arg1 = wxString_in_helper(obj0);
1920 if (arg1 == NULL) SWIG_fail;
1921 temp1 = True;
1922 }
1923 {
1924 PyThreadState* __tstate = wxPyBeginAllowThreads();
1925 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1926
1927 wxPyEndAllowThreads(__tstate);
1928 if (PyErr_Occurred()) SWIG_fail;
1929 }
1930 {
1931 #if wxUSE_UNICODE
1932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1933 #else
1934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1935 #endif
1936 }
1937 {
1938 if (temp1)
1939 delete arg1;
1940 }
1941 return resultobj;
1942 fail:
1943 {
1944 if (temp1)
1945 delete arg1;
1946 }
1947 return NULL;
1948 }
1949
1950
1951 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1952 PyObject *resultobj;
1953 wxString *arg1 = 0 ;
1954 int result;
1955 bool temp1 = False ;
1956 PyObject * obj0 = 0 ;
1957 char *kwnames[] = {
1958 (char *) "name", NULL
1959 };
1960
1961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1962 {
1963 arg1 = wxString_in_helper(obj0);
1964 if (arg1 == NULL) SWIG_fail;
1965 temp1 = True;
1966 }
1967 {
1968 PyThreadState* __tstate = wxPyBeginAllowThreads();
1969 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1970
1971 wxPyEndAllowThreads(__tstate);
1972 if (PyErr_Occurred()) SWIG_fail;
1973 }
1974 resultobj = SWIG_FromInt((int)result);
1975 {
1976 if (temp1)
1977 delete arg1;
1978 }
1979 return resultobj;
1980 fail:
1981 {
1982 if (temp1)
1983 delete arg1;
1984 }
1985 return NULL;
1986 }
1987
1988
1989 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1990 PyObject *resultobj;
1991 wxString *arg1 = 0 ;
1992 bool result;
1993 bool temp1 = False ;
1994 PyObject * obj0 = 0 ;
1995 char *kwnames[] = {
1996 (char *) "name", NULL
1997 };
1998
1999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2000 {
2001 arg1 = wxString_in_helper(obj0);
2002 if (arg1 == NULL) SWIG_fail;
2003 temp1 = True;
2004 }
2005 {
2006 PyThreadState* __tstate = wxPyBeginAllowThreads();
2007 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2008
2009 wxPyEndAllowThreads(__tstate);
2010 if (PyErr_Occurred()) SWIG_fail;
2011 }
2012 {
2013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2014 }
2015 {
2016 if (temp1)
2017 delete arg1;
2018 }
2019 return resultobj;
2020 fail:
2021 {
2022 if (temp1)
2023 delete arg1;
2024 }
2025 return NULL;
2026 }
2027
2028
2029 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
2030 PyObject *obj;
2031 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2032 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2033 Py_INCREF(obj);
2034 return Py_BuildValue((char *)"");
2035 }
2036 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2037 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2038 return 1;
2039 }
2040
2041
2042 static PyObject *_wrap_FileSelectorPromptStr_get() {
2043 PyObject *pyobj;
2044
2045 {
2046 #if wxUSE_UNICODE
2047 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2048 #else
2049 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2050 #endif
2051 }
2052 return pyobj;
2053 }
2054
2055
2056 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2057 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2058 return 1;
2059 }
2060
2061
2062 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2063 PyObject *pyobj;
2064
2065 {
2066 #if wxUSE_UNICODE
2067 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2068 #else
2069 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2070 #endif
2071 }
2072 return pyobj;
2073 }
2074
2075
2076 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2077 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2078 return 1;
2079 }
2080
2081
2082 static PyObject *_wrap_DirSelectorPromptStr_get() {
2083 PyObject *pyobj;
2084
2085 {
2086 #if wxUSE_UNICODE
2087 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2088 #else
2089 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2090 #endif
2091 }
2092 return pyobj;
2093 }
2094
2095
2096 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2097 PyObject *resultobj;
2098 long result;
2099 char *kwnames[] = {
2100 NULL
2101 };
2102
2103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2104 {
2105 PyThreadState* __tstate = wxPyBeginAllowThreads();
2106 result = (long)wxNewId();
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 resultobj = SWIG_FromLong((long)result);
2112 return resultobj;
2113 fail:
2114 return NULL;
2115 }
2116
2117
2118 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2119 PyObject *resultobj;
2120 long arg1 ;
2121 PyObject * obj0 = 0 ;
2122 char *kwnames[] = {
2123 (char *) "id", NULL
2124 };
2125
2126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2127 arg1 = (long) SWIG_AsLong(obj0);
2128 if (PyErr_Occurred()) SWIG_fail;
2129 {
2130 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131 wxRegisterId(arg1);
2132
2133 wxPyEndAllowThreads(__tstate);
2134 if (PyErr_Occurred()) SWIG_fail;
2135 }
2136 Py_INCREF(Py_None); resultobj = Py_None;
2137 return resultobj;
2138 fail:
2139 return NULL;
2140 }
2141
2142
2143 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2144 PyObject *resultobj;
2145 long result;
2146 char *kwnames[] = {
2147 NULL
2148 };
2149
2150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2151 {
2152 PyThreadState* __tstate = wxPyBeginAllowThreads();
2153 result = (long)wxGetCurrentId();
2154
2155 wxPyEndAllowThreads(__tstate);
2156 if (PyErr_Occurred()) SWIG_fail;
2157 }
2158 resultobj = SWIG_FromLong((long)result);
2159 return resultobj;
2160 fail:
2161 return NULL;
2162 }
2163
2164
2165 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2166 PyObject *resultobj;
2167 char *kwnames[] = {
2168 NULL
2169 };
2170
2171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2172 {
2173 if (!wxPyCheckForApp()) SWIG_fail;
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 wxBell();
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) SWIG_fail;
2179 }
2180 Py_INCREF(Py_None); resultobj = Py_None;
2181 return resultobj;
2182 fail:
2183 return NULL;
2184 }
2185
2186
2187 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2188 PyObject *resultobj;
2189 char *kwnames[] = {
2190 NULL
2191 };
2192
2193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2194 {
2195 if (!wxPyCheckForApp()) SWIG_fail;
2196 PyThreadState* __tstate = wxPyBeginAllowThreads();
2197 wxEndBusyCursor();
2198
2199 wxPyEndAllowThreads(__tstate);
2200 if (PyErr_Occurred()) SWIG_fail;
2201 }
2202 Py_INCREF(Py_None); resultobj = Py_None;
2203 return resultobj;
2204 fail:
2205 return NULL;
2206 }
2207
2208
2209 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject *resultobj;
2211 bool arg1 = (bool) True ;
2212 long result;
2213 PyObject * obj0 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "resetTimer", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2219 if (obj0) {
2220 arg1 = (bool) SWIG_AsBool(obj0);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
2225 result = (long)wxGetElapsedTime(arg1);
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 }
2230 resultobj = SWIG_FromLong((long)result);
2231 return resultobj;
2232 fail:
2233 return NULL;
2234 }
2235
2236
2237 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 int *arg1 = (int *) 0 ;
2240 int *arg2 = (int *) 0 ;
2241 int temp1 ;
2242 int temp2 ;
2243 char *kwnames[] = {
2244 NULL
2245 };
2246
2247 arg1 = &temp1;
2248 arg2 = &temp2;
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2250 {
2251 if (!wxPyCheckForApp()) SWIG_fail;
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 wxGetMousePosition(arg1,arg2);
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2258 Py_INCREF(Py_None); resultobj = Py_None;
2259 {
2260 PyObject *o = PyInt_FromLong((long) (*arg1));
2261 resultobj = t_output_helper(resultobj,o);
2262 }
2263 {
2264 PyObject *o = PyInt_FromLong((long) (*arg2));
2265 resultobj = t_output_helper(resultobj,o);
2266 }
2267 return resultobj;
2268 fail:
2269 return NULL;
2270 }
2271
2272
2273 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2274 PyObject *resultobj;
2275 bool result;
2276 char *kwnames[] = {
2277 NULL
2278 };
2279
2280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2281 {
2282 PyThreadState* __tstate = wxPyBeginAllowThreads();
2283 result = (bool)wxIsBusy();
2284
2285 wxPyEndAllowThreads(__tstate);
2286 if (PyErr_Occurred()) SWIG_fail;
2287 }
2288 {
2289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2290 }
2291 return resultobj;
2292 fail:
2293 return NULL;
2294 }
2295
2296
2297 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2298 PyObject *resultobj;
2299 wxString result;
2300 char *kwnames[] = {
2301 NULL
2302 };
2303
2304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2305 {
2306 PyThreadState* __tstate = wxPyBeginAllowThreads();
2307 result = wxNow();
2308
2309 wxPyEndAllowThreads(__tstate);
2310 if (PyErr_Occurred()) SWIG_fail;
2311 }
2312 {
2313 #if wxUSE_UNICODE
2314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2315 #else
2316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2317 #endif
2318 }
2319 return resultobj;
2320 fail:
2321 return NULL;
2322 }
2323
2324
2325 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2326 PyObject *resultobj;
2327 wxString const &arg1_defvalue = wxPyEmptyString ;
2328 wxString *arg1 = (wxString *) &arg1_defvalue ;
2329 bool result;
2330 bool temp1 = False ;
2331 PyObject * obj0 = 0 ;
2332 char *kwnames[] = {
2333 (char *) "command", NULL
2334 };
2335
2336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2337 if (obj0) {
2338 {
2339 arg1 = wxString_in_helper(obj0);
2340 if (arg1 == NULL) SWIG_fail;
2341 temp1 = True;
2342 }
2343 }
2344 {
2345 PyThreadState* __tstate = wxPyBeginAllowThreads();
2346 result = (bool)wxShell((wxString const &)*arg1);
2347
2348 wxPyEndAllowThreads(__tstate);
2349 if (PyErr_Occurred()) SWIG_fail;
2350 }
2351 {
2352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2353 }
2354 {
2355 if (temp1)
2356 delete arg1;
2357 }
2358 return resultobj;
2359 fail:
2360 {
2361 if (temp1)
2362 delete arg1;
2363 }
2364 return NULL;
2365 }
2366
2367
2368 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2369 PyObject *resultobj;
2370 char *kwnames[] = {
2371 NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 wxStartTimer();
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 Py_INCREF(Py_None); resultobj = Py_None;
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2390 PyObject *resultobj;
2391 int *arg1 = (int *) 0 ;
2392 int *arg2 = (int *) 0 ;
2393 int result;
2394 int temp1 ;
2395 int temp2 ;
2396 char *kwnames[] = {
2397 NULL
2398 };
2399
2400 arg1 = &temp1;
2401 arg2 = &temp2;
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2403 {
2404 PyThreadState* __tstate = wxPyBeginAllowThreads();
2405 result = (int)wxGetOsVersion(arg1,arg2);
2406
2407 wxPyEndAllowThreads(__tstate);
2408 if (PyErr_Occurred()) SWIG_fail;
2409 }
2410 resultobj = SWIG_FromInt((int)result);
2411 {
2412 PyObject *o = PyInt_FromLong((long) (*arg1));
2413 resultobj = t_output_helper(resultobj,o);
2414 }
2415 {
2416 PyObject *o = PyInt_FromLong((long) (*arg2));
2417 resultobj = t_output_helper(resultobj,o);
2418 }
2419 return resultobj;
2420 fail:
2421 return NULL;
2422 }
2423
2424
2425 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2426 PyObject *resultobj;
2427 wxString result;
2428 char *kwnames[] = {
2429 NULL
2430 };
2431
2432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2433 {
2434 PyThreadState* __tstate = wxPyBeginAllowThreads();
2435 result = wxGetOsDescription();
2436
2437 wxPyEndAllowThreads(__tstate);
2438 if (PyErr_Occurred()) SWIG_fail;
2439 }
2440 {
2441 #if wxUSE_UNICODE
2442 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2443 #else
2444 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2445 #endif
2446 }
2447 return resultobj;
2448 fail:
2449 return NULL;
2450 }
2451
2452
2453 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2454 PyObject *resultobj;
2455 long result;
2456 char *kwnames[] = {
2457 NULL
2458 };
2459
2460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2461 {
2462 PyThreadState* __tstate = wxPyBeginAllowThreads();
2463 result = (long)wxGetFreeMemory();
2464
2465 wxPyEndAllowThreads(__tstate);
2466 if (PyErr_Occurred()) SWIG_fail;
2467 }
2468 resultobj = SWIG_FromLong((long)result);
2469 return resultobj;
2470 fail:
2471 return NULL;
2472 }
2473
2474
2475 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2476 PyObject *resultobj;
2477 int arg1 ;
2478 bool result;
2479 PyObject * obj0 = 0 ;
2480 char *kwnames[] = {
2481 (char *) "wFlags", NULL
2482 };
2483
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2485 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2486 if (PyErr_Occurred()) SWIG_fail;
2487 {
2488 if (!wxPyCheckForApp()) SWIG_fail;
2489 PyThreadState* __tstate = wxPyBeginAllowThreads();
2490 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2491
2492 wxPyEndAllowThreads(__tstate);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 {
2496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2497 }
2498 return resultobj;
2499 fail:
2500 return NULL;
2501 }
2502
2503
2504 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 int arg1 ;
2507 PyObject * obj0 = 0 ;
2508 char *kwnames[] = {
2509 (char *) "secs", NULL
2510 };
2511
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2513 arg1 = (int) SWIG_AsInt(obj0);
2514 if (PyErr_Occurred()) SWIG_fail;
2515 {
2516 PyThreadState* __tstate = wxPyBeginAllowThreads();
2517 wxSleep(arg1);
2518
2519 wxPyEndAllowThreads(__tstate);
2520 if (PyErr_Occurred()) SWIG_fail;
2521 }
2522 Py_INCREF(Py_None); resultobj = Py_None;
2523 return resultobj;
2524 fail:
2525 return NULL;
2526 }
2527
2528
2529 static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2530 PyObject *resultobj;
2531 unsigned long arg1 ;
2532 PyObject * obj0 = 0 ;
2533 char *kwnames[] = {
2534 (char *) "milliseconds", NULL
2535 };
2536
2537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2538 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2539 if (PyErr_Occurred()) SWIG_fail;
2540 {
2541 PyThreadState* __tstate = wxPyBeginAllowThreads();
2542 wxMilliSleep(arg1);
2543
2544 wxPyEndAllowThreads(__tstate);
2545 if (PyErr_Occurred()) SWIG_fail;
2546 }
2547 Py_INCREF(Py_None); resultobj = Py_None;
2548 return resultobj;
2549 fail:
2550 return NULL;
2551 }
2552
2553
2554 static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2555 PyObject *resultobj;
2556 unsigned long arg1 ;
2557 PyObject * obj0 = 0 ;
2558 char *kwnames[] = {
2559 (char *) "microseconds", NULL
2560 };
2561
2562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2563 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2564 if (PyErr_Occurred()) SWIG_fail;
2565 {
2566 PyThreadState* __tstate = wxPyBeginAllowThreads();
2567 wxMicroSleep(arg1);
2568
2569 wxPyEndAllowThreads(__tstate);
2570 if (PyErr_Occurred()) SWIG_fail;
2571 }
2572 Py_INCREF(Py_None); resultobj = Py_None;
2573 return resultobj;
2574 fail:
2575 return NULL;
2576 }
2577
2578
2579 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2580 PyObject *resultobj;
2581 bool arg1 ;
2582 PyObject * obj0 = 0 ;
2583 char *kwnames[] = {
2584 (char *) "enable", NULL
2585 };
2586
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2588 arg1 = (bool) SWIG_AsBool(obj0);
2589 if (PyErr_Occurred()) SWIG_fail;
2590 {
2591 PyThreadState* __tstate = wxPyBeginAllowThreads();
2592 wxEnableTopLevelWindows(arg1);
2593
2594 wxPyEndAllowThreads(__tstate);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 }
2597 Py_INCREF(Py_None); resultobj = Py_None;
2598 return resultobj;
2599 fail:
2600 return NULL;
2601 }
2602
2603
2604 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2605 PyObject *resultobj;
2606 wxString *arg1 = 0 ;
2607 wxString result;
2608 bool temp1 = False ;
2609 PyObject * obj0 = 0 ;
2610 char *kwnames[] = {
2611 (char *) "in", NULL
2612 };
2613
2614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2615 {
2616 arg1 = wxString_in_helper(obj0);
2617 if (arg1 == NULL) SWIG_fail;
2618 temp1 = True;
2619 }
2620 {
2621 PyThreadState* __tstate = wxPyBeginAllowThreads();
2622 result = wxStripMenuCodes((wxString const &)*arg1);
2623
2624 wxPyEndAllowThreads(__tstate);
2625 if (PyErr_Occurred()) SWIG_fail;
2626 }
2627 {
2628 #if wxUSE_UNICODE
2629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2630 #else
2631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2632 #endif
2633 }
2634 {
2635 if (temp1)
2636 delete arg1;
2637 }
2638 return resultobj;
2639 fail:
2640 {
2641 if (temp1)
2642 delete arg1;
2643 }
2644 return NULL;
2645 }
2646
2647
2648 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2649 PyObject *resultobj;
2650 wxString result;
2651 char *kwnames[] = {
2652 NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2656 {
2657 PyThreadState* __tstate = wxPyBeginAllowThreads();
2658 result = wxGetEmailAddress();
2659
2660 wxPyEndAllowThreads(__tstate);
2661 if (PyErr_Occurred()) SWIG_fail;
2662 }
2663 {
2664 #if wxUSE_UNICODE
2665 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2666 #else
2667 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2668 #endif
2669 }
2670 return resultobj;
2671 fail:
2672 return NULL;
2673 }
2674
2675
2676 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject *resultobj;
2678 wxString result;
2679 char *kwnames[] = {
2680 NULL
2681 };
2682
2683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2684 {
2685 PyThreadState* __tstate = wxPyBeginAllowThreads();
2686 result = wxGetHostName();
2687
2688 wxPyEndAllowThreads(__tstate);
2689 if (PyErr_Occurred()) SWIG_fail;
2690 }
2691 {
2692 #if wxUSE_UNICODE
2693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2694 #else
2695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2696 #endif
2697 }
2698 return resultobj;
2699 fail:
2700 return NULL;
2701 }
2702
2703
2704 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2705 PyObject *resultobj;
2706 wxString result;
2707 char *kwnames[] = {
2708 NULL
2709 };
2710
2711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2712 {
2713 PyThreadState* __tstate = wxPyBeginAllowThreads();
2714 result = wxGetFullHostName();
2715
2716 wxPyEndAllowThreads(__tstate);
2717 if (PyErr_Occurred()) SWIG_fail;
2718 }
2719 {
2720 #if wxUSE_UNICODE
2721 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2722 #else
2723 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2724 #endif
2725 }
2726 return resultobj;
2727 fail:
2728 return NULL;
2729 }
2730
2731
2732 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject *resultobj;
2734 wxString result;
2735 char *kwnames[] = {
2736 NULL
2737 };
2738
2739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2740 {
2741 PyThreadState* __tstate = wxPyBeginAllowThreads();
2742 result = wxGetUserId();
2743
2744 wxPyEndAllowThreads(__tstate);
2745 if (PyErr_Occurred()) SWIG_fail;
2746 }
2747 {
2748 #if wxUSE_UNICODE
2749 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2750 #else
2751 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2752 #endif
2753 }
2754 return resultobj;
2755 fail:
2756 return NULL;
2757 }
2758
2759
2760 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2761 PyObject *resultobj;
2762 wxString result;
2763 char *kwnames[] = {
2764 NULL
2765 };
2766
2767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2768 {
2769 PyThreadState* __tstate = wxPyBeginAllowThreads();
2770 result = wxGetUserName();
2771
2772 wxPyEndAllowThreads(__tstate);
2773 if (PyErr_Occurred()) SWIG_fail;
2774 }
2775 {
2776 #if wxUSE_UNICODE
2777 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2778 #else
2779 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2780 #endif
2781 }
2782 return resultobj;
2783 fail:
2784 return NULL;
2785 }
2786
2787
2788 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2789 PyObject *resultobj;
2790 wxString result;
2791 char *kwnames[] = {
2792 NULL
2793 };
2794
2795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2796 {
2797 PyThreadState* __tstate = wxPyBeginAllowThreads();
2798 result = wxGetHomeDir();
2799
2800 wxPyEndAllowThreads(__tstate);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 {
2804 #if wxUSE_UNICODE
2805 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2806 #else
2807 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2808 #endif
2809 }
2810 return resultobj;
2811 fail:
2812 return NULL;
2813 }
2814
2815
2816 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2817 PyObject *resultobj;
2818 wxString const &arg1_defvalue = wxPyEmptyString ;
2819 wxString *arg1 = (wxString *) &arg1_defvalue ;
2820 wxString result;
2821 bool temp1 = False ;
2822 PyObject * obj0 = 0 ;
2823 char *kwnames[] = {
2824 (char *) "user", NULL
2825 };
2826
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2828 if (obj0) {
2829 {
2830 arg1 = wxString_in_helper(obj0);
2831 if (arg1 == NULL) SWIG_fail;
2832 temp1 = True;
2833 }
2834 }
2835 {
2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
2837 result = wxGetUserHome((wxString const &)*arg1);
2838
2839 wxPyEndAllowThreads(__tstate);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 {
2843 #if wxUSE_UNICODE
2844 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2845 #else
2846 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2847 #endif
2848 }
2849 {
2850 if (temp1)
2851 delete arg1;
2852 }
2853 return resultobj;
2854 fail:
2855 {
2856 if (temp1)
2857 delete arg1;
2858 }
2859 return NULL;
2860 }
2861
2862
2863 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2864 PyObject *resultobj;
2865 unsigned long result;
2866 char *kwnames[] = {
2867 NULL
2868 };
2869
2870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2871 {
2872 PyThreadState* __tstate = wxPyBeginAllowThreads();
2873 result = (unsigned long)wxGetProcessId();
2874
2875 wxPyEndAllowThreads(__tstate);
2876 if (PyErr_Occurred()) SWIG_fail;
2877 }
2878 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2879 return resultobj;
2880 fail:
2881 return NULL;
2882 }
2883
2884
2885 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2886 PyObject *resultobj;
2887 char *kwnames[] = {
2888 NULL
2889 };
2890
2891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2892 {
2893 PyThreadState* __tstate = wxPyBeginAllowThreads();
2894 wxTrap();
2895
2896 wxPyEndAllowThreads(__tstate);
2897 if (PyErr_Occurred()) SWIG_fail;
2898 }
2899 Py_INCREF(Py_None); resultobj = Py_None;
2900 return resultobj;
2901 fail:
2902 return NULL;
2903 }
2904
2905
2906 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2907 PyObject *resultobj;
2908 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2909 wxString *arg1 = (wxString *) &arg1_defvalue ;
2910 wxString const &arg2_defvalue = wxPyEmptyString ;
2911 wxString *arg2 = (wxString *) &arg2_defvalue ;
2912 wxString const &arg3_defvalue = wxPyEmptyString ;
2913 wxString *arg3 = (wxString *) &arg3_defvalue ;
2914 wxString const &arg4_defvalue = wxPyEmptyString ;
2915 wxString *arg4 = (wxString *) &arg4_defvalue ;
2916 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2917 wxString *arg5 = (wxString *) &arg5_defvalue ;
2918 int arg6 = (int) 0 ;
2919 wxWindow *arg7 = (wxWindow *) NULL ;
2920 int arg8 = (int) -1 ;
2921 int arg9 = (int) -1 ;
2922 wxString result;
2923 bool temp1 = False ;
2924 bool temp2 = False ;
2925 bool temp3 = False ;
2926 bool temp4 = False ;
2927 bool temp5 = False ;
2928 PyObject * obj0 = 0 ;
2929 PyObject * obj1 = 0 ;
2930 PyObject * obj2 = 0 ;
2931 PyObject * obj3 = 0 ;
2932 PyObject * obj4 = 0 ;
2933 PyObject * obj5 = 0 ;
2934 PyObject * obj6 = 0 ;
2935 PyObject * obj7 = 0 ;
2936 PyObject * obj8 = 0 ;
2937 char *kwnames[] = {
2938 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2939 };
2940
2941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2942 if (obj0) {
2943 {
2944 arg1 = wxString_in_helper(obj0);
2945 if (arg1 == NULL) SWIG_fail;
2946 temp1 = True;
2947 }
2948 }
2949 if (obj1) {
2950 {
2951 arg2 = wxString_in_helper(obj1);
2952 if (arg2 == NULL) SWIG_fail;
2953 temp2 = True;
2954 }
2955 }
2956 if (obj2) {
2957 {
2958 arg3 = wxString_in_helper(obj2);
2959 if (arg3 == NULL) SWIG_fail;
2960 temp3 = True;
2961 }
2962 }
2963 if (obj3) {
2964 {
2965 arg4 = wxString_in_helper(obj3);
2966 if (arg4 == NULL) SWIG_fail;
2967 temp4 = True;
2968 }
2969 }
2970 if (obj4) {
2971 {
2972 arg5 = wxString_in_helper(obj4);
2973 if (arg5 == NULL) SWIG_fail;
2974 temp5 = True;
2975 }
2976 }
2977 if (obj5) {
2978 arg6 = (int) SWIG_AsInt(obj5);
2979 if (PyErr_Occurred()) SWIG_fail;
2980 }
2981 if (obj6) {
2982 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2984 }
2985 if (obj7) {
2986 arg8 = (int) SWIG_AsInt(obj7);
2987 if (PyErr_Occurred()) SWIG_fail;
2988 }
2989 if (obj8) {
2990 arg9 = (int) SWIG_AsInt(obj8);
2991 if (PyErr_Occurred()) SWIG_fail;
2992 }
2993 {
2994 if (!wxPyCheckForApp()) SWIG_fail;
2995 PyThreadState* __tstate = wxPyBeginAllowThreads();
2996 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2997
2998 wxPyEndAllowThreads(__tstate);
2999 if (PyErr_Occurred()) SWIG_fail;
3000 }
3001 {
3002 #if wxUSE_UNICODE
3003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3004 #else
3005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3006 #endif
3007 }
3008 {
3009 if (temp1)
3010 delete arg1;
3011 }
3012 {
3013 if (temp2)
3014 delete arg2;
3015 }
3016 {
3017 if (temp3)
3018 delete arg3;
3019 }
3020 {
3021 if (temp4)
3022 delete arg4;
3023 }
3024 {
3025 if (temp5)
3026 delete arg5;
3027 }
3028 return resultobj;
3029 fail:
3030 {
3031 if (temp1)
3032 delete arg1;
3033 }
3034 {
3035 if (temp2)
3036 delete arg2;
3037 }
3038 {
3039 if (temp3)
3040 delete arg3;
3041 }
3042 {
3043 if (temp4)
3044 delete arg4;
3045 }
3046 {
3047 if (temp5)
3048 delete arg5;
3049 }
3050 return NULL;
3051 }
3052
3053
3054 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3055 PyObject *resultobj;
3056 wxString *arg1 = 0 ;
3057 wxString *arg2 = 0 ;
3058 wxString const &arg3_defvalue = wxPyEmptyString ;
3059 wxString *arg3 = (wxString *) &arg3_defvalue ;
3060 wxWindow *arg4 = (wxWindow *) NULL ;
3061 wxString result;
3062 bool temp1 = False ;
3063 bool temp2 = False ;
3064 bool temp3 = False ;
3065 PyObject * obj0 = 0 ;
3066 PyObject * obj1 = 0 ;
3067 PyObject * obj2 = 0 ;
3068 PyObject * obj3 = 0 ;
3069 char *kwnames[] = {
3070 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3071 };
3072
3073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3074 {
3075 arg1 = wxString_in_helper(obj0);
3076 if (arg1 == NULL) SWIG_fail;
3077 temp1 = True;
3078 }
3079 {
3080 arg2 = wxString_in_helper(obj1);
3081 if (arg2 == NULL) SWIG_fail;
3082 temp2 = True;
3083 }
3084 if (obj2) {
3085 {
3086 arg3 = wxString_in_helper(obj2);
3087 if (arg3 == NULL) SWIG_fail;
3088 temp3 = True;
3089 }
3090 }
3091 if (obj3) {
3092 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3094 }
3095 {
3096 if (!wxPyCheckForApp()) SWIG_fail;
3097 PyThreadState* __tstate = wxPyBeginAllowThreads();
3098 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3099
3100 wxPyEndAllowThreads(__tstate);
3101 if (PyErr_Occurred()) SWIG_fail;
3102 }
3103 {
3104 #if wxUSE_UNICODE
3105 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3106 #else
3107 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3108 #endif
3109 }
3110 {
3111 if (temp1)
3112 delete arg1;
3113 }
3114 {
3115 if (temp2)
3116 delete arg2;
3117 }
3118 {
3119 if (temp3)
3120 delete arg3;
3121 }
3122 return resultobj;
3123 fail:
3124 {
3125 if (temp1)
3126 delete arg1;
3127 }
3128 {
3129 if (temp2)
3130 delete arg2;
3131 }
3132 {
3133 if (temp3)
3134 delete arg3;
3135 }
3136 return NULL;
3137 }
3138
3139
3140 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3141 PyObject *resultobj;
3142 wxString *arg1 = 0 ;
3143 wxString *arg2 = 0 ;
3144 wxString const &arg3_defvalue = wxPyEmptyString ;
3145 wxString *arg3 = (wxString *) &arg3_defvalue ;
3146 wxWindow *arg4 = (wxWindow *) NULL ;
3147 wxString result;
3148 bool temp1 = False ;
3149 bool temp2 = False ;
3150 bool temp3 = False ;
3151 PyObject * obj0 = 0 ;
3152 PyObject * obj1 = 0 ;
3153 PyObject * obj2 = 0 ;
3154 PyObject * obj3 = 0 ;
3155 char *kwnames[] = {
3156 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3157 };
3158
3159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3160 {
3161 arg1 = wxString_in_helper(obj0);
3162 if (arg1 == NULL) SWIG_fail;
3163 temp1 = True;
3164 }
3165 {
3166 arg2 = wxString_in_helper(obj1);
3167 if (arg2 == NULL) SWIG_fail;
3168 temp2 = True;
3169 }
3170 if (obj2) {
3171 {
3172 arg3 = wxString_in_helper(obj2);
3173 if (arg3 == NULL) SWIG_fail;
3174 temp3 = True;
3175 }
3176 }
3177 if (obj3) {
3178 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3180 }
3181 {
3182 if (!wxPyCheckForApp()) SWIG_fail;
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 }
3189 {
3190 #if wxUSE_UNICODE
3191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3192 #else
3193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3194 #endif
3195 }
3196 {
3197 if (temp1)
3198 delete arg1;
3199 }
3200 {
3201 if (temp2)
3202 delete arg2;
3203 }
3204 {
3205 if (temp3)
3206 delete arg3;
3207 }
3208 return resultobj;
3209 fail:
3210 {
3211 if (temp1)
3212 delete arg1;
3213 }
3214 {
3215 if (temp2)
3216 delete arg2;
3217 }
3218 {
3219 if (temp3)
3220 delete arg3;
3221 }
3222 return NULL;
3223 }
3224
3225
3226 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3227 PyObject *resultobj;
3228 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3229 wxString *arg1 = (wxString *) &arg1_defvalue ;
3230 wxString const &arg2_defvalue = wxPyEmptyString ;
3231 wxString *arg2 = (wxString *) &arg2_defvalue ;
3232 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3233 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3234 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3235 wxWindow *arg5 = (wxWindow *) NULL ;
3236 wxString result;
3237 bool temp1 = False ;
3238 bool temp2 = False ;
3239 wxPoint temp4 ;
3240 PyObject * obj0 = 0 ;
3241 PyObject * obj1 = 0 ;
3242 PyObject * obj2 = 0 ;
3243 PyObject * obj3 = 0 ;
3244 PyObject * obj4 = 0 ;
3245 char *kwnames[] = {
3246 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3247 };
3248
3249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3250 if (obj0) {
3251 {
3252 arg1 = wxString_in_helper(obj0);
3253 if (arg1 == NULL) SWIG_fail;
3254 temp1 = True;
3255 }
3256 }
3257 if (obj1) {
3258 {
3259 arg2 = wxString_in_helper(obj1);
3260 if (arg2 == NULL) SWIG_fail;
3261 temp2 = True;
3262 }
3263 }
3264 if (obj2) {
3265 arg3 = (long) SWIG_AsLong(obj2);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 }
3268 if (obj3) {
3269 {
3270 arg4 = &temp4;
3271 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3272 }
3273 }
3274 if (obj4) {
3275 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3277 }
3278 {
3279 if (!wxPyCheckForApp()) SWIG_fail;
3280 PyThreadState* __tstate = wxPyBeginAllowThreads();
3281 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3282
3283 wxPyEndAllowThreads(__tstate);
3284 if (PyErr_Occurred()) SWIG_fail;
3285 }
3286 {
3287 #if wxUSE_UNICODE
3288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3289 #else
3290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3291 #endif
3292 }
3293 {
3294 if (temp1)
3295 delete arg1;
3296 }
3297 {
3298 if (temp2)
3299 delete arg2;
3300 }
3301 return resultobj;
3302 fail:
3303 {
3304 if (temp1)
3305 delete arg1;
3306 }
3307 {
3308 if (temp2)
3309 delete arg2;
3310 }
3311 return NULL;
3312 }
3313
3314
3315 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3316 PyObject *resultobj;
3317 wxString *arg1 = 0 ;
3318 wxString const &arg2_defvalue = wxPyEmptyString ;
3319 wxString *arg2 = (wxString *) &arg2_defvalue ;
3320 wxString const &arg3_defvalue = wxPyEmptyString ;
3321 wxString *arg3 = (wxString *) &arg3_defvalue ;
3322 wxWindow *arg4 = (wxWindow *) NULL ;
3323 int arg5 = (int) -1 ;
3324 int arg6 = (int) -1 ;
3325 bool arg7 = (bool) True ;
3326 wxString result;
3327 bool temp1 = False ;
3328 bool temp2 = False ;
3329 bool temp3 = False ;
3330 PyObject * obj0 = 0 ;
3331 PyObject * obj1 = 0 ;
3332 PyObject * obj2 = 0 ;
3333 PyObject * obj3 = 0 ;
3334 PyObject * obj4 = 0 ;
3335 PyObject * obj5 = 0 ;
3336 PyObject * obj6 = 0 ;
3337 char *kwnames[] = {
3338 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3339 };
3340
3341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3342 {
3343 arg1 = wxString_in_helper(obj0);
3344 if (arg1 == NULL) SWIG_fail;
3345 temp1 = True;
3346 }
3347 if (obj1) {
3348 {
3349 arg2 = wxString_in_helper(obj1);
3350 if (arg2 == NULL) SWIG_fail;
3351 temp2 = True;
3352 }
3353 }
3354 if (obj2) {
3355 {
3356 arg3 = wxString_in_helper(obj2);
3357 if (arg3 == NULL) SWIG_fail;
3358 temp3 = True;
3359 }
3360 }
3361 if (obj3) {
3362 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3364 }
3365 if (obj4) {
3366 arg5 = (int) SWIG_AsInt(obj4);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 }
3369 if (obj5) {
3370 arg6 = (int) SWIG_AsInt(obj5);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 if (obj6) {
3374 arg7 = (bool) SWIG_AsBool(obj6);
3375 if (PyErr_Occurred()) SWIG_fail;
3376 }
3377 {
3378 if (!wxPyCheckForApp()) SWIG_fail;
3379 PyThreadState* __tstate = wxPyBeginAllowThreads();
3380 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3381
3382 wxPyEndAllowThreads(__tstate);
3383 if (PyErr_Occurred()) SWIG_fail;
3384 }
3385 {
3386 #if wxUSE_UNICODE
3387 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3388 #else
3389 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3390 #endif
3391 }
3392 {
3393 if (temp1)
3394 delete arg1;
3395 }
3396 {
3397 if (temp2)
3398 delete arg2;
3399 }
3400 {
3401 if (temp3)
3402 delete arg3;
3403 }
3404 return resultobj;
3405 fail:
3406 {
3407 if (temp1)
3408 delete arg1;
3409 }
3410 {
3411 if (temp2)
3412 delete arg2;
3413 }
3414 {
3415 if (temp3)
3416 delete arg3;
3417 }
3418 return NULL;
3419 }
3420
3421
3422 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj;
3424 wxString *arg1 = 0 ;
3425 wxString const &arg2_defvalue = wxPyEmptyString ;
3426 wxString *arg2 = (wxString *) &arg2_defvalue ;
3427 wxString const &arg3_defvalue = wxPyEmptyString ;
3428 wxString *arg3 = (wxString *) &arg3_defvalue ;
3429 wxWindow *arg4 = (wxWindow *) NULL ;
3430 wxString result;
3431 bool temp1 = False ;
3432 bool temp2 = False ;
3433 bool temp3 = False ;
3434 PyObject * obj0 = 0 ;
3435 PyObject * obj1 = 0 ;
3436 PyObject * obj2 = 0 ;
3437 PyObject * obj3 = 0 ;
3438 char *kwnames[] = {
3439 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3440 };
3441
3442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3443 {
3444 arg1 = wxString_in_helper(obj0);
3445 if (arg1 == NULL) SWIG_fail;
3446 temp1 = True;
3447 }
3448 if (obj1) {
3449 {
3450 arg2 = wxString_in_helper(obj1);
3451 if (arg2 == NULL) SWIG_fail;
3452 temp2 = True;
3453 }
3454 }
3455 if (obj2) {
3456 {
3457 arg3 = wxString_in_helper(obj2);
3458 if (arg3 == NULL) SWIG_fail;
3459 temp3 = True;
3460 }
3461 }
3462 if (obj3) {
3463 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3465 }
3466 {
3467 if (!wxPyCheckForApp()) SWIG_fail;
3468 PyThreadState* __tstate = wxPyBeginAllowThreads();
3469 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3470
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 {
3475 #if wxUSE_UNICODE
3476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3477 #else
3478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3479 #endif
3480 }
3481 {
3482 if (temp1)
3483 delete arg1;
3484 }
3485 {
3486 if (temp2)
3487 delete arg2;
3488 }
3489 {
3490 if (temp3)
3491 delete arg3;
3492 }
3493 return resultobj;
3494 fail:
3495 {
3496 if (temp1)
3497 delete arg1;
3498 }
3499 {
3500 if (temp2)
3501 delete arg2;
3502 }
3503 {
3504 if (temp3)
3505 delete arg3;
3506 }
3507 return NULL;
3508 }
3509
3510
3511 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3512 PyObject *resultobj;
3513 wxString *arg1 = 0 ;
3514 wxString *arg2 = 0 ;
3515 int arg3 ;
3516 wxString *arg4 = (wxString *) 0 ;
3517 wxWindow *arg5 = (wxWindow *) NULL ;
3518 int arg6 = (int) -1 ;
3519 int arg7 = (int) -1 ;
3520 bool arg8 = (bool) True ;
3521 int arg9 = (int) 150 ;
3522 int arg10 = (int) 200 ;
3523 wxString result;
3524 bool temp1 = False ;
3525 bool temp2 = False ;
3526 PyObject * obj0 = 0 ;
3527 PyObject * obj1 = 0 ;
3528 PyObject * obj2 = 0 ;
3529 PyObject * obj3 = 0 ;
3530 PyObject * obj4 = 0 ;
3531 PyObject * obj5 = 0 ;
3532 PyObject * obj6 = 0 ;
3533 PyObject * obj7 = 0 ;
3534 PyObject * obj8 = 0 ;
3535 char *kwnames[] = {
3536 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3537 };
3538
3539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3540 {
3541 arg1 = wxString_in_helper(obj0);
3542 if (arg1 == NULL) SWIG_fail;
3543 temp1 = True;
3544 }
3545 {
3546 arg2 = wxString_in_helper(obj1);
3547 if (arg2 == NULL) SWIG_fail;
3548 temp2 = True;
3549 }
3550 {
3551 arg3 = PyList_Size(obj2);
3552 arg4 = wxString_LIST_helper(obj2);
3553 if (arg4 == NULL) SWIG_fail;
3554 }
3555 if (obj3) {
3556 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3558 }
3559 if (obj4) {
3560 arg6 = (int) SWIG_AsInt(obj4);
3561 if (PyErr_Occurred()) SWIG_fail;
3562 }
3563 if (obj5) {
3564 arg7 = (int) SWIG_AsInt(obj5);
3565 if (PyErr_Occurred()) SWIG_fail;
3566 }
3567 if (obj6) {
3568 arg8 = (bool) SWIG_AsBool(obj6);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 if (obj7) {
3572 arg9 = (int) SWIG_AsInt(obj7);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 if (obj8) {
3576 arg10 = (int) SWIG_AsInt(obj8);
3577 if (PyErr_Occurred()) SWIG_fail;
3578 }
3579 {
3580 if (!wxPyCheckForApp()) SWIG_fail;
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3583
3584 wxPyEndAllowThreads(__tstate);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 }
3587 {
3588 #if wxUSE_UNICODE
3589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3590 #else
3591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3592 #endif
3593 }
3594 {
3595 if (temp1)
3596 delete arg1;
3597 }
3598 {
3599 if (temp2)
3600 delete arg2;
3601 }
3602 {
3603 if (arg4) delete [] arg4;
3604 }
3605 return resultobj;
3606 fail:
3607 {
3608 if (temp1)
3609 delete arg1;
3610 }
3611 {
3612 if (temp2)
3613 delete arg2;
3614 }
3615 {
3616 if (arg4) delete [] arg4;
3617 }
3618 return NULL;
3619 }
3620
3621
3622 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3623 PyObject *resultobj;
3624 wxString *arg1 = 0 ;
3625 wxString *arg2 = 0 ;
3626 int arg3 ;
3627 wxString *arg4 = (wxString *) 0 ;
3628 wxWindow *arg5 = (wxWindow *) NULL ;
3629 int arg6 = (int) -1 ;
3630 int arg7 = (int) -1 ;
3631 bool arg8 = (bool) True ;
3632 int arg9 = (int) 150 ;
3633 int arg10 = (int) 200 ;
3634 int result;
3635 bool temp1 = False ;
3636 bool temp2 = False ;
3637 PyObject * obj0 = 0 ;
3638 PyObject * obj1 = 0 ;
3639 PyObject * obj2 = 0 ;
3640 PyObject * obj3 = 0 ;
3641 PyObject * obj4 = 0 ;
3642 PyObject * obj5 = 0 ;
3643 PyObject * obj6 = 0 ;
3644 PyObject * obj7 = 0 ;
3645 PyObject * obj8 = 0 ;
3646 char *kwnames[] = {
3647 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3648 };
3649
3650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3651 {
3652 arg1 = wxString_in_helper(obj0);
3653 if (arg1 == NULL) SWIG_fail;
3654 temp1 = True;
3655 }
3656 {
3657 arg2 = wxString_in_helper(obj1);
3658 if (arg2 == NULL) SWIG_fail;
3659 temp2 = True;
3660 }
3661 {
3662 arg3 = PyList_Size(obj2);
3663 arg4 = wxString_LIST_helper(obj2);
3664 if (arg4 == NULL) SWIG_fail;
3665 }
3666 if (obj3) {
3667 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3669 }
3670 if (obj4) {
3671 arg6 = (int) SWIG_AsInt(obj4);
3672 if (PyErr_Occurred()) SWIG_fail;
3673 }
3674 if (obj5) {
3675 arg7 = (int) SWIG_AsInt(obj5);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 if (obj6) {
3679 arg8 = (bool) SWIG_AsBool(obj6);
3680 if (PyErr_Occurred()) SWIG_fail;
3681 }
3682 if (obj7) {
3683 arg9 = (int) SWIG_AsInt(obj7);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 if (obj8) {
3687 arg10 = (int) SWIG_AsInt(obj8);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 {
3691 if (!wxPyCheckForApp()) SWIG_fail;
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3694
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 resultobj = SWIG_FromInt((int)result);
3699 {
3700 if (temp1)
3701 delete arg1;
3702 }
3703 {
3704 if (temp2)
3705 delete arg2;
3706 }
3707 {
3708 if (arg4) delete [] arg4;
3709 }
3710 return resultobj;
3711 fail:
3712 {
3713 if (temp1)
3714 delete arg1;
3715 }
3716 {
3717 if (temp2)
3718 delete arg2;
3719 }
3720 {
3721 if (arg4) delete [] arg4;
3722 }
3723 return NULL;
3724 }
3725
3726
3727 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj;
3729 wxString *arg1 = 0 ;
3730 wxString const &arg2_defvalue = wxPyEmptyString ;
3731 wxString *arg2 = (wxString *) &arg2_defvalue ;
3732 int arg3 = (int) wxOK|wxCENTRE ;
3733 wxWindow *arg4 = (wxWindow *) NULL ;
3734 int arg5 = (int) -1 ;
3735 int arg6 = (int) -1 ;
3736 int result;
3737 bool temp1 = False ;
3738 bool temp2 = False ;
3739 PyObject * obj0 = 0 ;
3740 PyObject * obj1 = 0 ;
3741 PyObject * obj2 = 0 ;
3742 PyObject * obj3 = 0 ;
3743 PyObject * obj4 = 0 ;
3744 PyObject * obj5 = 0 ;
3745 char *kwnames[] = {
3746 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3747 };
3748
3749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3750 {
3751 arg1 = wxString_in_helper(obj0);
3752 if (arg1 == NULL) SWIG_fail;
3753 temp1 = True;
3754 }
3755 if (obj1) {
3756 {
3757 arg2 = wxString_in_helper(obj1);
3758 if (arg2 == NULL) SWIG_fail;
3759 temp2 = True;
3760 }
3761 }
3762 if (obj2) {
3763 arg3 = (int) SWIG_AsInt(obj2);
3764 if (PyErr_Occurred()) SWIG_fail;
3765 }
3766 if (obj3) {
3767 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3769 }
3770 if (obj4) {
3771 arg5 = (int) SWIG_AsInt(obj4);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 if (obj5) {
3775 arg6 = (int) SWIG_AsInt(obj5);
3776 if (PyErr_Occurred()) SWIG_fail;
3777 }
3778 {
3779 if (!wxPyCheckForApp()) SWIG_fail;
3780 PyThreadState* __tstate = wxPyBeginAllowThreads();
3781 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3782
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 resultobj = SWIG_FromInt((int)result);
3787 {
3788 if (temp1)
3789 delete arg1;
3790 }
3791 {
3792 if (temp2)
3793 delete arg2;
3794 }
3795 return resultobj;
3796 fail:
3797 {
3798 if (temp1)
3799 delete arg1;
3800 }
3801 {
3802 if (temp2)
3803 delete arg2;
3804 }
3805 return NULL;
3806 }
3807
3808
3809 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxString *arg1 = 0 ;
3812 wxString *arg2 = 0 ;
3813 wxString *arg3 = 0 ;
3814 long arg4 ;
3815 long arg5 = (long) 0 ;
3816 long arg6 = (long) 100 ;
3817 wxWindow *arg7 = (wxWindow *) NULL ;
3818 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3819 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3820 long result;
3821 bool temp1 = False ;
3822 bool temp2 = False ;
3823 bool temp3 = False ;
3824 wxPoint temp8 ;
3825 PyObject * obj0 = 0 ;
3826 PyObject * obj1 = 0 ;
3827 PyObject * obj2 = 0 ;
3828 PyObject * obj3 = 0 ;
3829 PyObject * obj4 = 0 ;
3830 PyObject * obj5 = 0 ;
3831 PyObject * obj6 = 0 ;
3832 PyObject * obj7 = 0 ;
3833 char *kwnames[] = {
3834 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3835 };
3836
3837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3838 {
3839 arg1 = wxString_in_helper(obj0);
3840 if (arg1 == NULL) SWIG_fail;
3841 temp1 = True;
3842 }
3843 {
3844 arg2 = wxString_in_helper(obj1);
3845 if (arg2 == NULL) SWIG_fail;
3846 temp2 = True;
3847 }
3848 {
3849 arg3 = wxString_in_helper(obj2);
3850 if (arg3 == NULL) SWIG_fail;
3851 temp3 = True;
3852 }
3853 arg4 = (long) SWIG_AsLong(obj3);
3854 if (PyErr_Occurred()) SWIG_fail;
3855 if (obj4) {
3856 arg5 = (long) SWIG_AsLong(obj4);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 if (obj5) {
3860 arg6 = (long) SWIG_AsLong(obj5);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 if (obj6) {
3864 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3866 }
3867 if (obj7) {
3868 {
3869 arg8 = &temp8;
3870 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3871 }
3872 }
3873 {
3874 if (!wxPyCheckForApp()) SWIG_fail;
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3877
3878 wxPyEndAllowThreads(__tstate);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 }
3881 resultobj = SWIG_FromLong((long)result);
3882 {
3883 if (temp1)
3884 delete arg1;
3885 }
3886 {
3887 if (temp2)
3888 delete arg2;
3889 }
3890 {
3891 if (temp3)
3892 delete arg3;
3893 }
3894 return resultobj;
3895 fail:
3896 {
3897 if (temp1)
3898 delete arg1;
3899 }
3900 {
3901 if (temp2)
3902 delete arg2;
3903 }
3904 {
3905 if (temp3)
3906 delete arg3;
3907 }
3908 return NULL;
3909 }
3910
3911
3912 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3913 PyObject *resultobj;
3914 bool result;
3915 char *kwnames[] = {
3916 NULL
3917 };
3918
3919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3920 {
3921 if (!wxPyCheckForApp()) SWIG_fail;
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 result = (bool)wxColourDisplay();
3924
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
3928 {
3929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3930 }
3931 return resultobj;
3932 fail:
3933 return NULL;
3934 }
3935
3936
3937 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 int result;
3940 char *kwnames[] = {
3941 NULL
3942 };
3943
3944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3945 {
3946 if (!wxPyCheckForApp()) SWIG_fail;
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 result = (int)wxDisplayDepth();
3949
3950 wxPyEndAllowThreads(__tstate);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 resultobj = SWIG_FromInt((int)result);
3954 return resultobj;
3955 fail:
3956 return NULL;
3957 }
3958
3959
3960 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3961 PyObject *resultobj;
3962 int result;
3963 char *kwnames[] = {
3964 NULL
3965 };
3966
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3968 {
3969 if (!wxPyCheckForApp()) SWIG_fail;
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 result = (int)wxGetDisplayDepth();
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 resultobj = SWIG_FromInt((int)result);
3977 return resultobj;
3978 fail:
3979 return NULL;
3980 }
3981
3982
3983 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 int *arg1 = (int *) 0 ;
3986 int *arg2 = (int *) 0 ;
3987 int temp1 ;
3988 int temp2 ;
3989 char *kwnames[] = {
3990 NULL
3991 };
3992
3993 arg1 = &temp1;
3994 arg2 = &temp2;
3995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3996 {
3997 if (!wxPyCheckForApp()) SWIG_fail;
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 wxDisplaySize(arg1,arg2);
4000
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 Py_INCREF(Py_None); resultobj = Py_None;
4005 {
4006 PyObject *o = PyInt_FromLong((long) (*arg1));
4007 resultobj = t_output_helper(resultobj,o);
4008 }
4009 {
4010 PyObject *o = PyInt_FromLong((long) (*arg2));
4011 resultobj = t_output_helper(resultobj,o);
4012 }
4013 return resultobj;
4014 fail:
4015 return NULL;
4016 }
4017
4018
4019 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj;
4021 wxSize result;
4022 char *kwnames[] = {
4023 NULL
4024 };
4025
4026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4027 {
4028 if (!wxPyCheckForApp()) SWIG_fail;
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 result = wxGetDisplaySize();
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 {
4036 wxSize * resultptr;
4037 resultptr = new wxSize((wxSize &) result);
4038 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4039 }
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj;
4048 int *arg1 = (int *) 0 ;
4049 int *arg2 = (int *) 0 ;
4050 int temp1 ;
4051 int temp2 ;
4052 char *kwnames[] = {
4053 NULL
4054 };
4055
4056 arg1 = &temp1;
4057 arg2 = &temp2;
4058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4059 {
4060 if (!wxPyCheckForApp()) SWIG_fail;
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 wxDisplaySizeMM(arg1,arg2);
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 Py_INCREF(Py_None); resultobj = Py_None;
4068 {
4069 PyObject *o = PyInt_FromLong((long) (*arg1));
4070 resultobj = t_output_helper(resultobj,o);
4071 }
4072 {
4073 PyObject *o = PyInt_FromLong((long) (*arg2));
4074 resultobj = t_output_helper(resultobj,o);
4075 }
4076 return resultobj;
4077 fail:
4078 return NULL;
4079 }
4080
4081
4082 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4083 PyObject *resultobj;
4084 wxSize result;
4085 char *kwnames[] = {
4086 NULL
4087 };
4088
4089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4090 {
4091 if (!wxPyCheckForApp()) SWIG_fail;
4092 PyThreadState* __tstate = wxPyBeginAllowThreads();
4093 result = wxGetDisplaySizeMM();
4094
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 {
4099 wxSize * resultptr;
4100 resultptr = new wxSize((wxSize &) result);
4101 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4102 }
4103 return resultobj;
4104 fail:
4105 return NULL;
4106 }
4107
4108
4109 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj;
4111 int *arg1 = (int *) 0 ;
4112 int *arg2 = (int *) 0 ;
4113 int *arg3 = (int *) 0 ;
4114 int *arg4 = (int *) 0 ;
4115 int temp1 ;
4116 int temp2 ;
4117 int temp3 ;
4118 int temp4 ;
4119 char *kwnames[] = {
4120 NULL
4121 };
4122
4123 arg1 = &temp1;
4124 arg2 = &temp2;
4125 arg3 = &temp3;
4126 arg4 = &temp4;
4127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4128 {
4129 if (!wxPyCheckForApp()) SWIG_fail;
4130 PyThreadState* __tstate = wxPyBeginAllowThreads();
4131 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4132
4133 wxPyEndAllowThreads(__tstate);
4134 if (PyErr_Occurred()) SWIG_fail;
4135 }
4136 Py_INCREF(Py_None); resultobj = Py_None;
4137 {
4138 PyObject *o = PyInt_FromLong((long) (*arg1));
4139 resultobj = t_output_helper(resultobj,o);
4140 }
4141 {
4142 PyObject *o = PyInt_FromLong((long) (*arg2));
4143 resultobj = t_output_helper(resultobj,o);
4144 }
4145 {
4146 PyObject *o = PyInt_FromLong((long) (*arg3));
4147 resultobj = t_output_helper(resultobj,o);
4148 }
4149 {
4150 PyObject *o = PyInt_FromLong((long) (*arg4));
4151 resultobj = t_output_helper(resultobj,o);
4152 }
4153 return resultobj;
4154 fail:
4155 return NULL;
4156 }
4157
4158
4159 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4160 PyObject *resultobj;
4161 wxRect result;
4162 char *kwnames[] = {
4163 NULL
4164 };
4165
4166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4167 {
4168 if (!wxPyCheckForApp()) SWIG_fail;
4169 PyThreadState* __tstate = wxPyBeginAllowThreads();
4170 result = wxGetClientDisplayRect();
4171
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 {
4176 wxRect * resultptr;
4177 resultptr = new wxRect((wxRect &) result);
4178 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4179 }
4180 return resultobj;
4181 fail:
4182 return NULL;
4183 }
4184
4185
4186 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj;
4188 wxCursor *arg1 = 0 ;
4189 PyObject * obj0 = 0 ;
4190 char *kwnames[] = {
4191 (char *) "cursor", NULL
4192 };
4193
4194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4196 SWIG_POINTER_EXCEPTION | 0)) == -1)
4197 SWIG_fail;
4198 if (arg1 == NULL) {
4199 PyErr_SetString(PyExc_TypeError,"null reference");
4200 SWIG_fail;
4201 }
4202 {
4203 if (!wxPyCheckForApp()) SWIG_fail;
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 wxSetCursor(*arg1);
4206
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
4210 Py_INCREF(Py_None); resultobj = Py_None;
4211 return resultobj;
4212 fail:
4213 return NULL;
4214 }
4215
4216
4217 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4218 PyObject *resultobj;
4219 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4220 PyObject * obj0 = 0 ;
4221 char *kwnames[] = {
4222 (char *) "cursor", NULL
4223 };
4224
4225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4226 if (obj0) {
4227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4229 }
4230 {
4231 if (!wxPyCheckForApp()) SWIG_fail;
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 wxBeginBusyCursor(arg1);
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) SWIG_fail;
4237 }
4238 Py_INCREF(Py_None); resultobj = Py_None;
4239 return resultobj;
4240 fail:
4241 return NULL;
4242 }
4243
4244
4245 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject *resultobj;
4247 wxWindow *result;
4248 char *kwnames[] = {
4249 NULL
4250 };
4251
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4253 {
4254 if (!wxPyCheckForApp()) SWIG_fail;
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 result = (wxWindow *)wxGetActiveWindow();
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 {
4262 resultobj = wxPyMake_wxObject(result, 0);
4263 }
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj;
4272 wxPoint *arg1 = 0 ;
4273 wxWindow *result;
4274 wxPoint temp1 ;
4275 PyObject * obj0 = 0 ;
4276 char *kwnames[] = {
4277 (char *) "pt", NULL
4278 };
4279
4280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4281 {
4282 arg1 = &temp1;
4283 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4284 }
4285 {
4286 if (!wxPyCheckForApp()) SWIG_fail;
4287 PyThreadState* __tstate = wxPyBeginAllowThreads();
4288 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4289
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 {
4294 resultobj = wxPyMake_wxObject(result, 0);
4295 }
4296 return resultobj;
4297 fail:
4298 return NULL;
4299 }
4300
4301
4302 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4303 PyObject *resultobj;
4304 wxPoint *arg1 = 0 ;
4305 wxWindow *result;
4306 wxPoint temp1 ;
4307 PyObject * obj0 = 0 ;
4308 char *kwnames[] = {
4309 (char *) "pt", NULL
4310 };
4311
4312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4313 {
4314 arg1 = &temp1;
4315 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4316 }
4317 {
4318 if (!wxPyCheckForApp()) SWIG_fail;
4319 PyThreadState* __tstate = wxPyBeginAllowThreads();
4320 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4321
4322 wxPyEndAllowThreads(__tstate);
4323 if (PyErr_Occurred()) SWIG_fail;
4324 }
4325 {
4326 resultobj = wxPyMake_wxObject(result, 0);
4327 }
4328 return resultobj;
4329 fail:
4330 return NULL;
4331 }
4332
4333
4334 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4335 PyObject *resultobj;
4336 wxWindow *arg1 = (wxWindow *) 0 ;
4337 wxWindow *result;
4338 PyObject * obj0 = 0 ;
4339 char *kwnames[] = {
4340 (char *) "win", NULL
4341 };
4342
4343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4346 {
4347 if (!wxPyCheckForApp()) SWIG_fail;
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 result = (wxWindow *)wxGetTopLevelParent(arg1);
4350
4351 wxPyEndAllowThreads(__tstate);
4352 if (PyErr_Occurred()) SWIG_fail;
4353 }
4354 {
4355 resultobj = wxPyMake_wxObject(result, 0);
4356 }
4357 return resultobj;
4358 fail:
4359 return NULL;
4360 }
4361
4362
4363 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4364 PyObject *resultobj;
4365 int arg1 ;
4366 bool result;
4367 PyObject * obj0 = 0 ;
4368 char *kwnames[] = {
4369 (char *) "key", NULL
4370 };
4371
4372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4373 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4374 if (PyErr_Occurred()) SWIG_fail;
4375 {
4376 if (!wxPyCheckForApp()) SWIG_fail;
4377 PyThreadState* __tstate = wxPyBeginAllowThreads();
4378 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4379
4380 wxPyEndAllowThreads(__tstate);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 }
4383 {
4384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4385 }
4386 return resultobj;
4387 fail:
4388 return NULL;
4389 }
4390
4391
4392 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4393 PyObject *resultobj;
4394 char *kwnames[] = {
4395 NULL
4396 };
4397
4398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4399 {
4400 if (!wxPyCheckForApp()) SWIG_fail;
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 wxWakeUpMainThread();
4403
4404 wxPyEndAllowThreads(__tstate);
4405 if (PyErr_Occurred()) SWIG_fail;
4406 }
4407 Py_INCREF(Py_None); resultobj = Py_None;
4408 return resultobj;
4409 fail:
4410 return NULL;
4411 }
4412
4413
4414 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4415 PyObject *resultobj;
4416 char *kwnames[] = {
4417 NULL
4418 };
4419
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4421 {
4422 if (!wxPyCheckForApp()) SWIG_fail;
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 wxMutexGuiEnter();
4425
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 Py_INCREF(Py_None); resultobj = Py_None;
4430 return resultobj;
4431 fail:
4432 return NULL;
4433 }
4434
4435
4436 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4437 PyObject *resultobj;
4438 char *kwnames[] = {
4439 NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4443 {
4444 if (!wxPyCheckForApp()) SWIG_fail;
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 wxMutexGuiLeave();
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 Py_INCREF(Py_None); resultobj = Py_None;
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxMutexGuiLocker *result;
4461 char *kwnames[] = {
4462 NULL
4463 };
4464
4465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4466 {
4467 if (!wxPyCheckForApp()) SWIG_fail;
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4470
4471 wxPyEndAllowThreads(__tstate);
4472 if (PyErr_Occurred()) SWIG_fail;
4473 }
4474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4475 return resultobj;
4476 fail:
4477 return NULL;
4478 }
4479
4480
4481 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj;
4483 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4484 PyObject * obj0 = 0 ;
4485 char *kwnames[] = {
4486 (char *) "self", NULL
4487 };
4488
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4492 {
4493 PyThreadState* __tstate = wxPyBeginAllowThreads();
4494 delete arg1;
4495
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 Py_INCREF(Py_None); resultobj = Py_None;
4500 return resultobj;
4501 fail:
4502 return NULL;
4503 }
4504
4505
4506 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4507 PyObject *obj;
4508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4509 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4510 Py_INCREF(obj);
4511 return Py_BuildValue((char *)"");
4512 }
4513 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj;
4515 bool result;
4516 char *kwnames[] = {
4517 NULL
4518 };
4519
4520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4521 {
4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
4523 result = (bool)wxThread_IsMain();
4524
4525 wxPyEndAllowThreads(__tstate);
4526 if (PyErr_Occurred()) SWIG_fail;
4527 }
4528 {
4529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4530 }
4531 return resultobj;
4532 fail:
4533 return NULL;
4534 }
4535
4536
4537 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4538 PyObject *resultobj;
4539 wxString *arg1 = 0 ;
4540 wxToolTip *result;
4541 bool temp1 = False ;
4542 PyObject * obj0 = 0 ;
4543 char *kwnames[] = {
4544 (char *) "tip", NULL
4545 };
4546
4547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4548 {
4549 arg1 = wxString_in_helper(obj0);
4550 if (arg1 == NULL) SWIG_fail;
4551 temp1 = True;
4552 }
4553 {
4554 if (!wxPyCheckForApp()) SWIG_fail;
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4557
4558 wxPyEndAllowThreads(__tstate);
4559 if (PyErr_Occurred()) SWIG_fail;
4560 }
4561 {
4562 resultobj = wxPyMake_wxObject(result, 1);
4563 }
4564 {
4565 if (temp1)
4566 delete arg1;
4567 }
4568 return resultobj;
4569 fail:
4570 {
4571 if (temp1)
4572 delete arg1;
4573 }
4574 return NULL;
4575 }
4576
4577
4578 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4579 PyObject *resultobj;
4580 wxToolTip *arg1 = (wxToolTip *) 0 ;
4581 wxString *arg2 = 0 ;
4582 bool temp2 = False ;
4583 PyObject * obj0 = 0 ;
4584 PyObject * obj1 = 0 ;
4585 char *kwnames[] = {
4586 (char *) "self",(char *) "tip", NULL
4587 };
4588
4589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4592 {
4593 arg2 = wxString_in_helper(obj1);
4594 if (arg2 == NULL) SWIG_fail;
4595 temp2 = True;
4596 }
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 (arg1)->SetTip((wxString const &)*arg2);
4600
4601 wxPyEndAllowThreads(__tstate);
4602 if (PyErr_Occurred()) SWIG_fail;
4603 }
4604 Py_INCREF(Py_None); resultobj = Py_None;
4605 {
4606 if (temp2)
4607 delete arg2;
4608 }
4609 return resultobj;
4610 fail:
4611 {
4612 if (temp2)
4613 delete arg2;
4614 }
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj;
4621 wxToolTip *arg1 = (wxToolTip *) 0 ;
4622 wxString result;
4623 PyObject * obj0 = 0 ;
4624 char *kwnames[] = {
4625 (char *) "self", NULL
4626 };
4627
4628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4631 {
4632 PyThreadState* __tstate = wxPyBeginAllowThreads();
4633 result = (arg1)->GetTip();
4634
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 {
4639 #if wxUSE_UNICODE
4640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4641 #else
4642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4643 #endif
4644 }
4645 return resultobj;
4646 fail:
4647 return NULL;
4648 }
4649
4650
4651 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxToolTip *arg1 = (wxToolTip *) 0 ;
4654 wxWindow *result;
4655 PyObject * obj0 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 result = (wxWindow *)(arg1)->GetWindow();
4666
4667 wxPyEndAllowThreads(__tstate);
4668 if (PyErr_Occurred()) SWIG_fail;
4669 }
4670 {
4671 resultobj = wxPyMake_wxObject(result, 0);
4672 }
4673 return resultobj;
4674 fail:
4675 return NULL;
4676 }
4677
4678
4679 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 bool arg1 ;
4682 PyObject * obj0 = 0 ;
4683 char *kwnames[] = {
4684 (char *) "flag", NULL
4685 };
4686
4687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4688 arg1 = (bool) SWIG_AsBool(obj0);
4689 if (PyErr_Occurred()) SWIG_fail;
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 wxToolTip::Enable(arg1);
4693
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) SWIG_fail;
4696 }
4697 Py_INCREF(Py_None); resultobj = Py_None;
4698 return resultobj;
4699 fail:
4700 return NULL;
4701 }
4702
4703
4704 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4705 PyObject *resultobj;
4706 long arg1 ;
4707 PyObject * obj0 = 0 ;
4708 char *kwnames[] = {
4709 (char *) "milliseconds", NULL
4710 };
4711
4712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4713 arg1 = (long) SWIG_AsLong(obj0);
4714 if (PyErr_Occurred()) SWIG_fail;
4715 {
4716 PyThreadState* __tstate = wxPyBeginAllowThreads();
4717 wxToolTip::SetDelay(arg1);
4718
4719 wxPyEndAllowThreads(__tstate);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 }
4722 Py_INCREF(Py_None); resultobj = Py_None;
4723 return resultobj;
4724 fail:
4725 return NULL;
4726 }
4727
4728
4729 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4730 PyObject *obj;
4731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4732 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4733 Py_INCREF(obj);
4734 return Py_BuildValue((char *)"");
4735 }
4736 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4737 PyObject *resultobj;
4738 wxWindow *arg1 = (wxWindow *) 0 ;
4739 wxSize *arg2 = 0 ;
4740 wxCaret *result;
4741 wxSize temp2 ;
4742 PyObject * obj0 = 0 ;
4743 PyObject * obj1 = 0 ;
4744 char *kwnames[] = {
4745 (char *) "window",(char *) "size", NULL
4746 };
4747
4748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4751 {
4752 arg2 = &temp2;
4753 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4754 }
4755 {
4756 if (!wxPyCheckForApp()) SWIG_fail;
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4759
4760 wxPyEndAllowThreads(__tstate);
4761 if (PyErr_Occurred()) SWIG_fail;
4762 }
4763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4764 return resultobj;
4765 fail:
4766 return NULL;
4767 }
4768
4769
4770 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4771 PyObject *resultobj;
4772 wxCaret *arg1 = (wxCaret *) 0 ;
4773 PyObject * obj0 = 0 ;
4774 char *kwnames[] = {
4775 (char *) "self", NULL
4776 };
4777
4778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4781 {
4782 PyThreadState* __tstate = wxPyBeginAllowThreads();
4783 delete arg1;
4784
4785 wxPyEndAllowThreads(__tstate);
4786 if (PyErr_Occurred()) SWIG_fail;
4787 }
4788 Py_INCREF(Py_None); resultobj = Py_None;
4789 return resultobj;
4790 fail:
4791 return NULL;
4792 }
4793
4794
4795 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4796 PyObject *resultobj;
4797 wxCaret *arg1 = (wxCaret *) 0 ;
4798 bool result;
4799 PyObject * obj0 = 0 ;
4800 char *kwnames[] = {
4801 (char *) "self", NULL
4802 };
4803
4804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (bool)(arg1)->IsOk();
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 {
4815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4816 }
4817 return resultobj;
4818 fail:
4819 return NULL;
4820 }
4821
4822
4823 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4824 PyObject *resultobj;
4825 wxCaret *arg1 = (wxCaret *) 0 ;
4826 bool result;
4827 PyObject * obj0 = 0 ;
4828 char *kwnames[] = {
4829 (char *) "self", NULL
4830 };
4831
4832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4835 {
4836 PyThreadState* __tstate = wxPyBeginAllowThreads();
4837 result = (bool)(arg1)->IsVisible();
4838
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 {
4843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4844 }
4845 return resultobj;
4846 fail:
4847 return NULL;
4848 }
4849
4850
4851 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4852 PyObject *resultobj;
4853 wxCaret *arg1 = (wxCaret *) 0 ;
4854 wxPoint result;
4855 PyObject * obj0 = 0 ;
4856 char *kwnames[] = {
4857 (char *) "self", NULL
4858 };
4859
4860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (arg1)->GetPosition();
4866
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 {
4871 wxPoint * resultptr;
4872 resultptr = new wxPoint((wxPoint &) result);
4873 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4874 }
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4882 PyObject *resultobj;
4883 wxCaret *arg1 = (wxCaret *) 0 ;
4884 int *arg2 = (int *) 0 ;
4885 int *arg3 = (int *) 0 ;
4886 int temp2 ;
4887 int temp3 ;
4888 PyObject * obj0 = 0 ;
4889 char *kwnames[] = {
4890 (char *) "self", NULL
4891 };
4892
4893 arg2 = &temp2;
4894 arg3 = &temp3;
4895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 (arg1)->GetPosition(arg2,arg3);
4901
4902 wxPyEndAllowThreads(__tstate);
4903 if (PyErr_Occurred()) SWIG_fail;
4904 }
4905 Py_INCREF(Py_None); resultobj = Py_None;
4906 {
4907 PyObject *o = PyInt_FromLong((long) (*arg2));
4908 resultobj = t_output_helper(resultobj,o);
4909 }
4910 {
4911 PyObject *o = PyInt_FromLong((long) (*arg3));
4912 resultobj = t_output_helper(resultobj,o);
4913 }
4914 return resultobj;
4915 fail:
4916 return NULL;
4917 }
4918
4919
4920 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4921 PyObject *resultobj;
4922 wxCaret *arg1 = (wxCaret *) 0 ;
4923 wxSize result;
4924 PyObject * obj0 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 result = (arg1)->GetSize();
4935
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 {
4940 wxSize * resultptr;
4941 resultptr = new wxSize((wxSize &) result);
4942 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4943 }
4944 return resultobj;
4945 fail:
4946 return NULL;
4947 }
4948
4949
4950 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4951 PyObject *resultobj;
4952 wxCaret *arg1 = (wxCaret *) 0 ;
4953 int *arg2 = (int *) 0 ;
4954 int *arg3 = (int *) 0 ;
4955 int temp2 ;
4956 int temp3 ;
4957 PyObject * obj0 = 0 ;
4958 char *kwnames[] = {
4959 (char *) "self", NULL
4960 };
4961
4962 arg2 = &temp2;
4963 arg3 = &temp3;
4964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4967 {
4968 PyThreadState* __tstate = wxPyBeginAllowThreads();
4969 (arg1)->GetSize(arg2,arg3);
4970
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 Py_INCREF(Py_None); resultobj = Py_None;
4975 {
4976 PyObject *o = PyInt_FromLong((long) (*arg2));
4977 resultobj = t_output_helper(resultobj,o);
4978 }
4979 {
4980 PyObject *o = PyInt_FromLong((long) (*arg3));
4981 resultobj = t_output_helper(resultobj,o);
4982 }
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj;
4991 wxCaret *arg1 = (wxCaret *) 0 ;
4992 wxWindow *result;
4993 PyObject * obj0 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5001 {
5002 PyThreadState* __tstate = wxPyBeginAllowThreads();
5003 result = (wxWindow *)(arg1)->GetWindow();
5004
5005 wxPyEndAllowThreads(__tstate);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 {
5009 resultobj = wxPyMake_wxObject(result, 0);
5010 }
5011 return resultobj;
5012 fail:
5013 return NULL;
5014 }
5015
5016
5017 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
5018 PyObject *resultobj;
5019 wxCaret *arg1 = (wxCaret *) 0 ;
5020 int arg2 ;
5021 int arg3 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 PyObject * obj2 = 0 ;
5025 char *kwnames[] = {
5026 (char *) "self",(char *) "x",(char *) "y", NULL
5027 };
5028
5029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5032 arg2 = (int) SWIG_AsInt(obj1);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 arg3 = (int) SWIG_AsInt(obj2);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 (arg1)->Move(arg2,arg3);
5039
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 Py_INCREF(Py_None); resultobj = Py_None;
5044 return resultobj;
5045 fail:
5046 return NULL;
5047 }
5048
5049
5050 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
5051 PyObject *resultobj;
5052 wxCaret *arg1 = (wxCaret *) 0 ;
5053 wxPoint *arg2 = 0 ;
5054 wxPoint temp2 ;
5055 PyObject * obj0 = 0 ;
5056 PyObject * obj1 = 0 ;
5057 char *kwnames[] = {
5058 (char *) "self",(char *) "pt", NULL
5059 };
5060
5061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5064 {
5065 arg2 = &temp2;
5066 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5067 }
5068 {
5069 PyThreadState* __tstate = wxPyBeginAllowThreads();
5070 (arg1)->Move((wxPoint const &)*arg2);
5071
5072 wxPyEndAllowThreads(__tstate);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 }
5075 Py_INCREF(Py_None); resultobj = Py_None;
5076 return resultobj;
5077 fail:
5078 return NULL;
5079 }
5080
5081
5082 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5083 PyObject *resultobj;
5084 wxCaret *arg1 = (wxCaret *) 0 ;
5085 int arg2 ;
5086 int arg3 ;
5087 PyObject * obj0 = 0 ;
5088 PyObject * obj1 = 0 ;
5089 PyObject * obj2 = 0 ;
5090 char *kwnames[] = {
5091 (char *) "self",(char *) "width",(char *) "height", NULL
5092 };
5093
5094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5097 arg2 = (int) SWIG_AsInt(obj1);
5098 if (PyErr_Occurred()) SWIG_fail;
5099 arg3 = (int) SWIG_AsInt(obj2);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 (arg1)->SetSize(arg2,arg3);
5104
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 Py_INCREF(Py_None); resultobj = Py_None;
5109 return resultobj;
5110 fail:
5111 return NULL;
5112 }
5113
5114
5115 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5116 PyObject *resultobj;
5117 wxCaret *arg1 = (wxCaret *) 0 ;
5118 wxSize *arg2 = 0 ;
5119 wxSize temp2 ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 char *kwnames[] = {
5123 (char *) "self",(char *) "size", NULL
5124 };
5125
5126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5129 {
5130 arg2 = &temp2;
5131 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5132 }
5133 {
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 (arg1)->SetSize((wxSize const &)*arg2);
5136
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 Py_INCREF(Py_None); resultobj = Py_None;
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj;
5149 wxCaret *arg1 = (wxCaret *) 0 ;
5150 int arg2 = (int) True ;
5151 PyObject * obj0 = 0 ;
5152 PyObject * obj1 = 0 ;
5153 char *kwnames[] = {
5154 (char *) "self",(char *) "show", NULL
5155 };
5156
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5160 if (obj1) {
5161 arg2 = (int) SWIG_AsInt(obj1);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 (arg1)->Show(arg2);
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 Py_INCREF(Py_None); resultobj = Py_None;
5172 return resultobj;
5173 fail:
5174 return NULL;
5175 }
5176
5177
5178 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5179 PyObject *resultobj;
5180 wxCaret *arg1 = (wxCaret *) 0 ;
5181 PyObject * obj0 = 0 ;
5182 char *kwnames[] = {
5183 (char *) "self", NULL
5184 };
5185
5186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 (arg1)->Hide();
5192
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 Py_INCREF(Py_None); resultobj = Py_None;
5197 return resultobj;
5198 fail:
5199 return NULL;
5200 }
5201
5202
5203 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5204 PyObject *obj;
5205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5206 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5207 Py_INCREF(obj);
5208 return Py_BuildValue((char *)"");
5209 }
5210 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5211 PyObject *resultobj;
5212 int result;
5213 char *kwnames[] = {
5214 NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (int)wxCaret_GetBlinkTime();
5221
5222 wxPyEndAllowThreads(__tstate);
5223 if (PyErr_Occurred()) SWIG_fail;
5224 }
5225 resultobj = SWIG_FromInt((int)result);
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 int arg1 ;
5235 PyObject * obj0 = 0 ;
5236 char *kwnames[] = {
5237 (char *) "milliseconds", NULL
5238 };
5239
5240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5241 arg1 = (int) SWIG_AsInt(obj0);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 wxCaret_SetBlinkTime(arg1);
5246
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 Py_INCREF(Py_None); resultobj = Py_None;
5251 return resultobj;
5252 fail:
5253 return NULL;
5254 }
5255
5256
5257 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5258 PyObject *resultobj;
5259 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5260 wxBusyCursor *result;
5261 PyObject * obj0 = 0 ;
5262 char *kwnames[] = {
5263 (char *) "cursor", NULL
5264 };
5265
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5267 if (obj0) {
5268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5270 }
5271 {
5272 if (!wxPyCheckForApp()) SWIG_fail;
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5275
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5280 return resultobj;
5281 fail:
5282 return NULL;
5283 }
5284
5285
5286 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj;
5288 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5289 PyObject * obj0 = 0 ;
5290 char *kwnames[] = {
5291 (char *) "self", NULL
5292 };
5293
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 delete arg1;
5300
5301 wxPyEndAllowThreads(__tstate);
5302 if (PyErr_Occurred()) SWIG_fail;
5303 }
5304 Py_INCREF(Py_None); resultobj = Py_None;
5305 return resultobj;
5306 fail:
5307 return NULL;
5308 }
5309
5310
5311 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5312 PyObject *obj;
5313 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5314 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5315 Py_INCREF(obj);
5316 return Py_BuildValue((char *)"");
5317 }
5318 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5319 PyObject *resultobj;
5320 wxWindow *arg1 = (wxWindow *) NULL ;
5321 wxWindowDisabler *result;
5322 PyObject * obj0 = 0 ;
5323 char *kwnames[] = {
5324 (char *) "winToSkip", NULL
5325 };
5326
5327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5328 if (obj0) {
5329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5331 }
5332 {
5333 if (!wxPyCheckForApp()) SWIG_fail;
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5336
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5341 return resultobj;
5342 fail:
5343 return NULL;
5344 }
5345
5346
5347 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj;
5349 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5350 PyObject * obj0 = 0 ;
5351 char *kwnames[] = {
5352 (char *) "self", NULL
5353 };
5354
5355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5358 {
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 delete arg1;
5361
5362 wxPyEndAllowThreads(__tstate);
5363 if (PyErr_Occurred()) SWIG_fail;
5364 }
5365 Py_INCREF(Py_None); resultobj = Py_None;
5366 return resultobj;
5367 fail:
5368 return NULL;
5369 }
5370
5371
5372 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5373 PyObject *obj;
5374 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5375 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5376 Py_INCREF(obj);
5377 return Py_BuildValue((char *)"");
5378 }
5379 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5380 PyObject *resultobj;
5381 wxString *arg1 = 0 ;
5382 wxBusyInfo *result;
5383 bool temp1 = False ;
5384 PyObject * obj0 = 0 ;
5385 char *kwnames[] = {
5386 (char *) "message", NULL
5387 };
5388
5389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5390 {
5391 arg1 = wxString_in_helper(obj0);
5392 if (arg1 == NULL) SWIG_fail;
5393 temp1 = True;
5394 }
5395 {
5396 if (!wxPyCheckForApp()) SWIG_fail;
5397 PyThreadState* __tstate = wxPyBeginAllowThreads();
5398 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5399
5400 wxPyEndAllowThreads(__tstate);
5401 if (PyErr_Occurred()) SWIG_fail;
5402 }
5403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5404 {
5405 if (temp1)
5406 delete arg1;
5407 }
5408 return resultobj;
5409 fail:
5410 {
5411 if (temp1)
5412 delete arg1;
5413 }
5414 return NULL;
5415 }
5416
5417
5418 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj;
5420 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5421 PyObject * obj0 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5429 {
5430 PyThreadState* __tstate = wxPyBeginAllowThreads();
5431 delete arg1;
5432
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 Py_INCREF(Py_None); resultobj = Py_None;
5437 return resultobj;
5438 fail:
5439 return NULL;
5440 }
5441
5442
5443 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5444 PyObject *obj;
5445 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5446 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5447 Py_INCREF(obj);
5448 return Py_BuildValue((char *)"");
5449 }
5450 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxStopWatch *result;
5453 char *kwnames[] = {
5454 NULL
5455 };
5456
5457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5458 {
5459 PyThreadState* __tstate = wxPyBeginAllowThreads();
5460 result = (wxStopWatch *)new wxStopWatch();
5461
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5466 return resultobj;
5467 fail:
5468 return NULL;
5469 }
5470
5471
5472 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5473 PyObject *resultobj;
5474 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5475 long arg2 = (long) 0 ;
5476 PyObject * obj0 = 0 ;
5477 PyObject * obj1 = 0 ;
5478 char *kwnames[] = {
5479 (char *) "self",(char *) "t0", NULL
5480 };
5481
5482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5485 if (obj1) {
5486 arg2 = (long) SWIG_AsLong(obj1);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 {
5490 PyThreadState* __tstate = wxPyBeginAllowThreads();
5491 (arg1)->Start(arg2);
5492
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 Py_INCREF(Py_None); resultobj = Py_None;
5497 return resultobj;
5498 fail:
5499 return NULL;
5500 }
5501
5502
5503 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5504 PyObject *resultobj;
5505 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5506 PyObject * obj0 = 0 ;
5507 char *kwnames[] = {
5508 (char *) "self", NULL
5509 };
5510
5511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5514 {
5515 PyThreadState* __tstate = wxPyBeginAllowThreads();
5516 (arg1)->Pause();
5517
5518 wxPyEndAllowThreads(__tstate);
5519 if (PyErr_Occurred()) SWIG_fail;
5520 }
5521 Py_INCREF(Py_None); resultobj = Py_None;
5522 return resultobj;
5523 fail:
5524 return NULL;
5525 }
5526
5527
5528 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj;
5530 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5531 PyObject * obj0 = 0 ;
5532 char *kwnames[] = {
5533 (char *) "self", NULL
5534 };
5535
5536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5539 {
5540 PyThreadState* __tstate = wxPyBeginAllowThreads();
5541 (arg1)->Resume();
5542
5543 wxPyEndAllowThreads(__tstate);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 }
5546 Py_INCREF(Py_None); resultobj = Py_None;
5547 return resultobj;
5548 fail:
5549 return NULL;
5550 }
5551
5552
5553 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5554 PyObject *resultobj;
5555 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5556 long result;
5557 PyObject * obj0 = 0 ;
5558 char *kwnames[] = {
5559 (char *) "self", NULL
5560 };
5561
5562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (long)((wxStopWatch const *)arg1)->Time();
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = SWIG_FromLong((long)result);
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5580 PyObject *obj;
5581 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5582 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5583 Py_INCREF(obj);
5584 return Py_BuildValue((char *)"");
5585 }
5586 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5587 PyObject *resultobj;
5588 int arg1 = (int) 9 ;
5589 wxFileHistory *result;
5590 PyObject * obj0 = 0 ;
5591 char *kwnames[] = {
5592 (char *) "maxFiles", NULL
5593 };
5594
5595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5596 if (obj0) {
5597 arg1 = (int) SWIG_AsInt(obj0);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 {
5601 PyThreadState* __tstate = wxPyBeginAllowThreads();
5602 result = (wxFileHistory *)new wxFileHistory(arg1);
5603
5604 wxPyEndAllowThreads(__tstate);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
5607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5608 return resultobj;
5609 fail:
5610 return NULL;
5611 }
5612
5613
5614 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5615 PyObject *resultobj;
5616 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5617 PyObject * obj0 = 0 ;
5618 char *kwnames[] = {
5619 (char *) "self", NULL
5620 };
5621
5622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 delete arg1;
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_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj;
5641 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5642 wxString *arg2 = 0 ;
5643 bool temp2 = False ;
5644 PyObject * obj0 = 0 ;
5645 PyObject * obj1 = 0 ;
5646 char *kwnames[] = {
5647 (char *) "self",(char *) "file", NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5653 {
5654 arg2 = wxString_in_helper(obj1);
5655 if (arg2 == NULL) SWIG_fail;
5656 temp2 = True;
5657 }
5658 {
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 (arg1)->AddFileToHistory((wxString const &)*arg2);
5661
5662 wxPyEndAllowThreads(__tstate);
5663 if (PyErr_Occurred()) SWIG_fail;
5664 }
5665 Py_INCREF(Py_None); resultobj = Py_None;
5666 {
5667 if (temp2)
5668 delete arg2;
5669 }
5670 return resultobj;
5671 fail:
5672 {
5673 if (temp2)
5674 delete arg2;
5675 }
5676 return NULL;
5677 }
5678
5679
5680 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj;
5682 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5683 int arg2 ;
5684 PyObject * obj0 = 0 ;
5685 PyObject * obj1 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "self",(char *) "i", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5693 arg2 = (int) SWIG_AsInt(obj1);
5694 if (PyErr_Occurred()) SWIG_fail;
5695 {
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 (arg1)->RemoveFileFromHistory(arg2);
5698
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 Py_INCREF(Py_None); resultobj = Py_None;
5703 return resultobj;
5704 fail:
5705 return NULL;
5706 }
5707
5708
5709 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5710 PyObject *resultobj;
5711 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5712 int result;
5713 PyObject * obj0 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5724
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_FromInt((int)result);
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5736 PyObject *resultobj;
5737 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5738 wxMenu *arg2 = (wxMenu *) 0 ;
5739 PyObject * obj0 = 0 ;
5740 PyObject * obj1 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self",(char *) "menu", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5750 {
5751 PyThreadState* __tstate = wxPyBeginAllowThreads();
5752 (arg1)->UseMenu(arg2);
5753
5754 wxPyEndAllowThreads(__tstate);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 }
5757 Py_INCREF(Py_None); resultobj = Py_None;
5758 return resultobj;
5759 fail:
5760 return NULL;
5761 }
5762
5763
5764 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5765 PyObject *resultobj;
5766 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5767 wxMenu *arg2 = (wxMenu *) 0 ;
5768 PyObject * obj0 = 0 ;
5769 PyObject * obj1 = 0 ;
5770 char *kwnames[] = {
5771 (char *) "self",(char *) "menu", NULL
5772 };
5773
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5779 {
5780 PyThreadState* __tstate = wxPyBeginAllowThreads();
5781 (arg1)->RemoveMenu(arg2);
5782
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 Py_INCREF(Py_None); resultobj = Py_None;
5787 return resultobj;
5788 fail:
5789 return NULL;
5790 }
5791
5792
5793 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5794 PyObject *resultobj;
5795 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5796 wxConfigBase *arg2 = 0 ;
5797 PyObject * obj0 = 0 ;
5798 PyObject * obj1 = 0 ;
5799 char *kwnames[] = {
5800 (char *) "self",(char *) "config", NULL
5801 };
5802
5803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5807 SWIG_POINTER_EXCEPTION | 0)) == -1)
5808 SWIG_fail;
5809 if (arg2 == NULL) {
5810 PyErr_SetString(PyExc_TypeError,"null reference");
5811 SWIG_fail;
5812 }
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
5815 (arg1)->Load(*arg2);
5816
5817 wxPyEndAllowThreads(__tstate);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 }
5820 Py_INCREF(Py_None); resultobj = Py_None;
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj;
5829 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5830 wxConfigBase *arg2 = 0 ;
5831 PyObject * obj0 = 0 ;
5832 PyObject * obj1 = 0 ;
5833 char *kwnames[] = {
5834 (char *) "self",(char *) "config", NULL
5835 };
5836
5837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5841 SWIG_POINTER_EXCEPTION | 0)) == -1)
5842 SWIG_fail;
5843 if (arg2 == NULL) {
5844 PyErr_SetString(PyExc_TypeError,"null reference");
5845 SWIG_fail;
5846 }
5847 {
5848 PyThreadState* __tstate = wxPyBeginAllowThreads();
5849 (arg1)->Save(*arg2);
5850
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 Py_INCREF(Py_None); resultobj = Py_None;
5855 return resultobj;
5856 fail:
5857 return NULL;
5858 }
5859
5860
5861 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5862 PyObject *resultobj;
5863 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5864 PyObject * obj0 = 0 ;
5865 char *kwnames[] = {
5866 (char *) "self", NULL
5867 };
5868
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 {
5873 PyThreadState* __tstate = wxPyBeginAllowThreads();
5874 (arg1)->AddFilesToMenu();
5875
5876 wxPyEndAllowThreads(__tstate);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 Py_INCREF(Py_None); resultobj = Py_None;
5880 return resultobj;
5881 fail:
5882 return NULL;
5883 }
5884
5885
5886 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5887 PyObject *resultobj;
5888 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5889 wxMenu *arg2 = (wxMenu *) 0 ;
5890 PyObject * obj0 = 0 ;
5891 PyObject * obj1 = 0 ;
5892 char *kwnames[] = {
5893 (char *) "self",(char *) "menu", NULL
5894 };
5895
5896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5899 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5901 {
5902 PyThreadState* __tstate = wxPyBeginAllowThreads();
5903 (arg1)->AddFilesToMenu(arg2);
5904
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 Py_INCREF(Py_None); resultobj = Py_None;
5909 return resultobj;
5910 fail:
5911 return NULL;
5912 }
5913
5914
5915 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5916 PyObject *resultobj;
5917 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5918 int arg2 ;
5919 wxString result;
5920 PyObject * obj0 = 0 ;
5921 PyObject * obj1 = 0 ;
5922 char *kwnames[] = {
5923 (char *) "self",(char *) "i", NULL
5924 };
5925
5926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5929 arg2 = (int) SWIG_AsInt(obj1);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5934
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 {
5939 #if wxUSE_UNICODE
5940 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5941 #else
5942 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5943 #endif
5944 }
5945 return resultobj;
5946 fail:
5947 return NULL;
5948 }
5949
5950
5951 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5952 PyObject *resultobj;
5953 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5954 int result;
5955 PyObject * obj0 = 0 ;
5956 char *kwnames[] = {
5957 (char *) "self", NULL
5958 };
5959
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5963 {
5964 PyThreadState* __tstate = wxPyBeginAllowThreads();
5965 result = (int)((wxFileHistory const *)arg1)->GetCount();
5966
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_FromInt((int)result);
5971 return resultobj;
5972 fail:
5973 return NULL;
5974 }
5975
5976
5977 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5978 PyObject *obj;
5979 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5980 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5981 Py_INCREF(obj);
5982 return Py_BuildValue((char *)"");
5983 }
5984 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj;
5986 wxString *arg1 = 0 ;
5987 wxString const &arg2_defvalue = wxPyEmptyString ;
5988 wxString *arg2 = (wxString *) &arg2_defvalue ;
5989 wxSingleInstanceChecker *result;
5990 bool temp1 = False ;
5991 bool temp2 = False ;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 char *kwnames[] = {
5995 (char *) "name",(char *) "path", NULL
5996 };
5997
5998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5999 {
6000 arg1 = wxString_in_helper(obj0);
6001 if (arg1 == NULL) SWIG_fail;
6002 temp1 = True;
6003 }
6004 if (obj1) {
6005 {
6006 arg2 = wxString_in_helper(obj1);
6007 if (arg2 == NULL) SWIG_fail;
6008 temp2 = True;
6009 }
6010 }
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6014
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6019 {
6020 if (temp1)
6021 delete arg1;
6022 }
6023 {
6024 if (temp2)
6025 delete arg2;
6026 }
6027 return resultobj;
6028 fail:
6029 {
6030 if (temp1)
6031 delete arg1;
6032 }
6033 {
6034 if (temp2)
6035 delete arg2;
6036 }
6037 return NULL;
6038 }
6039
6040
6041 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6042 PyObject *resultobj;
6043 wxSingleInstanceChecker *result;
6044 char *kwnames[] = {
6045 NULL
6046 };
6047
6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6057 return resultobj;
6058 fail:
6059 return NULL;
6060 }
6061
6062
6063 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6064 PyObject *resultobj;
6065 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6066 PyObject * obj0 = 0 ;
6067 char *kwnames[] = {
6068 (char *) "self", NULL
6069 };
6070
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6074 {
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 delete arg1;
6077
6078 wxPyEndAllowThreads(__tstate);
6079 if (PyErr_Occurred()) SWIG_fail;
6080 }
6081 Py_INCREF(Py_None); resultobj = Py_None;
6082 return resultobj;
6083 fail:
6084 return NULL;
6085 }
6086
6087
6088 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6089 PyObject *resultobj;
6090 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6091 wxString *arg2 = 0 ;
6092 wxString const &arg3_defvalue = wxPyEmptyString ;
6093 wxString *arg3 = (wxString *) &arg3_defvalue ;
6094 bool result;
6095 bool temp2 = False ;
6096 bool temp3 = False ;
6097 PyObject * obj0 = 0 ;
6098 PyObject * obj1 = 0 ;
6099 PyObject * obj2 = 0 ;
6100 char *kwnames[] = {
6101 (char *) "self",(char *) "name",(char *) "path", NULL
6102 };
6103
6104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6107 {
6108 arg2 = wxString_in_helper(obj1);
6109 if (arg2 == NULL) SWIG_fail;
6110 temp2 = True;
6111 }
6112 if (obj2) {
6113 {
6114 arg3 = wxString_in_helper(obj2);
6115 if (arg3 == NULL) SWIG_fail;
6116 temp3 = True;
6117 }
6118 }
6119 {
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6122
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 {
6127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6128 }
6129 {
6130 if (temp2)
6131 delete arg2;
6132 }
6133 {
6134 if (temp3)
6135 delete arg3;
6136 }
6137 return resultobj;
6138 fail:
6139 {
6140 if (temp2)
6141 delete arg2;
6142 }
6143 {
6144 if (temp3)
6145 delete arg3;
6146 }
6147 return NULL;
6148 }
6149
6150
6151 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6152 PyObject *resultobj;
6153 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6154 bool result;
6155 PyObject * obj0 = 0 ;
6156 char *kwnames[] = {
6157 (char *) "self", NULL
6158 };
6159
6160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6163 {
6164 PyThreadState* __tstate = wxPyBeginAllowThreads();
6165 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6166
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 {
6171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6172 }
6173 return resultobj;
6174 fail:
6175 return NULL;
6176 }
6177
6178
6179 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6180 PyObject *obj;
6181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6182 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6183 Py_INCREF(obj);
6184 return Py_BuildValue((char *)"");
6185 }
6186 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6187 PyObject *resultobj;
6188 wxWindow *arg1 = (wxWindow *) 0 ;
6189 wxDC *arg2 = 0 ;
6190 int arg3 ;
6191 PyObject * obj0 = 0 ;
6192 PyObject * obj1 = 0 ;
6193 PyObject * obj2 = 0 ;
6194 char *kwnames[] = {
6195 (char *) "window",(char *) "dc",(char *) "method", NULL
6196 };
6197
6198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6201 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6202 SWIG_POINTER_EXCEPTION | 0)) == -1)
6203 SWIG_fail;
6204 if (arg2 == NULL) {
6205 PyErr_SetString(PyExc_TypeError,"null reference");
6206 SWIG_fail;
6207 }
6208 arg3 = (int) SWIG_AsInt(obj2);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6213
6214 wxPyEndAllowThreads(__tstate);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 Py_INCREF(Py_None); resultobj = Py_None;
6218 return resultobj;
6219 fail:
6220 return NULL;
6221 }
6222
6223
6224 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6225 PyObject *resultobj;
6226 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6227 PyObject * obj0 = 0 ;
6228 char *kwnames[] = {
6229 (char *) "self", NULL
6230 };
6231
6232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 delete arg1;
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 Py_INCREF(Py_None); resultobj = Py_None;
6243 return resultobj;
6244 fail:
6245 return NULL;
6246 }
6247
6248
6249 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6250 PyObject *resultobj;
6251 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6252 wxString result;
6253 PyObject * obj0 = 0 ;
6254 char *kwnames[] = {
6255 (char *) "self", NULL
6256 };
6257
6258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6261 {
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 result = (arg1)->GetTip();
6264
6265 wxPyEndAllowThreads(__tstate);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 {
6269 #if wxUSE_UNICODE
6270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6271 #else
6272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6273 #endif
6274 }
6275 return resultobj;
6276 fail:
6277 return NULL;
6278 }
6279
6280
6281 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj;
6283 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6284 size_t result;
6285 PyObject * obj0 = 0 ;
6286 char *kwnames[] = {
6287 (char *) "self", NULL
6288 };
6289
6290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 result = (size_t)(arg1)->GetCurrentTip();
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6301 return resultobj;
6302 fail:
6303 return NULL;
6304 }
6305
6306
6307 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj;
6309 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6310 wxString *arg2 = 0 ;
6311 wxString result;
6312 bool temp2 = False ;
6313 PyObject * obj0 = 0 ;
6314 PyObject * obj1 = 0 ;
6315 char *kwnames[] = {
6316 (char *) "self",(char *) "tip", NULL
6317 };
6318
6319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6322 {
6323 arg2 = wxString_in_helper(obj1);
6324 if (arg2 == NULL) SWIG_fail;
6325 temp2 = True;
6326 }
6327 {
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6330
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 {
6335 #if wxUSE_UNICODE
6336 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6337 #else
6338 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6339 #endif
6340 }
6341 {
6342 if (temp2)
6343 delete arg2;
6344 }
6345 return resultobj;
6346 fail:
6347 {
6348 if (temp2)
6349 delete arg2;
6350 }
6351 return NULL;
6352 }
6353
6354
6355 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6356 PyObject *obj;
6357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6358 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6359 Py_INCREF(obj);
6360 return Py_BuildValue((char *)"");
6361 }
6362 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6363 PyObject *resultobj;
6364 size_t arg1 ;
6365 wxPyTipProvider *result;
6366 PyObject * obj0 = 0 ;
6367 char *kwnames[] = {
6368 (char *) "currentTip", NULL
6369 };
6370
6371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6372 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6389 PyObject *resultobj;
6390 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6391 PyObject *arg2 = (PyObject *) 0 ;
6392 PyObject *arg3 = (PyObject *) 0 ;
6393 PyObject * obj0 = 0 ;
6394 PyObject * obj1 = 0 ;
6395 PyObject * obj2 = 0 ;
6396 char *kwnames[] = {
6397 (char *) "self",(char *) "self",(char *) "_class", NULL
6398 };
6399
6400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6403 arg2 = obj1;
6404 arg3 = obj2;
6405 {
6406 PyThreadState* __tstate = wxPyBeginAllowThreads();
6407 (arg1)->_setCallbackInfo(arg2,arg3);
6408
6409 wxPyEndAllowThreads(__tstate);
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 Py_INCREF(Py_None); resultobj = Py_None;
6413 return resultobj;
6414 fail:
6415 return NULL;
6416 }
6417
6418
6419 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6420 PyObject *obj;
6421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6422 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6423 Py_INCREF(obj);
6424 return Py_BuildValue((char *)"");
6425 }
6426 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj;
6428 wxWindow *arg1 = (wxWindow *) 0 ;
6429 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6430 bool arg3 = (bool) True ;
6431 bool result;
6432 PyObject * obj0 = 0 ;
6433 PyObject * obj1 = 0 ;
6434 PyObject * obj2 = 0 ;
6435 char *kwnames[] = {
6436 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6437 };
6438
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6442 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6444 if (obj2) {
6445 arg3 = (bool) SWIG_AsBool(obj2);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 {
6449 if (!wxPyCheckForApp()) SWIG_fail;
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 result = (bool)wxShowTip(arg1,arg2,arg3);
6452
6453 wxPyEndAllowThreads(__tstate);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 {
6457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6458 }
6459 return resultobj;
6460 fail:
6461 return NULL;
6462 }
6463
6464
6465 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6466 PyObject *resultobj;
6467 wxString *arg1 = 0 ;
6468 size_t arg2 ;
6469 wxTipProvider *result;
6470 bool temp1 = False ;
6471 PyObject * obj0 = 0 ;
6472 PyObject * obj1 = 0 ;
6473 char *kwnames[] = {
6474 (char *) "filename",(char *) "currentTip", NULL
6475 };
6476
6477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6478 {
6479 arg1 = wxString_in_helper(obj0);
6480 if (arg1 == NULL) SWIG_fail;
6481 temp1 = True;
6482 }
6483 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6484 if (PyErr_Occurred()) SWIG_fail;
6485 {
6486 if (!wxPyCheckForApp()) SWIG_fail;
6487 PyThreadState* __tstate = wxPyBeginAllowThreads();
6488 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6489
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6494 {
6495 if (temp1)
6496 delete arg1;
6497 }
6498 return resultobj;
6499 fail:
6500 {
6501 if (temp1)
6502 delete arg1;
6503 }
6504 return NULL;
6505 }
6506
6507
6508 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6509 PyObject *resultobj;
6510 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6511 int arg2 = (int) -1 ;
6512 wxPyTimer *result;
6513 PyObject * obj0 = 0 ;
6514 PyObject * obj1 = 0 ;
6515 char *kwnames[] = {
6516 (char *) "owner",(char *) "id", NULL
6517 };
6518
6519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6520 if (obj0) {
6521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6523 }
6524 if (obj1) {
6525 arg2 = (int) SWIG_AsInt(obj1);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 {
6529 if (!wxPyCheckForApp()) SWIG_fail;
6530 PyThreadState* __tstate = wxPyBeginAllowThreads();
6531 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6532
6533 wxPyEndAllowThreads(__tstate);
6534 if (PyErr_Occurred()) SWIG_fail;
6535 }
6536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6537 return resultobj;
6538 fail:
6539 return NULL;
6540 }
6541
6542
6543 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6544 PyObject *resultobj;
6545 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6546 PyObject * obj0 = 0 ;
6547 char *kwnames[] = {
6548 (char *) "self", NULL
6549 };
6550
6551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",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 delete arg1;
6557
6558 wxPyEndAllowThreads(__tstate);
6559 if (PyErr_Occurred()) SWIG_fail;
6560 }
6561 Py_INCREF(Py_None); resultobj = Py_None;
6562 return resultobj;
6563 fail:
6564 return NULL;
6565 }
6566
6567
6568 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6569 PyObject *resultobj;
6570 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6571 PyObject *arg2 = (PyObject *) 0 ;
6572 PyObject *arg3 = (PyObject *) 0 ;
6573 int arg4 = (int) 1 ;
6574 PyObject * obj0 = 0 ;
6575 PyObject * obj1 = 0 ;
6576 PyObject * obj2 = 0 ;
6577 PyObject * obj3 = 0 ;
6578 char *kwnames[] = {
6579 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6580 };
6581
6582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6585 arg2 = obj1;
6586 arg3 = obj2;
6587 if (obj3) {
6588 arg4 = (int) SWIG_AsInt(obj3);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 {
6592 PyThreadState* __tstate = wxPyBeginAllowThreads();
6593 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6594
6595 wxPyEndAllowThreads(__tstate);
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 Py_INCREF(Py_None); resultobj = Py_None;
6599 return resultobj;
6600 fail:
6601 return NULL;
6602 }
6603
6604
6605 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6606 PyObject *resultobj;
6607 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6608 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6609 int arg3 = (int) -1 ;
6610 PyObject * obj0 = 0 ;
6611 PyObject * obj1 = 0 ;
6612 PyObject * obj2 = 0 ;
6613 char *kwnames[] = {
6614 (char *) "self",(char *) "owner",(char *) "id", NULL
6615 };
6616
6617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6620 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6622 if (obj2) {
6623 arg3 = (int) SWIG_AsInt(obj2);
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 {
6627 PyThreadState* __tstate = wxPyBeginAllowThreads();
6628 (arg1)->SetOwner(arg2,arg3);
6629
6630 wxPyEndAllowThreads(__tstate);
6631 if (PyErr_Occurred()) SWIG_fail;
6632 }
6633 Py_INCREF(Py_None); resultobj = Py_None;
6634 return resultobj;
6635 fail:
6636 return NULL;
6637 }
6638
6639
6640 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj;
6642 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6643 wxEvtHandler *result;
6644 PyObject * obj0 = 0 ;
6645 char *kwnames[] = {
6646 (char *) "self", NULL
6647 };
6648
6649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6652 {
6653 PyThreadState* __tstate = wxPyBeginAllowThreads();
6654 result = (wxEvtHandler *)(arg1)->GetOwner();
6655
6656 wxPyEndAllowThreads(__tstate);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 {
6660 resultobj = wxPyMake_wxObject(result, 0);
6661 }
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj;
6670 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6671 int arg2 = (int) -1 ;
6672 bool arg3 = (bool) False ;
6673 bool result;
6674 PyObject * obj0 = 0 ;
6675 PyObject * obj1 = 0 ;
6676 PyObject * obj2 = 0 ;
6677 char *kwnames[] = {
6678 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6679 };
6680
6681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6684 if (obj1) {
6685 arg2 = (int) SWIG_AsInt(obj1);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 if (obj2) {
6689 arg3 = (bool) SWIG_AsBool(obj2);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 {
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = (bool)(arg1)->Start(arg2,arg3);
6695
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj;
6710 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6711 PyObject * obj0 = 0 ;
6712 char *kwnames[] = {
6713 (char *) "self", NULL
6714 };
6715
6716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6719 {
6720 PyThreadState* __tstate = wxPyBeginAllowThreads();
6721 (arg1)->Stop();
6722
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 Py_INCREF(Py_None); resultobj = Py_None;
6727 return resultobj;
6728 fail:
6729 return NULL;
6730 }
6731
6732
6733 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6734 PyObject *resultobj;
6735 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6736 bool result;
6737 PyObject * obj0 = 0 ;
6738 char *kwnames[] = {
6739 (char *) "self", NULL
6740 };
6741
6742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6745 {
6746 PyThreadState* __tstate = wxPyBeginAllowThreads();
6747 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6748
6749 wxPyEndAllowThreads(__tstate);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 {
6753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6754 }
6755 return resultobj;
6756 fail:
6757 return NULL;
6758 }
6759
6760
6761 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6762 PyObject *resultobj;
6763 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6764 int result;
6765 PyObject * obj0 = 0 ;
6766 char *kwnames[] = {
6767 (char *) "self", NULL
6768 };
6769
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6773 {
6774 PyThreadState* __tstate = wxPyBeginAllowThreads();
6775 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6776
6777 wxPyEndAllowThreads(__tstate);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 resultobj = SWIG_FromInt((int)result);
6781 return resultobj;
6782 fail:
6783 return NULL;
6784 }
6785
6786
6787 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6788 PyObject *resultobj;
6789 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6790 bool result;
6791 PyObject * obj0 = 0 ;
6792 char *kwnames[] = {
6793 (char *) "self", NULL
6794 };
6795
6796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6799 {
6800 PyThreadState* __tstate = wxPyBeginAllowThreads();
6801 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6802
6803 wxPyEndAllowThreads(__tstate);
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 {
6807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6808 }
6809 return resultobj;
6810 fail:
6811 return NULL;
6812 }
6813
6814
6815 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6816 PyObject *resultobj;
6817 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6818 int result;
6819 PyObject * obj0 = 0 ;
6820 char *kwnames[] = {
6821 (char *) "self", NULL
6822 };
6823
6824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6827 {
6828 PyThreadState* __tstate = wxPyBeginAllowThreads();
6829 result = (int)((wxPyTimer const *)arg1)->GetId();
6830
6831 wxPyEndAllowThreads(__tstate);
6832 if (PyErr_Occurred()) SWIG_fail;
6833 }
6834 resultobj = SWIG_FromInt((int)result);
6835 return resultobj;
6836 fail:
6837 return NULL;
6838 }
6839
6840
6841 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6842 PyObject *obj;
6843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6844 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6845 Py_INCREF(obj);
6846 return Py_BuildValue((char *)"");
6847 }
6848 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6849 PyObject *resultobj;
6850 int arg1 = (int) 0 ;
6851 int arg2 = (int) 0 ;
6852 wxTimerEvent *result;
6853 PyObject * obj0 = 0 ;
6854 PyObject * obj1 = 0 ;
6855 char *kwnames[] = {
6856 (char *) "timerid",(char *) "interval", NULL
6857 };
6858
6859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6860 if (obj0) {
6861 arg1 = (int) SWIG_AsInt(obj0);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 if (obj1) {
6865 arg2 = (int) SWIG_AsInt(obj1);
6866 if (PyErr_Occurred()) SWIG_fail;
6867 }
6868 {
6869 PyThreadState* __tstate = wxPyBeginAllowThreads();
6870 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6871
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6876 return resultobj;
6877 fail:
6878 return NULL;
6879 }
6880
6881
6882 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6883 PyObject *resultobj;
6884 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6885 int result;
6886 PyObject * obj0 = 0 ;
6887 char *kwnames[] = {
6888 (char *) "self", NULL
6889 };
6890
6891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6894 {
6895 PyThreadState* __tstate = wxPyBeginAllowThreads();
6896 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6897
6898 wxPyEndAllowThreads(__tstate);
6899 if (PyErr_Occurred()) SWIG_fail;
6900 }
6901 resultobj = SWIG_FromInt((int)result);
6902 return resultobj;
6903 fail:
6904 return NULL;
6905 }
6906
6907
6908 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6909 PyObject *obj;
6910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6911 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6912 Py_INCREF(obj);
6913 return Py_BuildValue((char *)"");
6914 }
6915 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6916 PyObject *resultobj;
6917 wxTimer *arg1 = 0 ;
6918 wxTimerRunner *result;
6919 PyObject * obj0 = 0 ;
6920
6921 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6923 SWIG_POINTER_EXCEPTION | 0)) == -1)
6924 SWIG_fail;
6925 if (arg1 == NULL) {
6926 PyErr_SetString(PyExc_TypeError,"null reference");
6927 SWIG_fail;
6928 }
6929 {
6930 if (!wxPyCheckForApp()) SWIG_fail;
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6945 PyObject *resultobj;
6946 wxTimer *arg1 = 0 ;
6947 int arg2 ;
6948 bool arg3 = (bool) False ;
6949 wxTimerRunner *result;
6950 PyObject * obj0 = 0 ;
6951 PyObject * obj1 = 0 ;
6952 PyObject * obj2 = 0 ;
6953
6954 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6956 SWIG_POINTER_EXCEPTION | 0)) == -1)
6957 SWIG_fail;
6958 if (arg1 == NULL) {
6959 PyErr_SetString(PyExc_TypeError,"null reference");
6960 SWIG_fail;
6961 }
6962 arg2 = (int) SWIG_AsInt(obj1);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 if (obj2) {
6965 arg3 = (bool) SWIG_AsBool(obj2);
6966 if (PyErr_Occurred()) SWIG_fail;
6967 }
6968 {
6969 if (!wxPyCheckForApp()) SWIG_fail;
6970 PyThreadState* __tstate = wxPyBeginAllowThreads();
6971 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6972
6973 wxPyEndAllowThreads(__tstate);
6974 if (PyErr_Occurred()) SWIG_fail;
6975 }
6976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6977 return resultobj;
6978 fail:
6979 return NULL;
6980 }
6981
6982
6983 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6984 int argc;
6985 PyObject *argv[4];
6986 int ii;
6987
6988 argc = PyObject_Length(args);
6989 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6990 argv[ii] = PyTuple_GetItem(args,ii);
6991 }
6992 if (argc == 1) {
6993 int _v;
6994 {
6995 void *ptr;
6996 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6997 _v = 0;
6998 PyErr_Clear();
6999 } else {
7000 _v = 1;
7001 }
7002 }
7003 if (_v) {
7004 return _wrap_new_TimerRunner__SWIG_0(self,args);
7005 }
7006 }
7007 if ((argc >= 2) && (argc <= 3)) {
7008 int _v;
7009 {
7010 void *ptr;
7011 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7012 _v = 0;
7013 PyErr_Clear();
7014 } else {
7015 _v = 1;
7016 }
7017 }
7018 if (_v) {
7019 _v = SWIG_CheckInt(argv[1]);
7020 if (_v) {
7021 if (argc <= 2) {
7022 return _wrap_new_TimerRunner__SWIG_1(self,args);
7023 }
7024 _v = SWIG_CheckBool(argv[2]);
7025 if (_v) {
7026 return _wrap_new_TimerRunner__SWIG_1(self,args);
7027 }
7028 }
7029 }
7030 }
7031
7032 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7033 return NULL;
7034 }
7035
7036
7037 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
7038 PyObject *resultobj;
7039 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7040 PyObject * obj0 = 0 ;
7041 char *kwnames[] = {
7042 (char *) "self", NULL
7043 };
7044
7045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7048 {
7049 PyThreadState* __tstate = wxPyBeginAllowThreads();
7050 delete arg1;
7051
7052 wxPyEndAllowThreads(__tstate);
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 Py_INCREF(Py_None); resultobj = Py_None;
7056 return resultobj;
7057 fail:
7058 return NULL;
7059 }
7060
7061
7062 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7063 PyObject *resultobj;
7064 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7065 int arg2 ;
7066 bool arg3 = (bool) False ;
7067 PyObject * obj0 = 0 ;
7068 PyObject * obj1 = 0 ;
7069 PyObject * obj2 = 0 ;
7070 char *kwnames[] = {
7071 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7072 };
7073
7074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7077 arg2 = (int) SWIG_AsInt(obj1);
7078 if (PyErr_Occurred()) SWIG_fail;
7079 if (obj2) {
7080 arg3 = (bool) SWIG_AsBool(obj2);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 }
7083 {
7084 PyThreadState* __tstate = wxPyBeginAllowThreads();
7085 (arg1)->Start(arg2,arg3);
7086
7087 wxPyEndAllowThreads(__tstate);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 Py_INCREF(Py_None); resultobj = Py_None;
7091 return resultobj;
7092 fail:
7093 return NULL;
7094 }
7095
7096
7097 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7098 PyObject *obj;
7099 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7100 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7101 Py_INCREF(obj);
7102 return Py_BuildValue((char *)"");
7103 }
7104 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj;
7106 wxLog *result;
7107 char *kwnames[] = {
7108 NULL
7109 };
7110
7111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7112 {
7113 PyThreadState* __tstate = wxPyBeginAllowThreads();
7114 result = (wxLog *)new wxLog();
7115
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7120 return resultobj;
7121 fail:
7122 return NULL;
7123 }
7124
7125
7126 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7127 PyObject *resultobj;
7128 bool result;
7129 char *kwnames[] = {
7130 NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 result = (bool)wxLog::IsEnabled();
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 {
7142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7143 }
7144 return resultobj;
7145 fail:
7146 return NULL;
7147 }
7148
7149
7150 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7151 PyObject *resultobj;
7152 bool arg1 = (bool) True ;
7153 bool result;
7154 PyObject * obj0 = 0 ;
7155 char *kwnames[] = {
7156 (char *) "doIt", NULL
7157 };
7158
7159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7160 if (obj0) {
7161 arg1 = (bool) SWIG_AsBool(obj0);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 {
7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
7166 result = (bool)wxLog::EnableLogging(arg1);
7167
7168 wxPyEndAllowThreads(__tstate);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 {
7172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7173 }
7174 return resultobj;
7175 fail:
7176 return NULL;
7177 }
7178
7179
7180 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7181 PyObject *resultobj;
7182 wxLogLevel arg1 ;
7183 wxChar *arg2 = (wxChar *) 0 ;
7184 time_t arg3 ;
7185 PyObject * obj0 = 0 ;
7186 PyObject * obj1 = 0 ;
7187 PyObject * obj2 = 0 ;
7188 char *kwnames[] = {
7189 (char *) "level",(char *) "szString",(char *) "t", NULL
7190 };
7191
7192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7193 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7197 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7202
7203 wxPyEndAllowThreads(__tstate);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 }
7206 Py_INCREF(Py_None); resultobj = Py_None;
7207 return resultobj;
7208 fail:
7209 return NULL;
7210 }
7211
7212
7213 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7214 PyObject *resultobj;
7215 wxLog *arg1 = (wxLog *) 0 ;
7216 PyObject * obj0 = 0 ;
7217 char *kwnames[] = {
7218 (char *) "self", NULL
7219 };
7220
7221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7224 {
7225 PyThreadState* __tstate = wxPyBeginAllowThreads();
7226 (arg1)->Flush();
7227
7228 wxPyEndAllowThreads(__tstate);
7229 if (PyErr_Occurred()) SWIG_fail;
7230 }
7231 Py_INCREF(Py_None); resultobj = Py_None;
7232 return resultobj;
7233 fail:
7234 return NULL;
7235 }
7236
7237
7238 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7239 PyObject *resultobj;
7240 char *kwnames[] = {
7241 NULL
7242 };
7243
7244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7245 {
7246 PyThreadState* __tstate = wxPyBeginAllowThreads();
7247 wxLog::FlushActive();
7248
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 Py_INCREF(Py_None); resultobj = Py_None;
7253 return resultobj;
7254 fail:
7255 return NULL;
7256 }
7257
7258
7259 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7260 PyObject *resultobj;
7261 wxLog *result;
7262 char *kwnames[] = {
7263 NULL
7264 };
7265
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7267 {
7268 PyThreadState* __tstate = wxPyBeginAllowThreads();
7269 result = (wxLog *)wxLog::GetActiveTarget();
7270
7271 wxPyEndAllowThreads(__tstate);
7272 if (PyErr_Occurred()) SWIG_fail;
7273 }
7274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7282 PyObject *resultobj;
7283 wxLog *arg1 = (wxLog *) 0 ;
7284 wxLog *result;
7285 PyObject * obj0 = 0 ;
7286 char *kwnames[] = {
7287 (char *) "pLogger", NULL
7288 };
7289
7290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7296
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7301 return resultobj;
7302 fail:
7303 return NULL;
7304 }
7305
7306
7307 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj;
7309 char *kwnames[] = {
7310 NULL
7311 };
7312
7313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 wxLog::Suspend();
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 Py_INCREF(Py_None); resultobj = Py_None;
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7329 PyObject *resultobj;
7330 char *kwnames[] = {
7331 NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 wxLog::Resume();
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_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj;
7351 bool arg1 = (bool) True ;
7352 PyObject * obj0 = 0 ;
7353 char *kwnames[] = {
7354 (char *) "bVerbose", NULL
7355 };
7356
7357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7358 if (obj0) {
7359 arg1 = (bool) SWIG_AsBool(obj0);
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 {
7363 PyThreadState* __tstate = wxPyBeginAllowThreads();
7364 wxLog::SetVerbose(arg1);
7365
7366 wxPyEndAllowThreads(__tstate);
7367 if (PyErr_Occurred()) SWIG_fail;
7368 }
7369 Py_INCREF(Py_None); resultobj = Py_None;
7370 return resultobj;
7371 fail:
7372 return NULL;
7373 }
7374
7375
7376 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7377 PyObject *resultobj;
7378 wxLogLevel arg1 ;
7379 PyObject * obj0 = 0 ;
7380 char *kwnames[] = {
7381 (char *) "logLevel", NULL
7382 };
7383
7384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7385 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7386 if (PyErr_Occurred()) SWIG_fail;
7387 {
7388 PyThreadState* __tstate = wxPyBeginAllowThreads();
7389 wxLog::SetLogLevel(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_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7402 PyObject *resultobj;
7403 char *kwnames[] = {
7404 NULL
7405 };
7406
7407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 wxLog::DontCreateOnDemand();
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 Py_INCREF(Py_None); resultobj = Py_None;
7416 return resultobj;
7417 fail:
7418 return NULL;
7419 }
7420
7421
7422 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7423 PyObject *resultobj;
7424 wxTraceMask arg1 ;
7425 PyObject * obj0 = 0 ;
7426 char *kwnames[] = {
7427 (char *) "ulMask", NULL
7428 };
7429
7430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7431 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7432 if (PyErr_Occurred()) SWIG_fail;
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 wxLog::SetTraceMask(arg1);
7436
7437 wxPyEndAllowThreads(__tstate);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 Py_INCREF(Py_None); resultobj = Py_None;
7441 return resultobj;
7442 fail:
7443 return NULL;
7444 }
7445
7446
7447 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj;
7449 wxString *arg1 = 0 ;
7450 bool temp1 = False ;
7451 PyObject * obj0 = 0 ;
7452 char *kwnames[] = {
7453 (char *) "str", NULL
7454 };
7455
7456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7457 {
7458 arg1 = wxString_in_helper(obj0);
7459 if (arg1 == NULL) SWIG_fail;
7460 temp1 = True;
7461 }
7462 {
7463 PyThreadState* __tstate = wxPyBeginAllowThreads();
7464 wxLog::AddTraceMask((wxString const &)*arg1);
7465
7466 wxPyEndAllowThreads(__tstate);
7467 if (PyErr_Occurred()) SWIG_fail;
7468 }
7469 Py_INCREF(Py_None); resultobj = Py_None;
7470 {
7471 if (temp1)
7472 delete arg1;
7473 }
7474 return resultobj;
7475 fail:
7476 {
7477 if (temp1)
7478 delete arg1;
7479 }
7480 return NULL;
7481 }
7482
7483
7484 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7485 PyObject *resultobj;
7486 wxString *arg1 = 0 ;
7487 bool temp1 = False ;
7488 PyObject * obj0 = 0 ;
7489 char *kwnames[] = {
7490 (char *) "str", NULL
7491 };
7492
7493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7494 {
7495 arg1 = wxString_in_helper(obj0);
7496 if (arg1 == NULL) SWIG_fail;
7497 temp1 = True;
7498 }
7499 {
7500 PyThreadState* __tstate = wxPyBeginAllowThreads();
7501 wxLog::RemoveTraceMask((wxString const &)*arg1);
7502
7503 wxPyEndAllowThreads(__tstate);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 Py_INCREF(Py_None); resultobj = Py_None;
7507 {
7508 if (temp1)
7509 delete arg1;
7510 }
7511 return resultobj;
7512 fail:
7513 {
7514 if (temp1)
7515 delete arg1;
7516 }
7517 return NULL;
7518 }
7519
7520
7521 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj;
7523 char *kwnames[] = {
7524 NULL
7525 };
7526
7527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7528 {
7529 PyThreadState* __tstate = wxPyBeginAllowThreads();
7530 wxLog::ClearTraceMasks();
7531
7532 wxPyEndAllowThreads(__tstate);
7533 if (PyErr_Occurred()) SWIG_fail;
7534 }
7535 Py_INCREF(Py_None); resultobj = Py_None;
7536 return resultobj;
7537 fail:
7538 return NULL;
7539 }
7540
7541
7542 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7543 PyObject *resultobj;
7544 wxArrayString *result;
7545 char *kwnames[] = {
7546 NULL
7547 };
7548
7549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7550 {
7551 PyThreadState* __tstate = wxPyBeginAllowThreads();
7552 {
7553 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7554 result = (wxArrayString *) &_result_ref;
7555 }
7556
7557 wxPyEndAllowThreads(__tstate);
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 {
7561 resultobj = wxArrayString2PyList_helper(*result);
7562 }
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj;
7571 wxChar *arg1 = (wxChar *) 0 ;
7572 PyObject * obj0 = 0 ;
7573 char *kwnames[] = {
7574 (char *) "ts", NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 wxLog::SetTimestamp((wxChar const *)arg1);
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 Py_INCREF(Py_None); resultobj = Py_None;
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7595 PyObject *resultobj;
7596 bool result;
7597 char *kwnames[] = {
7598 NULL
7599 };
7600
7601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 result = (bool)wxLog::GetVerbose();
7605
7606 wxPyEndAllowThreads(__tstate);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
7609 {
7610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7611 }
7612 return resultobj;
7613 fail:
7614 return NULL;
7615 }
7616
7617
7618 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7619 PyObject *resultobj;
7620 wxTraceMask result;
7621 char *kwnames[] = {
7622 NULL
7623 };
7624
7625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7626 {
7627 PyThreadState* __tstate = wxPyBeginAllowThreads();
7628 result = (wxTraceMask)wxLog::GetTraceMask();
7629
7630 wxPyEndAllowThreads(__tstate);
7631 if (PyErr_Occurred()) SWIG_fail;
7632 }
7633 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7634 return resultobj;
7635 fail:
7636 return NULL;
7637 }
7638
7639
7640 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7641 PyObject *resultobj;
7642 wxChar *arg1 = (wxChar *) 0 ;
7643 bool result;
7644 PyObject * obj0 = 0 ;
7645 char *kwnames[] = {
7646 (char *) "mask", NULL
7647 };
7648
7649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7652 {
7653 PyThreadState* __tstate = wxPyBeginAllowThreads();
7654 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7655
7656 wxPyEndAllowThreads(__tstate);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 }
7659 {
7660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7661 }
7662 return resultobj;
7663 fail:
7664 return NULL;
7665 }
7666
7667
7668 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7669 PyObject *resultobj;
7670 wxLogLevel result;
7671 char *kwnames[] = {
7672 NULL
7673 };
7674
7675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 result = (wxLogLevel)wxLog::GetLogLevel();
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj;
7692 wxChar *result;
7693 char *kwnames[] = {
7694 NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7698 {
7699 PyThreadState* __tstate = wxPyBeginAllowThreads();
7700 result = (wxChar *)wxLog::GetTimestamp();
7701
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
7705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7706 return resultobj;
7707 fail:
7708 return NULL;
7709 }
7710
7711
7712 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj;
7714 wxString result;
7715 char *kwnames[] = {
7716 NULL
7717 };
7718
7719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7720 {
7721 PyThreadState* __tstate = wxPyBeginAllowThreads();
7722 result = Log_TimeStamp();
7723
7724 wxPyEndAllowThreads(__tstate);
7725 if (PyErr_Occurred()) SWIG_fail;
7726 }
7727 {
7728 #if wxUSE_UNICODE
7729 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7730 #else
7731 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7732 #endif
7733 }
7734 return resultobj;
7735 fail:
7736 return NULL;
7737 }
7738
7739
7740 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7741 PyObject *resultobj;
7742 wxLog *arg1 = (wxLog *) 0 ;
7743 PyObject * obj0 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "self", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7751 {
7752 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753 wxLog_Destroy(arg1);
7754
7755 wxPyEndAllowThreads(__tstate);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 Py_INCREF(Py_None); resultobj = Py_None;
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7766 PyObject *obj;
7767 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7768 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7769 Py_INCREF(obj);
7770 return Py_BuildValue((char *)"");
7771 }
7772 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7773 PyObject *resultobj;
7774 wxLogStderr *result;
7775 char *kwnames[] = {
7776 NULL
7777 };
7778
7779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = (wxLogStderr *)new wxLogStderr();
7783
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7788 return resultobj;
7789 fail:
7790 return NULL;
7791 }
7792
7793
7794 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7795 PyObject *obj;
7796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7797 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7798 Py_INCREF(obj);
7799 return Py_BuildValue((char *)"");
7800 }
7801 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj;
7803 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7804 wxLogTextCtrl *result;
7805 PyObject * obj0 = 0 ;
7806 char *kwnames[] = {
7807 (char *) "pTextCtrl", NULL
7808 };
7809
7810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7816
7817 wxPyEndAllowThreads(__tstate);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7821 return resultobj;
7822 fail:
7823 return NULL;
7824 }
7825
7826
7827 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7828 PyObject *obj;
7829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7830 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7831 Py_INCREF(obj);
7832 return Py_BuildValue((char *)"");
7833 }
7834 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7835 PyObject *resultobj;
7836 wxLogGui *result;
7837 char *kwnames[] = {
7838 NULL
7839 };
7840
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7842 {
7843 PyThreadState* __tstate = wxPyBeginAllowThreads();
7844 result = (wxLogGui *)new wxLogGui();
7845
7846 wxPyEndAllowThreads(__tstate);
7847 if (PyErr_Occurred()) SWIG_fail;
7848 }
7849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7850 return resultobj;
7851 fail:
7852 return NULL;
7853 }
7854
7855
7856 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7857 PyObject *obj;
7858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7859 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7860 Py_INCREF(obj);
7861 return Py_BuildValue((char *)"");
7862 }
7863 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7864 PyObject *resultobj;
7865 wxFrame *arg1 = (wxFrame *) 0 ;
7866 wxString *arg2 = 0 ;
7867 bool arg3 = (bool) True ;
7868 bool arg4 = (bool) True ;
7869 wxLogWindow *result;
7870 bool temp2 = False ;
7871 PyObject * obj0 = 0 ;
7872 PyObject * obj1 = 0 ;
7873 PyObject * obj2 = 0 ;
7874 PyObject * obj3 = 0 ;
7875 char *kwnames[] = {
7876 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7877 };
7878
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7882 {
7883 arg2 = wxString_in_helper(obj1);
7884 if (arg2 == NULL) SWIG_fail;
7885 temp2 = True;
7886 }
7887 if (obj2) {
7888 arg3 = (bool) SWIG_AsBool(obj2);
7889 if (PyErr_Occurred()) SWIG_fail;
7890 }
7891 if (obj3) {
7892 arg4 = (bool) SWIG_AsBool(obj3);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 {
7896 PyThreadState* __tstate = wxPyBeginAllowThreads();
7897 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7898
7899 wxPyEndAllowThreads(__tstate);
7900 if (PyErr_Occurred()) SWIG_fail;
7901 }
7902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7903 {
7904 if (temp2)
7905 delete arg2;
7906 }
7907 return resultobj;
7908 fail:
7909 {
7910 if (temp2)
7911 delete arg2;
7912 }
7913 return NULL;
7914 }
7915
7916
7917 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj;
7919 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7920 bool arg2 = (bool) True ;
7921 PyObject * obj0 = 0 ;
7922 PyObject * obj1 = 0 ;
7923 char *kwnames[] = {
7924 (char *) "self",(char *) "bShow", NULL
7925 };
7926
7927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7930 if (obj1) {
7931 arg2 = (bool) SWIG_AsBool(obj1);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
7934 {
7935 PyThreadState* __tstate = wxPyBeginAllowThreads();
7936 (arg1)->Show(arg2);
7937
7938 wxPyEndAllowThreads(__tstate);
7939 if (PyErr_Occurred()) SWIG_fail;
7940 }
7941 Py_INCREF(Py_None); resultobj = Py_None;
7942 return resultobj;
7943 fail:
7944 return NULL;
7945 }
7946
7947
7948 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7949 PyObject *resultobj;
7950 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7951 wxFrame *result;
7952 PyObject * obj0 = 0 ;
7953 char *kwnames[] = {
7954 (char *) "self", NULL
7955 };
7956
7957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7960 {
7961 PyThreadState* __tstate = wxPyBeginAllowThreads();
7962 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7963
7964 wxPyEndAllowThreads(__tstate);
7965 if (PyErr_Occurred()) SWIG_fail;
7966 }
7967 {
7968 resultobj = wxPyMake_wxObject(result, 0);
7969 }
7970 return resultobj;
7971 fail:
7972 return NULL;
7973 }
7974
7975
7976 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7977 PyObject *resultobj;
7978 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7979 wxLog *result;
7980 PyObject * obj0 = 0 ;
7981 char *kwnames[] = {
7982 (char *) "self", NULL
7983 };
7984
7985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj;
8004 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8005 bool result;
8006 PyObject * obj0 = 0 ;
8007 char *kwnames[] = {
8008 (char *) "self", NULL
8009 };
8010
8011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8014 {
8015 PyThreadState* __tstate = wxPyBeginAllowThreads();
8016 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8017
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 {
8022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8023 }
8024 return resultobj;
8025 fail:
8026 return NULL;
8027 }
8028
8029
8030 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj;
8032 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8033 bool arg2 ;
8034 PyObject * obj0 = 0 ;
8035 PyObject * obj1 = 0 ;
8036 char *kwnames[] = {
8037 (char *) "self",(char *) "bDoPass", NULL
8038 };
8039
8040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8043 arg2 = (bool) SWIG_AsBool(obj1);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 (arg1)->PassMessages(arg2);
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 Py_INCREF(Py_None); resultobj = Py_None;
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8060 PyObject *obj;
8061 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8062 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8063 Py_INCREF(obj);
8064 return Py_BuildValue((char *)"");
8065 }
8066 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8067 PyObject *resultobj;
8068 wxLog *arg1 = (wxLog *) 0 ;
8069 wxLogChain *result;
8070 PyObject * obj0 = 0 ;
8071 char *kwnames[] = {
8072 (char *) "logger", NULL
8073 };
8074
8075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8078 {
8079 PyThreadState* __tstate = wxPyBeginAllowThreads();
8080 result = (wxLogChain *)new wxLogChain(arg1);
8081
8082 wxPyEndAllowThreads(__tstate);
8083 if (PyErr_Occurred()) SWIG_fail;
8084 }
8085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8086 return resultobj;
8087 fail:
8088 return NULL;
8089 }
8090
8091
8092 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj;
8094 wxLogChain *arg1 = (wxLogChain *) 0 ;
8095 wxLog *arg2 = (wxLog *) 0 ;
8096 PyObject * obj0 = 0 ;
8097 PyObject * obj1 = 0 ;
8098 char *kwnames[] = {
8099 (char *) "self",(char *) "logger", NULL
8100 };
8101
8102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8105 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8107 {
8108 PyThreadState* __tstate = wxPyBeginAllowThreads();
8109 (arg1)->SetLog(arg2);
8110
8111 wxPyEndAllowThreads(__tstate);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 }
8114 Py_INCREF(Py_None); resultobj = Py_None;
8115 return resultobj;
8116 fail:
8117 return NULL;
8118 }
8119
8120
8121 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8122 PyObject *resultobj;
8123 wxLogChain *arg1 = (wxLogChain *) 0 ;
8124 bool arg2 ;
8125 PyObject * obj0 = 0 ;
8126 PyObject * obj1 = 0 ;
8127 char *kwnames[] = {
8128 (char *) "self",(char *) "bDoPass", NULL
8129 };
8130
8131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8134 arg2 = (bool) SWIG_AsBool(obj1);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 {
8137 PyThreadState* __tstate = wxPyBeginAllowThreads();
8138 (arg1)->PassMessages(arg2);
8139
8140 wxPyEndAllowThreads(__tstate);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 Py_INCREF(Py_None); resultobj = Py_None;
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj;
8152 wxLogChain *arg1 = (wxLogChain *) 0 ;
8153 bool result;
8154 PyObject * obj0 = 0 ;
8155 char *kwnames[] = {
8156 (char *) "self", NULL
8157 };
8158
8159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8162 {
8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
8164 result = (bool)(arg1)->IsPassingMessages();
8165
8166 wxPyEndAllowThreads(__tstate);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 }
8169 {
8170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8171 }
8172 return resultobj;
8173 fail:
8174 return NULL;
8175 }
8176
8177
8178 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8179 PyObject *resultobj;
8180 wxLogChain *arg1 = (wxLogChain *) 0 ;
8181 wxLog *result;
8182 PyObject * obj0 = 0 ;
8183 char *kwnames[] = {
8184 (char *) "self", NULL
8185 };
8186
8187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8190 {
8191 PyThreadState* __tstate = wxPyBeginAllowThreads();
8192 result = (wxLog *)(arg1)->GetOldLog();
8193
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8198 return resultobj;
8199 fail:
8200 return NULL;
8201 }
8202
8203
8204 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8205 PyObject *obj;
8206 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8207 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8208 Py_INCREF(obj);
8209 return Py_BuildValue((char *)"");
8210 }
8211 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8212 PyObject *resultobj;
8213 unsigned long result;
8214 char *kwnames[] = {
8215 NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8219 {
8220 PyThreadState* __tstate = wxPyBeginAllowThreads();
8221 result = (unsigned long)wxSysErrorCode();
8222
8223 wxPyEndAllowThreads(__tstate);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 }
8226 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8227 return resultobj;
8228 fail:
8229 return NULL;
8230 }
8231
8232
8233 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8234 PyObject *resultobj;
8235 unsigned long arg1 = (unsigned long) 0 ;
8236 wxString result;
8237 PyObject * obj0 = 0 ;
8238 char *kwnames[] = {
8239 (char *) "nErrCode", NULL
8240 };
8241
8242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8243 if (obj0) {
8244 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
8247 {
8248 PyThreadState* __tstate = wxPyBeginAllowThreads();
8249 result = wxSysErrorMsg(arg1);
8250
8251 wxPyEndAllowThreads(__tstate);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 {
8255 #if wxUSE_UNICODE
8256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8257 #else
8258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8259 #endif
8260 }
8261 return resultobj;
8262 fail:
8263 return NULL;
8264 }
8265
8266
8267 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8268 PyObject *resultobj;
8269 wxString *arg1 = 0 ;
8270 bool temp1 = False ;
8271 PyObject * obj0 = 0 ;
8272 char *kwnames[] = {
8273 (char *) "msg", NULL
8274 };
8275
8276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8277 {
8278 arg1 = wxString_in_helper(obj0);
8279 if (arg1 == NULL) SWIG_fail;
8280 temp1 = True;
8281 }
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 wxLogFatalError((wxString const &)*arg1);
8285
8286 wxPyEndAllowThreads(__tstate);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 Py_INCREF(Py_None); resultobj = Py_None;
8290 {
8291 if (temp1)
8292 delete arg1;
8293 }
8294 return resultobj;
8295 fail:
8296 {
8297 if (temp1)
8298 delete arg1;
8299 }
8300 return NULL;
8301 }
8302
8303
8304 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8305 PyObject *resultobj;
8306 wxString *arg1 = 0 ;
8307 bool temp1 = False ;
8308 PyObject * obj0 = 0 ;
8309 char *kwnames[] = {
8310 (char *) "msg", NULL
8311 };
8312
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8314 {
8315 arg1 = wxString_in_helper(obj0);
8316 if (arg1 == NULL) SWIG_fail;
8317 temp1 = True;
8318 }
8319 {
8320 PyThreadState* __tstate = wxPyBeginAllowThreads();
8321 wxLogError((wxString const &)*arg1);
8322
8323 wxPyEndAllowThreads(__tstate);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 Py_INCREF(Py_None); resultobj = Py_None;
8327 {
8328 if (temp1)
8329 delete arg1;
8330 }
8331 return resultobj;
8332 fail:
8333 {
8334 if (temp1)
8335 delete arg1;
8336 }
8337 return NULL;
8338 }
8339
8340
8341 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8342 PyObject *resultobj;
8343 wxString *arg1 = 0 ;
8344 bool temp1 = False ;
8345 PyObject * obj0 = 0 ;
8346 char *kwnames[] = {
8347 (char *) "msg", NULL
8348 };
8349
8350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8351 {
8352 arg1 = wxString_in_helper(obj0);
8353 if (arg1 == NULL) SWIG_fail;
8354 temp1 = True;
8355 }
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 wxLogWarning((wxString const &)*arg1);
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 Py_INCREF(Py_None); resultobj = Py_None;
8364 {
8365 if (temp1)
8366 delete arg1;
8367 }
8368 return resultobj;
8369 fail:
8370 {
8371 if (temp1)
8372 delete arg1;
8373 }
8374 return NULL;
8375 }
8376
8377
8378 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj;
8380 wxString *arg1 = 0 ;
8381 bool temp1 = False ;
8382 PyObject * obj0 = 0 ;
8383 char *kwnames[] = {
8384 (char *) "msg", NULL
8385 };
8386
8387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8388 {
8389 arg1 = wxString_in_helper(obj0);
8390 if (arg1 == NULL) SWIG_fail;
8391 temp1 = True;
8392 }
8393 {
8394 PyThreadState* __tstate = wxPyBeginAllowThreads();
8395 wxLogMessage((wxString const &)*arg1);
8396
8397 wxPyEndAllowThreads(__tstate);
8398 if (PyErr_Occurred()) SWIG_fail;
8399 }
8400 Py_INCREF(Py_None); resultobj = Py_None;
8401 {
8402 if (temp1)
8403 delete arg1;
8404 }
8405 return resultobj;
8406 fail:
8407 {
8408 if (temp1)
8409 delete arg1;
8410 }
8411 return NULL;
8412 }
8413
8414
8415 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8416 PyObject *resultobj;
8417 wxString *arg1 = 0 ;
8418 bool temp1 = False ;
8419 PyObject * obj0 = 0 ;
8420 char *kwnames[] = {
8421 (char *) "msg", NULL
8422 };
8423
8424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8425 {
8426 arg1 = wxString_in_helper(obj0);
8427 if (arg1 == NULL) SWIG_fail;
8428 temp1 = True;
8429 }
8430 {
8431 PyThreadState* __tstate = wxPyBeginAllowThreads();
8432 wxLogInfo((wxString const &)*arg1);
8433
8434 wxPyEndAllowThreads(__tstate);
8435 if (PyErr_Occurred()) SWIG_fail;
8436 }
8437 Py_INCREF(Py_None); resultobj = Py_None;
8438 {
8439 if (temp1)
8440 delete arg1;
8441 }
8442 return resultobj;
8443 fail:
8444 {
8445 if (temp1)
8446 delete arg1;
8447 }
8448 return NULL;
8449 }
8450
8451
8452 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj;
8454 wxString *arg1 = 0 ;
8455 bool temp1 = False ;
8456 PyObject * obj0 = 0 ;
8457 char *kwnames[] = {
8458 (char *) "msg", NULL
8459 };
8460
8461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8462 {
8463 arg1 = wxString_in_helper(obj0);
8464 if (arg1 == NULL) SWIG_fail;
8465 temp1 = True;
8466 }
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 wxLogDebug((wxString const &)*arg1);
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 Py_INCREF(Py_None); resultobj = Py_None;
8475 {
8476 if (temp1)
8477 delete arg1;
8478 }
8479 return resultobj;
8480 fail:
8481 {
8482 if (temp1)
8483 delete arg1;
8484 }
8485 return NULL;
8486 }
8487
8488
8489 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8490 PyObject *resultobj;
8491 wxString *arg1 = 0 ;
8492 bool temp1 = False ;
8493 PyObject * obj0 = 0 ;
8494 char *kwnames[] = {
8495 (char *) "msg", NULL
8496 };
8497
8498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8499 {
8500 arg1 = wxString_in_helper(obj0);
8501 if (arg1 == NULL) SWIG_fail;
8502 temp1 = True;
8503 }
8504 {
8505 PyThreadState* __tstate = wxPyBeginAllowThreads();
8506 wxLogVerbose((wxString const &)*arg1);
8507
8508 wxPyEndAllowThreads(__tstate);
8509 if (PyErr_Occurred()) SWIG_fail;
8510 }
8511 Py_INCREF(Py_None); resultobj = Py_None;
8512 {
8513 if (temp1)
8514 delete arg1;
8515 }
8516 return resultobj;
8517 fail:
8518 {
8519 if (temp1)
8520 delete arg1;
8521 }
8522 return NULL;
8523 }
8524
8525
8526 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8527 PyObject *resultobj;
8528 wxString *arg1 = 0 ;
8529 bool temp1 = False ;
8530 PyObject * obj0 = 0 ;
8531 char *kwnames[] = {
8532 (char *) "msg", NULL
8533 };
8534
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8536 {
8537 arg1 = wxString_in_helper(obj0);
8538 if (arg1 == NULL) SWIG_fail;
8539 temp1 = True;
8540 }
8541 {
8542 PyThreadState* __tstate = wxPyBeginAllowThreads();
8543 wxLogStatus((wxString const &)*arg1);
8544
8545 wxPyEndAllowThreads(__tstate);
8546 if (PyErr_Occurred()) SWIG_fail;
8547 }
8548 Py_INCREF(Py_None); resultobj = Py_None;
8549 {
8550 if (temp1)
8551 delete arg1;
8552 }
8553 return resultobj;
8554 fail:
8555 {
8556 if (temp1)
8557 delete arg1;
8558 }
8559 return NULL;
8560 }
8561
8562
8563 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj;
8565 wxFrame *arg1 = (wxFrame *) 0 ;
8566 wxString *arg2 = 0 ;
8567 bool temp2 = False ;
8568 PyObject * obj0 = 0 ;
8569 PyObject * obj1 = 0 ;
8570 char *kwnames[] = {
8571 (char *) "pFrame",(char *) "msg", NULL
8572 };
8573
8574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8577 {
8578 arg2 = wxString_in_helper(obj1);
8579 if (arg2 == NULL) SWIG_fail;
8580 temp2 = True;
8581 }
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 wxLogStatus(arg1,(wxString const &)*arg2);
8585
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 Py_INCREF(Py_None); resultobj = Py_None;
8590 {
8591 if (temp2)
8592 delete arg2;
8593 }
8594 return resultobj;
8595 fail:
8596 {
8597 if (temp2)
8598 delete arg2;
8599 }
8600 return NULL;
8601 }
8602
8603
8604 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8605 PyObject *resultobj;
8606 wxString *arg1 = 0 ;
8607 bool temp1 = False ;
8608 PyObject * obj0 = 0 ;
8609 char *kwnames[] = {
8610 (char *) "msg", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8614 {
8615 arg1 = wxString_in_helper(obj0);
8616 if (arg1 == NULL) SWIG_fail;
8617 temp1 = True;
8618 }
8619 {
8620 PyThreadState* __tstate = wxPyBeginAllowThreads();
8621 wxLogSysError((wxString const &)*arg1);
8622
8623 wxPyEndAllowThreads(__tstate);
8624 if (PyErr_Occurred()) SWIG_fail;
8625 }
8626 Py_INCREF(Py_None); resultobj = Py_None;
8627 {
8628 if (temp1)
8629 delete arg1;
8630 }
8631 return resultobj;
8632 fail:
8633 {
8634 if (temp1)
8635 delete arg1;
8636 }
8637 return NULL;
8638 }
8639
8640
8641 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8642 PyObject *resultobj;
8643 unsigned long arg1 ;
8644 wxString *arg2 = 0 ;
8645 bool temp2 = False ;
8646 PyObject * obj0 = 0 ;
8647 PyObject * obj1 = 0 ;
8648
8649 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8650 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 {
8653 arg2 = wxString_in_helper(obj1);
8654 if (arg2 == NULL) SWIG_fail;
8655 temp2 = True;
8656 }
8657 {
8658 PyThreadState* __tstate = wxPyBeginAllowThreads();
8659 wxLogTrace(arg1,(wxString const &)*arg2);
8660
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 Py_INCREF(Py_None); resultobj = Py_None;
8665 {
8666 if (temp2)
8667 delete arg2;
8668 }
8669 return resultobj;
8670 fail:
8671 {
8672 if (temp2)
8673 delete arg2;
8674 }
8675 return NULL;
8676 }
8677
8678
8679 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8680 PyObject *resultobj;
8681 wxString *arg1 = 0 ;
8682 wxString *arg2 = 0 ;
8683 bool temp1 = False ;
8684 bool temp2 = False ;
8685 PyObject * obj0 = 0 ;
8686 PyObject * obj1 = 0 ;
8687
8688 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8689 {
8690 arg1 = wxString_in_helper(obj0);
8691 if (arg1 == NULL) SWIG_fail;
8692 temp1 = True;
8693 }
8694 {
8695 arg2 = wxString_in_helper(obj1);
8696 if (arg2 == NULL) SWIG_fail;
8697 temp2 = True;
8698 }
8699 {
8700 PyThreadState* __tstate = wxPyBeginAllowThreads();
8701 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8702
8703 wxPyEndAllowThreads(__tstate);
8704 if (PyErr_Occurred()) SWIG_fail;
8705 }
8706 Py_INCREF(Py_None); resultobj = Py_None;
8707 {
8708 if (temp1)
8709 delete arg1;
8710 }
8711 {
8712 if (temp2)
8713 delete arg2;
8714 }
8715 return resultobj;
8716 fail:
8717 {
8718 if (temp1)
8719 delete arg1;
8720 }
8721 {
8722 if (temp2)
8723 delete arg2;
8724 }
8725 return NULL;
8726 }
8727
8728
8729 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8730 int argc;
8731 PyObject *argv[3];
8732 int ii;
8733
8734 argc = PyObject_Length(args);
8735 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8736 argv[ii] = PyTuple_GetItem(args,ii);
8737 }
8738 if (argc == 2) {
8739 int _v;
8740 {
8741 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8742 }
8743 if (_v) {
8744 {
8745 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8746 }
8747 if (_v) {
8748 return _wrap_LogTrace__SWIG_1(self,args);
8749 }
8750 }
8751 }
8752 if (argc == 2) {
8753 int _v;
8754 _v = SWIG_CheckUnsignedLong(argv[0]);
8755 if (_v) {
8756 {
8757 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8758 }
8759 if (_v) {
8760 return _wrap_LogTrace__SWIG_0(self,args);
8761 }
8762 }
8763 }
8764
8765 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8766 return NULL;
8767 }
8768
8769
8770 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8771 PyObject *resultobj;
8772 unsigned long arg1 ;
8773 wxString *arg2 = 0 ;
8774 bool temp2 = False ;
8775 PyObject * obj0 = 0 ;
8776 PyObject * obj1 = 0 ;
8777 char *kwnames[] = {
8778 (char *) "level",(char *) "msg", NULL
8779 };
8780
8781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8782 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8783 if (PyErr_Occurred()) SWIG_fail;
8784 {
8785 arg2 = wxString_in_helper(obj1);
8786 if (arg2 == NULL) SWIG_fail;
8787 temp2 = True;
8788 }
8789 {
8790 PyThreadState* __tstate = wxPyBeginAllowThreads();
8791 wxLogGeneric(arg1,(wxString const &)*arg2);
8792
8793 wxPyEndAllowThreads(__tstate);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 }
8796 Py_INCREF(Py_None); resultobj = Py_None;
8797 {
8798 if (temp2)
8799 delete arg2;
8800 }
8801 return resultobj;
8802 fail:
8803 {
8804 if (temp2)
8805 delete arg2;
8806 }
8807 return NULL;
8808 }
8809
8810
8811 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8812 PyObject *resultobj;
8813 wxString *arg1 = 0 ;
8814 wxString *arg2 = 0 ;
8815 bool temp1 = False ;
8816 bool temp2 = False ;
8817 PyObject * obj0 = 0 ;
8818 PyObject * obj1 = 0 ;
8819 char *kwnames[] = {
8820 (char *) "title",(char *) "text", NULL
8821 };
8822
8823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8824 {
8825 arg1 = wxString_in_helper(obj0);
8826 if (arg1 == NULL) SWIG_fail;
8827 temp1 = True;
8828 }
8829 {
8830 arg2 = wxString_in_helper(obj1);
8831 if (arg2 == NULL) SWIG_fail;
8832 temp2 = True;
8833 }
8834 {
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8837
8838 wxPyEndAllowThreads(__tstate);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 Py_INCREF(Py_None); resultobj = Py_None;
8842 {
8843 if (temp1)
8844 delete arg1;
8845 }
8846 {
8847 if (temp2)
8848 delete arg2;
8849 }
8850 return resultobj;
8851 fail:
8852 {
8853 if (temp1)
8854 delete arg1;
8855 }
8856 {
8857 if (temp2)
8858 delete arg2;
8859 }
8860 return NULL;
8861 }
8862
8863
8864 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj;
8866 wxLogNull *result;
8867 char *kwnames[] = {
8868 NULL
8869 };
8870
8871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8872 {
8873 PyThreadState* __tstate = wxPyBeginAllowThreads();
8874 result = (wxLogNull *)new wxLogNull();
8875
8876 wxPyEndAllowThreads(__tstate);
8877 if (PyErr_Occurred()) SWIG_fail;
8878 }
8879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8880 return resultobj;
8881 fail:
8882 return NULL;
8883 }
8884
8885
8886 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8887 PyObject *resultobj;
8888 wxLogNull *arg1 = (wxLogNull *) 0 ;
8889 PyObject * obj0 = 0 ;
8890 char *kwnames[] = {
8891 (char *) "self", NULL
8892 };
8893
8894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8897 {
8898 PyThreadState* __tstate = wxPyBeginAllowThreads();
8899 delete arg1;
8900
8901 wxPyEndAllowThreads(__tstate);
8902 if (PyErr_Occurred()) SWIG_fail;
8903 }
8904 Py_INCREF(Py_None); resultobj = Py_None;
8905 return resultobj;
8906 fail:
8907 return NULL;
8908 }
8909
8910
8911 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8912 PyObject *obj;
8913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8914 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8915 Py_INCREF(obj);
8916 return Py_BuildValue((char *)"");
8917 }
8918 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8919 PyObject *resultobj;
8920 wxPyLog *result;
8921 char *kwnames[] = {
8922 NULL
8923 };
8924
8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8926 {
8927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8928 result = (wxPyLog *)new wxPyLog();
8929
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8934 return resultobj;
8935 fail:
8936 return NULL;
8937 }
8938
8939
8940 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj;
8942 wxPyLog *arg1 = (wxPyLog *) 0 ;
8943 PyObject *arg2 = (PyObject *) 0 ;
8944 PyObject *arg3 = (PyObject *) 0 ;
8945 PyObject * obj0 = 0 ;
8946 PyObject * obj1 = 0 ;
8947 PyObject * obj2 = 0 ;
8948 char *kwnames[] = {
8949 (char *) "self",(char *) "self",(char *) "_class", NULL
8950 };
8951
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8955 arg2 = obj1;
8956 arg3 = obj2;
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 (arg1)->_setCallbackInfo(arg2,arg3);
8960
8961 wxPyEndAllowThreads(__tstate);
8962 if (PyErr_Occurred()) SWIG_fail;
8963 }
8964 Py_INCREF(Py_None); resultobj = Py_None;
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8972 PyObject *obj;
8973 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8974 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8975 Py_INCREF(obj);
8976 return Py_BuildValue((char *)"");
8977 }
8978 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8979 PyObject *resultobj;
8980 int arg1 ;
8981 int arg2 = (int) wxSIGTERM ;
8982 int result;
8983 PyObject * obj0 = 0 ;
8984 PyObject * obj1 = 0 ;
8985 char *kwnames[] = {
8986 (char *) "pid",(char *) "sig", NULL
8987 };
8988
8989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8990 arg1 = (int) SWIG_AsInt(obj0);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 if (obj1) {
8993 arg2 = (wxSignal) SWIG_AsInt(obj1);
8994 if (PyErr_Occurred()) SWIG_fail;
8995 }
8996 {
8997 PyThreadState* __tstate = wxPyBeginAllowThreads();
8998 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8999
9000 wxPyEndAllowThreads(__tstate);
9001 if (PyErr_Occurred()) SWIG_fail;
9002 }
9003 resultobj = SWIG_FromInt((int)result);
9004 return resultobj;
9005 fail:
9006 return NULL;
9007 }
9008
9009
9010 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj;
9012 int arg1 ;
9013 bool result;
9014 PyObject * obj0 = 0 ;
9015 char *kwnames[] = {
9016 (char *) "pid", NULL
9017 };
9018
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9020 arg1 = (int) SWIG_AsInt(obj0);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 result = (bool)wxPyProcess::Exists(arg1);
9025
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 {
9030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9031 }
9032 return resultobj;
9033 fail:
9034 return NULL;
9035 }
9036
9037
9038 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
9039 PyObject *resultobj;
9040 wxString *arg1 = 0 ;
9041 int arg2 = (int) wxEXEC_ASYNC ;
9042 wxPyProcess *result;
9043 bool temp1 = False ;
9044 PyObject * obj0 = 0 ;
9045 PyObject * obj1 = 0 ;
9046 char *kwnames[] = {
9047 (char *) "cmd",(char *) "flags", NULL
9048 };
9049
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9051 {
9052 arg1 = wxString_in_helper(obj0);
9053 if (arg1 == NULL) SWIG_fail;
9054 temp1 = True;
9055 }
9056 if (obj1) {
9057 arg2 = (int) SWIG_AsInt(obj1);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 {
9061 PyThreadState* __tstate = wxPyBeginAllowThreads();
9062 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9063
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9068 {
9069 if (temp1)
9070 delete arg1;
9071 }
9072 return resultobj;
9073 fail:
9074 {
9075 if (temp1)
9076 delete arg1;
9077 }
9078 return NULL;
9079 }
9080
9081
9082 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj;
9084 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9085 int arg2 = (int) -1 ;
9086 wxPyProcess *result;
9087 PyObject * obj0 = 0 ;
9088 PyObject * obj1 = 0 ;
9089 char *kwnames[] = {
9090 (char *) "parent",(char *) "id", NULL
9091 };
9092
9093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9094 if (obj0) {
9095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9097 }
9098 if (obj1) {
9099 arg2 = (int) SWIG_AsInt(obj1);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9105
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9110 return resultobj;
9111 fail:
9112 return NULL;
9113 }
9114
9115
9116 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9117 PyObject *resultobj;
9118 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9119 PyObject *arg2 = (PyObject *) 0 ;
9120 PyObject *arg3 = (PyObject *) 0 ;
9121 PyObject * obj0 = 0 ;
9122 PyObject * obj1 = 0 ;
9123 PyObject * obj2 = 0 ;
9124 char *kwnames[] = {
9125 (char *) "self",(char *) "self",(char *) "_class", NULL
9126 };
9127
9128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9131 arg2 = obj1;
9132 arg3 = obj2;
9133 {
9134 PyThreadState* __tstate = wxPyBeginAllowThreads();
9135 (arg1)->_setCallbackInfo(arg2,arg3);
9136
9137 wxPyEndAllowThreads(__tstate);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 Py_INCREF(Py_None); resultobj = Py_None;
9141 return resultobj;
9142 fail:
9143 return NULL;
9144 }
9145
9146
9147 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9148 PyObject *resultobj;
9149 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9150 int arg2 ;
9151 int arg3 ;
9152 PyObject * obj0 = 0 ;
9153 PyObject * obj1 = 0 ;
9154 PyObject * obj2 = 0 ;
9155 char *kwnames[] = {
9156 (char *) "self",(char *) "pid",(char *) "status", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9162 arg2 = (int) SWIG_AsInt(obj1);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 arg3 = (int) SWIG_AsInt(obj2);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 (arg1)->base_OnTerminate(arg2,arg3);
9169
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 Py_INCREF(Py_None); resultobj = Py_None;
9174 return resultobj;
9175 fail:
9176 return NULL;
9177 }
9178
9179
9180 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9181 PyObject *resultobj;
9182 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9183 PyObject * obj0 = 0 ;
9184 char *kwnames[] = {
9185 (char *) "self", NULL
9186 };
9187
9188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9191 {
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 (arg1)->Redirect();
9194
9195 wxPyEndAllowThreads(__tstate);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 }
9198 Py_INCREF(Py_None); resultobj = Py_None;
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj;
9207 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9208 bool result;
9209 PyObject * obj0 = 0 ;
9210 char *kwnames[] = {
9211 (char *) "self", NULL
9212 };
9213
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 result = (bool)(arg1)->IsRedirected();
9220
9221 wxPyEndAllowThreads(__tstate);
9222 if (PyErr_Occurred()) SWIG_fail;
9223 }
9224 {
9225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9226 }
9227 return resultobj;
9228 fail:
9229 return NULL;
9230 }
9231
9232
9233 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9234 PyObject *resultobj;
9235 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9236 PyObject * obj0 = 0 ;
9237 char *kwnames[] = {
9238 (char *) "self", NULL
9239 };
9240
9241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->Detach();
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 Py_INCREF(Py_None); resultobj = Py_None;
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9261 wxInputStream *result;
9262 PyObject * obj0 = 0 ;
9263 char *kwnames[] = {
9264 (char *) "self", NULL
9265 };
9266
9267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (wxInputStream *)(arg1)->GetInputStream();
9273
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
9277 {
9278 wxPyInputStream * _ptr = NULL;
9279
9280 if (result) {
9281 _ptr = new wxPyInputStream(result);
9282 }
9283 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9284 }
9285 return resultobj;
9286 fail:
9287 return NULL;
9288 }
9289
9290
9291 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj;
9293 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9294 wxInputStream *result;
9295 PyObject * obj0 = 0 ;
9296 char *kwnames[] = {
9297 (char *) "self", NULL
9298 };
9299
9300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 result = (wxInputStream *)(arg1)->GetErrorStream();
9306
9307 wxPyEndAllowThreads(__tstate);
9308 if (PyErr_Occurred()) SWIG_fail;
9309 }
9310 {
9311 wxPyInputStream * _ptr = NULL;
9312
9313 if (result) {
9314 _ptr = new wxPyInputStream(result);
9315 }
9316 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9317 }
9318 return resultobj;
9319 fail:
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9327 wxOutputStream *result;
9328 PyObject * obj0 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "self", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (wxOutputStream *)(arg1)->GetOutputStream();
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
9343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9344 return resultobj;
9345 fail:
9346 return NULL;
9347 }
9348
9349
9350 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9351 PyObject *resultobj;
9352 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9353 PyObject * obj0 = 0 ;
9354 char *kwnames[] = {
9355 (char *) "self", NULL
9356 };
9357
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9361 {
9362 PyThreadState* __tstate = wxPyBeginAllowThreads();
9363 (arg1)->CloseOutput();
9364
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 Py_INCREF(Py_None); resultobj = Py_None;
9369 return resultobj;
9370 fail:
9371 return NULL;
9372 }
9373
9374
9375 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9376 PyObject *resultobj;
9377 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9378 bool result;
9379 PyObject * obj0 = 0 ;
9380 char *kwnames[] = {
9381 (char *) "self", NULL
9382 };
9383
9384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9390
9391 wxPyEndAllowThreads(__tstate);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 }
9394 {
9395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9396 }
9397 return resultobj;
9398 fail:
9399 return NULL;
9400 }
9401
9402
9403 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj;
9405 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9406 bool result;
9407 PyObject * obj0 = 0 ;
9408 char *kwnames[] = {
9409 (char *) "self", NULL
9410 };
9411
9412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9415 {
9416 PyThreadState* __tstate = wxPyBeginAllowThreads();
9417 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9418
9419 wxPyEndAllowThreads(__tstate);
9420 if (PyErr_Occurred()) SWIG_fail;
9421 }
9422 {
9423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9424 }
9425 return resultobj;
9426 fail:
9427 return NULL;
9428 }
9429
9430
9431 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9432 PyObject *resultobj;
9433 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9434 bool result;
9435 PyObject * obj0 = 0 ;
9436 char *kwnames[] = {
9437 (char *) "self", NULL
9438 };
9439
9440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 {
9451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9452 }
9453 return resultobj;
9454 fail:
9455 return NULL;
9456 }
9457
9458
9459 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9460 PyObject *obj;
9461 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9462 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9463 Py_INCREF(obj);
9464 return Py_BuildValue((char *)"");
9465 }
9466 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj;
9468 int arg1 = (int) 0 ;
9469 int arg2 = (int) 0 ;
9470 int arg3 = (int) 0 ;
9471 wxProcessEvent *result;
9472 PyObject * obj0 = 0 ;
9473 PyObject * obj1 = 0 ;
9474 PyObject * obj2 = 0 ;
9475 char *kwnames[] = {
9476 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9477 };
9478
9479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9480 if (obj0) {
9481 arg1 = (int) SWIG_AsInt(obj0);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 if (obj1) {
9485 arg2 = (int) SWIG_AsInt(obj1);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 if (obj2) {
9489 arg3 = (int) SWIG_AsInt(obj2);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 {
9493 PyThreadState* __tstate = wxPyBeginAllowThreads();
9494 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9495
9496 wxPyEndAllowThreads(__tstate);
9497 if (PyErr_Occurred()) SWIG_fail;
9498 }
9499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9500 return resultobj;
9501 fail:
9502 return NULL;
9503 }
9504
9505
9506 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9507 PyObject *resultobj;
9508 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9509 int result;
9510 PyObject * obj0 = 0 ;
9511 char *kwnames[] = {
9512 (char *) "self", NULL
9513 };
9514
9515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9518 {
9519 PyThreadState* __tstate = wxPyBeginAllowThreads();
9520 result = (int)(arg1)->GetPid();
9521
9522 wxPyEndAllowThreads(__tstate);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 resultobj = SWIG_FromInt((int)result);
9526 return resultobj;
9527 fail:
9528 return NULL;
9529 }
9530
9531
9532 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9533 PyObject *resultobj;
9534 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9535 int result;
9536 PyObject * obj0 = 0 ;
9537 char *kwnames[] = {
9538 (char *) "self", NULL
9539 };
9540
9541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
9546 result = (int)(arg1)->GetExitCode();
9547
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 resultobj = SWIG_FromInt((int)result);
9552 return resultobj;
9553 fail:
9554 return NULL;
9555 }
9556
9557
9558 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9559 PyObject *resultobj;
9560 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9561 int arg2 ;
9562 PyObject * obj0 = 0 ;
9563 PyObject * obj1 = 0 ;
9564 char *kwnames[] = {
9565 (char *) "self",(char *) "m_pid", NULL
9566 };
9567
9568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9571 arg2 = (int) SWIG_AsInt(obj1);
9572 if (PyErr_Occurred()) SWIG_fail;
9573 if (arg1) (arg1)->m_pid = arg2;
9574
9575 Py_INCREF(Py_None); resultobj = Py_None;
9576 return resultobj;
9577 fail:
9578 return NULL;
9579 }
9580
9581
9582 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9583 PyObject *resultobj;
9584 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9585 int result;
9586 PyObject * obj0 = 0 ;
9587 char *kwnames[] = {
9588 (char *) "self", NULL
9589 };
9590
9591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9594 result = (int) ((arg1)->m_pid);
9595
9596 resultobj = SWIG_FromInt((int)result);
9597 return resultobj;
9598 fail:
9599 return NULL;
9600 }
9601
9602
9603 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9606 int arg2 ;
9607 PyObject * obj0 = 0 ;
9608 PyObject * obj1 = 0 ;
9609 char *kwnames[] = {
9610 (char *) "self",(char *) "m_exitcode", NULL
9611 };
9612
9613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9616 arg2 = (int) SWIG_AsInt(obj1);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 if (arg1) (arg1)->m_exitcode = arg2;
9619
9620 Py_INCREF(Py_None); resultobj = Py_None;
9621 return resultobj;
9622 fail:
9623 return NULL;
9624 }
9625
9626
9627 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj;
9629 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9630 int result;
9631 PyObject * obj0 = 0 ;
9632 char *kwnames[] = {
9633 (char *) "self", NULL
9634 };
9635
9636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9639 result = (int) ((arg1)->m_exitcode);
9640
9641 resultobj = SWIG_FromInt((int)result);
9642 return resultobj;
9643 fail:
9644 return NULL;
9645 }
9646
9647
9648 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9649 PyObject *obj;
9650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9651 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9652 Py_INCREF(obj);
9653 return Py_BuildValue((char *)"");
9654 }
9655 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9656 PyObject *resultobj;
9657 wxString *arg1 = 0 ;
9658 int arg2 = (int) wxEXEC_ASYNC ;
9659 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9660 long result;
9661 bool temp1 = False ;
9662 PyObject * obj0 = 0 ;
9663 PyObject * obj1 = 0 ;
9664 PyObject * obj2 = 0 ;
9665 char *kwnames[] = {
9666 (char *) "command",(char *) "flags",(char *) "process", NULL
9667 };
9668
9669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9670 {
9671 arg1 = wxString_in_helper(obj0);
9672 if (arg1 == NULL) SWIG_fail;
9673 temp1 = True;
9674 }
9675 if (obj1) {
9676 arg2 = (int) SWIG_AsInt(obj1);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 if (obj2) {
9680 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9682 }
9683 {
9684 if (!wxPyCheckForApp()) SWIG_fail;
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9687
9688 wxPyEndAllowThreads(__tstate);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 resultobj = SWIG_FromLong((long)result);
9692 {
9693 if (temp1)
9694 delete arg1;
9695 }
9696 return resultobj;
9697 fail:
9698 {
9699 if (temp1)
9700 delete arg1;
9701 }
9702 return NULL;
9703 }
9704
9705
9706 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9707 PyObject *resultobj;
9708 int arg1 = (int) wxJOYSTICK1 ;
9709 wxJoystick *result;
9710 PyObject * obj0 = 0 ;
9711 char *kwnames[] = {
9712 (char *) "joystick", NULL
9713 };
9714
9715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9716 if (obj0) {
9717 arg1 = (int) SWIG_AsInt(obj0);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 {
9721 if (!wxPyCheckForApp()) SWIG_fail;
9722 PyThreadState* __tstate = wxPyBeginAllowThreads();
9723 result = (wxJoystick *)new wxJoystick(arg1);
9724
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9729 return resultobj;
9730 fail:
9731 return NULL;
9732 }
9733
9734
9735 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj;
9737 wxJoystick *arg1 = (wxJoystick *) 0 ;
9738 PyObject * obj0 = 0 ;
9739 char *kwnames[] = {
9740 (char *) "self", NULL
9741 };
9742
9743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9746 {
9747 PyThreadState* __tstate = wxPyBeginAllowThreads();
9748 delete arg1;
9749
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 Py_INCREF(Py_None); resultobj = Py_None;
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj;
9762 wxJoystick *arg1 = (wxJoystick *) 0 ;
9763 wxPoint result;
9764 PyObject * obj0 = 0 ;
9765 char *kwnames[] = {
9766 (char *) "self", NULL
9767 };
9768
9769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 result = (arg1)->GetPosition();
9775
9776 wxPyEndAllowThreads(__tstate);
9777 if (PyErr_Occurred()) SWIG_fail;
9778 }
9779 {
9780 wxPoint * resultptr;
9781 resultptr = new wxPoint((wxPoint &) result);
9782 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9783 }
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj;
9792 wxJoystick *arg1 = (wxJoystick *) 0 ;
9793 int result;
9794 PyObject * obj0 = 0 ;
9795 char *kwnames[] = {
9796 (char *) "self", NULL
9797 };
9798
9799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9802 {
9803 PyThreadState* __tstate = wxPyBeginAllowThreads();
9804 result = (int)(arg1)->GetZPosition();
9805
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_FromInt((int)result);
9810 return resultobj;
9811 fail:
9812 return NULL;
9813 }
9814
9815
9816 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj;
9818 wxJoystick *arg1 = (wxJoystick *) 0 ;
9819 int result;
9820 PyObject * obj0 = 0 ;
9821 char *kwnames[] = {
9822 (char *) "self", NULL
9823 };
9824
9825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9828 {
9829 PyThreadState* __tstate = wxPyBeginAllowThreads();
9830 result = (int)(arg1)->GetButtonState();
9831
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_FromInt((int)result);
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj;
9844 wxJoystick *arg1 = (wxJoystick *) 0 ;
9845 int result;
9846 PyObject * obj0 = 0 ;
9847 char *kwnames[] = {
9848 (char *) "self", NULL
9849 };
9850
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 result = (int)(arg1)->GetPOVPosition();
9857
9858 wxPyEndAllowThreads(__tstate);
9859 if (PyErr_Occurred()) SWIG_fail;
9860 }
9861 resultobj = SWIG_FromInt((int)result);
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxJoystick *arg1 = (wxJoystick *) 0 ;
9871 int result;
9872 PyObject * obj0 = 0 ;
9873 char *kwnames[] = {
9874 (char *) "self", NULL
9875 };
9876
9877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9880 {
9881 PyThreadState* __tstate = wxPyBeginAllowThreads();
9882 result = (int)(arg1)->GetPOVCTSPosition();
9883
9884 wxPyEndAllowThreads(__tstate);
9885 if (PyErr_Occurred()) SWIG_fail;
9886 }
9887 resultobj = SWIG_FromInt((int)result);
9888 return resultobj;
9889 fail:
9890 return NULL;
9891 }
9892
9893
9894 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9895 PyObject *resultobj;
9896 wxJoystick *arg1 = (wxJoystick *) 0 ;
9897 int result;
9898 PyObject * obj0 = 0 ;
9899 char *kwnames[] = {
9900 (char *) "self", NULL
9901 };
9902
9903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9906 {
9907 PyThreadState* __tstate = wxPyBeginAllowThreads();
9908 result = (int)(arg1)->GetRudderPosition();
9909
9910 wxPyEndAllowThreads(__tstate);
9911 if (PyErr_Occurred()) SWIG_fail;
9912 }
9913 resultobj = SWIG_FromInt((int)result);
9914 return resultobj;
9915 fail:
9916 return NULL;
9917 }
9918
9919
9920 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9921 PyObject *resultobj;
9922 wxJoystick *arg1 = (wxJoystick *) 0 ;
9923 int result;
9924 PyObject * obj0 = 0 ;
9925 char *kwnames[] = {
9926 (char *) "self", NULL
9927 };
9928
9929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9932 {
9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
9934 result = (int)(arg1)->GetUPosition();
9935
9936 wxPyEndAllowThreads(__tstate);
9937 if (PyErr_Occurred()) SWIG_fail;
9938 }
9939 resultobj = SWIG_FromInt((int)result);
9940 return resultobj;
9941 fail:
9942 return NULL;
9943 }
9944
9945
9946 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj;
9948 wxJoystick *arg1 = (wxJoystick *) 0 ;
9949 int result;
9950 PyObject * obj0 = 0 ;
9951 char *kwnames[] = {
9952 (char *) "self", NULL
9953 };
9954
9955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 result = (int)(arg1)->GetVPosition();
9961
9962 wxPyEndAllowThreads(__tstate);
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 resultobj = SWIG_FromInt((int)result);
9966 return resultobj;
9967 fail:
9968 return NULL;
9969 }
9970
9971
9972 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9973 PyObject *resultobj;
9974 wxJoystick *arg1 = (wxJoystick *) 0 ;
9975 int result;
9976 PyObject * obj0 = 0 ;
9977 char *kwnames[] = {
9978 (char *) "self", NULL
9979 };
9980
9981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9984 {
9985 PyThreadState* __tstate = wxPyBeginAllowThreads();
9986 result = (int)(arg1)->GetMovementThreshold();
9987
9988 wxPyEndAllowThreads(__tstate);
9989 if (PyErr_Occurred()) SWIG_fail;
9990 }
9991 resultobj = SWIG_FromInt((int)result);
9992 return resultobj;
9993 fail:
9994 return NULL;
9995 }
9996
9997
9998 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9999 PyObject *resultobj;
10000 wxJoystick *arg1 = (wxJoystick *) 0 ;
10001 int arg2 ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 char *kwnames[] = {
10005 (char *) "self",(char *) "threshold", NULL
10006 };
10007
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10011 arg2 = (int) SWIG_AsInt(obj1);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 {
10014 PyThreadState* __tstate = wxPyBeginAllowThreads();
10015 (arg1)->SetMovementThreshold(arg2);
10016
10017 wxPyEndAllowThreads(__tstate);
10018 if (PyErr_Occurred()) SWIG_fail;
10019 }
10020 Py_INCREF(Py_None); resultobj = Py_None;
10021 return resultobj;
10022 fail:
10023 return NULL;
10024 }
10025
10026
10027 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10028 PyObject *resultobj;
10029 wxJoystick *arg1 = (wxJoystick *) 0 ;
10030 bool result;
10031 PyObject * obj0 = 0 ;
10032 char *kwnames[] = {
10033 (char *) "self", NULL
10034 };
10035
10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = (bool)(arg1)->IsOk();
10042
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 {
10047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10048 }
10049 return resultobj;
10050 fail:
10051 return NULL;
10052 }
10053
10054
10055 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
10056 PyObject *resultobj;
10057 wxJoystick *arg1 = (wxJoystick *) 0 ;
10058 int result;
10059 PyObject * obj0 = 0 ;
10060 char *kwnames[] = {
10061 (char *) "self", NULL
10062 };
10063
10064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10067 {
10068 PyThreadState* __tstate = wxPyBeginAllowThreads();
10069 result = (int)(arg1)->GetNumberJoysticks();
10070
10071 wxPyEndAllowThreads(__tstate);
10072 if (PyErr_Occurred()) SWIG_fail;
10073 }
10074 resultobj = SWIG_FromInt((int)result);
10075 return resultobj;
10076 fail:
10077 return NULL;
10078 }
10079
10080
10081 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10082 PyObject *resultobj;
10083 wxJoystick *arg1 = (wxJoystick *) 0 ;
10084 int result;
10085 PyObject * obj0 = 0 ;
10086 char *kwnames[] = {
10087 (char *) "self", NULL
10088 };
10089
10090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 result = (int)(arg1)->GetManufacturerId();
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_FromInt((int)result);
10101 return resultobj;
10102 fail:
10103 return NULL;
10104 }
10105
10106
10107 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj;
10109 wxJoystick *arg1 = (wxJoystick *) 0 ;
10110 int result;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = (int)(arg1)->GetProductId();
10122
10123 wxPyEndAllowThreads(__tstate);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 }
10126 resultobj = SWIG_FromInt((int)result);
10127 return resultobj;
10128 fail:
10129 return NULL;
10130 }
10131
10132
10133 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10134 PyObject *resultobj;
10135 wxJoystick *arg1 = (wxJoystick *) 0 ;
10136 wxString result;
10137 PyObject * obj0 = 0 ;
10138 char *kwnames[] = {
10139 (char *) "self", NULL
10140 };
10141
10142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10145 {
10146 PyThreadState* __tstate = wxPyBeginAllowThreads();
10147 result = (arg1)->GetProductName();
10148
10149 wxPyEndAllowThreads(__tstate);
10150 if (PyErr_Occurred()) SWIG_fail;
10151 }
10152 {
10153 #if wxUSE_UNICODE
10154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10155 #else
10156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10157 #endif
10158 }
10159 return resultobj;
10160 fail:
10161 return NULL;
10162 }
10163
10164
10165 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10166 PyObject *resultobj;
10167 wxJoystick *arg1 = (wxJoystick *) 0 ;
10168 int result;
10169 PyObject * obj0 = 0 ;
10170 char *kwnames[] = {
10171 (char *) "self", NULL
10172 };
10173
10174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10177 {
10178 PyThreadState* __tstate = wxPyBeginAllowThreads();
10179 result = (int)(arg1)->GetXMin();
10180
10181 wxPyEndAllowThreads(__tstate);
10182 if (PyErr_Occurred()) SWIG_fail;
10183 }
10184 resultobj = SWIG_FromInt((int)result);
10185 return resultobj;
10186 fail:
10187 return NULL;
10188 }
10189
10190
10191 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10192 PyObject *resultobj;
10193 wxJoystick *arg1 = (wxJoystick *) 0 ;
10194 int result;
10195 PyObject * obj0 = 0 ;
10196 char *kwnames[] = {
10197 (char *) "self", NULL
10198 };
10199
10200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10203 {
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 result = (int)(arg1)->GetYMin();
10206
10207 wxPyEndAllowThreads(__tstate);
10208 if (PyErr_Occurred()) SWIG_fail;
10209 }
10210 resultobj = SWIG_FromInt((int)result);
10211 return resultobj;
10212 fail:
10213 return NULL;
10214 }
10215
10216
10217 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10218 PyObject *resultobj;
10219 wxJoystick *arg1 = (wxJoystick *) 0 ;
10220 int result;
10221 PyObject * obj0 = 0 ;
10222 char *kwnames[] = {
10223 (char *) "self", NULL
10224 };
10225
10226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10229 {
10230 PyThreadState* __tstate = wxPyBeginAllowThreads();
10231 result = (int)(arg1)->GetZMin();
10232
10233 wxPyEndAllowThreads(__tstate);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 resultobj = SWIG_FromInt((int)result);
10237 return resultobj;
10238 fail:
10239 return NULL;
10240 }
10241
10242
10243 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10244 PyObject *resultobj;
10245 wxJoystick *arg1 = (wxJoystick *) 0 ;
10246 int result;
10247 PyObject * obj0 = 0 ;
10248 char *kwnames[] = {
10249 (char *) "self", NULL
10250 };
10251
10252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 result = (int)(arg1)->GetXMax();
10258
10259 wxPyEndAllowThreads(__tstate);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 resultobj = SWIG_FromInt((int)result);
10263 return resultobj;
10264 fail:
10265 return NULL;
10266 }
10267
10268
10269 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10270 PyObject *resultobj;
10271 wxJoystick *arg1 = (wxJoystick *) 0 ;
10272 int result;
10273 PyObject * obj0 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "self", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 result = (int)(arg1)->GetYMax();
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 resultobj = SWIG_FromInt((int)result);
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxJoystick *arg1 = (wxJoystick *) 0 ;
10298 int result;
10299 PyObject * obj0 = 0 ;
10300 char *kwnames[] = {
10301 (char *) "self", NULL
10302 };
10303
10304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10307 {
10308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10309 result = (int)(arg1)->GetZMax();
10310
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 resultobj = SWIG_FromInt((int)result);
10315 return resultobj;
10316 fail:
10317 return NULL;
10318 }
10319
10320
10321 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10322 PyObject *resultobj;
10323 wxJoystick *arg1 = (wxJoystick *) 0 ;
10324 int result;
10325 PyObject * obj0 = 0 ;
10326 char *kwnames[] = {
10327 (char *) "self", NULL
10328 };
10329
10330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10333 {
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 result = (int)(arg1)->GetNumberButtons();
10336
10337 wxPyEndAllowThreads(__tstate);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 resultobj = SWIG_FromInt((int)result);
10341 return resultobj;
10342 fail:
10343 return NULL;
10344 }
10345
10346
10347 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10348 PyObject *resultobj;
10349 wxJoystick *arg1 = (wxJoystick *) 0 ;
10350 int result;
10351 PyObject * obj0 = 0 ;
10352 char *kwnames[] = {
10353 (char *) "self", NULL
10354 };
10355
10356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 result = (int)(arg1)->GetNumberAxes();
10362
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) SWIG_fail;
10365 }
10366 resultobj = SWIG_FromInt((int)result);
10367 return resultobj;
10368 fail:
10369 return NULL;
10370 }
10371
10372
10373 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj;
10375 wxJoystick *arg1 = (wxJoystick *) 0 ;
10376 int result;
10377 PyObject * obj0 = 0 ;
10378 char *kwnames[] = {
10379 (char *) "self", NULL
10380 };
10381
10382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10385 {
10386 PyThreadState* __tstate = wxPyBeginAllowThreads();
10387 result = (int)(arg1)->GetMaxButtons();
10388
10389 wxPyEndAllowThreads(__tstate);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 resultobj = SWIG_FromInt((int)result);
10393 return resultobj;
10394 fail:
10395 return NULL;
10396 }
10397
10398
10399 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10400 PyObject *resultobj;
10401 wxJoystick *arg1 = (wxJoystick *) 0 ;
10402 int result;
10403 PyObject * obj0 = 0 ;
10404 char *kwnames[] = {
10405 (char *) "self", NULL
10406 };
10407
10408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 result = (int)(arg1)->GetMaxAxes();
10414
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 resultobj = SWIG_FromInt((int)result);
10419 return resultobj;
10420 fail:
10421 return NULL;
10422 }
10423
10424
10425 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10426 PyObject *resultobj;
10427 wxJoystick *arg1 = (wxJoystick *) 0 ;
10428 int result;
10429 PyObject * obj0 = 0 ;
10430 char *kwnames[] = {
10431 (char *) "self", NULL
10432 };
10433
10434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (int)(arg1)->GetPollingMin();
10440
10441 wxPyEndAllowThreads(__tstate);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
10444 resultobj = SWIG_FromInt((int)result);
10445 return resultobj;
10446 fail:
10447 return NULL;
10448 }
10449
10450
10451 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj;
10453 wxJoystick *arg1 = (wxJoystick *) 0 ;
10454 int result;
10455 PyObject * obj0 = 0 ;
10456 char *kwnames[] = {
10457 (char *) "self", NULL
10458 };
10459
10460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10463 {
10464 PyThreadState* __tstate = wxPyBeginAllowThreads();
10465 result = (int)(arg1)->GetPollingMax();
10466
10467 wxPyEndAllowThreads(__tstate);
10468 if (PyErr_Occurred()) SWIG_fail;
10469 }
10470 resultobj = SWIG_FromInt((int)result);
10471 return resultobj;
10472 fail:
10473 return NULL;
10474 }
10475
10476
10477 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10478 PyObject *resultobj;
10479 wxJoystick *arg1 = (wxJoystick *) 0 ;
10480 int result;
10481 PyObject * obj0 = 0 ;
10482 char *kwnames[] = {
10483 (char *) "self", NULL
10484 };
10485
10486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = (int)(arg1)->GetRudderMin();
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 resultobj = SWIG_FromInt((int)result);
10497 return resultobj;
10498 fail:
10499 return NULL;
10500 }
10501
10502
10503 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10504 PyObject *resultobj;
10505 wxJoystick *arg1 = (wxJoystick *) 0 ;
10506 int result;
10507 PyObject * obj0 = 0 ;
10508 char *kwnames[] = {
10509 (char *) "self", NULL
10510 };
10511
10512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 result = (int)(arg1)->GetRudderMax();
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 resultobj = SWIG_FromInt((int)result);
10523 return resultobj;
10524 fail:
10525 return NULL;
10526 }
10527
10528
10529 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10530 PyObject *resultobj;
10531 wxJoystick *arg1 = (wxJoystick *) 0 ;
10532 int result;
10533 PyObject * obj0 = 0 ;
10534 char *kwnames[] = {
10535 (char *) "self", NULL
10536 };
10537
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10541 {
10542 PyThreadState* __tstate = wxPyBeginAllowThreads();
10543 result = (int)(arg1)->GetUMin();
10544
10545 wxPyEndAllowThreads(__tstate);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 resultobj = SWIG_FromInt((int)result);
10549 return resultobj;
10550 fail:
10551 return NULL;
10552 }
10553
10554
10555 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10556 PyObject *resultobj;
10557 wxJoystick *arg1 = (wxJoystick *) 0 ;
10558 int result;
10559 PyObject * obj0 = 0 ;
10560 char *kwnames[] = {
10561 (char *) "self", NULL
10562 };
10563
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10567 {
10568 PyThreadState* __tstate = wxPyBeginAllowThreads();
10569 result = (int)(arg1)->GetUMax();
10570
10571 wxPyEndAllowThreads(__tstate);
10572 if (PyErr_Occurred()) SWIG_fail;
10573 }
10574 resultobj = SWIG_FromInt((int)result);
10575 return resultobj;
10576 fail:
10577 return NULL;
10578 }
10579
10580
10581 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10582 PyObject *resultobj;
10583 wxJoystick *arg1 = (wxJoystick *) 0 ;
10584 int result;
10585 PyObject * obj0 = 0 ;
10586 char *kwnames[] = {
10587 (char *) "self", NULL
10588 };
10589
10590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10593 {
10594 PyThreadState* __tstate = wxPyBeginAllowThreads();
10595 result = (int)(arg1)->GetVMin();
10596
10597 wxPyEndAllowThreads(__tstate);
10598 if (PyErr_Occurred()) SWIG_fail;
10599 }
10600 resultobj = SWIG_FromInt((int)result);
10601 return resultobj;
10602 fail:
10603 return NULL;
10604 }
10605
10606
10607 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10608 PyObject *resultobj;
10609 wxJoystick *arg1 = (wxJoystick *) 0 ;
10610 int result;
10611 PyObject * obj0 = 0 ;
10612 char *kwnames[] = {
10613 (char *) "self", NULL
10614 };
10615
10616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 result = (int)(arg1)->GetVMax();
10622
10623 wxPyEndAllowThreads(__tstate);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 resultobj = SWIG_FromInt((int)result);
10627 return resultobj;
10628 fail:
10629 return NULL;
10630 }
10631
10632
10633 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj;
10635 wxJoystick *arg1 = (wxJoystick *) 0 ;
10636 bool result;
10637 PyObject * obj0 = 0 ;
10638 char *kwnames[] = {
10639 (char *) "self", NULL
10640 };
10641
10642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10645 {
10646 PyThreadState* __tstate = wxPyBeginAllowThreads();
10647 result = (bool)(arg1)->HasRudder();
10648
10649 wxPyEndAllowThreads(__tstate);
10650 if (PyErr_Occurred()) SWIG_fail;
10651 }
10652 {
10653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10654 }
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj;
10663 wxJoystick *arg1 = (wxJoystick *) 0 ;
10664 bool result;
10665 PyObject * obj0 = 0 ;
10666 char *kwnames[] = {
10667 (char *) "self", NULL
10668 };
10669
10670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 result = (bool)(arg1)->HasZ();
10676
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 {
10681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10682 }
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj;
10691 wxJoystick *arg1 = (wxJoystick *) 0 ;
10692 bool result;
10693 PyObject * obj0 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (bool)(arg1)->HasU();
10704
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 {
10709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10710 }
10711 return resultobj;
10712 fail:
10713 return NULL;
10714 }
10715
10716
10717 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj;
10719 wxJoystick *arg1 = (wxJoystick *) 0 ;
10720 bool result;
10721 PyObject * obj0 = 0 ;
10722 char *kwnames[] = {
10723 (char *) "self", NULL
10724 };
10725
10726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 result = (bool)(arg1)->HasV();
10732
10733 wxPyEndAllowThreads(__tstate);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 }
10736 {
10737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10738 }
10739 return resultobj;
10740 fail:
10741 return NULL;
10742 }
10743
10744
10745 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj;
10747 wxJoystick *arg1 = (wxJoystick *) 0 ;
10748 bool result;
10749 PyObject * obj0 = 0 ;
10750 char *kwnames[] = {
10751 (char *) "self", NULL
10752 };
10753
10754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 result = (bool)(arg1)->HasPOV();
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 {
10765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10766 }
10767 return resultobj;
10768 fail:
10769 return NULL;
10770 }
10771
10772
10773 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10774 PyObject *resultobj;
10775 wxJoystick *arg1 = (wxJoystick *) 0 ;
10776 bool result;
10777 PyObject * obj0 = 0 ;
10778 char *kwnames[] = {
10779 (char *) "self", NULL
10780 };
10781
10782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 result = (bool)(arg1)->HasPOV4Dir();
10788
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 {
10793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10794 }
10795 return resultobj;
10796 fail:
10797 return NULL;
10798 }
10799
10800
10801 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10802 PyObject *resultobj;
10803 wxJoystick *arg1 = (wxJoystick *) 0 ;
10804 bool result;
10805 PyObject * obj0 = 0 ;
10806 char *kwnames[] = {
10807 (char *) "self", NULL
10808 };
10809
10810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 result = (bool)(arg1)->HasPOVCTS();
10816
10817 wxPyEndAllowThreads(__tstate);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 {
10821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10822 }
10823 return resultobj;
10824 fail:
10825 return NULL;
10826 }
10827
10828
10829 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10830 PyObject *resultobj;
10831 wxJoystick *arg1 = (wxJoystick *) 0 ;
10832 wxWindow *arg2 = (wxWindow *) 0 ;
10833 int arg3 = (int) 0 ;
10834 bool result;
10835 PyObject * obj0 = 0 ;
10836 PyObject * obj1 = 0 ;
10837 PyObject * obj2 = 0 ;
10838 char *kwnames[] = {
10839 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10840 };
10841
10842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10847 if (obj2) {
10848 arg3 = (int) SWIG_AsInt(obj2);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 result = (bool)(arg1)->SetCapture(arg2,arg3);
10854
10855 wxPyEndAllowThreads(__tstate);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 }
10858 {
10859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10860 }
10861 return resultobj;
10862 fail:
10863 return NULL;
10864 }
10865
10866
10867 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10868 PyObject *resultobj;
10869 wxJoystick *arg1 = (wxJoystick *) 0 ;
10870 bool result;
10871 PyObject * obj0 = 0 ;
10872 char *kwnames[] = {
10873 (char *) "self", NULL
10874 };
10875
10876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 result = (bool)(arg1)->ReleaseCapture();
10882
10883 wxPyEndAllowThreads(__tstate);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 }
10886 {
10887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10888 }
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10896 PyObject *obj;
10897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10898 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10899 Py_INCREF(obj);
10900 return Py_BuildValue((char *)"");
10901 }
10902 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10903 PyObject *resultobj;
10904 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10905 wxPoint *arg2 = (wxPoint *) 0 ;
10906 PyObject * obj0 = 0 ;
10907 PyObject * obj1 = 0 ;
10908 char *kwnames[] = {
10909 (char *) "self",(char *) "m_pos", NULL
10910 };
10911
10912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10917 if (arg1) (arg1)->m_pos = *arg2;
10918
10919 Py_INCREF(Py_None); resultobj = Py_None;
10920 return resultobj;
10921 fail:
10922 return NULL;
10923 }
10924
10925
10926 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10927 PyObject *resultobj;
10928 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10929 wxPoint *result;
10930 PyObject * obj0 = 0 ;
10931 char *kwnames[] = {
10932 (char *) "self", NULL
10933 };
10934
10935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10938 result = (wxPoint *)& ((arg1)->m_pos);
10939
10940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10941 return resultobj;
10942 fail:
10943 return NULL;
10944 }
10945
10946
10947 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10948 PyObject *resultobj;
10949 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10950 int arg2 ;
10951 PyObject * obj0 = 0 ;
10952 PyObject * obj1 = 0 ;
10953 char *kwnames[] = {
10954 (char *) "self",(char *) "m_zPosition", NULL
10955 };
10956
10957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10960 arg2 = (int) SWIG_AsInt(obj1);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 if (arg1) (arg1)->m_zPosition = arg2;
10963
10964 Py_INCREF(Py_None); resultobj = Py_None;
10965 return resultobj;
10966 fail:
10967 return NULL;
10968 }
10969
10970
10971 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10972 PyObject *resultobj;
10973 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10974 int result;
10975 PyObject * obj0 = 0 ;
10976 char *kwnames[] = {
10977 (char *) "self", NULL
10978 };
10979
10980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10983 result = (int) ((arg1)->m_zPosition);
10984
10985 resultobj = SWIG_FromInt((int)result);
10986 return resultobj;
10987 fail:
10988 return NULL;
10989 }
10990
10991
10992 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10993 PyObject *resultobj;
10994 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10995 int arg2 ;
10996 PyObject * obj0 = 0 ;
10997 PyObject * obj1 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "self",(char *) "m_buttonChange", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11005 arg2 = (int) SWIG_AsInt(obj1);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 if (arg1) (arg1)->m_buttonChange = arg2;
11008
11009 Py_INCREF(Py_None); resultobj = Py_None;
11010 return resultobj;
11011 fail:
11012 return NULL;
11013 }
11014
11015
11016 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj;
11018 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11019 int result;
11020 PyObject * obj0 = 0 ;
11021 char *kwnames[] = {
11022 (char *) "self", NULL
11023 };
11024
11025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11028 result = (int) ((arg1)->m_buttonChange);
11029
11030 resultobj = SWIG_FromInt((int)result);
11031 return resultobj;
11032 fail:
11033 return NULL;
11034 }
11035
11036
11037 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11038 PyObject *resultobj;
11039 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11040 int arg2 ;
11041 PyObject * obj0 = 0 ;
11042 PyObject * obj1 = 0 ;
11043 char *kwnames[] = {
11044 (char *) "self",(char *) "m_buttonState", NULL
11045 };
11046
11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11050 arg2 = (int) SWIG_AsInt(obj1);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 if (arg1) (arg1)->m_buttonState = arg2;
11053
11054 Py_INCREF(Py_None); resultobj = Py_None;
11055 return resultobj;
11056 fail:
11057 return NULL;
11058 }
11059
11060
11061 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11062 PyObject *resultobj;
11063 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11064 int result;
11065 PyObject * obj0 = 0 ;
11066 char *kwnames[] = {
11067 (char *) "self", NULL
11068 };
11069
11070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11073 result = (int) ((arg1)->m_buttonState);
11074
11075 resultobj = SWIG_FromInt((int)result);
11076 return resultobj;
11077 fail:
11078 return NULL;
11079 }
11080
11081
11082 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj;
11084 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11085 int arg2 ;
11086 PyObject * obj0 = 0 ;
11087 PyObject * obj1 = 0 ;
11088 char *kwnames[] = {
11089 (char *) "self",(char *) "m_joyStick", NULL
11090 };
11091
11092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11095 arg2 = (int) SWIG_AsInt(obj1);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 if (arg1) (arg1)->m_joyStick = arg2;
11098
11099 Py_INCREF(Py_None); resultobj = Py_None;
11100 return resultobj;
11101 fail:
11102 return NULL;
11103 }
11104
11105
11106 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj;
11108 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11109 int result;
11110 PyObject * obj0 = 0 ;
11111 char *kwnames[] = {
11112 (char *) "self", NULL
11113 };
11114
11115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11118 result = (int) ((arg1)->m_joyStick);
11119
11120 resultobj = SWIG_FromInt((int)result);
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj;
11129 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11130 int arg2 = (int) 0 ;
11131 int arg3 = (int) wxJOYSTICK1 ;
11132 int arg4 = (int) 0 ;
11133 wxJoystickEvent *result;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 PyObject * obj2 = 0 ;
11137 PyObject * obj3 = 0 ;
11138 char *kwnames[] = {
11139 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11140 };
11141
11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11143 if (obj0) {
11144 arg1 = (wxEventType) SWIG_AsInt(obj0);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 if (obj1) {
11148 arg2 = (int) SWIG_AsInt(obj1);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 }
11151 if (obj2) {
11152 arg3 = (int) SWIG_AsInt(obj2);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 if (obj3) {
11156 arg4 = (int) SWIG_AsInt(obj3);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11162
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11167 return resultobj;
11168 fail:
11169 return NULL;
11170 }
11171
11172
11173 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11174 PyObject *resultobj;
11175 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11176 wxPoint result;
11177 PyObject * obj0 = 0 ;
11178 char *kwnames[] = {
11179 (char *) "self", NULL
11180 };
11181
11182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11185 {
11186 PyThreadState* __tstate = wxPyBeginAllowThreads();
11187 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11188
11189 wxPyEndAllowThreads(__tstate);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 {
11193 wxPoint * resultptr;
11194 resultptr = new wxPoint((wxPoint &) result);
11195 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11196 }
11197 return resultobj;
11198 fail:
11199 return NULL;
11200 }
11201
11202
11203 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11204 PyObject *resultobj;
11205 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11206 int result;
11207 PyObject * obj0 = 0 ;
11208 char *kwnames[] = {
11209 (char *) "self", NULL
11210 };
11211
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
11217 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11218
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 resultobj = SWIG_FromInt((int)result);
11223 return resultobj;
11224 fail:
11225 return NULL;
11226 }
11227
11228
11229 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11230 PyObject *resultobj;
11231 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11232 int result;
11233 PyObject * obj0 = 0 ;
11234 char *kwnames[] = {
11235 (char *) "self", NULL
11236 };
11237
11238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11244
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 resultobj = SWIG_FromInt((int)result);
11249 return resultobj;
11250 fail:
11251 return NULL;
11252 }
11253
11254
11255 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11258 int result;
11259 PyObject * obj0 = 0 ;
11260 char *kwnames[] = {
11261 (char *) "self", NULL
11262 };
11263
11264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11270
11271 wxPyEndAllowThreads(__tstate);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 }
11274 resultobj = SWIG_FromInt((int)result);
11275 return resultobj;
11276 fail:
11277 return NULL;
11278 }
11279
11280
11281 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11282 PyObject *resultobj;
11283 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11284 int result;
11285 PyObject * obj0 = 0 ;
11286 char *kwnames[] = {
11287 (char *) "self", NULL
11288 };
11289
11290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11296
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 resultobj = SWIG_FromInt((int)result);
11301 return resultobj;
11302 fail:
11303 return NULL;
11304 }
11305
11306
11307 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11308 PyObject *resultobj;
11309 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11310 int arg2 ;
11311 PyObject * obj0 = 0 ;
11312 PyObject * obj1 = 0 ;
11313 char *kwnames[] = {
11314 (char *) "self",(char *) "stick", NULL
11315 };
11316
11317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11320 arg2 = (int) SWIG_AsInt(obj1);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 (arg1)->SetJoystick(arg2);
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 Py_INCREF(Py_None); resultobj = Py_None;
11330 return resultobj;
11331 fail:
11332 return NULL;
11333 }
11334
11335
11336 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11337 PyObject *resultobj;
11338 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11339 int arg2 ;
11340 PyObject * obj0 = 0 ;
11341 PyObject * obj1 = 0 ;
11342 char *kwnames[] = {
11343 (char *) "self",(char *) "state", NULL
11344 };
11345
11346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11349 arg2 = (int) SWIG_AsInt(obj1);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 {
11352 PyThreadState* __tstate = wxPyBeginAllowThreads();
11353 (arg1)->SetButtonState(arg2);
11354
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 Py_INCREF(Py_None); resultobj = Py_None;
11359 return resultobj;
11360 fail:
11361 return NULL;
11362 }
11363
11364
11365 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11366 PyObject *resultobj;
11367 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11368 int arg2 ;
11369 PyObject * obj0 = 0 ;
11370 PyObject * obj1 = 0 ;
11371 char *kwnames[] = {
11372 (char *) "self",(char *) "change", NULL
11373 };
11374
11375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11378 arg2 = (int) SWIG_AsInt(obj1);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 {
11381 PyThreadState* __tstate = wxPyBeginAllowThreads();
11382 (arg1)->SetButtonChange(arg2);
11383
11384 wxPyEndAllowThreads(__tstate);
11385 if (PyErr_Occurred()) SWIG_fail;
11386 }
11387 Py_INCREF(Py_None); resultobj = Py_None;
11388 return resultobj;
11389 fail:
11390 return NULL;
11391 }
11392
11393
11394 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11395 PyObject *resultobj;
11396 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11397 wxPoint *arg2 = 0 ;
11398 wxPoint temp2 ;
11399 PyObject * obj0 = 0 ;
11400 PyObject * obj1 = 0 ;
11401 char *kwnames[] = {
11402 (char *) "self",(char *) "pos", NULL
11403 };
11404
11405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11408 {
11409 arg2 = &temp2;
11410 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11411 }
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 (arg1)->SetPosition((wxPoint const &)*arg2);
11415
11416 wxPyEndAllowThreads(__tstate);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 Py_INCREF(Py_None); resultobj = Py_None;
11420 return resultobj;
11421 fail:
11422 return NULL;
11423 }
11424
11425
11426 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11427 PyObject *resultobj;
11428 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11429 int arg2 ;
11430 PyObject * obj0 = 0 ;
11431 PyObject * obj1 = 0 ;
11432 char *kwnames[] = {
11433 (char *) "self",(char *) "zPos", NULL
11434 };
11435
11436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11439 arg2 = (int) SWIG_AsInt(obj1);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 {
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 (arg1)->SetZPosition(arg2);
11444
11445 wxPyEndAllowThreads(__tstate);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 }
11448 Py_INCREF(Py_None); resultobj = Py_None;
11449 return resultobj;
11450 fail:
11451 return NULL;
11452 }
11453
11454
11455 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11456 PyObject *resultobj;
11457 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11458 bool result;
11459 PyObject * obj0 = 0 ;
11460 char *kwnames[] = {
11461 (char *) "self", NULL
11462 };
11463
11464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11467 {
11468 PyThreadState* __tstate = wxPyBeginAllowThreads();
11469 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11470
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11476 }
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj;
11485 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11486 bool result;
11487 PyObject * obj0 = 0 ;
11488 char *kwnames[] = {
11489 (char *) "self", NULL
11490 };
11491
11492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11498
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 {
11503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11504 }
11505 return resultobj;
11506 fail:
11507 return NULL;
11508 }
11509
11510
11511 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11512 PyObject *resultobj;
11513 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11514 bool result;
11515 PyObject * obj0 = 0 ;
11516 char *kwnames[] = {
11517 (char *) "self", NULL
11518 };
11519
11520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11523 {
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
11525 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11526
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 {
11531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11532 }
11533 return resultobj;
11534 fail:
11535 return NULL;
11536 }
11537
11538
11539 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11540 PyObject *resultobj;
11541 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11542 int arg2 = (int) wxJOY_BUTTON_ANY ;
11543 bool result;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 char *kwnames[] = {
11547 (char *) "self",(char *) "but", NULL
11548 };
11549
11550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11553 if (obj1) {
11554 arg2 = (int) SWIG_AsInt(obj1);
11555 if (PyErr_Occurred()) SWIG_fail;
11556 }
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11560
11561 wxPyEndAllowThreads(__tstate);
11562 if (PyErr_Occurred()) SWIG_fail;
11563 }
11564 {
11565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11566 }
11567 return resultobj;
11568 fail:
11569 return NULL;
11570 }
11571
11572
11573 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11574 PyObject *resultobj;
11575 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11576 int arg2 = (int) wxJOY_BUTTON_ANY ;
11577 bool result;
11578 PyObject * obj0 = 0 ;
11579 PyObject * obj1 = 0 ;
11580 char *kwnames[] = {
11581 (char *) "self",(char *) "but", NULL
11582 };
11583
11584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11587 if (obj1) {
11588 arg2 = (int) SWIG_AsInt(obj1);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 {
11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
11593 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11594
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 {
11599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11600 }
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj;
11609 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11610 int arg2 = (int) wxJOY_BUTTON_ANY ;
11611 bool result;
11612 PyObject * obj0 = 0 ;
11613 PyObject * obj1 = 0 ;
11614 char *kwnames[] = {
11615 (char *) "self",(char *) "but", NULL
11616 };
11617
11618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11621 if (obj1) {
11622 arg2 = (int) SWIG_AsInt(obj1);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 {
11626 PyThreadState* __tstate = wxPyBeginAllowThreads();
11627 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11628
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 {
11633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11634 }
11635 return resultobj;
11636 fail:
11637 return NULL;
11638 }
11639
11640
11641 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11642 PyObject *obj;
11643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11644 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11645 Py_INCREF(obj);
11646 return Py_BuildValue((char *)"");
11647 }
11648 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11649 PyObject *resultobj;
11650 wxString const &arg1_defvalue = wxPyEmptyString ;
11651 wxString *arg1 = (wxString *) &arg1_defvalue ;
11652 wxSound *result;
11653 bool temp1 = False ;
11654 PyObject * obj0 = 0 ;
11655 char *kwnames[] = {
11656 (char *) "fileName", NULL
11657 };
11658
11659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11660 if (obj0) {
11661 {
11662 arg1 = wxString_in_helper(obj0);
11663 if (arg1 == NULL) SWIG_fail;
11664 temp1 = True;
11665 }
11666 }
11667 {
11668 if (!wxPyCheckForApp()) SWIG_fail;
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11671
11672 wxPyEndAllowThreads(__tstate);
11673 if (PyErr_Occurred()) SWIG_fail;
11674 }
11675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11676 {
11677 if (temp1)
11678 delete arg1;
11679 }
11680 return resultobj;
11681 fail:
11682 {
11683 if (temp1)
11684 delete arg1;
11685 }
11686 return NULL;
11687 }
11688
11689
11690 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11691 PyObject *resultobj;
11692 PyObject *arg1 = (PyObject *) 0 ;
11693 wxSound *result;
11694 PyObject * obj0 = 0 ;
11695 char *kwnames[] = {
11696 (char *) "data", NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11700 arg1 = obj0;
11701 {
11702 if (!wxPyCheckForApp()) SWIG_fail;
11703 PyThreadState* __tstate = wxPyBeginAllowThreads();
11704 result = (wxSound *)new_wxSound(arg1);
11705
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11710 return resultobj;
11711 fail:
11712 return NULL;
11713 }
11714
11715
11716 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11717 PyObject *resultobj;
11718 wxSound *arg1 = (wxSound *) 0 ;
11719 PyObject * obj0 = 0 ;
11720 char *kwnames[] = {
11721 (char *) "self", NULL
11722 };
11723
11724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11727 {
11728 PyThreadState* __tstate = wxPyBeginAllowThreads();
11729 delete arg1;
11730
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 Py_INCREF(Py_None); resultobj = Py_None;
11735 return resultobj;
11736 fail:
11737 return NULL;
11738 }
11739
11740
11741 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj;
11743 wxSound *arg1 = (wxSound *) 0 ;
11744 wxString *arg2 = 0 ;
11745 bool result;
11746 bool temp2 = False ;
11747 PyObject * obj0 = 0 ;
11748 PyObject * obj1 = 0 ;
11749 char *kwnames[] = {
11750 (char *) "self",(char *) "fileName", NULL
11751 };
11752
11753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11756 {
11757 arg2 = wxString_in_helper(obj1);
11758 if (arg2 == NULL) SWIG_fail;
11759 temp2 = True;
11760 }
11761 {
11762 PyThreadState* __tstate = wxPyBeginAllowThreads();
11763 result = (bool)(arg1)->Create((wxString const &)*arg2);
11764
11765 wxPyEndAllowThreads(__tstate);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 }
11768 {
11769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11770 }
11771 {
11772 if (temp2)
11773 delete arg2;
11774 }
11775 return resultobj;
11776 fail:
11777 {
11778 if (temp2)
11779 delete arg2;
11780 }
11781 return NULL;
11782 }
11783
11784
11785 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11786 PyObject *resultobj;
11787 wxSound *arg1 = (wxSound *) 0 ;
11788 PyObject *arg2 = (PyObject *) 0 ;
11789 bool result;
11790 PyObject * obj0 = 0 ;
11791 PyObject * obj1 = 0 ;
11792 char *kwnames[] = {
11793 (char *) "self",(char *) "data", NULL
11794 };
11795
11796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11799 arg2 = obj1;
11800 {
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 result = (bool)wxSound_CreateFromData(arg1,arg2);
11803
11804 wxPyEndAllowThreads(__tstate);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 }
11807 {
11808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11809 }
11810 return resultobj;
11811 fail:
11812 return NULL;
11813 }
11814
11815
11816 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11817 PyObject *resultobj;
11818 wxSound *arg1 = (wxSound *) 0 ;
11819 bool result;
11820 PyObject * obj0 = 0 ;
11821 char *kwnames[] = {
11822 (char *) "self", NULL
11823 };
11824
11825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11828 {
11829 PyThreadState* __tstate = wxPyBeginAllowThreads();
11830 result = (bool)(arg1)->IsOk();
11831
11832 wxPyEndAllowThreads(__tstate);
11833 if (PyErr_Occurred()) SWIG_fail;
11834 }
11835 {
11836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11837 }
11838 return resultobj;
11839 fail:
11840 return NULL;
11841 }
11842
11843
11844 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11845 PyObject *resultobj;
11846 wxSound *arg1 = (wxSound *) 0 ;
11847 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11848 bool result;
11849 PyObject * obj0 = 0 ;
11850 PyObject * obj1 = 0 ;
11851 char *kwnames[] = {
11852 (char *) "self",(char *) "flags", NULL
11853 };
11854
11855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11858 if (obj1) {
11859 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 {
11863 if (!wxPyCheckForApp()) SWIG_fail;
11864 PyThreadState* __tstate = wxPyBeginAllowThreads();
11865 result = (bool)((wxSound const *)arg1)->Play(arg2);
11866
11867 wxPyEndAllowThreads(__tstate);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 }
11870 {
11871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11872 }
11873 return resultobj;
11874 fail:
11875 return NULL;
11876 }
11877
11878
11879 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11880 PyObject *resultobj;
11881 wxString *arg1 = 0 ;
11882 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11883 bool result;
11884 bool temp1 = False ;
11885 PyObject * obj0 = 0 ;
11886 PyObject * obj1 = 0 ;
11887 char *kwnames[] = {
11888 (char *) "filename",(char *) "flags", NULL
11889 };
11890
11891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11892 {
11893 arg1 = wxString_in_helper(obj0);
11894 if (arg1 == NULL) SWIG_fail;
11895 temp1 = True;
11896 }
11897 if (obj1) {
11898 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 {
11902 if (!wxPyCheckForApp()) SWIG_fail;
11903 PyThreadState* __tstate = wxPyBeginAllowThreads();
11904 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11905
11906 wxPyEndAllowThreads(__tstate);
11907 if (PyErr_Occurred()) SWIG_fail;
11908 }
11909 {
11910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11911 }
11912 {
11913 if (temp1)
11914 delete arg1;
11915 }
11916 return resultobj;
11917 fail:
11918 {
11919 if (temp1)
11920 delete arg1;
11921 }
11922 return NULL;
11923 }
11924
11925
11926 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11927 PyObject *resultobj;
11928 char *kwnames[] = {
11929 NULL
11930 };
11931
11932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11933 {
11934 if (!wxPyCheckForApp()) SWIG_fail;
11935 PyThreadState* __tstate = wxPyBeginAllowThreads();
11936 wxSound::Stop();
11937
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 Py_INCREF(Py_None); resultobj = Py_None;
11942 return resultobj;
11943 fail:
11944 return NULL;
11945 }
11946
11947
11948 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11949 PyObject *obj;
11950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11951 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11952 Py_INCREF(obj);
11953 return Py_BuildValue((char *)"");
11954 }
11955 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11956 PyObject *resultobj;
11957 wxString *arg1 = 0 ;
11958 wxString *arg2 = 0 ;
11959 wxString *arg3 = 0 ;
11960 wxString *arg4 = 0 ;
11961 wxFileTypeInfo *result;
11962 bool temp1 = False ;
11963 bool temp2 = False ;
11964 bool temp3 = False ;
11965 bool temp4 = False ;
11966 PyObject * obj0 = 0 ;
11967 PyObject * obj1 = 0 ;
11968 PyObject * obj2 = 0 ;
11969 PyObject * obj3 = 0 ;
11970 char *kwnames[] = {
11971 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11972 };
11973
11974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11975 {
11976 arg1 = wxString_in_helper(obj0);
11977 if (arg1 == NULL) SWIG_fail;
11978 temp1 = True;
11979 }
11980 {
11981 arg2 = wxString_in_helper(obj1);
11982 if (arg2 == NULL) SWIG_fail;
11983 temp2 = True;
11984 }
11985 {
11986 arg3 = wxString_in_helper(obj2);
11987 if (arg3 == NULL) SWIG_fail;
11988 temp3 = True;
11989 }
11990 {
11991 arg4 = wxString_in_helper(obj3);
11992 if (arg4 == NULL) SWIG_fail;
11993 temp4 = True;
11994 }
11995 {
11996 PyThreadState* __tstate = wxPyBeginAllowThreads();
11997 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11998
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12003 {
12004 if (temp1)
12005 delete arg1;
12006 }
12007 {
12008 if (temp2)
12009 delete arg2;
12010 }
12011 {
12012 if (temp3)
12013 delete arg3;
12014 }
12015 {
12016 if (temp4)
12017 delete arg4;
12018 }
12019 return resultobj;
12020 fail:
12021 {
12022 if (temp1)
12023 delete arg1;
12024 }
12025 {
12026 if (temp2)
12027 delete arg2;
12028 }
12029 {
12030 if (temp3)
12031 delete arg3;
12032 }
12033 {
12034 if (temp4)
12035 delete arg4;
12036 }
12037 return NULL;
12038 }
12039
12040
12041 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
12042 PyObject *resultobj;
12043 wxArrayString *arg1 = 0 ;
12044 wxFileTypeInfo *result;
12045 bool temp1 = False ;
12046 PyObject * obj0 = 0 ;
12047 char *kwnames[] = {
12048 (char *) "sArray", NULL
12049 };
12050
12051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12052 {
12053 if (! PySequence_Check(obj0)) {
12054 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12055 SWIG_fail;
12056 }
12057 arg1 = new wxArrayString;
12058 temp1 = True;
12059 int i, len=PySequence_Length(obj0);
12060 for (i=0; i<len; i++) {
12061 PyObject* item = PySequence_GetItem(obj0, i);
12062 #if wxUSE_UNICODE
12063 PyObject* str = PyObject_Unicode(item);
12064 #else
12065 PyObject* str = PyObject_Str(item);
12066 #endif
12067 if (PyErr_Occurred()) SWIG_fail;
12068 arg1->Add(Py2wxString(str));
12069 Py_DECREF(item);
12070 Py_DECREF(str);
12071 }
12072 }
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12076
12077 wxPyEndAllowThreads(__tstate);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12081 {
12082 if (temp1) delete arg1;
12083 }
12084 return resultobj;
12085 fail:
12086 {
12087 if (temp1) delete arg1;
12088 }
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxFileTypeInfo *result;
12096 char *kwnames[] = {
12097 NULL
12098 };
12099
12100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12104
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12109 return resultobj;
12110 fail:
12111 return NULL;
12112 }
12113
12114
12115 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12116 PyObject *resultobj;
12117 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12118 bool result;
12119 PyObject * obj0 = 0 ;
12120 char *kwnames[] = {
12121 (char *) "self", NULL
12122 };
12123
12124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12130
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 {
12135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12136 }
12137 return resultobj;
12138 fail:
12139 return NULL;
12140 }
12141
12142
12143 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12144 PyObject *resultobj;
12145 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12146 wxString *arg2 = 0 ;
12147 int arg3 = (int) 0 ;
12148 bool temp2 = False ;
12149 PyObject * obj0 = 0 ;
12150 PyObject * obj1 = 0 ;
12151 PyObject * obj2 = 0 ;
12152 char *kwnames[] = {
12153 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12154 };
12155
12156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12159 {
12160 arg2 = wxString_in_helper(obj1);
12161 if (arg2 == NULL) SWIG_fail;
12162 temp2 = True;
12163 }
12164 if (obj2) {
12165 arg3 = (int) SWIG_AsInt(obj2);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 {
12169 PyThreadState* __tstate = wxPyBeginAllowThreads();
12170 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12171
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 Py_INCREF(Py_None); resultobj = Py_None;
12176 {
12177 if (temp2)
12178 delete arg2;
12179 }
12180 return resultobj;
12181 fail:
12182 {
12183 if (temp2)
12184 delete arg2;
12185 }
12186 return NULL;
12187 }
12188
12189
12190 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12191 PyObject *resultobj;
12192 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12193 wxString *arg2 = 0 ;
12194 bool temp2 = False ;
12195 PyObject * obj0 = 0 ;
12196 PyObject * obj1 = 0 ;
12197 char *kwnames[] = {
12198 (char *) "self",(char *) "shortDesc", NULL
12199 };
12200
12201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12204 {
12205 arg2 = wxString_in_helper(obj1);
12206 if (arg2 == NULL) SWIG_fail;
12207 temp2 = True;
12208 }
12209 {
12210 PyThreadState* __tstate = wxPyBeginAllowThreads();
12211 (arg1)->SetShortDesc((wxString const &)*arg2);
12212
12213 wxPyEndAllowThreads(__tstate);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 Py_INCREF(Py_None); resultobj = Py_None;
12217 {
12218 if (temp2)
12219 delete arg2;
12220 }
12221 return resultobj;
12222 fail:
12223 {
12224 if (temp2)
12225 delete arg2;
12226 }
12227 return NULL;
12228 }
12229
12230
12231 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj;
12233 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12234 wxString *result;
12235 PyObject * obj0 = 0 ;
12236 char *kwnames[] = {
12237 (char *) "self", NULL
12238 };
12239
12240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12243 {
12244 PyThreadState* __tstate = wxPyBeginAllowThreads();
12245 {
12246 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12247 result = (wxString *) &_result_ref;
12248 }
12249
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 {
12254 #if wxUSE_UNICODE
12255 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12256 #else
12257 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12258 #endif
12259 }
12260 return resultobj;
12261 fail:
12262 return NULL;
12263 }
12264
12265
12266 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12267 PyObject *resultobj;
12268 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12269 wxString *result;
12270 PyObject * obj0 = 0 ;
12271 char *kwnames[] = {
12272 (char *) "self", NULL
12273 };
12274
12275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 {
12281 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12282 result = (wxString *) &_result_ref;
12283 }
12284
12285 wxPyEndAllowThreads(__tstate);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 }
12288 {
12289 #if wxUSE_UNICODE
12290 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12291 #else
12292 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12293 #endif
12294 }
12295 return resultobj;
12296 fail:
12297 return NULL;
12298 }
12299
12300
12301 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12302 PyObject *resultobj;
12303 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12304 wxString *result;
12305 PyObject * obj0 = 0 ;
12306 char *kwnames[] = {
12307 (char *) "self", NULL
12308 };
12309
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12313 {
12314 PyThreadState* __tstate = wxPyBeginAllowThreads();
12315 {
12316 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12317 result = (wxString *) &_result_ref;
12318 }
12319
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 {
12324 #if wxUSE_UNICODE
12325 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12326 #else
12327 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12328 #endif
12329 }
12330 return resultobj;
12331 fail:
12332 return NULL;
12333 }
12334
12335
12336 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12337 PyObject *resultobj;
12338 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12339 wxString *result;
12340 PyObject * obj0 = 0 ;
12341 char *kwnames[] = {
12342 (char *) "self", NULL
12343 };
12344
12345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 {
12351 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12352 result = (wxString *) &_result_ref;
12353 }
12354
12355 wxPyEndAllowThreads(__tstate);
12356 if (PyErr_Occurred()) SWIG_fail;
12357 }
12358 {
12359 #if wxUSE_UNICODE
12360 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12361 #else
12362 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12363 #endif
12364 }
12365 return resultobj;
12366 fail:
12367 return NULL;
12368 }
12369
12370
12371 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj;
12373 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12374 wxString *result;
12375 PyObject * obj0 = 0 ;
12376 char *kwnames[] = {
12377 (char *) "self", NULL
12378 };
12379
12380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12383 {
12384 PyThreadState* __tstate = wxPyBeginAllowThreads();
12385 {
12386 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12387 result = (wxString *) &_result_ref;
12388 }
12389
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 {
12394 #if wxUSE_UNICODE
12395 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12396 #else
12397 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12398 #endif
12399 }
12400 return resultobj;
12401 fail:
12402 return NULL;
12403 }
12404
12405
12406 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12407 PyObject *resultobj;
12408 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12409 wxArrayString *result;
12410 PyObject * obj0 = 0 ;
12411 char *kwnames[] = {
12412 (char *) "self", NULL
12413 };
12414
12415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12418 {
12419 PyThreadState* __tstate = wxPyBeginAllowThreads();
12420 {
12421 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12422 result = (wxArrayString *) &_result_ref;
12423 }
12424
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 {
12429 resultobj = wxArrayString2PyList_helper(*result);
12430 }
12431 return resultobj;
12432 fail:
12433 return NULL;
12434 }
12435
12436
12437 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12438 PyObject *resultobj;
12439 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12440 int result;
12441 PyObject * obj0 = 0 ;
12442 char *kwnames[] = {
12443 (char *) "self", NULL
12444 };
12445
12446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12452
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 resultobj = SWIG_FromInt((int)result);
12457 return resultobj;
12458 fail:
12459 return NULL;
12460 }
12461
12462
12463 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12464 PyObject *resultobj;
12465 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12466 wxString *result;
12467 PyObject * obj0 = 0 ;
12468 char *kwnames[] = {
12469 (char *) "self", NULL
12470 };
12471
12472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 {
12478 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12479 result = (wxString *) &_result_ref;
12480 }
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 {
12486 #if wxUSE_UNICODE
12487 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12488 #else
12489 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12490 #endif
12491 }
12492 return resultobj;
12493 fail:
12494 return NULL;
12495 }
12496
12497
12498 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12499 PyObject *resultobj;
12500 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12501 int result;
12502 PyObject * obj0 = 0 ;
12503 char *kwnames[] = {
12504 (char *) "self", NULL
12505 };
12506
12507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12510 {
12511 PyThreadState* __tstate = wxPyBeginAllowThreads();
12512 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12513
12514 wxPyEndAllowThreads(__tstate);
12515 if (PyErr_Occurred()) SWIG_fail;
12516 }
12517 resultobj = SWIG_FromInt((int)result);
12518 return resultobj;
12519 fail:
12520 return NULL;
12521 }
12522
12523
12524 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12525 PyObject *obj;
12526 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12527 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12528 Py_INCREF(obj);
12529 return Py_BuildValue((char *)"");
12530 }
12531 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12532 PyObject *resultobj;
12533 wxFileTypeInfo *arg1 = 0 ;
12534 wxFileType *result;
12535 PyObject * obj0 = 0 ;
12536 char *kwnames[] = {
12537 (char *) "ftInfo", NULL
12538 };
12539
12540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12542 SWIG_POINTER_EXCEPTION | 0)) == -1)
12543 SWIG_fail;
12544 if (arg1 == NULL) {
12545 PyErr_SetString(PyExc_TypeError,"null reference");
12546 SWIG_fail;
12547 }
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12551
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12556 return resultobj;
12557 fail:
12558 return NULL;
12559 }
12560
12561
12562 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12563 PyObject *resultobj;
12564 wxFileType *arg1 = (wxFileType *) 0 ;
12565 PyObject * obj0 = 0 ;
12566 char *kwnames[] = {
12567 (char *) "self", NULL
12568 };
12569
12570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 delete arg1;
12576
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 Py_INCREF(Py_None); resultobj = Py_None;
12581 return resultobj;
12582 fail:
12583 return NULL;
12584 }
12585
12586
12587 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj;
12589 wxFileType *arg1 = (wxFileType *) 0 ;
12590 PyObject *result;
12591 PyObject * obj0 = 0 ;
12592 char *kwnames[] = {
12593 (char *) "self", NULL
12594 };
12595
12596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 result = (PyObject *)wxFileType_GetMimeType(arg1);
12602
12603 wxPyEndAllowThreads(__tstate);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 }
12606 resultobj = result;
12607 return resultobj;
12608 fail:
12609 return NULL;
12610 }
12611
12612
12613 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12614 PyObject *resultobj;
12615 wxFileType *arg1 = (wxFileType *) 0 ;
12616 PyObject *result;
12617 PyObject * obj0 = 0 ;
12618 char *kwnames[] = {
12619 (char *) "self", NULL
12620 };
12621
12622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12625 {
12626 PyThreadState* __tstate = wxPyBeginAllowThreads();
12627 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12628
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 resultobj = result;
12633 return resultobj;
12634 fail:
12635 return NULL;
12636 }
12637
12638
12639 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12640 PyObject *resultobj;
12641 wxFileType *arg1 = (wxFileType *) 0 ;
12642 PyObject *result;
12643 PyObject * obj0 = 0 ;
12644 char *kwnames[] = {
12645 (char *) "self", NULL
12646 };
12647
12648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12651 {
12652 PyThreadState* __tstate = wxPyBeginAllowThreads();
12653 result = (PyObject *)wxFileType_GetExtensions(arg1);
12654
12655 wxPyEndAllowThreads(__tstate);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 resultobj = result;
12659 return resultobj;
12660 fail:
12661 return NULL;
12662 }
12663
12664
12665 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12666 PyObject *resultobj;
12667 wxFileType *arg1 = (wxFileType *) 0 ;
12668 wxIcon *result;
12669 PyObject * obj0 = 0 ;
12670 char *kwnames[] = {
12671 (char *) "self", NULL
12672 };
12673
12674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 result = (wxIcon *)wxFileType_GetIcon(arg1);
12680
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12685 return resultobj;
12686 fail:
12687 return NULL;
12688 }
12689
12690
12691 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12692 PyObject *resultobj;
12693 wxFileType *arg1 = (wxFileType *) 0 ;
12694 PyObject *result;
12695 PyObject * obj0 = 0 ;
12696 char *kwnames[] = {
12697 (char *) "self", NULL
12698 };
12699
12700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12703 {
12704 PyThreadState* __tstate = wxPyBeginAllowThreads();
12705 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12706
12707 wxPyEndAllowThreads(__tstate);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 }
12710 resultobj = result;
12711 return resultobj;
12712 fail:
12713 return NULL;
12714 }
12715
12716
12717 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12718 PyObject *resultobj;
12719 wxFileType *arg1 = (wxFileType *) 0 ;
12720 PyObject *result;
12721 PyObject * obj0 = 0 ;
12722 char *kwnames[] = {
12723 (char *) "self", NULL
12724 };
12725
12726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12729 {
12730 PyThreadState* __tstate = wxPyBeginAllowThreads();
12731 result = (PyObject *)wxFileType_GetDescription(arg1);
12732
12733 wxPyEndAllowThreads(__tstate);
12734 if (PyErr_Occurred()) SWIG_fail;
12735 }
12736 resultobj = result;
12737 return resultobj;
12738 fail:
12739 return NULL;
12740 }
12741
12742
12743 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj;
12745 wxFileType *arg1 = (wxFileType *) 0 ;
12746 wxString *arg2 = 0 ;
12747 wxString const &arg3_defvalue = wxPyEmptyString ;
12748 wxString *arg3 = (wxString *) &arg3_defvalue ;
12749 PyObject *result;
12750 bool temp2 = False ;
12751 bool temp3 = False ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754 PyObject * obj2 = 0 ;
12755 char *kwnames[] = {
12756 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12757 };
12758
12759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12762 {
12763 arg2 = wxString_in_helper(obj1);
12764 if (arg2 == NULL) SWIG_fail;
12765 temp2 = True;
12766 }
12767 if (obj2) {
12768 {
12769 arg3 = wxString_in_helper(obj2);
12770 if (arg3 == NULL) SWIG_fail;
12771 temp3 = True;
12772 }
12773 }
12774 {
12775 PyThreadState* __tstate = wxPyBeginAllowThreads();
12776 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12777
12778 wxPyEndAllowThreads(__tstate);
12779 if (PyErr_Occurred()) SWIG_fail;
12780 }
12781 resultobj = result;
12782 {
12783 if (temp2)
12784 delete arg2;
12785 }
12786 {
12787 if (temp3)
12788 delete arg3;
12789 }
12790 return resultobj;
12791 fail:
12792 {
12793 if (temp2)
12794 delete arg2;
12795 }
12796 {
12797 if (temp3)
12798 delete arg3;
12799 }
12800 return NULL;
12801 }
12802
12803
12804 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj;
12806 wxFileType *arg1 = (wxFileType *) 0 ;
12807 wxString *arg2 = 0 ;
12808 wxString const &arg3_defvalue = wxPyEmptyString ;
12809 wxString *arg3 = (wxString *) &arg3_defvalue ;
12810 PyObject *result;
12811 bool temp2 = False ;
12812 bool temp3 = False ;
12813 PyObject * obj0 = 0 ;
12814 PyObject * obj1 = 0 ;
12815 PyObject * obj2 = 0 ;
12816 char *kwnames[] = {
12817 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12818 };
12819
12820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12823 {
12824 arg2 = wxString_in_helper(obj1);
12825 if (arg2 == NULL) SWIG_fail;
12826 temp2 = True;
12827 }
12828 if (obj2) {
12829 {
12830 arg3 = wxString_in_helper(obj2);
12831 if (arg3 == NULL) SWIG_fail;
12832 temp3 = True;
12833 }
12834 }
12835 {
12836 PyThreadState* __tstate = wxPyBeginAllowThreads();
12837 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12838
12839 wxPyEndAllowThreads(__tstate);
12840 if (PyErr_Occurred()) SWIG_fail;
12841 }
12842 resultobj = result;
12843 {
12844 if (temp2)
12845 delete arg2;
12846 }
12847 {
12848 if (temp3)
12849 delete arg3;
12850 }
12851 return resultobj;
12852 fail:
12853 {
12854 if (temp2)
12855 delete arg2;
12856 }
12857 {
12858 if (temp3)
12859 delete arg3;
12860 }
12861 return NULL;
12862 }
12863
12864
12865 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj;
12867 wxFileType *arg1 = (wxFileType *) 0 ;
12868 wxString *arg2 = 0 ;
12869 wxString const &arg3_defvalue = wxPyEmptyString ;
12870 wxString *arg3 = (wxString *) &arg3_defvalue ;
12871 PyObject *result;
12872 bool temp2 = False ;
12873 bool temp3 = False ;
12874 PyObject * obj0 = 0 ;
12875 PyObject * obj1 = 0 ;
12876 PyObject * obj2 = 0 ;
12877 char *kwnames[] = {
12878 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12879 };
12880
12881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12884 {
12885 arg2 = wxString_in_helper(obj1);
12886 if (arg2 == NULL) SWIG_fail;
12887 temp2 = True;
12888 }
12889 if (obj2) {
12890 {
12891 arg3 = wxString_in_helper(obj2);
12892 if (arg3 == NULL) SWIG_fail;
12893 temp3 = True;
12894 }
12895 }
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12899
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 resultobj = result;
12904 {
12905 if (temp2)
12906 delete arg2;
12907 }
12908 {
12909 if (temp3)
12910 delete arg3;
12911 }
12912 return resultobj;
12913 fail:
12914 {
12915 if (temp2)
12916 delete arg2;
12917 }
12918 {
12919 if (temp3)
12920 delete arg3;
12921 }
12922 return NULL;
12923 }
12924
12925
12926 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj;
12928 wxFileType *arg1 = (wxFileType *) 0 ;
12929 wxString *arg2 = 0 ;
12930 wxString *arg3 = 0 ;
12931 bool arg4 = (bool) True ;
12932 bool result;
12933 bool temp2 = False ;
12934 bool temp3 = False ;
12935 PyObject * obj0 = 0 ;
12936 PyObject * obj1 = 0 ;
12937 PyObject * obj2 = 0 ;
12938 PyObject * obj3 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12946 {
12947 arg2 = wxString_in_helper(obj1);
12948 if (arg2 == NULL) SWIG_fail;
12949 temp2 = True;
12950 }
12951 {
12952 arg3 = wxString_in_helper(obj2);
12953 if (arg3 == NULL) SWIG_fail;
12954 temp3 = True;
12955 }
12956 if (obj3) {
12957 arg4 = (bool) SWIG_AsBool(obj3);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12963
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 {
12968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12969 }
12970 {
12971 if (temp2)
12972 delete arg2;
12973 }
12974 {
12975 if (temp3)
12976 delete arg3;
12977 }
12978 return resultobj;
12979 fail:
12980 {
12981 if (temp2)
12982 delete arg2;
12983 }
12984 {
12985 if (temp3)
12986 delete arg3;
12987 }
12988 return NULL;
12989 }
12990
12991
12992 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj;
12994 wxFileType *arg1 = (wxFileType *) 0 ;
12995 wxString const &arg2_defvalue = wxPyEmptyString ;
12996 wxString *arg2 = (wxString *) &arg2_defvalue ;
12997 int arg3 = (int) 0 ;
12998 bool result;
12999 bool temp2 = False ;
13000 PyObject * obj0 = 0 ;
13001 PyObject * obj1 = 0 ;
13002 PyObject * obj2 = 0 ;
13003 char *kwnames[] = {
13004 (char *) "self",(char *) "cmd",(char *) "index", NULL
13005 };
13006
13007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13010 if (obj1) {
13011 {
13012 arg2 = wxString_in_helper(obj1);
13013 if (arg2 == NULL) SWIG_fail;
13014 temp2 = True;
13015 }
13016 }
13017 if (obj2) {
13018 arg3 = (int) SWIG_AsInt(obj2);
13019 if (PyErr_Occurred()) SWIG_fail;
13020 }
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13024
13025 wxPyEndAllowThreads(__tstate);
13026 if (PyErr_Occurred()) SWIG_fail;
13027 }
13028 {
13029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13030 }
13031 {
13032 if (temp2)
13033 delete arg2;
13034 }
13035 return resultobj;
13036 fail:
13037 {
13038 if (temp2)
13039 delete arg2;
13040 }
13041 return NULL;
13042 }
13043
13044
13045 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13046 PyObject *resultobj;
13047 wxFileType *arg1 = (wxFileType *) 0 ;
13048 bool result;
13049 PyObject * obj0 = 0 ;
13050 char *kwnames[] = {
13051 (char *) "self", NULL
13052 };
13053
13054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 result = (bool)(arg1)->Unassociate();
13060
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 {
13065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13066 }
13067 return resultobj;
13068 fail:
13069 return NULL;
13070 }
13071
13072
13073 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj;
13075 wxString *arg1 = 0 ;
13076 wxString *arg2 = 0 ;
13077 wxString const &arg3_defvalue = wxPyEmptyString ;
13078 wxString *arg3 = (wxString *) &arg3_defvalue ;
13079 wxString result;
13080 bool temp1 = False ;
13081 bool temp2 = False ;
13082 bool temp3 = False ;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 PyObject * obj2 = 0 ;
13086 char *kwnames[] = {
13087 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13088 };
13089
13090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13091 {
13092 arg1 = wxString_in_helper(obj0);
13093 if (arg1 == NULL) SWIG_fail;
13094 temp1 = True;
13095 }
13096 {
13097 arg2 = wxString_in_helper(obj1);
13098 if (arg2 == NULL) SWIG_fail;
13099 temp2 = True;
13100 }
13101 if (obj2) {
13102 {
13103 arg3 = wxString_in_helper(obj2);
13104 if (arg3 == NULL) SWIG_fail;
13105 temp3 = True;
13106 }
13107 }
13108 {
13109 PyThreadState* __tstate = wxPyBeginAllowThreads();
13110 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13111
13112 wxPyEndAllowThreads(__tstate);
13113 if (PyErr_Occurred()) SWIG_fail;
13114 }
13115 {
13116 #if wxUSE_UNICODE
13117 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13118 #else
13119 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13120 #endif
13121 }
13122 {
13123 if (temp1)
13124 delete arg1;
13125 }
13126 {
13127 if (temp2)
13128 delete arg2;
13129 }
13130 {
13131 if (temp3)
13132 delete arg3;
13133 }
13134 return resultobj;
13135 fail:
13136 {
13137 if (temp1)
13138 delete arg1;
13139 }
13140 {
13141 if (temp2)
13142 delete arg2;
13143 }
13144 {
13145 if (temp3)
13146 delete arg3;
13147 }
13148 return NULL;
13149 }
13150
13151
13152 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13153 PyObject *obj;
13154 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13155 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13156 Py_INCREF(obj);
13157 return Py_BuildValue((char *)"");
13158 }
13159 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13160 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13161 return 1;
13162 }
13163
13164
13165 static PyObject *_wrap_TheMimeTypesManager_get() {
13166 PyObject *pyobj;
13167
13168 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13169 return pyobj;
13170 }
13171
13172
13173 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj;
13175 wxString *arg1 = 0 ;
13176 wxString *arg2 = 0 ;
13177 bool result;
13178 bool temp1 = False ;
13179 bool temp2 = False ;
13180 PyObject * obj0 = 0 ;
13181 PyObject * obj1 = 0 ;
13182 char *kwnames[] = {
13183 (char *) "mimeType",(char *) "wildcard", NULL
13184 };
13185
13186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13187 {
13188 arg1 = wxString_in_helper(obj0);
13189 if (arg1 == NULL) SWIG_fail;
13190 temp1 = True;
13191 }
13192 {
13193 arg2 = wxString_in_helper(obj1);
13194 if (arg2 == NULL) SWIG_fail;
13195 temp2 = True;
13196 }
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13200
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 {
13205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13206 }
13207 {
13208 if (temp1)
13209 delete arg1;
13210 }
13211 {
13212 if (temp2)
13213 delete arg2;
13214 }
13215 return resultobj;
13216 fail:
13217 {
13218 if (temp1)
13219 delete arg1;
13220 }
13221 {
13222 if (temp2)
13223 delete arg2;
13224 }
13225 return NULL;
13226 }
13227
13228
13229 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13230 PyObject *resultobj;
13231 wxMimeTypesManager *result;
13232 char *kwnames[] = {
13233 NULL
13234 };
13235
13236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13237 {
13238 PyThreadState* __tstate = wxPyBeginAllowThreads();
13239 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13240
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13245 return resultobj;
13246 fail:
13247 return NULL;
13248 }
13249
13250
13251 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13252 PyObject *resultobj;
13253 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13254 int arg2 = (int) wxMAILCAP_ALL ;
13255 wxString const &arg3_defvalue = wxPyEmptyString ;
13256 wxString *arg3 = (wxString *) &arg3_defvalue ;
13257 bool temp3 = False ;
13258 PyObject * obj0 = 0 ;
13259 PyObject * obj1 = 0 ;
13260 PyObject * obj2 = 0 ;
13261 char *kwnames[] = {
13262 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13263 };
13264
13265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13268 if (obj1) {
13269 arg2 = (int) SWIG_AsInt(obj1);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 if (obj2) {
13273 {
13274 arg3 = wxString_in_helper(obj2);
13275 if (arg3 == NULL) SWIG_fail;
13276 temp3 = True;
13277 }
13278 }
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13282
13283 wxPyEndAllowThreads(__tstate);
13284 if (PyErr_Occurred()) SWIG_fail;
13285 }
13286 Py_INCREF(Py_None); resultobj = Py_None;
13287 {
13288 if (temp3)
13289 delete arg3;
13290 }
13291 return resultobj;
13292 fail:
13293 {
13294 if (temp3)
13295 delete arg3;
13296 }
13297 return NULL;
13298 }
13299
13300
13301 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13302 PyObject *resultobj;
13303 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13304 PyObject * obj0 = 0 ;
13305 char *kwnames[] = {
13306 (char *) "self", NULL
13307 };
13308
13309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13312 {
13313 PyThreadState* __tstate = wxPyBeginAllowThreads();
13314 (arg1)->ClearData();
13315
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 Py_INCREF(Py_None); resultobj = Py_None;
13320 return resultobj;
13321 fail:
13322 return NULL;
13323 }
13324
13325
13326 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13327 PyObject *resultobj;
13328 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13329 wxString *arg2 = 0 ;
13330 wxFileType *result;
13331 bool temp2 = False ;
13332 PyObject * obj0 = 0 ;
13333 PyObject * obj1 = 0 ;
13334 char *kwnames[] = {
13335 (char *) "self",(char *) "ext", NULL
13336 };
13337
13338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13341 {
13342 arg2 = wxString_in_helper(obj1);
13343 if (arg2 == NULL) SWIG_fail;
13344 temp2 = True;
13345 }
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13354 {
13355 if (temp2)
13356 delete arg2;
13357 }
13358 return resultobj;
13359 fail:
13360 {
13361 if (temp2)
13362 delete arg2;
13363 }
13364 return NULL;
13365 }
13366
13367
13368 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13369 PyObject *resultobj;
13370 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13371 wxString *arg2 = 0 ;
13372 wxFileType *result;
13373 bool temp2 = False ;
13374 PyObject * obj0 = 0 ;
13375 PyObject * obj1 = 0 ;
13376 char *kwnames[] = {
13377 (char *) "self",(char *) "mimeType", NULL
13378 };
13379
13380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13383 {
13384 arg2 = wxString_in_helper(obj1);
13385 if (arg2 == NULL) SWIG_fail;
13386 temp2 = True;
13387 }
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13391
13392 wxPyEndAllowThreads(__tstate);
13393 if (PyErr_Occurred()) SWIG_fail;
13394 }
13395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13396 {
13397 if (temp2)
13398 delete arg2;
13399 }
13400 return resultobj;
13401 fail:
13402 {
13403 if (temp2)
13404 delete arg2;
13405 }
13406 return NULL;
13407 }
13408
13409
13410 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13411 PyObject *resultobj;
13412 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13413 wxString *arg2 = 0 ;
13414 bool arg3 = (bool) False ;
13415 bool result;
13416 bool temp2 = False ;
13417 PyObject * obj0 = 0 ;
13418 PyObject * obj1 = 0 ;
13419 PyObject * obj2 = 0 ;
13420 char *kwnames[] = {
13421 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13422 };
13423
13424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13427 {
13428 arg2 = wxString_in_helper(obj1);
13429 if (arg2 == NULL) SWIG_fail;
13430 temp2 = True;
13431 }
13432 if (obj2) {
13433 arg3 = (bool) SWIG_AsBool(obj2);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13439
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 {
13444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13445 }
13446 {
13447 if (temp2)
13448 delete arg2;
13449 }
13450 return resultobj;
13451 fail:
13452 {
13453 if (temp2)
13454 delete arg2;
13455 }
13456 return NULL;
13457 }
13458
13459
13460 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13461 PyObject *resultobj;
13462 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13463 wxString *arg2 = 0 ;
13464 bool result;
13465 bool temp2 = False ;
13466 PyObject * obj0 = 0 ;
13467 PyObject * obj1 = 0 ;
13468 char *kwnames[] = {
13469 (char *) "self",(char *) "filename", NULL
13470 };
13471
13472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13475 {
13476 arg2 = wxString_in_helper(obj1);
13477 if (arg2 == NULL) SWIG_fail;
13478 temp2 = True;
13479 }
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 {
13488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13489 }
13490 {
13491 if (temp2)
13492 delete arg2;
13493 }
13494 return resultobj;
13495 fail:
13496 {
13497 if (temp2)
13498 delete arg2;
13499 }
13500 return NULL;
13501 }
13502
13503
13504 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13505 PyObject *resultobj;
13506 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13507 PyObject *result;
13508 PyObject * obj0 = 0 ;
13509 char *kwnames[] = {
13510 (char *) "self", NULL
13511 };
13512
13513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13516 {
13517 PyThreadState* __tstate = wxPyBeginAllowThreads();
13518 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13519
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = result;
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj;
13532 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13533 wxFileTypeInfo *arg2 = 0 ;
13534 PyObject * obj0 = 0 ;
13535 PyObject * obj1 = 0 ;
13536 char *kwnames[] = {
13537 (char *) "self",(char *) "ft", NULL
13538 };
13539
13540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13543 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13544 SWIG_POINTER_EXCEPTION | 0)) == -1)
13545 SWIG_fail;
13546 if (arg2 == NULL) {
13547 PyErr_SetString(PyExc_TypeError,"null reference");
13548 SWIG_fail;
13549 }
13550 {
13551 PyThreadState* __tstate = wxPyBeginAllowThreads();
13552 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13553
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 Py_INCREF(Py_None); resultobj = Py_None;
13558 return resultobj;
13559 fail:
13560 return NULL;
13561 }
13562
13563
13564 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13565 PyObject *resultobj;
13566 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13567 wxFileTypeInfo *arg2 = 0 ;
13568 wxFileType *result;
13569 PyObject * obj0 = 0 ;
13570 PyObject * obj1 = 0 ;
13571 char *kwnames[] = {
13572 (char *) "self",(char *) "ftInfo", NULL
13573 };
13574
13575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13579 SWIG_POINTER_EXCEPTION | 0)) == -1)
13580 SWIG_fail;
13581 if (arg2 == NULL) {
13582 PyErr_SetString(PyExc_TypeError,"null reference");
13583 SWIG_fail;
13584 }
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13588
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13593 return resultobj;
13594 fail:
13595 return NULL;
13596 }
13597
13598
13599 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13600 PyObject *resultobj;
13601 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13602 wxFileType *arg2 = (wxFileType *) 0 ;
13603 bool result;
13604 PyObject * obj0 = 0 ;
13605 PyObject * obj1 = 0 ;
13606 char *kwnames[] = {
13607 (char *) "self",(char *) "ft", NULL
13608 };
13609
13610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13613 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13615 {
13616 PyThreadState* __tstate = wxPyBeginAllowThreads();
13617 result = (bool)(arg1)->Unassociate(arg2);
13618
13619 wxPyEndAllowThreads(__tstate);
13620 if (PyErr_Occurred()) SWIG_fail;
13621 }
13622 {
13623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13624 }
13625 return resultobj;
13626 fail:
13627 return NULL;
13628 }
13629
13630
13631 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13632 PyObject *resultobj;
13633 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13634 PyObject * obj0 = 0 ;
13635 char *kwnames[] = {
13636 (char *) "self", NULL
13637 };
13638
13639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13642 {
13643 PyThreadState* __tstate = wxPyBeginAllowThreads();
13644 delete arg1;
13645
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 Py_INCREF(Py_None); resultobj = Py_None;
13650 return resultobj;
13651 fail:
13652 return NULL;
13653 }
13654
13655
13656 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13657 PyObject *obj;
13658 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13659 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13660 Py_INCREF(obj);
13661 return Py_BuildValue((char *)"");
13662 }
13663 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13664 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13665 return 1;
13666 }
13667
13668
13669 static PyObject *_wrap_ART_TOOLBAR_get() {
13670 PyObject *pyobj;
13671
13672 {
13673 #if wxUSE_UNICODE
13674 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13675 #else
13676 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13677 #endif
13678 }
13679 return pyobj;
13680 }
13681
13682
13683 static int _wrap_ART_MENU_set(PyObject *_val) {
13684 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13685 return 1;
13686 }
13687
13688
13689 static PyObject *_wrap_ART_MENU_get() {
13690 PyObject *pyobj;
13691
13692 {
13693 #if wxUSE_UNICODE
13694 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13695 #else
13696 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13697 #endif
13698 }
13699 return pyobj;
13700 }
13701
13702
13703 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13704 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13705 return 1;
13706 }
13707
13708
13709 static PyObject *_wrap_ART_FRAME_ICON_get() {
13710 PyObject *pyobj;
13711
13712 {
13713 #if wxUSE_UNICODE
13714 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13715 #else
13716 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13717 #endif
13718 }
13719 return pyobj;
13720 }
13721
13722
13723 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13724 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13725 return 1;
13726 }
13727
13728
13729 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13730 PyObject *pyobj;
13731
13732 {
13733 #if wxUSE_UNICODE
13734 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13735 #else
13736 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13737 #endif
13738 }
13739 return pyobj;
13740 }
13741
13742
13743 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13744 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13745 return 1;
13746 }
13747
13748
13749 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13750 PyObject *pyobj;
13751
13752 {
13753 #if wxUSE_UNICODE
13754 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13755 #else
13756 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13757 #endif
13758 }
13759 return pyobj;
13760 }
13761
13762
13763 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13764 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13765 return 1;
13766 }
13767
13768
13769 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13770 PyObject *pyobj;
13771
13772 {
13773 #if wxUSE_UNICODE
13774 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13775 #else
13776 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13777 #endif
13778 }
13779 return pyobj;
13780 }
13781
13782
13783 static int _wrap_ART_OTHER_set(PyObject *_val) {
13784 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13785 return 1;
13786 }
13787
13788
13789 static PyObject *_wrap_ART_OTHER_get() {
13790 PyObject *pyobj;
13791
13792 {
13793 #if wxUSE_UNICODE
13794 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13795 #else
13796 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13797 #endif
13798 }
13799 return pyobj;
13800 }
13801
13802
13803 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13804 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13805 return 1;
13806 }
13807
13808
13809 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13810 PyObject *pyobj;
13811
13812 {
13813 #if wxUSE_UNICODE
13814 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13815 #else
13816 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13817 #endif
13818 }
13819 return pyobj;
13820 }
13821
13822
13823 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13824 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13825 return 1;
13826 }
13827
13828
13829 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13830 PyObject *pyobj;
13831
13832 {
13833 #if wxUSE_UNICODE
13834 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13835 #else
13836 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13837 #endif
13838 }
13839 return pyobj;
13840 }
13841
13842
13843 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13844 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13845 return 1;
13846 }
13847
13848
13849 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13850 PyObject *pyobj;
13851
13852 {
13853 #if wxUSE_UNICODE
13854 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13855 #else
13856 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13857 #endif
13858 }
13859 return pyobj;
13860 }
13861
13862
13863 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13864 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13865 return 1;
13866 }
13867
13868
13869 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13870 PyObject *pyobj;
13871
13872 {
13873 #if wxUSE_UNICODE
13874 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13875 #else
13876 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13877 #endif
13878 }
13879 return pyobj;
13880 }
13881
13882
13883 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13884 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13885 return 1;
13886 }
13887
13888
13889 static PyObject *_wrap_ART_HELP_BOOK_get() {
13890 PyObject *pyobj;
13891
13892 {
13893 #if wxUSE_UNICODE
13894 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13895 #else
13896 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13897 #endif
13898 }
13899 return pyobj;
13900 }
13901
13902
13903 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13904 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13905 return 1;
13906 }
13907
13908
13909 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13910 PyObject *pyobj;
13911
13912 {
13913 #if wxUSE_UNICODE
13914 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13915 #else
13916 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13917 #endif
13918 }
13919 return pyobj;
13920 }
13921
13922
13923 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13924 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13925 return 1;
13926 }
13927
13928
13929 static PyObject *_wrap_ART_HELP_PAGE_get() {
13930 PyObject *pyobj;
13931
13932 {
13933 #if wxUSE_UNICODE
13934 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13935 #else
13936 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13937 #endif
13938 }
13939 return pyobj;
13940 }
13941
13942
13943 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13944 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13945 return 1;
13946 }
13947
13948
13949 static PyObject *_wrap_ART_GO_BACK_get() {
13950 PyObject *pyobj;
13951
13952 {
13953 #if wxUSE_UNICODE
13954 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13955 #else
13956 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13957 #endif
13958 }
13959 return pyobj;
13960 }
13961
13962
13963 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13964 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13965 return 1;
13966 }
13967
13968
13969 static PyObject *_wrap_ART_GO_FORWARD_get() {
13970 PyObject *pyobj;
13971
13972 {
13973 #if wxUSE_UNICODE
13974 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13975 #else
13976 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13977 #endif
13978 }
13979 return pyobj;
13980 }
13981
13982
13983 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13984 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13985 return 1;
13986 }
13987
13988
13989 static PyObject *_wrap_ART_GO_UP_get() {
13990 PyObject *pyobj;
13991
13992 {
13993 #if wxUSE_UNICODE
13994 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13995 #else
13996 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13997 #endif
13998 }
13999 return pyobj;
14000 }
14001
14002
14003 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
14004 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14005 return 1;
14006 }
14007
14008
14009 static PyObject *_wrap_ART_GO_DOWN_get() {
14010 PyObject *pyobj;
14011
14012 {
14013 #if wxUSE_UNICODE
14014 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14015 #else
14016 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14017 #endif
14018 }
14019 return pyobj;
14020 }
14021
14022
14023 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
14024 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14025 return 1;
14026 }
14027
14028
14029 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14030 PyObject *pyobj;
14031
14032 {
14033 #if wxUSE_UNICODE
14034 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14035 #else
14036 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14037 #endif
14038 }
14039 return pyobj;
14040 }
14041
14042
14043 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
14044 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14045 return 1;
14046 }
14047
14048
14049 static PyObject *_wrap_ART_GO_HOME_get() {
14050 PyObject *pyobj;
14051
14052 {
14053 #if wxUSE_UNICODE
14054 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14055 #else
14056 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14057 #endif
14058 }
14059 return pyobj;
14060 }
14061
14062
14063 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14064 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14065 return 1;
14066 }
14067
14068
14069 static PyObject *_wrap_ART_FILE_OPEN_get() {
14070 PyObject *pyobj;
14071
14072 {
14073 #if wxUSE_UNICODE
14074 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14075 #else
14076 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14077 #endif
14078 }
14079 return pyobj;
14080 }
14081
14082
14083 static int _wrap_ART_PRINT_set(PyObject *_val) {
14084 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14085 return 1;
14086 }
14087
14088
14089 static PyObject *_wrap_ART_PRINT_get() {
14090 PyObject *pyobj;
14091
14092 {
14093 #if wxUSE_UNICODE
14094 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14095 #else
14096 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14097 #endif
14098 }
14099 return pyobj;
14100 }
14101
14102
14103 static int _wrap_ART_HELP_set(PyObject *_val) {
14104 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14105 return 1;
14106 }
14107
14108
14109 static PyObject *_wrap_ART_HELP_get() {
14110 PyObject *pyobj;
14111
14112 {
14113 #if wxUSE_UNICODE
14114 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14115 #else
14116 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14117 #endif
14118 }
14119 return pyobj;
14120 }
14121
14122
14123 static int _wrap_ART_TIP_set(PyObject *_val) {
14124 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14125 return 1;
14126 }
14127
14128
14129 static PyObject *_wrap_ART_TIP_get() {
14130 PyObject *pyobj;
14131
14132 {
14133 #if wxUSE_UNICODE
14134 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14135 #else
14136 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14137 #endif
14138 }
14139 return pyobj;
14140 }
14141
14142
14143 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14144 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14145 return 1;
14146 }
14147
14148
14149 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14150 PyObject *pyobj;
14151
14152 {
14153 #if wxUSE_UNICODE
14154 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14155 #else
14156 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14157 #endif
14158 }
14159 return pyobj;
14160 }
14161
14162
14163 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14164 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14165 return 1;
14166 }
14167
14168
14169 static PyObject *_wrap_ART_LIST_VIEW_get() {
14170 PyObject *pyobj;
14171
14172 {
14173 #if wxUSE_UNICODE
14174 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14175 #else
14176 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14177 #endif
14178 }
14179 return pyobj;
14180 }
14181
14182
14183 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14184 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14185 return 1;
14186 }
14187
14188
14189 static PyObject *_wrap_ART_NEW_DIR_get() {
14190 PyObject *pyobj;
14191
14192 {
14193 #if wxUSE_UNICODE
14194 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14195 #else
14196 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14197 #endif
14198 }
14199 return pyobj;
14200 }
14201
14202
14203 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14204 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14205 return 1;
14206 }
14207
14208
14209 static PyObject *_wrap_ART_FOLDER_get() {
14210 PyObject *pyobj;
14211
14212 {
14213 #if wxUSE_UNICODE
14214 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14215 #else
14216 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14217 #endif
14218 }
14219 return pyobj;
14220 }
14221
14222
14223 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14224 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14225 return 1;
14226 }
14227
14228
14229 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14230 PyObject *pyobj;
14231
14232 {
14233 #if wxUSE_UNICODE
14234 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14235 #else
14236 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14237 #endif
14238 }
14239 return pyobj;
14240 }
14241
14242
14243 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14244 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14245 return 1;
14246 }
14247
14248
14249 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14250 PyObject *pyobj;
14251
14252 {
14253 #if wxUSE_UNICODE
14254 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14255 #else
14256 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14257 #endif
14258 }
14259 return pyobj;
14260 }
14261
14262
14263 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14264 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14265 return 1;
14266 }
14267
14268
14269 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14270 PyObject *pyobj;
14271
14272 {
14273 #if wxUSE_UNICODE
14274 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14275 #else
14276 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14277 #endif
14278 }
14279 return pyobj;
14280 }
14281
14282
14283 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14284 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14285 return 1;
14286 }
14287
14288
14289 static PyObject *_wrap_ART_TICK_MARK_get() {
14290 PyObject *pyobj;
14291
14292 {
14293 #if wxUSE_UNICODE
14294 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14295 #else
14296 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14297 #endif
14298 }
14299 return pyobj;
14300 }
14301
14302
14303 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14304 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14305 return 1;
14306 }
14307
14308
14309 static PyObject *_wrap_ART_CROSS_MARK_get() {
14310 PyObject *pyobj;
14311
14312 {
14313 #if wxUSE_UNICODE
14314 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14315 #else
14316 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14317 #endif
14318 }
14319 return pyobj;
14320 }
14321
14322
14323 static int _wrap_ART_ERROR_set(PyObject *_val) {
14324 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14325 return 1;
14326 }
14327
14328
14329 static PyObject *_wrap_ART_ERROR_get() {
14330 PyObject *pyobj;
14331
14332 {
14333 #if wxUSE_UNICODE
14334 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14335 #else
14336 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14337 #endif
14338 }
14339 return pyobj;
14340 }
14341
14342
14343 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14344 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14345 return 1;
14346 }
14347
14348
14349 static PyObject *_wrap_ART_QUESTION_get() {
14350 PyObject *pyobj;
14351
14352 {
14353 #if wxUSE_UNICODE
14354 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14355 #else
14356 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14357 #endif
14358 }
14359 return pyobj;
14360 }
14361
14362
14363 static int _wrap_ART_WARNING_set(PyObject *_val) {
14364 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14365 return 1;
14366 }
14367
14368
14369 static PyObject *_wrap_ART_WARNING_get() {
14370 PyObject *pyobj;
14371
14372 {
14373 #if wxUSE_UNICODE
14374 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14375 #else
14376 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14377 #endif
14378 }
14379 return pyobj;
14380 }
14381
14382
14383 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14384 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14385 return 1;
14386 }
14387
14388
14389 static PyObject *_wrap_ART_INFORMATION_get() {
14390 PyObject *pyobj;
14391
14392 {
14393 #if wxUSE_UNICODE
14394 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14395 #else
14396 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14397 #endif
14398 }
14399 return pyobj;
14400 }
14401
14402
14403 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14404 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14405 return 1;
14406 }
14407
14408
14409 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14410 PyObject *pyobj;
14411
14412 {
14413 #if wxUSE_UNICODE
14414 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14415 #else
14416 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14417 #endif
14418 }
14419 return pyobj;
14420 }
14421
14422
14423 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj;
14425 wxPyArtProvider *result;
14426 char *kwnames[] = {
14427 NULL
14428 };
14429
14430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14431 {
14432 if (!wxPyCheckForApp()) SWIG_fail;
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (wxPyArtProvider *)new wxPyArtProvider();
14435
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj;
14448 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14449 PyObject *arg2 = (PyObject *) 0 ;
14450 PyObject *arg3 = (PyObject *) 0 ;
14451 PyObject * obj0 = 0 ;
14452 PyObject * obj1 = 0 ;
14453 PyObject * obj2 = 0 ;
14454 char *kwnames[] = {
14455 (char *) "self",(char *) "self",(char *) "_class", NULL
14456 };
14457
14458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14461 arg2 = obj1;
14462 arg3 = obj2;
14463 {
14464 PyThreadState* __tstate = wxPyBeginAllowThreads();
14465 (arg1)->_setCallbackInfo(arg2,arg3);
14466
14467 wxPyEndAllowThreads(__tstate);
14468 if (PyErr_Occurred()) SWIG_fail;
14469 }
14470 Py_INCREF(Py_None); resultobj = Py_None;
14471 return resultobj;
14472 fail:
14473 return NULL;
14474 }
14475
14476
14477 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14478 PyObject *resultobj;
14479 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14480 PyObject * obj0 = 0 ;
14481 char *kwnames[] = {
14482 (char *) "provider", NULL
14483 };
14484
14485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 wxPyArtProvider::PushProvider(arg1);
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 Py_INCREF(Py_None); resultobj = Py_None;
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 bool result;
14505 char *kwnames[] = {
14506 NULL
14507 };
14508
14509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14510 {
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 result = (bool)wxPyArtProvider::PopProvider();
14513
14514 wxPyEndAllowThreads(__tstate);
14515 if (PyErr_Occurred()) SWIG_fail;
14516 }
14517 {
14518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14519 }
14520 return resultobj;
14521 fail:
14522 return NULL;
14523 }
14524
14525
14526 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14527 PyObject *resultobj;
14528 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14529 bool result;
14530 PyObject * obj0 = 0 ;
14531 char *kwnames[] = {
14532 (char *) "provider", NULL
14533 };
14534
14535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14541
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 {
14546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14547 }
14548 return resultobj;
14549 fail:
14550 return NULL;
14551 }
14552
14553
14554 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14555 PyObject *resultobj;
14556 wxString *arg1 = 0 ;
14557 wxString const &arg2_defvalue = wxPyART_OTHER ;
14558 wxString *arg2 = (wxString *) &arg2_defvalue ;
14559 wxSize const &arg3_defvalue = wxDefaultSize ;
14560 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14561 wxBitmap result;
14562 bool temp1 = False ;
14563 bool temp2 = False ;
14564 wxSize temp3 ;
14565 PyObject * obj0 = 0 ;
14566 PyObject * obj1 = 0 ;
14567 PyObject * obj2 = 0 ;
14568 char *kwnames[] = {
14569 (char *) "id",(char *) "client",(char *) "size", NULL
14570 };
14571
14572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14573 {
14574 arg1 = wxString_in_helper(obj0);
14575 if (arg1 == NULL) SWIG_fail;
14576 temp1 = True;
14577 }
14578 if (obj1) {
14579 {
14580 arg2 = wxString_in_helper(obj1);
14581 if (arg2 == NULL) SWIG_fail;
14582 temp2 = True;
14583 }
14584 }
14585 if (obj2) {
14586 {
14587 arg3 = &temp3;
14588 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14589 }
14590 }
14591 {
14592 if (!wxPyCheckForApp()) SWIG_fail;
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14595
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 {
14600 wxBitmap * resultptr;
14601 resultptr = new wxBitmap((wxBitmap &) result);
14602 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14603 }
14604 {
14605 if (temp1)
14606 delete arg1;
14607 }
14608 {
14609 if (temp2)
14610 delete arg2;
14611 }
14612 return resultobj;
14613 fail:
14614 {
14615 if (temp1)
14616 delete arg1;
14617 }
14618 {
14619 if (temp2)
14620 delete arg2;
14621 }
14622 return NULL;
14623 }
14624
14625
14626 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj;
14628 wxString *arg1 = 0 ;
14629 wxString const &arg2_defvalue = wxPyART_OTHER ;
14630 wxString *arg2 = (wxString *) &arg2_defvalue ;
14631 wxSize const &arg3_defvalue = wxDefaultSize ;
14632 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14633 wxIcon result;
14634 bool temp1 = False ;
14635 bool temp2 = False ;
14636 wxSize temp3 ;
14637 PyObject * obj0 = 0 ;
14638 PyObject * obj1 = 0 ;
14639 PyObject * obj2 = 0 ;
14640 char *kwnames[] = {
14641 (char *) "id",(char *) "client",(char *) "size", NULL
14642 };
14643
14644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14645 {
14646 arg1 = wxString_in_helper(obj0);
14647 if (arg1 == NULL) SWIG_fail;
14648 temp1 = True;
14649 }
14650 if (obj1) {
14651 {
14652 arg2 = wxString_in_helper(obj1);
14653 if (arg2 == NULL) SWIG_fail;
14654 temp2 = True;
14655 }
14656 }
14657 if (obj2) {
14658 {
14659 arg3 = &temp3;
14660 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14661 }
14662 }
14663 {
14664 if (!wxPyCheckForApp()) SWIG_fail;
14665 PyThreadState* __tstate = wxPyBeginAllowThreads();
14666 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14667
14668 wxPyEndAllowThreads(__tstate);
14669 if (PyErr_Occurred()) SWIG_fail;
14670 }
14671 {
14672 wxIcon * resultptr;
14673 resultptr = new wxIcon((wxIcon &) result);
14674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14675 }
14676 {
14677 if (temp1)
14678 delete arg1;
14679 }
14680 {
14681 if (temp2)
14682 delete arg2;
14683 }
14684 return resultobj;
14685 fail:
14686 {
14687 if (temp1)
14688 delete arg1;
14689 }
14690 {
14691 if (temp2)
14692 delete arg2;
14693 }
14694 return NULL;
14695 }
14696
14697
14698 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj;
14700 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14701 PyObject * obj0 = 0 ;
14702 char *kwnames[] = {
14703 (char *) "self", NULL
14704 };
14705
14706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14709 {
14710 PyThreadState* __tstate = wxPyBeginAllowThreads();
14711 wxPyArtProvider_Destroy(arg1);
14712
14713 wxPyEndAllowThreads(__tstate);
14714 if (PyErr_Occurred()) SWIG_fail;
14715 }
14716 Py_INCREF(Py_None); resultobj = Py_None;
14717 return resultobj;
14718 fail:
14719 return NULL;
14720 }
14721
14722
14723 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14724 PyObject *obj;
14725 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14726 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14727 Py_INCREF(obj);
14728 return Py_BuildValue((char *)"");
14729 }
14730 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14731 PyObject *resultobj;
14732 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14733 PyObject * obj0 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 {
14742 PyThreadState* __tstate = wxPyBeginAllowThreads();
14743 delete arg1;
14744
14745 wxPyEndAllowThreads(__tstate);
14746 if (PyErr_Occurred()) SWIG_fail;
14747 }
14748 Py_INCREF(Py_None); resultobj = Py_None;
14749 return resultobj;
14750 fail:
14751 return NULL;
14752 }
14753
14754
14755 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj;
14757 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14758 wxConfigBase *result;
14759 PyObject * obj0 = 0 ;
14760 char *kwnames[] = {
14761 (char *) "config", NULL
14762 };
14763
14764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14767 {
14768 PyThreadState* __tstate = wxPyBeginAllowThreads();
14769 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14770
14771 wxPyEndAllowThreads(__tstate);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 }
14774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14775 return resultobj;
14776 fail:
14777 return NULL;
14778 }
14779
14780
14781 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14782 PyObject *resultobj;
14783 bool arg1 = (bool) True ;
14784 wxConfigBase *result;
14785 PyObject * obj0 = 0 ;
14786 char *kwnames[] = {
14787 (char *) "createOnDemand", NULL
14788 };
14789
14790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14791 if (obj0) {
14792 arg1 = (bool) SWIG_AsBool(obj0);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 {
14796 PyThreadState* __tstate = wxPyBeginAllowThreads();
14797 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14798
14799 wxPyEndAllowThreads(__tstate);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14803 return resultobj;
14804 fail:
14805 return NULL;
14806 }
14807
14808
14809 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj;
14811 wxConfigBase *result;
14812 char *kwnames[] = {
14813 NULL
14814 };
14815
14816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14817 {
14818 PyThreadState* __tstate = wxPyBeginAllowThreads();
14819 result = (wxConfigBase *)wxConfigBase::Create();
14820
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14825 return resultobj;
14826 fail:
14827 return NULL;
14828 }
14829
14830
14831 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14832 PyObject *resultobj;
14833 char *kwnames[] = {
14834 NULL
14835 };
14836
14837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14838 {
14839 PyThreadState* __tstate = wxPyBeginAllowThreads();
14840 wxConfigBase::DontCreateOnDemand();
14841
14842 wxPyEndAllowThreads(__tstate);
14843 if (PyErr_Occurred()) SWIG_fail;
14844 }
14845 Py_INCREF(Py_None); resultobj = Py_None;
14846 return resultobj;
14847 fail:
14848 return NULL;
14849 }
14850
14851
14852 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14853 PyObject *resultobj;
14854 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14855 wxString *arg2 = 0 ;
14856 bool temp2 = False ;
14857 PyObject * obj0 = 0 ;
14858 PyObject * obj1 = 0 ;
14859 char *kwnames[] = {
14860 (char *) "self",(char *) "path", NULL
14861 };
14862
14863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14866 {
14867 arg2 = wxString_in_helper(obj1);
14868 if (arg2 == NULL) SWIG_fail;
14869 temp2 = True;
14870 }
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 (arg1)->SetPath((wxString const &)*arg2);
14874
14875 wxPyEndAllowThreads(__tstate);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 }
14878 Py_INCREF(Py_None); resultobj = Py_None;
14879 {
14880 if (temp2)
14881 delete arg2;
14882 }
14883 return resultobj;
14884 fail:
14885 {
14886 if (temp2)
14887 delete arg2;
14888 }
14889 return NULL;
14890 }
14891
14892
14893 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14894 PyObject *resultobj;
14895 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14896 wxString *result;
14897 PyObject * obj0 = 0 ;
14898 char *kwnames[] = {
14899 (char *) "self", NULL
14900 };
14901
14902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
14907 {
14908 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14909 result = (wxString *) &_result_ref;
14910 }
14911
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 {
14916 #if wxUSE_UNICODE
14917 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14918 #else
14919 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14920 #endif
14921 }
14922 return resultobj;
14923 fail:
14924 return NULL;
14925 }
14926
14927
14928 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14929 PyObject *resultobj;
14930 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14931 PyObject *result;
14932 PyObject * obj0 = 0 ;
14933 char *kwnames[] = {
14934 (char *) "self", NULL
14935 };
14936
14937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14940 {
14941 PyThreadState* __tstate = wxPyBeginAllowThreads();
14942 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14943
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 resultobj = result;
14948 return resultobj;
14949 fail:
14950 return NULL;
14951 }
14952
14953
14954 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14955 PyObject *resultobj;
14956 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14957 long arg2 ;
14958 PyObject *result;
14959 PyObject * obj0 = 0 ;
14960 PyObject * obj1 = 0 ;
14961 char *kwnames[] = {
14962 (char *) "self",(char *) "index", NULL
14963 };
14964
14965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14968 arg2 = (long) SWIG_AsLong(obj1);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 {
14971 PyThreadState* __tstate = wxPyBeginAllowThreads();
14972 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14973
14974 wxPyEndAllowThreads(__tstate);
14975 if (PyErr_Occurred()) SWIG_fail;
14976 }
14977 resultobj = result;
14978 return resultobj;
14979 fail:
14980 return NULL;
14981 }
14982
14983
14984 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14985 PyObject *resultobj;
14986 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14987 PyObject *result;
14988 PyObject * obj0 = 0 ;
14989 char *kwnames[] = {
14990 (char *) "self", NULL
14991 };
14992
14993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14996 {
14997 PyThreadState* __tstate = wxPyBeginAllowThreads();
14998 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14999
15000 wxPyEndAllowThreads(__tstate);
15001 if (PyErr_Occurred()) SWIG_fail;
15002 }
15003 resultobj = result;
15004 return resultobj;
15005 fail:
15006 return NULL;
15007 }
15008
15009
15010 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15011 PyObject *resultobj;
15012 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15013 long arg2 ;
15014 PyObject *result;
15015 PyObject * obj0 = 0 ;
15016 PyObject * obj1 = 0 ;
15017 char *kwnames[] = {
15018 (char *) "self",(char *) "index", NULL
15019 };
15020
15021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15024 arg2 = (long) SWIG_AsLong(obj1);
15025 if (PyErr_Occurred()) SWIG_fail;
15026 {
15027 PyThreadState* __tstate = wxPyBeginAllowThreads();
15028 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15029
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 resultobj = result;
15034 return resultobj;
15035 fail:
15036 return NULL;
15037 }
15038
15039
15040 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj;
15042 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15043 bool arg2 = (bool) False ;
15044 size_t result;
15045 PyObject * obj0 = 0 ;
15046 PyObject * obj1 = 0 ;
15047 char *kwnames[] = {
15048 (char *) "self",(char *) "recursive", NULL
15049 };
15050
15051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15054 if (obj1) {
15055 arg2 = (bool) SWIG_AsBool(obj1);
15056 if (PyErr_Occurred()) SWIG_fail;
15057 }
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15061
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15066 return resultobj;
15067 fail:
15068 return NULL;
15069 }
15070
15071
15072 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15073 PyObject *resultobj;
15074 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15075 bool arg2 = (bool) False ;
15076 size_t result;
15077 PyObject * obj0 = 0 ;
15078 PyObject * obj1 = 0 ;
15079 char *kwnames[] = {
15080 (char *) "self",(char *) "recursive", NULL
15081 };
15082
15083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15086 if (obj1) {
15087 arg2 = (bool) SWIG_AsBool(obj1);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 {
15091 PyThreadState* __tstate = wxPyBeginAllowThreads();
15092 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15093
15094 wxPyEndAllowThreads(__tstate);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 }
15097 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15098 return resultobj;
15099 fail:
15100 return NULL;
15101 }
15102
15103
15104 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15105 PyObject *resultobj;
15106 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15107 wxString *arg2 = 0 ;
15108 bool result;
15109 bool temp2 = False ;
15110 PyObject * obj0 = 0 ;
15111 PyObject * obj1 = 0 ;
15112 char *kwnames[] = {
15113 (char *) "self",(char *) "name", NULL
15114 };
15115
15116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15119 {
15120 arg2 = wxString_in_helper(obj1);
15121 if (arg2 == NULL) SWIG_fail;
15122 temp2 = True;
15123 }
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15127
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 {
15132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15133 }
15134 {
15135 if (temp2)
15136 delete arg2;
15137 }
15138 return resultobj;
15139 fail:
15140 {
15141 if (temp2)
15142 delete arg2;
15143 }
15144 return NULL;
15145 }
15146
15147
15148 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj;
15150 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15151 wxString *arg2 = 0 ;
15152 bool result;
15153 bool temp2 = False ;
15154 PyObject * obj0 = 0 ;
15155 PyObject * obj1 = 0 ;
15156 char *kwnames[] = {
15157 (char *) "self",(char *) "name", NULL
15158 };
15159
15160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15163 {
15164 arg2 = wxString_in_helper(obj1);
15165 if (arg2 == NULL) SWIG_fail;
15166 temp2 = True;
15167 }
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15171
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 {
15176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15177 }
15178 {
15179 if (temp2)
15180 delete arg2;
15181 }
15182 return resultobj;
15183 fail:
15184 {
15185 if (temp2)
15186 delete arg2;
15187 }
15188 return NULL;
15189 }
15190
15191
15192 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15193 PyObject *resultobj;
15194 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15195 wxString *arg2 = 0 ;
15196 bool result;
15197 bool temp2 = False ;
15198 PyObject * obj0 = 0 ;
15199 PyObject * obj1 = 0 ;
15200 char *kwnames[] = {
15201 (char *) "self",(char *) "name", NULL
15202 };
15203
15204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) 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 {
15213 PyThreadState* __tstate = wxPyBeginAllowThreads();
15214 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15215
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 {
15220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15221 }
15222 {
15223 if (temp2)
15224 delete arg2;
15225 }
15226 return resultobj;
15227 fail:
15228 {
15229 if (temp2)
15230 delete arg2;
15231 }
15232 return NULL;
15233 }
15234
15235
15236 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj;
15238 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15239 wxString *arg2 = 0 ;
15240 int result;
15241 bool temp2 = False ;
15242 PyObject * obj0 = 0 ;
15243 PyObject * obj1 = 0 ;
15244 char *kwnames[] = {
15245 (char *) "self",(char *) "name", NULL
15246 };
15247
15248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15251 {
15252 arg2 = wxString_in_helper(obj1);
15253 if (arg2 == NULL) SWIG_fail;
15254 temp2 = True;
15255 }
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
15258 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15259
15260 wxPyEndAllowThreads(__tstate);
15261 if (PyErr_Occurred()) SWIG_fail;
15262 }
15263 resultobj = SWIG_FromInt((int)result);
15264 {
15265 if (temp2)
15266 delete arg2;
15267 }
15268 return resultobj;
15269 fail:
15270 {
15271 if (temp2)
15272 delete arg2;
15273 }
15274 return NULL;
15275 }
15276
15277
15278 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15279 PyObject *resultobj;
15280 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15281 wxString *arg2 = 0 ;
15282 wxString const &arg3_defvalue = wxPyEmptyString ;
15283 wxString *arg3 = (wxString *) &arg3_defvalue ;
15284 wxString result;
15285 bool temp2 = False ;
15286 bool temp3 = False ;
15287 PyObject * obj0 = 0 ;
15288 PyObject * obj1 = 0 ;
15289 PyObject * obj2 = 0 ;
15290 char *kwnames[] = {
15291 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15292 };
15293
15294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15297 {
15298 arg2 = wxString_in_helper(obj1);
15299 if (arg2 == NULL) SWIG_fail;
15300 temp2 = True;
15301 }
15302 if (obj2) {
15303 {
15304 arg3 = wxString_in_helper(obj2);
15305 if (arg3 == NULL) SWIG_fail;
15306 temp3 = True;
15307 }
15308 }
15309 {
15310 PyThreadState* __tstate = wxPyBeginAllowThreads();
15311 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15312
15313 wxPyEndAllowThreads(__tstate);
15314 if (PyErr_Occurred()) SWIG_fail;
15315 }
15316 {
15317 #if wxUSE_UNICODE
15318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15319 #else
15320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15321 #endif
15322 }
15323 {
15324 if (temp2)
15325 delete arg2;
15326 }
15327 {
15328 if (temp3)
15329 delete arg3;
15330 }
15331 return resultobj;
15332 fail:
15333 {
15334 if (temp2)
15335 delete arg2;
15336 }
15337 {
15338 if (temp3)
15339 delete arg3;
15340 }
15341 return NULL;
15342 }
15343
15344
15345 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15346 PyObject *resultobj;
15347 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15348 wxString *arg2 = 0 ;
15349 long arg3 = (long) 0 ;
15350 long result;
15351 bool temp2 = False ;
15352 PyObject * obj0 = 0 ;
15353 PyObject * obj1 = 0 ;
15354 PyObject * obj2 = 0 ;
15355 char *kwnames[] = {
15356 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15357 };
15358
15359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15362 {
15363 arg2 = wxString_in_helper(obj1);
15364 if (arg2 == NULL) SWIG_fail;
15365 temp2 = True;
15366 }
15367 if (obj2) {
15368 arg3 = (long) SWIG_AsLong(obj2);
15369 if (PyErr_Occurred()) SWIG_fail;
15370 }
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15374
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_FromLong((long)result);
15379 {
15380 if (temp2)
15381 delete arg2;
15382 }
15383 return resultobj;
15384 fail:
15385 {
15386 if (temp2)
15387 delete arg2;
15388 }
15389 return NULL;
15390 }
15391
15392
15393 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj;
15395 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15396 wxString *arg2 = 0 ;
15397 double arg3 = (double) 0.0 ;
15398 double result;
15399 bool temp2 = False ;
15400 PyObject * obj0 = 0 ;
15401 PyObject * obj1 = 0 ;
15402 PyObject * obj2 = 0 ;
15403 char *kwnames[] = {
15404 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15405 };
15406
15407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15410 {
15411 arg2 = wxString_in_helper(obj1);
15412 if (arg2 == NULL) SWIG_fail;
15413 temp2 = True;
15414 }
15415 if (obj2) {
15416 arg3 = (double) SWIG_AsDouble(obj2);
15417 if (PyErr_Occurred()) SWIG_fail;
15418 }
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15422
15423 wxPyEndAllowThreads(__tstate);
15424 if (PyErr_Occurred()) SWIG_fail;
15425 }
15426 resultobj = SWIG_FromDouble((double)result);
15427 {
15428 if (temp2)
15429 delete arg2;
15430 }
15431 return resultobj;
15432 fail:
15433 {
15434 if (temp2)
15435 delete arg2;
15436 }
15437 return NULL;
15438 }
15439
15440
15441 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15442 PyObject *resultobj;
15443 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15444 wxString *arg2 = 0 ;
15445 bool arg3 = (bool) False ;
15446 bool result;
15447 bool temp2 = False ;
15448 PyObject * obj0 = 0 ;
15449 PyObject * obj1 = 0 ;
15450 PyObject * obj2 = 0 ;
15451 char *kwnames[] = {
15452 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15453 };
15454
15455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15458 {
15459 arg2 = wxString_in_helper(obj1);
15460 if (arg2 == NULL) SWIG_fail;
15461 temp2 = True;
15462 }
15463 if (obj2) {
15464 arg3 = (bool) SWIG_AsBool(obj2);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 {
15468 PyThreadState* __tstate = wxPyBeginAllowThreads();
15469 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15470
15471 wxPyEndAllowThreads(__tstate);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 {
15475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15476 }
15477 {
15478 if (temp2)
15479 delete arg2;
15480 }
15481 return resultobj;
15482 fail:
15483 {
15484 if (temp2)
15485 delete arg2;
15486 }
15487 return NULL;
15488 }
15489
15490
15491 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15492 PyObject *resultobj;
15493 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15494 wxString *arg2 = 0 ;
15495 wxString *arg3 = 0 ;
15496 bool result;
15497 bool temp2 = False ;
15498 bool temp3 = False ;
15499 PyObject * obj0 = 0 ;
15500 PyObject * obj1 = 0 ;
15501 PyObject * obj2 = 0 ;
15502 char *kwnames[] = {
15503 (char *) "self",(char *) "key",(char *) "value", NULL
15504 };
15505
15506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15509 {
15510 arg2 = wxString_in_helper(obj1);
15511 if (arg2 == NULL) SWIG_fail;
15512 temp2 = True;
15513 }
15514 {
15515 arg3 = wxString_in_helper(obj2);
15516 if (arg3 == NULL) SWIG_fail;
15517 temp3 = True;
15518 }
15519 {
15520 PyThreadState* __tstate = wxPyBeginAllowThreads();
15521 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15522
15523 wxPyEndAllowThreads(__tstate);
15524 if (PyErr_Occurred()) SWIG_fail;
15525 }
15526 {
15527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15528 }
15529 {
15530 if (temp2)
15531 delete arg2;
15532 }
15533 {
15534 if (temp3)
15535 delete arg3;
15536 }
15537 return resultobj;
15538 fail:
15539 {
15540 if (temp2)
15541 delete arg2;
15542 }
15543 {
15544 if (temp3)
15545 delete arg3;
15546 }
15547 return NULL;
15548 }
15549
15550
15551 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15552 PyObject *resultobj;
15553 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15554 wxString *arg2 = 0 ;
15555 long arg3 ;
15556 bool result;
15557 bool temp2 = False ;
15558 PyObject * obj0 = 0 ;
15559 PyObject * obj1 = 0 ;
15560 PyObject * obj2 = 0 ;
15561 char *kwnames[] = {
15562 (char *) "self",(char *) "key",(char *) "value", NULL
15563 };
15564
15565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15568 {
15569 arg2 = wxString_in_helper(obj1);
15570 if (arg2 == NULL) SWIG_fail;
15571 temp2 = True;
15572 }
15573 arg3 = (long) SWIG_AsLong(obj2);
15574 if (PyErr_Occurred()) SWIG_fail;
15575 {
15576 PyThreadState* __tstate = wxPyBeginAllowThreads();
15577 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15578
15579 wxPyEndAllowThreads(__tstate);
15580 if (PyErr_Occurred()) SWIG_fail;
15581 }
15582 {
15583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15584 }
15585 {
15586 if (temp2)
15587 delete arg2;
15588 }
15589 return resultobj;
15590 fail:
15591 {
15592 if (temp2)
15593 delete arg2;
15594 }
15595 return NULL;
15596 }
15597
15598
15599 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15600 PyObject *resultobj;
15601 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15602 wxString *arg2 = 0 ;
15603 double arg3 ;
15604 bool result;
15605 bool temp2 = False ;
15606 PyObject * obj0 = 0 ;
15607 PyObject * obj1 = 0 ;
15608 PyObject * obj2 = 0 ;
15609 char *kwnames[] = {
15610 (char *) "self",(char *) "key",(char *) "value", NULL
15611 };
15612
15613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15616 {
15617 arg2 = wxString_in_helper(obj1);
15618 if (arg2 == NULL) SWIG_fail;
15619 temp2 = True;
15620 }
15621 arg3 = (double) SWIG_AsDouble(obj2);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15626
15627 wxPyEndAllowThreads(__tstate);
15628 if (PyErr_Occurred()) SWIG_fail;
15629 }
15630 {
15631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15632 }
15633 {
15634 if (temp2)
15635 delete arg2;
15636 }
15637 return resultobj;
15638 fail:
15639 {
15640 if (temp2)
15641 delete arg2;
15642 }
15643 return NULL;
15644 }
15645
15646
15647 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15648 PyObject *resultobj;
15649 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15650 wxString *arg2 = 0 ;
15651 bool arg3 ;
15652 bool result;
15653 bool temp2 = False ;
15654 PyObject * obj0 = 0 ;
15655 PyObject * obj1 = 0 ;
15656 PyObject * obj2 = 0 ;
15657 char *kwnames[] = {
15658 (char *) "self",(char *) "key",(char *) "value", NULL
15659 };
15660
15661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15664 {
15665 arg2 = wxString_in_helper(obj1);
15666 if (arg2 == NULL) SWIG_fail;
15667 temp2 = True;
15668 }
15669 arg3 = (bool) SWIG_AsBool(obj2);
15670 if (PyErr_Occurred()) SWIG_fail;
15671 {
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15674
15675 wxPyEndAllowThreads(__tstate);
15676 if (PyErr_Occurred()) SWIG_fail;
15677 }
15678 {
15679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15680 }
15681 {
15682 if (temp2)
15683 delete arg2;
15684 }
15685 return resultobj;
15686 fail:
15687 {
15688 if (temp2)
15689 delete arg2;
15690 }
15691 return NULL;
15692 }
15693
15694
15695 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15696 PyObject *resultobj;
15697 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15698 bool arg2 = (bool) False ;
15699 bool result;
15700 PyObject * obj0 = 0 ;
15701 PyObject * obj1 = 0 ;
15702 char *kwnames[] = {
15703 (char *) "self",(char *) "currentOnly", NULL
15704 };
15705
15706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15709 if (obj1) {
15710 arg2 = (bool) SWIG_AsBool(obj1);
15711 if (PyErr_Occurred()) SWIG_fail;
15712 }
15713 {
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (bool)(arg1)->Flush(arg2);
15716
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 {
15721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15722 }
15723 return resultobj;
15724 fail:
15725 return NULL;
15726 }
15727
15728
15729 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15730 PyObject *resultobj;
15731 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15732 wxString *arg2 = 0 ;
15733 wxString *arg3 = 0 ;
15734 bool result;
15735 bool temp2 = False ;
15736 bool temp3 = False ;
15737 PyObject * obj0 = 0 ;
15738 PyObject * obj1 = 0 ;
15739 PyObject * obj2 = 0 ;
15740 char *kwnames[] = {
15741 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15742 };
15743
15744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15747 {
15748 arg2 = wxString_in_helper(obj1);
15749 if (arg2 == NULL) SWIG_fail;
15750 temp2 = True;
15751 }
15752 {
15753 arg3 = wxString_in_helper(obj2);
15754 if (arg3 == NULL) SWIG_fail;
15755 temp3 = True;
15756 }
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15760
15761 wxPyEndAllowThreads(__tstate);
15762 if (PyErr_Occurred()) SWIG_fail;
15763 }
15764 {
15765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15766 }
15767 {
15768 if (temp2)
15769 delete arg2;
15770 }
15771 {
15772 if (temp3)
15773 delete arg3;
15774 }
15775 return resultobj;
15776 fail:
15777 {
15778 if (temp2)
15779 delete arg2;
15780 }
15781 {
15782 if (temp3)
15783 delete arg3;
15784 }
15785 return NULL;
15786 }
15787
15788
15789 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15790 PyObject *resultobj;
15791 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15792 wxString *arg2 = 0 ;
15793 wxString *arg3 = 0 ;
15794 bool result;
15795 bool temp2 = False ;
15796 bool temp3 = False ;
15797 PyObject * obj0 = 0 ;
15798 PyObject * obj1 = 0 ;
15799 PyObject * obj2 = 0 ;
15800 char *kwnames[] = {
15801 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15802 };
15803
15804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15807 {
15808 arg2 = wxString_in_helper(obj1);
15809 if (arg2 == NULL) SWIG_fail;
15810 temp2 = True;
15811 }
15812 {
15813 arg3 = wxString_in_helper(obj2);
15814 if (arg3 == NULL) SWIG_fail;
15815 temp3 = True;
15816 }
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15820
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 {
15825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15826 }
15827 {
15828 if (temp2)
15829 delete arg2;
15830 }
15831 {
15832 if (temp3)
15833 delete arg3;
15834 }
15835 return resultobj;
15836 fail:
15837 {
15838 if (temp2)
15839 delete arg2;
15840 }
15841 {
15842 if (temp3)
15843 delete arg3;
15844 }
15845 return NULL;
15846 }
15847
15848
15849 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15850 PyObject *resultobj;
15851 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15852 wxString *arg2 = 0 ;
15853 bool arg3 = (bool) True ;
15854 bool result;
15855 bool temp2 = False ;
15856 PyObject * obj0 = 0 ;
15857 PyObject * obj1 = 0 ;
15858 PyObject * obj2 = 0 ;
15859 char *kwnames[] = {
15860 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15861 };
15862
15863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15866 {
15867 arg2 = wxString_in_helper(obj1);
15868 if (arg2 == NULL) SWIG_fail;
15869 temp2 = True;
15870 }
15871 if (obj2) {
15872 arg3 = (bool) SWIG_AsBool(obj2);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
15875 {
15876 PyThreadState* __tstate = wxPyBeginAllowThreads();
15877 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15878
15879 wxPyEndAllowThreads(__tstate);
15880 if (PyErr_Occurred()) SWIG_fail;
15881 }
15882 {
15883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15884 }
15885 {
15886 if (temp2)
15887 delete arg2;
15888 }
15889 return resultobj;
15890 fail:
15891 {
15892 if (temp2)
15893 delete arg2;
15894 }
15895 return NULL;
15896 }
15897
15898
15899 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15900 PyObject *resultobj;
15901 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15902 wxString *arg2 = 0 ;
15903 bool result;
15904 bool temp2 = False ;
15905 PyObject * obj0 = 0 ;
15906 PyObject * obj1 = 0 ;
15907 char *kwnames[] = {
15908 (char *) "self",(char *) "key", NULL
15909 };
15910
15911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15914 {
15915 arg2 = wxString_in_helper(obj1);
15916 if (arg2 == NULL) SWIG_fail;
15917 temp2 = True;
15918 }
15919 {
15920 PyThreadState* __tstate = wxPyBeginAllowThreads();
15921 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15922
15923 wxPyEndAllowThreads(__tstate);
15924 if (PyErr_Occurred()) SWIG_fail;
15925 }
15926 {
15927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15928 }
15929 {
15930 if (temp2)
15931 delete arg2;
15932 }
15933 return resultobj;
15934 fail:
15935 {
15936 if (temp2)
15937 delete arg2;
15938 }
15939 return NULL;
15940 }
15941
15942
15943 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15944 PyObject *resultobj;
15945 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15946 bool result;
15947 PyObject * obj0 = 0 ;
15948 char *kwnames[] = {
15949 (char *) "self", NULL
15950 };
15951
15952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 result = (bool)(arg1)->DeleteAll();
15958
15959 wxPyEndAllowThreads(__tstate);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 }
15962 {
15963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15964 }
15965 return resultobj;
15966 fail:
15967 return NULL;
15968 }
15969
15970
15971 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15972 PyObject *resultobj;
15973 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15974 bool arg2 = (bool) True ;
15975 PyObject * obj0 = 0 ;
15976 PyObject * obj1 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self",(char *) "doIt", NULL
15979 };
15980
15981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15984 if (obj1) {
15985 arg2 = (bool) SWIG_AsBool(obj1);
15986 if (PyErr_Occurred()) SWIG_fail;
15987 }
15988 {
15989 PyThreadState* __tstate = wxPyBeginAllowThreads();
15990 (arg1)->SetExpandEnvVars(arg2);
15991
15992 wxPyEndAllowThreads(__tstate);
15993 if (PyErr_Occurred()) SWIG_fail;
15994 }
15995 Py_INCREF(Py_None); resultobj = Py_None;
15996 return resultobj;
15997 fail:
15998 return NULL;
15999 }
16000
16001
16002 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16003 PyObject *resultobj;
16004 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16005 bool result;
16006 PyObject * obj0 = 0 ;
16007 char *kwnames[] = {
16008 (char *) "self", NULL
16009 };
16010
16011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16014 {
16015 PyThreadState* __tstate = wxPyBeginAllowThreads();
16016 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16017
16018 wxPyEndAllowThreads(__tstate);
16019 if (PyErr_Occurred()) SWIG_fail;
16020 }
16021 {
16022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16023 }
16024 return resultobj;
16025 fail:
16026 return NULL;
16027 }
16028
16029
16030 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16031 PyObject *resultobj;
16032 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16033 bool arg2 = (bool) True ;
16034 PyObject * obj0 = 0 ;
16035 PyObject * obj1 = 0 ;
16036 char *kwnames[] = {
16037 (char *) "self",(char *) "doIt", NULL
16038 };
16039
16040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16043 if (obj1) {
16044 arg2 = (bool) SWIG_AsBool(obj1);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 }
16047 {
16048 PyThreadState* __tstate = wxPyBeginAllowThreads();
16049 (arg1)->SetRecordDefaults(arg2);
16050
16051 wxPyEndAllowThreads(__tstate);
16052 if (PyErr_Occurred()) SWIG_fail;
16053 }
16054 Py_INCREF(Py_None); resultobj = Py_None;
16055 return resultobj;
16056 fail:
16057 return NULL;
16058 }
16059
16060
16061 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16062 PyObject *resultobj;
16063 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16064 bool result;
16065 PyObject * obj0 = 0 ;
16066 char *kwnames[] = {
16067 (char *) "self", NULL
16068 };
16069
16070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16073 {
16074 PyThreadState* __tstate = wxPyBeginAllowThreads();
16075 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16076
16077 wxPyEndAllowThreads(__tstate);
16078 if (PyErr_Occurred()) SWIG_fail;
16079 }
16080 {
16081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16082 }
16083 return resultobj;
16084 fail:
16085 return NULL;
16086 }
16087
16088
16089 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16090 PyObject *resultobj;
16091 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16092 wxString *arg2 = 0 ;
16093 wxString result;
16094 bool temp2 = False ;
16095 PyObject * obj0 = 0 ;
16096 PyObject * obj1 = 0 ;
16097 char *kwnames[] = {
16098 (char *) "self",(char *) "str", NULL
16099 };
16100
16101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16104 {
16105 arg2 = wxString_in_helper(obj1);
16106 if (arg2 == NULL) SWIG_fail;
16107 temp2 = True;
16108 }
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16112
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 {
16117 #if wxUSE_UNICODE
16118 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16119 #else
16120 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16121 #endif
16122 }
16123 {
16124 if (temp2)
16125 delete arg2;
16126 }
16127 return resultobj;
16128 fail:
16129 {
16130 if (temp2)
16131 delete arg2;
16132 }
16133 return NULL;
16134 }
16135
16136
16137 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16138 PyObject *resultobj;
16139 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16140 wxString result;
16141 PyObject * obj0 = 0 ;
16142 char *kwnames[] = {
16143 (char *) "self", NULL
16144 };
16145
16146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16149 {
16150 PyThreadState* __tstate = wxPyBeginAllowThreads();
16151 result = ((wxConfigBase const *)arg1)->GetAppName();
16152
16153 wxPyEndAllowThreads(__tstate);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 {
16157 #if wxUSE_UNICODE
16158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16159 #else
16160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16161 #endif
16162 }
16163 return resultobj;
16164 fail:
16165 return NULL;
16166 }
16167
16168
16169 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16170 PyObject *resultobj;
16171 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16172 wxString result;
16173 PyObject * obj0 = 0 ;
16174 char *kwnames[] = {
16175 (char *) "self", NULL
16176 };
16177
16178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = ((wxConfigBase const *)arg1)->GetVendorName();
16184
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 {
16189 #if wxUSE_UNICODE
16190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16191 #else
16192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16193 #endif
16194 }
16195 return resultobj;
16196 fail:
16197 return NULL;
16198 }
16199
16200
16201 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16202 PyObject *resultobj;
16203 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16204 wxString *arg2 = 0 ;
16205 bool temp2 = False ;
16206 PyObject * obj0 = 0 ;
16207 PyObject * obj1 = 0 ;
16208 char *kwnames[] = {
16209 (char *) "self",(char *) "appName", NULL
16210 };
16211
16212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16215 {
16216 arg2 = wxString_in_helper(obj1);
16217 if (arg2 == NULL) SWIG_fail;
16218 temp2 = True;
16219 }
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 (arg1)->SetAppName((wxString const &)*arg2);
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 Py_INCREF(Py_None); resultobj = Py_None;
16228 {
16229 if (temp2)
16230 delete arg2;
16231 }
16232 return resultobj;
16233 fail:
16234 {
16235 if (temp2)
16236 delete arg2;
16237 }
16238 return NULL;
16239 }
16240
16241
16242 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16243 PyObject *resultobj;
16244 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16245 wxString *arg2 = 0 ;
16246 bool temp2 = False ;
16247 PyObject * obj0 = 0 ;
16248 PyObject * obj1 = 0 ;
16249 char *kwnames[] = {
16250 (char *) "self",(char *) "vendorName", NULL
16251 };
16252
16253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16256 {
16257 arg2 = wxString_in_helper(obj1);
16258 if (arg2 == NULL) SWIG_fail;
16259 temp2 = True;
16260 }
16261 {
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 (arg1)->SetVendorName((wxString const &)*arg2);
16264
16265 wxPyEndAllowThreads(__tstate);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 Py_INCREF(Py_None); resultobj = Py_None;
16269 {
16270 if (temp2)
16271 delete arg2;
16272 }
16273 return resultobj;
16274 fail:
16275 {
16276 if (temp2)
16277 delete arg2;
16278 }
16279 return NULL;
16280 }
16281
16282
16283 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16284 PyObject *resultobj;
16285 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16286 long arg2 ;
16287 PyObject * obj0 = 0 ;
16288 PyObject * obj1 = 0 ;
16289 char *kwnames[] = {
16290 (char *) "self",(char *) "style", NULL
16291 };
16292
16293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16296 arg2 = (long) SWIG_AsLong(obj1);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 (arg1)->SetStyle(arg2);
16301
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 Py_INCREF(Py_None); resultobj = Py_None;
16306 return resultobj;
16307 fail:
16308 return NULL;
16309 }
16310
16311
16312 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16313 PyObject *resultobj;
16314 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16315 long result;
16316 PyObject * obj0 = 0 ;
16317 char *kwnames[] = {
16318 (char *) "self", NULL
16319 };
16320
16321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16324 {
16325 PyThreadState* __tstate = wxPyBeginAllowThreads();
16326 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16327
16328 wxPyEndAllowThreads(__tstate);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 resultobj = SWIG_FromLong((long)result);
16332 return resultobj;
16333 fail:
16334 return NULL;
16335 }
16336
16337
16338 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16339 PyObject *obj;
16340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16341 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16342 Py_INCREF(obj);
16343 return Py_BuildValue((char *)"");
16344 }
16345 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16346 PyObject *resultobj;
16347 wxString const &arg1_defvalue = wxPyEmptyString ;
16348 wxString *arg1 = (wxString *) &arg1_defvalue ;
16349 wxString const &arg2_defvalue = wxPyEmptyString ;
16350 wxString *arg2 = (wxString *) &arg2_defvalue ;
16351 wxString const &arg3_defvalue = wxPyEmptyString ;
16352 wxString *arg3 = (wxString *) &arg3_defvalue ;
16353 wxString const &arg4_defvalue = wxPyEmptyString ;
16354 wxString *arg4 = (wxString *) &arg4_defvalue ;
16355 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16356 wxConfig *result;
16357 bool temp1 = False ;
16358 bool temp2 = False ;
16359 bool temp3 = False ;
16360 bool temp4 = False ;
16361 PyObject * obj0 = 0 ;
16362 PyObject * obj1 = 0 ;
16363 PyObject * obj2 = 0 ;
16364 PyObject * obj3 = 0 ;
16365 PyObject * obj4 = 0 ;
16366 char *kwnames[] = {
16367 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16368 };
16369
16370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16371 if (obj0) {
16372 {
16373 arg1 = wxString_in_helper(obj0);
16374 if (arg1 == NULL) SWIG_fail;
16375 temp1 = True;
16376 }
16377 }
16378 if (obj1) {
16379 {
16380 arg2 = wxString_in_helper(obj1);
16381 if (arg2 == NULL) SWIG_fail;
16382 temp2 = True;
16383 }
16384 }
16385 if (obj2) {
16386 {
16387 arg3 = wxString_in_helper(obj2);
16388 if (arg3 == NULL) SWIG_fail;
16389 temp3 = True;
16390 }
16391 }
16392 if (obj3) {
16393 {
16394 arg4 = wxString_in_helper(obj3);
16395 if (arg4 == NULL) SWIG_fail;
16396 temp4 = True;
16397 }
16398 }
16399 if (obj4) {
16400 arg5 = (long) SWIG_AsLong(obj4);
16401 if (PyErr_Occurred()) SWIG_fail;
16402 }
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16406
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16411 {
16412 if (temp1)
16413 delete arg1;
16414 }
16415 {
16416 if (temp2)
16417 delete arg2;
16418 }
16419 {
16420 if (temp3)
16421 delete arg3;
16422 }
16423 {
16424 if (temp4)
16425 delete arg4;
16426 }
16427 return resultobj;
16428 fail:
16429 {
16430 if (temp1)
16431 delete arg1;
16432 }
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 {
16438 if (temp3)
16439 delete arg3;
16440 }
16441 {
16442 if (temp4)
16443 delete arg4;
16444 }
16445 return NULL;
16446 }
16447
16448
16449 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16450 PyObject *resultobj;
16451 wxConfig *arg1 = (wxConfig *) 0 ;
16452 PyObject * obj0 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 delete arg1;
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 Py_INCREF(Py_None); resultobj = Py_None;
16468 return resultobj;
16469 fail:
16470 return NULL;
16471 }
16472
16473
16474 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16475 PyObject *obj;
16476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16477 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16478 Py_INCREF(obj);
16479 return Py_BuildValue((char *)"");
16480 }
16481 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxString const &arg1_defvalue = wxPyEmptyString ;
16484 wxString *arg1 = (wxString *) &arg1_defvalue ;
16485 wxString const &arg2_defvalue = wxPyEmptyString ;
16486 wxString *arg2 = (wxString *) &arg2_defvalue ;
16487 wxString const &arg3_defvalue = wxPyEmptyString ;
16488 wxString *arg3 = (wxString *) &arg3_defvalue ;
16489 wxString const &arg4_defvalue = wxPyEmptyString ;
16490 wxString *arg4 = (wxString *) &arg4_defvalue ;
16491 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16492 wxFileConfig *result;
16493 bool temp1 = False ;
16494 bool temp2 = False ;
16495 bool temp3 = False ;
16496 bool temp4 = False ;
16497 PyObject * obj0 = 0 ;
16498 PyObject * obj1 = 0 ;
16499 PyObject * obj2 = 0 ;
16500 PyObject * obj3 = 0 ;
16501 PyObject * obj4 = 0 ;
16502 char *kwnames[] = {
16503 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16504 };
16505
16506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16507 if (obj0) {
16508 {
16509 arg1 = wxString_in_helper(obj0);
16510 if (arg1 == NULL) SWIG_fail;
16511 temp1 = True;
16512 }
16513 }
16514 if (obj1) {
16515 {
16516 arg2 = wxString_in_helper(obj1);
16517 if (arg2 == NULL) SWIG_fail;
16518 temp2 = True;
16519 }
16520 }
16521 if (obj2) {
16522 {
16523 arg3 = wxString_in_helper(obj2);
16524 if (arg3 == NULL) SWIG_fail;
16525 temp3 = True;
16526 }
16527 }
16528 if (obj3) {
16529 {
16530 arg4 = wxString_in_helper(obj3);
16531 if (arg4 == NULL) SWIG_fail;
16532 temp4 = True;
16533 }
16534 }
16535 if (obj4) {
16536 arg5 = (long) SWIG_AsLong(obj4);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16542
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16547 {
16548 if (temp1)
16549 delete arg1;
16550 }
16551 {
16552 if (temp2)
16553 delete arg2;
16554 }
16555 {
16556 if (temp3)
16557 delete arg3;
16558 }
16559 {
16560 if (temp4)
16561 delete arg4;
16562 }
16563 return resultobj;
16564 fail:
16565 {
16566 if (temp1)
16567 delete arg1;
16568 }
16569 {
16570 if (temp2)
16571 delete arg2;
16572 }
16573 {
16574 if (temp3)
16575 delete arg3;
16576 }
16577 {
16578 if (temp4)
16579 delete arg4;
16580 }
16581 return NULL;
16582 }
16583
16584
16585 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj;
16587 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16588 PyObject * obj0 = 0 ;
16589 char *kwnames[] = {
16590 (char *) "self", NULL
16591 };
16592
16593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16596 {
16597 PyThreadState* __tstate = wxPyBeginAllowThreads();
16598 delete arg1;
16599
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 Py_INCREF(Py_None); resultobj = Py_None;
16604 return resultobj;
16605 fail:
16606 return NULL;
16607 }
16608
16609
16610 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16611 PyObject *obj;
16612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16613 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16614 Py_INCREF(obj);
16615 return Py_BuildValue((char *)"");
16616 }
16617 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16618 PyObject *resultobj;
16619 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16620 wxString *arg2 = 0 ;
16621 wxConfigPathChanger *result;
16622 bool temp2 = False ;
16623 PyObject * obj0 = 0 ;
16624 PyObject * obj1 = 0 ;
16625 char *kwnames[] = {
16626 (char *) "config",(char *) "entry", NULL
16627 };
16628
16629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16632 {
16633 arg2 = wxString_in_helper(obj1);
16634 if (arg2 == NULL) SWIG_fail;
16635 temp2 = True;
16636 }
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16640
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16645 {
16646 if (temp2)
16647 delete arg2;
16648 }
16649 return resultobj;
16650 fail:
16651 {
16652 if (temp2)
16653 delete arg2;
16654 }
16655 return NULL;
16656 }
16657
16658
16659 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16660 PyObject *resultobj;
16661 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16662 PyObject * obj0 = 0 ;
16663 char *kwnames[] = {
16664 (char *) "self", NULL
16665 };
16666
16667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 delete arg1;
16673
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 Py_INCREF(Py_None); resultobj = Py_None;
16678 return resultobj;
16679 fail:
16680 return NULL;
16681 }
16682
16683
16684 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16685 PyObject *resultobj;
16686 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16687 wxString *result;
16688 PyObject * obj0 = 0 ;
16689 char *kwnames[] = {
16690 (char *) "self", NULL
16691 };
16692
16693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16696 {
16697 PyThreadState* __tstate = wxPyBeginAllowThreads();
16698 {
16699 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16700 result = (wxString *) &_result_ref;
16701 }
16702
16703 wxPyEndAllowThreads(__tstate);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 {
16707 #if wxUSE_UNICODE
16708 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16709 #else
16710 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16711 #endif
16712 }
16713 return resultobj;
16714 fail:
16715 return NULL;
16716 }
16717
16718
16719 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16720 PyObject *obj;
16721 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16722 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16723 Py_INCREF(obj);
16724 return Py_BuildValue((char *)"");
16725 }
16726 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj;
16728 wxString *arg1 = 0 ;
16729 wxString result;
16730 bool temp1 = False ;
16731 PyObject * obj0 = 0 ;
16732 char *kwnames[] = {
16733 (char *) "sz", NULL
16734 };
16735
16736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16737 {
16738 arg1 = wxString_in_helper(obj0);
16739 if (arg1 == NULL) SWIG_fail;
16740 temp1 = True;
16741 }
16742 {
16743 PyThreadState* __tstate = wxPyBeginAllowThreads();
16744 result = wxExpandEnvVars((wxString const &)*arg1);
16745
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 {
16750 #if wxUSE_UNICODE
16751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16752 #else
16753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16754 #endif
16755 }
16756 {
16757 if (temp1)
16758 delete arg1;
16759 }
16760 return resultobj;
16761 fail:
16762 {
16763 if (temp1)
16764 delete arg1;
16765 }
16766 return NULL;
16767 }
16768
16769
16770 static int _wrap_DateFormatStr_set(PyObject *_val) {
16771 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16772 return 1;
16773 }
16774
16775
16776 static PyObject *_wrap_DateFormatStr_get() {
16777 PyObject *pyobj;
16778
16779 {
16780 #if wxUSE_UNICODE
16781 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16782 #else
16783 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16784 #endif
16785 }
16786 return pyobj;
16787 }
16788
16789
16790 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16791 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16792 return 1;
16793 }
16794
16795
16796 static PyObject *_wrap_TimeSpanFormatStr_get() {
16797 PyObject *pyobj;
16798
16799 {
16800 #if wxUSE_UNICODE
16801 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16802 #else
16803 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16804 #endif
16805 }
16806 return pyobj;
16807 }
16808
16809
16810 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16811 PyObject *resultobj;
16812 int arg1 ;
16813 PyObject * obj0 = 0 ;
16814 char *kwnames[] = {
16815 (char *) "country", NULL
16816 };
16817
16818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16819 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16820 if (PyErr_Occurred()) SWIG_fail;
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16824
16825 wxPyEndAllowThreads(__tstate);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 Py_INCREF(Py_None); resultobj = Py_None;
16829 return resultobj;
16830 fail:
16831 return NULL;
16832 }
16833
16834
16835 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16836 PyObject *resultobj;
16837 int result;
16838 char *kwnames[] = {
16839 NULL
16840 };
16841
16842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16843 {
16844 PyThreadState* __tstate = wxPyBeginAllowThreads();
16845 result = (int)wxDateTime::GetCountry();
16846
16847 wxPyEndAllowThreads(__tstate);
16848 if (PyErr_Occurred()) SWIG_fail;
16849 }
16850 resultobj = SWIG_FromInt((int)result);
16851 return resultobj;
16852 fail:
16853 return NULL;
16854 }
16855
16856
16857 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16858 PyObject *resultobj;
16859 int arg1 = (int) wxDateTime::Country_Default ;
16860 bool result;
16861 PyObject * obj0 = 0 ;
16862 char *kwnames[] = {
16863 (char *) "country", NULL
16864 };
16865
16866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16867 if (obj0) {
16868 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16869 if (PyErr_Occurred()) SWIG_fail;
16870 }
16871 {
16872 PyThreadState* __tstate = wxPyBeginAllowThreads();
16873 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16874
16875 wxPyEndAllowThreads(__tstate);
16876 if (PyErr_Occurred()) SWIG_fail;
16877 }
16878 {
16879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16880 }
16881 return resultobj;
16882 fail:
16883 return NULL;
16884 }
16885
16886
16887 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16888 PyObject *resultobj;
16889 int arg1 = (int) wxDateTime::Gregorian ;
16890 int result;
16891 PyObject * obj0 = 0 ;
16892 char *kwnames[] = {
16893 (char *) "cal", NULL
16894 };
16895
16896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16897 if (obj0) {
16898 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 {
16902 PyThreadState* __tstate = wxPyBeginAllowThreads();
16903 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16904
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 resultobj = SWIG_FromInt((int)result);
16909 return resultobj;
16910 fail:
16911 return NULL;
16912 }
16913
16914
16915 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj;
16917 int arg1 ;
16918 int result;
16919 PyObject * obj0 = 0 ;
16920 char *kwnames[] = {
16921 (char *) "year", NULL
16922 };
16923
16924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16925 arg1 = (int) SWIG_AsInt(obj0);
16926 if (PyErr_Occurred()) SWIG_fail;
16927 {
16928 PyThreadState* __tstate = wxPyBeginAllowThreads();
16929 result = (int)wxDateTime::ConvertYearToBC(arg1);
16930
16931 wxPyEndAllowThreads(__tstate);
16932 if (PyErr_Occurred()) SWIG_fail;
16933 }
16934 resultobj = SWIG_FromInt((int)result);
16935 return resultobj;
16936 fail:
16937 return NULL;
16938 }
16939
16940
16941 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16942 PyObject *resultobj;
16943 int arg1 = (int) wxDateTime::Gregorian ;
16944 int result;
16945 PyObject * obj0 = 0 ;
16946 char *kwnames[] = {
16947 (char *) "cal", NULL
16948 };
16949
16950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16951 if (obj0) {
16952 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 }
16955 {
16956 PyThreadState* __tstate = wxPyBeginAllowThreads();
16957 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16958
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 resultobj = SWIG_FromInt((int)result);
16963 return resultobj;
16964 fail:
16965 return NULL;
16966 }
16967
16968
16969 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16970 PyObject *resultobj;
16971 int arg1 = (int) wxDateTime::Inv_Year ;
16972 int arg2 = (int) wxDateTime::Gregorian ;
16973 bool result;
16974 PyObject * obj0 = 0 ;
16975 PyObject * obj1 = 0 ;
16976 char *kwnames[] = {
16977 (char *) "year",(char *) "cal", NULL
16978 };
16979
16980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16981 if (obj0) {
16982 arg1 = (int) SWIG_AsInt(obj0);
16983 if (PyErr_Occurred()) SWIG_fail;
16984 }
16985 if (obj1) {
16986 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 {
16990 PyThreadState* __tstate = wxPyBeginAllowThreads();
16991 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16992
16993 wxPyEndAllowThreads(__tstate);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16998 }
16999 return resultobj;
17000 fail:
17001 return NULL;
17002 }
17003
17004
17005 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
17006 PyObject *resultobj;
17007 int arg1 = (int) wxDateTime::Inv_Year ;
17008 int result;
17009 PyObject * obj0 = 0 ;
17010 char *kwnames[] = {
17011 (char *) "year", NULL
17012 };
17013
17014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17015 if (obj0) {
17016 arg1 = (int) SWIG_AsInt(obj0);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = (int)wxDateTime::GetCentury(arg1);
17022
17023 wxPyEndAllowThreads(__tstate);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 resultobj = SWIG_FromInt((int)result);
17027 return resultobj;
17028 fail:
17029 return NULL;
17030 }
17031
17032
17033 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17034 PyObject *resultobj;
17035 int arg1 ;
17036 int arg2 = (int) wxDateTime::Gregorian ;
17037 int result;
17038 PyObject * obj0 = 0 ;
17039 PyObject * obj1 = 0 ;
17040 char *kwnames[] = {
17041 (char *) "year",(char *) "cal", NULL
17042 };
17043
17044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17045 arg1 = (int) SWIG_AsInt(obj0);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 if (obj1) {
17048 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17049 if (PyErr_Occurred()) SWIG_fail;
17050 }
17051 {
17052 PyThreadState* __tstate = wxPyBeginAllowThreads();
17053 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17054
17055 wxPyEndAllowThreads(__tstate);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 }
17058 resultobj = SWIG_FromInt((int)result);
17059 return resultobj;
17060 fail:
17061 return NULL;
17062 }
17063
17064
17065 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17066 PyObject *resultobj;
17067 int arg1 ;
17068 int arg2 = (int) wxDateTime::Inv_Year ;
17069 int arg3 = (int) wxDateTime::Gregorian ;
17070 int result;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 PyObject * obj2 = 0 ;
17074 char *kwnames[] = {
17075 (char *) "month",(char *) "year",(char *) "cal", NULL
17076 };
17077
17078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17079 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 if (obj1) {
17082 arg2 = (int) SWIG_AsInt(obj1);
17083 if (PyErr_Occurred()) SWIG_fail;
17084 }
17085 if (obj2) {
17086 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 {
17090 PyThreadState* __tstate = wxPyBeginAllowThreads();
17091 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17092
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 resultobj = SWIG_FromInt((int)result);
17097 return resultobj;
17098 fail:
17099 return NULL;
17100 }
17101
17102
17103 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17104 PyObject *resultobj;
17105 int arg1 ;
17106 int arg2 = (int) wxDateTime::Name_Full ;
17107 wxString result;
17108 PyObject * obj0 = 0 ;
17109 PyObject * obj1 = 0 ;
17110 char *kwnames[] = {
17111 (char *) "month",(char *) "flags", NULL
17112 };
17113
17114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17115 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17116 if (PyErr_Occurred()) SWIG_fail;
17117 if (obj1) {
17118 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 {
17122 PyThreadState* __tstate = wxPyBeginAllowThreads();
17123 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17124
17125 wxPyEndAllowThreads(__tstate);
17126 if (PyErr_Occurred()) SWIG_fail;
17127 }
17128 {
17129 #if wxUSE_UNICODE
17130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17131 #else
17132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17133 #endif
17134 }
17135 return resultobj;
17136 fail:
17137 return NULL;
17138 }
17139
17140
17141 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17142 PyObject *resultobj;
17143 int arg1 ;
17144 int arg2 = (int) wxDateTime::Name_Full ;
17145 wxString result;
17146 PyObject * obj0 = 0 ;
17147 PyObject * obj1 = 0 ;
17148 char *kwnames[] = {
17149 (char *) "weekday",(char *) "flags", NULL
17150 };
17151
17152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17153 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17154 if (PyErr_Occurred()) SWIG_fail;
17155 if (obj1) {
17156 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17162
17163 wxPyEndAllowThreads(__tstate);
17164 if (PyErr_Occurred()) SWIG_fail;
17165 }
17166 {
17167 #if wxUSE_UNICODE
17168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17169 #else
17170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17171 #endif
17172 }
17173 return resultobj;
17174 fail:
17175 return NULL;
17176 }
17177
17178
17179 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17180 PyObject *resultobj;
17181 wxString *arg1 = (wxString *) 0 ;
17182 wxString *arg2 = (wxString *) 0 ;
17183 bool temp1 = False ;
17184 bool temp2 = False ;
17185 PyObject * obj0 = 0 ;
17186 PyObject * obj1 = 0 ;
17187 char *kwnames[] = {
17188 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17189 };
17190
17191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17192 {
17193 arg1 = wxString_in_helper(obj0);
17194 if (arg1 == NULL) SWIG_fail;
17195 temp1 = True;
17196 }
17197 {
17198 arg2 = wxString_in_helper(obj1);
17199 if (arg2 == NULL) SWIG_fail;
17200 temp2 = True;
17201 }
17202 {
17203 PyThreadState* __tstate = wxPyBeginAllowThreads();
17204 wxDateTime::GetAmPmStrings(arg1,arg2);
17205
17206 wxPyEndAllowThreads(__tstate);
17207 if (PyErr_Occurred()) SWIG_fail;
17208 }
17209 Py_INCREF(Py_None); resultobj = Py_None;
17210 {
17211 if (temp1)
17212 delete arg1;
17213 }
17214 {
17215 if (temp2)
17216 delete arg2;
17217 }
17218 return resultobj;
17219 fail:
17220 {
17221 if (temp1)
17222 delete arg1;
17223 }
17224 {
17225 if (temp2)
17226 delete arg2;
17227 }
17228 return NULL;
17229 }
17230
17231
17232 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj;
17234 int arg1 = (int) wxDateTime::Inv_Year ;
17235 int arg2 = (int) wxDateTime::Country_Default ;
17236 bool result;
17237 PyObject * obj0 = 0 ;
17238 PyObject * obj1 = 0 ;
17239 char *kwnames[] = {
17240 (char *) "year",(char *) "country", NULL
17241 };
17242
17243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17244 if (obj0) {
17245 arg1 = (int) SWIG_AsInt(obj0);
17246 if (PyErr_Occurred()) SWIG_fail;
17247 }
17248 if (obj1) {
17249 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 {
17253 PyThreadState* __tstate = wxPyBeginAllowThreads();
17254 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17255
17256 wxPyEndAllowThreads(__tstate);
17257 if (PyErr_Occurred()) SWIG_fail;
17258 }
17259 {
17260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17261 }
17262 return resultobj;
17263 fail:
17264 return NULL;
17265 }
17266
17267
17268 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17269 PyObject *resultobj;
17270 int arg1 = (int) wxDateTime::Inv_Year ;
17271 int arg2 = (int) wxDateTime::Country_Default ;
17272 wxDateTime result;
17273 PyObject * obj0 = 0 ;
17274 PyObject * obj1 = 0 ;
17275 char *kwnames[] = {
17276 (char *) "year",(char *) "country", NULL
17277 };
17278
17279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17280 if (obj0) {
17281 arg1 = (int) SWIG_AsInt(obj0);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 if (obj1) {
17285 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17286 if (PyErr_Occurred()) SWIG_fail;
17287 }
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17291
17292 wxPyEndAllowThreads(__tstate);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 {
17296 wxDateTime * resultptr;
17297 resultptr = new wxDateTime((wxDateTime &) result);
17298 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17299 }
17300 return resultobj;
17301 fail:
17302 return NULL;
17303 }
17304
17305
17306 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17307 PyObject *resultobj;
17308 int arg1 = (int) wxDateTime::Inv_Year ;
17309 int arg2 = (int) wxDateTime::Country_Default ;
17310 wxDateTime result;
17311 PyObject * obj0 = 0 ;
17312 PyObject * obj1 = 0 ;
17313 char *kwnames[] = {
17314 (char *) "year",(char *) "country", NULL
17315 };
17316
17317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17318 if (obj0) {
17319 arg1 = (int) SWIG_AsInt(obj0);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 if (obj1) {
17323 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 {
17327 PyThreadState* __tstate = wxPyBeginAllowThreads();
17328 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17329
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 {
17334 wxDateTime * resultptr;
17335 resultptr = new wxDateTime((wxDateTime &) result);
17336 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17337 }
17338 return resultobj;
17339 fail:
17340 return NULL;
17341 }
17342
17343
17344 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17345 PyObject *resultobj;
17346 wxDateTime result;
17347 char *kwnames[] = {
17348 NULL
17349 };
17350
17351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17352 {
17353 PyThreadState* __tstate = wxPyBeginAllowThreads();
17354 result = wxDateTime::Now();
17355
17356 wxPyEndAllowThreads(__tstate);
17357 if (PyErr_Occurred()) SWIG_fail;
17358 }
17359 {
17360 wxDateTime * resultptr;
17361 resultptr = new wxDateTime((wxDateTime &) result);
17362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17363 }
17364 return resultobj;
17365 fail:
17366 return NULL;
17367 }
17368
17369
17370 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17371 PyObject *resultobj;
17372 wxDateTime result;
17373 char *kwnames[] = {
17374 NULL
17375 };
17376
17377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17378 {
17379 PyThreadState* __tstate = wxPyBeginAllowThreads();
17380 result = wxDateTime::UNow();
17381
17382 wxPyEndAllowThreads(__tstate);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 {
17386 wxDateTime * resultptr;
17387 resultptr = new wxDateTime((wxDateTime &) result);
17388 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17389 }
17390 return resultobj;
17391 fail:
17392 return NULL;
17393 }
17394
17395
17396 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17397 PyObject *resultobj;
17398 wxDateTime result;
17399 char *kwnames[] = {
17400 NULL
17401 };
17402
17403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17404 {
17405 PyThreadState* __tstate = wxPyBeginAllowThreads();
17406 result = wxDateTime::Today();
17407
17408 wxPyEndAllowThreads(__tstate);
17409 if (PyErr_Occurred()) SWIG_fail;
17410 }
17411 {
17412 wxDateTime * resultptr;
17413 resultptr = new wxDateTime((wxDateTime &) result);
17414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17415 }
17416 return resultobj;
17417 fail:
17418 return NULL;
17419 }
17420
17421
17422 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17423 PyObject *resultobj;
17424 wxDateTime *result;
17425 char *kwnames[] = {
17426 NULL
17427 };
17428
17429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = (wxDateTime *)new wxDateTime();
17433
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17438 return resultobj;
17439 fail:
17440 return NULL;
17441 }
17442
17443
17444 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17445 PyObject *resultobj;
17446 time_t arg1 ;
17447 wxDateTime *result;
17448 PyObject * obj0 = 0 ;
17449 char *kwnames[] = {
17450 (char *) "timet", NULL
17451 };
17452
17453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17454 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17455 if (PyErr_Occurred()) SWIG_fail;
17456 {
17457 PyThreadState* __tstate = wxPyBeginAllowThreads();
17458 result = (wxDateTime *)new wxDateTime(arg1);
17459
17460 wxPyEndAllowThreads(__tstate);
17461 if (PyErr_Occurred()) SWIG_fail;
17462 }
17463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17464 return resultobj;
17465 fail:
17466 return NULL;
17467 }
17468
17469
17470 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17471 PyObject *resultobj;
17472 double arg1 ;
17473 wxDateTime *result;
17474 PyObject * obj0 = 0 ;
17475 char *kwnames[] = {
17476 (char *) "jdn", NULL
17477 };
17478
17479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17480 arg1 = (double) SWIG_AsDouble(obj0);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 {
17483 PyThreadState* __tstate = wxPyBeginAllowThreads();
17484 result = (wxDateTime *)new wxDateTime(arg1);
17485
17486 wxPyEndAllowThreads(__tstate);
17487 if (PyErr_Occurred()) SWIG_fail;
17488 }
17489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17490 return resultobj;
17491 fail:
17492 return NULL;
17493 }
17494
17495
17496 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17497 PyObject *resultobj;
17498 int arg1 ;
17499 int arg2 = (int) 0 ;
17500 int arg3 = (int) 0 ;
17501 int arg4 = (int) 0 ;
17502 wxDateTime *result;
17503 PyObject * obj0 = 0 ;
17504 PyObject * obj1 = 0 ;
17505 PyObject * obj2 = 0 ;
17506 PyObject * obj3 = 0 ;
17507 char *kwnames[] = {
17508 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17509 };
17510
17511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17512 arg1 = (int) SWIG_AsInt(obj0);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 if (obj1) {
17515 arg2 = (int) SWIG_AsInt(obj1);
17516 if (PyErr_Occurred()) SWIG_fail;
17517 }
17518 if (obj2) {
17519 arg3 = (int) SWIG_AsInt(obj2);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 }
17522 if (obj3) {
17523 arg4 = (int) SWIG_AsInt(obj3);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 }
17526 {
17527 PyThreadState* __tstate = wxPyBeginAllowThreads();
17528 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17529
17530 wxPyEndAllowThreads(__tstate);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17534 return resultobj;
17535 fail:
17536 return NULL;
17537 }
17538
17539
17540 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17541 PyObject *resultobj;
17542 int arg1 ;
17543 int arg2 = (int) wxDateTime::Inv_Month ;
17544 int arg3 = (int) wxDateTime::Inv_Year ;
17545 int arg4 = (int) 0 ;
17546 int arg5 = (int) 0 ;
17547 int arg6 = (int) 0 ;
17548 int arg7 = (int) 0 ;
17549 wxDateTime *result;
17550 PyObject * obj0 = 0 ;
17551 PyObject * obj1 = 0 ;
17552 PyObject * obj2 = 0 ;
17553 PyObject * obj3 = 0 ;
17554 PyObject * obj4 = 0 ;
17555 PyObject * obj5 = 0 ;
17556 PyObject * obj6 = 0 ;
17557 char *kwnames[] = {
17558 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17559 };
17560
17561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17562 arg1 = (int) SWIG_AsInt(obj0);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 if (obj1) {
17565 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17566 if (PyErr_Occurred()) SWIG_fail;
17567 }
17568 if (obj2) {
17569 arg3 = (int) SWIG_AsInt(obj2);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 }
17572 if (obj3) {
17573 arg4 = (int) SWIG_AsInt(obj3);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 if (obj4) {
17577 arg5 = (int) SWIG_AsInt(obj4);
17578 if (PyErr_Occurred()) SWIG_fail;
17579 }
17580 if (obj5) {
17581 arg6 = (int) SWIG_AsInt(obj5);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 if (obj6) {
17585 arg7 = (int) SWIG_AsInt(obj6);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 {
17589 PyThreadState* __tstate = wxPyBeginAllowThreads();
17590 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17591
17592 wxPyEndAllowThreads(__tstate);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
17595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17596 return resultobj;
17597 fail:
17598 return NULL;
17599 }
17600
17601
17602 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17603 PyObject *resultobj;
17604 wxDateTime *arg1 = (wxDateTime *) 0 ;
17605 PyObject * obj0 = 0 ;
17606 char *kwnames[] = {
17607 (char *) "self", NULL
17608 };
17609
17610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17613 {
17614 PyThreadState* __tstate = wxPyBeginAllowThreads();
17615 delete arg1;
17616
17617 wxPyEndAllowThreads(__tstate);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 }
17620 Py_INCREF(Py_None); resultobj = Py_None;
17621 return resultobj;
17622 fail:
17623 return NULL;
17624 }
17625
17626
17627 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17628 PyObject *resultobj;
17629 wxDateTime *arg1 = (wxDateTime *) 0 ;
17630 wxDateTime *result;
17631 PyObject * obj0 = 0 ;
17632 char *kwnames[] = {
17633 (char *) "self", NULL
17634 };
17635
17636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 {
17642 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17643 result = (wxDateTime *) &_result_ref;
17644 }
17645
17646 wxPyEndAllowThreads(__tstate);
17647 if (PyErr_Occurred()) SWIG_fail;
17648 }
17649 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17650 return resultobj;
17651 fail:
17652 return NULL;
17653 }
17654
17655
17656 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17657 PyObject *resultobj;
17658 wxDateTime *arg1 = (wxDateTime *) 0 ;
17659 time_t arg2 ;
17660 wxDateTime *result;
17661 PyObject * obj0 = 0 ;
17662 PyObject * obj1 = 0 ;
17663 char *kwnames[] = {
17664 (char *) "self",(char *) "timet", NULL
17665 };
17666
17667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17670 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17671 if (PyErr_Occurred()) SWIG_fail;
17672 {
17673 PyThreadState* __tstate = wxPyBeginAllowThreads();
17674 {
17675 wxDateTime &_result_ref = (arg1)->Set(arg2);
17676 result = (wxDateTime *) &_result_ref;
17677 }
17678
17679 wxPyEndAllowThreads(__tstate);
17680 if (PyErr_Occurred()) SWIG_fail;
17681 }
17682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17683 return resultobj;
17684 fail:
17685 return NULL;
17686 }
17687
17688
17689 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17690 PyObject *resultobj;
17691 wxDateTime *arg1 = (wxDateTime *) 0 ;
17692 double arg2 ;
17693 wxDateTime *result;
17694 PyObject * obj0 = 0 ;
17695 PyObject * obj1 = 0 ;
17696 char *kwnames[] = {
17697 (char *) "self",(char *) "jdn", NULL
17698 };
17699
17700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17703 arg2 = (double) SWIG_AsDouble(obj1);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 {
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 {
17708 wxDateTime &_result_ref = (arg1)->Set(arg2);
17709 result = (wxDateTime *) &_result_ref;
17710 }
17711
17712 wxPyEndAllowThreads(__tstate);
17713 if (PyErr_Occurred()) SWIG_fail;
17714 }
17715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17716 return resultobj;
17717 fail:
17718 return NULL;
17719 }
17720
17721
17722 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17723 PyObject *resultobj;
17724 wxDateTime *arg1 = (wxDateTime *) 0 ;
17725 int arg2 ;
17726 int arg3 = (int) 0 ;
17727 int arg4 = (int) 0 ;
17728 int arg5 = (int) 0 ;
17729 wxDateTime *result;
17730 PyObject * obj0 = 0 ;
17731 PyObject * obj1 = 0 ;
17732 PyObject * obj2 = 0 ;
17733 PyObject * obj3 = 0 ;
17734 PyObject * obj4 = 0 ;
17735 char *kwnames[] = {
17736 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17737 };
17738
17739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17742 arg2 = (int) SWIG_AsInt(obj1);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 if (obj2) {
17745 arg3 = (int) SWIG_AsInt(obj2);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 if (obj3) {
17749 arg4 = (int) SWIG_AsInt(obj3);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 if (obj4) {
17753 arg5 = (int) SWIG_AsInt(obj4);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 {
17757 PyThreadState* __tstate = wxPyBeginAllowThreads();
17758 {
17759 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17760 result = (wxDateTime *) &_result_ref;
17761 }
17762
17763 wxPyEndAllowThreads(__tstate);
17764 if (PyErr_Occurred()) SWIG_fail;
17765 }
17766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17767 return resultobj;
17768 fail:
17769 return NULL;
17770 }
17771
17772
17773 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17774 PyObject *resultobj;
17775 wxDateTime *arg1 = (wxDateTime *) 0 ;
17776 int arg2 ;
17777 int arg3 = (int) wxDateTime::Inv_Month ;
17778 int arg4 = (int) wxDateTime::Inv_Year ;
17779 int arg5 = (int) 0 ;
17780 int arg6 = (int) 0 ;
17781 int arg7 = (int) 0 ;
17782 int arg8 = (int) 0 ;
17783 wxDateTime *result;
17784 PyObject * obj0 = 0 ;
17785 PyObject * obj1 = 0 ;
17786 PyObject * obj2 = 0 ;
17787 PyObject * obj3 = 0 ;
17788 PyObject * obj4 = 0 ;
17789 PyObject * obj5 = 0 ;
17790 PyObject * obj6 = 0 ;
17791 PyObject * obj7 = 0 ;
17792 char *kwnames[] = {
17793 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17794 };
17795
17796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17799 arg2 = (int) SWIG_AsInt(obj1);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 if (obj2) {
17802 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17803 if (PyErr_Occurred()) SWIG_fail;
17804 }
17805 if (obj3) {
17806 arg4 = (int) SWIG_AsInt(obj3);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 }
17809 if (obj4) {
17810 arg5 = (int) SWIG_AsInt(obj4);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 if (obj5) {
17814 arg6 = (int) SWIG_AsInt(obj5);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 if (obj6) {
17818 arg7 = (int) SWIG_AsInt(obj6);
17819 if (PyErr_Occurred()) SWIG_fail;
17820 }
17821 if (obj7) {
17822 arg8 = (int) SWIG_AsInt(obj7);
17823 if (PyErr_Occurred()) SWIG_fail;
17824 }
17825 {
17826 PyThreadState* __tstate = wxPyBeginAllowThreads();
17827 {
17828 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17829 result = (wxDateTime *) &_result_ref;
17830 }
17831
17832 wxPyEndAllowThreads(__tstate);
17833 if (PyErr_Occurred()) SWIG_fail;
17834 }
17835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17836 return resultobj;
17837 fail:
17838 return NULL;
17839 }
17840
17841
17842 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17843 PyObject *resultobj;
17844 wxDateTime *arg1 = (wxDateTime *) 0 ;
17845 wxDateTime *result;
17846 PyObject * obj0 = 0 ;
17847 char *kwnames[] = {
17848 (char *) "self", NULL
17849 };
17850
17851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17854 {
17855 PyThreadState* __tstate = wxPyBeginAllowThreads();
17856 {
17857 wxDateTime &_result_ref = (arg1)->ResetTime();
17858 result = (wxDateTime *) &_result_ref;
17859 }
17860
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17865 return resultobj;
17866 fail:
17867 return NULL;
17868 }
17869
17870
17871 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17872 PyObject *resultobj;
17873 wxDateTime *arg1 = (wxDateTime *) 0 ;
17874 int arg2 ;
17875 wxDateTime *result;
17876 PyObject * obj0 = 0 ;
17877 PyObject * obj1 = 0 ;
17878 char *kwnames[] = {
17879 (char *) "self",(char *) "year", NULL
17880 };
17881
17882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17885 arg2 = (int) SWIG_AsInt(obj1);
17886 if (PyErr_Occurred()) SWIG_fail;
17887 {
17888 PyThreadState* __tstate = wxPyBeginAllowThreads();
17889 {
17890 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17891 result = (wxDateTime *) &_result_ref;
17892 }
17893
17894 wxPyEndAllowThreads(__tstate);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 }
17897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17898 return resultobj;
17899 fail:
17900 return NULL;
17901 }
17902
17903
17904 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17905 PyObject *resultobj;
17906 wxDateTime *arg1 = (wxDateTime *) 0 ;
17907 int arg2 ;
17908 wxDateTime *result;
17909 PyObject * obj0 = 0 ;
17910 PyObject * obj1 = 0 ;
17911 char *kwnames[] = {
17912 (char *) "self",(char *) "month", NULL
17913 };
17914
17915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17918 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 {
17923 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17924 result = (wxDateTime *) &_result_ref;
17925 }
17926
17927 wxPyEndAllowThreads(__tstate);
17928 if (PyErr_Occurred()) SWIG_fail;
17929 }
17930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17931 return resultobj;
17932 fail:
17933 return NULL;
17934 }
17935
17936
17937 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17938 PyObject *resultobj;
17939 wxDateTime *arg1 = (wxDateTime *) 0 ;
17940 int arg2 ;
17941 wxDateTime *result;
17942 PyObject * obj0 = 0 ;
17943 PyObject * obj1 = 0 ;
17944 char *kwnames[] = {
17945 (char *) "self",(char *) "day", NULL
17946 };
17947
17948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17951 arg2 = (int) SWIG_AsInt(obj1);
17952 if (PyErr_Occurred()) SWIG_fail;
17953 {
17954 PyThreadState* __tstate = wxPyBeginAllowThreads();
17955 {
17956 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17957 result = (wxDateTime *) &_result_ref;
17958 }
17959
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17964 return resultobj;
17965 fail:
17966 return NULL;
17967 }
17968
17969
17970 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj;
17972 wxDateTime *arg1 = (wxDateTime *) 0 ;
17973 int arg2 ;
17974 wxDateTime *result;
17975 PyObject * obj0 = 0 ;
17976 PyObject * obj1 = 0 ;
17977 char *kwnames[] = {
17978 (char *) "self",(char *) "hour", NULL
17979 };
17980
17981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17984 arg2 = (int) SWIG_AsInt(obj1);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 {
17987 PyThreadState* __tstate = wxPyBeginAllowThreads();
17988 {
17989 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17990 result = (wxDateTime *) &_result_ref;
17991 }
17992
17993 wxPyEndAllowThreads(__tstate);
17994 if (PyErr_Occurred()) SWIG_fail;
17995 }
17996 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17997 return resultobj;
17998 fail:
17999 return NULL;
18000 }
18001
18002
18003 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18004 PyObject *resultobj;
18005 wxDateTime *arg1 = (wxDateTime *) 0 ;
18006 int arg2 ;
18007 wxDateTime *result;
18008 PyObject * obj0 = 0 ;
18009 PyObject * obj1 = 0 ;
18010 char *kwnames[] = {
18011 (char *) "self",(char *) "minute", NULL
18012 };
18013
18014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18017 arg2 = (int) SWIG_AsInt(obj1);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 {
18020 PyThreadState* __tstate = wxPyBeginAllowThreads();
18021 {
18022 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18023 result = (wxDateTime *) &_result_ref;
18024 }
18025
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18030 return resultobj;
18031 fail:
18032 return NULL;
18033 }
18034
18035
18036 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj;
18038 wxDateTime *arg1 = (wxDateTime *) 0 ;
18039 int arg2 ;
18040 wxDateTime *result;
18041 PyObject * obj0 = 0 ;
18042 PyObject * obj1 = 0 ;
18043 char *kwnames[] = {
18044 (char *) "self",(char *) "second", NULL
18045 };
18046
18047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18050 arg2 = (int) SWIG_AsInt(obj1);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 {
18053 PyThreadState* __tstate = wxPyBeginAllowThreads();
18054 {
18055 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18056 result = (wxDateTime *) &_result_ref;
18057 }
18058
18059 wxPyEndAllowThreads(__tstate);
18060 if (PyErr_Occurred()) SWIG_fail;
18061 }
18062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18063 return resultobj;
18064 fail:
18065 return NULL;
18066 }
18067
18068
18069 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18070 PyObject *resultobj;
18071 wxDateTime *arg1 = (wxDateTime *) 0 ;
18072 int arg2 ;
18073 wxDateTime *result;
18074 PyObject * obj0 = 0 ;
18075 PyObject * obj1 = 0 ;
18076 char *kwnames[] = {
18077 (char *) "self",(char *) "millisecond", NULL
18078 };
18079
18080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18083 arg2 = (int) SWIG_AsInt(obj1);
18084 if (PyErr_Occurred()) SWIG_fail;
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 {
18088 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18089 result = (wxDateTime *) &_result_ref;
18090 }
18091
18092 wxPyEndAllowThreads(__tstate);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18096 return resultobj;
18097 fail:
18098 return NULL;
18099 }
18100
18101
18102 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18103 PyObject *resultobj;
18104 wxDateTime *arg1 = (wxDateTime *) 0 ;
18105 int arg2 ;
18106 int arg3 = (int) wxDateTime::Monday_First ;
18107 wxDateTime *result;
18108 PyObject * obj0 = 0 ;
18109 PyObject * obj1 = 0 ;
18110 PyObject * obj2 = 0 ;
18111 char *kwnames[] = {
18112 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18113 };
18114
18115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18118 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 if (obj2) {
18121 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 }
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 {
18127 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18128 result = (wxDateTime *) &_result_ref;
18129 }
18130
18131 wxPyEndAllowThreads(__tstate);
18132 if (PyErr_Occurred()) SWIG_fail;
18133 }
18134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18135 return resultobj;
18136 fail:
18137 return NULL;
18138 }
18139
18140
18141 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18142 PyObject *resultobj;
18143 wxDateTime *arg1 = (wxDateTime *) 0 ;
18144 int arg2 ;
18145 int arg3 = (int) wxDateTime::Monday_First ;
18146 wxDateTime result;
18147 PyObject * obj0 = 0 ;
18148 PyObject * obj1 = 0 ;
18149 PyObject * obj2 = 0 ;
18150 char *kwnames[] = {
18151 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18152 };
18153
18154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18157 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18158 if (PyErr_Occurred()) SWIG_fail;
18159 if (obj2) {
18160 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18161 if (PyErr_Occurred()) SWIG_fail;
18162 }
18163 {
18164 PyThreadState* __tstate = wxPyBeginAllowThreads();
18165 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18166
18167 wxPyEndAllowThreads(__tstate);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 {
18171 wxDateTime * resultptr;
18172 resultptr = new wxDateTime((wxDateTime &) result);
18173 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18174 }
18175 return resultobj;
18176 fail:
18177 return NULL;
18178 }
18179
18180
18181 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18182 PyObject *resultobj;
18183 wxDateTime *arg1 = (wxDateTime *) 0 ;
18184 int arg2 ;
18185 wxDateTime *result;
18186 PyObject * obj0 = 0 ;
18187 PyObject * obj1 = 0 ;
18188 char *kwnames[] = {
18189 (char *) "self",(char *) "weekday", NULL
18190 };
18191
18192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18195 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 {
18198 PyThreadState* __tstate = wxPyBeginAllowThreads();
18199 {
18200 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18201 result = (wxDateTime *) &_result_ref;
18202 }
18203
18204 wxPyEndAllowThreads(__tstate);
18205 if (PyErr_Occurred()) SWIG_fail;
18206 }
18207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18208 return resultobj;
18209 fail:
18210 return NULL;
18211 }
18212
18213
18214 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18215 PyObject *resultobj;
18216 wxDateTime *arg1 = (wxDateTime *) 0 ;
18217 int arg2 ;
18218 wxDateTime result;
18219 PyObject * obj0 = 0 ;
18220 PyObject * obj1 = 0 ;
18221 char *kwnames[] = {
18222 (char *) "self",(char *) "weekday", NULL
18223 };
18224
18225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18228 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 {
18231 PyThreadState* __tstate = wxPyBeginAllowThreads();
18232 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18233
18234 wxPyEndAllowThreads(__tstate);
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 {
18238 wxDateTime * resultptr;
18239 resultptr = new wxDateTime((wxDateTime &) result);
18240 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18241 }
18242 return resultobj;
18243 fail:
18244 return NULL;
18245 }
18246
18247
18248 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18249 PyObject *resultobj;
18250 wxDateTime *arg1 = (wxDateTime *) 0 ;
18251 int arg2 ;
18252 wxDateTime *result;
18253 PyObject * obj0 = 0 ;
18254 PyObject * obj1 = 0 ;
18255 char *kwnames[] = {
18256 (char *) "self",(char *) "weekday", NULL
18257 };
18258
18259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18262 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 {
18265 PyThreadState* __tstate = wxPyBeginAllowThreads();
18266 {
18267 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18268 result = (wxDateTime *) &_result_ref;
18269 }
18270
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj;
18283 wxDateTime *arg1 = (wxDateTime *) 0 ;
18284 int arg2 ;
18285 wxDateTime result;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 char *kwnames[] = {
18289 (char *) "self",(char *) "weekday", NULL
18290 };
18291
18292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18295 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18296 if (PyErr_Occurred()) SWIG_fail;
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18300
18301 wxPyEndAllowThreads(__tstate);
18302 if (PyErr_Occurred()) SWIG_fail;
18303 }
18304 {
18305 wxDateTime * resultptr;
18306 resultptr = new wxDateTime((wxDateTime &) result);
18307 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18308 }
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18316 PyObject *resultobj;
18317 wxDateTime *arg1 = (wxDateTime *) 0 ;
18318 int arg2 ;
18319 int arg3 = (int) 1 ;
18320 int arg4 = (int) wxDateTime::Inv_Month ;
18321 int arg5 = (int) wxDateTime::Inv_Year ;
18322 bool result;
18323 PyObject * obj0 = 0 ;
18324 PyObject * obj1 = 0 ;
18325 PyObject * obj2 = 0 ;
18326 PyObject * obj3 = 0 ;
18327 PyObject * obj4 = 0 ;
18328 char *kwnames[] = {
18329 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18330 };
18331
18332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18335 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 if (obj2) {
18338 arg3 = (int) SWIG_AsInt(obj2);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 if (obj3) {
18342 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 if (obj4) {
18346 arg5 = (int) SWIG_AsInt(obj4);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 {
18350 PyThreadState* __tstate = wxPyBeginAllowThreads();
18351 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18352
18353 wxPyEndAllowThreads(__tstate);
18354 if (PyErr_Occurred()) SWIG_fail;
18355 }
18356 {
18357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18358 }
18359 return resultobj;
18360 fail:
18361 return NULL;
18362 }
18363
18364
18365 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18366 PyObject *resultobj;
18367 wxDateTime *arg1 = (wxDateTime *) 0 ;
18368 int arg2 ;
18369 int arg3 = (int) wxDateTime::Inv_Month ;
18370 int arg4 = (int) wxDateTime::Inv_Year ;
18371 bool result;
18372 PyObject * obj0 = 0 ;
18373 PyObject * obj1 = 0 ;
18374 PyObject * obj2 = 0 ;
18375 PyObject * obj3 = 0 ;
18376 char *kwnames[] = {
18377 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18378 };
18379
18380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18383 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 if (obj2) {
18386 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 }
18389 if (obj3) {
18390 arg4 = (int) SWIG_AsInt(obj3);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 {
18394 PyThreadState* __tstate = wxPyBeginAllowThreads();
18395 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18396
18397 wxPyEndAllowThreads(__tstate);
18398 if (PyErr_Occurred()) SWIG_fail;
18399 }
18400 {
18401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18402 }
18403 return resultobj;
18404 fail:
18405 return NULL;
18406 }
18407
18408
18409 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18410 PyObject *resultobj;
18411 wxDateTime *arg1 = (wxDateTime *) 0 ;
18412 int arg2 ;
18413 int arg3 = (int) wxDateTime::Inv_Month ;
18414 int arg4 = (int) wxDateTime::Inv_Year ;
18415 wxDateTime result;
18416 PyObject * obj0 = 0 ;
18417 PyObject * obj1 = 0 ;
18418 PyObject * obj2 = 0 ;
18419 PyObject * obj3 = 0 ;
18420 char *kwnames[] = {
18421 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18422 };
18423
18424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18427 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 if (obj2) {
18430 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18431 if (PyErr_Occurred()) SWIG_fail;
18432 }
18433 if (obj3) {
18434 arg4 = (int) SWIG_AsInt(obj3);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 {
18438 PyThreadState* __tstate = wxPyBeginAllowThreads();
18439 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18440
18441 wxPyEndAllowThreads(__tstate);
18442 if (PyErr_Occurred()) SWIG_fail;
18443 }
18444 {
18445 wxDateTime * resultptr;
18446 resultptr = new wxDateTime((wxDateTime &) result);
18447 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18448 }
18449 return resultobj;
18450 fail:
18451 return NULL;
18452 }
18453
18454
18455 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18456 PyObject *resultobj;
18457 wxDateTime *arg1 = (wxDateTime *) 0 ;
18458 int arg2 ;
18459 int arg3 = (int) wxDateTime::Mon ;
18460 int arg4 = (int) wxDateTime::Monday_First ;
18461 bool result;
18462 PyObject * obj0 = 0 ;
18463 PyObject * obj1 = 0 ;
18464 PyObject * obj2 = 0 ;
18465 PyObject * obj3 = 0 ;
18466 char *kwnames[] = {
18467 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18468 };
18469
18470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18473 arg2 = (int) SWIG_AsInt(obj1);
18474 if (PyErr_Occurred()) SWIG_fail;
18475 if (obj2) {
18476 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 if (obj3) {
18480 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18481 if (PyErr_Occurred()) SWIG_fail;
18482 }
18483 {
18484 PyThreadState* __tstate = wxPyBeginAllowThreads();
18485 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18486
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 {
18491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18492 }
18493 return resultobj;
18494 fail:
18495 return NULL;
18496 }
18497
18498
18499 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18500 PyObject *resultobj;
18501 wxDateTime *arg1 = (wxDateTime *) 0 ;
18502 int arg2 ;
18503 int arg3 = (int) wxDateTime::Mon ;
18504 int arg4 = (int) wxDateTime::Monday_First ;
18505 wxDateTime result;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 PyObject * obj2 = 0 ;
18509 PyObject * obj3 = 0 ;
18510 char *kwnames[] = {
18511 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18512 };
18513
18514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18517 arg2 = (int) SWIG_AsInt(obj1);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 if (obj2) {
18520 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 if (obj3) {
18524 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18525 if (PyErr_Occurred()) SWIG_fail;
18526 }
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18530
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 {
18535 wxDateTime * resultptr;
18536 resultptr = new wxDateTime((wxDateTime &) result);
18537 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18538 }
18539 return resultobj;
18540 fail:
18541 return NULL;
18542 }
18543
18544
18545 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj;
18547 wxDateTime *arg1 = (wxDateTime *) 0 ;
18548 int arg2 = (int) wxDateTime::Inv_Month ;
18549 int arg3 = (int) wxDateTime::Inv_Year ;
18550 wxDateTime *result;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 PyObject * obj2 = 0 ;
18554 char *kwnames[] = {
18555 (char *) "self",(char *) "month",(char *) "year", NULL
18556 };
18557
18558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18561 if (obj1) {
18562 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 }
18565 if (obj2) {
18566 arg3 = (int) SWIG_AsInt(obj2);
18567 if (PyErr_Occurred()) SWIG_fail;
18568 }
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 {
18572 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18573 result = (wxDateTime *) &_result_ref;
18574 }
18575
18576 wxPyEndAllowThreads(__tstate);
18577 if (PyErr_Occurred()) SWIG_fail;
18578 }
18579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18580 return resultobj;
18581 fail:
18582 return NULL;
18583 }
18584
18585
18586 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18587 PyObject *resultobj;
18588 wxDateTime *arg1 = (wxDateTime *) 0 ;
18589 int arg2 = (int) wxDateTime::Inv_Month ;
18590 int arg3 = (int) wxDateTime::Inv_Year ;
18591 wxDateTime result;
18592 PyObject * obj0 = 0 ;
18593 PyObject * obj1 = 0 ;
18594 PyObject * obj2 = 0 ;
18595 char *kwnames[] = {
18596 (char *) "self",(char *) "month",(char *) "year", NULL
18597 };
18598
18599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18602 if (obj1) {
18603 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 if (obj2) {
18607 arg3 = (int) SWIG_AsInt(obj2);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 {
18611 PyThreadState* __tstate = wxPyBeginAllowThreads();
18612 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18613
18614 wxPyEndAllowThreads(__tstate);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 }
18617 {
18618 wxDateTime * resultptr;
18619 resultptr = new wxDateTime((wxDateTime &) result);
18620 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18621 }
18622 return resultobj;
18623 fail:
18624 return NULL;
18625 }
18626
18627
18628 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18629 PyObject *resultobj;
18630 wxDateTime *arg1 = (wxDateTime *) 0 ;
18631 int arg2 ;
18632 wxDateTime *result;
18633 PyObject * obj0 = 0 ;
18634 PyObject * obj1 = 0 ;
18635 char *kwnames[] = {
18636 (char *) "self",(char *) "yday", NULL
18637 };
18638
18639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18642 arg2 = (int) SWIG_AsInt(obj1);
18643 if (PyErr_Occurred()) SWIG_fail;
18644 {
18645 PyThreadState* __tstate = wxPyBeginAllowThreads();
18646 {
18647 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18648 result = (wxDateTime *) &_result_ref;
18649 }
18650
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18655 return resultobj;
18656 fail:
18657 return NULL;
18658 }
18659
18660
18661 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18662 PyObject *resultobj;
18663 wxDateTime *arg1 = (wxDateTime *) 0 ;
18664 int arg2 ;
18665 wxDateTime result;
18666 PyObject * obj0 = 0 ;
18667 PyObject * obj1 = 0 ;
18668 char *kwnames[] = {
18669 (char *) "self",(char *) "yday", NULL
18670 };
18671
18672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18675 arg2 = (int) SWIG_AsInt(obj1);
18676 if (PyErr_Occurred()) SWIG_fail;
18677 {
18678 PyThreadState* __tstate = wxPyBeginAllowThreads();
18679 result = (arg1)->GetYearDay(arg2);
18680
18681 wxPyEndAllowThreads(__tstate);
18682 if (PyErr_Occurred()) SWIG_fail;
18683 }
18684 {
18685 wxDateTime * resultptr;
18686 resultptr = new wxDateTime((wxDateTime &) result);
18687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18688 }
18689 return resultobj;
18690 fail:
18691 return NULL;
18692 }
18693
18694
18695 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18696 PyObject *resultobj;
18697 wxDateTime *arg1 = (wxDateTime *) 0 ;
18698 double result;
18699 PyObject * obj0 = 0 ;
18700 char *kwnames[] = {
18701 (char *) "self", NULL
18702 };
18703
18704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18707 {
18708 PyThreadState* __tstate = wxPyBeginAllowThreads();
18709 result = (double)(arg1)->GetJulianDayNumber();
18710
18711 wxPyEndAllowThreads(__tstate);
18712 if (PyErr_Occurred()) SWIG_fail;
18713 }
18714 resultobj = SWIG_FromDouble((double)result);
18715 return resultobj;
18716 fail:
18717 return NULL;
18718 }
18719
18720
18721 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18722 PyObject *resultobj;
18723 wxDateTime *arg1 = (wxDateTime *) 0 ;
18724 double result;
18725 PyObject * obj0 = 0 ;
18726 char *kwnames[] = {
18727 (char *) "self", NULL
18728 };
18729
18730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18733 {
18734 PyThreadState* __tstate = wxPyBeginAllowThreads();
18735 result = (double)(arg1)->GetJDN();
18736
18737 wxPyEndAllowThreads(__tstate);
18738 if (PyErr_Occurred()) SWIG_fail;
18739 }
18740 resultobj = SWIG_FromDouble((double)result);
18741 return resultobj;
18742 fail:
18743 return NULL;
18744 }
18745
18746
18747 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18748 PyObject *resultobj;
18749 wxDateTime *arg1 = (wxDateTime *) 0 ;
18750 double result;
18751 PyObject * obj0 = 0 ;
18752 char *kwnames[] = {
18753 (char *) "self", NULL
18754 };
18755
18756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18759 {
18760 PyThreadState* __tstate = wxPyBeginAllowThreads();
18761 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18762
18763 wxPyEndAllowThreads(__tstate);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 }
18766 resultobj = SWIG_FromDouble((double)result);
18767 return resultobj;
18768 fail:
18769 return NULL;
18770 }
18771
18772
18773 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj;
18775 wxDateTime *arg1 = (wxDateTime *) 0 ;
18776 double result;
18777 PyObject * obj0 = 0 ;
18778 char *kwnames[] = {
18779 (char *) "self", NULL
18780 };
18781
18782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18785 {
18786 PyThreadState* __tstate = wxPyBeginAllowThreads();
18787 result = (double)(arg1)->GetMJD();
18788
18789 wxPyEndAllowThreads(__tstate);
18790 if (PyErr_Occurred()) SWIG_fail;
18791 }
18792 resultobj = SWIG_FromDouble((double)result);
18793 return resultobj;
18794 fail:
18795 return NULL;
18796 }
18797
18798
18799 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18800 PyObject *resultobj;
18801 wxDateTime *arg1 = (wxDateTime *) 0 ;
18802 double result;
18803 PyObject * obj0 = 0 ;
18804 char *kwnames[] = {
18805 (char *) "self", NULL
18806 };
18807
18808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18811 {
18812 PyThreadState* __tstate = wxPyBeginAllowThreads();
18813 result = (double)(arg1)->GetRataDie();
18814
18815 wxPyEndAllowThreads(__tstate);
18816 if (PyErr_Occurred()) SWIG_fail;
18817 }
18818 resultobj = SWIG_FromDouble((double)result);
18819 return resultobj;
18820 fail:
18821 return NULL;
18822 }
18823
18824
18825 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18826 PyObject *resultobj;
18827 wxDateTime *arg1 = (wxDateTime *) 0 ;
18828 wxDateTime::TimeZone *arg2 = 0 ;
18829 bool arg3 = (bool) False ;
18830 wxDateTime result;
18831 bool temp2 = False ;
18832 PyObject * obj0 = 0 ;
18833 PyObject * obj1 = 0 ;
18834 PyObject * obj2 = 0 ;
18835 char *kwnames[] = {
18836 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18837 };
18838
18839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18842 {
18843 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18844 temp2 = True;
18845 }
18846 if (obj2) {
18847 arg3 = (bool) SWIG_AsBool(obj2);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18853
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 {
18858 wxDateTime * resultptr;
18859 resultptr = new wxDateTime((wxDateTime &) result);
18860 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18861 }
18862 {
18863 if (temp2) delete arg2;
18864 }
18865 return resultobj;
18866 fail:
18867 {
18868 if (temp2) delete arg2;
18869 }
18870 return NULL;
18871 }
18872
18873
18874 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18875 PyObject *resultobj;
18876 wxDateTime *arg1 = (wxDateTime *) 0 ;
18877 wxDateTime::TimeZone *arg2 = 0 ;
18878 bool arg3 = (bool) False ;
18879 wxDateTime *result;
18880 bool temp2 = False ;
18881 PyObject * obj0 = 0 ;
18882 PyObject * obj1 = 0 ;
18883 PyObject * obj2 = 0 ;
18884 char *kwnames[] = {
18885 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18886 };
18887
18888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18891 {
18892 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18893 temp2 = True;
18894 }
18895 if (obj2) {
18896 arg3 = (bool) SWIG_AsBool(obj2);
18897 if (PyErr_Occurred()) SWIG_fail;
18898 }
18899 {
18900 PyThreadState* __tstate = wxPyBeginAllowThreads();
18901 {
18902 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18903 result = (wxDateTime *) &_result_ref;
18904 }
18905
18906 wxPyEndAllowThreads(__tstate);
18907 if (PyErr_Occurred()) SWIG_fail;
18908 }
18909 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18910 {
18911 if (temp2) delete arg2;
18912 }
18913 return resultobj;
18914 fail:
18915 {
18916 if (temp2) delete arg2;
18917 }
18918 return NULL;
18919 }
18920
18921
18922 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18923 PyObject *resultobj;
18924 wxDateTime *arg1 = (wxDateTime *) 0 ;
18925 bool arg2 = (bool) False ;
18926 wxDateTime result;
18927 PyObject * obj0 = 0 ;
18928 PyObject * obj1 = 0 ;
18929 char *kwnames[] = {
18930 (char *) "self",(char *) "noDST", NULL
18931 };
18932
18933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18936 if (obj1) {
18937 arg2 = (bool) SWIG_AsBool(obj1);
18938 if (PyErr_Occurred()) SWIG_fail;
18939 }
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 result = (arg1)->ToGMT(arg2);
18943
18944 wxPyEndAllowThreads(__tstate);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 }
18947 {
18948 wxDateTime * resultptr;
18949 resultptr = new wxDateTime((wxDateTime &) result);
18950 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18951 }
18952 return resultobj;
18953 fail:
18954 return NULL;
18955 }
18956
18957
18958 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18959 PyObject *resultobj;
18960 wxDateTime *arg1 = (wxDateTime *) 0 ;
18961 bool arg2 = (bool) False ;
18962 wxDateTime *result;
18963 PyObject * obj0 = 0 ;
18964 PyObject * obj1 = 0 ;
18965 char *kwnames[] = {
18966 (char *) "self",(char *) "noDST", NULL
18967 };
18968
18969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18972 if (obj1) {
18973 arg2 = (bool) SWIG_AsBool(obj1);
18974 if (PyErr_Occurred()) SWIG_fail;
18975 }
18976 {
18977 PyThreadState* __tstate = wxPyBeginAllowThreads();
18978 {
18979 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18980 result = (wxDateTime *) &_result_ref;
18981 }
18982
18983 wxPyEndAllowThreads(__tstate);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18987 return resultobj;
18988 fail:
18989 return NULL;
18990 }
18991
18992
18993 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18994 PyObject *resultobj;
18995 wxDateTime *arg1 = (wxDateTime *) 0 ;
18996 int arg2 = (int) wxDateTime::Country_Default ;
18997 int result;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 char *kwnames[] = {
19001 (char *) "self",(char *) "country", NULL
19002 };
19003
19004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19007 if (obj1) {
19008 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19009 if (PyErr_Occurred()) SWIG_fail;
19010 }
19011 {
19012 PyThreadState* __tstate = wxPyBeginAllowThreads();
19013 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19014
19015 wxPyEndAllowThreads(__tstate);
19016 if (PyErr_Occurred()) SWIG_fail;
19017 }
19018 resultobj = SWIG_FromInt((int)result);
19019 return resultobj;
19020 fail:
19021 return NULL;
19022 }
19023
19024
19025 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
19026 PyObject *resultobj;
19027 wxDateTime *arg1 = (wxDateTime *) 0 ;
19028 bool result;
19029 PyObject * obj0 = 0 ;
19030 char *kwnames[] = {
19031 (char *) "self", NULL
19032 };
19033
19034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19037 {
19038 PyThreadState* __tstate = wxPyBeginAllowThreads();
19039 result = (bool)((wxDateTime const *)arg1)->IsValid();
19040
19041 wxPyEndAllowThreads(__tstate);
19042 if (PyErr_Occurred()) SWIG_fail;
19043 }
19044 {
19045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19046 }
19047 return resultobj;
19048 fail:
19049 return NULL;
19050 }
19051
19052
19053 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
19054 PyObject *resultobj;
19055 wxDateTime *arg1 = (wxDateTime *) 0 ;
19056 time_t result;
19057 PyObject * obj0 = 0 ;
19058 char *kwnames[] = {
19059 (char *) "self", NULL
19060 };
19061
19062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19068
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19073 return resultobj;
19074 fail:
19075 return NULL;
19076 }
19077
19078
19079 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19080 PyObject *resultobj;
19081 wxDateTime *arg1 = (wxDateTime *) 0 ;
19082 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19083 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19084 int result;
19085 bool temp2 = False ;
19086 PyObject * obj0 = 0 ;
19087 PyObject * obj1 = 0 ;
19088 char *kwnames[] = {
19089 (char *) "self",(char *) "tz", NULL
19090 };
19091
19092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19095 if (obj1) {
19096 {
19097 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19098 temp2 = True;
19099 }
19100 }
19101 {
19102 PyThreadState* __tstate = wxPyBeginAllowThreads();
19103 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19104
19105 wxPyEndAllowThreads(__tstate);
19106 if (PyErr_Occurred()) SWIG_fail;
19107 }
19108 resultobj = SWIG_FromInt((int)result);
19109 {
19110 if (temp2) delete arg2;
19111 }
19112 return resultobj;
19113 fail:
19114 {
19115 if (temp2) delete arg2;
19116 }
19117 return NULL;
19118 }
19119
19120
19121 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19122 PyObject *resultobj;
19123 wxDateTime *arg1 = (wxDateTime *) 0 ;
19124 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19125 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19126 int result;
19127 bool temp2 = False ;
19128 PyObject * obj0 = 0 ;
19129 PyObject * obj1 = 0 ;
19130 char *kwnames[] = {
19131 (char *) "self",(char *) "tz", NULL
19132 };
19133
19134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19137 if (obj1) {
19138 {
19139 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19140 temp2 = True;
19141 }
19142 }
19143 {
19144 PyThreadState* __tstate = wxPyBeginAllowThreads();
19145 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19146
19147 wxPyEndAllowThreads(__tstate);
19148 if (PyErr_Occurred()) SWIG_fail;
19149 }
19150 resultobj = SWIG_FromInt((int)result);
19151 {
19152 if (temp2) delete arg2;
19153 }
19154 return resultobj;
19155 fail:
19156 {
19157 if (temp2) delete arg2;
19158 }
19159 return NULL;
19160 }
19161
19162
19163 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19164 PyObject *resultobj;
19165 wxDateTime *arg1 = (wxDateTime *) 0 ;
19166 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19167 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19168 int result;
19169 bool temp2 = False ;
19170 PyObject * obj0 = 0 ;
19171 PyObject * obj1 = 0 ;
19172 char *kwnames[] = {
19173 (char *) "self",(char *) "tz", NULL
19174 };
19175
19176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19179 if (obj1) {
19180 {
19181 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19182 temp2 = True;
19183 }
19184 }
19185 {
19186 PyThreadState* __tstate = wxPyBeginAllowThreads();
19187 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19188
19189 wxPyEndAllowThreads(__tstate);
19190 if (PyErr_Occurred()) SWIG_fail;
19191 }
19192 resultobj = SWIG_FromInt((int)result);
19193 {
19194 if (temp2) delete arg2;
19195 }
19196 return resultobj;
19197 fail:
19198 {
19199 if (temp2) delete arg2;
19200 }
19201 return NULL;
19202 }
19203
19204
19205 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19206 PyObject *resultobj;
19207 wxDateTime *arg1 = (wxDateTime *) 0 ;
19208 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19209 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19210 int result;
19211 bool temp2 = False ;
19212 PyObject * obj0 = 0 ;
19213 PyObject * obj1 = 0 ;
19214 char *kwnames[] = {
19215 (char *) "self",(char *) "tz", NULL
19216 };
19217
19218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19221 if (obj1) {
19222 {
19223 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19224 temp2 = True;
19225 }
19226 }
19227 {
19228 PyThreadState* __tstate = wxPyBeginAllowThreads();
19229 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19230
19231 wxPyEndAllowThreads(__tstate);
19232 if (PyErr_Occurred()) SWIG_fail;
19233 }
19234 resultobj = SWIG_FromInt((int)result);
19235 {
19236 if (temp2) delete arg2;
19237 }
19238 return resultobj;
19239 fail:
19240 {
19241 if (temp2) delete arg2;
19242 }
19243 return NULL;
19244 }
19245
19246
19247 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj;
19249 wxDateTime *arg1 = (wxDateTime *) 0 ;
19250 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19251 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19252 int result;
19253 bool temp2 = False ;
19254 PyObject * obj0 = 0 ;
19255 PyObject * obj1 = 0 ;
19256 char *kwnames[] = {
19257 (char *) "self",(char *) "tz", NULL
19258 };
19259
19260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19263 if (obj1) {
19264 {
19265 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19266 temp2 = True;
19267 }
19268 }
19269 {
19270 PyThreadState* __tstate = wxPyBeginAllowThreads();
19271 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19272
19273 wxPyEndAllowThreads(__tstate);
19274 if (PyErr_Occurred()) SWIG_fail;
19275 }
19276 resultobj = SWIG_FromInt((int)result);
19277 {
19278 if (temp2) delete arg2;
19279 }
19280 return resultobj;
19281 fail:
19282 {
19283 if (temp2) delete arg2;
19284 }
19285 return NULL;
19286 }
19287
19288
19289 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19290 PyObject *resultobj;
19291 wxDateTime *arg1 = (wxDateTime *) 0 ;
19292 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19293 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19294 int result;
19295 bool temp2 = False ;
19296 PyObject * obj0 = 0 ;
19297 PyObject * obj1 = 0 ;
19298 char *kwnames[] = {
19299 (char *) "self",(char *) "tz", NULL
19300 };
19301
19302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19305 if (obj1) {
19306 {
19307 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19308 temp2 = True;
19309 }
19310 }
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19314
19315 wxPyEndAllowThreads(__tstate);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
19318 resultobj = SWIG_FromInt((int)result);
19319 {
19320 if (temp2) delete arg2;
19321 }
19322 return resultobj;
19323 fail:
19324 {
19325 if (temp2) delete arg2;
19326 }
19327 return NULL;
19328 }
19329
19330
19331 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19332 PyObject *resultobj;
19333 wxDateTime *arg1 = (wxDateTime *) 0 ;
19334 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19335 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19336 int result;
19337 bool temp2 = False ;
19338 PyObject * obj0 = 0 ;
19339 PyObject * obj1 = 0 ;
19340 char *kwnames[] = {
19341 (char *) "self",(char *) "tz", NULL
19342 };
19343
19344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19347 if (obj1) {
19348 {
19349 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19350 temp2 = True;
19351 }
19352 }
19353 {
19354 PyThreadState* __tstate = wxPyBeginAllowThreads();
19355 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19356
19357 wxPyEndAllowThreads(__tstate);
19358 if (PyErr_Occurred()) SWIG_fail;
19359 }
19360 resultobj = SWIG_FromInt((int)result);
19361 {
19362 if (temp2) delete arg2;
19363 }
19364 return resultobj;
19365 fail:
19366 {
19367 if (temp2) delete arg2;
19368 }
19369 return NULL;
19370 }
19371
19372
19373 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19374 PyObject *resultobj;
19375 wxDateTime *arg1 = (wxDateTime *) 0 ;
19376 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19377 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19378 int result;
19379 bool temp2 = False ;
19380 PyObject * obj0 = 0 ;
19381 PyObject * obj1 = 0 ;
19382 char *kwnames[] = {
19383 (char *) "self",(char *) "tz", NULL
19384 };
19385
19386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19389 if (obj1) {
19390 {
19391 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19392 temp2 = True;
19393 }
19394 }
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19398
19399 wxPyEndAllowThreads(__tstate);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 resultobj = SWIG_FromInt((int)result);
19403 {
19404 if (temp2) delete arg2;
19405 }
19406 return resultobj;
19407 fail:
19408 {
19409 if (temp2) delete arg2;
19410 }
19411 return NULL;
19412 }
19413
19414
19415 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19416 PyObject *resultobj;
19417 wxDateTime *arg1 = (wxDateTime *) 0 ;
19418 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19419 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19420 int result;
19421 bool temp2 = False ;
19422 PyObject * obj0 = 0 ;
19423 PyObject * obj1 = 0 ;
19424 char *kwnames[] = {
19425 (char *) "self",(char *) "tz", NULL
19426 };
19427
19428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19431 if (obj1) {
19432 {
19433 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19434 temp2 = True;
19435 }
19436 }
19437 {
19438 PyThreadState* __tstate = wxPyBeginAllowThreads();
19439 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19440
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_FromInt((int)result);
19445 {
19446 if (temp2) delete arg2;
19447 }
19448 return resultobj;
19449 fail:
19450 {
19451 if (temp2) delete arg2;
19452 }
19453 return NULL;
19454 }
19455
19456
19457 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19458 PyObject *resultobj;
19459 wxDateTime *arg1 = (wxDateTime *) 0 ;
19460 int arg2 = (int) wxDateTime::Monday_First ;
19461 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19462 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19463 int result;
19464 bool temp3 = False ;
19465 PyObject * obj0 = 0 ;
19466 PyObject * obj1 = 0 ;
19467 PyObject * obj2 = 0 ;
19468 char *kwnames[] = {
19469 (char *) "self",(char *) "flags",(char *) "tz", NULL
19470 };
19471
19472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19475 if (obj1) {
19476 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19477 if (PyErr_Occurred()) SWIG_fail;
19478 }
19479 if (obj2) {
19480 {
19481 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19482 temp3 = True;
19483 }
19484 }
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19488
19489 wxPyEndAllowThreads(__tstate);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 }
19492 resultobj = SWIG_FromInt((int)result);
19493 {
19494 if (temp3) delete arg3;
19495 }
19496 return resultobj;
19497 fail:
19498 {
19499 if (temp3) delete arg3;
19500 }
19501 return NULL;
19502 }
19503
19504
19505 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19506 PyObject *resultobj;
19507 wxDateTime *arg1 = (wxDateTime *) 0 ;
19508 int arg2 = (int) wxDateTime::Monday_First ;
19509 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19510 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19511 int result;
19512 bool temp3 = False ;
19513 PyObject * obj0 = 0 ;
19514 PyObject * obj1 = 0 ;
19515 PyObject * obj2 = 0 ;
19516 char *kwnames[] = {
19517 (char *) "self",(char *) "flags",(char *) "tz", NULL
19518 };
19519
19520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19523 if (obj1) {
19524 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 if (obj2) {
19528 {
19529 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19530 temp3 = True;
19531 }
19532 }
19533 {
19534 PyThreadState* __tstate = wxPyBeginAllowThreads();
19535 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19536
19537 wxPyEndAllowThreads(__tstate);
19538 if (PyErr_Occurred()) SWIG_fail;
19539 }
19540 resultobj = SWIG_FromInt((int)result);
19541 {
19542 if (temp3) delete arg3;
19543 }
19544 return resultobj;
19545 fail:
19546 {
19547 if (temp3) delete arg3;
19548 }
19549 return NULL;
19550 }
19551
19552
19553 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19554 PyObject *resultobj;
19555 wxDateTime *arg1 = (wxDateTime *) 0 ;
19556 int arg2 = (int) wxDateTime::Country_Default ;
19557 bool result;
19558 PyObject * obj0 = 0 ;
19559 PyObject * obj1 = 0 ;
19560 char *kwnames[] = {
19561 (char *) "self",(char *) "country", NULL
19562 };
19563
19564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19567 if (obj1) {
19568 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19569 if (PyErr_Occurred()) SWIG_fail;
19570 }
19571 {
19572 PyThreadState* __tstate = wxPyBeginAllowThreads();
19573 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
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_IsEqualTo(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 *) "datetime", NULL
19596 };
19597
19598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",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)->IsEqualTo((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_IsEarlierThan(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 *) "datetime", NULL
19633 };
19634
19635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",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)->IsEarlierThan((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_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19662 PyObject *resultobj;
19663 wxDateTime *arg1 = (wxDateTime *) 0 ;
19664 wxDateTime *arg2 = 0 ;
19665 bool result;
19666 PyObject * obj0 = 0 ;
19667 PyObject * obj1 = 0 ;
19668 char *kwnames[] = {
19669 (char *) "self",(char *) "datetime", NULL
19670 };
19671
19672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19676 SWIG_POINTER_EXCEPTION | 0)) == -1)
19677 SWIG_fail;
19678 if (arg2 == NULL) {
19679 PyErr_SetString(PyExc_TypeError,"null reference");
19680 SWIG_fail;
19681 }
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19685
19686 wxPyEndAllowThreads(__tstate);
19687 if (PyErr_Occurred()) SWIG_fail;
19688 }
19689 {
19690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19691 }
19692 return resultobj;
19693 fail:
19694 return NULL;
19695 }
19696
19697
19698 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19699 PyObject *resultobj;
19700 wxDateTime *arg1 = (wxDateTime *) 0 ;
19701 wxDateTime *arg2 = 0 ;
19702 wxDateTime *arg3 = 0 ;
19703 bool result;
19704 PyObject * obj0 = 0 ;
19705 PyObject * obj1 = 0 ;
19706 PyObject * obj2 = 0 ;
19707 char *kwnames[] = {
19708 (char *) "self",(char *) "t1",(char *) "t2", NULL
19709 };
19710
19711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19714 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19715 SWIG_POINTER_EXCEPTION | 0)) == -1)
19716 SWIG_fail;
19717 if (arg2 == NULL) {
19718 PyErr_SetString(PyExc_TypeError,"null reference");
19719 SWIG_fail;
19720 }
19721 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19722 SWIG_POINTER_EXCEPTION | 0)) == -1)
19723 SWIG_fail;
19724 if (arg3 == NULL) {
19725 PyErr_SetString(PyExc_TypeError,"null reference");
19726 SWIG_fail;
19727 }
19728 {
19729 PyThreadState* __tstate = wxPyBeginAllowThreads();
19730 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19731
19732 wxPyEndAllowThreads(__tstate);
19733 if (PyErr_Occurred()) SWIG_fail;
19734 }
19735 {
19736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19737 }
19738 return resultobj;
19739 fail:
19740 return NULL;
19741 }
19742
19743
19744 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19745 PyObject *resultobj;
19746 wxDateTime *arg1 = (wxDateTime *) 0 ;
19747 wxDateTime *arg2 = 0 ;
19748 wxDateTime *arg3 = 0 ;
19749 bool result;
19750 PyObject * obj0 = 0 ;
19751 PyObject * obj1 = 0 ;
19752 PyObject * obj2 = 0 ;
19753 char *kwnames[] = {
19754 (char *) "self",(char *) "t1",(char *) "t2", NULL
19755 };
19756
19757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19761 SWIG_POINTER_EXCEPTION | 0)) == -1)
19762 SWIG_fail;
19763 if (arg2 == NULL) {
19764 PyErr_SetString(PyExc_TypeError,"null reference");
19765 SWIG_fail;
19766 }
19767 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19768 SWIG_POINTER_EXCEPTION | 0)) == -1)
19769 SWIG_fail;
19770 if (arg3 == NULL) {
19771 PyErr_SetString(PyExc_TypeError,"null reference");
19772 SWIG_fail;
19773 }
19774 {
19775 PyThreadState* __tstate = wxPyBeginAllowThreads();
19776 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19777
19778 wxPyEndAllowThreads(__tstate);
19779 if (PyErr_Occurred()) SWIG_fail;
19780 }
19781 {
19782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19783 }
19784 return resultobj;
19785 fail:
19786 return NULL;
19787 }
19788
19789
19790 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19791 PyObject *resultobj;
19792 wxDateTime *arg1 = (wxDateTime *) 0 ;
19793 wxDateTime *arg2 = 0 ;
19794 bool result;
19795 PyObject * obj0 = 0 ;
19796 PyObject * obj1 = 0 ;
19797 char *kwnames[] = {
19798 (char *) "self",(char *) "dt", NULL
19799 };
19800
19801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19805 SWIG_POINTER_EXCEPTION | 0)) == -1)
19806 SWIG_fail;
19807 if (arg2 == NULL) {
19808 PyErr_SetString(PyExc_TypeError,"null reference");
19809 SWIG_fail;
19810 }
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19814
19815 wxPyEndAllowThreads(__tstate);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 }
19818 {
19819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19820 }
19821 return resultobj;
19822 fail:
19823 return NULL;
19824 }
19825
19826
19827 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19828 PyObject *resultobj;
19829 wxDateTime *arg1 = (wxDateTime *) 0 ;
19830 wxDateTime *arg2 = 0 ;
19831 bool result;
19832 PyObject * obj0 = 0 ;
19833 PyObject * obj1 = 0 ;
19834 char *kwnames[] = {
19835 (char *) "self",(char *) "dt", NULL
19836 };
19837
19838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19841 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19842 SWIG_POINTER_EXCEPTION | 0)) == -1)
19843 SWIG_fail;
19844 if (arg2 == NULL) {
19845 PyErr_SetString(PyExc_TypeError,"null reference");
19846 SWIG_fail;
19847 }
19848 {
19849 PyThreadState* __tstate = wxPyBeginAllowThreads();
19850 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19851
19852 wxPyEndAllowThreads(__tstate);
19853 if (PyErr_Occurred()) SWIG_fail;
19854 }
19855 {
19856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19857 }
19858 return resultobj;
19859 fail:
19860 return NULL;
19861 }
19862
19863
19864 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19865 PyObject *resultobj;
19866 wxDateTime *arg1 = (wxDateTime *) 0 ;
19867 wxDateTime *arg2 = 0 ;
19868 wxTimeSpan *arg3 = 0 ;
19869 bool result;
19870 PyObject * obj0 = 0 ;
19871 PyObject * obj1 = 0 ;
19872 PyObject * obj2 = 0 ;
19873 char *kwnames[] = {
19874 (char *) "self",(char *) "dt",(char *) "ts", NULL
19875 };
19876
19877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19881 SWIG_POINTER_EXCEPTION | 0)) == -1)
19882 SWIG_fail;
19883 if (arg2 == NULL) {
19884 PyErr_SetString(PyExc_TypeError,"null reference");
19885 SWIG_fail;
19886 }
19887 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19888 SWIG_POINTER_EXCEPTION | 0)) == -1)
19889 SWIG_fail;
19890 if (arg3 == NULL) {
19891 PyErr_SetString(PyExc_TypeError,"null reference");
19892 SWIG_fail;
19893 }
19894 {
19895 PyThreadState* __tstate = wxPyBeginAllowThreads();
19896 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19897
19898 wxPyEndAllowThreads(__tstate);
19899 if (PyErr_Occurred()) SWIG_fail;
19900 }
19901 {
19902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19903 }
19904 return resultobj;
19905 fail:
19906 return NULL;
19907 }
19908
19909
19910 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19911 PyObject *resultobj;
19912 wxDateTime *arg1 = (wxDateTime *) 0 ;
19913 wxTimeSpan *arg2 = 0 ;
19914 wxDateTime *result;
19915 PyObject * obj0 = 0 ;
19916 PyObject * obj1 = 0 ;
19917 char *kwnames[] = {
19918 (char *) "self",(char *) "diff", NULL
19919 };
19920
19921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19925 SWIG_POINTER_EXCEPTION | 0)) == -1)
19926 SWIG_fail;
19927 if (arg2 == NULL) {
19928 PyErr_SetString(PyExc_TypeError,"null reference");
19929 SWIG_fail;
19930 }
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 {
19934 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19935 result = (wxDateTime *) &_result_ref;
19936 }
19937
19938 wxPyEndAllowThreads(__tstate);
19939 if (PyErr_Occurred()) SWIG_fail;
19940 }
19941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19942 return resultobj;
19943 fail:
19944 return NULL;
19945 }
19946
19947
19948 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19949 PyObject *resultobj;
19950 wxDateTime *arg1 = (wxDateTime *) 0 ;
19951 wxDateSpan *arg2 = 0 ;
19952 wxDateTime *result;
19953 PyObject * obj0 = 0 ;
19954 PyObject * obj1 = 0 ;
19955 char *kwnames[] = {
19956 (char *) "self",(char *) "diff", NULL
19957 };
19958
19959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19963 SWIG_POINTER_EXCEPTION | 0)) == -1)
19964 SWIG_fail;
19965 if (arg2 == NULL) {
19966 PyErr_SetString(PyExc_TypeError,"null reference");
19967 SWIG_fail;
19968 }
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 {
19972 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19973 result = (wxDateTime *) &_result_ref;
19974 }
19975
19976 wxPyEndAllowThreads(__tstate);
19977 if (PyErr_Occurred()) SWIG_fail;
19978 }
19979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19980 return resultobj;
19981 fail:
19982 return NULL;
19983 }
19984
19985
19986 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19987 PyObject *resultobj;
19988 wxDateTime *arg1 = (wxDateTime *) 0 ;
19989 wxTimeSpan *arg2 = 0 ;
19990 wxDateTime *result;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993 char *kwnames[] = {
19994 (char *) "self",(char *) "diff", NULL
19995 };
19996
19997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20000 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20001 SWIG_POINTER_EXCEPTION | 0)) == -1)
20002 SWIG_fail;
20003 if (arg2 == NULL) {
20004 PyErr_SetString(PyExc_TypeError,"null reference");
20005 SWIG_fail;
20006 }
20007 {
20008 PyThreadState* __tstate = wxPyBeginAllowThreads();
20009 {
20010 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20011 result = (wxDateTime *) &_result_ref;
20012 }
20013
20014 wxPyEndAllowThreads(__tstate);
20015 if (PyErr_Occurred()) SWIG_fail;
20016 }
20017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20018 return resultobj;
20019 fail:
20020 return NULL;
20021 }
20022
20023
20024 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20025 PyObject *resultobj;
20026 wxDateTime *arg1 = (wxDateTime *) 0 ;
20027 wxDateSpan *arg2 = 0 ;
20028 wxDateTime *result;
20029 PyObject * obj0 = 0 ;
20030 PyObject * obj1 = 0 ;
20031 char *kwnames[] = {
20032 (char *) "self",(char *) "diff", NULL
20033 };
20034
20035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20038 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20039 SWIG_POINTER_EXCEPTION | 0)) == -1)
20040 SWIG_fail;
20041 if (arg2 == NULL) {
20042 PyErr_SetString(PyExc_TypeError,"null reference");
20043 SWIG_fail;
20044 }
20045 {
20046 PyThreadState* __tstate = wxPyBeginAllowThreads();
20047 {
20048 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20049 result = (wxDateTime *) &_result_ref;
20050 }
20051
20052 wxPyEndAllowThreads(__tstate);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 }
20055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20056 return resultobj;
20057 fail:
20058 return NULL;
20059 }
20060
20061
20062 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj;
20064 wxDateTime *arg1 = (wxDateTime *) 0 ;
20065 wxDateTime *arg2 = 0 ;
20066 wxTimeSpan result;
20067 PyObject * obj0 = 0 ;
20068 PyObject * obj1 = 0 ;
20069 char *kwnames[] = {
20070 (char *) "self",(char *) "dt", NULL
20071 };
20072
20073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20076 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20077 SWIG_POINTER_EXCEPTION | 0)) == -1)
20078 SWIG_fail;
20079 if (arg2 == NULL) {
20080 PyErr_SetString(PyExc_TypeError,"null reference");
20081 SWIG_fail;
20082 }
20083 {
20084 PyThreadState* __tstate = wxPyBeginAllowThreads();
20085 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20086
20087 wxPyEndAllowThreads(__tstate);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 }
20090 {
20091 wxTimeSpan * resultptr;
20092 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20093 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20094 }
20095 return resultobj;
20096 fail:
20097 return NULL;
20098 }
20099
20100
20101 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20102 PyObject *resultobj;
20103 wxDateTime *arg1 = (wxDateTime *) 0 ;
20104 wxTimeSpan *arg2 = 0 ;
20105 wxDateTime *result;
20106 PyObject * obj0 = 0 ;
20107 PyObject * obj1 = 0 ;
20108
20109 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20112 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20113 SWIG_POINTER_EXCEPTION | 0)) == -1)
20114 SWIG_fail;
20115 if (arg2 == NULL) {
20116 PyErr_SetString(PyExc_TypeError,"null reference");
20117 SWIG_fail;
20118 }
20119 {
20120 PyThreadState* __tstate = wxPyBeginAllowThreads();
20121 {
20122 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20123 result = (wxDateTime *) &_result_ref;
20124 }
20125
20126 wxPyEndAllowThreads(__tstate);
20127 if (PyErr_Occurred()) SWIG_fail;
20128 }
20129 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20130 return resultobj;
20131 fail:
20132 return NULL;
20133 }
20134
20135
20136 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20137 PyObject *resultobj;
20138 wxDateTime *arg1 = (wxDateTime *) 0 ;
20139 wxDateSpan *arg2 = 0 ;
20140 wxDateTime *result;
20141 PyObject * obj0 = 0 ;
20142 PyObject * obj1 = 0 ;
20143
20144 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20147 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20148 SWIG_POINTER_EXCEPTION | 0)) == -1)
20149 SWIG_fail;
20150 if (arg2 == NULL) {
20151 PyErr_SetString(PyExc_TypeError,"null reference");
20152 SWIG_fail;
20153 }
20154 {
20155 PyThreadState* __tstate = wxPyBeginAllowThreads();
20156 {
20157 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20158 result = (wxDateTime *) &_result_ref;
20159 }
20160
20161 wxPyEndAllowThreads(__tstate);
20162 if (PyErr_Occurred()) SWIG_fail;
20163 }
20164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20165 return resultobj;
20166 fail:
20167 return NULL;
20168 }
20169
20170
20171 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20172 int argc;
20173 PyObject *argv[3];
20174 int ii;
20175
20176 argc = PyObject_Length(args);
20177 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20178 argv[ii] = PyTuple_GetItem(args,ii);
20179 }
20180 if (argc == 2) {
20181 int _v;
20182 {
20183 void *ptr;
20184 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20185 _v = 0;
20186 PyErr_Clear();
20187 } else {
20188 _v = 1;
20189 }
20190 }
20191 if (_v) {
20192 {
20193 void *ptr;
20194 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20195 _v = 0;
20196 PyErr_Clear();
20197 } else {
20198 _v = 1;
20199 }
20200 }
20201 if (_v) {
20202 return _wrap_DateTime___iadd____SWIG_0(self,args);
20203 }
20204 }
20205 }
20206 if (argc == 2) {
20207 int _v;
20208 {
20209 void *ptr;
20210 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20211 _v = 0;
20212 PyErr_Clear();
20213 } else {
20214 _v = 1;
20215 }
20216 }
20217 if (_v) {
20218 {
20219 void *ptr;
20220 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20221 _v = 0;
20222 PyErr_Clear();
20223 } else {
20224 _v = 1;
20225 }
20226 }
20227 if (_v) {
20228 return _wrap_DateTime___iadd____SWIG_1(self,args);
20229 }
20230 }
20231 }
20232
20233 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20234 return NULL;
20235 }
20236
20237
20238 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20239 PyObject *resultobj;
20240 wxDateTime *arg1 = (wxDateTime *) 0 ;
20241 wxTimeSpan *arg2 = 0 ;
20242 wxDateTime *result;
20243 PyObject * obj0 = 0 ;
20244 PyObject * obj1 = 0 ;
20245
20246 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20249 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20250 SWIG_POINTER_EXCEPTION | 0)) == -1)
20251 SWIG_fail;
20252 if (arg2 == NULL) {
20253 PyErr_SetString(PyExc_TypeError,"null reference");
20254 SWIG_fail;
20255 }
20256 {
20257 PyThreadState* __tstate = wxPyBeginAllowThreads();
20258 {
20259 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20260 result = (wxDateTime *) &_result_ref;
20261 }
20262
20263 wxPyEndAllowThreads(__tstate);
20264 if (PyErr_Occurred()) SWIG_fail;
20265 }
20266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20267 return resultobj;
20268 fail:
20269 return NULL;
20270 }
20271
20272
20273 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20274 PyObject *resultobj;
20275 wxDateTime *arg1 = (wxDateTime *) 0 ;
20276 wxDateSpan *arg2 = 0 ;
20277 wxDateTime *result;
20278 PyObject * obj0 = 0 ;
20279 PyObject * obj1 = 0 ;
20280
20281 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20285 SWIG_POINTER_EXCEPTION | 0)) == -1)
20286 SWIG_fail;
20287 if (arg2 == NULL) {
20288 PyErr_SetString(PyExc_TypeError,"null reference");
20289 SWIG_fail;
20290 }
20291 {
20292 PyThreadState* __tstate = wxPyBeginAllowThreads();
20293 {
20294 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20295 result = (wxDateTime *) &_result_ref;
20296 }
20297
20298 wxPyEndAllowThreads(__tstate);
20299 if (PyErr_Occurred()) SWIG_fail;
20300 }
20301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20302 return resultobj;
20303 fail:
20304 return NULL;
20305 }
20306
20307
20308 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20309 int argc;
20310 PyObject *argv[3];
20311 int ii;
20312
20313 argc = PyObject_Length(args);
20314 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20315 argv[ii] = PyTuple_GetItem(args,ii);
20316 }
20317 if (argc == 2) {
20318 int _v;
20319 {
20320 void *ptr;
20321 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20322 _v = 0;
20323 PyErr_Clear();
20324 } else {
20325 _v = 1;
20326 }
20327 }
20328 if (_v) {
20329 {
20330 void *ptr;
20331 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20332 _v = 0;
20333 PyErr_Clear();
20334 } else {
20335 _v = 1;
20336 }
20337 }
20338 if (_v) {
20339 return _wrap_DateTime___isub____SWIG_0(self,args);
20340 }
20341 }
20342 }
20343 if (argc == 2) {
20344 int _v;
20345 {
20346 void *ptr;
20347 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20348 _v = 0;
20349 PyErr_Clear();
20350 } else {
20351 _v = 1;
20352 }
20353 }
20354 if (_v) {
20355 {
20356 void *ptr;
20357 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20358 _v = 0;
20359 PyErr_Clear();
20360 } else {
20361 _v = 1;
20362 }
20363 }
20364 if (_v) {
20365 return _wrap_DateTime___isub____SWIG_1(self,args);
20366 }
20367 }
20368 }
20369
20370 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20371 return NULL;
20372 }
20373
20374
20375 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20376 PyObject *resultobj;
20377 wxDateTime *arg1 = (wxDateTime *) 0 ;
20378 wxTimeSpan *arg2 = 0 ;
20379 wxDateTime result;
20380 PyObject * obj0 = 0 ;
20381 PyObject * obj1 = 0 ;
20382
20383 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20386 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20387 SWIG_POINTER_EXCEPTION | 0)) == -1)
20388 SWIG_fail;
20389 if (arg2 == NULL) {
20390 PyErr_SetString(PyExc_TypeError,"null reference");
20391 SWIG_fail;
20392 }
20393 {
20394 PyThreadState* __tstate = wxPyBeginAllowThreads();
20395 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20396
20397 wxPyEndAllowThreads(__tstate);
20398 if (PyErr_Occurred()) SWIG_fail;
20399 }
20400 {
20401 wxDateTime * resultptr;
20402 resultptr = new wxDateTime((wxDateTime &) result);
20403 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20404 }
20405 return resultobj;
20406 fail:
20407 return NULL;
20408 }
20409
20410
20411 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20412 PyObject *resultobj;
20413 wxDateTime *arg1 = (wxDateTime *) 0 ;
20414 wxDateSpan *arg2 = 0 ;
20415 wxDateTime result;
20416 PyObject * obj0 = 0 ;
20417 PyObject * obj1 = 0 ;
20418
20419 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20422 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20423 SWIG_POINTER_EXCEPTION | 0)) == -1)
20424 SWIG_fail;
20425 if (arg2 == NULL) {
20426 PyErr_SetString(PyExc_TypeError,"null reference");
20427 SWIG_fail;
20428 }
20429 {
20430 PyThreadState* __tstate = wxPyBeginAllowThreads();
20431 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20432
20433 wxPyEndAllowThreads(__tstate);
20434 if (PyErr_Occurred()) SWIG_fail;
20435 }
20436 {
20437 wxDateTime * resultptr;
20438 resultptr = new wxDateTime((wxDateTime &) result);
20439 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20440 }
20441 return resultobj;
20442 fail:
20443 return NULL;
20444 }
20445
20446
20447 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20448 int argc;
20449 PyObject *argv[3];
20450 int ii;
20451
20452 argc = PyObject_Length(args);
20453 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20454 argv[ii] = PyTuple_GetItem(args,ii);
20455 }
20456 if (argc == 2) {
20457 int _v;
20458 {
20459 void *ptr;
20460 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20461 _v = 0;
20462 PyErr_Clear();
20463 } else {
20464 _v = 1;
20465 }
20466 }
20467 if (_v) {
20468 {
20469 void *ptr;
20470 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20471 _v = 0;
20472 PyErr_Clear();
20473 } else {
20474 _v = 1;
20475 }
20476 }
20477 if (_v) {
20478 return _wrap_DateTime___add____SWIG_0(self,args);
20479 }
20480 }
20481 }
20482 if (argc == 2) {
20483 int _v;
20484 {
20485 void *ptr;
20486 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20487 _v = 0;
20488 PyErr_Clear();
20489 } else {
20490 _v = 1;
20491 }
20492 }
20493 if (_v) {
20494 {
20495 void *ptr;
20496 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20497 _v = 0;
20498 PyErr_Clear();
20499 } else {
20500 _v = 1;
20501 }
20502 }
20503 if (_v) {
20504 return _wrap_DateTime___add____SWIG_1(self,args);
20505 }
20506 }
20507 }
20508
20509 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20510 return NULL;
20511 }
20512
20513
20514 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20515 PyObject *resultobj;
20516 wxDateTime *arg1 = (wxDateTime *) 0 ;
20517 wxDateTime *arg2 = 0 ;
20518 wxTimeSpan result;
20519 PyObject * obj0 = 0 ;
20520 PyObject * obj1 = 0 ;
20521
20522 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20526 SWIG_POINTER_EXCEPTION | 0)) == -1)
20527 SWIG_fail;
20528 if (arg2 == NULL) {
20529 PyErr_SetString(PyExc_TypeError,"null reference");
20530 SWIG_fail;
20531 }
20532 {
20533 PyThreadState* __tstate = wxPyBeginAllowThreads();
20534 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20535
20536 wxPyEndAllowThreads(__tstate);
20537 if (PyErr_Occurred()) SWIG_fail;
20538 }
20539 {
20540 wxTimeSpan * resultptr;
20541 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20542 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20543 }
20544 return resultobj;
20545 fail:
20546 return NULL;
20547 }
20548
20549
20550 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20551 PyObject *resultobj;
20552 wxDateTime *arg1 = (wxDateTime *) 0 ;
20553 wxTimeSpan *arg2 = 0 ;
20554 wxDateTime result;
20555 PyObject * obj0 = 0 ;
20556 PyObject * obj1 = 0 ;
20557
20558 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20562 SWIG_POINTER_EXCEPTION | 0)) == -1)
20563 SWIG_fail;
20564 if (arg2 == NULL) {
20565 PyErr_SetString(PyExc_TypeError,"null reference");
20566 SWIG_fail;
20567 }
20568 {
20569 PyThreadState* __tstate = wxPyBeginAllowThreads();
20570 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20571
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 {
20576 wxDateTime * resultptr;
20577 resultptr = new wxDateTime((wxDateTime &) result);
20578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20579 }
20580 return resultobj;
20581 fail:
20582 return NULL;
20583 }
20584
20585
20586 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20587 PyObject *resultobj;
20588 wxDateTime *arg1 = (wxDateTime *) 0 ;
20589 wxDateSpan *arg2 = 0 ;
20590 wxDateTime result;
20591 PyObject * obj0 = 0 ;
20592 PyObject * obj1 = 0 ;
20593
20594 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20597 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20598 SWIG_POINTER_EXCEPTION | 0)) == -1)
20599 SWIG_fail;
20600 if (arg2 == NULL) {
20601 PyErr_SetString(PyExc_TypeError,"null reference");
20602 SWIG_fail;
20603 }
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20607
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 {
20612 wxDateTime * resultptr;
20613 resultptr = new wxDateTime((wxDateTime &) result);
20614 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20615 }
20616 return resultobj;
20617 fail:
20618 return NULL;
20619 }
20620
20621
20622 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20623 int argc;
20624 PyObject *argv[3];
20625 int ii;
20626
20627 argc = PyObject_Length(args);
20628 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20629 argv[ii] = PyTuple_GetItem(args,ii);
20630 }
20631 if (argc == 2) {
20632 int _v;
20633 {
20634 void *ptr;
20635 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20636 _v = 0;
20637 PyErr_Clear();
20638 } else {
20639 _v = 1;
20640 }
20641 }
20642 if (_v) {
20643 {
20644 void *ptr;
20645 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20646 _v = 0;
20647 PyErr_Clear();
20648 } else {
20649 _v = 1;
20650 }
20651 }
20652 if (_v) {
20653 return _wrap_DateTime___sub____SWIG_0(self,args);
20654 }
20655 }
20656 }
20657 if (argc == 2) {
20658 int _v;
20659 {
20660 void *ptr;
20661 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20662 _v = 0;
20663 PyErr_Clear();
20664 } else {
20665 _v = 1;
20666 }
20667 }
20668 if (_v) {
20669 {
20670 void *ptr;
20671 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20672 _v = 0;
20673 PyErr_Clear();
20674 } else {
20675 _v = 1;
20676 }
20677 }
20678 if (_v) {
20679 return _wrap_DateTime___sub____SWIG_1(self,args);
20680 }
20681 }
20682 }
20683 if (argc == 2) {
20684 int _v;
20685 {
20686 void *ptr;
20687 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20688 _v = 0;
20689 PyErr_Clear();
20690 } else {
20691 _v = 1;
20692 }
20693 }
20694 if (_v) {
20695 {
20696 void *ptr;
20697 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20698 _v = 0;
20699 PyErr_Clear();
20700 } else {
20701 _v = 1;
20702 }
20703 }
20704 if (_v) {
20705 return _wrap_DateTime___sub____SWIG_2(self,args);
20706 }
20707 }
20708 }
20709
20710 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20711 return NULL;
20712 }
20713
20714
20715 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20716 PyObject *resultobj;
20717 wxDateTime *arg1 = (wxDateTime *) 0 ;
20718 wxDateTime *arg2 = (wxDateTime *) 0 ;
20719 bool result;
20720 PyObject * obj0 = 0 ;
20721 PyObject * obj1 = 0 ;
20722
20723 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20728 {
20729 PyThreadState* __tstate = wxPyBeginAllowThreads();
20730 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20731
20732 wxPyEndAllowThreads(__tstate);
20733 if (PyErr_Occurred()) SWIG_fail;
20734 }
20735 {
20736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20737 }
20738 return resultobj;
20739 fail:
20740 return NULL;
20741 }
20742
20743
20744 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20745 PyObject *resultobj;
20746 wxDateTime *arg1 = (wxDateTime *) 0 ;
20747 wxDateTime *arg2 = (wxDateTime *) 0 ;
20748 bool result;
20749 PyObject * obj0 = 0 ;
20750 PyObject * obj1 = 0 ;
20751
20752 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20755 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20757 {
20758 PyThreadState* __tstate = wxPyBeginAllowThreads();
20759 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20760
20761 wxPyEndAllowThreads(__tstate);
20762 if (PyErr_Occurred()) SWIG_fail;
20763 }
20764 {
20765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20766 }
20767 return resultobj;
20768 fail:
20769 return NULL;
20770 }
20771
20772
20773 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20774 PyObject *resultobj;
20775 wxDateTime *arg1 = (wxDateTime *) 0 ;
20776 wxDateTime *arg2 = (wxDateTime *) 0 ;
20777 bool result;
20778 PyObject * obj0 = 0 ;
20779 PyObject * obj1 = 0 ;
20780
20781 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20784 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20786 {
20787 PyThreadState* __tstate = wxPyBeginAllowThreads();
20788 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20789
20790 wxPyEndAllowThreads(__tstate);
20791 if (PyErr_Occurred()) SWIG_fail;
20792 }
20793 {
20794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20795 }
20796 return resultobj;
20797 fail:
20798 return NULL;
20799 }
20800
20801
20802 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20803 PyObject *resultobj;
20804 wxDateTime *arg1 = (wxDateTime *) 0 ;
20805 wxDateTime *arg2 = (wxDateTime *) 0 ;
20806 bool result;
20807 PyObject * obj0 = 0 ;
20808 PyObject * obj1 = 0 ;
20809
20810 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20815 {
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20818
20819 wxPyEndAllowThreads(__tstate);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 {
20823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20824 }
20825 return resultobj;
20826 fail:
20827 return NULL;
20828 }
20829
20830
20831 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20832 PyObject *resultobj;
20833 wxDateTime *arg1 = (wxDateTime *) 0 ;
20834 wxDateTime *arg2 = (wxDateTime *) 0 ;
20835 bool result;
20836 PyObject * obj0 = 0 ;
20837 PyObject * obj1 = 0 ;
20838
20839 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20842 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20844 {
20845 PyThreadState* __tstate = wxPyBeginAllowThreads();
20846 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20847
20848 wxPyEndAllowThreads(__tstate);
20849 if (PyErr_Occurred()) SWIG_fail;
20850 }
20851 {
20852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20853 }
20854 return resultobj;
20855 fail:
20856 return NULL;
20857 }
20858
20859
20860 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20861 PyObject *resultobj;
20862 wxDateTime *arg1 = (wxDateTime *) 0 ;
20863 wxDateTime *arg2 = (wxDateTime *) 0 ;
20864 bool result;
20865 PyObject * obj0 = 0 ;
20866 PyObject * obj1 = 0 ;
20867
20868 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20871 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20876
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 {
20881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20882 }
20883 return resultobj;
20884 fail:
20885 return NULL;
20886 }
20887
20888
20889 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20890 PyObject *resultobj;
20891 wxDateTime *arg1 = (wxDateTime *) 0 ;
20892 wxString *arg2 = 0 ;
20893 int result;
20894 bool temp2 = False ;
20895 PyObject * obj0 = 0 ;
20896 PyObject * obj1 = 0 ;
20897 char *kwnames[] = {
20898 (char *) "self",(char *) "date", NULL
20899 };
20900
20901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20904 {
20905 arg2 = wxString_in_helper(obj1);
20906 if (arg2 == NULL) SWIG_fail;
20907 temp2 = True;
20908 }
20909 {
20910 PyThreadState* __tstate = wxPyBeginAllowThreads();
20911 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20912
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 resultobj = SWIG_FromInt((int)result);
20917 {
20918 if (temp2)
20919 delete arg2;
20920 }
20921 return resultobj;
20922 fail:
20923 {
20924 if (temp2)
20925 delete arg2;
20926 }
20927 return NULL;
20928 }
20929
20930
20931 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20932 PyObject *resultobj;
20933 wxDateTime *arg1 = (wxDateTime *) 0 ;
20934 wxString *arg2 = 0 ;
20935 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20936 wxString *arg3 = (wxString *) &arg3_defvalue ;
20937 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20938 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20939 int result;
20940 bool temp2 = False ;
20941 bool temp3 = False ;
20942 PyObject * obj0 = 0 ;
20943 PyObject * obj1 = 0 ;
20944 PyObject * obj2 = 0 ;
20945 PyObject * obj3 = 0 ;
20946 char *kwnames[] = {
20947 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20948 };
20949
20950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20953 {
20954 arg2 = wxString_in_helper(obj1);
20955 if (arg2 == NULL) SWIG_fail;
20956 temp2 = True;
20957 }
20958 if (obj2) {
20959 {
20960 arg3 = wxString_in_helper(obj2);
20961 if (arg3 == NULL) SWIG_fail;
20962 temp3 = True;
20963 }
20964 }
20965 if (obj3) {
20966 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20967 SWIG_POINTER_EXCEPTION | 0)) == -1)
20968 SWIG_fail;
20969 if (arg4 == NULL) {
20970 PyErr_SetString(PyExc_TypeError,"null reference");
20971 SWIG_fail;
20972 }
20973 }
20974 {
20975 PyThreadState* __tstate = wxPyBeginAllowThreads();
20976 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20977
20978 wxPyEndAllowThreads(__tstate);
20979 if (PyErr_Occurred()) SWIG_fail;
20980 }
20981 resultobj = SWIG_FromInt((int)result);
20982 {
20983 if (temp2)
20984 delete arg2;
20985 }
20986 {
20987 if (temp3)
20988 delete arg3;
20989 }
20990 return resultobj;
20991 fail:
20992 {
20993 if (temp2)
20994 delete arg2;
20995 }
20996 {
20997 if (temp3)
20998 delete arg3;
20999 }
21000 return NULL;
21001 }
21002
21003
21004 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21005 PyObject *resultobj;
21006 wxDateTime *arg1 = (wxDateTime *) 0 ;
21007 wxString *arg2 = 0 ;
21008 int result;
21009 bool temp2 = False ;
21010 PyObject * obj0 = 0 ;
21011 PyObject * obj1 = 0 ;
21012 char *kwnames[] = {
21013 (char *) "self",(char *) "datetime", NULL
21014 };
21015
21016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21019 {
21020 arg2 = wxString_in_helper(obj1);
21021 if (arg2 == NULL) SWIG_fail;
21022 temp2 = True;
21023 }
21024 {
21025 PyThreadState* __tstate = wxPyBeginAllowThreads();
21026 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21027
21028 wxPyEndAllowThreads(__tstate);
21029 if (PyErr_Occurred()) SWIG_fail;
21030 }
21031 resultobj = SWIG_FromInt((int)result);
21032 {
21033 if (temp2)
21034 delete arg2;
21035 }
21036 return resultobj;
21037 fail:
21038 {
21039 if (temp2)
21040 delete arg2;
21041 }
21042 return NULL;
21043 }
21044
21045
21046 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21047 PyObject *resultobj;
21048 wxDateTime *arg1 = (wxDateTime *) 0 ;
21049 wxString *arg2 = 0 ;
21050 int result;
21051 bool temp2 = False ;
21052 PyObject * obj0 = 0 ;
21053 PyObject * obj1 = 0 ;
21054 char *kwnames[] = {
21055 (char *) "self",(char *) "date", NULL
21056 };
21057
21058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21061 {
21062 arg2 = wxString_in_helper(obj1);
21063 if (arg2 == NULL) SWIG_fail;
21064 temp2 = True;
21065 }
21066 {
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21069
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 resultobj = SWIG_FromInt((int)result);
21074 {
21075 if (temp2)
21076 delete arg2;
21077 }
21078 return resultobj;
21079 fail:
21080 {
21081 if (temp2)
21082 delete arg2;
21083 }
21084 return NULL;
21085 }
21086
21087
21088 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21089 PyObject *resultobj;
21090 wxDateTime *arg1 = (wxDateTime *) 0 ;
21091 wxString *arg2 = 0 ;
21092 int result;
21093 bool temp2 = False ;
21094 PyObject * obj0 = 0 ;
21095 PyObject * obj1 = 0 ;
21096 char *kwnames[] = {
21097 (char *) "self",(char *) "time", NULL
21098 };
21099
21100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21103 {
21104 arg2 = wxString_in_helper(obj1);
21105 if (arg2 == NULL) SWIG_fail;
21106 temp2 = True;
21107 }
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21111
21112 wxPyEndAllowThreads(__tstate);
21113 if (PyErr_Occurred()) SWIG_fail;
21114 }
21115 resultobj = SWIG_FromInt((int)result);
21116 {
21117 if (temp2)
21118 delete arg2;
21119 }
21120 return resultobj;
21121 fail:
21122 {
21123 if (temp2)
21124 delete arg2;
21125 }
21126 return NULL;
21127 }
21128
21129
21130 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21131 PyObject *resultobj;
21132 wxDateTime *arg1 = (wxDateTime *) 0 ;
21133 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21134 wxString *arg2 = (wxString *) &arg2_defvalue ;
21135 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21136 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21137 wxString result;
21138 bool temp2 = False ;
21139 bool temp3 = False ;
21140 PyObject * obj0 = 0 ;
21141 PyObject * obj1 = 0 ;
21142 PyObject * obj2 = 0 ;
21143 char *kwnames[] = {
21144 (char *) "self",(char *) "format",(char *) "tz", NULL
21145 };
21146
21147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21150 if (obj1) {
21151 {
21152 arg2 = wxString_in_helper(obj1);
21153 if (arg2 == NULL) SWIG_fail;
21154 temp2 = True;
21155 }
21156 }
21157 if (obj2) {
21158 {
21159 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21160 temp3 = True;
21161 }
21162 }
21163 {
21164 PyThreadState* __tstate = wxPyBeginAllowThreads();
21165 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21166
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 {
21171 #if wxUSE_UNICODE
21172 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21173 #else
21174 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21175 #endif
21176 }
21177 {
21178 if (temp2)
21179 delete arg2;
21180 }
21181 {
21182 if (temp3) delete arg3;
21183 }
21184 return resultobj;
21185 fail:
21186 {
21187 if (temp2)
21188 delete arg2;
21189 }
21190 {
21191 if (temp3) delete arg3;
21192 }
21193 return NULL;
21194 }
21195
21196
21197 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21198 PyObject *resultobj;
21199 wxDateTime *arg1 = (wxDateTime *) 0 ;
21200 wxString result;
21201 PyObject * obj0 = 0 ;
21202 char *kwnames[] = {
21203 (char *) "self", NULL
21204 };
21205
21206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21209 {
21210 PyThreadState* __tstate = wxPyBeginAllowThreads();
21211 result = ((wxDateTime const *)arg1)->FormatDate();
21212
21213 wxPyEndAllowThreads(__tstate);
21214 if (PyErr_Occurred()) SWIG_fail;
21215 }
21216 {
21217 #if wxUSE_UNICODE
21218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21219 #else
21220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21221 #endif
21222 }
21223 return resultobj;
21224 fail:
21225 return NULL;
21226 }
21227
21228
21229 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21230 PyObject *resultobj;
21231 wxDateTime *arg1 = (wxDateTime *) 0 ;
21232 wxString result;
21233 PyObject * obj0 = 0 ;
21234 char *kwnames[] = {
21235 (char *) "self", NULL
21236 };
21237
21238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21241 {
21242 PyThreadState* __tstate = wxPyBeginAllowThreads();
21243 result = ((wxDateTime const *)arg1)->FormatTime();
21244
21245 wxPyEndAllowThreads(__tstate);
21246 if (PyErr_Occurred()) SWIG_fail;
21247 }
21248 {
21249 #if wxUSE_UNICODE
21250 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21251 #else
21252 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21253 #endif
21254 }
21255 return resultobj;
21256 fail:
21257 return NULL;
21258 }
21259
21260
21261 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21262 PyObject *resultobj;
21263 wxDateTime *arg1 = (wxDateTime *) 0 ;
21264 wxString result;
21265 PyObject * obj0 = 0 ;
21266 char *kwnames[] = {
21267 (char *) "self", NULL
21268 };
21269
21270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21273 {
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 result = ((wxDateTime const *)arg1)->FormatISODate();
21276
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 {
21281 #if wxUSE_UNICODE
21282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21283 #else
21284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21285 #endif
21286 }
21287 return resultobj;
21288 fail:
21289 return NULL;
21290 }
21291
21292
21293 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj;
21295 wxDateTime *arg1 = (wxDateTime *) 0 ;
21296 wxString result;
21297 PyObject * obj0 = 0 ;
21298 char *kwnames[] = {
21299 (char *) "self", NULL
21300 };
21301
21302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21305 {
21306 PyThreadState* __tstate = wxPyBeginAllowThreads();
21307 result = ((wxDateTime const *)arg1)->FormatISOTime();
21308
21309 wxPyEndAllowThreads(__tstate);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 }
21312 {
21313 #if wxUSE_UNICODE
21314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21315 #else
21316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21317 #endif
21318 }
21319 return resultobj;
21320 fail:
21321 return NULL;
21322 }
21323
21324
21325 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21326 PyObject *obj;
21327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21328 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21329 Py_INCREF(obj);
21330 return Py_BuildValue((char *)"");
21331 }
21332 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21333 PyObject *resultobj;
21334 long arg1 ;
21335 wxTimeSpan result;
21336 PyObject * obj0 = 0 ;
21337 char *kwnames[] = {
21338 (char *) "sec", NULL
21339 };
21340
21341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21342 arg1 = (long) SWIG_AsLong(obj0);
21343 if (PyErr_Occurred()) SWIG_fail;
21344 {
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 result = wxTimeSpan::Seconds(arg1);
21347
21348 wxPyEndAllowThreads(__tstate);
21349 if (PyErr_Occurred()) SWIG_fail;
21350 }
21351 {
21352 wxTimeSpan * resultptr;
21353 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21354 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21355 }
21356 return resultobj;
21357 fail:
21358 return NULL;
21359 }
21360
21361
21362 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21363 PyObject *resultobj;
21364 wxTimeSpan result;
21365 char *kwnames[] = {
21366 NULL
21367 };
21368
21369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21370 {
21371 PyThreadState* __tstate = wxPyBeginAllowThreads();
21372 result = wxTimeSpan::Second();
21373
21374 wxPyEndAllowThreads(__tstate);
21375 if (PyErr_Occurred()) SWIG_fail;
21376 }
21377 {
21378 wxTimeSpan * resultptr;
21379 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21381 }
21382 return resultobj;
21383 fail:
21384 return NULL;
21385 }
21386
21387
21388 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21389 PyObject *resultobj;
21390 long arg1 ;
21391 wxTimeSpan result;
21392 PyObject * obj0 = 0 ;
21393 char *kwnames[] = {
21394 (char *) "min", NULL
21395 };
21396
21397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21398 arg1 = (long) SWIG_AsLong(obj0);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 {
21401 PyThreadState* __tstate = wxPyBeginAllowThreads();
21402 result = wxTimeSpan::Minutes(arg1);
21403
21404 wxPyEndAllowThreads(__tstate);
21405 if (PyErr_Occurred()) SWIG_fail;
21406 }
21407 {
21408 wxTimeSpan * resultptr;
21409 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21410 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21411 }
21412 return resultobj;
21413 fail:
21414 return NULL;
21415 }
21416
21417
21418 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21419 PyObject *resultobj;
21420 wxTimeSpan result;
21421 char *kwnames[] = {
21422 NULL
21423 };
21424
21425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21426 {
21427 PyThreadState* __tstate = wxPyBeginAllowThreads();
21428 result = wxTimeSpan::Minute();
21429
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 {
21434 wxTimeSpan * resultptr;
21435 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21436 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21437 }
21438 return resultobj;
21439 fail:
21440 return NULL;
21441 }
21442
21443
21444 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21445 PyObject *resultobj;
21446 long arg1 ;
21447 wxTimeSpan result;
21448 PyObject * obj0 = 0 ;
21449 char *kwnames[] = {
21450 (char *) "hours", NULL
21451 };
21452
21453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21454 arg1 = (long) SWIG_AsLong(obj0);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 {
21457 PyThreadState* __tstate = wxPyBeginAllowThreads();
21458 result = wxTimeSpan::Hours(arg1);
21459
21460 wxPyEndAllowThreads(__tstate);
21461 if (PyErr_Occurred()) SWIG_fail;
21462 }
21463 {
21464 wxTimeSpan * resultptr;
21465 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21466 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21467 }
21468 return resultobj;
21469 fail:
21470 return NULL;
21471 }
21472
21473
21474 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21475 PyObject *resultobj;
21476 wxTimeSpan result;
21477 char *kwnames[] = {
21478 NULL
21479 };
21480
21481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21482 {
21483 PyThreadState* __tstate = wxPyBeginAllowThreads();
21484 result = wxTimeSpan::Hour();
21485
21486 wxPyEndAllowThreads(__tstate);
21487 if (PyErr_Occurred()) SWIG_fail;
21488 }
21489 {
21490 wxTimeSpan * resultptr;
21491 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21492 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21493 }
21494 return resultobj;
21495 fail:
21496 return NULL;
21497 }
21498
21499
21500 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21501 PyObject *resultobj;
21502 long arg1 ;
21503 wxTimeSpan result;
21504 PyObject * obj0 = 0 ;
21505 char *kwnames[] = {
21506 (char *) "days", NULL
21507 };
21508
21509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21510 arg1 = (long) SWIG_AsLong(obj0);
21511 if (PyErr_Occurred()) SWIG_fail;
21512 {
21513 PyThreadState* __tstate = wxPyBeginAllowThreads();
21514 result = wxTimeSpan::Days(arg1);
21515
21516 wxPyEndAllowThreads(__tstate);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 }
21519 {
21520 wxTimeSpan * resultptr;
21521 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21522 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21523 }
21524 return resultobj;
21525 fail:
21526 return NULL;
21527 }
21528
21529
21530 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21531 PyObject *resultobj;
21532 wxTimeSpan result;
21533 char *kwnames[] = {
21534 NULL
21535 };
21536
21537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 result = wxTimeSpan::Day();
21541
21542 wxPyEndAllowThreads(__tstate);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 }
21545 {
21546 wxTimeSpan * resultptr;
21547 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21548 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21549 }
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj;
21558 long arg1 ;
21559 wxTimeSpan result;
21560 PyObject * obj0 = 0 ;
21561 char *kwnames[] = {
21562 (char *) "days", NULL
21563 };
21564
21565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21566 arg1 = (long) SWIG_AsLong(obj0);
21567 if (PyErr_Occurred()) SWIG_fail;
21568 {
21569 PyThreadState* __tstate = wxPyBeginAllowThreads();
21570 result = wxTimeSpan::Weeks(arg1);
21571
21572 wxPyEndAllowThreads(__tstate);
21573 if (PyErr_Occurred()) SWIG_fail;
21574 }
21575 {
21576 wxTimeSpan * resultptr;
21577 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21579 }
21580 return resultobj;
21581 fail:
21582 return NULL;
21583 }
21584
21585
21586 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj;
21588 wxTimeSpan result;
21589 char *kwnames[] = {
21590 NULL
21591 };
21592
21593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21594 {
21595 PyThreadState* __tstate = wxPyBeginAllowThreads();
21596 result = wxTimeSpan::Week();
21597
21598 wxPyEndAllowThreads(__tstate);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 }
21601 {
21602 wxTimeSpan * resultptr;
21603 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21604 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21605 }
21606 return resultobj;
21607 fail:
21608 return NULL;
21609 }
21610
21611
21612 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21613 PyObject *resultobj;
21614 long arg1 = (long) 0 ;
21615 long arg2 = (long) 0 ;
21616 long arg3 = (long) 0 ;
21617 long arg4 = (long) 0 ;
21618 wxTimeSpan *result;
21619 PyObject * obj0 = 0 ;
21620 PyObject * obj1 = 0 ;
21621 PyObject * obj2 = 0 ;
21622 PyObject * obj3 = 0 ;
21623 char *kwnames[] = {
21624 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21625 };
21626
21627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21628 if (obj0) {
21629 arg1 = (long) SWIG_AsLong(obj0);
21630 if (PyErr_Occurred()) SWIG_fail;
21631 }
21632 if (obj1) {
21633 arg2 = (long) SWIG_AsLong(obj1);
21634 if (PyErr_Occurred()) SWIG_fail;
21635 }
21636 if (obj2) {
21637 arg3 = (long) SWIG_AsLong(obj2);
21638 if (PyErr_Occurred()) SWIG_fail;
21639 }
21640 if (obj3) {
21641 arg4 = (long) SWIG_AsLong(obj3);
21642 if (PyErr_Occurred()) SWIG_fail;
21643 }
21644 {
21645 PyThreadState* __tstate = wxPyBeginAllowThreads();
21646 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21647
21648 wxPyEndAllowThreads(__tstate);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 }
21651 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21652 return resultobj;
21653 fail:
21654 return NULL;
21655 }
21656
21657
21658 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj;
21660 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21661 PyObject * obj0 = 0 ;
21662 char *kwnames[] = {
21663 (char *) "self", NULL
21664 };
21665
21666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21669 {
21670 PyThreadState* __tstate = wxPyBeginAllowThreads();
21671 delete arg1;
21672
21673 wxPyEndAllowThreads(__tstate);
21674 if (PyErr_Occurred()) SWIG_fail;
21675 }
21676 Py_INCREF(Py_None); resultobj = Py_None;
21677 return resultobj;
21678 fail:
21679 return NULL;
21680 }
21681
21682
21683 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21684 PyObject *resultobj;
21685 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21686 wxTimeSpan *arg2 = 0 ;
21687 wxTimeSpan *result;
21688 PyObject * obj0 = 0 ;
21689 PyObject * obj1 = 0 ;
21690 char *kwnames[] = {
21691 (char *) "self",(char *) "diff", NULL
21692 };
21693
21694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21697 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21698 SWIG_POINTER_EXCEPTION | 0)) == -1)
21699 SWIG_fail;
21700 if (arg2 == NULL) {
21701 PyErr_SetString(PyExc_TypeError,"null reference");
21702 SWIG_fail;
21703 }
21704 {
21705 PyThreadState* __tstate = wxPyBeginAllowThreads();
21706 {
21707 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21708 result = (wxTimeSpan *) &_result_ref;
21709 }
21710
21711 wxPyEndAllowThreads(__tstate);
21712 if (PyErr_Occurred()) SWIG_fail;
21713 }
21714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21715 return resultobj;
21716 fail:
21717 return NULL;
21718 }
21719
21720
21721 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21722 PyObject *resultobj;
21723 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21724 wxTimeSpan *arg2 = 0 ;
21725 wxTimeSpan *result;
21726 PyObject * obj0 = 0 ;
21727 PyObject * obj1 = 0 ;
21728 char *kwnames[] = {
21729 (char *) "self",(char *) "diff", NULL
21730 };
21731
21732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21735 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21736 SWIG_POINTER_EXCEPTION | 0)) == -1)
21737 SWIG_fail;
21738 if (arg2 == NULL) {
21739 PyErr_SetString(PyExc_TypeError,"null reference");
21740 SWIG_fail;
21741 }
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 {
21745 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21746 result = (wxTimeSpan *) &_result_ref;
21747 }
21748
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21753 return resultobj;
21754 fail:
21755 return NULL;
21756 }
21757
21758
21759 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21760 PyObject *resultobj;
21761 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21762 int arg2 ;
21763 wxTimeSpan *result;
21764 PyObject * obj0 = 0 ;
21765 PyObject * obj1 = 0 ;
21766 char *kwnames[] = {
21767 (char *) "self",(char *) "n", NULL
21768 };
21769
21770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21773 arg2 = (int) SWIG_AsInt(obj1);
21774 if (PyErr_Occurred()) SWIG_fail;
21775 {
21776 PyThreadState* __tstate = wxPyBeginAllowThreads();
21777 {
21778 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21779 result = (wxTimeSpan *) &_result_ref;
21780 }
21781
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21786 return resultobj;
21787 fail:
21788 return NULL;
21789 }
21790
21791
21792 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21793 PyObject *resultobj;
21794 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21795 wxTimeSpan *result;
21796 PyObject * obj0 = 0 ;
21797 char *kwnames[] = {
21798 (char *) "self", NULL
21799 };
21800
21801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21804 {
21805 PyThreadState* __tstate = wxPyBeginAllowThreads();
21806 {
21807 wxTimeSpan &_result_ref = (arg1)->Neg();
21808 result = (wxTimeSpan *) &_result_ref;
21809 }
21810
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21815 return resultobj;
21816 fail:
21817 return NULL;
21818 }
21819
21820
21821 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21822 PyObject *resultobj;
21823 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21824 wxTimeSpan result;
21825 PyObject * obj0 = 0 ;
21826 char *kwnames[] = {
21827 (char *) "self", NULL
21828 };
21829
21830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21833 {
21834 PyThreadState* __tstate = wxPyBeginAllowThreads();
21835 result = ((wxTimeSpan const *)arg1)->Abs();
21836
21837 wxPyEndAllowThreads(__tstate);
21838 if (PyErr_Occurred()) SWIG_fail;
21839 }
21840 {
21841 wxTimeSpan * resultptr;
21842 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21843 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21844 }
21845 return resultobj;
21846 fail:
21847 return NULL;
21848 }
21849
21850
21851 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21852 PyObject *resultobj;
21853 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21854 wxTimeSpan *arg2 = 0 ;
21855 wxTimeSpan *result;
21856 PyObject * obj0 = 0 ;
21857 PyObject * obj1 = 0 ;
21858 char *kwnames[] = {
21859 (char *) "self",(char *) "diff", NULL
21860 };
21861
21862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21865 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21866 SWIG_POINTER_EXCEPTION | 0)) == -1)
21867 SWIG_fail;
21868 if (arg2 == NULL) {
21869 PyErr_SetString(PyExc_TypeError,"null reference");
21870 SWIG_fail;
21871 }
21872 {
21873 PyThreadState* __tstate = wxPyBeginAllowThreads();
21874 {
21875 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21876 result = (wxTimeSpan *) &_result_ref;
21877 }
21878
21879 wxPyEndAllowThreads(__tstate);
21880 if (PyErr_Occurred()) SWIG_fail;
21881 }
21882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21883 return resultobj;
21884 fail:
21885 return NULL;
21886 }
21887
21888
21889 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21890 PyObject *resultobj;
21891 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21892 wxTimeSpan *arg2 = 0 ;
21893 wxTimeSpan *result;
21894 PyObject * obj0 = 0 ;
21895 PyObject * obj1 = 0 ;
21896 char *kwnames[] = {
21897 (char *) "self",(char *) "diff", NULL
21898 };
21899
21900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21903 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21904 SWIG_POINTER_EXCEPTION | 0)) == -1)
21905 SWIG_fail;
21906 if (arg2 == NULL) {
21907 PyErr_SetString(PyExc_TypeError,"null reference");
21908 SWIG_fail;
21909 }
21910 {
21911 PyThreadState* __tstate = wxPyBeginAllowThreads();
21912 {
21913 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21914 result = (wxTimeSpan *) &_result_ref;
21915 }
21916
21917 wxPyEndAllowThreads(__tstate);
21918 if (PyErr_Occurred()) SWIG_fail;
21919 }
21920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21921 return resultobj;
21922 fail:
21923 return NULL;
21924 }
21925
21926
21927 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21928 PyObject *resultobj;
21929 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21930 int arg2 ;
21931 wxTimeSpan *result;
21932 PyObject * obj0 = 0 ;
21933 PyObject * obj1 = 0 ;
21934 char *kwnames[] = {
21935 (char *) "self",(char *) "n", NULL
21936 };
21937
21938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21941 arg2 = (int) SWIG_AsInt(obj1);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 {
21944 PyThreadState* __tstate = wxPyBeginAllowThreads();
21945 {
21946 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21947 result = (wxTimeSpan *) &_result_ref;
21948 }
21949
21950 wxPyEndAllowThreads(__tstate);
21951 if (PyErr_Occurred()) SWIG_fail;
21952 }
21953 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21954 return resultobj;
21955 fail:
21956 return NULL;
21957 }
21958
21959
21960 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21961 PyObject *resultobj;
21962 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21963 wxTimeSpan *result;
21964 PyObject * obj0 = 0 ;
21965 char *kwnames[] = {
21966 (char *) "self", NULL
21967 };
21968
21969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21972 {
21973 PyThreadState* __tstate = wxPyBeginAllowThreads();
21974 {
21975 wxTimeSpan &_result_ref = (arg1)->operator -();
21976 result = (wxTimeSpan *) &_result_ref;
21977 }
21978
21979 wxPyEndAllowThreads(__tstate);
21980 if (PyErr_Occurred()) SWIG_fail;
21981 }
21982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21983 return resultobj;
21984 fail:
21985 return NULL;
21986 }
21987
21988
21989 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21990 PyObject *resultobj;
21991 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21992 wxTimeSpan *arg2 = 0 ;
21993 wxTimeSpan result;
21994 PyObject * obj0 = 0 ;
21995 PyObject * obj1 = 0 ;
21996 char *kwnames[] = {
21997 (char *) "self",(char *) "other", NULL
21998 };
21999
22000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22004 SWIG_POINTER_EXCEPTION | 0)) == -1)
22005 SWIG_fail;
22006 if (arg2 == NULL) {
22007 PyErr_SetString(PyExc_TypeError,"null reference");
22008 SWIG_fail;
22009 }
22010 {
22011 PyThreadState* __tstate = wxPyBeginAllowThreads();
22012 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22013
22014 wxPyEndAllowThreads(__tstate);
22015 if (PyErr_Occurred()) SWIG_fail;
22016 }
22017 {
22018 wxTimeSpan * resultptr;
22019 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22020 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22021 }
22022 return resultobj;
22023 fail:
22024 return NULL;
22025 }
22026
22027
22028 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22029 PyObject *resultobj;
22030 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22031 wxTimeSpan *arg2 = 0 ;
22032 wxTimeSpan 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___sub__",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)
22044 SWIG_fail;
22045 if (arg2 == NULL) {
22046 PyErr_SetString(PyExc_TypeError,"null reference");
22047 SWIG_fail;
22048 }
22049 {
22050 PyThreadState* __tstate = wxPyBeginAllowThreads();
22051 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22052
22053 wxPyEndAllowThreads(__tstate);
22054 if (PyErr_Occurred()) SWIG_fail;
22055 }
22056 {
22057 wxTimeSpan * resultptr;
22058 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22059 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22060 }
22061 return resultobj;
22062 fail:
22063 return NULL;
22064 }
22065
22066
22067 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22068 PyObject *resultobj;
22069 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22070 int arg2 ;
22071 wxTimeSpan result;
22072 PyObject * obj0 = 0 ;
22073 PyObject * obj1 = 0 ;
22074 char *kwnames[] = {
22075 (char *) "self",(char *) "n", NULL
22076 };
22077
22078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22081 arg2 = (int) SWIG_AsInt(obj1);
22082 if (PyErr_Occurred()) SWIG_fail;
22083 {
22084 PyThreadState* __tstate = wxPyBeginAllowThreads();
22085 result = wxTimeSpan___mul__(arg1,arg2);
22086
22087 wxPyEndAllowThreads(__tstate);
22088 if (PyErr_Occurred()) SWIG_fail;
22089 }
22090 {
22091 wxTimeSpan * resultptr;
22092 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22093 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22094 }
22095 return resultobj;
22096 fail:
22097 return NULL;
22098 }
22099
22100
22101 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22102 PyObject *resultobj;
22103 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22104 int arg2 ;
22105 wxTimeSpan result;
22106 PyObject * obj0 = 0 ;
22107 PyObject * obj1 = 0 ;
22108 char *kwnames[] = {
22109 (char *) "self",(char *) "n", NULL
22110 };
22111
22112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22115 arg2 = (int) SWIG_AsInt(obj1);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = wxTimeSpan___rmul__(arg1,arg2);
22120
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 {
22125 wxTimeSpan * resultptr;
22126 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22127 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22128 }
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj;
22137 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22138 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22139 bool result;
22140 PyObject * obj0 = 0 ;
22141 PyObject * obj1 = 0 ;
22142 char *kwnames[] = {
22143 (char *) "self",(char *) "other", NULL
22144 };
22145
22146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22151 {
22152 PyThreadState* __tstate = wxPyBeginAllowThreads();
22153 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22154
22155 wxPyEndAllowThreads(__tstate);
22156 if (PyErr_Occurred()) SWIG_fail;
22157 }
22158 {
22159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22160 }
22161 return resultobj;
22162 fail:
22163 return NULL;
22164 }
22165
22166
22167 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj;
22169 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22170 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22171 bool result;
22172 PyObject * obj0 = 0 ;
22173 PyObject * obj1 = 0 ;
22174 char *kwnames[] = {
22175 (char *) "self",(char *) "other", NULL
22176 };
22177
22178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22181 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22183 {
22184 PyThreadState* __tstate = wxPyBeginAllowThreads();
22185 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22186
22187 wxPyEndAllowThreads(__tstate);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 {
22191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22192 }
22193 return resultobj;
22194 fail:
22195 return NULL;
22196 }
22197
22198
22199 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22200 PyObject *resultobj;
22201 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22202 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22203 bool result;
22204 PyObject * obj0 = 0 ;
22205 PyObject * obj1 = 0 ;
22206 char *kwnames[] = {
22207 (char *) "self",(char *) "other", NULL
22208 };
22209
22210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22213 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22215 {
22216 PyThreadState* __tstate = wxPyBeginAllowThreads();
22217 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22218
22219 wxPyEndAllowThreads(__tstate);
22220 if (PyErr_Occurred()) SWIG_fail;
22221 }
22222 {
22223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22224 }
22225 return resultobj;
22226 fail:
22227 return NULL;
22228 }
22229
22230
22231 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22232 PyObject *resultobj;
22233 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22234 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22235 bool result;
22236 PyObject * obj0 = 0 ;
22237 PyObject * obj1 = 0 ;
22238 char *kwnames[] = {
22239 (char *) "self",(char *) "other", NULL
22240 };
22241
22242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22245 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22247 {
22248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22249 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22250
22251 wxPyEndAllowThreads(__tstate);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 }
22254 {
22255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22256 }
22257 return resultobj;
22258 fail:
22259 return NULL;
22260 }
22261
22262
22263 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22264 PyObject *resultobj;
22265 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22266 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22267 bool result;
22268 PyObject * obj0 = 0 ;
22269 PyObject * obj1 = 0 ;
22270 char *kwnames[] = {
22271 (char *) "self",(char *) "other", NULL
22272 };
22273
22274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22282
22283 wxPyEndAllowThreads(__tstate);
22284 if (PyErr_Occurred()) SWIG_fail;
22285 }
22286 {
22287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22288 }
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj;
22297 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22298 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22299 bool result;
22300 PyObject * obj0 = 0 ;
22301 PyObject * obj1 = 0 ;
22302 char *kwnames[] = {
22303 (char *) "self",(char *) "other", NULL
22304 };
22305
22306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22314
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 {
22319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22320 }
22321 return resultobj;
22322 fail:
22323 return NULL;
22324 }
22325
22326
22327 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj;
22329 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22330 bool result;
22331 PyObject * obj0 = 0 ;
22332 char *kwnames[] = {
22333 (char *) "self", NULL
22334 };
22335
22336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22339 {
22340 PyThreadState* __tstate = wxPyBeginAllowThreads();
22341 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22342
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 {
22347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22348 }
22349 return resultobj;
22350 fail:
22351 return NULL;
22352 }
22353
22354
22355 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22356 PyObject *resultobj;
22357 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22358 bool result;
22359 PyObject * obj0 = 0 ;
22360 char *kwnames[] = {
22361 (char *) "self", NULL
22362 };
22363
22364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22367 {
22368 PyThreadState* __tstate = wxPyBeginAllowThreads();
22369 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22370
22371 wxPyEndAllowThreads(__tstate);
22372 if (PyErr_Occurred()) SWIG_fail;
22373 }
22374 {
22375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22376 }
22377 return resultobj;
22378 fail:
22379 return NULL;
22380 }
22381
22382
22383 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22384 PyObject *resultobj;
22385 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22386 bool result;
22387 PyObject * obj0 = 0 ;
22388 char *kwnames[] = {
22389 (char *) "self", NULL
22390 };
22391
22392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22395 {
22396 PyThreadState* __tstate = wxPyBeginAllowThreads();
22397 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22398
22399 wxPyEndAllowThreads(__tstate);
22400 if (PyErr_Occurred()) SWIG_fail;
22401 }
22402 {
22403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22404 }
22405 return resultobj;
22406 fail:
22407 return NULL;
22408 }
22409
22410
22411 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22412 PyObject *resultobj;
22413 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22414 wxTimeSpan *arg2 = 0 ;
22415 bool result;
22416 PyObject * obj0 = 0 ;
22417 PyObject * obj1 = 0 ;
22418 char *kwnames[] = {
22419 (char *) "self",(char *) "ts", NULL
22420 };
22421
22422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22426 SWIG_POINTER_EXCEPTION | 0)) == -1)
22427 SWIG_fail;
22428 if (arg2 == NULL) {
22429 PyErr_SetString(PyExc_TypeError,"null reference");
22430 SWIG_fail;
22431 }
22432 {
22433 PyThreadState* __tstate = wxPyBeginAllowThreads();
22434 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22435
22436 wxPyEndAllowThreads(__tstate);
22437 if (PyErr_Occurred()) SWIG_fail;
22438 }
22439 {
22440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22441 }
22442 return resultobj;
22443 fail:
22444 return NULL;
22445 }
22446
22447
22448 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22449 PyObject *resultobj;
22450 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22451 wxTimeSpan *arg2 = 0 ;
22452 bool result;
22453 PyObject * obj0 = 0 ;
22454 PyObject * obj1 = 0 ;
22455 char *kwnames[] = {
22456 (char *) "self",(char *) "ts", NULL
22457 };
22458
22459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22463 SWIG_POINTER_EXCEPTION | 0)) == -1)
22464 SWIG_fail;
22465 if (arg2 == NULL) {
22466 PyErr_SetString(PyExc_TypeError,"null reference");
22467 SWIG_fail;
22468 }
22469 {
22470 PyThreadState* __tstate = wxPyBeginAllowThreads();
22471 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22472
22473 wxPyEndAllowThreads(__tstate);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 }
22476 {
22477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22478 }
22479 return resultobj;
22480 fail:
22481 return NULL;
22482 }
22483
22484
22485 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22486 PyObject *resultobj;
22487 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22488 wxTimeSpan *arg2 = 0 ;
22489 bool result;
22490 PyObject * obj0 = 0 ;
22491 PyObject * obj1 = 0 ;
22492 char *kwnames[] = {
22493 (char *) "self",(char *) "t", NULL
22494 };
22495
22496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22500 SWIG_POINTER_EXCEPTION | 0)) == -1)
22501 SWIG_fail;
22502 if (arg2 == NULL) {
22503 PyErr_SetString(PyExc_TypeError,"null reference");
22504 SWIG_fail;
22505 }
22506 {
22507 PyThreadState* __tstate = wxPyBeginAllowThreads();
22508 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22509
22510 wxPyEndAllowThreads(__tstate);
22511 if (PyErr_Occurred()) SWIG_fail;
22512 }
22513 {
22514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22515 }
22516 return resultobj;
22517 fail:
22518 return NULL;
22519 }
22520
22521
22522 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22523 PyObject *resultobj;
22524 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22525 int result;
22526 PyObject * obj0 = 0 ;
22527 char *kwnames[] = {
22528 (char *) "self", NULL
22529 };
22530
22531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22534 {
22535 PyThreadState* __tstate = wxPyBeginAllowThreads();
22536 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22537
22538 wxPyEndAllowThreads(__tstate);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 }
22541 resultobj = SWIG_FromInt((int)result);
22542 return resultobj;
22543 fail:
22544 return NULL;
22545 }
22546
22547
22548 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22549 PyObject *resultobj;
22550 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22551 int result;
22552 PyObject * obj0 = 0 ;
22553 char *kwnames[] = {
22554 (char *) "self", NULL
22555 };
22556
22557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22560 {
22561 PyThreadState* __tstate = wxPyBeginAllowThreads();
22562 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22563
22564 wxPyEndAllowThreads(__tstate);
22565 if (PyErr_Occurred()) SWIG_fail;
22566 }
22567 resultobj = SWIG_FromInt((int)result);
22568 return resultobj;
22569 fail:
22570 return NULL;
22571 }
22572
22573
22574 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22575 PyObject *resultobj;
22576 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22577 int result;
22578 PyObject * obj0 = 0 ;
22579 char *kwnames[] = {
22580 (char *) "self", NULL
22581 };
22582
22583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22586 {
22587 PyThreadState* __tstate = wxPyBeginAllowThreads();
22588 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22589
22590 wxPyEndAllowThreads(__tstate);
22591 if (PyErr_Occurred()) SWIG_fail;
22592 }
22593 resultobj = SWIG_FromInt((int)result);
22594 return resultobj;
22595 fail:
22596 return NULL;
22597 }
22598
22599
22600 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22601 PyObject *resultobj;
22602 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22603 int result;
22604 PyObject * obj0 = 0 ;
22605 char *kwnames[] = {
22606 (char *) "self", NULL
22607 };
22608
22609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22612 {
22613 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22615
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 resultobj = SWIG_FromInt((int)result);
22620 return resultobj;
22621 fail:
22622 return NULL;
22623 }
22624
22625
22626 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22627 PyObject *resultobj;
22628 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22629 wxLongLong result;
22630 PyObject * obj0 = 0 ;
22631 char *kwnames[] = {
22632 (char *) "self", NULL
22633 };
22634
22635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22638 {
22639 PyThreadState* __tstate = wxPyBeginAllowThreads();
22640 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22641
22642 wxPyEndAllowThreads(__tstate);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 {
22646 PyObject *hi, *lo, *shifter, *shifted;
22647 hi = PyLong_FromLong( (&result)->GetHi() );
22648 lo = PyLong_FromLong( (&result)->GetLo() );
22649 shifter = PyLong_FromLong(32);
22650 shifted = PyNumber_Lshift(hi, shifter);
22651 resultobj = PyNumber_Or(shifted, lo);
22652 Py_DECREF(hi);
22653 Py_DECREF(lo);
22654 Py_DECREF(shifter);
22655 Py_DECREF(shifted);
22656 }
22657 return resultobj;
22658 fail:
22659 return NULL;
22660 }
22661
22662
22663 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22664 PyObject *resultobj;
22665 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22666 wxLongLong result;
22667 PyObject * obj0 = 0 ;
22668 char *kwnames[] = {
22669 (char *) "self", NULL
22670 };
22671
22672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22675 {
22676 PyThreadState* __tstate = wxPyBeginAllowThreads();
22677 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22678
22679 wxPyEndAllowThreads(__tstate);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 {
22683 PyObject *hi, *lo, *shifter, *shifted;
22684 hi = PyLong_FromLong( (&result)->GetHi() );
22685 lo = PyLong_FromLong( (&result)->GetLo() );
22686 shifter = PyLong_FromLong(32);
22687 shifted = PyNumber_Lshift(hi, shifter);
22688 resultobj = PyNumber_Or(shifted, lo);
22689 Py_DECREF(hi);
22690 Py_DECREF(lo);
22691 Py_DECREF(shifter);
22692 Py_DECREF(shifted);
22693 }
22694 return resultobj;
22695 fail:
22696 return NULL;
22697 }
22698
22699
22700 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22701 PyObject *resultobj;
22702 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22703 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22704 wxString *arg2 = (wxString *) &arg2_defvalue ;
22705 wxString result;
22706 bool temp2 = False ;
22707 PyObject * obj0 = 0 ;
22708 PyObject * obj1 = 0 ;
22709 char *kwnames[] = {
22710 (char *) "self",(char *) "format", NULL
22711 };
22712
22713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22716 if (obj1) {
22717 {
22718 arg2 = wxString_in_helper(obj1);
22719 if (arg2 == NULL) SWIG_fail;
22720 temp2 = True;
22721 }
22722 }
22723 {
22724 PyThreadState* __tstate = wxPyBeginAllowThreads();
22725 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22726
22727 wxPyEndAllowThreads(__tstate);
22728 if (PyErr_Occurred()) SWIG_fail;
22729 }
22730 {
22731 #if wxUSE_UNICODE
22732 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22733 #else
22734 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22735 #endif
22736 }
22737 {
22738 if (temp2)
22739 delete arg2;
22740 }
22741 return resultobj;
22742 fail:
22743 {
22744 if (temp2)
22745 delete arg2;
22746 }
22747 return NULL;
22748 }
22749
22750
22751 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22752 PyObject *obj;
22753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22754 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22755 Py_INCREF(obj);
22756 return Py_BuildValue((char *)"");
22757 }
22758 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22759 PyObject *resultobj;
22760 int arg1 = (int) 0 ;
22761 int arg2 = (int) 0 ;
22762 int arg3 = (int) 0 ;
22763 int arg4 = (int) 0 ;
22764 wxDateSpan *result;
22765 PyObject * obj0 = 0 ;
22766 PyObject * obj1 = 0 ;
22767 PyObject * obj2 = 0 ;
22768 PyObject * obj3 = 0 ;
22769 char *kwnames[] = {
22770 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22771 };
22772
22773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22774 if (obj0) {
22775 arg1 = (int) SWIG_AsInt(obj0);
22776 if (PyErr_Occurred()) SWIG_fail;
22777 }
22778 if (obj1) {
22779 arg2 = (int) SWIG_AsInt(obj1);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 if (obj2) {
22783 arg3 = (int) SWIG_AsInt(obj2);
22784 if (PyErr_Occurred()) SWIG_fail;
22785 }
22786 if (obj3) {
22787 arg4 = (int) SWIG_AsInt(obj3);
22788 if (PyErr_Occurred()) SWIG_fail;
22789 }
22790 {
22791 PyThreadState* __tstate = wxPyBeginAllowThreads();
22792 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22793
22794 wxPyEndAllowThreads(__tstate);
22795 if (PyErr_Occurred()) SWIG_fail;
22796 }
22797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22798 return resultobj;
22799 fail:
22800 return NULL;
22801 }
22802
22803
22804 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22805 PyObject *resultobj;
22806 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22807 PyObject * obj0 = 0 ;
22808 char *kwnames[] = {
22809 (char *) "self", NULL
22810 };
22811
22812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22815 {
22816 PyThreadState* __tstate = wxPyBeginAllowThreads();
22817 delete arg1;
22818
22819 wxPyEndAllowThreads(__tstate);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 Py_INCREF(Py_None); resultobj = Py_None;
22823 return resultobj;
22824 fail:
22825 return NULL;
22826 }
22827
22828
22829 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22830 PyObject *resultobj;
22831 int arg1 ;
22832 wxDateSpan result;
22833 PyObject * obj0 = 0 ;
22834 char *kwnames[] = {
22835 (char *) "days", NULL
22836 };
22837
22838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22839 arg1 = (int) SWIG_AsInt(obj0);
22840 if (PyErr_Occurred()) SWIG_fail;
22841 {
22842 PyThreadState* __tstate = wxPyBeginAllowThreads();
22843 result = wxDateSpan::Days(arg1);
22844
22845 wxPyEndAllowThreads(__tstate);
22846 if (PyErr_Occurred()) SWIG_fail;
22847 }
22848 {
22849 wxDateSpan * resultptr;
22850 resultptr = new wxDateSpan((wxDateSpan &) result);
22851 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22852 }
22853 return resultobj;
22854 fail:
22855 return NULL;
22856 }
22857
22858
22859 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22860 PyObject *resultobj;
22861 wxDateSpan result;
22862 char *kwnames[] = {
22863 NULL
22864 };
22865
22866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22867 {
22868 PyThreadState* __tstate = wxPyBeginAllowThreads();
22869 result = wxDateSpan::Day();
22870
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 {
22875 wxDateSpan * resultptr;
22876 resultptr = new wxDateSpan((wxDateSpan &) result);
22877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22878 }
22879 return resultobj;
22880 fail:
22881 return NULL;
22882 }
22883
22884
22885 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22886 PyObject *resultobj;
22887 int arg1 ;
22888 wxDateSpan result;
22889 PyObject * obj0 = 0 ;
22890 char *kwnames[] = {
22891 (char *) "weeks", NULL
22892 };
22893
22894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22895 arg1 = (int) SWIG_AsInt(obj0);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 {
22898 PyThreadState* __tstate = wxPyBeginAllowThreads();
22899 result = wxDateSpan::Weeks(arg1);
22900
22901 wxPyEndAllowThreads(__tstate);
22902 if (PyErr_Occurred()) SWIG_fail;
22903 }
22904 {
22905 wxDateSpan * resultptr;
22906 resultptr = new wxDateSpan((wxDateSpan &) result);
22907 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22908 }
22909 return resultobj;
22910 fail:
22911 return NULL;
22912 }
22913
22914
22915 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22916 PyObject *resultobj;
22917 wxDateSpan result;
22918 char *kwnames[] = {
22919 NULL
22920 };
22921
22922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22923 {
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 result = wxDateSpan::Week();
22926
22927 wxPyEndAllowThreads(__tstate);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 }
22930 {
22931 wxDateSpan * resultptr;
22932 resultptr = new wxDateSpan((wxDateSpan &) result);
22933 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22934 }
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22942 PyObject *resultobj;
22943 int arg1 ;
22944 wxDateSpan result;
22945 PyObject * obj0 = 0 ;
22946 char *kwnames[] = {
22947 (char *) "mon", NULL
22948 };
22949
22950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22951 arg1 = (int) SWIG_AsInt(obj0);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 {
22954 PyThreadState* __tstate = wxPyBeginAllowThreads();
22955 result = wxDateSpan::Months(arg1);
22956
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 {
22961 wxDateSpan * resultptr;
22962 resultptr = new wxDateSpan((wxDateSpan &) result);
22963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22964 }
22965 return resultobj;
22966 fail:
22967 return NULL;
22968 }
22969
22970
22971 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22972 PyObject *resultobj;
22973 wxDateSpan result;
22974 char *kwnames[] = {
22975 NULL
22976 };
22977
22978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 result = wxDateSpan::Month();
22982
22983 wxPyEndAllowThreads(__tstate);
22984 if (PyErr_Occurred()) SWIG_fail;
22985 }
22986 {
22987 wxDateSpan * resultptr;
22988 resultptr = new wxDateSpan((wxDateSpan &) result);
22989 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22990 }
22991 return resultobj;
22992 fail:
22993 return NULL;
22994 }
22995
22996
22997 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22998 PyObject *resultobj;
22999 int arg1 ;
23000 wxDateSpan result;
23001 PyObject * obj0 = 0 ;
23002 char *kwnames[] = {
23003 (char *) "years", NULL
23004 };
23005
23006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23007 arg1 = (int) SWIG_AsInt(obj0);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 {
23010 PyThreadState* __tstate = wxPyBeginAllowThreads();
23011 result = wxDateSpan::Years(arg1);
23012
23013 wxPyEndAllowThreads(__tstate);
23014 if (PyErr_Occurred()) SWIG_fail;
23015 }
23016 {
23017 wxDateSpan * resultptr;
23018 resultptr = new wxDateSpan((wxDateSpan &) result);
23019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23020 }
23021 return resultobj;
23022 fail:
23023 return NULL;
23024 }
23025
23026
23027 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
23028 PyObject *resultobj;
23029 wxDateSpan result;
23030 char *kwnames[] = {
23031 NULL
23032 };
23033
23034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 result = wxDateSpan::Year();
23038
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 {
23043 wxDateSpan * resultptr;
23044 resultptr = new wxDateSpan((wxDateSpan &) result);
23045 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23046 }
23047 return resultobj;
23048 fail:
23049 return NULL;
23050 }
23051
23052
23053 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23054 PyObject *resultobj;
23055 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23056 int arg2 ;
23057 wxDateSpan *result;
23058 PyObject * obj0 = 0 ;
23059 PyObject * obj1 = 0 ;
23060 char *kwnames[] = {
23061 (char *) "self",(char *) "n", NULL
23062 };
23063
23064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23067 arg2 = (int) SWIG_AsInt(obj1);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 {
23070 PyThreadState* __tstate = wxPyBeginAllowThreads();
23071 {
23072 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23073 result = (wxDateSpan *) &_result_ref;
23074 }
23075
23076 wxPyEndAllowThreads(__tstate);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 }
23079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23080 return resultobj;
23081 fail:
23082 return NULL;
23083 }
23084
23085
23086 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23087 PyObject *resultobj;
23088 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23089 int arg2 ;
23090 wxDateSpan *result;
23091 PyObject * obj0 = 0 ;
23092 PyObject * obj1 = 0 ;
23093 char *kwnames[] = {
23094 (char *) "self",(char *) "n", NULL
23095 };
23096
23097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23100 arg2 = (int) SWIG_AsInt(obj1);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 {
23103 PyThreadState* __tstate = wxPyBeginAllowThreads();
23104 {
23105 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23106 result = (wxDateSpan *) &_result_ref;
23107 }
23108
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23113 return resultobj;
23114 fail:
23115 return NULL;
23116 }
23117
23118
23119 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23120 PyObject *resultobj;
23121 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23122 int arg2 ;
23123 wxDateSpan *result;
23124 PyObject * obj0 = 0 ;
23125 PyObject * obj1 = 0 ;
23126 char *kwnames[] = {
23127 (char *) "self",(char *) "n", NULL
23128 };
23129
23130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23133 arg2 = (int) SWIG_AsInt(obj1);
23134 if (PyErr_Occurred()) SWIG_fail;
23135 {
23136 PyThreadState* __tstate = wxPyBeginAllowThreads();
23137 {
23138 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23139 result = (wxDateSpan *) &_result_ref;
23140 }
23141
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23146 return resultobj;
23147 fail:
23148 return NULL;
23149 }
23150
23151
23152 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23153 PyObject *resultobj;
23154 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23155 int arg2 ;
23156 wxDateSpan *result;
23157 PyObject * obj0 = 0 ;
23158 PyObject * obj1 = 0 ;
23159 char *kwnames[] = {
23160 (char *) "self",(char *) "n", NULL
23161 };
23162
23163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23166 arg2 = (int) SWIG_AsInt(obj1);
23167 if (PyErr_Occurred()) SWIG_fail;
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 {
23171 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23172 result = (wxDateSpan *) &_result_ref;
23173 }
23174
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23179 return resultobj;
23180 fail:
23181 return NULL;
23182 }
23183
23184
23185 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj;
23187 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23188 int result;
23189 PyObject * obj0 = 0 ;
23190 char *kwnames[] = {
23191 (char *) "self", NULL
23192 };
23193
23194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23197 {
23198 PyThreadState* __tstate = wxPyBeginAllowThreads();
23199 result = (int)((wxDateSpan const *)arg1)->GetYears();
23200
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_FromInt((int)result);
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj;
23213 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23214 int result;
23215 PyObject * obj0 = 0 ;
23216 char *kwnames[] = {
23217 (char *) "self", NULL
23218 };
23219
23220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23223 {
23224 PyThreadState* __tstate = wxPyBeginAllowThreads();
23225 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23226
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 resultobj = SWIG_FromInt((int)result);
23231 return resultobj;
23232 fail:
23233 return NULL;
23234 }
23235
23236
23237 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23238 PyObject *resultobj;
23239 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23240 int result;
23241 PyObject * obj0 = 0 ;
23242 char *kwnames[] = {
23243 (char *) "self", NULL
23244 };
23245
23246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23249 {
23250 PyThreadState* __tstate = wxPyBeginAllowThreads();
23251 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23252
23253 wxPyEndAllowThreads(__tstate);
23254 if (PyErr_Occurred()) SWIG_fail;
23255 }
23256 resultobj = SWIG_FromInt((int)result);
23257 return resultobj;
23258 fail:
23259 return NULL;
23260 }
23261
23262
23263 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23264 PyObject *resultobj;
23265 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23266 int result;
23267 PyObject * obj0 = 0 ;
23268 char *kwnames[] = {
23269 (char *) "self", NULL
23270 };
23271
23272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23275 {
23276 PyThreadState* __tstate = wxPyBeginAllowThreads();
23277 result = (int)((wxDateSpan const *)arg1)->GetDays();
23278
23279 wxPyEndAllowThreads(__tstate);
23280 if (PyErr_Occurred()) SWIG_fail;
23281 }
23282 resultobj = SWIG_FromInt((int)result);
23283 return resultobj;
23284 fail:
23285 return NULL;
23286 }
23287
23288
23289 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23290 PyObject *resultobj;
23291 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23292 int result;
23293 PyObject * obj0 = 0 ;
23294 char *kwnames[] = {
23295 (char *) "self", NULL
23296 };
23297
23298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23301 {
23302 PyThreadState* __tstate = wxPyBeginAllowThreads();
23303 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23304
23305 wxPyEndAllowThreads(__tstate);
23306 if (PyErr_Occurred()) SWIG_fail;
23307 }
23308 resultobj = SWIG_FromInt((int)result);
23309 return resultobj;
23310 fail:
23311 return NULL;
23312 }
23313
23314
23315 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23316 PyObject *resultobj;
23317 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23318 wxDateSpan *arg2 = 0 ;
23319 wxDateSpan *result;
23320 PyObject * obj0 = 0 ;
23321 PyObject * obj1 = 0 ;
23322 char *kwnames[] = {
23323 (char *) "self",(char *) "other", NULL
23324 };
23325
23326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23330 SWIG_POINTER_EXCEPTION | 0)) == -1)
23331 SWIG_fail;
23332 if (arg2 == NULL) {
23333 PyErr_SetString(PyExc_TypeError,"null reference");
23334 SWIG_fail;
23335 }
23336 {
23337 PyThreadState* __tstate = wxPyBeginAllowThreads();
23338 {
23339 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23340 result = (wxDateSpan *) &_result_ref;
23341 }
23342
23343 wxPyEndAllowThreads(__tstate);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 }
23346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23347 return resultobj;
23348 fail:
23349 return NULL;
23350 }
23351
23352
23353 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23354 PyObject *resultobj;
23355 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23356 wxDateSpan *arg2 = 0 ;
23357 wxDateSpan *result;
23358 PyObject * obj0 = 0 ;
23359 PyObject * obj1 = 0 ;
23360 char *kwnames[] = {
23361 (char *) "self",(char *) "other", NULL
23362 };
23363
23364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23367 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23368 SWIG_POINTER_EXCEPTION | 0)) == -1)
23369 SWIG_fail;
23370 if (arg2 == NULL) {
23371 PyErr_SetString(PyExc_TypeError,"null reference");
23372 SWIG_fail;
23373 }
23374 {
23375 PyThreadState* __tstate = wxPyBeginAllowThreads();
23376 {
23377 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23378 result = (wxDateSpan *) &_result_ref;
23379 }
23380
23381 wxPyEndAllowThreads(__tstate);
23382 if (PyErr_Occurred()) SWIG_fail;
23383 }
23384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23385 return resultobj;
23386 fail:
23387 return NULL;
23388 }
23389
23390
23391 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23392 PyObject *resultobj;
23393 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23394 wxDateSpan *result;
23395 PyObject * obj0 = 0 ;
23396 char *kwnames[] = {
23397 (char *) "self", NULL
23398 };
23399
23400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23403 {
23404 PyThreadState* __tstate = wxPyBeginAllowThreads();
23405 {
23406 wxDateSpan &_result_ref = (arg1)->Neg();
23407 result = (wxDateSpan *) &_result_ref;
23408 }
23409
23410 wxPyEndAllowThreads(__tstate);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 }
23413 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23414 return resultobj;
23415 fail:
23416 return NULL;
23417 }
23418
23419
23420 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23421 PyObject *resultobj;
23422 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23423 int arg2 ;
23424 wxDateSpan *result;
23425 PyObject * obj0 = 0 ;
23426 PyObject * obj1 = 0 ;
23427 char *kwnames[] = {
23428 (char *) "self",(char *) "factor", NULL
23429 };
23430
23431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23434 arg2 = (int) SWIG_AsInt(obj1);
23435 if (PyErr_Occurred()) SWIG_fail;
23436 {
23437 PyThreadState* __tstate = wxPyBeginAllowThreads();
23438 {
23439 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23440 result = (wxDateSpan *) &_result_ref;
23441 }
23442
23443 wxPyEndAllowThreads(__tstate);
23444 if (PyErr_Occurred()) SWIG_fail;
23445 }
23446 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23447 return resultobj;
23448 fail:
23449 return NULL;
23450 }
23451
23452
23453 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23454 PyObject *resultobj;
23455 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23456 wxDateSpan *arg2 = 0 ;
23457 wxDateSpan *result;
23458 PyObject * obj0 = 0 ;
23459 PyObject * obj1 = 0 ;
23460 char *kwnames[] = {
23461 (char *) "self",(char *) "other", NULL
23462 };
23463
23464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23467 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23468 SWIG_POINTER_EXCEPTION | 0)) == -1)
23469 SWIG_fail;
23470 if (arg2 == NULL) {
23471 PyErr_SetString(PyExc_TypeError,"null reference");
23472 SWIG_fail;
23473 }
23474 {
23475 PyThreadState* __tstate = wxPyBeginAllowThreads();
23476 {
23477 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23478 result = (wxDateSpan *) &_result_ref;
23479 }
23480
23481 wxPyEndAllowThreads(__tstate);
23482 if (PyErr_Occurred()) SWIG_fail;
23483 }
23484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23485 return resultobj;
23486 fail:
23487 return NULL;
23488 }
23489
23490
23491 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23492 PyObject *resultobj;
23493 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23494 wxDateSpan *arg2 = 0 ;
23495 wxDateSpan *result;
23496 PyObject * obj0 = 0 ;
23497 PyObject * obj1 = 0 ;
23498 char *kwnames[] = {
23499 (char *) "self",(char *) "other", NULL
23500 };
23501
23502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23506 SWIG_POINTER_EXCEPTION | 0)) == -1)
23507 SWIG_fail;
23508 if (arg2 == NULL) {
23509 PyErr_SetString(PyExc_TypeError,"null reference");
23510 SWIG_fail;
23511 }
23512 {
23513 PyThreadState* __tstate = wxPyBeginAllowThreads();
23514 {
23515 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23516 result = (wxDateSpan *) &_result_ref;
23517 }
23518
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23523 return resultobj;
23524 fail:
23525 return NULL;
23526 }
23527
23528
23529 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23530 PyObject *resultobj;
23531 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23532 wxDateSpan *result;
23533 PyObject * obj0 = 0 ;
23534 char *kwnames[] = {
23535 (char *) "self", NULL
23536 };
23537
23538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23541 {
23542 PyThreadState* __tstate = wxPyBeginAllowThreads();
23543 {
23544 wxDateSpan &_result_ref = (arg1)->operator -();
23545 result = (wxDateSpan *) &_result_ref;
23546 }
23547
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23552 return resultobj;
23553 fail:
23554 return NULL;
23555 }
23556
23557
23558 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23559 PyObject *resultobj;
23560 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23561 int arg2 ;
23562 wxDateSpan *result;
23563 PyObject * obj0 = 0 ;
23564 PyObject * obj1 = 0 ;
23565 char *kwnames[] = {
23566 (char *) "self",(char *) "factor", NULL
23567 };
23568
23569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23572 arg2 = (int) SWIG_AsInt(obj1);
23573 if (PyErr_Occurred()) SWIG_fail;
23574 {
23575 PyThreadState* __tstate = wxPyBeginAllowThreads();
23576 {
23577 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23578 result = (wxDateSpan *) &_result_ref;
23579 }
23580
23581 wxPyEndAllowThreads(__tstate);
23582 if (PyErr_Occurred()) SWIG_fail;
23583 }
23584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23585 return resultobj;
23586 fail:
23587 return NULL;
23588 }
23589
23590
23591 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23592 PyObject *resultobj;
23593 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23594 wxDateSpan *arg2 = 0 ;
23595 wxDateSpan result;
23596 PyObject * obj0 = 0 ;
23597 PyObject * obj1 = 0 ;
23598 char *kwnames[] = {
23599 (char *) "self",(char *) "other", NULL
23600 };
23601
23602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23606 SWIG_POINTER_EXCEPTION | 0)) == -1)
23607 SWIG_fail;
23608 if (arg2 == NULL) {
23609 PyErr_SetString(PyExc_TypeError,"null reference");
23610 SWIG_fail;
23611 }
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23615
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 {
23620 wxDateSpan * resultptr;
23621 resultptr = new wxDateSpan((wxDateSpan &) result);
23622 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23623 }
23624 return resultobj;
23625 fail:
23626 return NULL;
23627 }
23628
23629
23630 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23631 PyObject *resultobj;
23632 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23633 wxDateSpan *arg2 = 0 ;
23634 wxDateSpan result;
23635 PyObject * obj0 = 0 ;
23636 PyObject * obj1 = 0 ;
23637 char *kwnames[] = {
23638 (char *) "self",(char *) "other", NULL
23639 };
23640
23641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23645 SWIG_POINTER_EXCEPTION | 0)) == -1)
23646 SWIG_fail;
23647 if (arg2 == NULL) {
23648 PyErr_SetString(PyExc_TypeError,"null reference");
23649 SWIG_fail;
23650 }
23651 {
23652 PyThreadState* __tstate = wxPyBeginAllowThreads();
23653 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23654
23655 wxPyEndAllowThreads(__tstate);
23656 if (PyErr_Occurred()) SWIG_fail;
23657 }
23658 {
23659 wxDateSpan * resultptr;
23660 resultptr = new wxDateSpan((wxDateSpan &) result);
23661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23662 }
23663 return resultobj;
23664 fail:
23665 return NULL;
23666 }
23667
23668
23669 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj;
23671 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23672 int arg2 ;
23673 wxDateSpan result;
23674 PyObject * obj0 = 0 ;
23675 PyObject * obj1 = 0 ;
23676 char *kwnames[] = {
23677 (char *) "self",(char *) "n", NULL
23678 };
23679
23680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23683 arg2 = (int) SWIG_AsInt(obj1);
23684 if (PyErr_Occurred()) SWIG_fail;
23685 {
23686 PyThreadState* __tstate = wxPyBeginAllowThreads();
23687 result = wxDateSpan___mul__(arg1,arg2);
23688
23689 wxPyEndAllowThreads(__tstate);
23690 if (PyErr_Occurred()) SWIG_fail;
23691 }
23692 {
23693 wxDateSpan * resultptr;
23694 resultptr = new wxDateSpan((wxDateSpan &) result);
23695 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23696 }
23697 return resultobj;
23698 fail:
23699 return NULL;
23700 }
23701
23702
23703 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23704 PyObject *resultobj;
23705 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23706 int arg2 ;
23707 wxDateSpan result;
23708 PyObject * obj0 = 0 ;
23709 PyObject * obj1 = 0 ;
23710 char *kwnames[] = {
23711 (char *) "self",(char *) "n", NULL
23712 };
23713
23714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23717 arg2 = (int) SWIG_AsInt(obj1);
23718 if (PyErr_Occurred()) SWIG_fail;
23719 {
23720 PyThreadState* __tstate = wxPyBeginAllowThreads();
23721 result = wxDateSpan___rmul__(arg1,arg2);
23722
23723 wxPyEndAllowThreads(__tstate);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 }
23726 {
23727 wxDateSpan * resultptr;
23728 resultptr = new wxDateSpan((wxDateSpan &) result);
23729 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23730 }
23731 return resultobj;
23732 fail:
23733 return NULL;
23734 }
23735
23736
23737 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23738 PyObject *resultobj;
23739 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23740 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23741 bool result;
23742 PyObject * obj0 = 0 ;
23743 PyObject * obj1 = 0 ;
23744 char *kwnames[] = {
23745 (char *) "self",(char *) "other", NULL
23746 };
23747
23748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23751 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23753 {
23754 PyThreadState* __tstate = wxPyBeginAllowThreads();
23755 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23756
23757 wxPyEndAllowThreads(__tstate);
23758 if (PyErr_Occurred()) SWIG_fail;
23759 }
23760 {
23761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23762 }
23763 return resultobj;
23764 fail:
23765 return NULL;
23766 }
23767
23768
23769 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23770 PyObject *resultobj;
23771 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23772 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23773 bool result;
23774 PyObject * obj0 = 0 ;
23775 PyObject * obj1 = 0 ;
23776 char *kwnames[] = {
23777 (char *) "self",(char *) "other", NULL
23778 };
23779
23780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23788
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 {
23793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23794 }
23795 return resultobj;
23796 fail:
23797 return NULL;
23798 }
23799
23800
23801 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23802 PyObject *obj;
23803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23804 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23805 Py_INCREF(obj);
23806 return Py_BuildValue((char *)"");
23807 }
23808 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23809 PyObject *resultobj;
23810 long result;
23811 char *kwnames[] = {
23812 NULL
23813 };
23814
23815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23816 {
23817 PyThreadState* __tstate = wxPyBeginAllowThreads();
23818 result = (long)wxGetLocalTime();
23819
23820 wxPyEndAllowThreads(__tstate);
23821 if (PyErr_Occurred()) SWIG_fail;
23822 }
23823 resultobj = SWIG_FromLong((long)result);
23824 return resultobj;
23825 fail:
23826 return NULL;
23827 }
23828
23829
23830 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23831 PyObject *resultobj;
23832 long result;
23833 char *kwnames[] = {
23834 NULL
23835 };
23836
23837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23838 {
23839 PyThreadState* __tstate = wxPyBeginAllowThreads();
23840 result = (long)wxGetUTCTime();
23841
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 resultobj = SWIG_FromLong((long)result);
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23853 PyObject *resultobj;
23854 long result;
23855 char *kwnames[] = {
23856 NULL
23857 };
23858
23859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23860 {
23861 PyThreadState* __tstate = wxPyBeginAllowThreads();
23862 result = (long)wxGetCurrentTime();
23863
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 resultobj = SWIG_FromLong((long)result);
23868 return resultobj;
23869 fail:
23870 return NULL;
23871 }
23872
23873
23874 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23875 PyObject *resultobj;
23876 wxLongLong result;
23877 char *kwnames[] = {
23878 NULL
23879 };
23880
23881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23882 {
23883 PyThreadState* __tstate = wxPyBeginAllowThreads();
23884 result = wxGetLocalTimeMillis();
23885
23886 wxPyEndAllowThreads(__tstate);
23887 if (PyErr_Occurred()) SWIG_fail;
23888 }
23889 {
23890 PyObject *hi, *lo, *shifter, *shifted;
23891 hi = PyLong_FromLong( (&result)->GetHi() );
23892 lo = PyLong_FromLong( (&result)->GetLo() );
23893 shifter = PyLong_FromLong(32);
23894 shifted = PyNumber_Lshift(hi, shifter);
23895 resultobj = PyNumber_Or(shifted, lo);
23896 Py_DECREF(hi);
23897 Py_DECREF(lo);
23898 Py_DECREF(shifter);
23899 Py_DECREF(shifted);
23900 }
23901 return resultobj;
23902 fail:
23903 return NULL;
23904 }
23905
23906
23907 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23908 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23909 return 1;
23910 }
23911
23912
23913 static PyObject *_wrap_DefaultDateTime_get() {
23914 PyObject *pyobj;
23915
23916 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23917 return pyobj;
23918 }
23919
23920
23921 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23922 PyObject *resultobj;
23923 int arg1 ;
23924 wxDataFormat *result;
23925 PyObject * obj0 = 0 ;
23926 char *kwnames[] = {
23927 (char *) "type", NULL
23928 };
23929
23930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23931 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23932 if (PyErr_Occurred()) SWIG_fail;
23933 {
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23936
23937 wxPyEndAllowThreads(__tstate);
23938 if (PyErr_Occurred()) SWIG_fail;
23939 }
23940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23941 return resultobj;
23942 fail:
23943 return NULL;
23944 }
23945
23946
23947 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23948 PyObject *resultobj;
23949 wxString *arg1 = 0 ;
23950 wxDataFormat *result;
23951 bool temp1 = False ;
23952 PyObject * obj0 = 0 ;
23953 char *kwnames[] = {
23954 (char *) "format", NULL
23955 };
23956
23957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23958 {
23959 arg1 = wxString_in_helper(obj0);
23960 if (arg1 == NULL) SWIG_fail;
23961 temp1 = True;
23962 }
23963 {
23964 PyThreadState* __tstate = wxPyBeginAllowThreads();
23965 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23966
23967 wxPyEndAllowThreads(__tstate);
23968 if (PyErr_Occurred()) SWIG_fail;
23969 }
23970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23971 {
23972 if (temp1)
23973 delete arg1;
23974 }
23975 return resultobj;
23976 fail:
23977 {
23978 if (temp1)
23979 delete arg1;
23980 }
23981 return NULL;
23982 }
23983
23984
23985 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23986 PyObject *resultobj;
23987 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23988 PyObject * obj0 = 0 ;
23989 char *kwnames[] = {
23990 (char *) "self", NULL
23991 };
23992
23993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 delete arg1;
23999
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 Py_INCREF(Py_None); resultobj = Py_None;
24004 return resultobj;
24005 fail:
24006 return NULL;
24007 }
24008
24009
24010 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
24011 PyObject *resultobj;
24012 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24013 int arg2 ;
24014 bool result;
24015 PyObject * obj0 = 0 ;
24016 PyObject * obj1 = 0 ;
24017
24018 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24021 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24026
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 {
24031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24032 }
24033 return resultobj;
24034 fail:
24035 return NULL;
24036 }
24037
24038
24039 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
24040 PyObject *resultobj;
24041 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24042 int arg2 ;
24043 bool result;
24044 PyObject * obj0 = 0 ;
24045 PyObject * obj1 = 0 ;
24046
24047 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24050 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24051 if (PyErr_Occurred()) SWIG_fail;
24052 {
24053 PyThreadState* __tstate = wxPyBeginAllowThreads();
24054 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24055
24056 wxPyEndAllowThreads(__tstate);
24057 if (PyErr_Occurred()) SWIG_fail;
24058 }
24059 {
24060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24061 }
24062 return resultobj;
24063 fail:
24064 return NULL;
24065 }
24066
24067
24068 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24069 PyObject *resultobj;
24070 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24071 wxDataFormat *arg2 = 0 ;
24072 bool result;
24073 PyObject * obj0 = 0 ;
24074 PyObject * obj1 = 0 ;
24075
24076 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24079 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24080 SWIG_POINTER_EXCEPTION | 0)) == -1)
24081 SWIG_fail;
24082 if (arg2 == NULL) {
24083 PyErr_SetString(PyExc_TypeError,"null reference");
24084 SWIG_fail;
24085 }
24086 {
24087 PyThreadState* __tstate = wxPyBeginAllowThreads();
24088 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24089
24090 wxPyEndAllowThreads(__tstate);
24091 if (PyErr_Occurred()) SWIG_fail;
24092 }
24093 {
24094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24095 }
24096 return resultobj;
24097 fail:
24098 return NULL;
24099 }
24100
24101
24102 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24103 int argc;
24104 PyObject *argv[3];
24105 int ii;
24106
24107 argc = PyObject_Length(args);
24108 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24109 argv[ii] = PyTuple_GetItem(args,ii);
24110 }
24111 if (argc == 2) {
24112 int _v;
24113 {
24114 void *ptr;
24115 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24116 _v = 0;
24117 PyErr_Clear();
24118 } else {
24119 _v = 1;
24120 }
24121 }
24122 if (_v) {
24123 {
24124 void *ptr;
24125 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24126 _v = 0;
24127 PyErr_Clear();
24128 } else {
24129 _v = 1;
24130 }
24131 }
24132 if (_v) {
24133 return _wrap_DataFormat___eq____SWIG_1(self,args);
24134 }
24135 }
24136 }
24137 if (argc == 2) {
24138 int _v;
24139 {
24140 void *ptr;
24141 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24142 _v = 0;
24143 PyErr_Clear();
24144 } else {
24145 _v = 1;
24146 }
24147 }
24148 if (_v) {
24149 _v = SWIG_CheckInt(argv[1]);
24150 if (_v) {
24151 return _wrap_DataFormat___eq____SWIG_0(self,args);
24152 }
24153 }
24154 }
24155
24156 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24157 return NULL;
24158 }
24159
24160
24161 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24162 PyObject *resultobj;
24163 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24164 wxDataFormat *arg2 = 0 ;
24165 bool result;
24166 PyObject * obj0 = 0 ;
24167 PyObject * obj1 = 0 ;
24168
24169 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24172 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24173 SWIG_POINTER_EXCEPTION | 0)) == -1)
24174 SWIG_fail;
24175 if (arg2 == NULL) {
24176 PyErr_SetString(PyExc_TypeError,"null reference");
24177 SWIG_fail;
24178 }
24179 {
24180 PyThreadState* __tstate = wxPyBeginAllowThreads();
24181 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24182
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 {
24187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24188 }
24189 return resultobj;
24190 fail:
24191 return NULL;
24192 }
24193
24194
24195 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24196 int argc;
24197 PyObject *argv[3];
24198 int ii;
24199
24200 argc = PyObject_Length(args);
24201 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24202 argv[ii] = PyTuple_GetItem(args,ii);
24203 }
24204 if (argc == 2) {
24205 int _v;
24206 {
24207 void *ptr;
24208 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24209 _v = 0;
24210 PyErr_Clear();
24211 } else {
24212 _v = 1;
24213 }
24214 }
24215 if (_v) {
24216 {
24217 void *ptr;
24218 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24219 _v = 0;
24220 PyErr_Clear();
24221 } else {
24222 _v = 1;
24223 }
24224 }
24225 if (_v) {
24226 return _wrap_DataFormat___ne____SWIG_1(self,args);
24227 }
24228 }
24229 }
24230 if (argc == 2) {
24231 int _v;
24232 {
24233 void *ptr;
24234 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24235 _v = 0;
24236 PyErr_Clear();
24237 } else {
24238 _v = 1;
24239 }
24240 }
24241 if (_v) {
24242 _v = SWIG_CheckInt(argv[1]);
24243 if (_v) {
24244 return _wrap_DataFormat___ne____SWIG_0(self,args);
24245 }
24246 }
24247 }
24248
24249 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24250 return NULL;
24251 }
24252
24253
24254 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24255 PyObject *resultobj;
24256 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24257 int arg2 ;
24258 PyObject * obj0 = 0 ;
24259 PyObject * obj1 = 0 ;
24260 char *kwnames[] = {
24261 (char *) "self",(char *) "format", NULL
24262 };
24263
24264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24267 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 {
24270 PyThreadState* __tstate = wxPyBeginAllowThreads();
24271 (arg1)->SetType((wxDataFormatId )arg2);
24272
24273 wxPyEndAllowThreads(__tstate);
24274 if (PyErr_Occurred()) SWIG_fail;
24275 }
24276 Py_INCREF(Py_None); resultobj = Py_None;
24277 return resultobj;
24278 fail:
24279 return NULL;
24280 }
24281
24282
24283 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24284 PyObject *resultobj;
24285 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24286 int result;
24287 PyObject * obj0 = 0 ;
24288 char *kwnames[] = {
24289 (char *) "self", NULL
24290 };
24291
24292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24295 {
24296 PyThreadState* __tstate = wxPyBeginAllowThreads();
24297 result = (int)((wxDataFormat const *)arg1)->GetType();
24298
24299 wxPyEndAllowThreads(__tstate);
24300 if (PyErr_Occurred()) SWIG_fail;
24301 }
24302 resultobj = SWIG_FromInt((int)result);
24303 return resultobj;
24304 fail:
24305 return NULL;
24306 }
24307
24308
24309 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24310 PyObject *resultobj;
24311 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24312 wxString result;
24313 PyObject * obj0 = 0 ;
24314 char *kwnames[] = {
24315 (char *) "self", NULL
24316 };
24317
24318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 result = ((wxDataFormat const *)arg1)->GetId();
24324
24325 wxPyEndAllowThreads(__tstate);
24326 if (PyErr_Occurred()) SWIG_fail;
24327 }
24328 {
24329 #if wxUSE_UNICODE
24330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24331 #else
24332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24333 #endif
24334 }
24335 return resultobj;
24336 fail:
24337 return NULL;
24338 }
24339
24340
24341 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24342 PyObject *resultobj;
24343 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24344 wxString *arg2 = 0 ;
24345 bool temp2 = False ;
24346 PyObject * obj0 = 0 ;
24347 PyObject * obj1 = 0 ;
24348 char *kwnames[] = {
24349 (char *) "self",(char *) "format", NULL
24350 };
24351
24352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24355 {
24356 arg2 = wxString_in_helper(obj1);
24357 if (arg2 == NULL) SWIG_fail;
24358 temp2 = True;
24359 }
24360 {
24361 PyThreadState* __tstate = wxPyBeginAllowThreads();
24362 (arg1)->SetId((wxString const &)*arg2);
24363
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 Py_INCREF(Py_None); resultobj = Py_None;
24368 {
24369 if (temp2)
24370 delete arg2;
24371 }
24372 return resultobj;
24373 fail:
24374 {
24375 if (temp2)
24376 delete arg2;
24377 }
24378 return NULL;
24379 }
24380
24381
24382 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24383 PyObject *obj;
24384 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24385 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24386 Py_INCREF(obj);
24387 return Py_BuildValue((char *)"");
24388 }
24389 static int _wrap_FormatInvalid_set(PyObject *_val) {
24390 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24391 return 1;
24392 }
24393
24394
24395 static PyObject *_wrap_FormatInvalid_get() {
24396 PyObject *pyobj;
24397
24398 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24399 return pyobj;
24400 }
24401
24402
24403 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj;
24405 wxDataObject *arg1 = (wxDataObject *) 0 ;
24406 PyObject * obj0 = 0 ;
24407 char *kwnames[] = {
24408 (char *) "self", NULL
24409 };
24410
24411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24414 {
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 delete arg1;
24417
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 Py_INCREF(Py_None); resultobj = Py_None;
24422 return resultobj;
24423 fail:
24424 return NULL;
24425 }
24426
24427
24428 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj;
24430 wxDataObject *arg1 = (wxDataObject *) 0 ;
24431 int arg2 = (int) wxDataObject::Get ;
24432 SwigValueWrapper< wxDataFormat > result;
24433 PyObject * obj0 = 0 ;
24434 PyObject * obj1 = 0 ;
24435 char *kwnames[] = {
24436 (char *) "self",(char *) "dir", NULL
24437 };
24438
24439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24442 if (obj1) {
24443 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24444 if (PyErr_Occurred()) SWIG_fail;
24445 }
24446 {
24447 PyThreadState* __tstate = wxPyBeginAllowThreads();
24448 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24449
24450 wxPyEndAllowThreads(__tstate);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 {
24454 wxDataFormat * resultptr;
24455 resultptr = new wxDataFormat((wxDataFormat &) result);
24456 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24457 }
24458 return resultobj;
24459 fail:
24460 return NULL;
24461 }
24462
24463
24464 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24465 PyObject *resultobj;
24466 wxDataObject *arg1 = (wxDataObject *) 0 ;
24467 int arg2 = (int) wxDataObject::Get ;
24468 size_t result;
24469 PyObject * obj0 = 0 ;
24470 PyObject * obj1 = 0 ;
24471 char *kwnames[] = {
24472 (char *) "self",(char *) "dir", NULL
24473 };
24474
24475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24478 if (obj1) {
24479 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24480 if (PyErr_Occurred()) SWIG_fail;
24481 }
24482 {
24483 PyThreadState* __tstate = wxPyBeginAllowThreads();
24484 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24485
24486 wxPyEndAllowThreads(__tstate);
24487 if (PyErr_Occurred()) SWIG_fail;
24488 }
24489 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24490 return resultobj;
24491 fail:
24492 return NULL;
24493 }
24494
24495
24496 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24497 PyObject *resultobj;
24498 wxDataObject *arg1 = (wxDataObject *) 0 ;
24499 wxDataFormat *arg2 = 0 ;
24500 int arg3 = (int) wxDataObject::Get ;
24501 bool result;
24502 PyObject * obj0 = 0 ;
24503 PyObject * obj1 = 0 ;
24504 PyObject * obj2 = 0 ;
24505 char *kwnames[] = {
24506 (char *) "self",(char *) "format",(char *) "dir", NULL
24507 };
24508
24509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24513 SWIG_POINTER_EXCEPTION | 0)) == -1)
24514 SWIG_fail;
24515 if (arg2 == NULL) {
24516 PyErr_SetString(PyExc_TypeError,"null reference");
24517 SWIG_fail;
24518 }
24519 if (obj2) {
24520 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24521 if (PyErr_Occurred()) SWIG_fail;
24522 }
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24526
24527 wxPyEndAllowThreads(__tstate);
24528 if (PyErr_Occurred()) SWIG_fail;
24529 }
24530 {
24531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24532 }
24533 return resultobj;
24534 fail:
24535 return NULL;
24536 }
24537
24538
24539 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24540 PyObject *resultobj;
24541 wxDataObject *arg1 = (wxDataObject *) 0 ;
24542 wxDataFormat *arg2 = 0 ;
24543 size_t result;
24544 PyObject * obj0 = 0 ;
24545 PyObject * obj1 = 0 ;
24546 char *kwnames[] = {
24547 (char *) "self",(char *) "format", NULL
24548 };
24549
24550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24554 SWIG_POINTER_EXCEPTION | 0)) == -1)
24555 SWIG_fail;
24556 if (arg2 == NULL) {
24557 PyErr_SetString(PyExc_TypeError,"null reference");
24558 SWIG_fail;
24559 }
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24563
24564 wxPyEndAllowThreads(__tstate);
24565 if (PyErr_Occurred()) SWIG_fail;
24566 }
24567 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24568 return resultobj;
24569 fail:
24570 return NULL;
24571 }
24572
24573
24574 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24575 PyObject *resultobj;
24576 wxDataObject *arg1 = (wxDataObject *) 0 ;
24577 int arg2 = (int) wxDataObject::Get ;
24578 PyObject *result;
24579 PyObject * obj0 = 0 ;
24580 PyObject * obj1 = 0 ;
24581 char *kwnames[] = {
24582 (char *) "self",(char *) "dir", NULL
24583 };
24584
24585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24588 if (obj1) {
24589 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24590 if (PyErr_Occurred()) SWIG_fail;
24591 }
24592 {
24593 PyThreadState* __tstate = wxPyBeginAllowThreads();
24594 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24595
24596 wxPyEndAllowThreads(__tstate);
24597 if (PyErr_Occurred()) SWIG_fail;
24598 }
24599 resultobj = result;
24600 return resultobj;
24601 fail:
24602 return NULL;
24603 }
24604
24605
24606 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24607 PyObject *resultobj;
24608 wxDataObject *arg1 = (wxDataObject *) 0 ;
24609 wxDataFormat *arg2 = 0 ;
24610 PyObject *result;
24611 PyObject * obj0 = 0 ;
24612 PyObject * obj1 = 0 ;
24613 char *kwnames[] = {
24614 (char *) "self",(char *) "format", NULL
24615 };
24616
24617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24620 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24621 SWIG_POINTER_EXCEPTION | 0)) == -1)
24622 SWIG_fail;
24623 if (arg2 == NULL) {
24624 PyErr_SetString(PyExc_TypeError,"null reference");
24625 SWIG_fail;
24626 }
24627 {
24628 PyThreadState* __tstate = wxPyBeginAllowThreads();
24629 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24630
24631 wxPyEndAllowThreads(__tstate);
24632 if (PyErr_Occurred()) SWIG_fail;
24633 }
24634 resultobj = result;
24635 return resultobj;
24636 fail:
24637 return NULL;
24638 }
24639
24640
24641 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24642 PyObject *resultobj;
24643 wxDataObject *arg1 = (wxDataObject *) 0 ;
24644 wxDataFormat *arg2 = 0 ;
24645 PyObject *arg3 = (PyObject *) 0 ;
24646 bool result;
24647 PyObject * obj0 = 0 ;
24648 PyObject * obj1 = 0 ;
24649 PyObject * obj2 = 0 ;
24650 char *kwnames[] = {
24651 (char *) "self",(char *) "format",(char *) "data", NULL
24652 };
24653
24654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24657 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24658 SWIG_POINTER_EXCEPTION | 0)) == -1)
24659 SWIG_fail;
24660 if (arg2 == NULL) {
24661 PyErr_SetString(PyExc_TypeError,"null reference");
24662 SWIG_fail;
24663 }
24664 arg3 = obj2;
24665 {
24666 PyThreadState* __tstate = wxPyBeginAllowThreads();
24667 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24668
24669 wxPyEndAllowThreads(__tstate);
24670 if (PyErr_Occurred()) SWIG_fail;
24671 }
24672 {
24673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24674 }
24675 return resultobj;
24676 fail:
24677 return NULL;
24678 }
24679
24680
24681 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24682 PyObject *obj;
24683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24684 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24685 Py_INCREF(obj);
24686 return Py_BuildValue((char *)"");
24687 }
24688 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj;
24690 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24691 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24692 wxDataObjectSimple *result;
24693 PyObject * obj0 = 0 ;
24694 char *kwnames[] = {
24695 (char *) "format", NULL
24696 };
24697
24698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24699 if (obj0) {
24700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24701 SWIG_POINTER_EXCEPTION | 0)) == -1)
24702 SWIG_fail;
24703 if (arg1 == NULL) {
24704 PyErr_SetString(PyExc_TypeError,"null reference");
24705 SWIG_fail;
24706 }
24707 }
24708 {
24709 PyThreadState* __tstate = wxPyBeginAllowThreads();
24710 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24711
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24716 return resultobj;
24717 fail:
24718 return NULL;
24719 }
24720
24721
24722 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24723 PyObject *resultobj;
24724 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24725 wxDataFormat *result;
24726 PyObject * obj0 = 0 ;
24727 char *kwnames[] = {
24728 (char *) "self", NULL
24729 };
24730
24731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24734 {
24735 PyThreadState* __tstate = wxPyBeginAllowThreads();
24736 {
24737 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24738 result = (wxDataFormat *) &_result_ref;
24739 }
24740
24741 wxPyEndAllowThreads(__tstate);
24742 if (PyErr_Occurred()) SWIG_fail;
24743 }
24744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24745 return resultobj;
24746 fail:
24747 return NULL;
24748 }
24749
24750
24751 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24752 PyObject *resultobj;
24753 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24754 wxDataFormat *arg2 = 0 ;
24755 PyObject * obj0 = 0 ;
24756 PyObject * obj1 = 0 ;
24757 char *kwnames[] = {
24758 (char *) "self",(char *) "format", NULL
24759 };
24760
24761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24764 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24765 SWIG_POINTER_EXCEPTION | 0)) == -1)
24766 SWIG_fail;
24767 if (arg2 == NULL) {
24768 PyErr_SetString(PyExc_TypeError,"null reference");
24769 SWIG_fail;
24770 }
24771 {
24772 PyThreadState* __tstate = wxPyBeginAllowThreads();
24773 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24774
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 Py_INCREF(Py_None); resultobj = Py_None;
24779 return resultobj;
24780 fail:
24781 return NULL;
24782 }
24783
24784
24785 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24786 PyObject *resultobj;
24787 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24788 size_t result;
24789 PyObject * obj0 = 0 ;
24790 char *kwnames[] = {
24791 (char *) "self", NULL
24792 };
24793
24794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24797 {
24798 PyThreadState* __tstate = wxPyBeginAllowThreads();
24799 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24800
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24805 return resultobj;
24806 fail:
24807 return NULL;
24808 }
24809
24810
24811 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24812 PyObject *resultobj;
24813 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24814 PyObject *result;
24815 PyObject * obj0 = 0 ;
24816 char *kwnames[] = {
24817 (char *) "self", NULL
24818 };
24819
24820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24823 {
24824 PyThreadState* __tstate = wxPyBeginAllowThreads();
24825 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24826
24827 wxPyEndAllowThreads(__tstate);
24828 if (PyErr_Occurred()) SWIG_fail;
24829 }
24830 resultobj = result;
24831 return resultobj;
24832 fail:
24833 return NULL;
24834 }
24835
24836
24837 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24838 PyObject *resultobj;
24839 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24840 PyObject *arg2 = (PyObject *) 0 ;
24841 bool result;
24842 PyObject * obj0 = 0 ;
24843 PyObject * obj1 = 0 ;
24844 char *kwnames[] = {
24845 (char *) "self",(char *) "data", NULL
24846 };
24847
24848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24851 arg2 = obj1;
24852 {
24853 PyThreadState* __tstate = wxPyBeginAllowThreads();
24854 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24855
24856 wxPyEndAllowThreads(__tstate);
24857 if (PyErr_Occurred()) SWIG_fail;
24858 }
24859 {
24860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24861 }
24862 return resultobj;
24863 fail:
24864 return NULL;
24865 }
24866
24867
24868 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24869 PyObject *obj;
24870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24871 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24872 Py_INCREF(obj);
24873 return Py_BuildValue((char *)"");
24874 }
24875 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24876 PyObject *resultobj;
24877 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24878 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24879 wxPyDataObjectSimple *result;
24880 PyObject * obj0 = 0 ;
24881 char *kwnames[] = {
24882 (char *) "format", NULL
24883 };
24884
24885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24886 if (obj0) {
24887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24888 SWIG_POINTER_EXCEPTION | 0)) == -1)
24889 SWIG_fail;
24890 if (arg1 == NULL) {
24891 PyErr_SetString(PyExc_TypeError,"null reference");
24892 SWIG_fail;
24893 }
24894 }
24895 {
24896 PyThreadState* __tstate = wxPyBeginAllowThreads();
24897 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24898
24899 wxPyEndAllowThreads(__tstate);
24900 if (PyErr_Occurred()) SWIG_fail;
24901 }
24902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24903 return resultobj;
24904 fail:
24905 return NULL;
24906 }
24907
24908
24909 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24910 PyObject *resultobj;
24911 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24912 PyObject *arg2 = (PyObject *) 0 ;
24913 PyObject *arg3 = (PyObject *) 0 ;
24914 PyObject * obj0 = 0 ;
24915 PyObject * obj1 = 0 ;
24916 PyObject * obj2 = 0 ;
24917 char *kwnames[] = {
24918 (char *) "self",(char *) "self",(char *) "_class", NULL
24919 };
24920
24921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24924 arg2 = obj1;
24925 arg3 = obj2;
24926 {
24927 PyThreadState* __tstate = wxPyBeginAllowThreads();
24928 (arg1)->_setCallbackInfo(arg2,arg3);
24929
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 Py_INCREF(Py_None); resultobj = Py_None;
24934 return resultobj;
24935 fail:
24936 return NULL;
24937 }
24938
24939
24940 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24941 PyObject *obj;
24942 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24943 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24944 Py_INCREF(obj);
24945 return Py_BuildValue((char *)"");
24946 }
24947 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24948 PyObject *resultobj;
24949 wxDataObjectComposite *result;
24950 char *kwnames[] = {
24951 NULL
24952 };
24953
24954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24958
24959 wxPyEndAllowThreads(__tstate);
24960 if (PyErr_Occurred()) SWIG_fail;
24961 }
24962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24963 return resultobj;
24964 fail:
24965 return NULL;
24966 }
24967
24968
24969 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24970 PyObject *resultobj;
24971 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24972 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24973 bool arg3 = (bool) False ;
24974 PyObject * obj0 = 0 ;
24975 PyObject * obj1 = 0 ;
24976 PyObject * obj2 = 0 ;
24977 char *kwnames[] = {
24978 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24979 };
24980
24981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24984 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24985 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24986 if (obj2) {
24987 arg3 = (bool) SWIG_AsBool(obj2);
24988 if (PyErr_Occurred()) SWIG_fail;
24989 }
24990 {
24991 PyThreadState* __tstate = wxPyBeginAllowThreads();
24992 (arg1)->Add(arg2,arg3);
24993
24994 wxPyEndAllowThreads(__tstate);
24995 if (PyErr_Occurred()) SWIG_fail;
24996 }
24997 Py_INCREF(Py_None); resultobj = Py_None;
24998 return resultobj;
24999 fail:
25000 return NULL;
25001 }
25002
25003
25004 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
25005 PyObject *obj;
25006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25007 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25008 Py_INCREF(obj);
25009 return Py_BuildValue((char *)"");
25010 }
25011 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25012 PyObject *resultobj;
25013 wxString const &arg1_defvalue = wxPyEmptyString ;
25014 wxString *arg1 = (wxString *) &arg1_defvalue ;
25015 wxTextDataObject *result;
25016 bool temp1 = False ;
25017 PyObject * obj0 = 0 ;
25018 char *kwnames[] = {
25019 (char *) "text", NULL
25020 };
25021
25022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25023 if (obj0) {
25024 {
25025 arg1 = wxString_in_helper(obj0);
25026 if (arg1 == NULL) SWIG_fail;
25027 temp1 = True;
25028 }
25029 }
25030 {
25031 PyThreadState* __tstate = wxPyBeginAllowThreads();
25032 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25033
25034 wxPyEndAllowThreads(__tstate);
25035 if (PyErr_Occurred()) SWIG_fail;
25036 }
25037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25038 {
25039 if (temp1)
25040 delete arg1;
25041 }
25042 return resultobj;
25043 fail:
25044 {
25045 if (temp1)
25046 delete arg1;
25047 }
25048 return NULL;
25049 }
25050
25051
25052 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
25053 PyObject *resultobj;
25054 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25055 size_t result;
25056 PyObject * obj0 = 0 ;
25057 char *kwnames[] = {
25058 (char *) "self", NULL
25059 };
25060
25061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25064 {
25065 PyThreadState* __tstate = wxPyBeginAllowThreads();
25066 result = (size_t)(arg1)->GetTextLength();
25067
25068 wxPyEndAllowThreads(__tstate);
25069 if (PyErr_Occurred()) SWIG_fail;
25070 }
25071 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25072 return resultobj;
25073 fail:
25074 return NULL;
25075 }
25076
25077
25078 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25079 PyObject *resultobj;
25080 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25081 wxString result;
25082 PyObject * obj0 = 0 ;
25083 char *kwnames[] = {
25084 (char *) "self", NULL
25085 };
25086
25087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25090 {
25091 PyThreadState* __tstate = wxPyBeginAllowThreads();
25092 result = (arg1)->GetText();
25093
25094 wxPyEndAllowThreads(__tstate);
25095 if (PyErr_Occurred()) SWIG_fail;
25096 }
25097 {
25098 #if wxUSE_UNICODE
25099 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25100 #else
25101 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25102 #endif
25103 }
25104 return resultobj;
25105 fail:
25106 return NULL;
25107 }
25108
25109
25110 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj;
25112 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25113 wxString *arg2 = 0 ;
25114 bool temp2 = False ;
25115 PyObject * obj0 = 0 ;
25116 PyObject * obj1 = 0 ;
25117 char *kwnames[] = {
25118 (char *) "self",(char *) "text", NULL
25119 };
25120
25121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25124 {
25125 arg2 = wxString_in_helper(obj1);
25126 if (arg2 == NULL) SWIG_fail;
25127 temp2 = True;
25128 }
25129 {
25130 PyThreadState* __tstate = wxPyBeginAllowThreads();
25131 (arg1)->SetText((wxString const &)*arg2);
25132
25133 wxPyEndAllowThreads(__tstate);
25134 if (PyErr_Occurred()) SWIG_fail;
25135 }
25136 Py_INCREF(Py_None); resultobj = Py_None;
25137 {
25138 if (temp2)
25139 delete arg2;
25140 }
25141 return resultobj;
25142 fail:
25143 {
25144 if (temp2)
25145 delete arg2;
25146 }
25147 return NULL;
25148 }
25149
25150
25151 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25152 PyObject *obj;
25153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25154 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25155 Py_INCREF(obj);
25156 return Py_BuildValue((char *)"");
25157 }
25158 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj;
25160 wxString const &arg1_defvalue = wxPyEmptyString ;
25161 wxString *arg1 = (wxString *) &arg1_defvalue ;
25162 wxPyTextDataObject *result;
25163 bool temp1 = False ;
25164 PyObject * obj0 = 0 ;
25165 char *kwnames[] = {
25166 (char *) "text", NULL
25167 };
25168
25169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25170 if (obj0) {
25171 {
25172 arg1 = wxString_in_helper(obj0);
25173 if (arg1 == NULL) SWIG_fail;
25174 temp1 = True;
25175 }
25176 }
25177 {
25178 PyThreadState* __tstate = wxPyBeginAllowThreads();
25179 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25180
25181 wxPyEndAllowThreads(__tstate);
25182 if (PyErr_Occurred()) SWIG_fail;
25183 }
25184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25185 {
25186 if (temp1)
25187 delete arg1;
25188 }
25189 return resultobj;
25190 fail:
25191 {
25192 if (temp1)
25193 delete arg1;
25194 }
25195 return NULL;
25196 }
25197
25198
25199 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25200 PyObject *resultobj;
25201 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25202 PyObject *arg2 = (PyObject *) 0 ;
25203 PyObject *arg3 = (PyObject *) 0 ;
25204 PyObject * obj0 = 0 ;
25205 PyObject * obj1 = 0 ;
25206 PyObject * obj2 = 0 ;
25207 char *kwnames[] = {
25208 (char *) "self",(char *) "self",(char *) "_class", NULL
25209 };
25210
25211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25214 arg2 = obj1;
25215 arg3 = obj2;
25216 {
25217 PyThreadState* __tstate = wxPyBeginAllowThreads();
25218 (arg1)->_setCallbackInfo(arg2,arg3);
25219
25220 wxPyEndAllowThreads(__tstate);
25221 if (PyErr_Occurred()) SWIG_fail;
25222 }
25223 Py_INCREF(Py_None); resultobj = Py_None;
25224 return resultobj;
25225 fail:
25226 return NULL;
25227 }
25228
25229
25230 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25231 PyObject *obj;
25232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25233 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25234 Py_INCREF(obj);
25235 return Py_BuildValue((char *)"");
25236 }
25237 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25238 PyObject *resultobj;
25239 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25240 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25241 wxBitmapDataObject *result;
25242 PyObject * obj0 = 0 ;
25243 char *kwnames[] = {
25244 (char *) "bitmap", NULL
25245 };
25246
25247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25248 if (obj0) {
25249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25250 SWIG_POINTER_EXCEPTION | 0)) == -1)
25251 SWIG_fail;
25252 if (arg1 == NULL) {
25253 PyErr_SetString(PyExc_TypeError,"null reference");
25254 SWIG_fail;
25255 }
25256 }
25257 {
25258 PyThreadState* __tstate = wxPyBeginAllowThreads();
25259 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25260
25261 wxPyEndAllowThreads(__tstate);
25262 if (PyErr_Occurred()) SWIG_fail;
25263 }
25264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25265 return resultobj;
25266 fail:
25267 return NULL;
25268 }
25269
25270
25271 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25272 PyObject *resultobj;
25273 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25274 wxBitmap result;
25275 PyObject * obj0 = 0 ;
25276 char *kwnames[] = {
25277 (char *) "self", NULL
25278 };
25279
25280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25283 {
25284 PyThreadState* __tstate = wxPyBeginAllowThreads();
25285 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25286
25287 wxPyEndAllowThreads(__tstate);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 {
25291 wxBitmap * resultptr;
25292 resultptr = new wxBitmap((wxBitmap &) result);
25293 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25294 }
25295 return resultobj;
25296 fail:
25297 return NULL;
25298 }
25299
25300
25301 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25302 PyObject *resultobj;
25303 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25304 wxBitmap *arg2 = 0 ;
25305 PyObject * obj0 = 0 ;
25306 PyObject * obj1 = 0 ;
25307 char *kwnames[] = {
25308 (char *) "self",(char *) "bitmap", NULL
25309 };
25310
25311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25314 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25315 SWIG_POINTER_EXCEPTION | 0)) == -1)
25316 SWIG_fail;
25317 if (arg2 == NULL) {
25318 PyErr_SetString(PyExc_TypeError,"null reference");
25319 SWIG_fail;
25320 }
25321 {
25322 PyThreadState* __tstate = wxPyBeginAllowThreads();
25323 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25324
25325 wxPyEndAllowThreads(__tstate);
25326 if (PyErr_Occurred()) SWIG_fail;
25327 }
25328 Py_INCREF(Py_None); resultobj = Py_None;
25329 return resultobj;
25330 fail:
25331 return NULL;
25332 }
25333
25334
25335 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25336 PyObject *obj;
25337 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25338 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25339 Py_INCREF(obj);
25340 return Py_BuildValue((char *)"");
25341 }
25342 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25343 PyObject *resultobj;
25344 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25345 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25346 wxPyBitmapDataObject *result;
25347 PyObject * obj0 = 0 ;
25348 char *kwnames[] = {
25349 (char *) "bitmap", NULL
25350 };
25351
25352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25353 if (obj0) {
25354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25355 SWIG_POINTER_EXCEPTION | 0)) == -1)
25356 SWIG_fail;
25357 if (arg1 == NULL) {
25358 PyErr_SetString(PyExc_TypeError,"null reference");
25359 SWIG_fail;
25360 }
25361 }
25362 {
25363 PyThreadState* __tstate = wxPyBeginAllowThreads();
25364 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25365
25366 wxPyEndAllowThreads(__tstate);
25367 if (PyErr_Occurred()) SWIG_fail;
25368 }
25369 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25370 return resultobj;
25371 fail:
25372 return NULL;
25373 }
25374
25375
25376 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25377 PyObject *resultobj;
25378 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25379 PyObject *arg2 = (PyObject *) 0 ;
25380 PyObject *arg3 = (PyObject *) 0 ;
25381 PyObject * obj0 = 0 ;
25382 PyObject * obj1 = 0 ;
25383 PyObject * obj2 = 0 ;
25384 char *kwnames[] = {
25385 (char *) "self",(char *) "self",(char *) "_class", NULL
25386 };
25387
25388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25391 arg2 = obj1;
25392 arg3 = obj2;
25393 {
25394 PyThreadState* __tstate = wxPyBeginAllowThreads();
25395 (arg1)->_setCallbackInfo(arg2,arg3);
25396
25397 wxPyEndAllowThreads(__tstate);
25398 if (PyErr_Occurred()) SWIG_fail;
25399 }
25400 Py_INCREF(Py_None); resultobj = Py_None;
25401 return resultobj;
25402 fail:
25403 return NULL;
25404 }
25405
25406
25407 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25408 PyObject *obj;
25409 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25410 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25411 Py_INCREF(obj);
25412 return Py_BuildValue((char *)"");
25413 }
25414 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25415 PyObject *resultobj;
25416 wxFileDataObject *result;
25417 char *kwnames[] = {
25418 NULL
25419 };
25420
25421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25422 {
25423 PyThreadState* __tstate = wxPyBeginAllowThreads();
25424 result = (wxFileDataObject *)new wxFileDataObject();
25425
25426 wxPyEndAllowThreads(__tstate);
25427 if (PyErr_Occurred()) SWIG_fail;
25428 }
25429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25430 return resultobj;
25431 fail:
25432 return NULL;
25433 }
25434
25435
25436 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25437 PyObject *resultobj;
25438 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25439 wxArrayString *result;
25440 PyObject * obj0 = 0 ;
25441 char *kwnames[] = {
25442 (char *) "self", NULL
25443 };
25444
25445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25448 {
25449 PyThreadState* __tstate = wxPyBeginAllowThreads();
25450 {
25451 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25452 result = (wxArrayString *) &_result_ref;
25453 }
25454
25455 wxPyEndAllowThreads(__tstate);
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 {
25459 resultobj = wxArrayString2PyList_helper(*result);
25460 }
25461 return resultobj;
25462 fail:
25463 return NULL;
25464 }
25465
25466
25467 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25468 PyObject *resultobj;
25469 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25470 wxString *arg2 = 0 ;
25471 bool temp2 = False ;
25472 PyObject * obj0 = 0 ;
25473 PyObject * obj1 = 0 ;
25474 char *kwnames[] = {
25475 (char *) "self",(char *) "filename", NULL
25476 };
25477
25478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25481 {
25482 arg2 = wxString_in_helper(obj1);
25483 if (arg2 == NULL) SWIG_fail;
25484 temp2 = True;
25485 }
25486 {
25487 PyThreadState* __tstate = wxPyBeginAllowThreads();
25488 (arg1)->AddFile((wxString const &)*arg2);
25489
25490 wxPyEndAllowThreads(__tstate);
25491 if (PyErr_Occurred()) SWIG_fail;
25492 }
25493 Py_INCREF(Py_None); resultobj = Py_None;
25494 {
25495 if (temp2)
25496 delete arg2;
25497 }
25498 return resultobj;
25499 fail:
25500 {
25501 if (temp2)
25502 delete arg2;
25503 }
25504 return NULL;
25505 }
25506
25507
25508 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25509 PyObject *obj;
25510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25511 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25512 Py_INCREF(obj);
25513 return Py_BuildValue((char *)"");
25514 }
25515 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25516 PyObject *resultobj;
25517 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25518 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25519 wxCustomDataObject *result;
25520 PyObject * obj0 = 0 ;
25521 char *kwnames[] = {
25522 (char *) "format", NULL
25523 };
25524
25525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25526 if (obj0) {
25527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25528 SWIG_POINTER_EXCEPTION | 0)) == -1)
25529 SWIG_fail;
25530 if (arg1 == NULL) {
25531 PyErr_SetString(PyExc_TypeError,"null reference");
25532 SWIG_fail;
25533 }
25534 }
25535 {
25536 PyThreadState* __tstate = wxPyBeginAllowThreads();
25537 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25538
25539 wxPyEndAllowThreads(__tstate);
25540 if (PyErr_Occurred()) SWIG_fail;
25541 }
25542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25543 return resultobj;
25544 fail:
25545 return NULL;
25546 }
25547
25548
25549 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25550 PyObject *resultobj;
25551 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25552 PyObject *arg2 = (PyObject *) 0 ;
25553 bool result;
25554 PyObject * obj0 = 0 ;
25555 PyObject * obj1 = 0 ;
25556 char *kwnames[] = {
25557 (char *) "self",(char *) "data", NULL
25558 };
25559
25560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25563 arg2 = obj1;
25564 {
25565 PyThreadState* __tstate = wxPyBeginAllowThreads();
25566 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25567
25568 wxPyEndAllowThreads(__tstate);
25569 if (PyErr_Occurred()) SWIG_fail;
25570 }
25571 {
25572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25573 }
25574 return resultobj;
25575 fail:
25576 return NULL;
25577 }
25578
25579
25580 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25581 PyObject *resultobj;
25582 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25583 size_t result;
25584 PyObject * obj0 = 0 ;
25585 char *kwnames[] = {
25586 (char *) "self", NULL
25587 };
25588
25589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25592 {
25593 PyThreadState* __tstate = wxPyBeginAllowThreads();
25594 result = (size_t)(arg1)->GetSize();
25595
25596 wxPyEndAllowThreads(__tstate);
25597 if (PyErr_Occurred()) SWIG_fail;
25598 }
25599 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25600 return resultobj;
25601 fail:
25602 return NULL;
25603 }
25604
25605
25606 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25607 PyObject *resultobj;
25608 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25609 PyObject *result;
25610 PyObject * obj0 = 0 ;
25611 char *kwnames[] = {
25612 (char *) "self", NULL
25613 };
25614
25615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25618 {
25619 PyThreadState* __tstate = wxPyBeginAllowThreads();
25620 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25621
25622 wxPyEndAllowThreads(__tstate);
25623 if (PyErr_Occurred()) SWIG_fail;
25624 }
25625 resultobj = result;
25626 return resultobj;
25627 fail:
25628 return NULL;
25629 }
25630
25631
25632 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25633 PyObject *obj;
25634 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25635 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25636 Py_INCREF(obj);
25637 return Py_BuildValue((char *)"");
25638 }
25639 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25640 PyObject *resultobj;
25641 wxURLDataObject *result;
25642 char *kwnames[] = {
25643 NULL
25644 };
25645
25646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25647 {
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 result = (wxURLDataObject *)new wxURLDataObject();
25650
25651 wxPyEndAllowThreads(__tstate);
25652 if (PyErr_Occurred()) SWIG_fail;
25653 }
25654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25655 return resultobj;
25656 fail:
25657 return NULL;
25658 }
25659
25660
25661 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25662 PyObject *resultobj;
25663 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25664 wxString result;
25665 PyObject * obj0 = 0 ;
25666 char *kwnames[] = {
25667 (char *) "self", NULL
25668 };
25669
25670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25673 {
25674 PyThreadState* __tstate = wxPyBeginAllowThreads();
25675 result = (arg1)->GetURL();
25676
25677 wxPyEndAllowThreads(__tstate);
25678 if (PyErr_Occurred()) SWIG_fail;
25679 }
25680 {
25681 #if wxUSE_UNICODE
25682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25683 #else
25684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25685 #endif
25686 }
25687 return resultobj;
25688 fail:
25689 return NULL;
25690 }
25691
25692
25693 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj;
25695 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25696 wxString *arg2 = 0 ;
25697 bool temp2 = False ;
25698 PyObject * obj0 = 0 ;
25699 PyObject * obj1 = 0 ;
25700 char *kwnames[] = {
25701 (char *) "self",(char *) "url", NULL
25702 };
25703
25704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25707 {
25708 arg2 = wxString_in_helper(obj1);
25709 if (arg2 == NULL) SWIG_fail;
25710 temp2 = True;
25711 }
25712 {
25713 PyThreadState* __tstate = wxPyBeginAllowThreads();
25714 (arg1)->SetURL((wxString const &)*arg2);
25715
25716 wxPyEndAllowThreads(__tstate);
25717 if (PyErr_Occurred()) SWIG_fail;
25718 }
25719 Py_INCREF(Py_None); resultobj = Py_None;
25720 {
25721 if (temp2)
25722 delete arg2;
25723 }
25724 return resultobj;
25725 fail:
25726 {
25727 if (temp2)
25728 delete arg2;
25729 }
25730 return NULL;
25731 }
25732
25733
25734 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25735 PyObject *obj;
25736 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25737 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25738 Py_INCREF(obj);
25739 return Py_BuildValue((char *)"");
25740 }
25741 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25742 PyObject *resultobj;
25743 wxMetafileDataObject *result;
25744 char *kwnames[] = {
25745 NULL
25746 };
25747
25748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25749 {
25750 PyThreadState* __tstate = wxPyBeginAllowThreads();
25751 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25752
25753 wxPyEndAllowThreads(__tstate);
25754 if (PyErr_Occurred()) SWIG_fail;
25755 }
25756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25757 return resultobj;
25758 fail:
25759 return NULL;
25760 }
25761
25762
25763 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25764 PyObject *resultobj;
25765 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25766 wxMetafile *arg2 = 0 ;
25767 PyObject * obj0 = 0 ;
25768 PyObject * obj1 = 0 ;
25769 char *kwnames[] = {
25770 (char *) "self",(char *) "metafile", NULL
25771 };
25772
25773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25776 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25777 SWIG_POINTER_EXCEPTION | 0)) == -1)
25778 SWIG_fail;
25779 if (arg2 == NULL) {
25780 PyErr_SetString(PyExc_TypeError,"null reference");
25781 SWIG_fail;
25782 }
25783 {
25784 PyThreadState* __tstate = wxPyBeginAllowThreads();
25785 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25786
25787 wxPyEndAllowThreads(__tstate);
25788 if (PyErr_Occurred()) SWIG_fail;
25789 }
25790 Py_INCREF(Py_None); resultobj = Py_None;
25791 return resultobj;
25792 fail:
25793 return NULL;
25794 }
25795
25796
25797 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25798 PyObject *resultobj;
25799 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25800 wxMetafile result;
25801 PyObject * obj0 = 0 ;
25802 char *kwnames[] = {
25803 (char *) "self", NULL
25804 };
25805
25806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25809 {
25810 PyThreadState* __tstate = wxPyBeginAllowThreads();
25811 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25812
25813 wxPyEndAllowThreads(__tstate);
25814 if (PyErr_Occurred()) SWIG_fail;
25815 }
25816 {
25817 wxMetafile * resultptr;
25818 resultptr = new wxMetafile((wxMetafile &) result);
25819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25820 }
25821 return resultobj;
25822 fail:
25823 return NULL;
25824 }
25825
25826
25827 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25828 PyObject *obj;
25829 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25830 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25831 Py_INCREF(obj);
25832 return Py_BuildValue((char *)"");
25833 }
25834 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25835 PyObject *resultobj;
25836 int arg1 ;
25837 bool result;
25838 PyObject * obj0 = 0 ;
25839 char *kwnames[] = {
25840 (char *) "res", NULL
25841 };
25842
25843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25844 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25845 if (PyErr_Occurred()) SWIG_fail;
25846 {
25847 PyThreadState* __tstate = wxPyBeginAllowThreads();
25848 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25849
25850 wxPyEndAllowThreads(__tstate);
25851 if (PyErr_Occurred()) SWIG_fail;
25852 }
25853 {
25854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25855 }
25856 return resultobj;
25857 fail:
25858 return NULL;
25859 }
25860
25861
25862 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25863 PyObject *resultobj;
25864 wxWindow *arg1 = (wxWindow *) 0 ;
25865 wxCursor const &arg2_defvalue = wxNullCursor ;
25866 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25867 wxCursor const &arg3_defvalue = wxNullCursor ;
25868 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25869 wxCursor const &arg4_defvalue = wxNullCursor ;
25870 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25871 wxPyDropSource *result;
25872 PyObject * obj0 = 0 ;
25873 PyObject * obj1 = 0 ;
25874 PyObject * obj2 = 0 ;
25875 PyObject * obj3 = 0 ;
25876 char *kwnames[] = {
25877 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25878 };
25879
25880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25883 if (obj1) {
25884 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25885 SWIG_POINTER_EXCEPTION | 0)) == -1)
25886 SWIG_fail;
25887 if (arg2 == NULL) {
25888 PyErr_SetString(PyExc_TypeError,"null reference");
25889 SWIG_fail;
25890 }
25891 }
25892 if (obj2) {
25893 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25894 SWIG_POINTER_EXCEPTION | 0)) == -1)
25895 SWIG_fail;
25896 if (arg3 == NULL) {
25897 PyErr_SetString(PyExc_TypeError,"null reference");
25898 SWIG_fail;
25899 }
25900 }
25901 if (obj3) {
25902 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25903 SWIG_POINTER_EXCEPTION | 0)) == -1)
25904 SWIG_fail;
25905 if (arg4 == NULL) {
25906 PyErr_SetString(PyExc_TypeError,"null reference");
25907 SWIG_fail;
25908 }
25909 }
25910 {
25911 PyThreadState* __tstate = wxPyBeginAllowThreads();
25912 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25913
25914 wxPyEndAllowThreads(__tstate);
25915 if (PyErr_Occurred()) SWIG_fail;
25916 }
25917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25918 return resultobj;
25919 fail:
25920 return NULL;
25921 }
25922
25923
25924 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25925 PyObject *resultobj;
25926 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25927 PyObject *arg2 = (PyObject *) 0 ;
25928 PyObject *arg3 = (PyObject *) 0 ;
25929 int arg4 ;
25930 PyObject * obj0 = 0 ;
25931 PyObject * obj1 = 0 ;
25932 PyObject * obj2 = 0 ;
25933 PyObject * obj3 = 0 ;
25934 char *kwnames[] = {
25935 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25936 };
25937
25938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25941 arg2 = obj1;
25942 arg3 = obj2;
25943 arg4 = (int) SWIG_AsInt(obj3);
25944 if (PyErr_Occurred()) SWIG_fail;
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25948
25949 wxPyEndAllowThreads(__tstate);
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
25952 Py_INCREF(Py_None); resultobj = Py_None;
25953 return resultobj;
25954 fail:
25955 return NULL;
25956 }
25957
25958
25959 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25960 PyObject *resultobj;
25961 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25962 PyObject * obj0 = 0 ;
25963 char *kwnames[] = {
25964 (char *) "self", NULL
25965 };
25966
25967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25970 {
25971 PyThreadState* __tstate = wxPyBeginAllowThreads();
25972 delete arg1;
25973
25974 wxPyEndAllowThreads(__tstate);
25975 if (PyErr_Occurred()) SWIG_fail;
25976 }
25977 Py_INCREF(Py_None); resultobj = Py_None;
25978 return resultobj;
25979 fail:
25980 return NULL;
25981 }
25982
25983
25984 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25985 PyObject *resultobj;
25986 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25987 wxDataObject *arg2 = 0 ;
25988 PyObject * obj0 = 0 ;
25989 PyObject * obj1 = 0 ;
25990 char *kwnames[] = {
25991 (char *) "self",(char *) "data", NULL
25992 };
25993
25994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25998 SWIG_POINTER_EXCEPTION | 0)) == -1)
25999 SWIG_fail;
26000 if (arg2 == NULL) {
26001 PyErr_SetString(PyExc_TypeError,"null reference");
26002 SWIG_fail;
26003 }
26004 {
26005 PyThreadState* __tstate = wxPyBeginAllowThreads();
26006 (arg1)->SetData(*arg2);
26007
26008 wxPyEndAllowThreads(__tstate);
26009 if (PyErr_Occurred()) SWIG_fail;
26010 }
26011 Py_INCREF(Py_None); resultobj = Py_None;
26012 return resultobj;
26013 fail:
26014 return NULL;
26015 }
26016
26017
26018 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26019 PyObject *resultobj;
26020 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26021 wxDataObject *result;
26022 PyObject * obj0 = 0 ;
26023 char *kwnames[] = {
26024 (char *) "self", NULL
26025 };
26026
26027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26030 {
26031 PyThreadState* __tstate = wxPyBeginAllowThreads();
26032 result = (wxDataObject *)(arg1)->GetDataObject();
26033
26034 wxPyEndAllowThreads(__tstate);
26035 if (PyErr_Occurred()) SWIG_fail;
26036 }
26037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26038 return resultobj;
26039 fail:
26040 return NULL;
26041 }
26042
26043
26044 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26045 PyObject *resultobj;
26046 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26047 int arg2 ;
26048 wxCursor *arg3 = 0 ;
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 PyObject * obj2 = 0 ;
26052 char *kwnames[] = {
26053 (char *) "self",(char *) "res",(char *) "cursor", NULL
26054 };
26055
26056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26059 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26062 SWIG_POINTER_EXCEPTION | 0)) == -1)
26063 SWIG_fail;
26064 if (arg3 == NULL) {
26065 PyErr_SetString(PyExc_TypeError,"null reference");
26066 SWIG_fail;
26067 }
26068 {
26069 PyThreadState* __tstate = wxPyBeginAllowThreads();
26070 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26071
26072 wxPyEndAllowThreads(__tstate);
26073 if (PyErr_Occurred()) SWIG_fail;
26074 }
26075 Py_INCREF(Py_None); resultobj = Py_None;
26076 return resultobj;
26077 fail:
26078 return NULL;
26079 }
26080
26081
26082 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26083 PyObject *resultobj;
26084 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26085 int arg2 = (int) wxDrag_CopyOnly ;
26086 int result;
26087 PyObject * obj0 = 0 ;
26088 PyObject * obj1 = 0 ;
26089 char *kwnames[] = {
26090 (char *) "self",(char *) "flags", NULL
26091 };
26092
26093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26096 if (obj1) {
26097 arg2 = (int) SWIG_AsInt(obj1);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 {
26101 PyThreadState* __tstate = wxPyBeginAllowThreads();
26102 result = (int)(arg1)->DoDragDrop(arg2);
26103
26104 wxPyEndAllowThreads(__tstate);
26105 if (PyErr_Occurred()) SWIG_fail;
26106 }
26107 resultobj = SWIG_FromInt((int)result);
26108 return resultobj;
26109 fail:
26110 return NULL;
26111 }
26112
26113
26114 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
26115 PyObject *resultobj;
26116 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26117 int arg2 ;
26118 bool result;
26119 PyObject * obj0 = 0 ;
26120 PyObject * obj1 = 0 ;
26121 char *kwnames[] = {
26122 (char *) "self",(char *) "effect", NULL
26123 };
26124
26125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26128 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26129 if (PyErr_Occurred()) SWIG_fail;
26130 {
26131 PyThreadState* __tstate = wxPyBeginAllowThreads();
26132 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26133
26134 wxPyEndAllowThreads(__tstate);
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 {
26138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26139 }
26140 return resultobj;
26141 fail:
26142 return NULL;
26143 }
26144
26145
26146 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26147 PyObject *obj;
26148 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26149 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26150 Py_INCREF(obj);
26151 return Py_BuildValue((char *)"");
26152 }
26153 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26154 PyObject *resultobj;
26155 wxDataObject *arg1 = (wxDataObject *) NULL ;
26156 wxPyDropTarget *result;
26157 PyObject * obj0 = 0 ;
26158 char *kwnames[] = {
26159 (char *) "dataObject", NULL
26160 };
26161
26162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26163 if (obj0) {
26164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26165 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26166 }
26167 {
26168 PyThreadState* __tstate = wxPyBeginAllowThreads();
26169 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26170
26171 wxPyEndAllowThreads(__tstate);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26175 return resultobj;
26176 fail:
26177 return NULL;
26178 }
26179
26180
26181 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26182 PyObject *resultobj;
26183 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26184 PyObject *arg2 = (PyObject *) 0 ;
26185 PyObject *arg3 = (PyObject *) 0 ;
26186 PyObject * obj0 = 0 ;
26187 PyObject * obj1 = 0 ;
26188 PyObject * obj2 = 0 ;
26189 char *kwnames[] = {
26190 (char *) "self",(char *) "self",(char *) "_class", NULL
26191 };
26192
26193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26196 arg2 = obj1;
26197 arg3 = obj2;
26198 {
26199 PyThreadState* __tstate = wxPyBeginAllowThreads();
26200 (arg1)->_setCallbackInfo(arg2,arg3);
26201
26202 wxPyEndAllowThreads(__tstate);
26203 if (PyErr_Occurred()) SWIG_fail;
26204 }
26205 Py_INCREF(Py_None); resultobj = Py_None;
26206 return resultobj;
26207 fail:
26208 return NULL;
26209 }
26210
26211
26212 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26213 PyObject *resultobj;
26214 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26215 PyObject * obj0 = 0 ;
26216 char *kwnames[] = {
26217 (char *) "self", NULL
26218 };
26219
26220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26223 {
26224 PyThreadState* __tstate = wxPyBeginAllowThreads();
26225 delete arg1;
26226
26227 wxPyEndAllowThreads(__tstate);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 }
26230 Py_INCREF(Py_None); resultobj = Py_None;
26231 return resultobj;
26232 fail:
26233 return NULL;
26234 }
26235
26236
26237 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26238 PyObject *resultobj;
26239 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26240 wxDataObject *result;
26241 PyObject * obj0 = 0 ;
26242 char *kwnames[] = {
26243 (char *) "self", NULL
26244 };
26245
26246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26249 {
26250 PyThreadState* __tstate = wxPyBeginAllowThreads();
26251 result = (wxDataObject *)(arg1)->GetDataObject();
26252
26253 wxPyEndAllowThreads(__tstate);
26254 if (PyErr_Occurred()) SWIG_fail;
26255 }
26256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26257 return resultobj;
26258 fail:
26259 return NULL;
26260 }
26261
26262
26263 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26264 PyObject *resultobj;
26265 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26266 wxDataObject *arg2 = (wxDataObject *) 0 ;
26267 PyObject * obj0 = 0 ;
26268 PyObject * obj1 = 0 ;
26269 char *kwnames[] = {
26270 (char *) "self",(char *) "dataObject", NULL
26271 };
26272
26273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26276 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26277 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26278 {
26279 PyThreadState* __tstate = wxPyBeginAllowThreads();
26280 (arg1)->SetDataObject(arg2);
26281
26282 wxPyEndAllowThreads(__tstate);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
26285 Py_INCREF(Py_None); resultobj = Py_None;
26286 return resultobj;
26287 fail:
26288 return NULL;
26289 }
26290
26291
26292 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26293 PyObject *resultobj;
26294 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26295 int arg2 ;
26296 int arg3 ;
26297 int arg4 ;
26298 int result;
26299 PyObject * obj0 = 0 ;
26300 PyObject * obj1 = 0 ;
26301 PyObject * obj2 = 0 ;
26302 PyObject * obj3 = 0 ;
26303 char *kwnames[] = {
26304 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26305 };
26306
26307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26310 arg2 = (int) SWIG_AsInt(obj1);
26311 if (PyErr_Occurred()) SWIG_fail;
26312 arg3 = (int) SWIG_AsInt(obj2);
26313 if (PyErr_Occurred()) SWIG_fail;
26314 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26315 if (PyErr_Occurred()) SWIG_fail;
26316 {
26317 PyThreadState* __tstate = wxPyBeginAllowThreads();
26318 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26319
26320 wxPyEndAllowThreads(__tstate);
26321 if (PyErr_Occurred()) SWIG_fail;
26322 }
26323 resultobj = SWIG_FromInt((int)result);
26324 return resultobj;
26325 fail:
26326 return NULL;
26327 }
26328
26329
26330 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26331 PyObject *resultobj;
26332 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26333 int arg2 ;
26334 int arg3 ;
26335 int arg4 ;
26336 int result;
26337 PyObject * obj0 = 0 ;
26338 PyObject * obj1 = 0 ;
26339 PyObject * obj2 = 0 ;
26340 PyObject * obj3 = 0 ;
26341 char *kwnames[] = {
26342 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26343 };
26344
26345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26348 arg2 = (int) SWIG_AsInt(obj1);
26349 if (PyErr_Occurred()) SWIG_fail;
26350 arg3 = (int) SWIG_AsInt(obj2);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26353 if (PyErr_Occurred()) SWIG_fail;
26354 {
26355 PyThreadState* __tstate = wxPyBeginAllowThreads();
26356 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26357
26358 wxPyEndAllowThreads(__tstate);
26359 if (PyErr_Occurred()) SWIG_fail;
26360 }
26361 resultobj = SWIG_FromInt((int)result);
26362 return resultobj;
26363 fail:
26364 return NULL;
26365 }
26366
26367
26368 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26369 PyObject *resultobj;
26370 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26371 PyObject * obj0 = 0 ;
26372 char *kwnames[] = {
26373 (char *) "self", NULL
26374 };
26375
26376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26379 {
26380 PyThreadState* __tstate = wxPyBeginAllowThreads();
26381 (arg1)->base_OnLeave();
26382
26383 wxPyEndAllowThreads(__tstate);
26384 if (PyErr_Occurred()) SWIG_fail;
26385 }
26386 Py_INCREF(Py_None); resultobj = Py_None;
26387 return resultobj;
26388 fail:
26389 return NULL;
26390 }
26391
26392
26393 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26394 PyObject *resultobj;
26395 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26396 int arg2 ;
26397 int arg3 ;
26398 bool result;
26399 PyObject * obj0 = 0 ;
26400 PyObject * obj1 = 0 ;
26401 PyObject * obj2 = 0 ;
26402 char *kwnames[] = {
26403 (char *) "self",(char *) "x",(char *) "y", NULL
26404 };
26405
26406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26409 arg2 = (int) SWIG_AsInt(obj1);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 arg3 = (int) SWIG_AsInt(obj2);
26412 if (PyErr_Occurred()) SWIG_fail;
26413 {
26414 PyThreadState* __tstate = wxPyBeginAllowThreads();
26415 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26416
26417 wxPyEndAllowThreads(__tstate);
26418 if (PyErr_Occurred()) SWIG_fail;
26419 }
26420 {
26421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26422 }
26423 return resultobj;
26424 fail:
26425 return NULL;
26426 }
26427
26428
26429 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26430 PyObject *resultobj;
26431 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26432 bool result;
26433 PyObject * obj0 = 0 ;
26434 char *kwnames[] = {
26435 (char *) "self", NULL
26436 };
26437
26438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26441 {
26442 PyThreadState* __tstate = wxPyBeginAllowThreads();
26443 result = (bool)(arg1)->GetData();
26444
26445 wxPyEndAllowThreads(__tstate);
26446 if (PyErr_Occurred()) SWIG_fail;
26447 }
26448 {
26449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26450 }
26451 return resultobj;
26452 fail:
26453 return NULL;
26454 }
26455
26456
26457 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26458 PyObject *obj;
26459 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26460 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26461 Py_INCREF(obj);
26462 return Py_BuildValue((char *)"");
26463 }
26464 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26465 PyObject *resultobj;
26466 wxPyTextDropTarget *result;
26467 char *kwnames[] = {
26468 NULL
26469 };
26470
26471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26472 {
26473 PyThreadState* __tstate = wxPyBeginAllowThreads();
26474 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26475
26476 wxPyEndAllowThreads(__tstate);
26477 if (PyErr_Occurred()) SWIG_fail;
26478 }
26479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26480 return resultobj;
26481 fail:
26482 return NULL;
26483 }
26484
26485
26486 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26487 PyObject *resultobj;
26488 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26489 PyObject *arg2 = (PyObject *) 0 ;
26490 PyObject *arg3 = (PyObject *) 0 ;
26491 PyObject * obj0 = 0 ;
26492 PyObject * obj1 = 0 ;
26493 PyObject * obj2 = 0 ;
26494 char *kwnames[] = {
26495 (char *) "self",(char *) "self",(char *) "_class", NULL
26496 };
26497
26498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26501 arg2 = obj1;
26502 arg3 = obj2;
26503 {
26504 PyThreadState* __tstate = wxPyBeginAllowThreads();
26505 (arg1)->_setCallbackInfo(arg2,arg3);
26506
26507 wxPyEndAllowThreads(__tstate);
26508 if (PyErr_Occurred()) SWIG_fail;
26509 }
26510 Py_INCREF(Py_None); resultobj = Py_None;
26511 return resultobj;
26512 fail:
26513 return NULL;
26514 }
26515
26516
26517 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26518 PyObject *resultobj;
26519 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26520 int arg2 ;
26521 int arg3 ;
26522 int arg4 ;
26523 int result;
26524 PyObject * obj0 = 0 ;
26525 PyObject * obj1 = 0 ;
26526 PyObject * obj2 = 0 ;
26527 PyObject * obj3 = 0 ;
26528 char *kwnames[] = {
26529 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26530 };
26531
26532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26535 arg2 = (int) SWIG_AsInt(obj1);
26536 if (PyErr_Occurred()) SWIG_fail;
26537 arg3 = (int) SWIG_AsInt(obj2);
26538 if (PyErr_Occurred()) SWIG_fail;
26539 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26540 if (PyErr_Occurred()) SWIG_fail;
26541 {
26542 PyThreadState* __tstate = wxPyBeginAllowThreads();
26543 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26544
26545 wxPyEndAllowThreads(__tstate);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 }
26548 resultobj = SWIG_FromInt((int)result);
26549 return resultobj;
26550 fail:
26551 return NULL;
26552 }
26553
26554
26555 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26556 PyObject *resultobj;
26557 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26558 int arg2 ;
26559 int arg3 ;
26560 int arg4 ;
26561 int result;
26562 PyObject * obj0 = 0 ;
26563 PyObject * obj1 = 0 ;
26564 PyObject * obj2 = 0 ;
26565 PyObject * obj3 = 0 ;
26566 char *kwnames[] = {
26567 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26568 };
26569
26570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26573 arg2 = (int) SWIG_AsInt(obj1);
26574 if (PyErr_Occurred()) SWIG_fail;
26575 arg3 = (int) SWIG_AsInt(obj2);
26576 if (PyErr_Occurred()) SWIG_fail;
26577 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26578 if (PyErr_Occurred()) SWIG_fail;
26579 {
26580 PyThreadState* __tstate = wxPyBeginAllowThreads();
26581 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26582
26583 wxPyEndAllowThreads(__tstate);
26584 if (PyErr_Occurred()) SWIG_fail;
26585 }
26586 resultobj = SWIG_FromInt((int)result);
26587 return resultobj;
26588 fail:
26589 return NULL;
26590 }
26591
26592
26593 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26594 PyObject *resultobj;
26595 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26596 PyObject * obj0 = 0 ;
26597 char *kwnames[] = {
26598 (char *) "self", NULL
26599 };
26600
26601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26604 {
26605 PyThreadState* __tstate = wxPyBeginAllowThreads();
26606 (arg1)->base_OnLeave();
26607
26608 wxPyEndAllowThreads(__tstate);
26609 if (PyErr_Occurred()) SWIG_fail;
26610 }
26611 Py_INCREF(Py_None); resultobj = Py_None;
26612 return resultobj;
26613 fail:
26614 return NULL;
26615 }
26616
26617
26618 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26619 PyObject *resultobj;
26620 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26621 int arg2 ;
26622 int arg3 ;
26623 bool result;
26624 PyObject * obj0 = 0 ;
26625 PyObject * obj1 = 0 ;
26626 PyObject * obj2 = 0 ;
26627 char *kwnames[] = {
26628 (char *) "self",(char *) "x",(char *) "y", NULL
26629 };
26630
26631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26634 arg2 = (int) SWIG_AsInt(obj1);
26635 if (PyErr_Occurred()) SWIG_fail;
26636 arg3 = (int) SWIG_AsInt(obj2);
26637 if (PyErr_Occurred()) SWIG_fail;
26638 {
26639 PyThreadState* __tstate = wxPyBeginAllowThreads();
26640 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26641
26642 wxPyEndAllowThreads(__tstate);
26643 if (PyErr_Occurred()) SWIG_fail;
26644 }
26645 {
26646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26647 }
26648 return resultobj;
26649 fail:
26650 return NULL;
26651 }
26652
26653
26654 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26655 PyObject *resultobj;
26656 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26657 int arg2 ;
26658 int arg3 ;
26659 int arg4 ;
26660 int result;
26661 PyObject * obj0 = 0 ;
26662 PyObject * obj1 = 0 ;
26663 PyObject * obj2 = 0 ;
26664 PyObject * obj3 = 0 ;
26665 char *kwnames[] = {
26666 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26667 };
26668
26669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26672 arg2 = (int) SWIG_AsInt(obj1);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 arg3 = (int) SWIG_AsInt(obj2);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26677 if (PyErr_Occurred()) SWIG_fail;
26678 {
26679 PyThreadState* __tstate = wxPyBeginAllowThreads();
26680 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26681
26682 wxPyEndAllowThreads(__tstate);
26683 if (PyErr_Occurred()) SWIG_fail;
26684 }
26685 resultobj = SWIG_FromInt((int)result);
26686 return resultobj;
26687 fail:
26688 return NULL;
26689 }
26690
26691
26692 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26693 PyObject *obj;
26694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26695 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26696 Py_INCREF(obj);
26697 return Py_BuildValue((char *)"");
26698 }
26699 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26700 PyObject *resultobj;
26701 wxPyFileDropTarget *result;
26702 char *kwnames[] = {
26703 NULL
26704 };
26705
26706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26707 {
26708 PyThreadState* __tstate = wxPyBeginAllowThreads();
26709 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26710
26711 wxPyEndAllowThreads(__tstate);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 }
26714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26715 return resultobj;
26716 fail:
26717 return NULL;
26718 }
26719
26720
26721 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26722 PyObject *resultobj;
26723 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26724 PyObject *arg2 = (PyObject *) 0 ;
26725 PyObject *arg3 = (PyObject *) 0 ;
26726 PyObject * obj0 = 0 ;
26727 PyObject * obj1 = 0 ;
26728 PyObject * obj2 = 0 ;
26729 char *kwnames[] = {
26730 (char *) "self",(char *) "self",(char *) "_class", NULL
26731 };
26732
26733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26736 arg2 = obj1;
26737 arg3 = obj2;
26738 {
26739 PyThreadState* __tstate = wxPyBeginAllowThreads();
26740 (arg1)->_setCallbackInfo(arg2,arg3);
26741
26742 wxPyEndAllowThreads(__tstate);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 }
26745 Py_INCREF(Py_None); resultobj = Py_None;
26746 return resultobj;
26747 fail:
26748 return NULL;
26749 }
26750
26751
26752 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26753 PyObject *resultobj;
26754 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26755 int arg2 ;
26756 int arg3 ;
26757 int arg4 ;
26758 int result;
26759 PyObject * obj0 = 0 ;
26760 PyObject * obj1 = 0 ;
26761 PyObject * obj2 = 0 ;
26762 PyObject * obj3 = 0 ;
26763 char *kwnames[] = {
26764 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26765 };
26766
26767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26770 arg2 = (int) SWIG_AsInt(obj1);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 arg3 = (int) SWIG_AsInt(obj2);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26775 if (PyErr_Occurred()) SWIG_fail;
26776 {
26777 PyThreadState* __tstate = wxPyBeginAllowThreads();
26778 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26779
26780 wxPyEndAllowThreads(__tstate);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 resultobj = SWIG_FromInt((int)result);
26784 return resultobj;
26785 fail:
26786 return NULL;
26787 }
26788
26789
26790 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26791 PyObject *resultobj;
26792 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26793 int arg2 ;
26794 int arg3 ;
26795 int arg4 ;
26796 int result;
26797 PyObject * obj0 = 0 ;
26798 PyObject * obj1 = 0 ;
26799 PyObject * obj2 = 0 ;
26800 PyObject * obj3 = 0 ;
26801 char *kwnames[] = {
26802 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26803 };
26804
26805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26808 arg2 = (int) SWIG_AsInt(obj1);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 arg3 = (int) SWIG_AsInt(obj2);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 {
26815 PyThreadState* __tstate = wxPyBeginAllowThreads();
26816 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26817
26818 wxPyEndAllowThreads(__tstate);
26819 if (PyErr_Occurred()) SWIG_fail;
26820 }
26821 resultobj = SWIG_FromInt((int)result);
26822 return resultobj;
26823 fail:
26824 return NULL;
26825 }
26826
26827
26828 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26829 PyObject *resultobj;
26830 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26831 PyObject * obj0 = 0 ;
26832 char *kwnames[] = {
26833 (char *) "self", NULL
26834 };
26835
26836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26839 {
26840 PyThreadState* __tstate = wxPyBeginAllowThreads();
26841 (arg1)->base_OnLeave();
26842
26843 wxPyEndAllowThreads(__tstate);
26844 if (PyErr_Occurred()) SWIG_fail;
26845 }
26846 Py_INCREF(Py_None); resultobj = Py_None;
26847 return resultobj;
26848 fail:
26849 return NULL;
26850 }
26851
26852
26853 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26854 PyObject *resultobj;
26855 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26856 int arg2 ;
26857 int arg3 ;
26858 bool result;
26859 PyObject * obj0 = 0 ;
26860 PyObject * obj1 = 0 ;
26861 PyObject * obj2 = 0 ;
26862 char *kwnames[] = {
26863 (char *) "self",(char *) "x",(char *) "y", NULL
26864 };
26865
26866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26869 arg2 = (int) SWIG_AsInt(obj1);
26870 if (PyErr_Occurred()) SWIG_fail;
26871 arg3 = (int) SWIG_AsInt(obj2);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 {
26874 PyThreadState* __tstate = wxPyBeginAllowThreads();
26875 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26876
26877 wxPyEndAllowThreads(__tstate);
26878 if (PyErr_Occurred()) SWIG_fail;
26879 }
26880 {
26881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26882 }
26883 return resultobj;
26884 fail:
26885 return NULL;
26886 }
26887
26888
26889 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26890 PyObject *resultobj;
26891 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26892 int arg2 ;
26893 int arg3 ;
26894 int arg4 ;
26895 int result;
26896 PyObject * obj0 = 0 ;
26897 PyObject * obj1 = 0 ;
26898 PyObject * obj2 = 0 ;
26899 PyObject * obj3 = 0 ;
26900 char *kwnames[] = {
26901 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26902 };
26903
26904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26907 arg2 = (int) SWIG_AsInt(obj1);
26908 if (PyErr_Occurred()) SWIG_fail;
26909 arg3 = (int) SWIG_AsInt(obj2);
26910 if (PyErr_Occurred()) SWIG_fail;
26911 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26912 if (PyErr_Occurred()) SWIG_fail;
26913 {
26914 PyThreadState* __tstate = wxPyBeginAllowThreads();
26915 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26916
26917 wxPyEndAllowThreads(__tstate);
26918 if (PyErr_Occurred()) SWIG_fail;
26919 }
26920 resultobj = SWIG_FromInt((int)result);
26921 return resultobj;
26922 fail:
26923 return NULL;
26924 }
26925
26926
26927 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26928 PyObject *obj;
26929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26930 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26931 Py_INCREF(obj);
26932 return Py_BuildValue((char *)"");
26933 }
26934 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj;
26936 wxClipboard *result;
26937 char *kwnames[] = {
26938 NULL
26939 };
26940
26941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26942 {
26943 PyThreadState* __tstate = wxPyBeginAllowThreads();
26944 result = (wxClipboard *)new wxClipboard();
26945
26946 wxPyEndAllowThreads(__tstate);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 }
26949 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26950 return resultobj;
26951 fail:
26952 return NULL;
26953 }
26954
26955
26956 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26957 PyObject *resultobj;
26958 wxClipboard *arg1 = (wxClipboard *) 0 ;
26959 PyObject * obj0 = 0 ;
26960 char *kwnames[] = {
26961 (char *) "self", NULL
26962 };
26963
26964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26967 {
26968 PyThreadState* __tstate = wxPyBeginAllowThreads();
26969 delete arg1;
26970
26971 wxPyEndAllowThreads(__tstate);
26972 if (PyErr_Occurred()) SWIG_fail;
26973 }
26974 Py_INCREF(Py_None); resultobj = Py_None;
26975 return resultobj;
26976 fail:
26977 return NULL;
26978 }
26979
26980
26981 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26982 PyObject *resultobj;
26983 wxClipboard *arg1 = (wxClipboard *) 0 ;
26984 bool result;
26985 PyObject * obj0 = 0 ;
26986 char *kwnames[] = {
26987 (char *) "self", NULL
26988 };
26989
26990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26993 {
26994 PyThreadState* __tstate = wxPyBeginAllowThreads();
26995 result = (bool)(arg1)->Open();
26996
26997 wxPyEndAllowThreads(__tstate);
26998 if (PyErr_Occurred()) SWIG_fail;
26999 }
27000 {
27001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27002 }
27003 return resultobj;
27004 fail:
27005 return NULL;
27006 }
27007
27008
27009 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
27010 PyObject *resultobj;
27011 wxClipboard *arg1 = (wxClipboard *) 0 ;
27012 PyObject * obj0 = 0 ;
27013 char *kwnames[] = {
27014 (char *) "self", NULL
27015 };
27016
27017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27020 {
27021 PyThreadState* __tstate = wxPyBeginAllowThreads();
27022 (arg1)->Close();
27023
27024 wxPyEndAllowThreads(__tstate);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 Py_INCREF(Py_None); resultobj = Py_None;
27028 return resultobj;
27029 fail:
27030 return NULL;
27031 }
27032
27033
27034 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
27035 PyObject *resultobj;
27036 wxClipboard *arg1 = (wxClipboard *) 0 ;
27037 bool result;
27038 PyObject * obj0 = 0 ;
27039 char *kwnames[] = {
27040 (char *) "self", NULL
27041 };
27042
27043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27046 {
27047 PyThreadState* __tstate = wxPyBeginAllowThreads();
27048 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27049
27050 wxPyEndAllowThreads(__tstate);
27051 if (PyErr_Occurred()) SWIG_fail;
27052 }
27053 {
27054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27055 }
27056 return resultobj;
27057 fail:
27058 return NULL;
27059 }
27060
27061
27062 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
27063 PyObject *resultobj;
27064 wxClipboard *arg1 = (wxClipboard *) 0 ;
27065 wxDataObject *arg2 = (wxDataObject *) 0 ;
27066 bool result;
27067 PyObject * obj0 = 0 ;
27068 PyObject * obj1 = 0 ;
27069 char *kwnames[] = {
27070 (char *) "self",(char *) "data", NULL
27071 };
27072
27073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27076 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27077 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27078 {
27079 PyThreadState* __tstate = wxPyBeginAllowThreads();
27080 result = (bool)(arg1)->AddData(arg2);
27081
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 {
27086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27087 }
27088 return resultobj;
27089 fail:
27090 return NULL;
27091 }
27092
27093
27094 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27095 PyObject *resultobj;
27096 wxClipboard *arg1 = (wxClipboard *) 0 ;
27097 wxDataObject *arg2 = (wxDataObject *) 0 ;
27098 bool result;
27099 PyObject * obj0 = 0 ;
27100 PyObject * obj1 = 0 ;
27101 char *kwnames[] = {
27102 (char *) "self",(char *) "data", NULL
27103 };
27104
27105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27109 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27110 {
27111 PyThreadState* __tstate = wxPyBeginAllowThreads();
27112 result = (bool)(arg1)->SetData(arg2);
27113
27114 wxPyEndAllowThreads(__tstate);
27115 if (PyErr_Occurred()) SWIG_fail;
27116 }
27117 {
27118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27119 }
27120 return resultobj;
27121 fail:
27122 return NULL;
27123 }
27124
27125
27126 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27127 PyObject *resultobj;
27128 wxClipboard *arg1 = (wxClipboard *) 0 ;
27129 wxDataFormat *arg2 = 0 ;
27130 bool result;
27131 PyObject * obj0 = 0 ;
27132 PyObject * obj1 = 0 ;
27133 char *kwnames[] = {
27134 (char *) "self",(char *) "format", NULL
27135 };
27136
27137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27140 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27141 SWIG_POINTER_EXCEPTION | 0)) == -1)
27142 SWIG_fail;
27143 if (arg2 == NULL) {
27144 PyErr_SetString(PyExc_TypeError,"null reference");
27145 SWIG_fail;
27146 }
27147 {
27148 PyThreadState* __tstate = wxPyBeginAllowThreads();
27149 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27150
27151 wxPyEndAllowThreads(__tstate);
27152 if (PyErr_Occurred()) SWIG_fail;
27153 }
27154 {
27155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27156 }
27157 return resultobj;
27158 fail:
27159 return NULL;
27160 }
27161
27162
27163 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27164 PyObject *resultobj;
27165 wxClipboard *arg1 = (wxClipboard *) 0 ;
27166 wxDataObject *arg2 = 0 ;
27167 bool result;
27168 PyObject * obj0 = 0 ;
27169 PyObject * obj1 = 0 ;
27170 char *kwnames[] = {
27171 (char *) "self",(char *) "data", NULL
27172 };
27173
27174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27177 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27178 SWIG_POINTER_EXCEPTION | 0)) == -1)
27179 SWIG_fail;
27180 if (arg2 == NULL) {
27181 PyErr_SetString(PyExc_TypeError,"null reference");
27182 SWIG_fail;
27183 }
27184 {
27185 PyThreadState* __tstate = wxPyBeginAllowThreads();
27186 result = (bool)(arg1)->GetData(*arg2);
27187
27188 wxPyEndAllowThreads(__tstate);
27189 if (PyErr_Occurred()) SWIG_fail;
27190 }
27191 {
27192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27193 }
27194 return resultobj;
27195 fail:
27196 return NULL;
27197 }
27198
27199
27200 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27201 PyObject *resultobj;
27202 wxClipboard *arg1 = (wxClipboard *) 0 ;
27203 PyObject * obj0 = 0 ;
27204 char *kwnames[] = {
27205 (char *) "self", NULL
27206 };
27207
27208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27211 {
27212 PyThreadState* __tstate = wxPyBeginAllowThreads();
27213 (arg1)->Clear();
27214
27215 wxPyEndAllowThreads(__tstate);
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 Py_INCREF(Py_None); resultobj = Py_None;
27219 return resultobj;
27220 fail:
27221 return NULL;
27222 }
27223
27224
27225 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27226 PyObject *resultobj;
27227 wxClipboard *arg1 = (wxClipboard *) 0 ;
27228 bool result;
27229 PyObject * obj0 = 0 ;
27230 char *kwnames[] = {
27231 (char *) "self", NULL
27232 };
27233
27234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27237 {
27238 PyThreadState* __tstate = wxPyBeginAllowThreads();
27239 result = (bool)(arg1)->Flush();
27240
27241 wxPyEndAllowThreads(__tstate);
27242 if (PyErr_Occurred()) SWIG_fail;
27243 }
27244 {
27245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27246 }
27247 return resultobj;
27248 fail:
27249 return NULL;
27250 }
27251
27252
27253 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27254 PyObject *resultobj;
27255 wxClipboard *arg1 = (wxClipboard *) 0 ;
27256 bool arg2 = (bool) True ;
27257 PyObject * obj0 = 0 ;
27258 PyObject * obj1 = 0 ;
27259 char *kwnames[] = {
27260 (char *) "self",(char *) "primary", NULL
27261 };
27262
27263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27266 if (obj1) {
27267 arg2 = (bool) SWIG_AsBool(obj1);
27268 if (PyErr_Occurred()) SWIG_fail;
27269 }
27270 {
27271 PyThreadState* __tstate = wxPyBeginAllowThreads();
27272 (arg1)->UsePrimarySelection(arg2);
27273
27274 wxPyEndAllowThreads(__tstate);
27275 if (PyErr_Occurred()) SWIG_fail;
27276 }
27277 Py_INCREF(Py_None); resultobj = Py_None;
27278 return resultobj;
27279 fail:
27280 return NULL;
27281 }
27282
27283
27284 static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
27285 PyObject *resultobj;
27286 wxClipboard *result;
27287 char *kwnames[] = {
27288 NULL
27289 };
27290
27291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27292 {
27293 PyThreadState* __tstate = wxPyBeginAllowThreads();
27294 result = (wxClipboard *)wxClipboard::Get();
27295
27296 wxPyEndAllowThreads(__tstate);
27297 if (PyErr_Occurred()) SWIG_fail;
27298 }
27299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27300 return resultobj;
27301 fail:
27302 return NULL;
27303 }
27304
27305
27306 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27307 PyObject *obj;
27308 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27309 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27310 Py_INCREF(obj);
27311 return Py_BuildValue((char *)"");
27312 }
27313 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj;
27315 wxClipboard *arg1 = (wxClipboard *) NULL ;
27316 wxClipboardLocker *result;
27317 PyObject * obj0 = 0 ;
27318 char *kwnames[] = {
27319 (char *) "clipboard", NULL
27320 };
27321
27322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27323 if (obj0) {
27324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27326 }
27327 {
27328 PyThreadState* __tstate = wxPyBeginAllowThreads();
27329 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27330
27331 wxPyEndAllowThreads(__tstate);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27342 PyObject *resultobj;
27343 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27344 PyObject * obj0 = 0 ;
27345 char *kwnames[] = {
27346 (char *) "self", NULL
27347 };
27348
27349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27352 {
27353 PyThreadState* __tstate = wxPyBeginAllowThreads();
27354 delete arg1;
27355
27356 wxPyEndAllowThreads(__tstate);
27357 if (PyErr_Occurred()) SWIG_fail;
27358 }
27359 Py_INCREF(Py_None); resultobj = Py_None;
27360 return resultobj;
27361 fail:
27362 return NULL;
27363 }
27364
27365
27366 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27367 PyObject *resultobj;
27368 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27369 bool result;
27370 PyObject * obj0 = 0 ;
27371 char *kwnames[] = {
27372 (char *) "self", NULL
27373 };
27374
27375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27378 {
27379 PyThreadState* __tstate = wxPyBeginAllowThreads();
27380 result = (bool)wxClipboardLocker___nonzero__(arg1);
27381
27382 wxPyEndAllowThreads(__tstate);
27383 if (PyErr_Occurred()) SWIG_fail;
27384 }
27385 {
27386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27387 }
27388 return resultobj;
27389 fail:
27390 return NULL;
27391 }
27392
27393
27394 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27395 PyObject *obj;
27396 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27397 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27398 Py_INCREF(obj);
27399 return Py_BuildValue((char *)"");
27400 }
27401 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27402 PyObject *resultobj;
27403 int arg1 = (int) 0 ;
27404 int arg2 = (int) 0 ;
27405 int arg3 = (int) 0 ;
27406 int arg4 = (int) 0 ;
27407 wxVideoMode *result;
27408 PyObject * obj0 = 0 ;
27409 PyObject * obj1 = 0 ;
27410 PyObject * obj2 = 0 ;
27411 PyObject * obj3 = 0 ;
27412 char *kwnames[] = {
27413 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27414 };
27415
27416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27417 if (obj0) {
27418 arg1 = (int) SWIG_AsInt(obj0);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 if (obj1) {
27422 arg2 = (int) SWIG_AsInt(obj1);
27423 if (PyErr_Occurred()) SWIG_fail;
27424 }
27425 if (obj2) {
27426 arg3 = (int) SWIG_AsInt(obj2);
27427 if (PyErr_Occurred()) SWIG_fail;
27428 }
27429 if (obj3) {
27430 arg4 = (int) SWIG_AsInt(obj3);
27431 if (PyErr_Occurred()) SWIG_fail;
27432 }
27433 {
27434 PyThreadState* __tstate = wxPyBeginAllowThreads();
27435 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27436
27437 wxPyEndAllowThreads(__tstate);
27438 if (PyErr_Occurred()) SWIG_fail;
27439 }
27440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27441 return resultobj;
27442 fail:
27443 return NULL;
27444 }
27445
27446
27447 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27448 PyObject *resultobj;
27449 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27450 PyObject * obj0 = 0 ;
27451 char *kwnames[] = {
27452 (char *) "self", NULL
27453 };
27454
27455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27458 {
27459 PyThreadState* __tstate = wxPyBeginAllowThreads();
27460 delete arg1;
27461
27462 wxPyEndAllowThreads(__tstate);
27463 if (PyErr_Occurred()) SWIG_fail;
27464 }
27465 Py_INCREF(Py_None); resultobj = Py_None;
27466 return resultobj;
27467 fail:
27468 return NULL;
27469 }
27470
27471
27472 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27473 PyObject *resultobj;
27474 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27475 wxVideoMode *arg2 = 0 ;
27476 bool result;
27477 PyObject * obj0 = 0 ;
27478 PyObject * obj1 = 0 ;
27479 char *kwnames[] = {
27480 (char *) "self",(char *) "other", NULL
27481 };
27482
27483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27486 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27487 SWIG_POINTER_EXCEPTION | 0)) == -1)
27488 SWIG_fail;
27489 if (arg2 == NULL) {
27490 PyErr_SetString(PyExc_TypeError,"null reference");
27491 SWIG_fail;
27492 }
27493 {
27494 PyThreadState* __tstate = wxPyBeginAllowThreads();
27495 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27496
27497 wxPyEndAllowThreads(__tstate);
27498 if (PyErr_Occurred()) SWIG_fail;
27499 }
27500 {
27501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27502 }
27503 return resultobj;
27504 fail:
27505 return NULL;
27506 }
27507
27508
27509 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27510 PyObject *resultobj;
27511 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27512 int result;
27513 PyObject * obj0 = 0 ;
27514 char *kwnames[] = {
27515 (char *) "self", NULL
27516 };
27517
27518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27521 {
27522 PyThreadState* __tstate = wxPyBeginAllowThreads();
27523 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27524
27525 wxPyEndAllowThreads(__tstate);
27526 if (PyErr_Occurred()) SWIG_fail;
27527 }
27528 resultobj = SWIG_FromInt((int)result);
27529 return resultobj;
27530 fail:
27531 return NULL;
27532 }
27533
27534
27535 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27536 PyObject *resultobj;
27537 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27538 int result;
27539 PyObject * obj0 = 0 ;
27540 char *kwnames[] = {
27541 (char *) "self", NULL
27542 };
27543
27544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27547 {
27548 PyThreadState* __tstate = wxPyBeginAllowThreads();
27549 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27550
27551 wxPyEndAllowThreads(__tstate);
27552 if (PyErr_Occurred()) SWIG_fail;
27553 }
27554 resultobj = SWIG_FromInt((int)result);
27555 return resultobj;
27556 fail:
27557 return NULL;
27558 }
27559
27560
27561 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27562 PyObject *resultobj;
27563 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27564 int result;
27565 PyObject * obj0 = 0 ;
27566 char *kwnames[] = {
27567 (char *) "self", NULL
27568 };
27569
27570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27573 {
27574 PyThreadState* __tstate = wxPyBeginAllowThreads();
27575 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27576
27577 wxPyEndAllowThreads(__tstate);
27578 if (PyErr_Occurred()) SWIG_fail;
27579 }
27580 resultobj = SWIG_FromInt((int)result);
27581 return resultobj;
27582 fail:
27583 return NULL;
27584 }
27585
27586
27587 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27588 PyObject *resultobj;
27589 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27590 bool result;
27591 PyObject * obj0 = 0 ;
27592 char *kwnames[] = {
27593 (char *) "self", NULL
27594 };
27595
27596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27599 {
27600 PyThreadState* __tstate = wxPyBeginAllowThreads();
27601 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27602
27603 wxPyEndAllowThreads(__tstate);
27604 if (PyErr_Occurred()) SWIG_fail;
27605 }
27606 {
27607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27608 }
27609 return resultobj;
27610 fail:
27611 return NULL;
27612 }
27613
27614
27615 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27616 PyObject *resultobj;
27617 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27618 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27619 bool result;
27620 PyObject * obj0 = 0 ;
27621 PyObject * obj1 = 0 ;
27622 char *kwnames[] = {
27623 (char *) "self",(char *) "other", NULL
27624 };
27625
27626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27631 {
27632 PyThreadState* __tstate = wxPyBeginAllowThreads();
27633 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27634
27635 wxPyEndAllowThreads(__tstate);
27636 if (PyErr_Occurred()) SWIG_fail;
27637 }
27638 {
27639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27640 }
27641 return resultobj;
27642 fail:
27643 return NULL;
27644 }
27645
27646
27647 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27648 PyObject *resultobj;
27649 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27650 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27651 bool result;
27652 PyObject * obj0 = 0 ;
27653 PyObject * obj1 = 0 ;
27654 char *kwnames[] = {
27655 (char *) "self",(char *) "other", NULL
27656 };
27657
27658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27666
27667 wxPyEndAllowThreads(__tstate);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 {
27671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27672 }
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27680 PyObject *resultobj;
27681 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27682 int arg2 ;
27683 PyObject * obj0 = 0 ;
27684 PyObject * obj1 = 0 ;
27685 char *kwnames[] = {
27686 (char *) "self",(char *) "w", NULL
27687 };
27688
27689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27692 arg2 = (int) SWIG_AsInt(obj1);
27693 if (PyErr_Occurred()) SWIG_fail;
27694 if (arg1) (arg1)->w = arg2;
27695
27696 Py_INCREF(Py_None); resultobj = Py_None;
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj;
27705 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27706 int result;
27707 PyObject * obj0 = 0 ;
27708 char *kwnames[] = {
27709 (char *) "self", NULL
27710 };
27711
27712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27715 result = (int) ((arg1)->w);
27716
27717 resultobj = SWIG_FromInt((int)result);
27718 return resultobj;
27719 fail:
27720 return NULL;
27721 }
27722
27723
27724 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27725 PyObject *resultobj;
27726 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27727 int arg2 ;
27728 PyObject * obj0 = 0 ;
27729 PyObject * obj1 = 0 ;
27730 char *kwnames[] = {
27731 (char *) "self",(char *) "h", NULL
27732 };
27733
27734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27737 arg2 = (int) SWIG_AsInt(obj1);
27738 if (PyErr_Occurred()) SWIG_fail;
27739 if (arg1) (arg1)->h = arg2;
27740
27741 Py_INCREF(Py_None); resultobj = Py_None;
27742 return resultobj;
27743 fail:
27744 return NULL;
27745 }
27746
27747
27748 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27749 PyObject *resultobj;
27750 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27751 int result;
27752 PyObject * obj0 = 0 ;
27753 char *kwnames[] = {
27754 (char *) "self", NULL
27755 };
27756
27757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27760 result = (int) ((arg1)->h);
27761
27762 resultobj = SWIG_FromInt((int)result);
27763 return resultobj;
27764 fail:
27765 return NULL;
27766 }
27767
27768
27769 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27770 PyObject *resultobj;
27771 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27772 int arg2 ;
27773 PyObject * obj0 = 0 ;
27774 PyObject * obj1 = 0 ;
27775 char *kwnames[] = {
27776 (char *) "self",(char *) "bpp", NULL
27777 };
27778
27779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27782 arg2 = (int) SWIG_AsInt(obj1);
27783 if (PyErr_Occurred()) SWIG_fail;
27784 if (arg1) (arg1)->bpp = arg2;
27785
27786 Py_INCREF(Py_None); resultobj = Py_None;
27787 return resultobj;
27788 fail:
27789 return NULL;
27790 }
27791
27792
27793 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27794 PyObject *resultobj;
27795 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27796 int result;
27797 PyObject * obj0 = 0 ;
27798 char *kwnames[] = {
27799 (char *) "self", NULL
27800 };
27801
27802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27805 result = (int) ((arg1)->bpp);
27806
27807 resultobj = SWIG_FromInt((int)result);
27808 return resultobj;
27809 fail:
27810 return NULL;
27811 }
27812
27813
27814 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27815 PyObject *resultobj;
27816 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27817 int arg2 ;
27818 PyObject * obj0 = 0 ;
27819 PyObject * obj1 = 0 ;
27820 char *kwnames[] = {
27821 (char *) "self",(char *) "refresh", NULL
27822 };
27823
27824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27827 arg2 = (int) SWIG_AsInt(obj1);
27828 if (PyErr_Occurred()) SWIG_fail;
27829 if (arg1) (arg1)->refresh = arg2;
27830
27831 Py_INCREF(Py_None); resultobj = Py_None;
27832 return resultobj;
27833 fail:
27834 return NULL;
27835 }
27836
27837
27838 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27839 PyObject *resultobj;
27840 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27841 int result;
27842 PyObject * obj0 = 0 ;
27843 char *kwnames[] = {
27844 (char *) "self", NULL
27845 };
27846
27847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27850 result = (int) ((arg1)->refresh);
27851
27852 resultobj = SWIG_FromInt((int)result);
27853 return resultobj;
27854 fail:
27855 return NULL;
27856 }
27857
27858
27859 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27860 PyObject *obj;
27861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27862 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27863 Py_INCREF(obj);
27864 return Py_BuildValue((char *)"");
27865 }
27866 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27867 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27868 return 1;
27869 }
27870
27871
27872 static PyObject *_wrap_DefaultVideoMode_get() {
27873 PyObject *pyobj;
27874
27875 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27876 return pyobj;
27877 }
27878
27879
27880 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27881 PyObject *resultobj;
27882 size_t arg1 = (size_t) 0 ;
27883 wxDisplay *result;
27884 PyObject * obj0 = 0 ;
27885 char *kwnames[] = {
27886 (char *) "index", NULL
27887 };
27888
27889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27890 if (obj0) {
27891 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27892 if (PyErr_Occurred()) SWIG_fail;
27893 }
27894 {
27895 PyThreadState* __tstate = wxPyBeginAllowThreads();
27896 result = (wxDisplay *)new wxDisplay(arg1);
27897
27898 wxPyEndAllowThreads(__tstate);
27899 if (PyErr_Occurred()) SWIG_fail;
27900 }
27901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27902 return resultobj;
27903 fail:
27904 return NULL;
27905 }
27906
27907
27908 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27909 PyObject *resultobj;
27910 wxDisplay *arg1 = (wxDisplay *) 0 ;
27911 PyObject * obj0 = 0 ;
27912 char *kwnames[] = {
27913 (char *) "self", NULL
27914 };
27915
27916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27919 {
27920 PyThreadState* __tstate = wxPyBeginAllowThreads();
27921 delete arg1;
27922
27923 wxPyEndAllowThreads(__tstate);
27924 if (PyErr_Occurred()) SWIG_fail;
27925 }
27926 Py_INCREF(Py_None); resultobj = Py_None;
27927 return resultobj;
27928 fail:
27929 return NULL;
27930 }
27931
27932
27933 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27934 PyObject *resultobj;
27935 size_t result;
27936 char *kwnames[] = {
27937 NULL
27938 };
27939
27940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27941 {
27942 PyThreadState* __tstate = wxPyBeginAllowThreads();
27943 result = (size_t)wxDisplay::GetCount();
27944
27945 wxPyEndAllowThreads(__tstate);
27946 if (PyErr_Occurred()) SWIG_fail;
27947 }
27948 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27949 return resultobj;
27950 fail:
27951 return NULL;
27952 }
27953
27954
27955 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27956 PyObject *resultobj;
27957 wxPoint *arg1 = 0 ;
27958 int result;
27959 wxPoint temp1 ;
27960 PyObject * obj0 = 0 ;
27961 char *kwnames[] = {
27962 (char *) "pt", NULL
27963 };
27964
27965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27966 {
27967 arg1 = &temp1;
27968 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27969 }
27970 {
27971 PyThreadState* __tstate = wxPyBeginAllowThreads();
27972 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27973
27974 wxPyEndAllowThreads(__tstate);
27975 if (PyErr_Occurred()) SWIG_fail;
27976 }
27977 resultobj = SWIG_FromInt((int)result);
27978 return resultobj;
27979 fail:
27980 return NULL;
27981 }
27982
27983
27984 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27985 PyObject *resultobj;
27986 wxWindow *arg1 = (wxWindow *) 0 ;
27987 int result;
27988 PyObject * obj0 = 0 ;
27989 char *kwnames[] = {
27990 (char *) "window", NULL
27991 };
27992
27993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27996 {
27997 PyThreadState* __tstate = wxPyBeginAllowThreads();
27998 result = (int)wxDisplay::GetFromWindow(arg1);
27999
28000 wxPyEndAllowThreads(__tstate);
28001 if (PyErr_Occurred()) SWIG_fail;
28002 }
28003 resultobj = SWIG_FromInt((int)result);
28004 return resultobj;
28005 fail:
28006 return NULL;
28007 }
28008
28009
28010 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
28011 PyObject *resultobj;
28012 wxDisplay *arg1 = (wxDisplay *) 0 ;
28013 bool result;
28014 PyObject * obj0 = 0 ;
28015 char *kwnames[] = {
28016 (char *) "self", NULL
28017 };
28018
28019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28022 {
28023 PyThreadState* __tstate = wxPyBeginAllowThreads();
28024 result = (bool)((wxDisplay const *)arg1)->IsOk();
28025
28026 wxPyEndAllowThreads(__tstate);
28027 if (PyErr_Occurred()) SWIG_fail;
28028 }
28029 {
28030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28031 }
28032 return resultobj;
28033 fail:
28034 return NULL;
28035 }
28036
28037
28038 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
28039 PyObject *resultobj;
28040 wxDisplay *arg1 = (wxDisplay *) 0 ;
28041 wxRect result;
28042 PyObject * obj0 = 0 ;
28043 char *kwnames[] = {
28044 (char *) "self", NULL
28045 };
28046
28047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28050 {
28051 PyThreadState* __tstate = wxPyBeginAllowThreads();
28052 result = ((wxDisplay const *)arg1)->GetGeometry();
28053
28054 wxPyEndAllowThreads(__tstate);
28055 if (PyErr_Occurred()) SWIG_fail;
28056 }
28057 {
28058 wxRect * resultptr;
28059 resultptr = new wxRect((wxRect &) result);
28060 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28061 }
28062 return resultobj;
28063 fail:
28064 return NULL;
28065 }
28066
28067
28068 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
28069 PyObject *resultobj;
28070 wxDisplay *arg1 = (wxDisplay *) 0 ;
28071 wxString result;
28072 PyObject * obj0 = 0 ;
28073 char *kwnames[] = {
28074 (char *) "self", NULL
28075 };
28076
28077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28080 {
28081 PyThreadState* __tstate = wxPyBeginAllowThreads();
28082 result = ((wxDisplay const *)arg1)->GetName();
28083
28084 wxPyEndAllowThreads(__tstate);
28085 if (PyErr_Occurred()) SWIG_fail;
28086 }
28087 {
28088 #if wxUSE_UNICODE
28089 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28090 #else
28091 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28092 #endif
28093 }
28094 return resultobj;
28095 fail:
28096 return NULL;
28097 }
28098
28099
28100 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
28101 PyObject *resultobj;
28102 wxDisplay *arg1 = (wxDisplay *) 0 ;
28103 bool result;
28104 PyObject * obj0 = 0 ;
28105 char *kwnames[] = {
28106 (char *) "self", NULL
28107 };
28108
28109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28112 {
28113 PyThreadState* __tstate = wxPyBeginAllowThreads();
28114 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28115
28116 wxPyEndAllowThreads(__tstate);
28117 if (PyErr_Occurred()) SWIG_fail;
28118 }
28119 {
28120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28121 }
28122 return resultobj;
28123 fail:
28124 return NULL;
28125 }
28126
28127
28128 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28129 PyObject *resultobj;
28130 wxDisplay *arg1 = (wxDisplay *) 0 ;
28131 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28132 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28133 PyObject *result;
28134 PyObject * obj0 = 0 ;
28135 PyObject * obj1 = 0 ;
28136 char *kwnames[] = {
28137 (char *) "self",(char *) "mode", NULL
28138 };
28139
28140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28143 if (obj1) {
28144 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28145 SWIG_POINTER_EXCEPTION | 0)) == -1)
28146 SWIG_fail;
28147 if (arg2 == NULL) {
28148 PyErr_SetString(PyExc_TypeError,"null reference");
28149 SWIG_fail;
28150 }
28151 }
28152 {
28153 PyThreadState* __tstate = wxPyBeginAllowThreads();
28154 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28155
28156 wxPyEndAllowThreads(__tstate);
28157 if (PyErr_Occurred()) SWIG_fail;
28158 }
28159 resultobj = result;
28160 return resultobj;
28161 fail:
28162 return NULL;
28163 }
28164
28165
28166 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28167 PyObject *resultobj;
28168 wxDisplay *arg1 = (wxDisplay *) 0 ;
28169 wxVideoMode result;
28170 PyObject * obj0 = 0 ;
28171 char *kwnames[] = {
28172 (char *) "self", NULL
28173 };
28174
28175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28178 {
28179 PyThreadState* __tstate = wxPyBeginAllowThreads();
28180 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28181
28182 wxPyEndAllowThreads(__tstate);
28183 if (PyErr_Occurred()) SWIG_fail;
28184 }
28185 {
28186 wxVideoMode * resultptr;
28187 resultptr = new wxVideoMode((wxVideoMode &) result);
28188 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28189 }
28190 return resultobj;
28191 fail:
28192 return NULL;
28193 }
28194
28195
28196 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28197 PyObject *resultobj;
28198 wxDisplay *arg1 = (wxDisplay *) 0 ;
28199 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28200 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28201 bool result;
28202 PyObject * obj0 = 0 ;
28203 PyObject * obj1 = 0 ;
28204 char *kwnames[] = {
28205 (char *) "self",(char *) "mode", NULL
28206 };
28207
28208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28211 if (obj1) {
28212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28213 SWIG_POINTER_EXCEPTION | 0)) == -1)
28214 SWIG_fail;
28215 if (arg2 == NULL) {
28216 PyErr_SetString(PyExc_TypeError,"null reference");
28217 SWIG_fail;
28218 }
28219 }
28220 {
28221 PyThreadState* __tstate = wxPyBeginAllowThreads();
28222 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28223
28224 wxPyEndAllowThreads(__tstate);
28225 if (PyErr_Occurred()) SWIG_fail;
28226 }
28227 {
28228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28229 }
28230 return resultobj;
28231 fail:
28232 return NULL;
28233 }
28234
28235
28236 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28237 PyObject *resultobj;
28238 wxDisplay *arg1 = (wxDisplay *) 0 ;
28239 PyObject * obj0 = 0 ;
28240 char *kwnames[] = {
28241 (char *) "self", NULL
28242 };
28243
28244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28247 {
28248 PyThreadState* __tstate = wxPyBeginAllowThreads();
28249 (arg1)->ResetMode();
28250
28251 wxPyEndAllowThreads(__tstate);
28252 if (PyErr_Occurred()) SWIG_fail;
28253 }
28254 Py_INCREF(Py_None); resultobj = Py_None;
28255 return resultobj;
28256 fail:
28257 return NULL;
28258 }
28259
28260
28261 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28262 PyObject *obj;
28263 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28264 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28265 Py_INCREF(obj);
28266 return Py_BuildValue((char *)"");
28267 }
28268 static PyMethodDef SwigMethods[] = {
28269 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28276 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28283 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28344 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28352 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28368 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28373 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28376 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28379 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28385 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28399 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28405 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28411 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28414 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28428 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28431 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28432 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28435 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28462 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28464 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28466 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28468 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28475 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28481 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28494 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28499 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28502 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28519 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28527 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28573 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28601 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28611 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28627 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28643 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28657 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28666 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28709 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28712 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28715 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28719 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28811 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28812 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28813 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28814 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28815 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28816 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28817 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28818 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28819 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28820 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28831 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28844 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28846 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28852 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28876 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28896 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28910 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28918 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28919 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28924 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28930 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28931 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28932 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28933 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28934 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28935 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28936 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28937 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28938 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
28939 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28940 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28941 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28942 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28943 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28944 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28945 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28946 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28947 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28948 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28949 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28950 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28951 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28952 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28953 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28954 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28955 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28956 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28957 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28958 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28959 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28960 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28961 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28962 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28963 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28964 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28965 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28966 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28967 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28968 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28969 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28970 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28971 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28972 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28973 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28974 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28975 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
28976 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
28977 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28978 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28979 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28980 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28981 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28982 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28983 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28984 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28985 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28986 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28987 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28988 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28989 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28990 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28991 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28992 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28993 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28994 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28995 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28996 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28997 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28998 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28999 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
29000 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29001 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29002 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29003 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29004 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29005 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29006 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
29007 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
29008 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29009 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29010 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29011 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29012 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29013 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29014 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
29015 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
29016 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
29017 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
29018 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
29019 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
29020 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
29021 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
29022 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
29023 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
29024 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
29025 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
29026 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
29027 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
29028 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
29029 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29030 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29031 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
29032 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
29033 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
29034 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
29035 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
29036 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
29037 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
29038 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
29039 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
29040 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
29041 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
29042 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
29043 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
29044 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
29045 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
29046 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
29047 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
29048 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
29049 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
29050 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
29051 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
29052 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
29053 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
29054 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
29055 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
29056 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
29057 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
29058 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
29059 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
29060 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
29061 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
29062 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
29063 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
29064 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
29065 { NULL, NULL }
29066 };
29067
29068
29069 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29070
29071 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29072 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29073 }
29074 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29075 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29076 }
29077 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29078 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29079 }
29080 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29081 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29082 }
29083 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29084 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29085 }
29086 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29087 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29088 }
29089 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29090 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29091 }
29092 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29093 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29094 }
29095 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29096 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29097 }
29098 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29099 return (void *)((wxEvent *) ((wxPyEvent *) x));
29100 }
29101 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29102 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29103 }
29104 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29105 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29106 }
29107 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29108 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29109 }
29110 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29111 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29112 }
29113 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29114 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29115 }
29116 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29117 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29118 }
29119 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29120 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29121 }
29122 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29123 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29124 }
29125 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29126 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29127 }
29128 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29129 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29130 }
29131 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29132 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29133 }
29134 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29135 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29136 }
29137 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29138 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29139 }
29140 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29141 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29142 }
29143 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29144 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29145 }
29146 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29147 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29148 }
29149 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29150 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29151 }
29152 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29153 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29154 }
29155 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29156 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29157 }
29158 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29159 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29160 }
29161 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29162 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29163 }
29164 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29165 return (void *)((wxEvent *) ((wxShowEvent *) x));
29166 }
29167 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29168 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29169 }
29170 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29171 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29172 }
29173 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29174 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29175 }
29176 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29177 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29178 }
29179 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29180 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29181 }
29182 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29183 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29184 }
29185 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29186 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29187 }
29188 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29189 return (void *)((wxConfigBase *) ((wxConfig *) x));
29190 }
29191 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29192 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29193 }
29194 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29195 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29196 }
29197 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29198 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29199 }
29200 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29201 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29202 }
29203 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29204 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29205 }
29206 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29207 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29208 }
29209 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29210 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29211 }
29212 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29213 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29214 }
29215 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29216 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29217 }
29218 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29219 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29220 }
29221 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29222 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29223 }
29224 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29225 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29226 }
29227 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29228 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29229 }
29230 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29231 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29232 }
29233 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29234 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29235 }
29236 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29237 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29238 }
29239 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29240 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29241 }
29242 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29243 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29244 }
29245 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29246 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29247 }
29248 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29249 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29250 }
29251 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29252 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29253 }
29254 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29255 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29256 }
29257 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29258 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29259 }
29260 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29261 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29262 }
29263 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29264 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29265 }
29266 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29267 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29268 }
29269 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29270 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29271 }
29272 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29273 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29274 }
29275 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29276 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29277 }
29278 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29279 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29280 }
29281 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29282 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29283 }
29284 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29285 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29286 }
29287 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29288 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29289 }
29290 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29291 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29292 }
29293 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29294 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29295 }
29296 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29297 return (void *)((wxObject *) ((wxSizerItem *) x));
29298 }
29299 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29300 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29301 }
29302 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29303 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29304 }
29305 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29306 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29307 }
29308 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29309 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29310 }
29311 static void *_p_wxSizerTo_p_wxObject(void *x) {
29312 return (void *)((wxObject *) ((wxSizer *) x));
29313 }
29314 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29315 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29316 }
29317 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29318 return (void *)((wxObject *) ((wxFileHistory *) x));
29319 }
29320 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29321 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29322 }
29323 static void *_p_wxEventTo_p_wxObject(void *x) {
29324 return (void *)((wxObject *) ((wxEvent *) x));
29325 }
29326 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29327 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29328 }
29329 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29330 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29331 }
29332 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29333 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29334 }
29335 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29336 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29337 }
29338 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29339 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29340 }
29341 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29342 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29343 }
29344 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29345 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29346 }
29347 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29348 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29349 }
29350 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29351 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29352 }
29353 static void *_p_wxControlTo_p_wxObject(void *x) {
29354 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29355 }
29356 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29357 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29358 }
29359 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29360 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29361 }
29362 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29363 return (void *)((wxObject *) ((wxFSFile *) x));
29364 }
29365 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29366 return (void *)((wxObject *) ((wxClipboard *) x));
29367 }
29368 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29369 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29370 }
29371 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29372 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29373 }
29374 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29376 }
29377 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29378 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29379 }
29380 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29381 return (void *)((wxObject *) ((wxToolTip *) x));
29382 }
29383 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29384 return (void *)((wxObject *) ((wxMenuItem *) x));
29385 }
29386 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29387 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29388 }
29389 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29390 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29391 }
29392 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29393 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29394 }
29395 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29396 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29397 }
29398 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29399 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29400 }
29401 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29402 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29403 }
29404 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29405 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29406 }
29407 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29408 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29409 }
29410 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29411 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29412 }
29413 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29414 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29415 }
29416 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29417 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29418 }
29419 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29420 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29421 }
29422 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29423 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29424 }
29425 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29426 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29427 }
29428 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29429 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29430 }
29431 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29432 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29433 }
29434 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29435 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29436 }
29437 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29438 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29439 }
29440 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29441 return (void *)((wxObject *) ((wxImageHandler *) x));
29442 }
29443 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29444 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29445 }
29446 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29447 return (void *)((wxObject *) ((wxEvtHandler *) x));
29448 }
29449 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29450 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29451 }
29452 static void *_p_wxImageTo_p_wxObject(void *x) {
29453 return (void *)((wxObject *) ((wxImage *) x));
29454 }
29455 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29456 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29457 }
29458 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29459 return (void *)((wxObject *) ((wxSystemOptions *) x));
29460 }
29461 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29462 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29463 }
29464 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29466 }
29467 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29468 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29469 }
29470 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29471 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29472 }
29473 static void *_p_wxWindowTo_p_wxObject(void *x) {
29474 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29475 }
29476 static void *_p_wxMenuTo_p_wxObject(void *x) {
29477 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29478 }
29479 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29480 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29481 }
29482 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29483 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29484 }
29485 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29486 return (void *)((wxObject *) ((wxFileSystem *) x));
29487 }
29488 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29489 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29490 }
29491 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29492 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29493 }
29494 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29495 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29496 }
29497 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29498 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29499 }
29500 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29501 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29502 }
29503 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29504 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29505 }
29506 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29507 return (void *)((wxObject *) ((wxBusyInfo *) x));
29508 }
29509 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29510 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29511 }
29512 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29513 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29514 }
29515 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29516 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29517 }
29518 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29519 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29520 }
29521 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29522 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29523 }
29524 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29525 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29526 }
29527 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29528 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29529 }
29530 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29531 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29532 }
29533 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29534 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29535 }
29536 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29537 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29538 }
29539 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29540 return (void *)((wxLog *) ((wxLogStderr *) x));
29541 }
29542 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29543 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29544 }
29545 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29546 return (void *)((wxLog *) ((wxLogWindow *) x));
29547 }
29548 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29549 return (void *)((wxLog *) ((wxLogChain *) x));
29550 }
29551 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29552 return (void *)((wxLog *) ((wxLogGui *) x));
29553 }
29554 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29555 return (void *)((wxLog *) ((wxPyLog *) x));
29556 }
29557 static void *_p_wxControlTo_p_wxWindow(void *x) {
29558 return (void *)((wxWindow *) ((wxControl *) x));
29559 }
29560 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29561 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29562 }
29563 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29564 return (void *)((wxWindow *) ((wxMenuBar *) x));
29565 }
29566 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29567 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29568 }
29569 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29570 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29571 }
29572 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}};
29573 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}};
29574 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}};
29575 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}};
29576 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}};
29577 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}};
29578 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}};
29579 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}};
29580 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}};
29581 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}};
29582 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}};
29583 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}};
29584 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}};
29585 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}};
29586 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}};
29587 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}};
29588 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}};
29589 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}};
29590 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}};
29591 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}};
29592 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}};
29593 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}};
29594 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}};
29595 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}};
29596 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}};
29597 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}};
29598 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}};
29599 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}};
29600 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}};
29601 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}};
29602 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}};
29603 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}};
29604 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}};
29605 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}};
29606 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}};
29607 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}};
29608 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}};
29609 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}};
29610 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}};
29611 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}};
29612 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}};
29613 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}};
29614 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}};
29615 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}};
29616 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}};
29617 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}};
29618 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}};
29619 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}};
29620 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}};
29621 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}};
29622 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}};
29623 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}};
29624 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}};
29625 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}};
29626 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}};
29627 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}};
29628 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}};
29629 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}};
29630 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}};
29631 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}};
29632 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}};
29633 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}};
29634 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}};
29635 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}};
29636 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}};
29637 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}};
29638 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}};
29639 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}};
29640 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}};
29641 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}};
29642 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}};
29643 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}};
29644 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}};
29645 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}};
29646 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}};
29647 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}};
29648 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}};
29649 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}};
29650 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}};
29651 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}};
29652 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}};
29653 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}};
29654 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}};
29655 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}};
29656 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}};
29657 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}};
29658
29659 static swig_type_info *swig_types_initial[] = {
29660 _swigt__p_wxLogChain,
29661 _swigt__p_wxMutexGuiLocker,
29662 _swigt__p_wxMetafile,
29663 _swigt__p_wxFileHistory,
29664 _swigt__p_wxLog,
29665 _swigt__p_wxDateTime__TimeZone,
29666 _swigt__p_wxMenu,
29667 _swigt__p_wxEvent,
29668 _swigt__p_wxConfigBase,
29669 _swigt__p_wxDisplay,
29670 _swigt__p_wxFileType,
29671 _swigt__p_wxLogGui,
29672 _swigt__p_wxFont,
29673 _swigt__p_wxDataFormat,
29674 _swigt__p_wxTimerEvent,
29675 _swigt__p_wxCaret,
29676 _swigt__p_int,
29677 _swigt__p_wxSize,
29678 _swigt__p_wxClipboard,
29679 _swigt__p_wxStopWatch,
29680 _swigt__p_wxDC,
29681 _swigt__p_wxClipboardLocker,
29682 _swigt__p_wxIcon,
29683 _swigt__p_wxLogStderr,
29684 _swigt__p_wxLogTextCtrl,
29685 _swigt__p_wxTextCtrl,
29686 _swigt__p_wxBusyCursor,
29687 _swigt__p_wxPyBitmapDataObject,
29688 _swigt__p_wxPyTextDataObject,
29689 _swigt__p_wxBitmapDataObject,
29690 _swigt__p_wxTextDataObject,
29691 _swigt__p_wxDataObject,
29692 _swigt__p_wxFileDataObject,
29693 _swigt__p_wxCustomDataObject,
29694 _swigt__p_wxURLDataObject,
29695 _swigt__p_wxMetafileDataObject,
29696 _swigt__p_wxSound,
29697 _swigt__p_wxTimerRunner,
29698 _swigt__p_wxLogWindow,
29699 _swigt__p_wxTimeSpan,
29700 _swigt__p_wxArrayString,
29701 _swigt__p_wxWindowDisabler,
29702 _swigt__p_wxToolTip,
29703 _swigt__p_wxDataObjectComposite,
29704 _swigt__p_wxFileConfig,
29705 _swigt__p_wxSystemSettings,
29706 _swigt__p_wxVideoMode,
29707 _swigt__p_wxPyDataObjectSimple,
29708 _swigt__p_wxDataObjectSimple,
29709 _swigt__p_wxEvtHandler,
29710 _swigt__p_wxRect,
29711 _swigt__p_char,
29712 _swigt__p_wxSingleInstanceChecker,
29713 _swigt__p_wxFileTypeInfo,
29714 _swigt__p_wxFrame,
29715 _swigt__p_wxTimer,
29716 _swigt__p_wxMimeTypesManager,
29717 _swigt__p_wxPyArtProvider,
29718 _swigt__p_wxPyTipProvider,
29719 _swigt__p_wxTipProvider,
29720 _swigt__p_wxJoystick,
29721 _swigt__p_wxSystemOptions,
29722 _swigt__p_wxPoint,
29723 _swigt__p_wxJoystickEvent,
29724 _swigt__p_wxCursor,
29725 _swigt__p_wxObject,
29726 _swigt__p_wxOutputStream,
29727 _swigt__p_wxDateTime,
29728 _swigt__p_wxPyDropSource,
29729 _swigt__p_wxWindow,
29730 _swigt__p_wxString,
29731 _swigt__p_wxPyProcess,
29732 _swigt__p_wxBitmap,
29733 _swigt__p_wxConfig,
29734 _swigt__p_wxChar,
29735 _swigt__p_wxBusyInfo,
29736 _swigt__p_wxPyDropTarget,
29737 _swigt__p_wxPyTextDropTarget,
29738 _swigt__p_wxPyFileDropTarget,
29739 _swigt__p_wxProcessEvent,
29740 _swigt__p_wxPyLog,
29741 _swigt__p_wxLogNull,
29742 _swigt__p_wxColour,
29743 _swigt__p_wxConfigPathChanger,
29744 _swigt__p_wxPyTimer,
29745 _swigt__p_wxDateSpan,
29746 0
29747 };
29748
29749
29750 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29751
29752 static swig_const_info swig_const_table[] = {
29753 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29754 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29755 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29756 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29757 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29758 {0}};
29759
29760 #ifdef __cplusplus
29761 }
29762 #endif
29763
29764 #ifdef __cplusplus
29765 extern "C"
29766 #endif
29767 SWIGEXPORT(void) SWIG_init(void) {
29768 static PyObject *SWIG_globals = 0;
29769 static int typeinit = 0;
29770 PyObject *m, *d;
29771 int i;
29772 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29773 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29774 d = PyModule_GetDict(m);
29775
29776 if (!typeinit) {
29777 for (i = 0; swig_types_initial[i]; i++) {
29778 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29779 }
29780 typeinit = 1;
29781 }
29782 SWIG_InstallConstants(d,swig_const_table);
29783
29784 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29785 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29786 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29787 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29788 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29789 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29790 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29791 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29792 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29793 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29794 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29795 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29796 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29797 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29798 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29799 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29800 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29801 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29802 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29803 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29804 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29805 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29806 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29807 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29808 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29809 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29810 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29811 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29812 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29813 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29814 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29815 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29816 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29817 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29818 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29819 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29820 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29821 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29822 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29823 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29824 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29825 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29826 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29827 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29828 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29829 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29830 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29831 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29832 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29833 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29834 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29835 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29836 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29837 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29838 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29839 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29840 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29841 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29842 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29843 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29844 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29845 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29846 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29847 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29848 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29849 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29850 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29851 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29852 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29853 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29854 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29855 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29856 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29857 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29858 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29859 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29860 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29861 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29862 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29863 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29864 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29865 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29866 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29867 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29868 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29869 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29870 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29871 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29872 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29873 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29874 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29875 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29876 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29877 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29878 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29879 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29880 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29881 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29882 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29883 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29884
29885 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29886
29887 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29888 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29889 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29890 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29891 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29892 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29893 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29894 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29895 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29896 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29897 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29898 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29899 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29900 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29901 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29902 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29903 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29904 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29905 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29906 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29907 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29908 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29909 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29910 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29911 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29912 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29913 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29914 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29915 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29916 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29917 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29918 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29919 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29920 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29921 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29922 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29923 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29924 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29925 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29926 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29927 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29928 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29929 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29930 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29931 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29932 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29933 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29934 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29935 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29936 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29937
29938 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29939
29940 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29941 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29942 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29943 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29944 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29945 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29946 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29947 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29948 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29949 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29950 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29951 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29952 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29953 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29954 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29955 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29956 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29957 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29958 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29959 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29960 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29961 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29962 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29963 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29964 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29965 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29966 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29967 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29968 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29969 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29970 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29971 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29972 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29973 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29974 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29975 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29976 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29977 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29978 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29979 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29980 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29981 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29982 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29983 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29984 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29985 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29986 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29987 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29988 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29989 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29990 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29991 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29992 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29993 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29994 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29995 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29996 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29997 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29998
29999 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30000
30001 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
30002 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
30003 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
30004 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30005 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
30006 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
30007 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
30008 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
30009 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
30010 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30011 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30012 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
30013 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
30014 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
30015 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
30016 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
30017 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
30018 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
30019 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
30020 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
30021 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
30022 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
30023 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
30024 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
30025 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
30026 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
30027 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
30028 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
30029 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
30030 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
30031 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
30032 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
30033 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
30034 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
30035 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
30036 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
30037 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
30038 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
30039 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
30040 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
30041 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
30042 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
30043 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
30044 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
30045 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
30046 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
30047 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
30048 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
30049 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
30050 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
30051 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
30052 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
30053 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
30054 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
30055 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
30056 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
30057 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
30058 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
30059 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
30060 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
30061 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
30062 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
30063 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
30064 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
30065 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
30066 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
30067 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
30068 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
30069 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
30070 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
30071 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
30072 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
30073 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
30074 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
30075 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
30076 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
30077 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
30078 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
30079 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
30080 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
30081 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
30082 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
30083 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
30084 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
30085 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
30086 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
30087 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
30088 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
30089 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
30090 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
30091 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
30092 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
30093 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
30094 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
30095 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
30096 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
30097 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
30098 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
30099 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
30100 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
30101 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
30102 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
30103 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
30104 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
30105 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
30106 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
30107 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
30108 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
30109 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
30110 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
30111 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
30112 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
30113 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
30114 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
30115 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
30116 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
30117 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
30118 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
30119 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
30120 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
30121 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
30122 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
30123 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
30124 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
30125 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
30126 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
30127 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
30128 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
30129 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
30130 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
30131 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
30132 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
30133 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
30134 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30135 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30136 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30137 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30138 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30139 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30140 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30141 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30142 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30143 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30144 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30145 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30146 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30147 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30148 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30149 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30150 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30151 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30152 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30153 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30154 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30155 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30156 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30157 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30158 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30159 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30160 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30161 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30162 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30163 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30164 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30165 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30166 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30167 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30168 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30169 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30170 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30171 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30172 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30173 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30174 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30175 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30176 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30177 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30178 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30179 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30180 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30181 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30182 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30183 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30184 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30185 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30186 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30187 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30188 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30189 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30190 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30191 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30192 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30193 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30194 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30195 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30196 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30197 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30198 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30199 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30200 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30201
30202 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30203 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30204 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30205 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30206
30207 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30208 }
30209