]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/misc_wrap.cpp
fixed indentation
[wxWidgets.git] / wxPython / src / gtk / misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_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_wxFileHistory swig_types[2]
212 #define SWIGTYPE_p_wxLog swig_types[3]
213 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4]
214 #define SWIGTYPE_p_wxMenu swig_types[5]
215 #define SWIGTYPE_p_wxEvent swig_types[6]
216 #define SWIGTYPE_p_wxConfigBase swig_types[7]
217 #define SWIGTYPE_p_wxDisplay swig_types[8]
218 #define SWIGTYPE_p_wxFileType swig_types[9]
219 #define SWIGTYPE_p_wxLogGui swig_types[10]
220 #define SWIGTYPE_p_wxFont swig_types[11]
221 #define SWIGTYPE_p_wxDataFormat swig_types[12]
222 #define SWIGTYPE_p_wxTimerEvent swig_types[13]
223 #define SWIGTYPE_p_wxCaret swig_types[14]
224 #define SWIGTYPE_p_int swig_types[15]
225 #define SWIGTYPE_p_wxSize swig_types[16]
226 #define SWIGTYPE_p_wxClipboard swig_types[17]
227 #define SWIGTYPE_p_wxStopWatch swig_types[18]
228 #define SWIGTYPE_p_wxDC swig_types[19]
229 #define SWIGTYPE_p_wxClipboardLocker swig_types[20]
230 #define SWIGTYPE_p_wxIcon swig_types[21]
231 #define SWIGTYPE_p_wxLogStderr swig_types[22]
232 #define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
233 #define SWIGTYPE_p_wxTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxBusyCursor swig_types[25]
235 #define SWIGTYPE_p_wxPyTextDataObject swig_types[26]
236 #define SWIGTYPE_p_wxBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxDataObject swig_types[29]
239 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[30]
240 #define SWIGTYPE_p_wxFileDataObject swig_types[31]
241 #define SWIGTYPE_p_wxCustomDataObject swig_types[32]
242 #define SWIGTYPE_p_wxURLDataObject swig_types[33]
243 #define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
244 #define SWIGTYPE_p_wxSound swig_types[35]
245 #define SWIGTYPE_p_wxTimerRunner swig_types[36]
246 #define SWIGTYPE_p_wxLogWindow swig_types[37]
247 #define SWIGTYPE_p_wxTimeSpan swig_types[38]
248 #define SWIGTYPE_p_wxArrayString swig_types[39]
249 #define SWIGTYPE_p_wxWindowDisabler swig_types[40]
250 #define SWIGTYPE_p_wxToolTip swig_types[41]
251 #define SWIGTYPE_p_wxDataObjectComposite swig_types[42]
252 #define SWIGTYPE_p_wxFileConfig swig_types[43]
253 #define SWIGTYPE_p_wxSystemSettings swig_types[44]
254 #define SWIGTYPE_p_wxVideoMode swig_types[45]
255 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46]
256 #define SWIGTYPE_p_wxDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxEvtHandler swig_types[48]
258 #define SWIGTYPE_p_wxRect swig_types[49]
259 #define SWIGTYPE_p_char swig_types[50]
260 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51]
261 #define SWIGTYPE_p_wxFileTypeInfo swig_types[52]
262 #define SWIGTYPE_p_wxFrame swig_types[53]
263 #define SWIGTYPE_p_wxTimer swig_types[54]
264 #define SWIGTYPE_p_wxMimeTypesManager swig_types[55]
265 #define SWIGTYPE_p_wxPyArtProvider swig_types[56]
266 #define SWIGTYPE_p_wxPyTipProvider swig_types[57]
267 #define SWIGTYPE_p_wxTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxJoystick swig_types[59]
269 #define SWIGTYPE_p_wxSystemOptions swig_types[60]
270 #define SWIGTYPE_p_wxPoint swig_types[61]
271 #define SWIGTYPE_p_wxJoystickEvent swig_types[62]
272 #define SWIGTYPE_p_wxCursor swig_types[63]
273 #define SWIGTYPE_p_wxObject swig_types[64]
274 #define SWIGTYPE_p_wxOutputStream swig_types[65]
275 #define SWIGTYPE_p_wxDateTime swig_types[66]
276 #define SWIGTYPE_p_wxPyDropSource swig_types[67]
277 #define SWIGTYPE_p_wxWindow swig_types[68]
278 #define SWIGTYPE_p_wxString swig_types[69]
279 #define SWIGTYPE_p_wxPyProcess swig_types[70]
280 #define SWIGTYPE_p_wxBitmap swig_types[71]
281 #define SWIGTYPE_p_wxConfig swig_types[72]
282 #define SWIGTYPE_p_wxChar swig_types[73]
283 #define SWIGTYPE_p_wxBusyInfo swig_types[74]
284 #define SWIGTYPE_p_wxPyDropTarget swig_types[75]
285 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxProcessEvent swig_types[78]
288 #define SWIGTYPE_p_wxPyLog swig_types[79]
289 #define SWIGTYPE_p_wxLogNull swig_types[80]
290 #define SWIGTYPE_p_wxColour swig_types[81]
291 #define SWIGTYPE_p_wxByte swig_types[82]
292 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293 #define SWIGTYPE_p_wxPyTimer swig_types[84]
294 #define SWIGTYPE_p_wxDateSpan swig_types[85]
295 static swig_type_info *swig_types[87];
296
297 /* -------- TYPES TABLE (END) -------- */
298
299
300 /*-----------------------------------------------
301 @(target):= _misc.so
302 ------------------------------------------------*/
303 #define SWIG_init init_misc
304
305 #define SWIG_name "_misc"
306
307 /* Auxiliar swig macros */
308
309 #ifdef __cplusplus
310 #define SWIGSTATICINLINE(a) static inline a
311 #define SWIGSTATIC(a) static a
312 #define swig_new_array(type, size) (new type[(size)])
313 #define swig_delete_array(cptr) delete[] cptr
314 #define swig_const_cast(type,a) const_cast<type>(a)
315 #define swig_static_cast(type,a) static_cast<type>(a)
316 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318 #ifdef HAVE_NUMERIC_CAST
319 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
320 #else
321 #define swig_numeric_cast(type,a) static_cast<type>(a)
322 #endif
323
324 #else /* C case */
325
326 #define SWIGSTATICINLINE(a) static a
327 #define SWIGSTATIC(a) static a
328 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329 #define swig_delete_array(cptr) free((char*)cptr)
330 #define swig_const_cast(type,a) (type)(a)
331 #define swig_static_cast(type,a) (type)(a)
332 #define swig_reinterpret_cast(type,a) (type)(a)
333 #define swig_numeric_cast(type,a) (type)(a)
334
335 #endif /* __cplusplus */
336
337
338 #define SWIG_FromSignedChar PyInt_FromLong
339 #define SWIG_FromUnsignedChar PyInt_FromLong
340 #define SWIG_FromShort PyInt_FromLong
341 #define SWIG_FromUnsignedShort PyInt_FromLong
342 #define SWIG_FromInt PyInt_FromLong
343 #define SWIG_FromLong PyInt_FromLong
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346 #define SWIG_FromFloat PyFloat_FromDouble
347 #define SWIG_FromDouble PyFloat_FromDouble
348
349
350 #include "wx/wxPython/wxPython.h"
351 #include "wx/wxPython/pyclasses.h"
352 #include "wx/wxPython/pyistream.h"
353
354
355 static const wxString wxPyEmptyString(wxEmptyString);
356
357
358
359 #include <limits.h>
360
361
362 SWIGSTATICINLINE(long)
363 SWIG_CheckLongInRange(long value, const char* type,
364 long min_value, long max_value)
365 {
366 if (!PyErr_Occurred()) {
367 if (value < min_value) {
368 PyObject *err =
369 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
370 value, type, min_value);
371
372 PyErr_SetObject(PyExc_OverflowError, err);
373 Py_DECREF(err);
374 } else if (value > max_value) {
375 PyObject *err =
376 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
377 value, type, max_value);
378 PyErr_SetObject(PyExc_OverflowError, err);
379 Py_DECREF(err);
380 }
381 }
382 return value;
383 }
384
385
386 SWIGSTATICINLINE(long)
387 SWIG_AsLong(PyObject * obj)
388 {
389 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
390 }
391
392
393 #if INT_MAX != LONG_MAX
394 SWIGSTATICINLINE(int)
395 SWIG_AsInt(PyObject *obj)
396 {
397 return swig_numeric_cast(int,
398 SWIG_CheckLongInRange(SWIG_AsLong(obj),
399 "int", INT_MIN, INT_MAX));
400 }
401 #else
402 #define SWIG_AsInt SWIG_AsLong
403 #endif
404
405
406 SWIGSTATICINLINE(int)
407 SWIG_CheckInt(PyObject* obj)
408 {
409 SWIG_AsInt(obj);
410 if (PyErr_Occurred()) {
411 PyErr_Clear();
412 return 0;
413 } else {
414 return 1;
415 }
416 }
417
418 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
419 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
420 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
421
422 SWIGSTATICINLINE(int)
423 SWIG_CheckLong(PyObject* obj)
424 {
425 SWIG_AsLong(obj);
426 if (PyErr_Occurred()) {
427 PyErr_Clear();
428 return 0;
429 } else {
430 return 1;
431 }
432 }
433
434
435 SWIGSTATICINLINE(bool)
436 SWIG_AsBool(PyObject *obj)
437 {
438 return PyObject_IsTrue(obj) ? true : false;
439 }
440
441
442 SWIGSTATICINLINE(int)
443 SWIG_CheckBool(PyObject* obj)
444 {
445 SWIG_AsBool(obj);
446 if (PyErr_Occurred()) {
447 PyErr_Clear();
448 return 0;
449 } else {
450 return 1;
451 }
452 }
453
454
455 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
456 PyObject* o2;
457 PyObject* o3;
458
459 if (!target) {
460 target = o;
461 } else if (target == Py_None) {
462 Py_DECREF(Py_None);
463 target = o;
464 } else {
465 if (!PyTuple_Check(target)) {
466 o2 = target;
467 target = PyTuple_New(1);
468 PyTuple_SetItem(target, 0, o2);
469 }
470 o3 = PyTuple_New(1);
471 PyTuple_SetItem(o3, 0, o);
472
473 o2 = target;
474 target = PySequence_Concat(o2, o3);
475 Py_DECREF(o2);
476 Py_DECREF(o3);
477 }
478 return target;
479 }
480
481
482 long wxGetFreeMemory()
483 { wxPyRaiseNotImplemented(); return 0; }
484
485
486 SWIGSTATICINLINE(unsigned long)
487 SWIG_AsUnsignedLong(PyObject * obj)
488 {
489 if (PyLong_Check(obj)) {
490 return PyLong_AsUnsignedLong(obj);
491 } else {
492 long i = PyInt_AsLong(obj);
493 if ( !PyErr_Occurred() && (i < 0)) {
494 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
495 }
496 return i;
497 }
498 }
499
500
501 SWIGSTATICINLINE(int)
502 SWIG_CheckUnsignedLong(PyObject* obj)
503 {
504 SWIG_AsUnsignedLong(obj);
505 if (PyErr_Occurred()) {
506 PyErr_Clear();
507 return 0;
508 } else {
509 return 1;
510 }
511 }
512
513
514 SWIGSTATICINLINE(PyObject* )
515 SWIG_FromUnsignedLong(unsigned long value)
516 {
517 return (value > LONG_MAX) ?
518 PyLong_FromUnsignedLong(value)
519 : PyInt_FromLong(swig_numeric_cast(long,value));
520 }
521
522
523 bool wxGetKeyState(wxKeyCode key)
524 { wxPyRaiseNotImplemented(); return False; }
525
526
527 void wxWakeUpMainThread() {}
528
529
530 bool wxThread_IsMain() {
531 #ifdef WXP_WITH_THREAD
532 return wxThread::IsMain();
533 #else
534 return True;
535 #endif
536 }
537
538
539 int wxCaret_GetBlinkTime() {
540 return wxCaret::GetBlinkTime();
541 }
542
543 void wxCaret_SetBlinkTime(int milliseconds) {
544 wxCaret::SetBlinkTime(milliseconds);
545 }
546
547
548 #include <wx/snglinst.h>
549
550
551 #ifdef __WXMSW__
552 #include <wx/msw/private.h>
553 #include <wx/dynload.h>
554 #endif
555
556
557
558 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
559 {
560 #ifdef __WXMSW__
561
562 switch (method)
563 {
564 case 1:
565 // This one only partially works. Appears to be an undocumented
566 // "standard" convention that not all widgets adhear to. For
567 // example, for some widgets backgrounds or non-client areas may
568 // not be painted.
569 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
570 break;
571
572 case 2:
573 // This one works much better, except for on XP. On Win2k nearly
574 // all widgets and their children are captured correctly[**]. On
575 // XP with Themes activated most native widgets draw only
576 // partially, if at all. Without themes it works just like on
577 // Win2k.
578 //
579 // ** For example the radio buttons in a wxRadioBox are not its
580 // children by default, but you can capture it via the panel
581 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
582 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
583 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
584 PRF_ERASEBKGND | PRF_OWNED );
585 break;
586
587 case 3:
588 // This one is only defined in the latest SDK and is only
589 // available on XP. MSDN says it is similar to sending WM_PRINT
590 // so I expect that it will work similar to the above. Since it
591 // is avaialble only on XP, it can't be compiled like this and
592 // will have to be loaded dynamically.
593 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
594
595 // fall through
596
597 case 4:
598 // Use PrintWindow if available, or fallback to WM_PRINT
599 // otherwise. Unfortunately using PrintWindow is even worse than
600 // WM_PRINT. For most native widgets nothing is drawn to the dc
601 // at all, with or without Themes.
602 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
603 static bool s_triedToLoad = False;
604 static PrintWindow_t pfnPrintWindow = NULL;
605 if ( !s_triedToLoad )
606 {
607
608 s_triedToLoad = True;
609 wxDynamicLibrary dllUser32(_T("user32.dll"));
610 if ( dllUser32.IsLoaded() )
611 {
612 wxLogNull nolog; // Don't report errors here
613 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
614 }
615 }
616 if (pfnPrintWindow)
617 {
618 printf("Using PrintWindow\n");
619 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
620 }
621 else
622 {
623 printf("Using WM_PRINT\n");
624 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
625 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
626 }
627 }
628 #endif
629 }
630
631
632
633 #include <wx/tipdlg.h>
634
635
636 class wxPyTipProvider : public wxTipProvider {
637 public:
638 wxPyTipProvider(size_t currentTip)
639 : wxTipProvider(currentTip) {}
640
641 DEC_PYCALLBACK_STRING__pure(GetTip);
642 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
643 PYPRIVATE;
644 };
645
646 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
647 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
648
649
650 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
651
652 void wxPyTimer::Notify() {
653 bool found;
654 wxPyBeginBlockThreads();
655 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
656 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
657 wxPyEndBlockThreads();
658 if (! found)
659 wxTimer::Notify();
660 }
661 void wxPyTimer::base_Notify() {
662 wxTimer::Notify();
663 }
664
665
666
667 SWIGSTATICINLINE(PyObject *)
668 SWIG_FromCharPtr(const char* cptr)
669 {
670 size_t size = cptr ? strlen(cptr) : 0;
671 if (cptr) {
672 if (size > INT_MAX) {
673 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
674 SWIG_TypeQuery("char *"), 0);
675 } else {
676 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
677 }
678 } else {
679 Py_INCREF(Py_None);
680 return Py_None;
681 }
682 }
683
684
685 SWIGSTATICINLINE(unsigned long)
686 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
687 unsigned long max_value)
688 {
689 if (!PyErr_Occurred()) {
690 if (value > max_value) {
691 PyObject *err =
692 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
693 value, type, max_value);
694 PyErr_SetObject(PyExc_OverflowError, err);
695 Py_DECREF(err);
696 }
697 }
698 return value;
699 }
700
701
702 #if UINT_MAX != ULONG_MAX
703 SWIGSTATICINLINE(unsigned int)
704 SWIG_AsUnsignedInt(PyObject *obj)
705 {
706 return swig_numeric_cast(unsigned int,
707 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
708 "unsigned int", UINT_MAX));
709 }
710 #else
711 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
712 #endif
713
714
715 SWIGSTATICINLINE(int)
716 SWIG_CheckUnsignedInt(PyObject* obj)
717 {
718 SWIG_AsUnsignedInt(obj);
719 if (PyErr_Occurred()) {
720 PyErr_Clear();
721 return 0;
722 } else {
723 return 1;
724 }
725 }
726
727 wxString Log_TimeStamp(){
728 wxString msg;
729 wxLog::TimeStamp(&msg);
730 return msg;
731 }
732 void wxLog_Destroy(wxLog *self){ delete self; }
733
734 // A wxLog class that can be derived from in wxPython
735 class wxPyLog : public wxLog {
736 public:
737 wxPyLog() : wxLog() {}
738
739 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
740 bool found;
741 wxPyBeginBlockThreads();
742 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
743 PyObject* s = wx2PyString(szString);
744 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
745 Py_DECREF(s);
746 }
747 wxPyEndBlockThreads();
748 if (! found)
749 wxLog::DoLog(level, szString, t);
750 }
751
752 virtual void DoLogString(const wxChar *szString, time_t t) {
753 bool found;
754 wxPyBeginBlockThreads();
755 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
756 PyObject* s = wx2PyString(szString);
757 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
758 Py_DECREF(s);
759 }
760 wxPyEndBlockThreads();
761 if (! found)
762 wxLog::DoLogString(szString, t);
763 }
764
765 PYPRIVATE;
766 };
767
768
769
770
771 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
772
773
774 #include <wx/joystick.h>
775
776
777 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
778 // A C++ stub class for wxJoystick for platforms that don't have it.
779 class wxJoystick : public wxObject {
780 public:
781 wxJoystick(int joystick = wxJOYSTICK1) {
782 wxPyBeginBlockThreads();
783 PyErr_SetString(PyExc_NotImplementedError,
784 "wxJoystick is not available on this platform.");
785 wxPyEndBlockThreads();
786 }
787 wxPoint GetPosition() { return wxPoint(-1,-1); }
788 int GetZPosition() { return -1; }
789 int GetButtonState() { return -1; }
790 int GetPOVPosition() { return -1; }
791 int GetPOVCTSPosition() { return -1; }
792 int GetRudderPosition() { return -1; }
793 int GetUPosition() { return -1; }
794 int GetVPosition() { return -1; }
795 int GetMovementThreshold() { return -1; }
796 void SetMovementThreshold(int threshold) {}
797
798 bool IsOk(void) { return False; }
799 int GetNumberJoysticks() { return -1; }
800 int GetManufacturerId() { return -1; }
801 int GetProductId() { return -1; }
802 wxString GetProductName() { return ""; }
803 int GetXMin() { return -1; }
804 int GetYMin() { return -1; }
805 int GetZMin() { return -1; }
806 int GetXMax() { return -1; }
807 int GetYMax() { return -1; }
808 int GetZMax() { return -1; }
809 int GetNumberButtons() { return -1; }
810 int GetNumberAxes() { return -1; }
811 int GetMaxButtons() { return -1; }
812 int GetMaxAxes() { return -1; }
813 int GetPollingMin() { return -1; }
814 int GetPollingMax() { return -1; }
815 int GetRudderMin() { return -1; }
816 int GetRudderMax() { return -1; }
817 int GetUMin() { return -1; }
818 int GetUMax() { return -1; }
819 int GetVMin() { return -1; }
820 int GetVMax() { return -1; }
821
822 bool HasRudder() { return False; }
823 bool HasZ() { return False; }
824 bool HasU() { return False; }
825 bool HasV() { return False; }
826 bool HasPOV() { return False; }
827 bool HasPOV4Dir() { return False; }
828 bool HasPOVCTS() { return False; }
829
830 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
831 bool ReleaseCapture() { return False; }
832 };
833 #endif
834
835
836 #include <wx/sound.h>
837
838
839 #if !wxUSE_SOUND
840 // A C++ stub class for wxWave for platforms that don't have it.
841 class wxSound : public wxObject
842 {
843 public:
844 wxSound() {
845 wxPyBeginBlockThreads();
846 PyErr_SetString(PyExc_NotImplementedError,
847 "wxSound is not available on this platform.");
848 wxPyEndBlockThreads();
849 }
850 wxSound(const wxString&, bool) {
851 wxPyBeginBlockThreads();
852 PyErr_SetString(PyExc_NotImplementedError,
853 "wxSound is not available on this platform.");
854 wxPyEndBlockThreads();
855 }
856 wxSound(int, const wxByte*) {
857 wxPyBeginBlockThreads();
858 PyErr_SetString(PyExc_NotImplementedError,
859 "wxSound is not available on this platform.");
860 wxPyEndBlockThreads();
861 }
862
863 ~wxSound() {};
864
865 bool Create(const wxString&, bool) { return false; }
866 bool Create(int, const wxByte*) { return false; };
867 bool IsOk() { return false; };
868 bool Play(unsigned) const { return false; }
869 static bool Play(const wxString&, unsigned) { return false; }
870 static void Stop() {}
871 };
872
873 #endif
874
875
876 #include <wx/mimetype.h>
877
878 PyObject *wxFileType_GetMimeType(wxFileType *self){
879 wxString str;
880 if (self->GetMimeType(&str))
881 return wx2PyString(str);
882 else
883 RETURN_NONE();
884 }
885 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
886 wxArrayString arr;
887 if (self->GetMimeTypes(arr))
888 return wxArrayString2PyList_helper(arr);
889 else
890 RETURN_NONE();
891 }
892 PyObject *wxFileType_GetExtensions(wxFileType *self){
893 wxArrayString arr;
894 if (self->GetExtensions(arr))
895 return wxArrayString2PyList_helper(arr);
896 else
897 RETURN_NONE();
898 }
899 wxIcon *wxFileType_GetIcon(wxFileType *self){
900 wxIconLocation loc;
901 if (self->GetIcon(&loc))
902 return new wxIcon(loc);
903 else
904 return NULL;
905 }
906 PyObject *wxFileType_GetIconInfo(wxFileType *self){
907 wxIconLocation loc;
908 if (self->GetIcon(&loc)) {
909 wxString iconFile = loc.GetFileName();
910 int iconIndex = -1;
911
912
913
914 // Make a tuple and put the values in it
915 wxPyBeginBlockThreads();
916 PyObject* tuple = PyTuple_New(3);
917 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
918 wxT("wxIcon"), True));
919 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
920 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
921 wxPyEndBlockThreads();
922 return tuple;
923 }
924 else
925 RETURN_NONE();
926 }
927 PyObject *wxFileType_GetDescription(wxFileType *self){
928 wxString str;
929 if (self->GetDescription(&str))
930 return wx2PyString(str);
931 else
932 RETURN_NONE();
933 }
934 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
935 wxString str;
936 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
937 return wx2PyString(str);
938 else
939 RETURN_NONE();
940 }
941 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
942 wxString str;
943 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
944 return wx2PyString(str);
945 else
946 RETURN_NONE();
947 }
948 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
949 wxArrayString verbs;
950 wxArrayString commands;
951 if (self->GetAllCommands(&verbs, &commands,
952 wxFileType::MessageParameters(filename, mimetype))) {
953 wxPyBeginBlockThreads();
954 PyObject* tuple = PyTuple_New(2);
955 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
956 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
957 wxPyEndBlockThreads();
958 return tuple;
959 }
960 else
961 RETURN_NONE();
962 }
963 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
964 return wxFileType::ExpandCommand(command,
965 wxFileType::MessageParameters(filename, mimetype));
966 }
967 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
968 wxArrayString arr;
969 self->EnumAllFileTypes(arr);
970 return wxArrayString2PyList_helper(arr);
971 }
972
973 #include <wx/artprov.h>
974
975 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
976 static const wxString wxPyART_MENU(wxART_MENU);
977 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
978 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
979 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
980 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
981 static const wxString wxPyART_OTHER(wxART_OTHER);
982 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
983 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
984 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
985 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
986 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
987 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
988 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
989 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
990 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
991 static const wxString wxPyART_GO_UP(wxART_GO_UP);
992 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
993 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
994 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
995 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
996 static const wxString wxPyART_PRINT(wxART_PRINT);
997 static const wxString wxPyART_HELP(wxART_HELP);
998 static const wxString wxPyART_TIP(wxART_TIP);
999 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1000 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1001 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1002 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1003 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1004 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1005 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1006 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1007 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1008 static const wxString wxPyART_ERROR(wxART_ERROR);
1009 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1010 static const wxString wxPyART_WARNING(wxART_WARNING);
1011 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1012 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1013 // Python aware wxArtProvider
1014 class wxPyArtProvider : public wxArtProvider {
1015 public:
1016
1017 virtual wxBitmap CreateBitmap(const wxArtID& id,
1018 const wxArtClient& client,
1019 const wxSize& size) {
1020 wxBitmap rval = wxNullBitmap;
1021 wxPyBeginBlockThreads();
1022 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1023 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1024 PyObject* ro;
1025 wxBitmap* ptr;
1026 PyObject* s1, *s2;
1027 s1 = wx2PyString(id);
1028 s2 = wx2PyString(client);
1029 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1030 Py_DECREF(so);
1031 Py_DECREF(s1);
1032 Py_DECREF(s2);
1033 if (ro) {
1034 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1035 rval = *ptr;
1036 Py_DECREF(ro);
1037 }
1038 }
1039 wxPyEndBlockThreads();
1040 return rval;
1041 }
1042
1043 PYPRIVATE;
1044 };
1045
1046 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1047
1048
1049
1050 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1051 PyObject* ret = PyTuple_New(3);
1052 if (ret) {
1053 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1054 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1055 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1056 }
1057 return ret;
1058 }
1059
1060 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1061 bool cont;
1062 long index = 0;
1063 wxString value;
1064
1065 cont = self->GetFirstGroup(value, index);
1066 return __EnumerationHelper(cont, value, index);
1067 }
1068 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1069 bool cont;
1070 wxString value;
1071
1072 cont = self->GetNextGroup(value, index);
1073 return __EnumerationHelper(cont, value, index);
1074 }
1075 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1076 bool cont;
1077 long index = 0;
1078 wxString value;
1079
1080 cont = self->GetFirstEntry(value, index);
1081 return __EnumerationHelper(cont, value, index);
1082 }
1083 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1084 bool cont;
1085 wxString value;
1086
1087 cont = self->GetNextEntry(value, index);
1088 return __EnumerationHelper(cont, value, index);
1089 }
1090 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1091 long rv;
1092 self->Read(key, &rv, defaultVal);
1093 return rv;
1094 }
1095
1096 SWIGSTATICINLINE(double)
1097 SWIG_AsDouble(PyObject *obj)
1098 {
1099 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
1100 #if HAVE_LONG_LONG
1101 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
1102 #else
1103 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
1104 #endif
1105 if (PyErr_Occurred()) {
1106 PyErr_Clear();
1107 PyErr_SetString(PyExc_TypeError, "a double is expected");
1108 }
1109 return val;
1110 }
1111
1112
1113 SWIGSTATICINLINE(int)
1114 SWIG_CheckDouble(PyObject* obj)
1115 {
1116 SWIG_AsDouble(obj);
1117 if (PyErr_Occurred()) {
1118 PyErr_Clear();
1119 return 0;
1120 } else {
1121 return 1;
1122 }
1123 }
1124
1125 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1126 double rv;
1127 self->Read(key, &rv, defaultVal);
1128 return rv;
1129 }
1130 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1131 bool rv;
1132 self->Read(key, &rv, defaultVal);
1133 return rv;
1134 }
1135
1136 #include <wx/datetime.h>
1137
1138
1139 static const wxString wxPyDateFormatStr(wxT("%c"));
1140 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1141
1142 #define LOCAL_TZ wxDateTime::Local
1143
1144
1145 #if UINT_MAX < LONG_MAX
1146 #define SWIG_FromUnsignedInt SWIG_FromLong
1147 #else
1148 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1149 #endif
1150
1151 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1152 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1153 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1154 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1155 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1156 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; }
1157 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; }
1158 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; }
1159 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; }
1160 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; }
1161 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; }
1162 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1163 const wxChar* rv;
1164 const wxChar* _date = date;
1165 rv = self->ParseRfc822Date(_date);
1166 if (rv == NULL) return -1;
1167 return rv - _date;
1168 }
1169 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1170 const wxChar* rv;
1171 const wxChar* _date = date;
1172 rv = self->ParseFormat(_date, format, dateDef);
1173 if (rv == NULL) return -1;
1174 return rv - _date;
1175 }
1176 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1177 const wxChar* rv;
1178 const wxChar* _datetime = datetime;
1179 rv = self->ParseDateTime(_datetime);
1180 if (rv == NULL) return -1;
1181 return rv - _datetime;
1182 }
1183 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1184 const wxChar* rv;
1185 const wxChar* _date = date;
1186 rv = self->ParseDate(_date);
1187 if (rv == NULL) return -1;
1188 return rv - _date;
1189 }
1190 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1191 const wxChar* rv;
1192 const wxChar* _time = time;
1193 rv = self->ParseTime(_time);
1194 if (rv == NULL) return -1;
1195 return rv - _time;
1196 }
1197 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1198 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1199 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1200 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1201 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1202 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1203 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1204 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1205 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1206 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1207 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1208 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1209 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1210 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1211 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1212 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1213
1214 #include <wx/dataobj.h>
1215
1216 // Create a new class for wxPython to use
1217 class wxPyDataObjectSimple : public wxDataObjectSimple {
1218 public:
1219 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1220 : wxDataObjectSimple(format) {}
1221
1222 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1223 bool GetDataHere(void *buf) const;
1224 bool SetData(size_t len, const void *buf) const;
1225 PYPRIVATE;
1226 };
1227
1228 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1229
1230 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1231 // We need to get the data for this object and write it to buf. I think
1232 // the best way to do this for wxPython is to have the Python method
1233 // return either a string or None and then act appropriately with the
1234 // C++ version.
1235
1236 bool rval = False;
1237 wxPyBeginBlockThreads();
1238 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1239 PyObject* ro;
1240 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1241 if (ro) {
1242 rval = (ro != Py_None && PyString_Check(ro));
1243 if (rval)
1244 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1245 Py_DECREF(ro);
1246 }
1247 }
1248 wxPyEndBlockThreads();
1249 return rval;
1250 }
1251
1252 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1253 // For this one we simply need to make a string from buf and len
1254 // and send it to the Python method.
1255 bool rval = False;
1256 wxPyBeginBlockThreads();
1257 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1258 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1259 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1260 Py_DECREF(data);
1261 }
1262 wxPyEndBlockThreads();
1263 return rval;
1264 }
1265
1266 // Create a new class for wxPython to use
1267 class wxPyTextDataObject : public wxTextDataObject {
1268 public:
1269 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1270 : wxTextDataObject(text) {}
1271
1272 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1273 DEC_PYCALLBACK_STRING__const(GetText);
1274 DEC_PYCALLBACK__STRING(SetText);
1275 PYPRIVATE;
1276 };
1277
1278 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1279 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1280 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1281
1282
1283 // Create a new class for wxPython to use
1284 class wxPyBitmapDataObject : public wxBitmapDataObject {
1285 public:
1286 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1287 : wxBitmapDataObject(bitmap) {}
1288
1289 wxBitmap GetBitmap() const;
1290 void SetBitmap(const wxBitmap& bitmap);
1291 PYPRIVATE;
1292 };
1293
1294 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1295 wxBitmap* rval = &wxNullBitmap;
1296 wxPyBeginBlockThreads();
1297 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1298 PyObject* ro;
1299 wxBitmap* ptr;
1300 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1301 if (ro) {
1302 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1303 rval = ptr;
1304 Py_DECREF(ro);
1305 }
1306 }
1307 wxPyEndBlockThreads();
1308 return *rval;
1309 }
1310
1311 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1312 wxPyBeginBlockThreads();
1313 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1314 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1315 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1316 Py_DECREF(bo);
1317 }
1318 wxPyEndBlockThreads();
1319 }
1320
1321 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1322 if (PyString_Check(data)) {
1323 // for Python we just call SetData here since we always need it to make a copy.
1324 self->SetData(PyString_Size(data), PyString_AsString(data));
1325 }
1326 else {
1327 // raise a TypeError if not a string
1328 PyErr_SetString(PyExc_TypeError, "String expected.");
1329 }
1330 }
1331 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1332 if (PyString_Check(data)) {
1333 return self->SetData(PyString_Size(data), PyString_AsString(data));
1334 }
1335 else {
1336 // raise a TypeError if not a string
1337 PyErr_SetString(PyExc_TypeError, "String expected.");
1338 return False;
1339 }
1340 }
1341 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1342 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1343 }
1344
1345 class wxMetafileDataObject : public wxDataObjectSimple
1346 {
1347 public:
1348 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
1349 };
1350
1351
1352 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1353
1354
1355 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1356 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1357 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1358 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1359 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1360
1361
1362 class wxPyTextDropTarget : public wxTextDropTarget {
1363 public:
1364 wxPyTextDropTarget() {}
1365
1366 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1367
1368 DEC_PYCALLBACK__(OnLeave);
1369 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1370 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1371 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1372 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1373
1374 PYPRIVATE;
1375 };
1376
1377 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1378 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1379 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1380 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1381 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1382 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1383
1384
1385
1386 class wxPyFileDropTarget : public wxFileDropTarget {
1387 public:
1388 wxPyFileDropTarget() {}
1389
1390 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1391
1392 DEC_PYCALLBACK__(OnLeave);
1393 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1394 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1395 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1396 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1397
1398 PYPRIVATE;
1399 };
1400
1401 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1402 const wxArrayString& filenames) {
1403 bool rval = False;
1404 wxPyBeginBlockThreads();
1405 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1406 PyObject* list = wxArrayString2PyList_helper(filenames);
1407 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1408 Py_DECREF(list);
1409 }
1410 wxPyEndBlockThreads();
1411 return rval;
1412 }
1413
1414
1415
1416 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1417 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1418 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1419 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1420 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1421
1422
1423
1424
1425 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1426
1427 #include "wx/display.h"
1428
1429 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1430 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1431 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1432 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1433 PyObject* pyList = NULL;
1434 wxArrayVideoModes arr = self->GetModes(mode);
1435 wxPyBeginBlockThreads();
1436 pyList = PyList_New(0);
1437 for (int i=0; i < arr.GetCount(); i++) {
1438 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1439 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1440 PyList_Append(pyList, pyObj);
1441 }
1442 wxPyEndBlockThreads();
1443 return pyList;
1444 }
1445 #ifdef __cplusplus
1446 extern "C" {
1447 #endif
1448 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1449 PyObject *resultobj;
1450 int arg1 ;
1451 wxColour result;
1452 PyObject * obj0 = 0 ;
1453 char *kwnames[] = {
1454 (char *) "index", NULL
1455 };
1456
1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1458 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1459 if (PyErr_Occurred()) SWIG_fail;
1460 {
1461 PyThreadState* __tstate = wxPyBeginAllowThreads();
1462 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1463
1464 wxPyEndAllowThreads(__tstate);
1465 if (PyErr_Occurred()) SWIG_fail;
1466 }
1467 {
1468 wxColour * resultptr;
1469 resultptr = new wxColour((wxColour &) result);
1470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1471 }
1472 return resultobj;
1473 fail:
1474 return NULL;
1475 }
1476
1477
1478 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1479 PyObject *resultobj;
1480 int arg1 ;
1481 wxFont result;
1482 PyObject * obj0 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "index", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1488 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1489 if (PyErr_Occurred()) SWIG_fail;
1490 {
1491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1492 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1493
1494 wxPyEndAllowThreads(__tstate);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 }
1497 {
1498 wxFont * resultptr;
1499 resultptr = new wxFont((wxFont &) result);
1500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1501 }
1502 return resultobj;
1503 fail:
1504 return NULL;
1505 }
1506
1507
1508 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1509 PyObject *resultobj;
1510 int arg1 ;
1511 int result;
1512 PyObject * obj0 = 0 ;
1513 char *kwnames[] = {
1514 (char *) "index", NULL
1515 };
1516
1517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1518 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1519 if (PyErr_Occurred()) SWIG_fail;
1520 {
1521 PyThreadState* __tstate = wxPyBeginAllowThreads();
1522 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1523
1524 wxPyEndAllowThreads(__tstate);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 }
1527 resultobj = SWIG_FromInt((int)result);
1528 return resultobj;
1529 fail:
1530 return NULL;
1531 }
1532
1533
1534 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1535 PyObject *resultobj;
1536 int arg1 ;
1537 bool result;
1538 PyObject * obj0 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "index", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1544 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1545 if (PyErr_Occurred()) SWIG_fail;
1546 {
1547 PyThreadState* __tstate = wxPyBeginAllowThreads();
1548 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1549
1550 wxPyEndAllowThreads(__tstate);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 }
1553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1554 return resultobj;
1555 fail:
1556 return NULL;
1557 }
1558
1559
1560 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1561 PyObject *resultobj;
1562 int result;
1563 char *kwnames[] = {
1564 NULL
1565 };
1566
1567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1568 {
1569 PyThreadState* __tstate = wxPyBeginAllowThreads();
1570 result = (int)wxSystemSettings::GetScreenType();
1571
1572 wxPyEndAllowThreads(__tstate);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 resultobj = SWIG_FromInt((int)result);
1576 return resultobj;
1577 fail:
1578 return NULL;
1579 }
1580
1581
1582 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1583 PyObject *resultobj;
1584 int arg1 ;
1585 PyObject * obj0 = 0 ;
1586 char *kwnames[] = {
1587 (char *) "screen", NULL
1588 };
1589
1590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1591 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 {
1594 PyThreadState* __tstate = wxPyBeginAllowThreads();
1595 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1596
1597 wxPyEndAllowThreads(__tstate);
1598 if (PyErr_Occurred()) SWIG_fail;
1599 }
1600 Py_INCREF(Py_None); resultobj = Py_None;
1601 return resultobj;
1602 fail:
1603 return NULL;
1604 }
1605
1606
1607 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1608 PyObject *obj;
1609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1610 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1611 Py_INCREF(obj);
1612 return Py_BuildValue((char *)"");
1613 }
1614 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxSystemOptions *result;
1617 char *kwnames[] = {
1618 NULL
1619 };
1620
1621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1622 {
1623 PyThreadState* __tstate = wxPyBeginAllowThreads();
1624 result = (wxSystemOptions *)new wxSystemOptions();
1625
1626 wxPyEndAllowThreads(__tstate);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 }
1629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1630 return resultobj;
1631 fail:
1632 return NULL;
1633 }
1634
1635
1636 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1637 PyObject *resultobj;
1638 wxString *arg1 = 0 ;
1639 wxString *arg2 = 0 ;
1640 bool temp1 = False ;
1641 bool temp2 = False ;
1642 PyObject * obj0 = 0 ;
1643 PyObject * obj1 = 0 ;
1644 char *kwnames[] = {
1645 (char *) "name",(char *) "value", NULL
1646 };
1647
1648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1649 {
1650 arg1 = wxString_in_helper(obj0);
1651 if (arg1 == NULL) SWIG_fail;
1652 temp1 = True;
1653 }
1654 {
1655 arg2 = wxString_in_helper(obj1);
1656 if (arg2 == NULL) SWIG_fail;
1657 temp2 = True;
1658 }
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 Py_INCREF(Py_None); resultobj = Py_None;
1667 {
1668 if (temp1)
1669 delete arg1;
1670 }
1671 {
1672 if (temp2)
1673 delete arg2;
1674 }
1675 return resultobj;
1676 fail:
1677 {
1678 if (temp1)
1679 delete arg1;
1680 }
1681 {
1682 if (temp2)
1683 delete arg2;
1684 }
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 wxString *arg1 = 0 ;
1692 int arg2 ;
1693 bool temp1 = False ;
1694 PyObject * obj0 = 0 ;
1695 PyObject * obj1 = 0 ;
1696 char *kwnames[] = {
1697 (char *) "name",(char *) "value", NULL
1698 };
1699
1700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1701 {
1702 arg1 = wxString_in_helper(obj0);
1703 if (arg1 == NULL) SWIG_fail;
1704 temp1 = True;
1705 }
1706 arg2 = (int) SWIG_AsInt(obj1);
1707 if (PyErr_Occurred()) SWIG_fail;
1708 {
1709 PyThreadState* __tstate = wxPyBeginAllowThreads();
1710 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1711
1712 wxPyEndAllowThreads(__tstate);
1713 if (PyErr_Occurred()) SWIG_fail;
1714 }
1715 Py_INCREF(Py_None); resultobj = Py_None;
1716 {
1717 if (temp1)
1718 delete arg1;
1719 }
1720 return resultobj;
1721 fail:
1722 {
1723 if (temp1)
1724 delete arg1;
1725 }
1726 return NULL;
1727 }
1728
1729
1730 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1731 PyObject *resultobj;
1732 wxString *arg1 = 0 ;
1733 wxString result;
1734 bool temp1 = False ;
1735 PyObject * obj0 = 0 ;
1736 char *kwnames[] = {
1737 (char *) "name", NULL
1738 };
1739
1740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1741 {
1742 arg1 = wxString_in_helper(obj0);
1743 if (arg1 == NULL) SWIG_fail;
1744 temp1 = True;
1745 }
1746 {
1747 PyThreadState* __tstate = wxPyBeginAllowThreads();
1748 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1749
1750 wxPyEndAllowThreads(__tstate);
1751 if (PyErr_Occurred()) SWIG_fail;
1752 }
1753 {
1754 #if wxUSE_UNICODE
1755 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1756 #else
1757 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1758 #endif
1759 }
1760 {
1761 if (temp1)
1762 delete arg1;
1763 }
1764 return resultobj;
1765 fail:
1766 {
1767 if (temp1)
1768 delete arg1;
1769 }
1770 return NULL;
1771 }
1772
1773
1774 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxString *arg1 = 0 ;
1777 int result;
1778 bool temp1 = False ;
1779 PyObject * obj0 = 0 ;
1780 char *kwnames[] = {
1781 (char *) "name", NULL
1782 };
1783
1784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1785 {
1786 arg1 = wxString_in_helper(obj0);
1787 if (arg1 == NULL) SWIG_fail;
1788 temp1 = True;
1789 }
1790 {
1791 PyThreadState* __tstate = wxPyBeginAllowThreads();
1792 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1793
1794 wxPyEndAllowThreads(__tstate);
1795 if (PyErr_Occurred()) SWIG_fail;
1796 }
1797 resultobj = SWIG_FromInt((int)result);
1798 {
1799 if (temp1)
1800 delete arg1;
1801 }
1802 return resultobj;
1803 fail:
1804 {
1805 if (temp1)
1806 delete arg1;
1807 }
1808 return NULL;
1809 }
1810
1811
1812 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1813 PyObject *resultobj;
1814 wxString *arg1 = 0 ;
1815 bool result;
1816 bool temp1 = False ;
1817 PyObject * obj0 = 0 ;
1818 char *kwnames[] = {
1819 (char *) "name", NULL
1820 };
1821
1822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1823 {
1824 arg1 = wxString_in_helper(obj0);
1825 if (arg1 == NULL) SWIG_fail;
1826 temp1 = True;
1827 }
1828 {
1829 PyThreadState* __tstate = wxPyBeginAllowThreads();
1830 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1831
1832 wxPyEndAllowThreads(__tstate);
1833 if (PyErr_Occurred()) SWIG_fail;
1834 }
1835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1836 {
1837 if (temp1)
1838 delete arg1;
1839 }
1840 return resultobj;
1841 fail:
1842 {
1843 if (temp1)
1844 delete arg1;
1845 }
1846 return NULL;
1847 }
1848
1849
1850 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1851 PyObject *obj;
1852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1853 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1854 Py_INCREF(obj);
1855 return Py_BuildValue((char *)"");
1856 }
1857 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1858 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1859 return 1;
1860 }
1861
1862
1863 static PyObject *_wrap_FileSelectorPromptStr_get() {
1864 PyObject *pyobj;
1865
1866 {
1867 #if wxUSE_UNICODE
1868 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1869 #else
1870 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1871 #endif
1872 }
1873 return pyobj;
1874 }
1875
1876
1877 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
1878 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1879 return 1;
1880 }
1881
1882
1883 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1884 PyObject *pyobj;
1885
1886 {
1887 #if wxUSE_UNICODE
1888 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1889 #else
1890 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1891 #endif
1892 }
1893 return pyobj;
1894 }
1895
1896
1897 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
1898 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1899 return 1;
1900 }
1901
1902
1903 static PyObject *_wrap_DirSelectorPromptStr_get() {
1904 PyObject *pyobj;
1905
1906 {
1907 #if wxUSE_UNICODE
1908 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1909 #else
1910 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1911 #endif
1912 }
1913 return pyobj;
1914 }
1915
1916
1917 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1918 PyObject *resultobj;
1919 long result;
1920 char *kwnames[] = {
1921 NULL
1922 };
1923
1924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1925 {
1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
1927 result = (long)wxNewId();
1928
1929 wxPyEndAllowThreads(__tstate);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 }
1932 resultobj = SWIG_FromLong((long)result);
1933 return resultobj;
1934 fail:
1935 return NULL;
1936 }
1937
1938
1939 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1940 PyObject *resultobj;
1941 long arg1 ;
1942 PyObject * obj0 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "id", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
1948 arg1 = (long) SWIG_AsLong(obj0);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 {
1951 PyThreadState* __tstate = wxPyBeginAllowThreads();
1952 wxRegisterId(arg1);
1953
1954 wxPyEndAllowThreads(__tstate);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 }
1957 Py_INCREF(Py_None); resultobj = Py_None;
1958 return resultobj;
1959 fail:
1960 return NULL;
1961 }
1962
1963
1964 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1965 PyObject *resultobj;
1966 long result;
1967 char *kwnames[] = {
1968 NULL
1969 };
1970
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1972 {
1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
1974 result = (long)wxGetCurrentId();
1975
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) SWIG_fail;
1978 }
1979 resultobj = SWIG_FromLong((long)result);
1980 return resultobj;
1981 fail:
1982 return NULL;
1983 }
1984
1985
1986 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1987 PyObject *resultobj;
1988 char *kwnames[] = {
1989 NULL
1990 };
1991
1992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1993 {
1994 PyThreadState* __tstate = wxPyBeginAllowThreads();
1995 wxBell();
1996
1997 wxPyEndAllowThreads(__tstate);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 }
2000 Py_INCREF(Py_None); resultobj = Py_None;
2001 return resultobj;
2002 fail:
2003 return NULL;
2004 }
2005
2006
2007 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2008 PyObject *resultobj;
2009 char *kwnames[] = {
2010 NULL
2011 };
2012
2013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2014 {
2015 PyThreadState* __tstate = wxPyBeginAllowThreads();
2016 wxEndBusyCursor();
2017
2018 wxPyEndAllowThreads(__tstate);
2019 if (PyErr_Occurred()) SWIG_fail;
2020 }
2021 Py_INCREF(Py_None); resultobj = Py_None;
2022 return resultobj;
2023 fail:
2024 return NULL;
2025 }
2026
2027
2028 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2029 PyObject *resultobj;
2030 bool arg1 = (bool) True ;
2031 long result;
2032 PyObject * obj0 = 0 ;
2033 char *kwnames[] = {
2034 (char *) "resetTimer", NULL
2035 };
2036
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2038 if (obj0) {
2039 arg1 = (bool) SWIG_AsBool(obj0);
2040 if (PyErr_Occurred()) SWIG_fail;
2041 }
2042 {
2043 PyThreadState* __tstate = wxPyBeginAllowThreads();
2044 result = (long)wxGetElapsedTime(arg1);
2045
2046 wxPyEndAllowThreads(__tstate);
2047 if (PyErr_Occurred()) SWIG_fail;
2048 }
2049 resultobj = SWIG_FromLong((long)result);
2050 return resultobj;
2051 fail:
2052 return NULL;
2053 }
2054
2055
2056 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2057 PyObject *resultobj;
2058 int *arg1 = (int *) 0 ;
2059 int *arg2 = (int *) 0 ;
2060 int temp1 ;
2061 int temp2 ;
2062 char *kwnames[] = {
2063 NULL
2064 };
2065
2066 arg1 = &temp1;
2067 arg2 = &temp2;
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
2071 wxGetMousePosition(arg1,arg2);
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 }
2076 Py_INCREF(Py_None); resultobj = Py_None;
2077 {
2078 PyObject *o = PyInt_FromLong((long) (*arg1));
2079 resultobj = t_output_helper(resultobj,o);
2080 }
2081 {
2082 PyObject *o = PyInt_FromLong((long) (*arg2));
2083 resultobj = t_output_helper(resultobj,o);
2084 }
2085 return resultobj;
2086 fail:
2087 return NULL;
2088 }
2089
2090
2091 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2092 PyObject *resultobj;
2093 bool result;
2094 char *kwnames[] = {
2095 NULL
2096 };
2097
2098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2099 {
2100 PyThreadState* __tstate = wxPyBeginAllowThreads();
2101 result = (bool)wxIsBusy();
2102
2103 wxPyEndAllowThreads(__tstate);
2104 if (PyErr_Occurred()) SWIG_fail;
2105 }
2106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2107 return resultobj;
2108 fail:
2109 return NULL;
2110 }
2111
2112
2113 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2114 PyObject *resultobj;
2115 wxString result;
2116 char *kwnames[] = {
2117 NULL
2118 };
2119
2120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2121 {
2122 PyThreadState* __tstate = wxPyBeginAllowThreads();
2123 result = wxNow();
2124
2125 wxPyEndAllowThreads(__tstate);
2126 if (PyErr_Occurred()) SWIG_fail;
2127 }
2128 {
2129 #if wxUSE_UNICODE
2130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2131 #else
2132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2133 #endif
2134 }
2135 return resultobj;
2136 fail:
2137 return NULL;
2138 }
2139
2140
2141 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2142 PyObject *resultobj;
2143 wxString const &arg1_defvalue = wxPyEmptyString ;
2144 wxString *arg1 = (wxString *) &arg1_defvalue ;
2145 bool result;
2146 bool temp1 = False ;
2147 PyObject * obj0 = 0 ;
2148 char *kwnames[] = {
2149 (char *) "command", NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2153 if (obj0) {
2154 {
2155 arg1 = wxString_in_helper(obj0);
2156 if (arg1 == NULL) SWIG_fail;
2157 temp1 = True;
2158 }
2159 }
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 result = (bool)wxShell((wxString const &)*arg1);
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2168 {
2169 if (temp1)
2170 delete arg1;
2171 }
2172 return resultobj;
2173 fail:
2174 {
2175 if (temp1)
2176 delete arg1;
2177 }
2178 return NULL;
2179 }
2180
2181
2182 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2183 PyObject *resultobj;
2184 char *kwnames[] = {
2185 NULL
2186 };
2187
2188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2189 {
2190 PyThreadState* __tstate = wxPyBeginAllowThreads();
2191 wxStartTimer();
2192
2193 wxPyEndAllowThreads(__tstate);
2194 if (PyErr_Occurred()) SWIG_fail;
2195 }
2196 Py_INCREF(Py_None); resultobj = Py_None;
2197 return resultobj;
2198 fail:
2199 return NULL;
2200 }
2201
2202
2203 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2204 PyObject *resultobj;
2205 int *arg1 = (int *) 0 ;
2206 int *arg2 = (int *) 0 ;
2207 int result;
2208 int temp1 ;
2209 int temp2 ;
2210 char *kwnames[] = {
2211 NULL
2212 };
2213
2214 arg1 = &temp1;
2215 arg2 = &temp2;
2216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 result = (int)wxGetOsVersion(arg1,arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 resultobj = SWIG_FromInt((int)result);
2225 {
2226 PyObject *o = PyInt_FromLong((long) (*arg1));
2227 resultobj = t_output_helper(resultobj,o);
2228 }
2229 {
2230 PyObject *o = PyInt_FromLong((long) (*arg2));
2231 resultobj = t_output_helper(resultobj,o);
2232 }
2233 return resultobj;
2234 fail:
2235 return NULL;
2236 }
2237
2238
2239 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2240 PyObject *resultobj;
2241 wxString result;
2242 char *kwnames[] = {
2243 NULL
2244 };
2245
2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2247 {
2248 PyThreadState* __tstate = wxPyBeginAllowThreads();
2249 result = wxGetOsDescription();
2250
2251 wxPyEndAllowThreads(__tstate);
2252 if (PyErr_Occurred()) SWIG_fail;
2253 }
2254 {
2255 #if wxUSE_UNICODE
2256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2257 #else
2258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2259 #endif
2260 }
2261 return resultobj;
2262 fail:
2263 return NULL;
2264 }
2265
2266
2267 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2268 PyObject *resultobj;
2269 long result;
2270 char *kwnames[] = {
2271 NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2275 {
2276 PyThreadState* __tstate = wxPyBeginAllowThreads();
2277 result = (long)wxGetFreeMemory();
2278
2279 wxPyEndAllowThreads(__tstate);
2280 if (PyErr_Occurred()) SWIG_fail;
2281 }
2282 resultobj = SWIG_FromLong((long)result);
2283 return resultobj;
2284 fail:
2285 return NULL;
2286 }
2287
2288
2289 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2290 PyObject *resultobj;
2291 int arg1 ;
2292 bool result;
2293 PyObject * obj0 = 0 ;
2294 char *kwnames[] = {
2295 (char *) "wFlags", NULL
2296 };
2297
2298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2299 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2300 if (PyErr_Occurred()) SWIG_fail;
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 }
2308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2309 return resultobj;
2310 fail:
2311 return NULL;
2312 }
2313
2314
2315 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2316 PyObject *resultobj;
2317 int arg1 ;
2318 PyObject * obj0 = 0 ;
2319 char *kwnames[] = {
2320 (char *) "secs", NULL
2321 };
2322
2323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2324 arg1 = (int) SWIG_AsInt(obj0);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 {
2327 PyThreadState* __tstate = wxPyBeginAllowThreads();
2328 wxSleep(arg1);
2329
2330 wxPyEndAllowThreads(__tstate);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 Py_INCREF(Py_None); resultobj = Py_None;
2334 return resultobj;
2335 fail:
2336 return NULL;
2337 }
2338
2339
2340 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2341 PyObject *resultobj;
2342 unsigned long arg1 ;
2343 PyObject * obj0 = 0 ;
2344 char *kwnames[] = {
2345 (char *) "milliseconds", NULL
2346 };
2347
2348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2349 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2350 if (PyErr_Occurred()) SWIG_fail;
2351 {
2352 PyThreadState* __tstate = wxPyBeginAllowThreads();
2353 wxUsleep(arg1);
2354
2355 wxPyEndAllowThreads(__tstate);
2356 if (PyErr_Occurred()) SWIG_fail;
2357 }
2358 Py_INCREF(Py_None); resultobj = Py_None;
2359 return resultobj;
2360 fail:
2361 return NULL;
2362 }
2363
2364
2365 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2366 PyObject *resultobj;
2367 bool arg1 ;
2368 PyObject * obj0 = 0 ;
2369 char *kwnames[] = {
2370 (char *) "enable", NULL
2371 };
2372
2373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2374 arg1 = (bool) SWIG_AsBool(obj0);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 {
2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
2378 wxEnableTopLevelWindows(arg1);
2379
2380 wxPyEndAllowThreads(__tstate);
2381 if (PyErr_Occurred()) SWIG_fail;
2382 }
2383 Py_INCREF(Py_None); resultobj = Py_None;
2384 return resultobj;
2385 fail:
2386 return NULL;
2387 }
2388
2389
2390 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2391 PyObject *resultobj;
2392 wxString *arg1 = 0 ;
2393 wxString result;
2394 bool temp1 = False ;
2395 PyObject * obj0 = 0 ;
2396 char *kwnames[] = {
2397 (char *) "in", NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2401 {
2402 arg1 = wxString_in_helper(obj0);
2403 if (arg1 == NULL) SWIG_fail;
2404 temp1 = True;
2405 }
2406 {
2407 PyThreadState* __tstate = wxPyBeginAllowThreads();
2408 result = wxStripMenuCodes((wxString const &)*arg1);
2409
2410 wxPyEndAllowThreads(__tstate);
2411 if (PyErr_Occurred()) SWIG_fail;
2412 }
2413 {
2414 #if wxUSE_UNICODE
2415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2416 #else
2417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2418 #endif
2419 }
2420 {
2421 if (temp1)
2422 delete arg1;
2423 }
2424 return resultobj;
2425 fail:
2426 {
2427 if (temp1)
2428 delete arg1;
2429 }
2430 return NULL;
2431 }
2432
2433
2434 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2435 PyObject *resultobj;
2436 wxString result;
2437 char *kwnames[] = {
2438 NULL
2439 };
2440
2441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2442 {
2443 PyThreadState* __tstate = wxPyBeginAllowThreads();
2444 result = wxGetEmailAddress();
2445
2446 wxPyEndAllowThreads(__tstate);
2447 if (PyErr_Occurred()) SWIG_fail;
2448 }
2449 {
2450 #if wxUSE_UNICODE
2451 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2452 #else
2453 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2454 #endif
2455 }
2456 return resultobj;
2457 fail:
2458 return NULL;
2459 }
2460
2461
2462 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2463 PyObject *resultobj;
2464 wxString result;
2465 char *kwnames[] = {
2466 NULL
2467 };
2468
2469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2470 {
2471 PyThreadState* __tstate = wxPyBeginAllowThreads();
2472 result = wxGetHostName();
2473
2474 wxPyEndAllowThreads(__tstate);
2475 if (PyErr_Occurred()) SWIG_fail;
2476 }
2477 {
2478 #if wxUSE_UNICODE
2479 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2480 #else
2481 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2482 #endif
2483 }
2484 return resultobj;
2485 fail:
2486 return NULL;
2487 }
2488
2489
2490 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2491 PyObject *resultobj;
2492 wxString result;
2493 char *kwnames[] = {
2494 NULL
2495 };
2496
2497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2498 {
2499 PyThreadState* __tstate = wxPyBeginAllowThreads();
2500 result = wxGetFullHostName();
2501
2502 wxPyEndAllowThreads(__tstate);
2503 if (PyErr_Occurred()) SWIG_fail;
2504 }
2505 {
2506 #if wxUSE_UNICODE
2507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2508 #else
2509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2510 #endif
2511 }
2512 return resultobj;
2513 fail:
2514 return NULL;
2515 }
2516
2517
2518 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2519 PyObject *resultobj;
2520 wxString result;
2521 char *kwnames[] = {
2522 NULL
2523 };
2524
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2526 {
2527 PyThreadState* __tstate = wxPyBeginAllowThreads();
2528 result = wxGetUserId();
2529
2530 wxPyEndAllowThreads(__tstate);
2531 if (PyErr_Occurred()) SWIG_fail;
2532 }
2533 {
2534 #if wxUSE_UNICODE
2535 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2536 #else
2537 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2538 #endif
2539 }
2540 return resultobj;
2541 fail:
2542 return NULL;
2543 }
2544
2545
2546 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2547 PyObject *resultobj;
2548 wxString result;
2549 char *kwnames[] = {
2550 NULL
2551 };
2552
2553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2554 {
2555 PyThreadState* __tstate = wxPyBeginAllowThreads();
2556 result = wxGetUserName();
2557
2558 wxPyEndAllowThreads(__tstate);
2559 if (PyErr_Occurred()) SWIG_fail;
2560 }
2561 {
2562 #if wxUSE_UNICODE
2563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2564 #else
2565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2566 #endif
2567 }
2568 return resultobj;
2569 fail:
2570 return NULL;
2571 }
2572
2573
2574 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2575 PyObject *resultobj;
2576 wxString result;
2577 char *kwnames[] = {
2578 NULL
2579 };
2580
2581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2582 {
2583 PyThreadState* __tstate = wxPyBeginAllowThreads();
2584 result = wxGetHomeDir();
2585
2586 wxPyEndAllowThreads(__tstate);
2587 if (PyErr_Occurred()) SWIG_fail;
2588 }
2589 {
2590 #if wxUSE_UNICODE
2591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2592 #else
2593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2594 #endif
2595 }
2596 return resultobj;
2597 fail:
2598 return NULL;
2599 }
2600
2601
2602 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2603 PyObject *resultobj;
2604 wxString const &arg1_defvalue = wxPyEmptyString ;
2605 wxString *arg1 = (wxString *) &arg1_defvalue ;
2606 wxString result;
2607 bool temp1 = False ;
2608 PyObject * obj0 = 0 ;
2609 char *kwnames[] = {
2610 (char *) "user", NULL
2611 };
2612
2613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2614 if (obj0) {
2615 {
2616 arg1 = wxString_in_helper(obj0);
2617 if (arg1 == NULL) SWIG_fail;
2618 temp1 = True;
2619 }
2620 }
2621 {
2622 PyThreadState* __tstate = wxPyBeginAllowThreads();
2623 result = wxGetUserHome((wxString const &)*arg1);
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 {
2629 #if wxUSE_UNICODE
2630 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2631 #else
2632 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2633 #endif
2634 }
2635 {
2636 if (temp1)
2637 delete arg1;
2638 }
2639 return resultobj;
2640 fail:
2641 {
2642 if (temp1)
2643 delete arg1;
2644 }
2645 return NULL;
2646 }
2647
2648
2649 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject *resultobj;
2651 unsigned long result;
2652 char *kwnames[] = {
2653 NULL
2654 };
2655
2656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2657 {
2658 PyThreadState* __tstate = wxPyBeginAllowThreads();
2659 result = (unsigned long)wxGetProcessId();
2660
2661 wxPyEndAllowThreads(__tstate);
2662 if (PyErr_Occurred()) SWIG_fail;
2663 }
2664 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2665 return resultobj;
2666 fail:
2667 return NULL;
2668 }
2669
2670
2671 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2672 PyObject *resultobj;
2673 char *kwnames[] = {
2674 NULL
2675 };
2676
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2678 {
2679 PyThreadState* __tstate = wxPyBeginAllowThreads();
2680 wxTrap();
2681
2682 wxPyEndAllowThreads(__tstate);
2683 if (PyErr_Occurred()) SWIG_fail;
2684 }
2685 Py_INCREF(Py_None); resultobj = Py_None;
2686 return resultobj;
2687 fail:
2688 return NULL;
2689 }
2690
2691
2692 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2693 PyObject *resultobj;
2694 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2695 wxString *arg1 = (wxString *) &arg1_defvalue ;
2696 wxString const &arg2_defvalue = wxPyEmptyString ;
2697 wxString *arg2 = (wxString *) &arg2_defvalue ;
2698 wxString const &arg3_defvalue = wxPyEmptyString ;
2699 wxString *arg3 = (wxString *) &arg3_defvalue ;
2700 wxString const &arg4_defvalue = wxPyEmptyString ;
2701 wxString *arg4 = (wxString *) &arg4_defvalue ;
2702 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2703 wxString *arg5 = (wxString *) &arg5_defvalue ;
2704 int arg6 = (int) 0 ;
2705 wxWindow *arg7 = (wxWindow *) NULL ;
2706 int arg8 = (int) -1 ;
2707 int arg9 = (int) -1 ;
2708 wxString result;
2709 bool temp1 = False ;
2710 bool temp2 = False ;
2711 bool temp3 = False ;
2712 bool temp4 = False ;
2713 bool temp5 = False ;
2714 PyObject * obj0 = 0 ;
2715 PyObject * obj1 = 0 ;
2716 PyObject * obj2 = 0 ;
2717 PyObject * obj3 = 0 ;
2718 PyObject * obj4 = 0 ;
2719 PyObject * obj5 = 0 ;
2720 PyObject * obj6 = 0 ;
2721 PyObject * obj7 = 0 ;
2722 PyObject * obj8 = 0 ;
2723 char *kwnames[] = {
2724 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2725 };
2726
2727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2728 if (obj0) {
2729 {
2730 arg1 = wxString_in_helper(obj0);
2731 if (arg1 == NULL) SWIG_fail;
2732 temp1 = True;
2733 }
2734 }
2735 if (obj1) {
2736 {
2737 arg2 = wxString_in_helper(obj1);
2738 if (arg2 == NULL) SWIG_fail;
2739 temp2 = True;
2740 }
2741 }
2742 if (obj2) {
2743 {
2744 arg3 = wxString_in_helper(obj2);
2745 if (arg3 == NULL) SWIG_fail;
2746 temp3 = True;
2747 }
2748 }
2749 if (obj3) {
2750 {
2751 arg4 = wxString_in_helper(obj3);
2752 if (arg4 == NULL) SWIG_fail;
2753 temp4 = True;
2754 }
2755 }
2756 if (obj4) {
2757 {
2758 arg5 = wxString_in_helper(obj4);
2759 if (arg5 == NULL) SWIG_fail;
2760 temp5 = True;
2761 }
2762 }
2763 if (obj5) {
2764 arg6 = (int) SWIG_AsInt(obj5);
2765 if (PyErr_Occurred()) SWIG_fail;
2766 }
2767 if (obj6) {
2768 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2770 }
2771 if (obj7) {
2772 arg8 = (int) SWIG_AsInt(obj7);
2773 if (PyErr_Occurred()) SWIG_fail;
2774 }
2775 if (obj8) {
2776 arg9 = (int) SWIG_AsInt(obj8);
2777 if (PyErr_Occurred()) SWIG_fail;
2778 }
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) SWIG_fail;
2785 }
2786 {
2787 #if wxUSE_UNICODE
2788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2789 #else
2790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2791 #endif
2792 }
2793 {
2794 if (temp1)
2795 delete arg1;
2796 }
2797 {
2798 if (temp2)
2799 delete arg2;
2800 }
2801 {
2802 if (temp3)
2803 delete arg3;
2804 }
2805 {
2806 if (temp4)
2807 delete arg4;
2808 }
2809 {
2810 if (temp5)
2811 delete arg5;
2812 }
2813 return resultobj;
2814 fail:
2815 {
2816 if (temp1)
2817 delete arg1;
2818 }
2819 {
2820 if (temp2)
2821 delete arg2;
2822 }
2823 {
2824 if (temp3)
2825 delete arg3;
2826 }
2827 {
2828 if (temp4)
2829 delete arg4;
2830 }
2831 {
2832 if (temp5)
2833 delete arg5;
2834 }
2835 return NULL;
2836 }
2837
2838
2839 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2840 PyObject *resultobj;
2841 wxString *arg1 = 0 ;
2842 wxString *arg2 = 0 ;
2843 wxString const &arg3_defvalue = wxPyEmptyString ;
2844 wxString *arg3 = (wxString *) &arg3_defvalue ;
2845 wxWindow *arg4 = (wxWindow *) NULL ;
2846 wxString result;
2847 bool temp1 = False ;
2848 bool temp2 = False ;
2849 bool temp3 = False ;
2850 PyObject * obj0 = 0 ;
2851 PyObject * obj1 = 0 ;
2852 PyObject * obj2 = 0 ;
2853 PyObject * obj3 = 0 ;
2854 char *kwnames[] = {
2855 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2856 };
2857
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2859 {
2860 arg1 = wxString_in_helper(obj0);
2861 if (arg1 == NULL) SWIG_fail;
2862 temp1 = True;
2863 }
2864 {
2865 arg2 = wxString_in_helper(obj1);
2866 if (arg2 == NULL) SWIG_fail;
2867 temp2 = True;
2868 }
2869 if (obj2) {
2870 {
2871 arg3 = wxString_in_helper(obj2);
2872 if (arg3 == NULL) SWIG_fail;
2873 temp3 = True;
2874 }
2875 }
2876 if (obj3) {
2877 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2879 }
2880 {
2881 PyThreadState* __tstate = wxPyBeginAllowThreads();
2882 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2883
2884 wxPyEndAllowThreads(__tstate);
2885 if (PyErr_Occurred()) SWIG_fail;
2886 }
2887 {
2888 #if wxUSE_UNICODE
2889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2890 #else
2891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2892 #endif
2893 }
2894 {
2895 if (temp1)
2896 delete arg1;
2897 }
2898 {
2899 if (temp2)
2900 delete arg2;
2901 }
2902 {
2903 if (temp3)
2904 delete arg3;
2905 }
2906 return resultobj;
2907 fail:
2908 {
2909 if (temp1)
2910 delete arg1;
2911 }
2912 {
2913 if (temp2)
2914 delete arg2;
2915 }
2916 {
2917 if (temp3)
2918 delete arg3;
2919 }
2920 return NULL;
2921 }
2922
2923
2924 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2925 PyObject *resultobj;
2926 wxString *arg1 = 0 ;
2927 wxString *arg2 = 0 ;
2928 wxString const &arg3_defvalue = wxPyEmptyString ;
2929 wxString *arg3 = (wxString *) &arg3_defvalue ;
2930 wxWindow *arg4 = (wxWindow *) NULL ;
2931 wxString result;
2932 bool temp1 = False ;
2933 bool temp2 = False ;
2934 bool temp3 = False ;
2935 PyObject * obj0 = 0 ;
2936 PyObject * obj1 = 0 ;
2937 PyObject * obj2 = 0 ;
2938 PyObject * obj3 = 0 ;
2939 char *kwnames[] = {
2940 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2941 };
2942
2943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2944 {
2945 arg1 = wxString_in_helper(obj0);
2946 if (arg1 == NULL) SWIG_fail;
2947 temp1 = True;
2948 }
2949 {
2950 arg2 = wxString_in_helper(obj1);
2951 if (arg2 == NULL) SWIG_fail;
2952 temp2 = True;
2953 }
2954 if (obj2) {
2955 {
2956 arg3 = wxString_in_helper(obj2);
2957 if (arg3 == NULL) SWIG_fail;
2958 temp3 = True;
2959 }
2960 }
2961 if (obj3) {
2962 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2964 }
2965 {
2966 PyThreadState* __tstate = wxPyBeginAllowThreads();
2967 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2968
2969 wxPyEndAllowThreads(__tstate);
2970 if (PyErr_Occurred()) SWIG_fail;
2971 }
2972 {
2973 #if wxUSE_UNICODE
2974 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2975 #else
2976 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2977 #endif
2978 }
2979 {
2980 if (temp1)
2981 delete arg1;
2982 }
2983 {
2984 if (temp2)
2985 delete arg2;
2986 }
2987 {
2988 if (temp3)
2989 delete arg3;
2990 }
2991 return resultobj;
2992 fail:
2993 {
2994 if (temp1)
2995 delete arg1;
2996 }
2997 {
2998 if (temp2)
2999 delete arg2;
3000 }
3001 {
3002 if (temp3)
3003 delete arg3;
3004 }
3005 return NULL;
3006 }
3007
3008
3009 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3010 PyObject *resultobj;
3011 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3012 wxString *arg1 = (wxString *) &arg1_defvalue ;
3013 wxString const &arg2_defvalue = wxPyEmptyString ;
3014 wxString *arg2 = (wxString *) &arg2_defvalue ;
3015 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3016 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3017 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3018 wxWindow *arg5 = (wxWindow *) NULL ;
3019 wxString result;
3020 bool temp1 = False ;
3021 bool temp2 = False ;
3022 wxPoint temp4 ;
3023 PyObject * obj0 = 0 ;
3024 PyObject * obj1 = 0 ;
3025 PyObject * obj2 = 0 ;
3026 PyObject * obj3 = 0 ;
3027 PyObject * obj4 = 0 ;
3028 char *kwnames[] = {
3029 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3030 };
3031
3032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3033 if (obj0) {
3034 {
3035 arg1 = wxString_in_helper(obj0);
3036 if (arg1 == NULL) SWIG_fail;
3037 temp1 = True;
3038 }
3039 }
3040 if (obj1) {
3041 {
3042 arg2 = wxString_in_helper(obj1);
3043 if (arg2 == NULL) SWIG_fail;
3044 temp2 = True;
3045 }
3046 }
3047 if (obj2) {
3048 arg3 = (long) SWIG_AsLong(obj2);
3049 if (PyErr_Occurred()) SWIG_fail;
3050 }
3051 if (obj3) {
3052 {
3053 arg4 = &temp4;
3054 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3055 }
3056 }
3057 if (obj4) {
3058 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3060 }
3061 {
3062 PyThreadState* __tstate = wxPyBeginAllowThreads();
3063 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3064
3065 wxPyEndAllowThreads(__tstate);
3066 if (PyErr_Occurred()) SWIG_fail;
3067 }
3068 {
3069 #if wxUSE_UNICODE
3070 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3071 #else
3072 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3073 #endif
3074 }
3075 {
3076 if (temp1)
3077 delete arg1;
3078 }
3079 {
3080 if (temp2)
3081 delete arg2;
3082 }
3083 return resultobj;
3084 fail:
3085 {
3086 if (temp1)
3087 delete arg1;
3088 }
3089 {
3090 if (temp2)
3091 delete arg2;
3092 }
3093 return NULL;
3094 }
3095
3096
3097 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3098 PyObject *resultobj;
3099 wxString *arg1 = 0 ;
3100 wxString const &arg2_defvalue = wxPyEmptyString ;
3101 wxString *arg2 = (wxString *) &arg2_defvalue ;
3102 wxString const &arg3_defvalue = wxPyEmptyString ;
3103 wxString *arg3 = (wxString *) &arg3_defvalue ;
3104 wxWindow *arg4 = (wxWindow *) NULL ;
3105 int arg5 = (int) -1 ;
3106 int arg6 = (int) -1 ;
3107 bool arg7 = (bool) True ;
3108 wxString result;
3109 bool temp1 = False ;
3110 bool temp2 = False ;
3111 bool temp3 = False ;
3112 PyObject * obj0 = 0 ;
3113 PyObject * obj1 = 0 ;
3114 PyObject * obj2 = 0 ;
3115 PyObject * obj3 = 0 ;
3116 PyObject * obj4 = 0 ;
3117 PyObject * obj5 = 0 ;
3118 PyObject * obj6 = 0 ;
3119 char *kwnames[] = {
3120 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3121 };
3122
3123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3124 {
3125 arg1 = wxString_in_helper(obj0);
3126 if (arg1 == NULL) SWIG_fail;
3127 temp1 = True;
3128 }
3129 if (obj1) {
3130 {
3131 arg2 = wxString_in_helper(obj1);
3132 if (arg2 == NULL) SWIG_fail;
3133 temp2 = True;
3134 }
3135 }
3136 if (obj2) {
3137 {
3138 arg3 = wxString_in_helper(obj2);
3139 if (arg3 == NULL) SWIG_fail;
3140 temp3 = True;
3141 }
3142 }
3143 if (obj3) {
3144 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3146 }
3147 if (obj4) {
3148 arg5 = (int) SWIG_AsInt(obj4);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 if (obj5) {
3152 arg6 = (int) SWIG_AsInt(obj5);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 if (obj6) {
3156 arg7 = (bool) SWIG_AsBool(obj6);
3157 if (PyErr_Occurred()) SWIG_fail;
3158 }
3159 {
3160 PyThreadState* __tstate = wxPyBeginAllowThreads();
3161 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3162
3163 wxPyEndAllowThreads(__tstate);
3164 if (PyErr_Occurred()) SWIG_fail;
3165 }
3166 {
3167 #if wxUSE_UNICODE
3168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3169 #else
3170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3171 #endif
3172 }
3173 {
3174 if (temp1)
3175 delete arg1;
3176 }
3177 {
3178 if (temp2)
3179 delete arg2;
3180 }
3181 {
3182 if (temp3)
3183 delete arg3;
3184 }
3185 return resultobj;
3186 fail:
3187 {
3188 if (temp1)
3189 delete arg1;
3190 }
3191 {
3192 if (temp2)
3193 delete arg2;
3194 }
3195 {
3196 if (temp3)
3197 delete arg3;
3198 }
3199 return NULL;
3200 }
3201
3202
3203 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3204 PyObject *resultobj;
3205 wxString *arg1 = 0 ;
3206 wxString const &arg2_defvalue = wxPyEmptyString ;
3207 wxString *arg2 = (wxString *) &arg2_defvalue ;
3208 wxString const &arg3_defvalue = wxPyEmptyString ;
3209 wxString *arg3 = (wxString *) &arg3_defvalue ;
3210 wxWindow *arg4 = (wxWindow *) NULL ;
3211 wxString result;
3212 bool temp1 = False ;
3213 bool temp2 = False ;
3214 bool temp3 = False ;
3215 PyObject * obj0 = 0 ;
3216 PyObject * obj1 = 0 ;
3217 PyObject * obj2 = 0 ;
3218 PyObject * obj3 = 0 ;
3219 char *kwnames[] = {
3220 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3221 };
3222
3223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3224 {
3225 arg1 = wxString_in_helper(obj0);
3226 if (arg1 == NULL) SWIG_fail;
3227 temp1 = True;
3228 }
3229 if (obj1) {
3230 {
3231 arg2 = wxString_in_helper(obj1);
3232 if (arg2 == NULL) SWIG_fail;
3233 temp2 = True;
3234 }
3235 }
3236 if (obj2) {
3237 {
3238 arg3 = wxString_in_helper(obj2);
3239 if (arg3 == NULL) SWIG_fail;
3240 temp3 = True;
3241 }
3242 }
3243 if (obj3) {
3244 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3246 }
3247 {
3248 PyThreadState* __tstate = wxPyBeginAllowThreads();
3249 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3250
3251 wxPyEndAllowThreads(__tstate);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 }
3254 {
3255 #if wxUSE_UNICODE
3256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3257 #else
3258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3259 #endif
3260 }
3261 {
3262 if (temp1)
3263 delete arg1;
3264 }
3265 {
3266 if (temp2)
3267 delete arg2;
3268 }
3269 {
3270 if (temp3)
3271 delete arg3;
3272 }
3273 return resultobj;
3274 fail:
3275 {
3276 if (temp1)
3277 delete arg1;
3278 }
3279 {
3280 if (temp2)
3281 delete arg2;
3282 }
3283 {
3284 if (temp3)
3285 delete arg3;
3286 }
3287 return NULL;
3288 }
3289
3290
3291 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject *resultobj;
3293 wxString *arg1 = 0 ;
3294 wxString *arg2 = 0 ;
3295 int arg3 ;
3296 wxString *arg4 = (wxString *) 0 ;
3297 wxWindow *arg5 = (wxWindow *) NULL ;
3298 int arg6 = (int) -1 ;
3299 int arg7 = (int) -1 ;
3300 bool arg8 = (bool) True ;
3301 int arg9 = (int) 150 ;
3302 int arg10 = (int) 200 ;
3303 wxString result;
3304 bool temp1 = False ;
3305 bool temp2 = False ;
3306 PyObject * obj0 = 0 ;
3307 PyObject * obj1 = 0 ;
3308 PyObject * obj2 = 0 ;
3309 PyObject * obj3 = 0 ;
3310 PyObject * obj4 = 0 ;
3311 PyObject * obj5 = 0 ;
3312 PyObject * obj6 = 0 ;
3313 PyObject * obj7 = 0 ;
3314 PyObject * obj8 = 0 ;
3315 char *kwnames[] = {
3316 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3317 };
3318
3319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3320 {
3321 arg1 = wxString_in_helper(obj0);
3322 if (arg1 == NULL) SWIG_fail;
3323 temp1 = True;
3324 }
3325 {
3326 arg2 = wxString_in_helper(obj1);
3327 if (arg2 == NULL) SWIG_fail;
3328 temp2 = True;
3329 }
3330 {
3331 arg3 = PyList_Size(obj2);
3332 arg4 = wxString_LIST_helper(obj2);
3333 if (arg4 == NULL) SWIG_fail;
3334 }
3335 if (obj3) {
3336 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3338 }
3339 if (obj4) {
3340 arg6 = (int) SWIG_AsInt(obj4);
3341 if (PyErr_Occurred()) SWIG_fail;
3342 }
3343 if (obj5) {
3344 arg7 = (int) SWIG_AsInt(obj5);
3345 if (PyErr_Occurred()) SWIG_fail;
3346 }
3347 if (obj6) {
3348 arg8 = (bool) SWIG_AsBool(obj6);
3349 if (PyErr_Occurred()) SWIG_fail;
3350 }
3351 if (obj7) {
3352 arg9 = (int) SWIG_AsInt(obj7);
3353 if (PyErr_Occurred()) SWIG_fail;
3354 }
3355 if (obj8) {
3356 arg10 = (int) SWIG_AsInt(obj8);
3357 if (PyErr_Occurred()) SWIG_fail;
3358 }
3359 {
3360 PyThreadState* __tstate = wxPyBeginAllowThreads();
3361 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3362
3363 wxPyEndAllowThreads(__tstate);
3364 if (PyErr_Occurred()) SWIG_fail;
3365 }
3366 {
3367 #if wxUSE_UNICODE
3368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3369 #else
3370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3371 #endif
3372 }
3373 {
3374 if (temp1)
3375 delete arg1;
3376 }
3377 {
3378 if (temp2)
3379 delete arg2;
3380 }
3381 {
3382 if (arg4) delete [] arg4;
3383 }
3384 return resultobj;
3385 fail:
3386 {
3387 if (temp1)
3388 delete arg1;
3389 }
3390 {
3391 if (temp2)
3392 delete arg2;
3393 }
3394 {
3395 if (arg4) delete [] arg4;
3396 }
3397 return NULL;
3398 }
3399
3400
3401 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj;
3403 wxString *arg1 = 0 ;
3404 wxString *arg2 = 0 ;
3405 int arg3 ;
3406 wxString *arg4 = (wxString *) 0 ;
3407 wxWindow *arg5 = (wxWindow *) NULL ;
3408 int arg6 = (int) -1 ;
3409 int arg7 = (int) -1 ;
3410 bool arg8 = (bool) True ;
3411 int arg9 = (int) 150 ;
3412 int arg10 = (int) 200 ;
3413 int result;
3414 bool temp1 = False ;
3415 bool temp2 = False ;
3416 PyObject * obj0 = 0 ;
3417 PyObject * obj1 = 0 ;
3418 PyObject * obj2 = 0 ;
3419 PyObject * obj3 = 0 ;
3420 PyObject * obj4 = 0 ;
3421 PyObject * obj5 = 0 ;
3422 PyObject * obj6 = 0 ;
3423 PyObject * obj7 = 0 ;
3424 PyObject * obj8 = 0 ;
3425 char *kwnames[] = {
3426 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3427 };
3428
3429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3430 {
3431 arg1 = wxString_in_helper(obj0);
3432 if (arg1 == NULL) SWIG_fail;
3433 temp1 = True;
3434 }
3435 {
3436 arg2 = wxString_in_helper(obj1);
3437 if (arg2 == NULL) SWIG_fail;
3438 temp2 = True;
3439 }
3440 {
3441 arg3 = PyList_Size(obj2);
3442 arg4 = wxString_LIST_helper(obj2);
3443 if (arg4 == NULL) SWIG_fail;
3444 }
3445 if (obj3) {
3446 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3448 }
3449 if (obj4) {
3450 arg6 = (int) SWIG_AsInt(obj4);
3451 if (PyErr_Occurred()) SWIG_fail;
3452 }
3453 if (obj5) {
3454 arg7 = (int) SWIG_AsInt(obj5);
3455 if (PyErr_Occurred()) SWIG_fail;
3456 }
3457 if (obj6) {
3458 arg8 = (bool) SWIG_AsBool(obj6);
3459 if (PyErr_Occurred()) SWIG_fail;
3460 }
3461 if (obj7) {
3462 arg9 = (int) SWIG_AsInt(obj7);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 if (obj8) {
3466 arg10 = (int) SWIG_AsInt(obj8);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 {
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3472
3473 wxPyEndAllowThreads(__tstate);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 }
3476 resultobj = SWIG_FromInt((int)result);
3477 {
3478 if (temp1)
3479 delete arg1;
3480 }
3481 {
3482 if (temp2)
3483 delete arg2;
3484 }
3485 {
3486 if (arg4) delete [] arg4;
3487 }
3488 return resultobj;
3489 fail:
3490 {
3491 if (temp1)
3492 delete arg1;
3493 }
3494 {
3495 if (temp2)
3496 delete arg2;
3497 }
3498 {
3499 if (arg4) delete [] arg4;
3500 }
3501 return NULL;
3502 }
3503
3504
3505 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3506 PyObject *resultobj;
3507 wxString *arg1 = 0 ;
3508 wxString const &arg2_defvalue = wxPyEmptyString ;
3509 wxString *arg2 = (wxString *) &arg2_defvalue ;
3510 int arg3 = (int) wxOK|wxCENTRE ;
3511 wxWindow *arg4 = (wxWindow *) NULL ;
3512 int arg5 = (int) -1 ;
3513 int arg6 = (int) -1 ;
3514 int result;
3515 bool temp1 = False ;
3516 bool temp2 = False ;
3517 PyObject * obj0 = 0 ;
3518 PyObject * obj1 = 0 ;
3519 PyObject * obj2 = 0 ;
3520 PyObject * obj3 = 0 ;
3521 PyObject * obj4 = 0 ;
3522 PyObject * obj5 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3528 {
3529 arg1 = wxString_in_helper(obj0);
3530 if (arg1 == NULL) SWIG_fail;
3531 temp1 = True;
3532 }
3533 if (obj1) {
3534 {
3535 arg2 = wxString_in_helper(obj1);
3536 if (arg2 == NULL) SWIG_fail;
3537 temp2 = True;
3538 }
3539 }
3540 if (obj2) {
3541 arg3 = (int) SWIG_AsInt(obj2);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 if (obj3) {
3545 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3547 }
3548 if (obj4) {
3549 arg5 = (int) SWIG_AsInt(obj4);
3550 if (PyErr_Occurred()) SWIG_fail;
3551 }
3552 if (obj5) {
3553 arg6 = (int) SWIG_AsInt(obj5);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 {
3557 PyThreadState* __tstate = wxPyBeginAllowThreads();
3558 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3559
3560 wxPyEndAllowThreads(__tstate);
3561 if (PyErr_Occurred()) SWIG_fail;
3562 }
3563 resultobj = SWIG_FromInt((int)result);
3564 {
3565 if (temp1)
3566 delete arg1;
3567 }
3568 {
3569 if (temp2)
3570 delete arg2;
3571 }
3572 return resultobj;
3573 fail:
3574 {
3575 if (temp1)
3576 delete arg1;
3577 }
3578 {
3579 if (temp2)
3580 delete arg2;
3581 }
3582 return NULL;
3583 }
3584
3585
3586 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3587 PyObject *resultobj;
3588 wxString *arg1 = 0 ;
3589 wxString *arg2 = 0 ;
3590 wxString *arg3 = 0 ;
3591 long arg4 ;
3592 long arg5 = (long) 0 ;
3593 long arg6 = (long) 100 ;
3594 wxWindow *arg7 = (wxWindow *) NULL ;
3595 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3596 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3597 long result;
3598 bool temp1 = False ;
3599 bool temp2 = False ;
3600 bool temp3 = False ;
3601 wxPoint temp8 ;
3602 PyObject * obj0 = 0 ;
3603 PyObject * obj1 = 0 ;
3604 PyObject * obj2 = 0 ;
3605 PyObject * obj3 = 0 ;
3606 PyObject * obj4 = 0 ;
3607 PyObject * obj5 = 0 ;
3608 PyObject * obj6 = 0 ;
3609 PyObject * obj7 = 0 ;
3610 char *kwnames[] = {
3611 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3612 };
3613
3614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3615 {
3616 arg1 = wxString_in_helper(obj0);
3617 if (arg1 == NULL) SWIG_fail;
3618 temp1 = True;
3619 }
3620 {
3621 arg2 = wxString_in_helper(obj1);
3622 if (arg2 == NULL) SWIG_fail;
3623 temp2 = True;
3624 }
3625 {
3626 arg3 = wxString_in_helper(obj2);
3627 if (arg3 == NULL) SWIG_fail;
3628 temp3 = True;
3629 }
3630 arg4 = (long) SWIG_AsLong(obj3);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 if (obj4) {
3633 arg5 = (long) SWIG_AsLong(obj4);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 }
3636 if (obj5) {
3637 arg6 = (long) SWIG_AsLong(obj5);
3638 if (PyErr_Occurred()) SWIG_fail;
3639 }
3640 if (obj6) {
3641 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3643 }
3644 if (obj7) {
3645 {
3646 arg8 = &temp8;
3647 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3648 }
3649 }
3650 {
3651 PyThreadState* __tstate = wxPyBeginAllowThreads();
3652 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3653
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 resultobj = SWIG_FromLong((long)result);
3658 {
3659 if (temp1)
3660 delete arg1;
3661 }
3662 {
3663 if (temp2)
3664 delete arg2;
3665 }
3666 {
3667 if (temp3)
3668 delete arg3;
3669 }
3670 return resultobj;
3671 fail:
3672 {
3673 if (temp1)
3674 delete arg1;
3675 }
3676 {
3677 if (temp2)
3678 delete arg2;
3679 }
3680 {
3681 if (temp3)
3682 delete arg3;
3683 }
3684 return NULL;
3685 }
3686
3687
3688 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3689 PyObject *resultobj;
3690 bool result;
3691 char *kwnames[] = {
3692 NULL
3693 };
3694
3695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 result = (bool)wxColourDisplay();
3699
3700 wxPyEndAllowThreads(__tstate);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 }
3703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3704 return resultobj;
3705 fail:
3706 return NULL;
3707 }
3708
3709
3710 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject *resultobj;
3712 int result;
3713 char *kwnames[] = {
3714 NULL
3715 };
3716
3717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = (int)wxDisplayDepth();
3721
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 resultobj = SWIG_FromInt((int)result);
3726 return resultobj;
3727 fail:
3728 return NULL;
3729 }
3730
3731
3732 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3733 PyObject *resultobj;
3734 int result;
3735 char *kwnames[] = {
3736 NULL
3737 };
3738
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = (int)wxGetDisplayDepth();
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 resultobj = SWIG_FromInt((int)result);
3748 return resultobj;
3749 fail:
3750 return NULL;
3751 }
3752
3753
3754 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 int *arg1 = (int *) 0 ;
3757 int *arg2 = (int *) 0 ;
3758 int temp1 ;
3759 int temp2 ;
3760 char *kwnames[] = {
3761 NULL
3762 };
3763
3764 arg1 = &temp1;
3765 arg2 = &temp2;
3766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3767 {
3768 PyThreadState* __tstate = wxPyBeginAllowThreads();
3769 wxDisplaySize(arg1,arg2);
3770
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 Py_INCREF(Py_None); resultobj = Py_None;
3775 {
3776 PyObject *o = PyInt_FromLong((long) (*arg1));
3777 resultobj = t_output_helper(resultobj,o);
3778 }
3779 {
3780 PyObject *o = PyInt_FromLong((long) (*arg2));
3781 resultobj = t_output_helper(resultobj,o);
3782 }
3783 return resultobj;
3784 fail:
3785 return NULL;
3786 }
3787
3788
3789 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3790 PyObject *resultobj;
3791 wxSize result;
3792 char *kwnames[] = {
3793 NULL
3794 };
3795
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3797 {
3798 PyThreadState* __tstate = wxPyBeginAllowThreads();
3799 result = wxGetDisplaySize();
3800
3801 wxPyEndAllowThreads(__tstate);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
3804 {
3805 wxSize * resultptr;
3806 resultptr = new wxSize((wxSize &) result);
3807 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3808 }
3809 return resultobj;
3810 fail:
3811 return NULL;
3812 }
3813
3814
3815 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3816 PyObject *resultobj;
3817 int *arg1 = (int *) 0 ;
3818 int *arg2 = (int *) 0 ;
3819 int temp1 ;
3820 int temp2 ;
3821 char *kwnames[] = {
3822 NULL
3823 };
3824
3825 arg1 = &temp1;
3826 arg2 = &temp2;
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3828 {
3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
3830 wxDisplaySizeMM(arg1,arg2);
3831
3832 wxPyEndAllowThreads(__tstate);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 Py_INCREF(Py_None); resultobj = Py_None;
3836 {
3837 PyObject *o = PyInt_FromLong((long) (*arg1));
3838 resultobj = t_output_helper(resultobj,o);
3839 }
3840 {
3841 PyObject *o = PyInt_FromLong((long) (*arg2));
3842 resultobj = t_output_helper(resultobj,o);
3843 }
3844 return resultobj;
3845 fail:
3846 return NULL;
3847 }
3848
3849
3850 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3851 PyObject *resultobj;
3852 wxSize result;
3853 char *kwnames[] = {
3854 NULL
3855 };
3856
3857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3858 {
3859 PyThreadState* __tstate = wxPyBeginAllowThreads();
3860 result = wxGetDisplaySizeMM();
3861
3862 wxPyEndAllowThreads(__tstate);
3863 if (PyErr_Occurred()) SWIG_fail;
3864 }
3865 {
3866 wxSize * resultptr;
3867 resultptr = new wxSize((wxSize &) result);
3868 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3869 }
3870 return resultobj;
3871 fail:
3872 return NULL;
3873 }
3874
3875
3876 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3877 PyObject *resultobj;
3878 int *arg1 = (int *) 0 ;
3879 int *arg2 = (int *) 0 ;
3880 int *arg3 = (int *) 0 ;
3881 int *arg4 = (int *) 0 ;
3882 int temp1 ;
3883 int temp2 ;
3884 int temp3 ;
3885 int temp4 ;
3886 char *kwnames[] = {
3887 NULL
3888 };
3889
3890 arg1 = &temp1;
3891 arg2 = &temp2;
3892 arg3 = &temp3;
3893 arg4 = &temp4;
3894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 Py_INCREF(Py_None); resultobj = Py_None;
3903 {
3904 PyObject *o = PyInt_FromLong((long) (*arg1));
3905 resultobj = t_output_helper(resultobj,o);
3906 }
3907 {
3908 PyObject *o = PyInt_FromLong((long) (*arg2));
3909 resultobj = t_output_helper(resultobj,o);
3910 }
3911 {
3912 PyObject *o = PyInt_FromLong((long) (*arg3));
3913 resultobj = t_output_helper(resultobj,o);
3914 }
3915 {
3916 PyObject *o = PyInt_FromLong((long) (*arg4));
3917 resultobj = t_output_helper(resultobj,o);
3918 }
3919 return resultobj;
3920 fail:
3921 return NULL;
3922 }
3923
3924
3925 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3926 PyObject *resultobj;
3927 wxRect result;
3928 char *kwnames[] = {
3929 NULL
3930 };
3931
3932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3933 {
3934 PyThreadState* __tstate = wxPyBeginAllowThreads();
3935 result = wxGetClientDisplayRect();
3936
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 }
3940 {
3941 wxRect * resultptr;
3942 resultptr = new wxRect((wxRect &) result);
3943 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3944 }
3945 return resultobj;
3946 fail:
3947 return NULL;
3948 }
3949
3950
3951 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3952 PyObject *resultobj;
3953 wxCursor *arg1 = 0 ;
3954 PyObject * obj0 = 0 ;
3955 char *kwnames[] = {
3956 (char *) "cursor", NULL
3957 };
3958
3959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3961 SWIG_POINTER_EXCEPTION | 0)) == -1)
3962 SWIG_fail;
3963 if (arg1 == NULL) {
3964 PyErr_SetString(PyExc_TypeError,"null reference");
3965 SWIG_fail;
3966 }
3967 {
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 wxSetCursor(*arg1);
3970
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 Py_INCREF(Py_None); resultobj = Py_None;
3975 return resultobj;
3976 fail:
3977 return NULL;
3978 }
3979
3980
3981 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3982 PyObject *resultobj;
3983 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3984 PyObject * obj0 = 0 ;
3985 char *kwnames[] = {
3986 (char *) "cursor", NULL
3987 };
3988
3989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3990 if (obj0) {
3991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3993 }
3994 {
3995 PyThreadState* __tstate = wxPyBeginAllowThreads();
3996 wxBeginBusyCursor(arg1);
3997
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 Py_INCREF(Py_None); resultobj = Py_None;
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj;
4010 wxWindow *result;
4011 char *kwnames[] = {
4012 NULL
4013 };
4014
4015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4016 {
4017 PyThreadState* __tstate = wxPyBeginAllowThreads();
4018 result = (wxWindow *)wxGetActiveWindow();
4019
4020 wxPyEndAllowThreads(__tstate);
4021 if (PyErr_Occurred()) SWIG_fail;
4022 }
4023 {
4024 resultobj = wxPyMake_wxObject(result);
4025 }
4026 return resultobj;
4027 fail:
4028 return NULL;
4029 }
4030
4031
4032 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4033 PyObject *resultobj;
4034 wxPoint *arg1 = 0 ;
4035 wxWindow *result;
4036 wxPoint temp1 ;
4037 PyObject * obj0 = 0 ;
4038 char *kwnames[] = {
4039 (char *) "pt", NULL
4040 };
4041
4042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4043 {
4044 arg1 = &temp1;
4045 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4046 }
4047 {
4048 PyThreadState* __tstate = wxPyBeginAllowThreads();
4049 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4050
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 {
4055 resultobj = wxPyMake_wxObject(result);
4056 }
4057 return resultobj;
4058 fail:
4059 return NULL;
4060 }
4061
4062
4063 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4064 PyObject *resultobj;
4065 wxPoint *arg1 = 0 ;
4066 wxWindow *result;
4067 wxPoint temp1 ;
4068 PyObject * obj0 = 0 ;
4069 char *kwnames[] = {
4070 (char *) "pt", NULL
4071 };
4072
4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4074 {
4075 arg1 = &temp1;
4076 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4077 }
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4081
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 {
4086 resultobj = wxPyMake_wxObject(result);
4087 }
4088 return resultobj;
4089 fail:
4090 return NULL;
4091 }
4092
4093
4094 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4095 PyObject *resultobj;
4096 wxWindow *arg1 = (wxWindow *) 0 ;
4097 wxWindow *result;
4098 PyObject * obj0 = 0 ;
4099 char *kwnames[] = {
4100 (char *) "win", NULL
4101 };
4102
4103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = (wxWindow *)wxGetTopLevelParent(arg1);
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 {
4114 resultobj = wxPyMake_wxObject(result);
4115 }
4116 return resultobj;
4117 fail:
4118 return NULL;
4119 }
4120
4121
4122 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4123 PyObject *resultobj;
4124 int arg1 ;
4125 bool result;
4126 PyObject * obj0 = 0 ;
4127 char *kwnames[] = {
4128 (char *) "key", NULL
4129 };
4130
4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4132 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 {
4135 PyThreadState* __tstate = wxPyBeginAllowThreads();
4136 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4137
4138 wxPyEndAllowThreads(__tstate);
4139 if (PyErr_Occurred()) SWIG_fail;
4140 }
4141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4142 return resultobj;
4143 fail:
4144 return NULL;
4145 }
4146
4147
4148 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4149 PyObject *resultobj;
4150 char *kwnames[] = {
4151 NULL
4152 };
4153
4154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 wxWakeUpMainThread();
4158
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 Py_INCREF(Py_None); resultobj = Py_None;
4163 return resultobj;
4164 fail:
4165 return NULL;
4166 }
4167
4168
4169 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj;
4171 char *kwnames[] = {
4172 NULL
4173 };
4174
4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4176 {
4177 PyThreadState* __tstate = wxPyBeginAllowThreads();
4178 wxMutexGuiEnter();
4179
4180 wxPyEndAllowThreads(__tstate);
4181 if (PyErr_Occurred()) SWIG_fail;
4182 }
4183 Py_INCREF(Py_None); resultobj = Py_None;
4184 return resultobj;
4185 fail:
4186 return NULL;
4187 }
4188
4189
4190 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj;
4192 char *kwnames[] = {
4193 NULL
4194 };
4195
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4197 {
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 wxMutexGuiLeave();
4200
4201 wxPyEndAllowThreads(__tstate);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 Py_INCREF(Py_None); resultobj = Py_None;
4205 return resultobj;
4206 fail:
4207 return NULL;
4208 }
4209
4210
4211 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4212 PyObject *resultobj;
4213 wxMutexGuiLocker *result;
4214 char *kwnames[] = {
4215 NULL
4216 };
4217
4218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4227 return resultobj;
4228 fail:
4229 return NULL;
4230 }
4231
4232
4233 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4234 PyObject *resultobj;
4235 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4236 PyObject * obj0 = 0 ;
4237 char *kwnames[] = {
4238 (char *) "self", NULL
4239 };
4240
4241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 delete arg1;
4247
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 Py_INCREF(Py_None); resultobj = Py_None;
4252 return resultobj;
4253 fail:
4254 return NULL;
4255 }
4256
4257
4258 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4259 PyObject *obj;
4260 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4261 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4262 Py_INCREF(obj);
4263 return Py_BuildValue((char *)"");
4264 }
4265 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4266 PyObject *resultobj;
4267 bool result;
4268 char *kwnames[] = {
4269 NULL
4270 };
4271
4272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (bool)wxThread_IsMain();
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4281 return resultobj;
4282 fail:
4283 return NULL;
4284 }
4285
4286
4287 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 wxString *arg1 = 0 ;
4290 wxToolTip *result;
4291 bool temp1 = False ;
4292 PyObject * obj0 = 0 ;
4293 char *kwnames[] = {
4294 (char *) "tip", NULL
4295 };
4296
4297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4298 {
4299 arg1 = wxString_in_helper(obj0);
4300 if (arg1 == NULL) SWIG_fail;
4301 temp1 = True;
4302 }
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4306
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) SWIG_fail;
4309 }
4310 {
4311 resultobj = wxPyMake_wxObject(result);
4312 }
4313 {
4314 if (temp1)
4315 delete arg1;
4316 }
4317 return resultobj;
4318 fail:
4319 {
4320 if (temp1)
4321 delete arg1;
4322 }
4323 return NULL;
4324 }
4325
4326
4327 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj;
4329 wxToolTip *arg1 = (wxToolTip *) 0 ;
4330 wxString *arg2 = 0 ;
4331 bool temp2 = False ;
4332 PyObject * obj0 = 0 ;
4333 PyObject * obj1 = 0 ;
4334 char *kwnames[] = {
4335 (char *) "self",(char *) "tip", NULL
4336 };
4337
4338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4341 {
4342 arg2 = wxString_in_helper(obj1);
4343 if (arg2 == NULL) SWIG_fail;
4344 temp2 = True;
4345 }
4346 {
4347 PyThreadState* __tstate = wxPyBeginAllowThreads();
4348 (arg1)->SetTip((wxString const &)*arg2);
4349
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 Py_INCREF(Py_None); resultobj = Py_None;
4354 {
4355 if (temp2)
4356 delete arg2;
4357 }
4358 return resultobj;
4359 fail:
4360 {
4361 if (temp2)
4362 delete arg2;
4363 }
4364 return NULL;
4365 }
4366
4367
4368 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj;
4370 wxToolTip *arg1 = (wxToolTip *) 0 ;
4371 wxString result;
4372 PyObject * obj0 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "self", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4380 {
4381 PyThreadState* __tstate = wxPyBeginAllowThreads();
4382 result = (arg1)->GetTip();
4383
4384 wxPyEndAllowThreads(__tstate);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 }
4387 {
4388 #if wxUSE_UNICODE
4389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4390 #else
4391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4392 #endif
4393 }
4394 return resultobj;
4395 fail:
4396 return NULL;
4397 }
4398
4399
4400 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj;
4402 wxToolTip *arg1 = (wxToolTip *) 0 ;
4403 wxWindow *result;
4404 PyObject * obj0 = 0 ;
4405 char *kwnames[] = {
4406 (char *) "self", NULL
4407 };
4408
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 result = (wxWindow *)(arg1)->GetWindow();
4415
4416 wxPyEndAllowThreads(__tstate);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 {
4420 resultobj = wxPyMake_wxObject(result);
4421 }
4422 return resultobj;
4423 fail:
4424 return NULL;
4425 }
4426
4427
4428 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4429 PyObject *resultobj;
4430 bool arg1 ;
4431 PyObject * obj0 = 0 ;
4432 char *kwnames[] = {
4433 (char *) "flag", NULL
4434 };
4435
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4437 arg1 = (bool) SWIG_AsBool(obj0);
4438 if (PyErr_Occurred()) SWIG_fail;
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 wxToolTip::Enable(arg1);
4442
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 Py_INCREF(Py_None); resultobj = Py_None;
4447 return resultobj;
4448 fail:
4449 return NULL;
4450 }
4451
4452
4453 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4454 PyObject *resultobj;
4455 long arg1 ;
4456 PyObject * obj0 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "milliseconds", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4462 arg1 = (long) SWIG_AsLong(obj0);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 wxToolTip::SetDelay(arg1);
4467
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 Py_INCREF(Py_None); resultobj = Py_None;
4472 return resultobj;
4473 fail:
4474 return NULL;
4475 }
4476
4477
4478 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4479 PyObject *obj;
4480 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4481 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4482 Py_INCREF(obj);
4483 return Py_BuildValue((char *)"");
4484 }
4485 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4486 PyObject *resultobj;
4487 wxWindow *arg1 = (wxWindow *) 0 ;
4488 wxSize *arg2 = 0 ;
4489 wxCaret *result;
4490 wxSize temp2 ;
4491 PyObject * obj0 = 0 ;
4492 PyObject * obj1 = 0 ;
4493 char *kwnames[] = {
4494 (char *) "window",(char *) "size", NULL
4495 };
4496
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4500 {
4501 arg2 = &temp2;
4502 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4503 }
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4507
4508 wxPyEndAllowThreads(__tstate);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4512 return resultobj;
4513 fail:
4514 return NULL;
4515 }
4516
4517
4518 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4519 PyObject *resultobj;
4520 wxCaret *arg1 = (wxCaret *) 0 ;
4521 PyObject * obj0 = 0 ;
4522 char *kwnames[] = {
4523 (char *) "self", NULL
4524 };
4525
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4529 {
4530 PyThreadState* __tstate = wxPyBeginAllowThreads();
4531 delete arg1;
4532
4533 wxPyEndAllowThreads(__tstate);
4534 if (PyErr_Occurred()) SWIG_fail;
4535 }
4536 Py_INCREF(Py_None); resultobj = Py_None;
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4544 PyObject *resultobj;
4545 wxCaret *arg1 = (wxCaret *) 0 ;
4546 bool result;
4547 PyObject * obj0 = 0 ;
4548 char *kwnames[] = {
4549 (char *) "self", NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 result = (bool)(arg1)->IsOk();
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4563 return resultobj;
4564 fail:
4565 return NULL;
4566 }
4567
4568
4569 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4570 PyObject *resultobj;
4571 wxCaret *arg1 = (wxCaret *) 0 ;
4572 bool result;
4573 PyObject * obj0 = 0 ;
4574 char *kwnames[] = {
4575 (char *) "self", NULL
4576 };
4577
4578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4581 {
4582 PyThreadState* __tstate = wxPyBeginAllowThreads();
4583 result = (bool)(arg1)->IsVisible();
4584
4585 wxPyEndAllowThreads(__tstate);
4586 if (PyErr_Occurred()) SWIG_fail;
4587 }
4588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4589 return resultobj;
4590 fail:
4591 return NULL;
4592 }
4593
4594
4595 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4596 PyObject *resultobj;
4597 wxCaret *arg1 = (wxCaret *) 0 ;
4598 wxPoint result;
4599 PyObject * obj0 = 0 ;
4600 char *kwnames[] = {
4601 (char *) "self", NULL
4602 };
4603
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4607 {
4608 PyThreadState* __tstate = wxPyBeginAllowThreads();
4609 result = (arg1)->GetPosition();
4610
4611 wxPyEndAllowThreads(__tstate);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 {
4615 wxPoint * resultptr;
4616 resultptr = new wxPoint((wxPoint &) result);
4617 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4618 }
4619 return resultobj;
4620 fail:
4621 return NULL;
4622 }
4623
4624
4625 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj;
4627 wxCaret *arg1 = (wxCaret *) 0 ;
4628 int *arg2 = (int *) 0 ;
4629 int *arg3 = (int *) 0 ;
4630 int temp2 ;
4631 int temp3 ;
4632 PyObject * obj0 = 0 ;
4633 char *kwnames[] = {
4634 (char *) "self", NULL
4635 };
4636
4637 arg2 = &temp2;
4638 arg3 = &temp3;
4639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4642 {
4643 PyThreadState* __tstate = wxPyBeginAllowThreads();
4644 (arg1)->GetPosition(arg2,arg3);
4645
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 Py_INCREF(Py_None); resultobj = Py_None;
4650 {
4651 PyObject *o = PyInt_FromLong((long) (*arg2));
4652 resultobj = t_output_helper(resultobj,o);
4653 }
4654 {
4655 PyObject *o = PyInt_FromLong((long) (*arg3));
4656 resultobj = t_output_helper(resultobj,o);
4657 }
4658 return resultobj;
4659 fail:
4660 return NULL;
4661 }
4662
4663
4664 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4665 PyObject *resultobj;
4666 wxCaret *arg1 = (wxCaret *) 0 ;
4667 wxSize result;
4668 PyObject * obj0 = 0 ;
4669 char *kwnames[] = {
4670 (char *) "self", NULL
4671 };
4672
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4676 {
4677 PyThreadState* __tstate = wxPyBeginAllowThreads();
4678 result = (arg1)->GetSize();
4679
4680 wxPyEndAllowThreads(__tstate);
4681 if (PyErr_Occurred()) SWIG_fail;
4682 }
4683 {
4684 wxSize * resultptr;
4685 resultptr = new wxSize((wxSize &) result);
4686 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4687 }
4688 return resultobj;
4689 fail:
4690 return NULL;
4691 }
4692
4693
4694 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4695 PyObject *resultobj;
4696 wxCaret *arg1 = (wxCaret *) 0 ;
4697 int *arg2 = (int *) 0 ;
4698 int *arg3 = (int *) 0 ;
4699 int temp2 ;
4700 int temp3 ;
4701 PyObject * obj0 = 0 ;
4702 char *kwnames[] = {
4703 (char *) "self", NULL
4704 };
4705
4706 arg2 = &temp2;
4707 arg3 = &temp3;
4708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4711 {
4712 PyThreadState* __tstate = wxPyBeginAllowThreads();
4713 (arg1)->GetSize(arg2,arg3);
4714
4715 wxPyEndAllowThreads(__tstate);
4716 if (PyErr_Occurred()) SWIG_fail;
4717 }
4718 Py_INCREF(Py_None); resultobj = Py_None;
4719 {
4720 PyObject *o = PyInt_FromLong((long) (*arg2));
4721 resultobj = t_output_helper(resultobj,o);
4722 }
4723 {
4724 PyObject *o = PyInt_FromLong((long) (*arg3));
4725 resultobj = t_output_helper(resultobj,o);
4726 }
4727 return resultobj;
4728 fail:
4729 return NULL;
4730 }
4731
4732
4733 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4734 PyObject *resultobj;
4735 wxCaret *arg1 = (wxCaret *) 0 ;
4736 wxWindow *result;
4737 PyObject * obj0 = 0 ;
4738 char *kwnames[] = {
4739 (char *) "self", NULL
4740 };
4741
4742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 result = (wxWindow *)(arg1)->GetWindow();
4748
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 {
4753 resultobj = wxPyMake_wxObject(result);
4754 }
4755 return resultobj;
4756 fail:
4757 return NULL;
4758 }
4759
4760
4761 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4762 PyObject *resultobj;
4763 wxCaret *arg1 = (wxCaret *) 0 ;
4764 int arg2 ;
4765 int arg3 ;
4766 PyObject * obj0 = 0 ;
4767 PyObject * obj1 = 0 ;
4768 PyObject * obj2 = 0 ;
4769 char *kwnames[] = {
4770 (char *) "self",(char *) "x",(char *) "y", NULL
4771 };
4772
4773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4776 arg2 = (int) SWIG_AsInt(obj1);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 arg3 = (int) SWIG_AsInt(obj2);
4779 if (PyErr_Occurred()) SWIG_fail;
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 (arg1)->Move(arg2,arg3);
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 Py_INCREF(Py_None); resultobj = Py_None;
4788 return resultobj;
4789 fail:
4790 return NULL;
4791 }
4792
4793
4794 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4795 PyObject *resultobj;
4796 wxCaret *arg1 = (wxCaret *) 0 ;
4797 wxPoint *arg2 = 0 ;
4798 wxPoint temp2 ;
4799 PyObject * obj0 = 0 ;
4800 PyObject * obj1 = 0 ;
4801 char *kwnames[] = {
4802 (char *) "self",(char *) "pt", NULL
4803 };
4804
4805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4808 {
4809 arg2 = &temp2;
4810 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4811 }
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 (arg1)->Move((wxPoint const &)*arg2);
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 Py_INCREF(Py_None); resultobj = Py_None;
4820 return resultobj;
4821 fail:
4822 return NULL;
4823 }
4824
4825
4826 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4827 PyObject *resultobj;
4828 wxCaret *arg1 = (wxCaret *) 0 ;
4829 int arg2 ;
4830 int arg3 ;
4831 PyObject * obj0 = 0 ;
4832 PyObject * obj1 = 0 ;
4833 PyObject * obj2 = 0 ;
4834 char *kwnames[] = {
4835 (char *) "self",(char *) "width",(char *) "height", NULL
4836 };
4837
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4841 arg2 = (int) SWIG_AsInt(obj1);
4842 if (PyErr_Occurred()) SWIG_fail;
4843 arg3 = (int) SWIG_AsInt(obj2);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 {
4846 PyThreadState* __tstate = wxPyBeginAllowThreads();
4847 (arg1)->SetSize(arg2,arg3);
4848
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 Py_INCREF(Py_None); resultobj = Py_None;
4853 return resultobj;
4854 fail:
4855 return NULL;
4856 }
4857
4858
4859 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4860 PyObject *resultobj;
4861 wxCaret *arg1 = (wxCaret *) 0 ;
4862 wxSize *arg2 = 0 ;
4863 wxSize temp2 ;
4864 PyObject * obj0 = 0 ;
4865 PyObject * obj1 = 0 ;
4866 char *kwnames[] = {
4867 (char *) "self",(char *) "size", NULL
4868 };
4869
4870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4873 {
4874 arg2 = &temp2;
4875 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4876 }
4877 {
4878 PyThreadState* __tstate = wxPyBeginAllowThreads();
4879 (arg1)->SetSize((wxSize const &)*arg2);
4880
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 Py_INCREF(Py_None); resultobj = Py_None;
4885 return resultobj;
4886 fail:
4887 return NULL;
4888 }
4889
4890
4891 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4892 PyObject *resultobj;
4893 wxCaret *arg1 = (wxCaret *) 0 ;
4894 int arg2 = (int) True ;
4895 PyObject * obj0 = 0 ;
4896 PyObject * obj1 = 0 ;
4897 char *kwnames[] = {
4898 (char *) "self",(char *) "show", NULL
4899 };
4900
4901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4904 if (obj1) {
4905 arg2 = (int) SWIG_AsInt(obj1);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 {
4909 PyThreadState* __tstate = wxPyBeginAllowThreads();
4910 (arg1)->Show(arg2);
4911
4912 wxPyEndAllowThreads(__tstate);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 Py_INCREF(Py_None); resultobj = Py_None;
4916 return resultobj;
4917 fail:
4918 return NULL;
4919 }
4920
4921
4922 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4923 PyObject *resultobj;
4924 wxCaret *arg1 = (wxCaret *) 0 ;
4925 PyObject * obj0 = 0 ;
4926 char *kwnames[] = {
4927 (char *) "self", NULL
4928 };
4929
4930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 (arg1)->Hide();
4936
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 Py_INCREF(Py_None); resultobj = Py_None;
4941 return resultobj;
4942 fail:
4943 return NULL;
4944 }
4945
4946
4947 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4948 PyObject *obj;
4949 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4950 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4951 Py_INCREF(obj);
4952 return Py_BuildValue((char *)"");
4953 }
4954 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject *resultobj;
4956 int result;
4957 char *kwnames[] = {
4958 NULL
4959 };
4960
4961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4962 {
4963 PyThreadState* __tstate = wxPyBeginAllowThreads();
4964 result = (int)wxCaret_GetBlinkTime();
4965
4966 wxPyEndAllowThreads(__tstate);
4967 if (PyErr_Occurred()) SWIG_fail;
4968 }
4969 resultobj = SWIG_FromInt((int)result);
4970 return resultobj;
4971 fail:
4972 return NULL;
4973 }
4974
4975
4976 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4977 PyObject *resultobj;
4978 int arg1 ;
4979 PyObject * obj0 = 0 ;
4980 char *kwnames[] = {
4981 (char *) "milliseconds", NULL
4982 };
4983
4984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
4985 arg1 = (int) SWIG_AsInt(obj0);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 wxCaret_SetBlinkTime(arg1);
4990
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 Py_INCREF(Py_None); resultobj = Py_None;
4995 return resultobj;
4996 fail:
4997 return NULL;
4998 }
4999
5000
5001 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj;
5003 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5004 wxBusyCursor *result;
5005 PyObject * obj0 = 0 ;
5006 char *kwnames[] = {
5007 (char *) "cursor", NULL
5008 };
5009
5010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5011 if (obj0) {
5012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5014 }
5015 {
5016 PyThreadState* __tstate = wxPyBeginAllowThreads();
5017 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5018
5019 wxPyEndAllowThreads(__tstate);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 }
5022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5023 return resultobj;
5024 fail:
5025 return NULL;
5026 }
5027
5028
5029 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5030 PyObject *resultobj;
5031 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5032 PyObject * obj0 = 0 ;
5033 char *kwnames[] = {
5034 (char *) "self", NULL
5035 };
5036
5037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 delete arg1;
5043
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 Py_INCREF(Py_None); resultobj = Py_None;
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5055 PyObject *obj;
5056 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5057 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5058 Py_INCREF(obj);
5059 return Py_BuildValue((char *)"");
5060 }
5061 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxWindow *arg1 = (wxWindow *) NULL ;
5064 wxWindowDisabler *result;
5065 PyObject * obj0 = 0 ;
5066 char *kwnames[] = {
5067 (char *) "winToSkip", NULL
5068 };
5069
5070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5071 if (obj0) {
5072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5074 }
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5078
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5083 return resultobj;
5084 fail:
5085 return NULL;
5086 }
5087
5088
5089 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj;
5091 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5092 PyObject * obj0 = 0 ;
5093 char *kwnames[] = {
5094 (char *) "self", NULL
5095 };
5096
5097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 delete arg1;
5103
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 Py_INCREF(Py_None); resultobj = Py_None;
5108 return resultobj;
5109 fail:
5110 return NULL;
5111 }
5112
5113
5114 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5115 PyObject *obj;
5116 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5117 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5118 Py_INCREF(obj);
5119 return Py_BuildValue((char *)"");
5120 }
5121 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5122 PyObject *resultobj;
5123 wxString *arg1 = 0 ;
5124 wxBusyInfo *result;
5125 bool temp1 = False ;
5126 PyObject * obj0 = 0 ;
5127 char *kwnames[] = {
5128 (char *) "message", NULL
5129 };
5130
5131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5132 {
5133 arg1 = wxString_in_helper(obj0);
5134 if (arg1 == NULL) SWIG_fail;
5135 temp1 = True;
5136 }
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5145 {
5146 if (temp1)
5147 delete arg1;
5148 }
5149 return resultobj;
5150 fail:
5151 {
5152 if (temp1)
5153 delete arg1;
5154 }
5155 return NULL;
5156 }
5157
5158
5159 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5160 PyObject *resultobj;
5161 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5162 PyObject * obj0 = 0 ;
5163 char *kwnames[] = {
5164 (char *) "self", NULL
5165 };
5166
5167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5170 {
5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172 delete arg1;
5173
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 Py_INCREF(Py_None); resultobj = Py_None;
5178 return resultobj;
5179 fail:
5180 return NULL;
5181 }
5182
5183
5184 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5185 PyObject *obj;
5186 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5187 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5188 Py_INCREF(obj);
5189 return Py_BuildValue((char *)"");
5190 }
5191 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5192 PyObject *resultobj;
5193 wxStopWatch *result;
5194 char *kwnames[] = {
5195 NULL
5196 };
5197
5198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5199 {
5200 PyThreadState* __tstate = wxPyBeginAllowThreads();
5201 result = (wxStopWatch *)new wxStopWatch();
5202
5203 wxPyEndAllowThreads(__tstate);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5207 return resultobj;
5208 fail:
5209 return NULL;
5210 }
5211
5212
5213 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5214 PyObject *resultobj;
5215 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5216 long arg2 = (long) 0 ;
5217 PyObject * obj0 = 0 ;
5218 PyObject * obj1 = 0 ;
5219 char *kwnames[] = {
5220 (char *) "self",(char *) "t0", NULL
5221 };
5222
5223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5226 if (obj1) {
5227 arg2 = (long) SWIG_AsLong(obj1);
5228 if (PyErr_Occurred()) SWIG_fail;
5229 }
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 (arg1)->Start(arg2);
5233
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 Py_INCREF(Py_None); resultobj = Py_None;
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5245 PyObject *resultobj;
5246 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5247 PyObject * obj0 = 0 ;
5248 char *kwnames[] = {
5249 (char *) "self", NULL
5250 };
5251
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5255 {
5256 PyThreadState* __tstate = wxPyBeginAllowThreads();
5257 (arg1)->Pause();
5258
5259 wxPyEndAllowThreads(__tstate);
5260 if (PyErr_Occurred()) SWIG_fail;
5261 }
5262 Py_INCREF(Py_None); resultobj = Py_None;
5263 return resultobj;
5264 fail:
5265 return NULL;
5266 }
5267
5268
5269 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5270 PyObject *resultobj;
5271 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5272 PyObject * obj0 = 0 ;
5273 char *kwnames[] = {
5274 (char *) "self", NULL
5275 };
5276
5277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5280 {
5281 PyThreadState* __tstate = wxPyBeginAllowThreads();
5282 (arg1)->Resume();
5283
5284 wxPyEndAllowThreads(__tstate);
5285 if (PyErr_Occurred()) SWIG_fail;
5286 }
5287 Py_INCREF(Py_None); resultobj = Py_None;
5288 return resultobj;
5289 fail:
5290 return NULL;
5291 }
5292
5293
5294 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5295 PyObject *resultobj;
5296 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5297 long result;
5298 PyObject * obj0 = 0 ;
5299 char *kwnames[] = {
5300 (char *) "self", NULL
5301 };
5302
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 result = (long)((wxStopWatch const *)arg1)->Time();
5309
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 resultobj = SWIG_FromLong((long)result);
5314 return resultobj;
5315 fail:
5316 return NULL;
5317 }
5318
5319
5320 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5321 PyObject *obj;
5322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5323 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5324 Py_INCREF(obj);
5325 return Py_BuildValue((char *)"");
5326 }
5327 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj;
5329 int arg1 = (int) 9 ;
5330 wxFileHistory *result;
5331 PyObject * obj0 = 0 ;
5332 char *kwnames[] = {
5333 (char *) "maxFiles", NULL
5334 };
5335
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5337 if (obj0) {
5338 arg1 = (int) SWIG_AsInt(obj0);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (wxFileHistory *)new wxFileHistory(arg1);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5349 return resultobj;
5350 fail:
5351 return NULL;
5352 }
5353
5354
5355 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5356 PyObject *resultobj;
5357 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5358 PyObject * obj0 = 0 ;
5359 char *kwnames[] = {
5360 (char *) "self", NULL
5361 };
5362
5363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 delete arg1;
5369
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 Py_INCREF(Py_None); resultobj = Py_None;
5374 return resultobj;
5375 fail:
5376 return NULL;
5377 }
5378
5379
5380 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5381 PyObject *resultobj;
5382 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5383 wxString *arg2 = 0 ;
5384 bool temp2 = False ;
5385 PyObject * obj0 = 0 ;
5386 PyObject * obj1 = 0 ;
5387 char *kwnames[] = {
5388 (char *) "self",(char *) "file", NULL
5389 };
5390
5391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5394 {
5395 arg2 = wxString_in_helper(obj1);
5396 if (arg2 == NULL) SWIG_fail;
5397 temp2 = True;
5398 }
5399 {
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 (arg1)->AddFileToHistory((wxString const &)*arg2);
5402
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 Py_INCREF(Py_None); resultobj = Py_None;
5407 {
5408 if (temp2)
5409 delete arg2;
5410 }
5411 return resultobj;
5412 fail:
5413 {
5414 if (temp2)
5415 delete arg2;
5416 }
5417 return NULL;
5418 }
5419
5420
5421 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj;
5423 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5424 int arg2 ;
5425 PyObject * obj0 = 0 ;
5426 PyObject * obj1 = 0 ;
5427 char *kwnames[] = {
5428 (char *) "self",(char *) "i", NULL
5429 };
5430
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5434 arg2 = (int) SWIG_AsInt(obj1);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 (arg1)->RemoveFileFromHistory(arg2);
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 Py_INCREF(Py_None); resultobj = Py_None;
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5453 int result;
5454 PyObject * obj0 = 0 ;
5455 char *kwnames[] = {
5456 (char *) "self", NULL
5457 };
5458
5459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 resultobj = SWIG_FromInt((int)result);
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5479 wxMenu *arg2 = (wxMenu *) 0 ;
5480 PyObject * obj0 = 0 ;
5481 PyObject * obj1 = 0 ;
5482 char *kwnames[] = {
5483 (char *) "self",(char *) "menu", NULL
5484 };
5485
5486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 (arg1)->UseMenu(arg2);
5494
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 Py_INCREF(Py_None); resultobj = Py_None;
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5506 PyObject *resultobj;
5507 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5508 wxMenu *arg2 = (wxMenu *) 0 ;
5509 PyObject * obj0 = 0 ;
5510 PyObject * obj1 = 0 ;
5511 char *kwnames[] = {
5512 (char *) "self",(char *) "menu", NULL
5513 };
5514
5515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 (arg1)->RemoveMenu(arg2);
5523
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 Py_INCREF(Py_None); resultobj = Py_None;
5528 return resultobj;
5529 fail:
5530 return NULL;
5531 }
5532
5533
5534 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5537 wxConfigBase *arg2 = 0 ;
5538 PyObject * obj0 = 0 ;
5539 PyObject * obj1 = 0 ;
5540 char *kwnames[] = {
5541 (char *) "self",(char *) "config", NULL
5542 };
5543
5544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5547 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5548 SWIG_POINTER_EXCEPTION | 0)) == -1)
5549 SWIG_fail;
5550 if (arg2 == NULL) {
5551 PyErr_SetString(PyExc_TypeError,"null reference");
5552 SWIG_fail;
5553 }
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 (arg1)->Load(*arg2);
5557
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 Py_INCREF(Py_None); resultobj = Py_None;
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj;
5570 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5571 wxConfigBase *arg2 = 0 ;
5572 PyObject * obj0 = 0 ;
5573 PyObject * obj1 = 0 ;
5574 char *kwnames[] = {
5575 (char *) "self",(char *) "config", NULL
5576 };
5577
5578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5582 SWIG_POINTER_EXCEPTION | 0)) == -1)
5583 SWIG_fail;
5584 if (arg2 == NULL) {
5585 PyErr_SetString(PyExc_TypeError,"null reference");
5586 SWIG_fail;
5587 }
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 (arg1)->Save(*arg2);
5591
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 Py_INCREF(Py_None); resultobj = Py_None;
5596 return resultobj;
5597 fail:
5598 return NULL;
5599 }
5600
5601
5602 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj;
5604 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5605 PyObject * obj0 = 0 ;
5606 char *kwnames[] = {
5607 (char *) "self", NULL
5608 };
5609
5610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5613 {
5614 PyThreadState* __tstate = wxPyBeginAllowThreads();
5615 (arg1)->AddFilesToMenu();
5616
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 Py_INCREF(Py_None); resultobj = Py_None;
5621 return resultobj;
5622 fail:
5623 return NULL;
5624 }
5625
5626
5627 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5628 PyObject *resultobj;
5629 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5630 wxMenu *arg2 = (wxMenu *) 0 ;
5631 PyObject * obj0 = 0 ;
5632 PyObject * obj1 = 0 ;
5633 char *kwnames[] = {
5634 (char *) "self",(char *) "menu", NULL
5635 };
5636
5637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 (arg1)->AddFilesToMenu(arg2);
5645
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 Py_INCREF(Py_None); resultobj = Py_None;
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj;
5658 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5659 int arg2 ;
5660 wxString result;
5661 PyObject * obj0 = 0 ;
5662 PyObject * obj1 = 0 ;
5663 char *kwnames[] = {
5664 (char *) "self",(char *) "i", NULL
5665 };
5666
5667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5670 arg2 = (int) SWIG_AsInt(obj1);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5675
5676 wxPyEndAllowThreads(__tstate);
5677 if (PyErr_Occurred()) SWIG_fail;
5678 }
5679 {
5680 #if wxUSE_UNICODE
5681 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5682 #else
5683 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5684 #endif
5685 }
5686 return resultobj;
5687 fail:
5688 return NULL;
5689 }
5690
5691
5692 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5693 PyObject *resultobj;
5694 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5695 int result;
5696 PyObject * obj0 = 0 ;
5697 char *kwnames[] = {
5698 (char *) "self", NULL
5699 };
5700
5701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5704 {
5705 PyThreadState* __tstate = wxPyBeginAllowThreads();
5706 result = (int)((wxFileHistory const *)arg1)->GetCount();
5707
5708 wxPyEndAllowThreads(__tstate);
5709 if (PyErr_Occurred()) SWIG_fail;
5710 }
5711 resultobj = SWIG_FromInt((int)result);
5712 return resultobj;
5713 fail:
5714 return NULL;
5715 }
5716
5717
5718 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5719 PyObject *obj;
5720 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5721 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5722 Py_INCREF(obj);
5723 return Py_BuildValue((char *)"");
5724 }
5725 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5726 PyObject *resultobj;
5727 wxString *arg1 = 0 ;
5728 wxString const &arg2_defvalue = wxPyEmptyString ;
5729 wxString *arg2 = (wxString *) &arg2_defvalue ;
5730 wxSingleInstanceChecker *result;
5731 bool temp1 = False ;
5732 bool temp2 = False ;
5733 PyObject * obj0 = 0 ;
5734 PyObject * obj1 = 0 ;
5735 char *kwnames[] = {
5736 (char *) "name",(char *) "path", NULL
5737 };
5738
5739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5740 {
5741 arg1 = wxString_in_helper(obj0);
5742 if (arg1 == NULL) SWIG_fail;
5743 temp1 = True;
5744 }
5745 if (obj1) {
5746 {
5747 arg2 = wxString_in_helper(obj1);
5748 if (arg2 == NULL) SWIG_fail;
5749 temp2 = True;
5750 }
5751 }
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5755
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5760 {
5761 if (temp1)
5762 delete arg1;
5763 }
5764 {
5765 if (temp2)
5766 delete arg2;
5767 }
5768 return resultobj;
5769 fail:
5770 {
5771 if (temp1)
5772 delete arg1;
5773 }
5774 {
5775 if (temp2)
5776 delete arg2;
5777 }
5778 return NULL;
5779 }
5780
5781
5782 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject *resultobj;
5784 wxSingleInstanceChecker *result;
5785 char *kwnames[] = {
5786 NULL
5787 };
5788
5789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5793
5794 wxPyEndAllowThreads(__tstate);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 }
5797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5798 return resultobj;
5799 fail:
5800 return NULL;
5801 }
5802
5803
5804 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5805 PyObject *resultobj;
5806 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5807 PyObject * obj0 = 0 ;
5808 char *kwnames[] = {
5809 (char *) "self", NULL
5810 };
5811
5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5815 {
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 delete arg1;
5818
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 Py_INCREF(Py_None); resultobj = Py_None;
5823 return resultobj;
5824 fail:
5825 return NULL;
5826 }
5827
5828
5829 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5830 PyObject *resultobj;
5831 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5832 wxString *arg2 = 0 ;
5833 wxString const &arg3_defvalue = wxPyEmptyString ;
5834 wxString *arg3 = (wxString *) &arg3_defvalue ;
5835 bool result;
5836 bool temp2 = False ;
5837 bool temp3 = False ;
5838 PyObject * obj0 = 0 ;
5839 PyObject * obj1 = 0 ;
5840 PyObject * obj2 = 0 ;
5841 char *kwnames[] = {
5842 (char *) "self",(char *) "name",(char *) "path", NULL
5843 };
5844
5845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5848 {
5849 arg2 = wxString_in_helper(obj1);
5850 if (arg2 == NULL) SWIG_fail;
5851 temp2 = True;
5852 }
5853 if (obj2) {
5854 {
5855 arg3 = wxString_in_helper(obj2);
5856 if (arg3 == NULL) SWIG_fail;
5857 temp3 = True;
5858 }
5859 }
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5863
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
5867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5868 {
5869 if (temp2)
5870 delete arg2;
5871 }
5872 {
5873 if (temp3)
5874 delete arg3;
5875 }
5876 return resultobj;
5877 fail:
5878 {
5879 if (temp2)
5880 delete arg2;
5881 }
5882 {
5883 if (temp3)
5884 delete arg3;
5885 }
5886 return NULL;
5887 }
5888
5889
5890 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5891 PyObject *resultobj;
5892 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5893 bool result;
5894 PyObject * obj0 = 0 ;
5895 char *kwnames[] = {
5896 (char *) "self", NULL
5897 };
5898
5899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5905
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5910 return resultobj;
5911 fail:
5912 return NULL;
5913 }
5914
5915
5916 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5917 PyObject *obj;
5918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5919 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5920 Py_INCREF(obj);
5921 return Py_BuildValue((char *)"");
5922 }
5923 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj;
5925 wxWindow *arg1 = (wxWindow *) 0 ;
5926 wxDC *arg2 = 0 ;
5927 int arg3 ;
5928 PyObject * obj0 = 0 ;
5929 PyObject * obj1 = 0 ;
5930 PyObject * obj2 = 0 ;
5931 char *kwnames[] = {
5932 (char *) "window",(char *) "dc",(char *) "method", NULL
5933 };
5934
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
5936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5938 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
5939 SWIG_POINTER_EXCEPTION | 0)) == -1)
5940 SWIG_fail;
5941 if (arg2 == NULL) {
5942 PyErr_SetString(PyExc_TypeError,"null reference");
5943 SWIG_fail;
5944 }
5945 arg3 = (int) SWIG_AsInt(obj2);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 Py_INCREF(Py_None); resultobj = Py_None;
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5964 PyObject * obj0 = 0 ;
5965 char *kwnames[] = {
5966 (char *) "self", NULL
5967 };
5968
5969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 delete arg1;
5975
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 Py_INCREF(Py_None); resultobj = Py_None;
5980 return resultobj;
5981 fail:
5982 return NULL;
5983 }
5984
5985
5986 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5987 PyObject *resultobj;
5988 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5989 wxString result;
5990 PyObject * obj0 = 0 ;
5991 char *kwnames[] = {
5992 (char *) "self", NULL
5993 };
5994
5995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
5996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5998 {
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 result = (arg1)->GetTip();
6001
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 {
6006 #if wxUSE_UNICODE
6007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6008 #else
6009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6010 #endif
6011 }
6012 return resultobj;
6013 fail:
6014 return NULL;
6015 }
6016
6017
6018 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6019 PyObject *resultobj;
6020 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6021 size_t result;
6022 PyObject * obj0 = 0 ;
6023 char *kwnames[] = {
6024 (char *) "self", NULL
6025 };
6026
6027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (size_t)(arg1)->GetCurrentTip();
6033
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6038 return resultobj;
6039 fail:
6040 return NULL;
6041 }
6042
6043
6044 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6045 PyObject *resultobj;
6046 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6047 wxString *arg2 = 0 ;
6048 wxString result;
6049 bool temp2 = False ;
6050 PyObject * obj0 = 0 ;
6051 PyObject * obj1 = 0 ;
6052 char *kwnames[] = {
6053 (char *) "self",(char *) "tip", NULL
6054 };
6055
6056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6059 {
6060 arg2 = wxString_in_helper(obj1);
6061 if (arg2 == NULL) SWIG_fail;
6062 temp2 = True;
6063 }
6064 {
6065 PyThreadState* __tstate = wxPyBeginAllowThreads();
6066 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6067
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 {
6072 #if wxUSE_UNICODE
6073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6074 #else
6075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6076 #endif
6077 }
6078 {
6079 if (temp2)
6080 delete arg2;
6081 }
6082 return resultobj;
6083 fail:
6084 {
6085 if (temp2)
6086 delete arg2;
6087 }
6088 return NULL;
6089 }
6090
6091
6092 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6093 PyObject *obj;
6094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6095 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6096 Py_INCREF(obj);
6097 return Py_BuildValue((char *)"");
6098 }
6099 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6100 PyObject *resultobj;
6101 size_t arg1 ;
6102 wxPyTipProvider *result;
6103 PyObject * obj0 = 0 ;
6104 char *kwnames[] = {
6105 (char *) "currentTip", NULL
6106 };
6107
6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6109 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6110 if (PyErr_Occurred()) SWIG_fail;
6111 {
6112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6113 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6114
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6119 return resultobj;
6120 fail:
6121 return NULL;
6122 }
6123
6124
6125 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj;
6127 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6128 PyObject *arg2 = (PyObject *) 0 ;
6129 PyObject *arg3 = (PyObject *) 0 ;
6130 PyObject * obj0 = 0 ;
6131 PyObject * obj1 = 0 ;
6132 PyObject * obj2 = 0 ;
6133 char *kwnames[] = {
6134 (char *) "self",(char *) "self",(char *) "_class", NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6140 arg2 = obj1;
6141 arg3 = obj2;
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 (arg1)->_setCallbackInfo(arg2,arg3);
6145
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 Py_INCREF(Py_None); resultobj = Py_None;
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6157 PyObject *obj;
6158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6159 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6160 Py_INCREF(obj);
6161 return Py_BuildValue((char *)"");
6162 }
6163 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6164 PyObject *resultobj;
6165 wxWindow *arg1 = (wxWindow *) 0 ;
6166 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6167 bool arg3 = (bool) True ;
6168 bool result;
6169 PyObject * obj0 = 0 ;
6170 PyObject * obj1 = 0 ;
6171 PyObject * obj2 = 0 ;
6172 char *kwnames[] = {
6173 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6174 };
6175
6176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6179 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6181 if (obj2) {
6182 arg3 = (bool) SWIG_AsBool(obj2);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 {
6186 PyThreadState* __tstate = wxPyBeginAllowThreads();
6187 result = (bool)wxShowTip(arg1,arg2,arg3);
6188
6189 wxPyEndAllowThreads(__tstate);
6190 if (PyErr_Occurred()) SWIG_fail;
6191 }
6192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6193 return resultobj;
6194 fail:
6195 return NULL;
6196 }
6197
6198
6199 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6200 PyObject *resultobj;
6201 wxString *arg1 = 0 ;
6202 size_t arg2 ;
6203 wxTipProvider *result;
6204 bool temp1 = False ;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 char *kwnames[] = {
6208 (char *) "filename",(char *) "currentTip", NULL
6209 };
6210
6211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6212 {
6213 arg1 = wxString_in_helper(obj0);
6214 if (arg1 == NULL) SWIG_fail;
6215 temp1 = True;
6216 }
6217 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6218 if (PyErr_Occurred()) SWIG_fail;
6219 {
6220 PyThreadState* __tstate = wxPyBeginAllowThreads();
6221 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6222
6223 wxPyEndAllowThreads(__tstate);
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6227 {
6228 if (temp1)
6229 delete arg1;
6230 }
6231 return resultobj;
6232 fail:
6233 {
6234 if (temp1)
6235 delete arg1;
6236 }
6237 return NULL;
6238 }
6239
6240
6241 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj;
6243 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6244 int arg2 = (int) -1 ;
6245 wxPyTimer *result;
6246 PyObject * obj0 = 0 ;
6247 PyObject * obj1 = 0 ;
6248 char *kwnames[] = {
6249 (char *) "owner",(char *) "id", NULL
6250 };
6251
6252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6253 if (obj0) {
6254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6256 }
6257 if (obj1) {
6258 arg2 = (int) SWIG_AsInt(obj1);
6259 if (PyErr_Occurred()) SWIG_fail;
6260 }
6261 {
6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
6263 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6264
6265 wxPyEndAllowThreads(__tstate);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6269 return resultobj;
6270 fail:
6271 return NULL;
6272 }
6273
6274
6275 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6276 PyObject *resultobj;
6277 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6278 PyObject * obj0 = 0 ;
6279 char *kwnames[] = {
6280 (char *) "self", NULL
6281 };
6282
6283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6286 {
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 delete arg1;
6289
6290 wxPyEndAllowThreads(__tstate);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 Py_INCREF(Py_None); resultobj = Py_None;
6294 return resultobj;
6295 fail:
6296 return NULL;
6297 }
6298
6299
6300 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj;
6302 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6303 PyObject *arg2 = (PyObject *) 0 ;
6304 PyObject *arg3 = (PyObject *) 0 ;
6305 int arg4 = (int) 1 ;
6306 PyObject * obj0 = 0 ;
6307 PyObject * obj1 = 0 ;
6308 PyObject * obj2 = 0 ;
6309 PyObject * obj3 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6317 arg2 = obj1;
6318 arg3 = obj2;
6319 if (obj3) {
6320 arg4 = (int) SWIG_AsInt(obj3);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 Py_INCREF(Py_None); resultobj = Py_None;
6331 return resultobj;
6332 fail:
6333 return NULL;
6334 }
6335
6336
6337 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj;
6339 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6340 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6341 int arg3 = (int) -1 ;
6342 PyObject * obj0 = 0 ;
6343 PyObject * obj1 = 0 ;
6344 PyObject * obj2 = 0 ;
6345 char *kwnames[] = {
6346 (char *) "self",(char *) "owner",(char *) "id", NULL
6347 };
6348
6349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6354 if (obj2) {
6355 arg3 = (int) SWIG_AsInt(obj2);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 {
6359 PyThreadState* __tstate = wxPyBeginAllowThreads();
6360 (arg1)->SetOwner(arg2,arg3);
6361
6362 wxPyEndAllowThreads(__tstate);
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 Py_INCREF(Py_None); resultobj = Py_None;
6366 return resultobj;
6367 fail:
6368 return NULL;
6369 }
6370
6371
6372 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6373 PyObject *resultobj;
6374 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6375 int arg2 = (int) -1 ;
6376 bool arg3 = (bool) False ;
6377 bool result;
6378 PyObject * obj0 = 0 ;
6379 PyObject * obj1 = 0 ;
6380 PyObject * obj2 = 0 ;
6381 char *kwnames[] = {
6382 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6383 };
6384
6385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6388 if (obj1) {
6389 arg2 = (int) SWIG_AsInt(obj1);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 if (obj2) {
6393 arg3 = (bool) SWIG_AsBool(obj2);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 }
6396 {
6397 PyThreadState* __tstate = wxPyBeginAllowThreads();
6398 result = (bool)(arg1)->Start(arg2,arg3);
6399
6400 wxPyEndAllowThreads(__tstate);
6401 if (PyErr_Occurred()) SWIG_fail;
6402 }
6403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6404 return resultobj;
6405 fail:
6406 return NULL;
6407 }
6408
6409
6410 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6411 PyObject *resultobj;
6412 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6413 PyObject * obj0 = 0 ;
6414 char *kwnames[] = {
6415 (char *) "self", NULL
6416 };
6417
6418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6421 {
6422 PyThreadState* __tstate = wxPyBeginAllowThreads();
6423 (arg1)->Stop();
6424
6425 wxPyEndAllowThreads(__tstate);
6426 if (PyErr_Occurred()) SWIG_fail;
6427 }
6428 Py_INCREF(Py_None); resultobj = Py_None;
6429 return resultobj;
6430 fail:
6431 return NULL;
6432 }
6433
6434
6435 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6436 PyObject *resultobj;
6437 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6438 bool result;
6439 PyObject * obj0 = 0 ;
6440 char *kwnames[] = {
6441 (char *) "self", NULL
6442 };
6443
6444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6450
6451 wxPyEndAllowThreads(__tstate);
6452 if (PyErr_Occurred()) SWIG_fail;
6453 }
6454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6455 return resultobj;
6456 fail:
6457 return NULL;
6458 }
6459
6460
6461 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6462 PyObject *resultobj;
6463 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6464 int result;
6465 PyObject * obj0 = 0 ;
6466 char *kwnames[] = {
6467 (char *) "self", NULL
6468 };
6469
6470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6473 {
6474 PyThreadState* __tstate = wxPyBeginAllowThreads();
6475 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6476
6477 wxPyEndAllowThreads(__tstate);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 }
6480 resultobj = SWIG_FromInt((int)result);
6481 return resultobj;
6482 fail:
6483 return NULL;
6484 }
6485
6486
6487 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6488 PyObject *resultobj;
6489 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6490 bool result;
6491 PyObject * obj0 = 0 ;
6492 char *kwnames[] = {
6493 (char *) "self", NULL
6494 };
6495
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6507 return resultobj;
6508 fail:
6509 return NULL;
6510 }
6511
6512
6513 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6516 int result;
6517 PyObject * obj0 = 0 ;
6518 char *kwnames[] = {
6519 (char *) "self", NULL
6520 };
6521
6522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 result = (int)((wxPyTimer const *)arg1)->GetId();
6528
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 resultobj = SWIG_FromInt((int)result);
6533 return resultobj;
6534 fail:
6535 return NULL;
6536 }
6537
6538
6539 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6540 PyObject *obj;
6541 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6542 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6543 Py_INCREF(obj);
6544 return Py_BuildValue((char *)"");
6545 }
6546 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6547 PyObject *resultobj;
6548 int arg1 = (int) 0 ;
6549 int arg2 = (int) 0 ;
6550 wxTimerEvent *result;
6551 PyObject * obj0 = 0 ;
6552 PyObject * obj1 = 0 ;
6553 char *kwnames[] = {
6554 (char *) "timerid",(char *) "interval", NULL
6555 };
6556
6557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6558 if (obj0) {
6559 arg1 = (int) SWIG_AsInt(obj0);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 if (obj1) {
6563 arg2 = (int) SWIG_AsInt(obj1);
6564 if (PyErr_Occurred()) SWIG_fail;
6565 }
6566 {
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6569
6570 wxPyEndAllowThreads(__tstate);
6571 if (PyErr_Occurred()) SWIG_fail;
6572 }
6573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6574 return resultobj;
6575 fail:
6576 return NULL;
6577 }
6578
6579
6580 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6581 PyObject *resultobj;
6582 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6583 int result;
6584 PyObject * obj0 = 0 ;
6585 char *kwnames[] = {
6586 (char *) "self", NULL
6587 };
6588
6589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = SWIG_FromInt((int)result);
6600 return resultobj;
6601 fail:
6602 return NULL;
6603 }
6604
6605
6606 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6607 PyObject *obj;
6608 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6609 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6610 Py_INCREF(obj);
6611 return Py_BuildValue((char *)"");
6612 }
6613 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6614 PyObject *resultobj;
6615 wxTimer *arg1 = 0 ;
6616 wxTimerRunner *result;
6617 PyObject * obj0 = 0 ;
6618
6619 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6621 SWIG_POINTER_EXCEPTION | 0)) == -1)
6622 SWIG_fail;
6623 if (arg1 == NULL) {
6624 PyErr_SetString(PyExc_TypeError,"null reference");
6625 SWIG_fail;
6626 }
6627 {
6628 PyThreadState* __tstate = wxPyBeginAllowThreads();
6629 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6630
6631 wxPyEndAllowThreads(__tstate);
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
6634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6635 return resultobj;
6636 fail:
6637 return NULL;
6638 }
6639
6640
6641 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6642 PyObject *resultobj;
6643 wxTimer *arg1 = 0 ;
6644 int arg2 ;
6645 bool arg3 = (bool) False ;
6646 wxTimerRunner *result;
6647 PyObject * obj0 = 0 ;
6648 PyObject * obj1 = 0 ;
6649 PyObject * obj2 = 0 ;
6650
6651 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6653 SWIG_POINTER_EXCEPTION | 0)) == -1)
6654 SWIG_fail;
6655 if (arg1 == NULL) {
6656 PyErr_SetString(PyExc_TypeError,"null reference");
6657 SWIG_fail;
6658 }
6659 arg2 = (int) SWIG_AsInt(obj1);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 if (obj2) {
6662 arg3 = (bool) SWIG_AsBool(obj2);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 {
6666 PyThreadState* __tstate = wxPyBeginAllowThreads();
6667 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6668
6669 wxPyEndAllowThreads(__tstate);
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6680 int argc;
6681 PyObject *argv[4];
6682 int ii;
6683
6684 argc = PyObject_Length(args);
6685 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6686 argv[ii] = PyTuple_GetItem(args,ii);
6687 }
6688 if (argc == 1) {
6689 int _v;
6690 {
6691 void *ptr;
6692 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6693 _v = 0;
6694 PyErr_Clear();
6695 } else {
6696 _v = 1;
6697 }
6698 }
6699 if (_v) {
6700 return _wrap_new_TimerRunner__SWIG_0(self,args);
6701 }
6702 }
6703 if ((argc >= 2) && (argc <= 3)) {
6704 int _v;
6705 {
6706 void *ptr;
6707 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6708 _v = 0;
6709 PyErr_Clear();
6710 } else {
6711 _v = 1;
6712 }
6713 }
6714 if (_v) {
6715 _v = SWIG_CheckInt(argv[1]);
6716 if (_v) {
6717 if (argc <= 2) {
6718 return _wrap_new_TimerRunner__SWIG_1(self,args);
6719 }
6720 _v = SWIG_CheckBool(argv[2]);
6721 if (_v) {
6722 return _wrap_new_TimerRunner__SWIG_1(self,args);
6723 }
6724 }
6725 }
6726 }
6727
6728 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6729 return NULL;
6730 }
6731
6732
6733 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6734 PyObject *resultobj;
6735 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6736 PyObject * obj0 = 0 ;
6737 char *kwnames[] = {
6738 (char *) "self", NULL
6739 };
6740
6741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6744 {
6745 PyThreadState* __tstate = wxPyBeginAllowThreads();
6746 delete arg1;
6747
6748 wxPyEndAllowThreads(__tstate);
6749 if (PyErr_Occurred()) SWIG_fail;
6750 }
6751 Py_INCREF(Py_None); resultobj = Py_None;
6752 return resultobj;
6753 fail:
6754 return NULL;
6755 }
6756
6757
6758 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6759 PyObject *resultobj;
6760 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6761 int arg2 ;
6762 bool arg3 = (bool) False ;
6763 PyObject * obj0 = 0 ;
6764 PyObject * obj1 = 0 ;
6765 PyObject * obj2 = 0 ;
6766 char *kwnames[] = {
6767 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6768 };
6769
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6773 arg2 = (int) SWIG_AsInt(obj1);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 if (obj2) {
6776 arg3 = (bool) SWIG_AsBool(obj2);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 {
6780 PyThreadState* __tstate = wxPyBeginAllowThreads();
6781 (arg1)->Start(arg2,arg3);
6782
6783 wxPyEndAllowThreads(__tstate);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 Py_INCREF(Py_None); resultobj = Py_None;
6787 return resultobj;
6788 fail:
6789 return NULL;
6790 }
6791
6792
6793 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6794 PyObject *obj;
6795 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6796 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6797 Py_INCREF(obj);
6798 return Py_BuildValue((char *)"");
6799 }
6800 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxLog *result;
6803 char *kwnames[] = {
6804 NULL
6805 };
6806
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6808 {
6809 PyThreadState* __tstate = wxPyBeginAllowThreads();
6810 result = (wxLog *)new wxLog();
6811
6812 wxPyEndAllowThreads(__tstate);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6816 return resultobj;
6817 fail:
6818 return NULL;
6819 }
6820
6821
6822 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6823 PyObject *resultobj;
6824 bool result;
6825 char *kwnames[] = {
6826 NULL
6827 };
6828
6829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6830 {
6831 PyThreadState* __tstate = wxPyBeginAllowThreads();
6832 result = (bool)wxLog::IsEnabled();
6833
6834 wxPyEndAllowThreads(__tstate);
6835 if (PyErr_Occurred()) SWIG_fail;
6836 }
6837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6838 return resultobj;
6839 fail:
6840 return NULL;
6841 }
6842
6843
6844 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj;
6846 bool arg1 = (bool) True ;
6847 bool result;
6848 PyObject * obj0 = 0 ;
6849 char *kwnames[] = {
6850 (char *) "doIt", NULL
6851 };
6852
6853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6854 if (obj0) {
6855 arg1 = (bool) SWIG_AsBool(obj0);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 {
6859 PyThreadState* __tstate = wxPyBeginAllowThreads();
6860 result = (bool)wxLog::EnableLogging(arg1);
6861
6862 wxPyEndAllowThreads(__tstate);
6863 if (PyErr_Occurred()) SWIG_fail;
6864 }
6865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6866 return resultobj;
6867 fail:
6868 return NULL;
6869 }
6870
6871
6872 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6873 PyObject *resultobj;
6874 wxLogLevel arg1 ;
6875 wxChar *arg2 = (wxChar *) 0 ;
6876 time_t arg3 ;
6877 PyObject * obj0 = 0 ;
6878 PyObject * obj1 = 0 ;
6879 PyObject * obj2 = 0 ;
6880 char *kwnames[] = {
6881 (char *) "level",(char *) "szString",(char *) "t", NULL
6882 };
6883
6884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6885 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
6888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6889 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
6890 if (PyErr_Occurred()) SWIG_fail;
6891 {
6892 PyThreadState* __tstate = wxPyBeginAllowThreads();
6893 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6894
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 Py_INCREF(Py_None); resultobj = Py_None;
6899 return resultobj;
6900 fail:
6901 return NULL;
6902 }
6903
6904
6905 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6906 PyObject *resultobj;
6907 wxLog *arg1 = (wxLog *) 0 ;
6908 PyObject * obj0 = 0 ;
6909 char *kwnames[] = {
6910 (char *) "self", NULL
6911 };
6912
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6916 {
6917 PyThreadState* __tstate = wxPyBeginAllowThreads();
6918 (arg1)->Flush();
6919
6920 wxPyEndAllowThreads(__tstate);
6921 if (PyErr_Occurred()) SWIG_fail;
6922 }
6923 Py_INCREF(Py_None); resultobj = Py_None;
6924 return resultobj;
6925 fail:
6926 return NULL;
6927 }
6928
6929
6930 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6931 PyObject *resultobj;
6932 char *kwnames[] = {
6933 NULL
6934 };
6935
6936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6937 {
6938 PyThreadState* __tstate = wxPyBeginAllowThreads();
6939 wxLog::FlushActive();
6940
6941 wxPyEndAllowThreads(__tstate);
6942 if (PyErr_Occurred()) SWIG_fail;
6943 }
6944 Py_INCREF(Py_None); resultobj = Py_None;
6945 return resultobj;
6946 fail:
6947 return NULL;
6948 }
6949
6950
6951 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6952 PyObject *resultobj;
6953 wxLog *result;
6954 char *kwnames[] = {
6955 NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 result = (wxLog *)wxLog::GetActiveTarget();
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
6967 return resultobj;
6968 fail:
6969 return NULL;
6970 }
6971
6972
6973 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6974 PyObject *resultobj;
6975 wxLog *arg1 = (wxLog *) 0 ;
6976 wxLog *result;
6977 PyObject * obj0 = 0 ;
6978 char *kwnames[] = {
6979 (char *) "pLogger", NULL
6980 };
6981
6982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
6983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6985 {
6986 PyThreadState* __tstate = wxPyBeginAllowThreads();
6987 result = (wxLog *)wxLog::SetActiveTarget(arg1);
6988
6989 wxPyEndAllowThreads(__tstate);
6990 if (PyErr_Occurred()) SWIG_fail;
6991 }
6992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
6993 return resultobj;
6994 fail:
6995 return NULL;
6996 }
6997
6998
6999 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7000 PyObject *resultobj;
7001 char *kwnames[] = {
7002 NULL
7003 };
7004
7005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7006 {
7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
7008 wxLog::Suspend();
7009
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 Py_INCREF(Py_None); resultobj = Py_None;
7014 return resultobj;
7015 fail:
7016 return NULL;
7017 }
7018
7019
7020 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7021 PyObject *resultobj;
7022 char *kwnames[] = {
7023 NULL
7024 };
7025
7026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 wxLog::Resume();
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 Py_INCREF(Py_None); resultobj = Py_None;
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 bool arg1 = (bool) True ;
7044 PyObject * obj0 = 0 ;
7045 char *kwnames[] = {
7046 (char *) "bVerbose", NULL
7047 };
7048
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7050 if (obj0) {
7051 arg1 = (bool) SWIG_AsBool(obj0);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 {
7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
7056 wxLog::SetVerbose(arg1);
7057
7058 wxPyEndAllowThreads(__tstate);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 Py_INCREF(Py_None); resultobj = Py_None;
7062 return resultobj;
7063 fail:
7064 return NULL;
7065 }
7066
7067
7068 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject *resultobj;
7070 wxLogLevel arg1 ;
7071 PyObject * obj0 = 0 ;
7072 char *kwnames[] = {
7073 (char *) "logLevel", NULL
7074 };
7075
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7077 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7078 if (PyErr_Occurred()) SWIG_fail;
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 wxLog::SetLogLevel(arg1);
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 Py_INCREF(Py_None); resultobj = Py_None;
7087 return resultobj;
7088 fail:
7089 return NULL;
7090 }
7091
7092
7093 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7094 PyObject *resultobj;
7095 char *kwnames[] = {
7096 NULL
7097 };
7098
7099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 wxLog::DontCreateOnDemand();
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 Py_INCREF(Py_None); resultobj = Py_None;
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxTraceMask arg1 ;
7117 PyObject * obj0 = 0 ;
7118 char *kwnames[] = {
7119 (char *) "ulMask", NULL
7120 };
7121
7122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7123 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7124 if (PyErr_Occurred()) SWIG_fail;
7125 {
7126 PyThreadState* __tstate = wxPyBeginAllowThreads();
7127 wxLog::SetTraceMask(arg1);
7128
7129 wxPyEndAllowThreads(__tstate);
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 Py_INCREF(Py_None); resultobj = Py_None;
7133 return resultobj;
7134 fail:
7135 return NULL;
7136 }
7137
7138
7139 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7140 PyObject *resultobj;
7141 wxString *arg1 = 0 ;
7142 bool temp1 = False ;
7143 PyObject * obj0 = 0 ;
7144 char *kwnames[] = {
7145 (char *) "str", NULL
7146 };
7147
7148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7149 {
7150 arg1 = wxString_in_helper(obj0);
7151 if (arg1 == NULL) SWIG_fail;
7152 temp1 = True;
7153 }
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 wxLog::AddTraceMask((wxString const &)*arg1);
7157
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 Py_INCREF(Py_None); resultobj = Py_None;
7162 {
7163 if (temp1)
7164 delete arg1;
7165 }
7166 return resultobj;
7167 fail:
7168 {
7169 if (temp1)
7170 delete arg1;
7171 }
7172 return NULL;
7173 }
7174
7175
7176 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7177 PyObject *resultobj;
7178 wxString *arg1 = 0 ;
7179 bool temp1 = False ;
7180 PyObject * obj0 = 0 ;
7181 char *kwnames[] = {
7182 (char *) "str", NULL
7183 };
7184
7185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7186 {
7187 arg1 = wxString_in_helper(obj0);
7188 if (arg1 == NULL) SWIG_fail;
7189 temp1 = True;
7190 }
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 wxLog::RemoveTraceMask((wxString const &)*arg1);
7194
7195 wxPyEndAllowThreads(__tstate);
7196 if (PyErr_Occurred()) SWIG_fail;
7197 }
7198 Py_INCREF(Py_None); resultobj = Py_None;
7199 {
7200 if (temp1)
7201 delete arg1;
7202 }
7203 return resultobj;
7204 fail:
7205 {
7206 if (temp1)
7207 delete arg1;
7208 }
7209 return NULL;
7210 }
7211
7212
7213 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7214 PyObject *resultobj;
7215 char *kwnames[] = {
7216 NULL
7217 };
7218
7219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 wxLog::ClearTraceMasks();
7223
7224 wxPyEndAllowThreads(__tstate);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 }
7227 Py_INCREF(Py_None); resultobj = Py_None;
7228 return resultobj;
7229 fail:
7230 return NULL;
7231 }
7232
7233
7234 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 wxArrayString *result;
7237 char *kwnames[] = {
7238 NULL
7239 };
7240
7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7242 {
7243 PyThreadState* __tstate = wxPyBeginAllowThreads();
7244 {
7245 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7246 result = (wxArrayString *) &_result_ref;
7247 }
7248
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 {
7253 resultobj = wxArrayString2PyList_helper(*result);
7254 }
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj;
7263 wxChar *arg1 = (wxChar *) 0 ;
7264 PyObject * obj0 = 0 ;
7265 char *kwnames[] = {
7266 (char *) "ts", NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 wxLog::SetTimestamp((wxChar const *)arg1);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 Py_INCREF(Py_None); resultobj = Py_None;
7280 return resultobj;
7281 fail:
7282 return NULL;
7283 }
7284
7285
7286 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 bool result;
7289 char *kwnames[] = {
7290 NULL
7291 };
7292
7293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 result = (bool)wxLog::GetVerbose();
7297
7298 wxPyEndAllowThreads(__tstate);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7302 return resultobj;
7303 fail:
7304 return NULL;
7305 }
7306
7307
7308 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7309 PyObject *resultobj;
7310 wxTraceMask result;
7311 char *kwnames[] = {
7312 NULL
7313 };
7314
7315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7316 {
7317 PyThreadState* __tstate = wxPyBeginAllowThreads();
7318 result = (wxTraceMask)wxLog::GetTraceMask();
7319
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7324 return resultobj;
7325 fail:
7326 return NULL;
7327 }
7328
7329
7330 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7331 PyObject *resultobj;
7332 wxChar *arg1 = (wxChar *) 0 ;
7333 bool result;
7334 PyObject * obj0 = 0 ;
7335 char *kwnames[] = {
7336 (char *) "mask", NULL
7337 };
7338
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7342 {
7343 PyThreadState* __tstate = wxPyBeginAllowThreads();
7344 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7345
7346 wxPyEndAllowThreads(__tstate);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7350 return resultobj;
7351 fail:
7352 return NULL;
7353 }
7354
7355
7356 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7357 PyObject *resultobj;
7358 wxLogLevel result;
7359 char *kwnames[] = {
7360 NULL
7361 };
7362
7363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7364 {
7365 PyThreadState* __tstate = wxPyBeginAllowThreads();
7366 result = (wxLogLevel)wxLog::GetLogLevel();
7367
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj;
7380 wxChar *result;
7381 char *kwnames[] = {
7382 NULL
7383 };
7384
7385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7386 {
7387 PyThreadState* __tstate = wxPyBeginAllowThreads();
7388 result = (wxChar *)wxLog::GetTimestamp();
7389
7390 wxPyEndAllowThreads(__tstate);
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7394 return resultobj;
7395 fail:
7396 return NULL;
7397 }
7398
7399
7400 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7401 PyObject *resultobj;
7402 wxString result;
7403 char *kwnames[] = {
7404 NULL
7405 };
7406
7407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 result = Log_TimeStamp();
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 {
7416 #if wxUSE_UNICODE
7417 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7418 #else
7419 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7420 #endif
7421 }
7422 return resultobj;
7423 fail:
7424 return NULL;
7425 }
7426
7427
7428 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxLog *arg1 = (wxLog *) 0 ;
7431 PyObject * obj0 = 0 ;
7432 char *kwnames[] = {
7433 (char *) "self", NULL
7434 };
7435
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 wxLog_Destroy(arg1);
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 Py_INCREF(Py_None); resultobj = Py_None;
7447 return resultobj;
7448 fail:
7449 return NULL;
7450 }
7451
7452
7453 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7454 PyObject *obj;
7455 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7456 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7457 Py_INCREF(obj);
7458 return Py_BuildValue((char *)"");
7459 }
7460 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj;
7462 wxLogStderr *result;
7463 char *kwnames[] = {
7464 NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7468 {
7469 PyThreadState* __tstate = wxPyBeginAllowThreads();
7470 result = (wxLogStderr *)new wxLogStderr();
7471
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) SWIG_fail;
7474 }
7475 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7476 return resultobj;
7477 fail:
7478 return NULL;
7479 }
7480
7481
7482 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7483 PyObject *obj;
7484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7485 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7486 Py_INCREF(obj);
7487 return Py_BuildValue((char *)"");
7488 }
7489 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7490 PyObject *resultobj;
7491 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7492 wxLogTextCtrl *result;
7493 PyObject * obj0 = 0 ;
7494 char *kwnames[] = {
7495 (char *) "pTextCtrl", NULL
7496 };
7497
7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7501 {
7502 PyThreadState* __tstate = wxPyBeginAllowThreads();
7503 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7504
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 }
7508 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7509 return resultobj;
7510 fail:
7511 return NULL;
7512 }
7513
7514
7515 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7516 PyObject *obj;
7517 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7518 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7519 Py_INCREF(obj);
7520 return Py_BuildValue((char *)"");
7521 }
7522 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject *resultobj;
7524 wxLogGui *result;
7525 char *kwnames[] = {
7526 NULL
7527 };
7528
7529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7530 {
7531 PyThreadState* __tstate = wxPyBeginAllowThreads();
7532 result = (wxLogGui *)new wxLogGui();
7533
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7538 return resultobj;
7539 fail:
7540 return NULL;
7541 }
7542
7543
7544 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7545 PyObject *obj;
7546 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7547 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7548 Py_INCREF(obj);
7549 return Py_BuildValue((char *)"");
7550 }
7551 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7552 PyObject *resultobj;
7553 wxFrame *arg1 = (wxFrame *) 0 ;
7554 wxString *arg2 = 0 ;
7555 bool arg3 = (bool) True ;
7556 bool arg4 = (bool) True ;
7557 wxLogWindow *result;
7558 bool temp2 = False ;
7559 PyObject * obj0 = 0 ;
7560 PyObject * obj1 = 0 ;
7561 PyObject * obj2 = 0 ;
7562 PyObject * obj3 = 0 ;
7563 char *kwnames[] = {
7564 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7565 };
7566
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7570 {
7571 arg2 = wxString_in_helper(obj1);
7572 if (arg2 == NULL) SWIG_fail;
7573 temp2 = True;
7574 }
7575 if (obj2) {
7576 arg3 = (bool) SWIG_AsBool(obj2);
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 if (obj3) {
7580 arg4 = (bool) SWIG_AsBool(obj3);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 {
7584 PyThreadState* __tstate = wxPyBeginAllowThreads();
7585 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7586
7587 wxPyEndAllowThreads(__tstate);
7588 if (PyErr_Occurred()) SWIG_fail;
7589 }
7590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7591 {
7592 if (temp2)
7593 delete arg2;
7594 }
7595 return resultobj;
7596 fail:
7597 {
7598 if (temp2)
7599 delete arg2;
7600 }
7601 return NULL;
7602 }
7603
7604
7605 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7606 PyObject *resultobj;
7607 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7608 bool arg2 = (bool) True ;
7609 PyObject * obj0 = 0 ;
7610 PyObject * obj1 = 0 ;
7611 char *kwnames[] = {
7612 (char *) "self",(char *) "bShow", NULL
7613 };
7614
7615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7618 if (obj1) {
7619 arg2 = (bool) SWIG_AsBool(obj1);
7620 if (PyErr_Occurred()) SWIG_fail;
7621 }
7622 {
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 (arg1)->Show(arg2);
7625
7626 wxPyEndAllowThreads(__tstate);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 Py_INCREF(Py_None); resultobj = Py_None;
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj;
7638 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7639 wxFrame *result;
7640 PyObject * obj0 = 0 ;
7641 char *kwnames[] = {
7642 (char *) "self", NULL
7643 };
7644
7645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7648 {
7649 PyThreadState* __tstate = wxPyBeginAllowThreads();
7650 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7651
7652 wxPyEndAllowThreads(__tstate);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 {
7656 resultobj = wxPyMake_wxObject(result);
7657 }
7658 return resultobj;
7659 fail:
7660 return NULL;
7661 }
7662
7663
7664 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7665 PyObject *resultobj;
7666 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7667 wxLog *result;
7668 PyObject * obj0 = 0 ;
7669 char *kwnames[] = {
7670 (char *) "self", NULL
7671 };
7672
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj;
7692 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7693 bool result;
7694 PyObject * obj0 = 0 ;
7695 char *kwnames[] = {
7696 (char *) "self", NULL
7697 };
7698
7699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7702 {
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7705
7706 wxPyEndAllowThreads(__tstate);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7710 return resultobj;
7711 fail:
7712 return NULL;
7713 }
7714
7715
7716 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7717 PyObject *resultobj;
7718 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7719 bool arg2 ;
7720 PyObject * obj0 = 0 ;
7721 PyObject * obj1 = 0 ;
7722 char *kwnames[] = {
7723 (char *) "self",(char *) "bDoPass", NULL
7724 };
7725
7726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7729 arg2 = (bool) SWIG_AsBool(obj1);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 {
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 (arg1)->PassMessages(arg2);
7734
7735 wxPyEndAllowThreads(__tstate);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 Py_INCREF(Py_None); resultobj = Py_None;
7739 return resultobj;
7740 fail:
7741 return NULL;
7742 }
7743
7744
7745 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7746 PyObject *obj;
7747 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7748 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7749 Py_INCREF(obj);
7750 return Py_BuildValue((char *)"");
7751 }
7752 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxLog *arg1 = (wxLog *) 0 ;
7755 wxLogChain *result;
7756 PyObject * obj0 = 0 ;
7757 char *kwnames[] = {
7758 (char *) "logger", NULL
7759 };
7760
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 result = (wxLogChain *)new wxLogChain(arg1);
7767
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7772 return resultobj;
7773 fail:
7774 return NULL;
7775 }
7776
7777
7778 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj;
7780 wxLogChain *arg1 = (wxLogChain *) 0 ;
7781 wxLog *arg2 = (wxLog *) 0 ;
7782 PyObject * obj0 = 0 ;
7783 PyObject * obj1 = 0 ;
7784 char *kwnames[] = {
7785 (char *) "self",(char *) "logger", NULL
7786 };
7787
7788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 (arg1)->SetLog(arg2);
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 Py_INCREF(Py_None); resultobj = Py_None;
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxLogChain *arg1 = (wxLogChain *) 0 ;
7810 bool arg2 ;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 char *kwnames[] = {
7814 (char *) "self",(char *) "bDoPass", NULL
7815 };
7816
7817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7820 arg2 = (bool) SWIG_AsBool(obj1);
7821 if (PyErr_Occurred()) SWIG_fail;
7822 {
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
7824 (arg1)->PassMessages(arg2);
7825
7826 wxPyEndAllowThreads(__tstate);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 Py_INCREF(Py_None); resultobj = Py_None;
7830 return resultobj;
7831 fail:
7832 return NULL;
7833 }
7834
7835
7836 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7837 PyObject *resultobj;
7838 wxLogChain *arg1 = (wxLogChain *) 0 ;
7839 bool result;
7840 PyObject * obj0 = 0 ;
7841 char *kwnames[] = {
7842 (char *) "self", NULL
7843 };
7844
7845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7848 {
7849 PyThreadState* __tstate = wxPyBeginAllowThreads();
7850 result = (bool)(arg1)->IsPassingMessages();
7851
7852 wxPyEndAllowThreads(__tstate);
7853 if (PyErr_Occurred()) SWIG_fail;
7854 }
7855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7856 return resultobj;
7857 fail:
7858 return NULL;
7859 }
7860
7861
7862 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject *resultobj;
7864 wxLogChain *arg1 = (wxLogChain *) 0 ;
7865 wxLog *result;
7866 PyObject * obj0 = 0 ;
7867 char *kwnames[] = {
7868 (char *) "self", NULL
7869 };
7870
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7874 {
7875 PyThreadState* __tstate = wxPyBeginAllowThreads();
7876 result = (wxLog *)(arg1)->GetOldLog();
7877
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7882 return resultobj;
7883 fail:
7884 return NULL;
7885 }
7886
7887
7888 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7889 PyObject *obj;
7890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7891 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7892 Py_INCREF(obj);
7893 return Py_BuildValue((char *)"");
7894 }
7895 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj;
7897 unsigned long result;
7898 char *kwnames[] = {
7899 NULL
7900 };
7901
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = (unsigned long)wxSysErrorCode();
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7911 return resultobj;
7912 fail:
7913 return NULL;
7914 }
7915
7916
7917 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj;
7919 unsigned long arg1 = (unsigned long) 0 ;
7920 wxString result;
7921 PyObject * obj0 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "nErrCode", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7927 if (obj0) {
7928 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 result = wxSysErrorMsg(arg1);
7934
7935 wxPyEndAllowThreads(__tstate);
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 {
7939 #if wxUSE_UNICODE
7940 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7941 #else
7942 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7943 #endif
7944 }
7945 return resultobj;
7946 fail:
7947 return NULL;
7948 }
7949
7950
7951 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
7952 PyObject *resultobj;
7953 wxString *arg1 = 0 ;
7954 bool temp1 = False ;
7955 PyObject * obj0 = 0 ;
7956 char *kwnames[] = {
7957 (char *) "msg", NULL
7958 };
7959
7960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7961 {
7962 arg1 = wxString_in_helper(obj0);
7963 if (arg1 == NULL) SWIG_fail;
7964 temp1 = True;
7965 }
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 wxLogFatalError((wxString const &)*arg1);
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 Py_INCREF(Py_None); resultobj = Py_None;
7974 {
7975 if (temp1)
7976 delete arg1;
7977 }
7978 return resultobj;
7979 fail:
7980 {
7981 if (temp1)
7982 delete arg1;
7983 }
7984 return NULL;
7985 }
7986
7987
7988 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
7989 PyObject *resultobj;
7990 wxString *arg1 = 0 ;
7991 bool temp1 = False ;
7992 PyObject * obj0 = 0 ;
7993 char *kwnames[] = {
7994 (char *) "msg", NULL
7995 };
7996
7997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
7998 {
7999 arg1 = wxString_in_helper(obj0);
8000 if (arg1 == NULL) SWIG_fail;
8001 temp1 = True;
8002 }
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 wxLogError((wxString const &)*arg1);
8006
8007 wxPyEndAllowThreads(__tstate);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 Py_INCREF(Py_None); resultobj = Py_None;
8011 {
8012 if (temp1)
8013 delete arg1;
8014 }
8015 return resultobj;
8016 fail:
8017 {
8018 if (temp1)
8019 delete arg1;
8020 }
8021 return NULL;
8022 }
8023
8024
8025 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8026 PyObject *resultobj;
8027 wxString *arg1 = 0 ;
8028 bool temp1 = False ;
8029 PyObject * obj0 = 0 ;
8030 char *kwnames[] = {
8031 (char *) "msg", NULL
8032 };
8033
8034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8035 {
8036 arg1 = wxString_in_helper(obj0);
8037 if (arg1 == NULL) SWIG_fail;
8038 temp1 = True;
8039 }
8040 {
8041 PyThreadState* __tstate = wxPyBeginAllowThreads();
8042 wxLogWarning((wxString const &)*arg1);
8043
8044 wxPyEndAllowThreads(__tstate);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 Py_INCREF(Py_None); resultobj = Py_None;
8048 {
8049 if (temp1)
8050 delete arg1;
8051 }
8052 return resultobj;
8053 fail:
8054 {
8055 if (temp1)
8056 delete arg1;
8057 }
8058 return NULL;
8059 }
8060
8061
8062 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj;
8064 wxString *arg1 = 0 ;
8065 bool temp1 = False ;
8066 PyObject * obj0 = 0 ;
8067 char *kwnames[] = {
8068 (char *) "msg", NULL
8069 };
8070
8071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8072 {
8073 arg1 = wxString_in_helper(obj0);
8074 if (arg1 == NULL) SWIG_fail;
8075 temp1 = True;
8076 }
8077 {
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 wxLogMessage((wxString const &)*arg1);
8080
8081 wxPyEndAllowThreads(__tstate);
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 Py_INCREF(Py_None); resultobj = Py_None;
8085 {
8086 if (temp1)
8087 delete arg1;
8088 }
8089 return resultobj;
8090 fail:
8091 {
8092 if (temp1)
8093 delete arg1;
8094 }
8095 return NULL;
8096 }
8097
8098
8099 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8100 PyObject *resultobj;
8101 wxString *arg1 = 0 ;
8102 bool temp1 = False ;
8103 PyObject * obj0 = 0 ;
8104 char *kwnames[] = {
8105 (char *) "msg", NULL
8106 };
8107
8108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8109 {
8110 arg1 = wxString_in_helper(obj0);
8111 if (arg1 == NULL) SWIG_fail;
8112 temp1 = True;
8113 }
8114 {
8115 PyThreadState* __tstate = wxPyBeginAllowThreads();
8116 wxLogInfo((wxString const &)*arg1);
8117
8118 wxPyEndAllowThreads(__tstate);
8119 if (PyErr_Occurred()) SWIG_fail;
8120 }
8121 Py_INCREF(Py_None); resultobj = Py_None;
8122 {
8123 if (temp1)
8124 delete arg1;
8125 }
8126 return resultobj;
8127 fail:
8128 {
8129 if (temp1)
8130 delete arg1;
8131 }
8132 return NULL;
8133 }
8134
8135
8136 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8137 PyObject *resultobj;
8138 wxString *arg1 = 0 ;
8139 bool temp1 = False ;
8140 PyObject * obj0 = 0 ;
8141 char *kwnames[] = {
8142 (char *) "msg", NULL
8143 };
8144
8145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8146 {
8147 arg1 = wxString_in_helper(obj0);
8148 if (arg1 == NULL) SWIG_fail;
8149 temp1 = True;
8150 }
8151 {
8152 PyThreadState* __tstate = wxPyBeginAllowThreads();
8153 wxLogDebug((wxString const &)*arg1);
8154
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 Py_INCREF(Py_None); resultobj = Py_None;
8159 {
8160 if (temp1)
8161 delete arg1;
8162 }
8163 return resultobj;
8164 fail:
8165 {
8166 if (temp1)
8167 delete arg1;
8168 }
8169 return NULL;
8170 }
8171
8172
8173 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8174 PyObject *resultobj;
8175 wxString *arg1 = 0 ;
8176 bool temp1 = False ;
8177 PyObject * obj0 = 0 ;
8178 char *kwnames[] = {
8179 (char *) "msg", NULL
8180 };
8181
8182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8183 {
8184 arg1 = wxString_in_helper(obj0);
8185 if (arg1 == NULL) SWIG_fail;
8186 temp1 = True;
8187 }
8188 {
8189 PyThreadState* __tstate = wxPyBeginAllowThreads();
8190 wxLogVerbose((wxString const &)*arg1);
8191
8192 wxPyEndAllowThreads(__tstate);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 }
8195 Py_INCREF(Py_None); resultobj = Py_None;
8196 {
8197 if (temp1)
8198 delete arg1;
8199 }
8200 return resultobj;
8201 fail:
8202 {
8203 if (temp1)
8204 delete arg1;
8205 }
8206 return NULL;
8207 }
8208
8209
8210 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj;
8212 wxString *arg1 = 0 ;
8213 bool temp1 = False ;
8214 PyObject * obj0 = 0 ;
8215 char *kwnames[] = {
8216 (char *) "msg", NULL
8217 };
8218
8219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8220 {
8221 arg1 = wxString_in_helper(obj0);
8222 if (arg1 == NULL) SWIG_fail;
8223 temp1 = True;
8224 }
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 wxLogStatus((wxString const &)*arg1);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 Py_INCREF(Py_None); resultobj = Py_None;
8233 {
8234 if (temp1)
8235 delete arg1;
8236 }
8237 return resultobj;
8238 fail:
8239 {
8240 if (temp1)
8241 delete arg1;
8242 }
8243 return NULL;
8244 }
8245
8246
8247 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8248 PyObject *resultobj;
8249 wxFrame *arg1 = (wxFrame *) 0 ;
8250 wxString *arg2 = 0 ;
8251 bool temp2 = False ;
8252 PyObject * obj0 = 0 ;
8253 PyObject * obj1 = 0 ;
8254 char *kwnames[] = {
8255 (char *) "pFrame",(char *) "msg", NULL
8256 };
8257
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8261 {
8262 arg2 = wxString_in_helper(obj1);
8263 if (arg2 == NULL) SWIG_fail;
8264 temp2 = True;
8265 }
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 wxLogStatus(arg1,(wxString const &)*arg2);
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 Py_INCREF(Py_None); resultobj = Py_None;
8274 {
8275 if (temp2)
8276 delete arg2;
8277 }
8278 return resultobj;
8279 fail:
8280 {
8281 if (temp2)
8282 delete arg2;
8283 }
8284 return NULL;
8285 }
8286
8287
8288 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8289 PyObject *resultobj;
8290 wxString *arg1 = 0 ;
8291 bool temp1 = False ;
8292 PyObject * obj0 = 0 ;
8293 char *kwnames[] = {
8294 (char *) "msg", NULL
8295 };
8296
8297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8298 {
8299 arg1 = wxString_in_helper(obj0);
8300 if (arg1 == NULL) SWIG_fail;
8301 temp1 = True;
8302 }
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 wxLogSysError((wxString const &)*arg1);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 Py_INCREF(Py_None); resultobj = Py_None;
8311 {
8312 if (temp1)
8313 delete arg1;
8314 }
8315 return resultobj;
8316 fail:
8317 {
8318 if (temp1)
8319 delete arg1;
8320 }
8321 return NULL;
8322 }
8323
8324
8325 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8326 PyObject *resultobj;
8327 unsigned long arg1 ;
8328 wxString *arg2 = 0 ;
8329 bool temp2 = False ;
8330 PyObject * obj0 = 0 ;
8331 PyObject * obj1 = 0 ;
8332
8333 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8334 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 {
8337 arg2 = wxString_in_helper(obj1);
8338 if (arg2 == NULL) SWIG_fail;
8339 temp2 = True;
8340 }
8341 {
8342 PyThreadState* __tstate = wxPyBeginAllowThreads();
8343 wxLogTrace(arg1,(wxString const &)*arg2);
8344
8345 wxPyEndAllowThreads(__tstate);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 }
8348 Py_INCREF(Py_None); resultobj = Py_None;
8349 {
8350 if (temp2)
8351 delete arg2;
8352 }
8353 return resultobj;
8354 fail:
8355 {
8356 if (temp2)
8357 delete arg2;
8358 }
8359 return NULL;
8360 }
8361
8362
8363 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8364 PyObject *resultobj;
8365 wxString *arg1 = 0 ;
8366 wxString *arg2 = 0 ;
8367 bool temp1 = False ;
8368 bool temp2 = False ;
8369 PyObject * obj0 = 0 ;
8370 PyObject * obj1 = 0 ;
8371
8372 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8373 {
8374 arg1 = wxString_in_helper(obj0);
8375 if (arg1 == NULL) SWIG_fail;
8376 temp1 = True;
8377 }
8378 {
8379 arg2 = wxString_in_helper(obj1);
8380 if (arg2 == NULL) SWIG_fail;
8381 temp2 = True;
8382 }
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 Py_INCREF(Py_None); resultobj = Py_None;
8391 {
8392 if (temp1)
8393 delete arg1;
8394 }
8395 {
8396 if (temp2)
8397 delete arg2;
8398 }
8399 return resultobj;
8400 fail:
8401 {
8402 if (temp1)
8403 delete arg1;
8404 }
8405 {
8406 if (temp2)
8407 delete arg2;
8408 }
8409 return NULL;
8410 }
8411
8412
8413 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8414 int argc;
8415 PyObject *argv[3];
8416 int ii;
8417
8418 argc = PyObject_Length(args);
8419 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8420 argv[ii] = PyTuple_GetItem(args,ii);
8421 }
8422 if (argc == 2) {
8423 int _v;
8424 {
8425 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8426 }
8427 if (_v) {
8428 {
8429 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8430 }
8431 if (_v) {
8432 return _wrap_LogTrace__SWIG_1(self,args);
8433 }
8434 }
8435 }
8436 if (argc == 2) {
8437 int _v;
8438 _v = SWIG_CheckUnsignedLong(argv[0]);
8439 if (_v) {
8440 {
8441 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8442 }
8443 if (_v) {
8444 return _wrap_LogTrace__SWIG_0(self,args);
8445 }
8446 }
8447 }
8448
8449 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8450 return NULL;
8451 }
8452
8453
8454 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj;
8456 unsigned long arg1 ;
8457 wxString *arg2 = 0 ;
8458 bool temp2 = False ;
8459 PyObject * obj0 = 0 ;
8460 PyObject * obj1 = 0 ;
8461 char *kwnames[] = {
8462 (char *) "level",(char *) "msg", NULL
8463 };
8464
8465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8466 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 {
8469 arg2 = wxString_in_helper(obj1);
8470 if (arg2 == NULL) SWIG_fail;
8471 temp2 = True;
8472 }
8473 {
8474 PyThreadState* __tstate = wxPyBeginAllowThreads();
8475 wxLogGeneric(arg1,(wxString const &)*arg2);
8476
8477 wxPyEndAllowThreads(__tstate);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 Py_INCREF(Py_None); resultobj = Py_None;
8481 {
8482 if (temp2)
8483 delete arg2;
8484 }
8485 return resultobj;
8486 fail:
8487 {
8488 if (temp2)
8489 delete arg2;
8490 }
8491 return NULL;
8492 }
8493
8494
8495 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj;
8497 wxString *arg1 = 0 ;
8498 wxString *arg2 = 0 ;
8499 bool temp1 = False ;
8500 bool temp2 = False ;
8501 PyObject * obj0 = 0 ;
8502 PyObject * obj1 = 0 ;
8503 char *kwnames[] = {
8504 (char *) "title",(char *) "text", NULL
8505 };
8506
8507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8508 {
8509 arg1 = wxString_in_helper(obj0);
8510 if (arg1 == NULL) SWIG_fail;
8511 temp1 = True;
8512 }
8513 {
8514 arg2 = wxString_in_helper(obj1);
8515 if (arg2 == NULL) SWIG_fail;
8516 temp2 = True;
8517 }
8518 {
8519 PyThreadState* __tstate = wxPyBeginAllowThreads();
8520 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8521
8522 wxPyEndAllowThreads(__tstate);
8523 if (PyErr_Occurred()) SWIG_fail;
8524 }
8525 Py_INCREF(Py_None); resultobj = Py_None;
8526 {
8527 if (temp1)
8528 delete arg1;
8529 }
8530 {
8531 if (temp2)
8532 delete arg2;
8533 }
8534 return resultobj;
8535 fail:
8536 {
8537 if (temp1)
8538 delete arg1;
8539 }
8540 {
8541 if (temp2)
8542 delete arg2;
8543 }
8544 return NULL;
8545 }
8546
8547
8548 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj;
8550 wxLogNull *result;
8551 char *kwnames[] = {
8552 NULL
8553 };
8554
8555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8556 {
8557 PyThreadState* __tstate = wxPyBeginAllowThreads();
8558 result = (wxLogNull *)new wxLogNull();
8559
8560 wxPyEndAllowThreads(__tstate);
8561 if (PyErr_Occurred()) SWIG_fail;
8562 }
8563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8564 return resultobj;
8565 fail:
8566 return NULL;
8567 }
8568
8569
8570 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8571 PyObject *resultobj;
8572 wxLogNull *arg1 = (wxLogNull *) 0 ;
8573 PyObject * obj0 = 0 ;
8574 char *kwnames[] = {
8575 (char *) "self", NULL
8576 };
8577
8578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 delete arg1;
8584
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 Py_INCREF(Py_None); resultobj = Py_None;
8589 return resultobj;
8590 fail:
8591 return NULL;
8592 }
8593
8594
8595 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8596 PyObject *obj;
8597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8598 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8599 Py_INCREF(obj);
8600 return Py_BuildValue((char *)"");
8601 }
8602 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8603 PyObject *resultobj;
8604 wxPyLog *result;
8605 char *kwnames[] = {
8606 NULL
8607 };
8608
8609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 result = (wxPyLog *)new wxPyLog();
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8618 return resultobj;
8619 fail:
8620 return NULL;
8621 }
8622
8623
8624 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxPyLog *arg1 = (wxPyLog *) 0 ;
8627 PyObject *arg2 = (PyObject *) 0 ;
8628 PyObject *arg3 = (PyObject *) 0 ;
8629 PyObject * obj0 = 0 ;
8630 PyObject * obj1 = 0 ;
8631 PyObject * obj2 = 0 ;
8632 char *kwnames[] = {
8633 (char *) "self",(char *) "self",(char *) "_class", NULL
8634 };
8635
8636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8639 arg2 = obj1;
8640 arg3 = obj2;
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 (arg1)->_setCallbackInfo(arg2,arg3);
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 Py_INCREF(Py_None); resultobj = Py_None;
8649 return resultobj;
8650 fail:
8651 return NULL;
8652 }
8653
8654
8655 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8656 PyObject *obj;
8657 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8658 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8659 Py_INCREF(obj);
8660 return Py_BuildValue((char *)"");
8661 }
8662 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8663 PyObject *resultobj;
8664 int arg1 ;
8665 int arg2 = (int) wxSIGTERM ;
8666 int result;
8667 PyObject * obj0 = 0 ;
8668 PyObject * obj1 = 0 ;
8669 char *kwnames[] = {
8670 (char *) "pid",(char *) "sig", NULL
8671 };
8672
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8674 arg1 = (int) SWIG_AsInt(obj0);
8675 if (PyErr_Occurred()) SWIG_fail;
8676 if (obj1) {
8677 arg2 = (wxSignal) SWIG_AsInt(obj1);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 {
8681 PyThreadState* __tstate = wxPyBeginAllowThreads();
8682 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8683
8684 wxPyEndAllowThreads(__tstate);
8685 if (PyErr_Occurred()) SWIG_fail;
8686 }
8687 resultobj = SWIG_FromInt((int)result);
8688 return resultobj;
8689 fail:
8690 return NULL;
8691 }
8692
8693
8694 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8695 PyObject *resultobj;
8696 int arg1 ;
8697 bool result;
8698 PyObject * obj0 = 0 ;
8699 char *kwnames[] = {
8700 (char *) "pid", NULL
8701 };
8702
8703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8704 arg1 = (int) SWIG_AsInt(obj0);
8705 if (PyErr_Occurred()) SWIG_fail;
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 result = (bool)wxPyProcess::Exists(arg1);
8709
8710 wxPyEndAllowThreads(__tstate);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 }
8713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8714 return resultobj;
8715 fail:
8716 return NULL;
8717 }
8718
8719
8720 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8721 PyObject *resultobj;
8722 wxString *arg1 = 0 ;
8723 int arg2 = (int) wxEXEC_ASYNC ;
8724 wxPyProcess *result;
8725 bool temp1 = False ;
8726 PyObject * obj0 = 0 ;
8727 PyObject * obj1 = 0 ;
8728 char *kwnames[] = {
8729 (char *) "cmd",(char *) "flags", NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8733 {
8734 arg1 = wxString_in_helper(obj0);
8735 if (arg1 == NULL) SWIG_fail;
8736 temp1 = True;
8737 }
8738 if (obj1) {
8739 arg2 = (int) SWIG_AsInt(obj1);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 {
8743 PyThreadState* __tstate = wxPyBeginAllowThreads();
8744 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8745
8746 wxPyEndAllowThreads(__tstate);
8747 if (PyErr_Occurred()) SWIG_fail;
8748 }
8749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8750 {
8751 if (temp1)
8752 delete arg1;
8753 }
8754 return resultobj;
8755 fail:
8756 {
8757 if (temp1)
8758 delete arg1;
8759 }
8760 return NULL;
8761 }
8762
8763
8764 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8765 PyObject *resultobj;
8766 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8767 int arg2 = (int) -1 ;
8768 wxPyProcess *result;
8769 PyObject * obj0 = 0 ;
8770 PyObject * obj1 = 0 ;
8771 char *kwnames[] = {
8772 (char *) "parent",(char *) "id", NULL
8773 };
8774
8775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8776 if (obj0) {
8777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8779 }
8780 if (obj1) {
8781 arg2 = (int) SWIG_AsInt(obj1);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 {
8785 PyThreadState* __tstate = wxPyBeginAllowThreads();
8786 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8787
8788 wxPyEndAllowThreads(__tstate);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8792 return resultobj;
8793 fail:
8794 return NULL;
8795 }
8796
8797
8798 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8801 PyObject *arg2 = (PyObject *) 0 ;
8802 PyObject *arg3 = (PyObject *) 0 ;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 PyObject * obj2 = 0 ;
8806 char *kwnames[] = {
8807 (char *) "self",(char *) "self",(char *) "_class", NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8813 arg2 = obj1;
8814 arg3 = obj2;
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 (arg1)->_setCallbackInfo(arg2,arg3);
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 Py_INCREF(Py_None); resultobj = Py_None;
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj;
8831 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8832 int arg2 ;
8833 int arg3 ;
8834 PyObject * obj0 = 0 ;
8835 PyObject * obj1 = 0 ;
8836 PyObject * obj2 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self",(char *) "pid",(char *) "status", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8844 arg2 = (int) SWIG_AsInt(obj1);
8845 if (PyErr_Occurred()) SWIG_fail;
8846 arg3 = (int) SWIG_AsInt(obj2);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 (arg1)->base_OnTerminate(arg2,arg3);
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 Py_INCREF(Py_None); resultobj = Py_None;
8856 return resultobj;
8857 fail:
8858 return NULL;
8859 }
8860
8861
8862 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8863 PyObject *resultobj;
8864 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8865 PyObject * obj0 = 0 ;
8866 char *kwnames[] = {
8867 (char *) "self", NULL
8868 };
8869
8870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8873 {
8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
8875 (arg1)->Redirect();
8876
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 Py_INCREF(Py_None); resultobj = Py_None;
8881 return resultobj;
8882 fail:
8883 return NULL;
8884 }
8885
8886
8887 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8888 PyObject *resultobj;
8889 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8890 bool result;
8891 PyObject * obj0 = 0 ;
8892 char *kwnames[] = {
8893 (char *) "self", NULL
8894 };
8895
8896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (bool)(arg1)->IsRedirected();
8902
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj;
8915 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8916 PyObject * obj0 = 0 ;
8917 char *kwnames[] = {
8918 (char *) "self", NULL
8919 };
8920
8921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8924 {
8925 PyThreadState* __tstate = wxPyBeginAllowThreads();
8926 (arg1)->Detach();
8927
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 Py_INCREF(Py_None); resultobj = Py_None;
8932 return resultobj;
8933 fail:
8934 return NULL;
8935 }
8936
8937
8938 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8939 PyObject *resultobj;
8940 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8941 wxInputStream *result;
8942 PyObject * obj0 = 0 ;
8943 char *kwnames[] = {
8944 (char *) "self", NULL
8945 };
8946
8947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8950 {
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 result = (wxInputStream *)(arg1)->GetInputStream();
8953
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 {
8958 wxPyInputStream * _ptr = NULL;
8959
8960 if (result) {
8961 _ptr = new wxPyInputStream(result);
8962 }
8963 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
8964 }
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8972 PyObject *resultobj;
8973 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8974 wxInputStream *result;
8975 PyObject * obj0 = 0 ;
8976 char *kwnames[] = {
8977 (char *) "self", NULL
8978 };
8979
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
8981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 result = (wxInputStream *)(arg1)->GetErrorStream();
8986
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 {
8991 wxPyInputStream * _ptr = NULL;
8992
8993 if (result) {
8994 _ptr = new wxPyInputStream(result);
8995 }
8996 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
8997 }
8998 return resultobj;
8999 fail:
9000 return NULL;
9001 }
9002
9003
9004 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9005 PyObject *resultobj;
9006 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9007 wxOutputStream *result;
9008 PyObject * obj0 = 0 ;
9009 char *kwnames[] = {
9010 (char *) "self", NULL
9011 };
9012
9013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 result = (wxOutputStream *)(arg1)->GetOutputStream();
9019
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9024 return resultobj;
9025 fail:
9026 return NULL;
9027 }
9028
9029
9030 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9031 PyObject *resultobj;
9032 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9033 PyObject * obj0 = 0 ;
9034 char *kwnames[] = {
9035 (char *) "self", NULL
9036 };
9037
9038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9041 {
9042 PyThreadState* __tstate = wxPyBeginAllowThreads();
9043 (arg1)->CloseOutput();
9044
9045 wxPyEndAllowThreads(__tstate);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 Py_INCREF(Py_None); resultobj = Py_None;
9049 return resultobj;
9050 fail:
9051 return NULL;
9052 }
9053
9054
9055 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9056 PyObject *resultobj;
9057 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9058 bool result;
9059 PyObject * obj0 = 0 ;
9060 char *kwnames[] = {
9061 (char *) "self", NULL
9062 };
9063
9064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9067 {
9068 PyThreadState* __tstate = wxPyBeginAllowThreads();
9069 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9070
9071 wxPyEndAllowThreads(__tstate);
9072 if (PyErr_Occurred()) SWIG_fail;
9073 }
9074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9075 return resultobj;
9076 fail:
9077 return NULL;
9078 }
9079
9080
9081 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9082 PyObject *resultobj;
9083 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9084 bool result;
9085 PyObject * obj0 = 0 ;
9086 char *kwnames[] = {
9087 (char *) "self", NULL
9088 };
9089
9090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9093 {
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
9095 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9096
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
9100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9101 return resultobj;
9102 fail:
9103 return NULL;
9104 }
9105
9106
9107 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9108 PyObject *resultobj;
9109 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9110 bool result;
9111 PyObject * obj0 = 0 ;
9112 char *kwnames[] = {
9113 (char *) "self", NULL
9114 };
9115
9116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9119 {
9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
9121 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9122
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9127 return resultobj;
9128 fail:
9129 return NULL;
9130 }
9131
9132
9133 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9134 PyObject *obj;
9135 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9136 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9137 Py_INCREF(obj);
9138 return Py_BuildValue((char *)"");
9139 }
9140 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj;
9142 int arg1 = (int) 0 ;
9143 int arg2 = (int) 0 ;
9144 int arg3 = (int) 0 ;
9145 wxProcessEvent *result;
9146 PyObject * obj0 = 0 ;
9147 PyObject * obj1 = 0 ;
9148 PyObject * obj2 = 0 ;
9149 char *kwnames[] = {
9150 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9151 };
9152
9153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9154 if (obj0) {
9155 arg1 = (int) SWIG_AsInt(obj0);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
9158 if (obj1) {
9159 arg2 = (int) SWIG_AsInt(obj1);
9160 if (PyErr_Occurred()) SWIG_fail;
9161 }
9162 if (obj2) {
9163 arg3 = (int) SWIG_AsInt(obj2);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9169
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9174 return resultobj;
9175 fail:
9176 return NULL;
9177 }
9178
9179
9180 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9181 PyObject *resultobj;
9182 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9183 int result;
9184 PyObject * obj0 = 0 ;
9185 char *kwnames[] = {
9186 (char *) "self", NULL
9187 };
9188
9189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9192 {
9193 PyThreadState* __tstate = wxPyBeginAllowThreads();
9194 result = (int)(arg1)->GetPid();
9195
9196 wxPyEndAllowThreads(__tstate);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 }
9199 resultobj = SWIG_FromInt((int)result);
9200 return resultobj;
9201 fail:
9202 return NULL;
9203 }
9204
9205
9206 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9207 PyObject *resultobj;
9208 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9209 int result;
9210 PyObject * obj0 = 0 ;
9211 char *kwnames[] = {
9212 (char *) "self", NULL
9213 };
9214
9215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9218 {
9219 PyThreadState* __tstate = wxPyBeginAllowThreads();
9220 result = (int)(arg1)->GetExitCode();
9221
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) SWIG_fail;
9224 }
9225 resultobj = SWIG_FromInt((int)result);
9226 return resultobj;
9227 fail:
9228 return NULL;
9229 }
9230
9231
9232 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9233 PyObject *resultobj;
9234 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9235 int arg2 ;
9236 PyObject * obj0 = 0 ;
9237 PyObject * obj1 = 0 ;
9238 char *kwnames[] = {
9239 (char *) "self",(char *) "m_pid", NULL
9240 };
9241
9242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9245 arg2 = (int) SWIG_AsInt(obj1);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 if (arg1) (arg1)->m_pid = arg2;
9248
9249 Py_INCREF(Py_None); resultobj = Py_None;
9250 return resultobj;
9251 fail:
9252 return NULL;
9253 }
9254
9255
9256 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9257 PyObject *resultobj;
9258 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9259 int result;
9260 PyObject * obj0 = 0 ;
9261 char *kwnames[] = {
9262 (char *) "self", NULL
9263 };
9264
9265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9268 result = (int) ((arg1)->m_pid);
9269
9270 resultobj = SWIG_FromInt((int)result);
9271 return resultobj;
9272 fail:
9273 return NULL;
9274 }
9275
9276
9277 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj;
9279 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9280 int arg2 ;
9281 PyObject * obj0 = 0 ;
9282 PyObject * obj1 = 0 ;
9283 char *kwnames[] = {
9284 (char *) "self",(char *) "m_exitcode", NULL
9285 };
9286
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9290 arg2 = (int) SWIG_AsInt(obj1);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 if (arg1) (arg1)->m_exitcode = arg2;
9293
9294 Py_INCREF(Py_None); resultobj = Py_None;
9295 return resultobj;
9296 fail:
9297 return NULL;
9298 }
9299
9300
9301 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9302 PyObject *resultobj;
9303 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9304 int result;
9305 PyObject * obj0 = 0 ;
9306 char *kwnames[] = {
9307 (char *) "self", NULL
9308 };
9309
9310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9313 result = (int) ((arg1)->m_exitcode);
9314
9315 resultobj = SWIG_FromInt((int)result);
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9323 PyObject *obj;
9324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9325 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9326 Py_INCREF(obj);
9327 return Py_BuildValue((char *)"");
9328 }
9329 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9330 PyObject *resultobj;
9331 wxString *arg1 = 0 ;
9332 int arg2 = (int) wxEXEC_ASYNC ;
9333 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9334 long result;
9335 bool temp1 = False ;
9336 PyObject * obj0 = 0 ;
9337 PyObject * obj1 = 0 ;
9338 PyObject * obj2 = 0 ;
9339 char *kwnames[] = {
9340 (char *) "command",(char *) "flags",(char *) "process", NULL
9341 };
9342
9343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9344 {
9345 arg1 = wxString_in_helper(obj0);
9346 if (arg1 == NULL) SWIG_fail;
9347 temp1 = True;
9348 }
9349 if (obj1) {
9350 arg2 = (int) SWIG_AsInt(obj1);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 if (obj2) {
9354 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9356 }
9357 {
9358 PyThreadState* __tstate = wxPyBeginAllowThreads();
9359 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9360
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 resultobj = SWIG_FromLong((long)result);
9365 {
9366 if (temp1)
9367 delete arg1;
9368 }
9369 return resultobj;
9370 fail:
9371 {
9372 if (temp1)
9373 delete arg1;
9374 }
9375 return NULL;
9376 }
9377
9378
9379 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9380 PyObject *resultobj;
9381 int arg1 = (int) wxJOYSTICK1 ;
9382 wxJoystick *result;
9383 PyObject * obj0 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "joystick", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9389 if (obj0) {
9390 arg1 = (int) SWIG_AsInt(obj0);
9391 if (PyErr_Occurred()) SWIG_fail;
9392 }
9393 {
9394 PyThreadState* __tstate = wxPyBeginAllowThreads();
9395 result = (wxJoystick *)new wxJoystick(arg1);
9396
9397 wxPyEndAllowThreads(__tstate);
9398 if (PyErr_Occurred()) SWIG_fail;
9399 }
9400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9401 return resultobj;
9402 fail:
9403 return NULL;
9404 }
9405
9406
9407 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj;
9409 wxJoystick *arg1 = (wxJoystick *) 0 ;
9410 PyObject * obj0 = 0 ;
9411 char *kwnames[] = {
9412 (char *) "self", NULL
9413 };
9414
9415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9418 {
9419 PyThreadState* __tstate = wxPyBeginAllowThreads();
9420 delete arg1;
9421
9422 wxPyEndAllowThreads(__tstate);
9423 if (PyErr_Occurred()) SWIG_fail;
9424 }
9425 Py_INCREF(Py_None); resultobj = Py_None;
9426 return resultobj;
9427 fail:
9428 return NULL;
9429 }
9430
9431
9432 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9433 PyObject *resultobj;
9434 wxJoystick *arg1 = (wxJoystick *) 0 ;
9435 wxPoint result;
9436 PyObject * obj0 = 0 ;
9437 char *kwnames[] = {
9438 (char *) "self", NULL
9439 };
9440
9441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (arg1)->GetPosition();
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 {
9452 wxPoint * resultptr;
9453 resultptr = new wxPoint((wxPoint &) result);
9454 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9455 }
9456 return resultobj;
9457 fail:
9458 return NULL;
9459 }
9460
9461
9462 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9463 PyObject *resultobj;
9464 wxJoystick *arg1 = (wxJoystick *) 0 ;
9465 int result;
9466 PyObject * obj0 = 0 ;
9467 char *kwnames[] = {
9468 (char *) "self", NULL
9469 };
9470
9471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 result = (int)(arg1)->GetZPosition();
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 resultobj = SWIG_FromInt((int)result);
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxJoystick *arg1 = (wxJoystick *) 0 ;
9491 int result;
9492 PyObject * obj0 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 result = (int)(arg1)->GetButtonState();
9503
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = SWIG_FromInt((int)result);
9508 return resultobj;
9509 fail:
9510 return NULL;
9511 }
9512
9513
9514 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj;
9516 wxJoystick *arg1 = (wxJoystick *) 0 ;
9517 int result;
9518 PyObject * obj0 = 0 ;
9519 char *kwnames[] = {
9520 (char *) "self", NULL
9521 };
9522
9523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 result = (int)(arg1)->GetPOVPosition();
9529
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_FromInt((int)result);
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj;
9542 wxJoystick *arg1 = (wxJoystick *) 0 ;
9543 int result;
9544 PyObject * obj0 = 0 ;
9545 char *kwnames[] = {
9546 (char *) "self", NULL
9547 };
9548
9549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = (int)(arg1)->GetPOVCTSPosition();
9555
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_FromInt((int)result);
9560 return resultobj;
9561 fail:
9562 return NULL;
9563 }
9564
9565
9566 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9567 PyObject *resultobj;
9568 wxJoystick *arg1 = (wxJoystick *) 0 ;
9569 int result;
9570 PyObject * obj0 = 0 ;
9571 char *kwnames[] = {
9572 (char *) "self", NULL
9573 };
9574
9575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 result = (int)(arg1)->GetRudderPosition();
9581
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 resultobj = SWIG_FromInt((int)result);
9586 return resultobj;
9587 fail:
9588 return NULL;
9589 }
9590
9591
9592 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9593 PyObject *resultobj;
9594 wxJoystick *arg1 = (wxJoystick *) 0 ;
9595 int result;
9596 PyObject * obj0 = 0 ;
9597 char *kwnames[] = {
9598 (char *) "self", NULL
9599 };
9600
9601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9604 {
9605 PyThreadState* __tstate = wxPyBeginAllowThreads();
9606 result = (int)(arg1)->GetUPosition();
9607
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_FromInt((int)result);
9612 return resultobj;
9613 fail:
9614 return NULL;
9615 }
9616
9617
9618 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9619 PyObject *resultobj;
9620 wxJoystick *arg1 = (wxJoystick *) 0 ;
9621 int result;
9622 PyObject * obj0 = 0 ;
9623 char *kwnames[] = {
9624 (char *) "self", NULL
9625 };
9626
9627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 result = (int)(arg1)->GetVPosition();
9633
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 resultobj = SWIG_FromInt((int)result);
9638 return resultobj;
9639 fail:
9640 return NULL;
9641 }
9642
9643
9644 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj;
9646 wxJoystick *arg1 = (wxJoystick *) 0 ;
9647 int result;
9648 PyObject * obj0 = 0 ;
9649 char *kwnames[] = {
9650 (char *) "self", NULL
9651 };
9652
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 result = (int)(arg1)->GetMovementThreshold();
9659
9660 wxPyEndAllowThreads(__tstate);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 resultobj = SWIG_FromInt((int)result);
9664 return resultobj;
9665 fail:
9666 return NULL;
9667 }
9668
9669
9670 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9671 PyObject *resultobj;
9672 wxJoystick *arg1 = (wxJoystick *) 0 ;
9673 int arg2 ;
9674 PyObject * obj0 = 0 ;
9675 PyObject * obj1 = 0 ;
9676 char *kwnames[] = {
9677 (char *) "self",(char *) "threshold", NULL
9678 };
9679
9680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9683 arg2 = (int) SWIG_AsInt(obj1);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
9687 (arg1)->SetMovementThreshold(arg2);
9688
9689 wxPyEndAllowThreads(__tstate);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 }
9692 Py_INCREF(Py_None); resultobj = Py_None;
9693 return resultobj;
9694 fail:
9695 return NULL;
9696 }
9697
9698
9699 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9700 PyObject *resultobj;
9701 wxJoystick *arg1 = (wxJoystick *) 0 ;
9702 bool result;
9703 PyObject * obj0 = 0 ;
9704 char *kwnames[] = {
9705 (char *) "self", NULL
9706 };
9707
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 result = (bool)(arg1)->IsOk();
9714
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj;
9727 wxJoystick *arg1 = (wxJoystick *) 0 ;
9728 int result;
9729 PyObject * obj0 = 0 ;
9730 char *kwnames[] = {
9731 (char *) "self", NULL
9732 };
9733
9734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 result = (int)(arg1)->GetNumberJoysticks();
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 resultobj = SWIG_FromInt((int)result);
9745 return resultobj;
9746 fail:
9747 return NULL;
9748 }
9749
9750
9751 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj;
9753 wxJoystick *arg1 = (wxJoystick *) 0 ;
9754 int result;
9755 PyObject * obj0 = 0 ;
9756 char *kwnames[] = {
9757 (char *) "self", NULL
9758 };
9759
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9763 {
9764 PyThreadState* __tstate = wxPyBeginAllowThreads();
9765 result = (int)(arg1)->GetManufacturerId();
9766
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 resultobj = SWIG_FromInt((int)result);
9771 return resultobj;
9772 fail:
9773 return NULL;
9774 }
9775
9776
9777 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj;
9779 wxJoystick *arg1 = (wxJoystick *) 0 ;
9780 int result;
9781 PyObject * obj0 = 0 ;
9782 char *kwnames[] = {
9783 (char *) "self", NULL
9784 };
9785
9786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = (int)(arg1)->GetProductId();
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_FromInt((int)result);
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxJoystick *arg1 = (wxJoystick *) 0 ;
9806 wxString result;
9807 PyObject * obj0 = 0 ;
9808 char *kwnames[] = {
9809 (char *) "self", NULL
9810 };
9811
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (arg1)->GetProductName();
9818
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 {
9823 #if wxUSE_UNICODE
9824 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9825 #else
9826 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9827 #endif
9828 }
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj;
9837 wxJoystick *arg1 = (wxJoystick *) 0 ;
9838 int result;
9839 PyObject * obj0 = 0 ;
9840 char *kwnames[] = {
9841 (char *) "self", NULL
9842 };
9843
9844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 result = (int)(arg1)->GetXMin();
9850
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 resultobj = SWIG_FromInt((int)result);
9855 return resultobj;
9856 fail:
9857 return NULL;
9858 }
9859
9860
9861 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj;
9863 wxJoystick *arg1 = (wxJoystick *) 0 ;
9864 int result;
9865 PyObject * obj0 = 0 ;
9866 char *kwnames[] = {
9867 (char *) "self", NULL
9868 };
9869
9870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9873 {
9874 PyThreadState* __tstate = wxPyBeginAllowThreads();
9875 result = (int)(arg1)->GetYMin();
9876
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_FromInt((int)result);
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj;
9889 wxJoystick *arg1 = (wxJoystick *) 0 ;
9890 int result;
9891 PyObject * obj0 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "self", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9899 {
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 result = (int)(arg1)->GetZMin();
9902
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 resultobj = SWIG_FromInt((int)result);
9907 return resultobj;
9908 fail:
9909 return NULL;
9910 }
9911
9912
9913 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9914 PyObject *resultobj;
9915 wxJoystick *arg1 = (wxJoystick *) 0 ;
9916 int result;
9917 PyObject * obj0 = 0 ;
9918 char *kwnames[] = {
9919 (char *) "self", NULL
9920 };
9921
9922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9925 {
9926 PyThreadState* __tstate = wxPyBeginAllowThreads();
9927 result = (int)(arg1)->GetXMax();
9928
9929 wxPyEndAllowThreads(__tstate);
9930 if (PyErr_Occurred()) SWIG_fail;
9931 }
9932 resultobj = SWIG_FromInt((int)result);
9933 return resultobj;
9934 fail:
9935 return NULL;
9936 }
9937
9938
9939 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9940 PyObject *resultobj;
9941 wxJoystick *arg1 = (wxJoystick *) 0 ;
9942 int result;
9943 PyObject * obj0 = 0 ;
9944 char *kwnames[] = {
9945 (char *) "self", NULL
9946 };
9947
9948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
9949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 result = (int)(arg1)->GetYMax();
9954
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 resultobj = SWIG_FromInt((int)result);
9959 return resultobj;
9960 fail:
9961 return NULL;
9962 }
9963
9964
9965 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9966 PyObject *resultobj;
9967 wxJoystick *arg1 = (wxJoystick *) 0 ;
9968 int result;
9969 PyObject * obj0 = 0 ;
9970 char *kwnames[] = {
9971 (char *) "self", NULL
9972 };
9973
9974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
9975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 result = (int)(arg1)->GetZMax();
9980
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 resultobj = SWIG_FromInt((int)result);
9985 return resultobj;
9986 fail:
9987 return NULL;
9988 }
9989
9990
9991 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9992 PyObject *resultobj;
9993 wxJoystick *arg1 = (wxJoystick *) 0 ;
9994 int result;
9995 PyObject * obj0 = 0 ;
9996 char *kwnames[] = {
9997 (char *) "self", NULL
9998 };
9999
10000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10003 {
10004 PyThreadState* __tstate = wxPyBeginAllowThreads();
10005 result = (int)(arg1)->GetNumberButtons();
10006
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 resultobj = SWIG_FromInt((int)result);
10011 return resultobj;
10012 fail:
10013 return NULL;
10014 }
10015
10016
10017 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10018 PyObject *resultobj;
10019 wxJoystick *arg1 = (wxJoystick *) 0 ;
10020 int result;
10021 PyObject * obj0 = 0 ;
10022 char *kwnames[] = {
10023 (char *) "self", NULL
10024 };
10025
10026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10029 {
10030 PyThreadState* __tstate = wxPyBeginAllowThreads();
10031 result = (int)(arg1)->GetNumberAxes();
10032
10033 wxPyEndAllowThreads(__tstate);
10034 if (PyErr_Occurred()) SWIG_fail;
10035 }
10036 resultobj = SWIG_FromInt((int)result);
10037 return resultobj;
10038 fail:
10039 return NULL;
10040 }
10041
10042
10043 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10044 PyObject *resultobj;
10045 wxJoystick *arg1 = (wxJoystick *) 0 ;
10046 int result;
10047 PyObject * obj0 = 0 ;
10048 char *kwnames[] = {
10049 (char *) "self", NULL
10050 };
10051
10052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 result = (int)(arg1)->GetMaxButtons();
10058
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 resultobj = SWIG_FromInt((int)result);
10063 return resultobj;
10064 fail:
10065 return NULL;
10066 }
10067
10068
10069 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10070 PyObject *resultobj;
10071 wxJoystick *arg1 = (wxJoystick *) 0 ;
10072 int result;
10073 PyObject * obj0 = 0 ;
10074 char *kwnames[] = {
10075 (char *) "self", NULL
10076 };
10077
10078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 result = (int)(arg1)->GetMaxAxes();
10084
10085 wxPyEndAllowThreads(__tstate);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 resultobj = SWIG_FromInt((int)result);
10089 return resultobj;
10090 fail:
10091 return NULL;
10092 }
10093
10094
10095 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10096 PyObject *resultobj;
10097 wxJoystick *arg1 = (wxJoystick *) 0 ;
10098 int result;
10099 PyObject * obj0 = 0 ;
10100 char *kwnames[] = {
10101 (char *) "self", NULL
10102 };
10103
10104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10107 {
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 result = (int)(arg1)->GetPollingMin();
10110
10111 wxPyEndAllowThreads(__tstate);
10112 if (PyErr_Occurred()) SWIG_fail;
10113 }
10114 resultobj = SWIG_FromInt((int)result);
10115 return resultobj;
10116 fail:
10117 return NULL;
10118 }
10119
10120
10121 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10122 PyObject *resultobj;
10123 wxJoystick *arg1 = (wxJoystick *) 0 ;
10124 int result;
10125 PyObject * obj0 = 0 ;
10126 char *kwnames[] = {
10127 (char *) "self", NULL
10128 };
10129
10130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10133 {
10134 PyThreadState* __tstate = wxPyBeginAllowThreads();
10135 result = (int)(arg1)->GetPollingMax();
10136
10137 wxPyEndAllowThreads(__tstate);
10138 if (PyErr_Occurred()) SWIG_fail;
10139 }
10140 resultobj = SWIG_FromInt((int)result);
10141 return resultobj;
10142 fail:
10143 return NULL;
10144 }
10145
10146
10147 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10148 PyObject *resultobj;
10149 wxJoystick *arg1 = (wxJoystick *) 0 ;
10150 int result;
10151 PyObject * obj0 = 0 ;
10152 char *kwnames[] = {
10153 (char *) "self", NULL
10154 };
10155
10156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 result = (int)(arg1)->GetRudderMin();
10162
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 resultobj = SWIG_FromInt((int)result);
10167 return resultobj;
10168 fail:
10169 return NULL;
10170 }
10171
10172
10173 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10174 PyObject *resultobj;
10175 wxJoystick *arg1 = (wxJoystick *) 0 ;
10176 int result;
10177 PyObject * obj0 = 0 ;
10178 char *kwnames[] = {
10179 (char *) "self", NULL
10180 };
10181
10182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10185 {
10186 PyThreadState* __tstate = wxPyBeginAllowThreads();
10187 result = (int)(arg1)->GetRudderMax();
10188
10189 wxPyEndAllowThreads(__tstate);
10190 if (PyErr_Occurred()) SWIG_fail;
10191 }
10192 resultobj = SWIG_FromInt((int)result);
10193 return resultobj;
10194 fail:
10195 return NULL;
10196 }
10197
10198
10199 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10200 PyObject *resultobj;
10201 wxJoystick *arg1 = (wxJoystick *) 0 ;
10202 int result;
10203 PyObject * obj0 = 0 ;
10204 char *kwnames[] = {
10205 (char *) "self", NULL
10206 };
10207
10208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 result = (int)(arg1)->GetUMin();
10214
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 resultobj = SWIG_FromInt((int)result);
10219 return resultobj;
10220 fail:
10221 return NULL;
10222 }
10223
10224
10225 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj;
10227 wxJoystick *arg1 = (wxJoystick *) 0 ;
10228 int result;
10229 PyObject * obj0 = 0 ;
10230 char *kwnames[] = {
10231 (char *) "self", NULL
10232 };
10233
10234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10237 {
10238 PyThreadState* __tstate = wxPyBeginAllowThreads();
10239 result = (int)(arg1)->GetUMax();
10240
10241 wxPyEndAllowThreads(__tstate);
10242 if (PyErr_Occurred()) SWIG_fail;
10243 }
10244 resultobj = SWIG_FromInt((int)result);
10245 return resultobj;
10246 fail:
10247 return NULL;
10248 }
10249
10250
10251 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject *resultobj;
10253 wxJoystick *arg1 = (wxJoystick *) 0 ;
10254 int result;
10255 PyObject * obj0 = 0 ;
10256 char *kwnames[] = {
10257 (char *) "self", NULL
10258 };
10259
10260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10263 {
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 result = (int)(arg1)->GetVMin();
10266
10267 wxPyEndAllowThreads(__tstate);
10268 if (PyErr_Occurred()) SWIG_fail;
10269 }
10270 resultobj = SWIG_FromInt((int)result);
10271 return resultobj;
10272 fail:
10273 return NULL;
10274 }
10275
10276
10277 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10278 PyObject *resultobj;
10279 wxJoystick *arg1 = (wxJoystick *) 0 ;
10280 int result;
10281 PyObject * obj0 = 0 ;
10282 char *kwnames[] = {
10283 (char *) "self", NULL
10284 };
10285
10286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10289 {
10290 PyThreadState* __tstate = wxPyBeginAllowThreads();
10291 result = (int)(arg1)->GetVMax();
10292
10293 wxPyEndAllowThreads(__tstate);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 resultobj = SWIG_FromInt((int)result);
10297 return resultobj;
10298 fail:
10299 return NULL;
10300 }
10301
10302
10303 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10304 PyObject *resultobj;
10305 wxJoystick *arg1 = (wxJoystick *) 0 ;
10306 bool result;
10307 PyObject * obj0 = 0 ;
10308 char *kwnames[] = {
10309 (char *) "self", NULL
10310 };
10311
10312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10315 {
10316 PyThreadState* __tstate = wxPyBeginAllowThreads();
10317 result = (bool)(arg1)->HasRudder();
10318
10319 wxPyEndAllowThreads(__tstate);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10323 return resultobj;
10324 fail:
10325 return NULL;
10326 }
10327
10328
10329 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj;
10331 wxJoystick *arg1 = (wxJoystick *) 0 ;
10332 bool result;
10333 PyObject * obj0 = 0 ;
10334 char *kwnames[] = {
10335 (char *) "self", NULL
10336 };
10337
10338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 result = (bool)(arg1)->HasZ();
10344
10345 wxPyEndAllowThreads(__tstate);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10349 return resultobj;
10350 fail:
10351 return NULL;
10352 }
10353
10354
10355 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10356 PyObject *resultobj;
10357 wxJoystick *arg1 = (wxJoystick *) 0 ;
10358 bool result;
10359 PyObject * obj0 = 0 ;
10360 char *kwnames[] = {
10361 (char *) "self", NULL
10362 };
10363
10364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10367 {
10368 PyThreadState* __tstate = wxPyBeginAllowThreads();
10369 result = (bool)(arg1)->HasU();
10370
10371 wxPyEndAllowThreads(__tstate);
10372 if (PyErr_Occurred()) SWIG_fail;
10373 }
10374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10375 return resultobj;
10376 fail:
10377 return NULL;
10378 }
10379
10380
10381 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10382 PyObject *resultobj;
10383 wxJoystick *arg1 = (wxJoystick *) 0 ;
10384 bool result;
10385 PyObject * obj0 = 0 ;
10386 char *kwnames[] = {
10387 (char *) "self", NULL
10388 };
10389
10390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10393 {
10394 PyThreadState* __tstate = wxPyBeginAllowThreads();
10395 result = (bool)(arg1)->HasV();
10396
10397 wxPyEndAllowThreads(__tstate);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10401 return resultobj;
10402 fail:
10403 return NULL;
10404 }
10405
10406
10407 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10408 PyObject *resultobj;
10409 wxJoystick *arg1 = (wxJoystick *) 0 ;
10410 bool result;
10411 PyObject * obj0 = 0 ;
10412 char *kwnames[] = {
10413 (char *) "self", NULL
10414 };
10415
10416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10419 {
10420 PyThreadState* __tstate = wxPyBeginAllowThreads();
10421 result = (bool)(arg1)->HasPOV();
10422
10423 wxPyEndAllowThreads(__tstate);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 }
10426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10427 return resultobj;
10428 fail:
10429 return NULL;
10430 }
10431
10432
10433 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10434 PyObject *resultobj;
10435 wxJoystick *arg1 = (wxJoystick *) 0 ;
10436 bool result;
10437 PyObject * obj0 = 0 ;
10438 char *kwnames[] = {
10439 (char *) "self", NULL
10440 };
10441
10442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10445 {
10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
10447 result = (bool)(arg1)->HasPOV4Dir();
10448
10449 wxPyEndAllowThreads(__tstate);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10453 return resultobj;
10454 fail:
10455 return NULL;
10456 }
10457
10458
10459 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10460 PyObject *resultobj;
10461 wxJoystick *arg1 = (wxJoystick *) 0 ;
10462 bool result;
10463 PyObject * obj0 = 0 ;
10464 char *kwnames[] = {
10465 (char *) "self", NULL
10466 };
10467
10468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 result = (bool)(arg1)->HasPOVCTS();
10474
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) SWIG_fail;
10477 }
10478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10479 return resultobj;
10480 fail:
10481 return NULL;
10482 }
10483
10484
10485 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10486 PyObject *resultobj;
10487 wxJoystick *arg1 = (wxJoystick *) 0 ;
10488 wxWindow *arg2 = (wxWindow *) 0 ;
10489 int arg3 = (int) 0 ;
10490 bool result;
10491 PyObject * obj0 = 0 ;
10492 PyObject * obj1 = 0 ;
10493 PyObject * obj2 = 0 ;
10494 char *kwnames[] = {
10495 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10496 };
10497
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10503 if (obj2) {
10504 arg3 = (int) SWIG_AsInt(obj2);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 {
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 result = (bool)(arg1)->SetCapture(arg2,arg3);
10510
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10515 return resultobj;
10516 fail:
10517 return NULL;
10518 }
10519
10520
10521 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10522 PyObject *resultobj;
10523 wxJoystick *arg1 = (wxJoystick *) 0 ;
10524 bool result;
10525 PyObject * obj0 = 0 ;
10526 char *kwnames[] = {
10527 (char *) "self", NULL
10528 };
10529
10530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 result = (bool)(arg1)->ReleaseCapture();
10536
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10541 return resultobj;
10542 fail:
10543 return NULL;
10544 }
10545
10546
10547 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10548 PyObject *obj;
10549 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10550 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10551 Py_INCREF(obj);
10552 return Py_BuildValue((char *)"");
10553 }
10554 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10555 PyObject *resultobj;
10556 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10557 wxPoint *arg2 = (wxPoint *) 0 ;
10558 PyObject * obj0 = 0 ;
10559 PyObject * obj1 = 0 ;
10560 char *kwnames[] = {
10561 (char *) "self",(char *) "m_pos", NULL
10562 };
10563
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10569 if (arg1) (arg1)->m_pos = *arg2;
10570
10571 Py_INCREF(Py_None); resultobj = Py_None;
10572 return resultobj;
10573 fail:
10574 return NULL;
10575 }
10576
10577
10578 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj;
10580 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10581 wxPoint *result;
10582 PyObject * obj0 = 0 ;
10583 char *kwnames[] = {
10584 (char *) "self", NULL
10585 };
10586
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10590 result = (wxPoint *)& ((arg1)->m_pos);
10591
10592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10593 return resultobj;
10594 fail:
10595 return NULL;
10596 }
10597
10598
10599 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj;
10601 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10602 int arg2 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 char *kwnames[] = {
10606 (char *) "self",(char *) "m_zPosition", NULL
10607 };
10608
10609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10612 arg2 = (int) SWIG_AsInt(obj1);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 if (arg1) (arg1)->m_zPosition = arg2;
10615
10616 Py_INCREF(Py_None); resultobj = Py_None;
10617 return resultobj;
10618 fail:
10619 return NULL;
10620 }
10621
10622
10623 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10624 PyObject *resultobj;
10625 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10626 int result;
10627 PyObject * obj0 = 0 ;
10628 char *kwnames[] = {
10629 (char *) "self", NULL
10630 };
10631
10632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10635 result = (int) ((arg1)->m_zPosition);
10636
10637 resultobj = SWIG_FromInt((int)result);
10638 return resultobj;
10639 fail:
10640 return NULL;
10641 }
10642
10643
10644 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10645 PyObject *resultobj;
10646 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10647 int arg2 ;
10648 PyObject * obj0 = 0 ;
10649 PyObject * obj1 = 0 ;
10650 char *kwnames[] = {
10651 (char *) "self",(char *) "m_buttonChange", NULL
10652 };
10653
10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10657 arg2 = (int) SWIG_AsInt(obj1);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 if (arg1) (arg1)->m_buttonChange = arg2;
10660
10661 Py_INCREF(Py_None); resultobj = Py_None;
10662 return resultobj;
10663 fail:
10664 return NULL;
10665 }
10666
10667
10668 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj;
10670 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10671 int result;
10672 PyObject * obj0 = 0 ;
10673 char *kwnames[] = {
10674 (char *) "self", NULL
10675 };
10676
10677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10680 result = (int) ((arg1)->m_buttonChange);
10681
10682 resultobj = SWIG_FromInt((int)result);
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj;
10691 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10692 int arg2 ;
10693 PyObject * obj0 = 0 ;
10694 PyObject * obj1 = 0 ;
10695 char *kwnames[] = {
10696 (char *) "self",(char *) "m_buttonState", NULL
10697 };
10698
10699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10702 arg2 = (int) SWIG_AsInt(obj1);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 if (arg1) (arg1)->m_buttonState = arg2;
10705
10706 Py_INCREF(Py_None); resultobj = Py_None;
10707 return resultobj;
10708 fail:
10709 return NULL;
10710 }
10711
10712
10713 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10714 PyObject *resultobj;
10715 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10716 int result;
10717 PyObject * obj0 = 0 ;
10718 char *kwnames[] = {
10719 (char *) "self", NULL
10720 };
10721
10722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10725 result = (int) ((arg1)->m_buttonState);
10726
10727 resultobj = SWIG_FromInt((int)result);
10728 return resultobj;
10729 fail:
10730 return NULL;
10731 }
10732
10733
10734 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10735 PyObject *resultobj;
10736 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10737 int arg2 ;
10738 PyObject * obj0 = 0 ;
10739 PyObject * obj1 = 0 ;
10740 char *kwnames[] = {
10741 (char *) "self",(char *) "m_joyStick", NULL
10742 };
10743
10744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10747 arg2 = (int) SWIG_AsInt(obj1);
10748 if (PyErr_Occurred()) SWIG_fail;
10749 if (arg1) (arg1)->m_joyStick = arg2;
10750
10751 Py_INCREF(Py_None); resultobj = Py_None;
10752 return resultobj;
10753 fail:
10754 return NULL;
10755 }
10756
10757
10758 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj;
10760 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10761 int result;
10762 PyObject * obj0 = 0 ;
10763 char *kwnames[] = {
10764 (char *) "self", NULL
10765 };
10766
10767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10770 result = (int) ((arg1)->m_joyStick);
10771
10772 resultobj = SWIG_FromInt((int)result);
10773 return resultobj;
10774 fail:
10775 return NULL;
10776 }
10777
10778
10779 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10780 PyObject *resultobj;
10781 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10782 int arg2 = (int) 0 ;
10783 int arg3 = (int) wxJOYSTICK1 ;
10784 int arg4 = (int) 0 ;
10785 wxJoystickEvent *result;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 PyObject * obj2 = 0 ;
10789 PyObject * obj3 = 0 ;
10790 char *kwnames[] = {
10791 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10792 };
10793
10794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10795 if (obj0) {
10796 arg1 = (wxEventType) SWIG_AsInt(obj0);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
10799 if (obj1) {
10800 arg2 = (int) SWIG_AsInt(obj1);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 if (obj2) {
10804 arg3 = (int) SWIG_AsInt(obj2);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 if (obj3) {
10808 arg4 = (int) SWIG_AsInt(obj3);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 }
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10814
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 }
10818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10819 return resultobj;
10820 fail:
10821 return NULL;
10822 }
10823
10824
10825 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10826 PyObject *resultobj;
10827 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10828 wxPoint result;
10829 PyObject * obj0 = 0 ;
10830 char *kwnames[] = {
10831 (char *) "self", NULL
10832 };
10833
10834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10837 {
10838 PyThreadState* __tstate = wxPyBeginAllowThreads();
10839 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10840
10841 wxPyEndAllowThreads(__tstate);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 }
10844 {
10845 wxPoint * resultptr;
10846 resultptr = new wxPoint((wxPoint &) result);
10847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10848 }
10849 return resultobj;
10850 fail:
10851 return NULL;
10852 }
10853
10854
10855 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj;
10857 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10858 int result;
10859 PyObject * obj0 = 0 ;
10860 char *kwnames[] = {
10861 (char *) "self", NULL
10862 };
10863
10864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
10865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10870
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 resultobj = SWIG_FromInt((int)result);
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj;
10883 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10884 int result;
10885 PyObject * obj0 = 0 ;
10886 char *kwnames[] = {
10887 (char *) "self", NULL
10888 };
10889
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10893 {
10894 PyThreadState* __tstate = wxPyBeginAllowThreads();
10895 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10896
10897 wxPyEndAllowThreads(__tstate);
10898 if (PyErr_Occurred()) SWIG_fail;
10899 }
10900 resultobj = SWIG_FromInt((int)result);
10901 return resultobj;
10902 fail:
10903 return NULL;
10904 }
10905
10906
10907 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10908 PyObject *resultobj;
10909 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10910 int result;
10911 PyObject * obj0 = 0 ;
10912 char *kwnames[] = {
10913 (char *) "self", NULL
10914 };
10915
10916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10919 {
10920 PyThreadState* __tstate = wxPyBeginAllowThreads();
10921 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10922
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 resultobj = SWIG_FromInt((int)result);
10927 return resultobj;
10928 fail:
10929 return NULL;
10930 }
10931
10932
10933 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10934 PyObject *resultobj;
10935 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10936 int result;
10937 PyObject * obj0 = 0 ;
10938 char *kwnames[] = {
10939 (char *) "self", NULL
10940 };
10941
10942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
10943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
10948
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 resultobj = SWIG_FromInt((int)result);
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj;
10961 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10962 int arg2 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 char *kwnames[] = {
10966 (char *) "self",(char *) "stick", NULL
10967 };
10968
10969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
10970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10972 arg2 = (int) SWIG_AsInt(obj1);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 {
10975 PyThreadState* __tstate = wxPyBeginAllowThreads();
10976 (arg1)->SetJoystick(arg2);
10977
10978 wxPyEndAllowThreads(__tstate);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 Py_INCREF(Py_None); resultobj = Py_None;
10982 return resultobj;
10983 fail:
10984 return NULL;
10985 }
10986
10987
10988 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10989 PyObject *resultobj;
10990 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10991 int arg2 ;
10992 PyObject * obj0 = 0 ;
10993 PyObject * obj1 = 0 ;
10994 char *kwnames[] = {
10995 (char *) "self",(char *) "state", NULL
10996 };
10997
10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
10999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11001 arg2 = (int) SWIG_AsInt(obj1);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 (arg1)->SetButtonState(arg2);
11006
11007 wxPyEndAllowThreads(__tstate);
11008 if (PyErr_Occurred()) SWIG_fail;
11009 }
11010 Py_INCREF(Py_None); resultobj = Py_None;
11011 return resultobj;
11012 fail:
11013 return NULL;
11014 }
11015
11016
11017 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11018 PyObject *resultobj;
11019 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11020 int arg2 ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 char *kwnames[] = {
11024 (char *) "self",(char *) "change", NULL
11025 };
11026
11027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11030 arg2 = (int) SWIG_AsInt(obj1);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 (arg1)->SetButtonChange(arg2);
11035
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 Py_INCREF(Py_None); resultobj = Py_None;
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11047 PyObject *resultobj;
11048 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11049 wxPoint *arg2 = 0 ;
11050 wxPoint temp2 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 char *kwnames[] = {
11054 (char *) "self",(char *) "pos", NULL
11055 };
11056
11057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11060 {
11061 arg2 = &temp2;
11062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11063 }
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 (arg1)->SetPosition((wxPoint const &)*arg2);
11067
11068 wxPyEndAllowThreads(__tstate);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 Py_INCREF(Py_None); resultobj = Py_None;
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11079 PyObject *resultobj;
11080 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11081 int arg2 ;
11082 PyObject * obj0 = 0 ;
11083 PyObject * obj1 = 0 ;
11084 char *kwnames[] = {
11085 (char *) "self",(char *) "zPos", NULL
11086 };
11087
11088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11091 arg2 = (int) SWIG_AsInt(obj1);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 {
11094 PyThreadState* __tstate = wxPyBeginAllowThreads();
11095 (arg1)->SetZPosition(arg2);
11096
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 Py_INCREF(Py_None); resultobj = Py_None;
11101 return resultobj;
11102 fail:
11103 return NULL;
11104 }
11105
11106
11107 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11108 PyObject *resultobj;
11109 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11110 bool result;
11111 PyObject * obj0 = 0 ;
11112 char *kwnames[] = {
11113 (char *) "self", NULL
11114 };
11115
11116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11119 {
11120 PyThreadState* __tstate = wxPyBeginAllowThreads();
11121 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11122
11123 wxPyEndAllowThreads(__tstate);
11124 if (PyErr_Occurred()) SWIG_fail;
11125 }
11126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11127 return resultobj;
11128 fail:
11129 return NULL;
11130 }
11131
11132
11133 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11134 PyObject *resultobj;
11135 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11136 bool result;
11137 PyObject * obj0 = 0 ;
11138 char *kwnames[] = {
11139 (char *) "self", NULL
11140 };
11141
11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11148
11149 wxPyEndAllowThreads(__tstate);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11153 return resultobj;
11154 fail:
11155 return NULL;
11156 }
11157
11158
11159 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11160 PyObject *resultobj;
11161 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11162 bool result;
11163 PyObject * obj0 = 0 ;
11164 char *kwnames[] = {
11165 (char *) "self", NULL
11166 };
11167
11168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11174
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11179 return resultobj;
11180 fail:
11181 return NULL;
11182 }
11183
11184
11185 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11186 PyObject *resultobj;
11187 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11188 int arg2 = (int) wxJOY_BUTTON_ANY ;
11189 bool result;
11190 PyObject * obj0 = 0 ;
11191 PyObject * obj1 = 0 ;
11192 char *kwnames[] = {
11193 (char *) "self",(char *) "but", NULL
11194 };
11195
11196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11199 if (obj1) {
11200 arg2 = (int) SWIG_AsInt(obj1);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 }
11203 {
11204 PyThreadState* __tstate = wxPyBeginAllowThreads();
11205 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11206
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11211 return resultobj;
11212 fail:
11213 return NULL;
11214 }
11215
11216
11217 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11218 PyObject *resultobj;
11219 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11220 int arg2 = (int) wxJOY_BUTTON_ANY ;
11221 bool result;
11222 PyObject * obj0 = 0 ;
11223 PyObject * obj1 = 0 ;
11224 char *kwnames[] = {
11225 (char *) "self",(char *) "but", NULL
11226 };
11227
11228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11231 if (obj1) {
11232 arg2 = (int) SWIG_AsInt(obj1);
11233 if (PyErr_Occurred()) SWIG_fail;
11234 }
11235 {
11236 PyThreadState* __tstate = wxPyBeginAllowThreads();
11237 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11238
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11243 return resultobj;
11244 fail:
11245 return NULL;
11246 }
11247
11248
11249 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11250 PyObject *resultobj;
11251 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11252 int arg2 = (int) wxJOY_BUTTON_ANY ;
11253 bool result;
11254 PyObject * obj0 = 0 ;
11255 PyObject * obj1 = 0 ;
11256 char *kwnames[] = {
11257 (char *) "self",(char *) "but", NULL
11258 };
11259
11260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11263 if (obj1) {
11264 arg2 = (int) SWIG_AsInt(obj1);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 {
11268 PyThreadState* __tstate = wxPyBeginAllowThreads();
11269 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11270
11271 wxPyEndAllowThreads(__tstate);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 }
11274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11275 return resultobj;
11276 fail:
11277 return NULL;
11278 }
11279
11280
11281 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11282 PyObject *obj;
11283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11284 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11285 Py_INCREF(obj);
11286 return Py_BuildValue((char *)"");
11287 }
11288 static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) {
11289 PyObject *resultobj;
11290 wxSound *result;
11291
11292 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 result = (wxSound *)new wxSound();
11296
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11301 return resultobj;
11302 fail:
11303 return NULL;
11304 }
11305
11306
11307 static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) {
11308 PyObject *resultobj;
11309 wxString *arg1 = 0 ;
11310 bool arg2 = (bool) false ;
11311 wxSound *result;
11312 bool temp1 = False ;
11313 PyObject * obj0 = 0 ;
11314 PyObject * obj1 = 0 ;
11315
11316 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
11317 {
11318 arg1 = wxString_in_helper(obj0);
11319 if (arg1 == NULL) SWIG_fail;
11320 temp1 = True;
11321 }
11322 if (obj1) {
11323 arg2 = (bool) SWIG_AsBool(obj1);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 {
11327 PyThreadState* __tstate = wxPyBeginAllowThreads();
11328 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
11329
11330 wxPyEndAllowThreads(__tstate);
11331 if (PyErr_Occurred()) SWIG_fail;
11332 }
11333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11334 {
11335 if (temp1)
11336 delete arg1;
11337 }
11338 return resultobj;
11339 fail:
11340 {
11341 if (temp1)
11342 delete arg1;
11343 }
11344 return NULL;
11345 }
11346
11347
11348 static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) {
11349 PyObject *resultobj;
11350 int arg1 ;
11351 wxByte *arg2 = (wxByte *) 0 ;
11352 wxSound *result;
11353 PyObject * obj0 = 0 ;
11354 PyObject * obj1 = 0 ;
11355
11356 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
11357 arg1 = (int) SWIG_AsInt(obj0);
11358 if (PyErr_Occurred()) SWIG_fail;
11359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte,
11360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
11364
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11376 int argc;
11377 PyObject *argv[3];
11378 int ii;
11379
11380 argc = PyObject_Length(args);
11381 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11382 argv[ii] = PyTuple_GetItem(args,ii);
11383 }
11384 if (argc == 0) {
11385 return _wrap_new_Sound__SWIG_0(self,args);
11386 }
11387 if ((argc >= 1) && (argc <= 2)) {
11388 int _v;
11389 {
11390 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11391 }
11392 if (_v) {
11393 if (argc <= 1) {
11394 return _wrap_new_Sound__SWIG_1(self,args);
11395 }
11396 _v = SWIG_CheckBool(argv[1]);
11397 if (_v) {
11398 return _wrap_new_Sound__SWIG_1(self,args);
11399 }
11400 }
11401 }
11402 if (argc == 2) {
11403 int _v;
11404 _v = SWIG_CheckInt(argv[0]);
11405 if (_v) {
11406 {
11407 void *ptr;
11408 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11409 _v = 0;
11410 PyErr_Clear();
11411 } else {
11412 _v = 1;
11413 }
11414 }
11415 if (_v) {
11416 return _wrap_new_Sound__SWIG_2(self,args);
11417 }
11418 }
11419 }
11420
11421 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
11422 return NULL;
11423 }
11424
11425
11426 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11427 PyObject *resultobj;
11428 wxSound *arg1 = (wxSound *) 0 ;
11429 PyObject * obj0 = 0 ;
11430 char *kwnames[] = {
11431 (char *) "self", NULL
11432 };
11433
11434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 delete arg1;
11440
11441 wxPyEndAllowThreads(__tstate);
11442 if (PyErr_Occurred()) SWIG_fail;
11443 }
11444 Py_INCREF(Py_None); resultobj = Py_None;
11445 return resultobj;
11446 fail:
11447 return NULL;
11448 }
11449
11450
11451 static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) {
11452 PyObject *resultobj;
11453 wxSound *arg1 = (wxSound *) 0 ;
11454 wxString *arg2 = 0 ;
11455 bool arg3 = (bool) false ;
11456 bool result;
11457 bool temp2 = False ;
11458 PyObject * obj0 = 0 ;
11459 PyObject * obj1 = 0 ;
11460 PyObject * obj2 = 0 ;
11461
11462 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11465 {
11466 arg2 = wxString_in_helper(obj1);
11467 if (arg2 == NULL) SWIG_fail;
11468 temp2 = True;
11469 }
11470 if (obj2) {
11471 arg3 = (bool) SWIG_AsBool(obj2);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
11477
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11482 {
11483 if (temp2)
11484 delete arg2;
11485 }
11486 return resultobj;
11487 fail:
11488 {
11489 if (temp2)
11490 delete arg2;
11491 }
11492 return NULL;
11493 }
11494
11495
11496 static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) {
11497 PyObject *resultobj;
11498 wxSound *arg1 = (wxSound *) 0 ;
11499 int arg2 ;
11500 wxByte *arg3 = (wxByte *) 0 ;
11501 bool result;
11502 PyObject * obj0 = 0 ;
11503 PyObject * obj1 = 0 ;
11504 PyObject * obj2 = 0 ;
11505
11506 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11509 arg2 = (int) SWIG_AsInt(obj1);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte,
11512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11513 {
11514 PyThreadState* __tstate = wxPyBeginAllowThreads();
11515 result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3);
11516
11517 wxPyEndAllowThreads(__tstate);
11518 if (PyErr_Occurred()) SWIG_fail;
11519 }
11520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11521 return resultobj;
11522 fail:
11523 return NULL;
11524 }
11525
11526
11527 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11528 int argc;
11529 PyObject *argv[4];
11530 int ii;
11531
11532 argc = PyObject_Length(args);
11533 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11534 argv[ii] = PyTuple_GetItem(args,ii);
11535 }
11536 if ((argc >= 2) && (argc <= 3)) {
11537 int _v;
11538 {
11539 void *ptr;
11540 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11541 _v = 0;
11542 PyErr_Clear();
11543 } else {
11544 _v = 1;
11545 }
11546 }
11547 if (_v) {
11548 {
11549 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11550 }
11551 if (_v) {
11552 if (argc <= 2) {
11553 return _wrap_Sound_Create__SWIG_0(self,args);
11554 }
11555 _v = SWIG_CheckBool(argv[2]);
11556 if (_v) {
11557 return _wrap_Sound_Create__SWIG_0(self,args);
11558 }
11559 }
11560 }
11561 }
11562 if (argc == 3) {
11563 int _v;
11564 {
11565 void *ptr;
11566 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11567 _v = 0;
11568 PyErr_Clear();
11569 } else {
11570 _v = 1;
11571 }
11572 }
11573 if (_v) {
11574 _v = SWIG_CheckInt(argv[1]);
11575 if (_v) {
11576 {
11577 void *ptr;
11578 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11579 _v = 0;
11580 PyErr_Clear();
11581 } else {
11582 _v = 1;
11583 }
11584 }
11585 if (_v) {
11586 return _wrap_Sound_Create__SWIG_1(self,args);
11587 }
11588 }
11589 }
11590 }
11591
11592 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11593 return NULL;
11594 }
11595
11596
11597 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11598 PyObject *resultobj;
11599 wxSound *arg1 = (wxSound *) 0 ;
11600 bool result;
11601 PyObject * obj0 = 0 ;
11602 char *kwnames[] = {
11603 (char *) "self", NULL
11604 };
11605
11606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11609 {
11610 PyThreadState* __tstate = wxPyBeginAllowThreads();
11611 result = (bool)(arg1)->IsOk();
11612
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11617 return resultobj;
11618 fail:
11619 return NULL;
11620 }
11621
11622
11623 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) {
11624 PyObject *resultobj;
11625 wxSound *arg1 = (wxSound *) 0 ;
11626 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11627 bool result;
11628 PyObject * obj0 = 0 ;
11629 PyObject * obj1 = 0 ;
11630
11631 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
11632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11634 if (obj1) {
11635 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
11640 result = (bool)((wxSound const *)arg1)->Play(arg2);
11641
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11646 return resultobj;
11647 fail:
11648 return NULL;
11649 }
11650
11651
11652 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) {
11653 PyObject *resultobj;
11654 wxString *arg1 = 0 ;
11655 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11656 bool result;
11657 bool temp1 = False ;
11658 PyObject * obj0 = 0 ;
11659 PyObject * obj1 = 0 ;
11660
11661 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11662 {
11663 arg1 = wxString_in_helper(obj0);
11664 if (arg1 == NULL) SWIG_fail;
11665 temp1 = True;
11666 }
11667 if (obj1) {
11668 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11669 if (PyErr_Occurred()) SWIG_fail;
11670 }
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11674
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11679 {
11680 if (temp1)
11681 delete arg1;
11682 }
11683 return resultobj;
11684 fail:
11685 {
11686 if (temp1)
11687 delete arg1;
11688 }
11689 return NULL;
11690 }
11691
11692
11693 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj;
11695 char *kwnames[] = {
11696 NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 wxSound::Stop();
11703
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 Py_INCREF(Py_None); resultobj = Py_None;
11708 return resultobj;
11709 fail:
11710 return NULL;
11711 }
11712
11713
11714 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11715 PyObject *obj;
11716 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11717 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11718 Py_INCREF(obj);
11719 return Py_BuildValue((char *)"");
11720 }
11721 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj;
11723 wxString *arg1 = 0 ;
11724 wxString *arg2 = 0 ;
11725 wxString *arg3 = 0 ;
11726 wxString *arg4 = 0 ;
11727 wxFileTypeInfo *result;
11728 bool temp1 = False ;
11729 bool temp2 = False ;
11730 bool temp3 = False ;
11731 bool temp4 = False ;
11732 PyObject * obj0 = 0 ;
11733 PyObject * obj1 = 0 ;
11734 PyObject * obj2 = 0 ;
11735 PyObject * obj3 = 0 ;
11736 char *kwnames[] = {
11737 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11738 };
11739
11740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11741 {
11742 arg1 = wxString_in_helper(obj0);
11743 if (arg1 == NULL) SWIG_fail;
11744 temp1 = True;
11745 }
11746 {
11747 arg2 = wxString_in_helper(obj1);
11748 if (arg2 == NULL) SWIG_fail;
11749 temp2 = True;
11750 }
11751 {
11752 arg3 = wxString_in_helper(obj2);
11753 if (arg3 == NULL) SWIG_fail;
11754 temp3 = True;
11755 }
11756 {
11757 arg4 = wxString_in_helper(obj3);
11758 if (arg4 == NULL) SWIG_fail;
11759 temp4 = True;
11760 }
11761 {
11762 PyThreadState* __tstate = wxPyBeginAllowThreads();
11763 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11764
11765 wxPyEndAllowThreads(__tstate);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 }
11768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11769 {
11770 if (temp1)
11771 delete arg1;
11772 }
11773 {
11774 if (temp2)
11775 delete arg2;
11776 }
11777 {
11778 if (temp3)
11779 delete arg3;
11780 }
11781 {
11782 if (temp4)
11783 delete arg4;
11784 }
11785 return resultobj;
11786 fail:
11787 {
11788 if (temp1)
11789 delete arg1;
11790 }
11791 {
11792 if (temp2)
11793 delete arg2;
11794 }
11795 {
11796 if (temp3)
11797 delete arg3;
11798 }
11799 {
11800 if (temp4)
11801 delete arg4;
11802 }
11803 return NULL;
11804 }
11805
11806
11807 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11808 PyObject *resultobj;
11809 wxArrayString *arg1 = 0 ;
11810 wxFileTypeInfo *result;
11811 bool temp1 = False ;
11812 PyObject * obj0 = 0 ;
11813 char *kwnames[] = {
11814 (char *) "sArray", NULL
11815 };
11816
11817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11818 {
11819 if (! PySequence_Check(obj0)) {
11820 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11821 SWIG_fail;
11822 }
11823 arg1 = new wxArrayString;
11824 temp1 = True;
11825 int i, len=PySequence_Length(obj0);
11826 for (i=0; i<len; i++) {
11827 PyObject* item = PySequence_GetItem(obj0, i);
11828 #if wxUSE_UNICODE
11829 PyObject* str = PyObject_Unicode(item);
11830 #else
11831 PyObject* str = PyObject_Str(item);
11832 #endif
11833 arg1->Add(Py2wxString(str));
11834 Py_DECREF(item);
11835 Py_DECREF(str);
11836 }
11837 }
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11841
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11846 {
11847 if (temp1) delete arg1;
11848 }
11849 return resultobj;
11850 fail:
11851 {
11852 if (temp1) delete arg1;
11853 }
11854 return NULL;
11855 }
11856
11857
11858 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11859 PyObject *resultobj;
11860 wxFileTypeInfo *result;
11861 char *kwnames[] = {
11862 NULL
11863 };
11864
11865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11869
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
11873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11874 return resultobj;
11875 fail:
11876 return NULL;
11877 }
11878
11879
11880 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11881 PyObject *resultobj;
11882 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11883 bool result;
11884 PyObject * obj0 = 0 ;
11885 char *kwnames[] = {
11886 (char *) "self", NULL
11887 };
11888
11889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11895
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11900 return resultobj;
11901 fail:
11902 return NULL;
11903 }
11904
11905
11906 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj;
11908 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11909 wxString *arg2 = 0 ;
11910 int arg3 = (int) 0 ;
11911 bool temp2 = False ;
11912 PyObject * obj0 = 0 ;
11913 PyObject * obj1 = 0 ;
11914 PyObject * obj2 = 0 ;
11915 char *kwnames[] = {
11916 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
11917 };
11918
11919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11922 {
11923 arg2 = wxString_in_helper(obj1);
11924 if (arg2 == NULL) SWIG_fail;
11925 temp2 = True;
11926 }
11927 if (obj2) {
11928 arg3 = (int) SWIG_AsInt(obj2);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 (arg1)->SetIcon((wxString const &)*arg2,arg3);
11934
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 Py_INCREF(Py_None); resultobj = Py_None;
11939 {
11940 if (temp2)
11941 delete arg2;
11942 }
11943 return resultobj;
11944 fail:
11945 {
11946 if (temp2)
11947 delete arg2;
11948 }
11949 return NULL;
11950 }
11951
11952
11953 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
11954 PyObject *resultobj;
11955 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11956 wxString *arg2 = 0 ;
11957 bool temp2 = False ;
11958 PyObject * obj0 = 0 ;
11959 PyObject * obj1 = 0 ;
11960 char *kwnames[] = {
11961 (char *) "self",(char *) "shortDesc", NULL
11962 };
11963
11964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
11965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11967 {
11968 arg2 = wxString_in_helper(obj1);
11969 if (arg2 == NULL) SWIG_fail;
11970 temp2 = True;
11971 }
11972 {
11973 PyThreadState* __tstate = wxPyBeginAllowThreads();
11974 (arg1)->SetShortDesc((wxString const &)*arg2);
11975
11976 wxPyEndAllowThreads(__tstate);
11977 if (PyErr_Occurred()) SWIG_fail;
11978 }
11979 Py_INCREF(Py_None); resultobj = Py_None;
11980 {
11981 if (temp2)
11982 delete arg2;
11983 }
11984 return resultobj;
11985 fail:
11986 {
11987 if (temp2)
11988 delete arg2;
11989 }
11990 return NULL;
11991 }
11992
11993
11994 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11995 PyObject *resultobj;
11996 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11997 wxString *result;
11998 PyObject * obj0 = 0 ;
11999 char *kwnames[] = {
12000 (char *) "self", NULL
12001 };
12002
12003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12006 {
12007 PyThreadState* __tstate = wxPyBeginAllowThreads();
12008 {
12009 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12010 result = (wxString *) &_result_ref;
12011 }
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 {
12017 #if wxUSE_UNICODE
12018 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12019 #else
12020 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12021 #endif
12022 }
12023 return resultobj;
12024 fail:
12025 return NULL;
12026 }
12027
12028
12029 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12030 PyObject *resultobj;
12031 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12032 wxString *result;
12033 PyObject * obj0 = 0 ;
12034 char *kwnames[] = {
12035 (char *) "self", NULL
12036 };
12037
12038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 {
12044 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12045 result = (wxString *) &_result_ref;
12046 }
12047
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 {
12052 #if wxUSE_UNICODE
12053 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12054 #else
12055 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12056 #endif
12057 }
12058 return resultobj;
12059 fail:
12060 return NULL;
12061 }
12062
12063
12064 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12065 PyObject *resultobj;
12066 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12067 wxString *result;
12068 PyObject * obj0 = 0 ;
12069 char *kwnames[] = {
12070 (char *) "self", NULL
12071 };
12072
12073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 {
12079 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12080 result = (wxString *) &_result_ref;
12081 }
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 {
12087 #if wxUSE_UNICODE
12088 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12089 #else
12090 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12091 #endif
12092 }
12093 return resultobj;
12094 fail:
12095 return NULL;
12096 }
12097
12098
12099 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12100 PyObject *resultobj;
12101 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12102 wxString *result;
12103 PyObject * obj0 = 0 ;
12104 char *kwnames[] = {
12105 (char *) "self", NULL
12106 };
12107
12108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12111 {
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 {
12114 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12115 result = (wxString *) &_result_ref;
12116 }
12117
12118 wxPyEndAllowThreads(__tstate);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 {
12122 #if wxUSE_UNICODE
12123 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12124 #else
12125 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12126 #endif
12127 }
12128 return resultobj;
12129 fail:
12130 return NULL;
12131 }
12132
12133
12134 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj;
12136 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12137 wxString *result;
12138 PyObject * obj0 = 0 ;
12139 char *kwnames[] = {
12140 (char *) "self", NULL
12141 };
12142
12143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 {
12149 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12150 result = (wxString *) &_result_ref;
12151 }
12152
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 {
12157 #if wxUSE_UNICODE
12158 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12159 #else
12160 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12161 #endif
12162 }
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12170 PyObject *resultobj;
12171 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12172 wxArrayString *result;
12173 PyObject * obj0 = 0 ;
12174 char *kwnames[] = {
12175 (char *) "self", NULL
12176 };
12177
12178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 {
12184 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12185 result = (wxArrayString *) &_result_ref;
12186 }
12187
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 {
12192 resultobj = wxArrayString2PyList_helper(*result);
12193 }
12194 return resultobj;
12195 fail:
12196 return NULL;
12197 }
12198
12199
12200 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj;
12202 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12203 int result;
12204 PyObject * obj0 = 0 ;
12205 char *kwnames[] = {
12206 (char *) "self", NULL
12207 };
12208
12209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12215
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_FromInt((int)result);
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12227 PyObject *resultobj;
12228 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12229 wxString *result;
12230 PyObject * obj0 = 0 ;
12231 char *kwnames[] = {
12232 (char *) "self", NULL
12233 };
12234
12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 {
12241 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12242 result = (wxString *) &_result_ref;
12243 }
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 {
12249 #if wxUSE_UNICODE
12250 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12251 #else
12252 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12253 #endif
12254 }
12255 return resultobj;
12256 fail:
12257 return NULL;
12258 }
12259
12260
12261 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12262 PyObject *resultobj;
12263 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12264 int result;
12265 PyObject * obj0 = 0 ;
12266 char *kwnames[] = {
12267 (char *) "self", NULL
12268 };
12269
12270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12276
12277 wxPyEndAllowThreads(__tstate);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 }
12280 resultobj = SWIG_FromInt((int)result);
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12288 PyObject *obj;
12289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12290 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12291 Py_INCREF(obj);
12292 return Py_BuildValue((char *)"");
12293 }
12294 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12295 PyObject *resultobj;
12296 wxFileTypeInfo *arg1 = 0 ;
12297 wxFileType *result;
12298 PyObject * obj0 = 0 ;
12299 char *kwnames[] = {
12300 (char *) "ftInfo", NULL
12301 };
12302
12303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12305 SWIG_POINTER_EXCEPTION | 0)) == -1)
12306 SWIG_fail;
12307 if (arg1 == NULL) {
12308 PyErr_SetString(PyExc_TypeError,"null reference");
12309 SWIG_fail;
12310 }
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12319 return resultobj;
12320 fail:
12321 return NULL;
12322 }
12323
12324
12325 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12326 PyObject *resultobj;
12327 wxFileType *arg1 = (wxFileType *) 0 ;
12328 PyObject * obj0 = 0 ;
12329 char *kwnames[] = {
12330 (char *) "self", NULL
12331 };
12332
12333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 delete arg1;
12339
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 Py_INCREF(Py_None); resultobj = Py_None;
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12351 PyObject *resultobj;
12352 wxFileType *arg1 = (wxFileType *) 0 ;
12353 PyObject *result;
12354 PyObject * obj0 = 0 ;
12355 char *kwnames[] = {
12356 (char *) "self", NULL
12357 };
12358
12359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12362 {
12363 PyThreadState* __tstate = wxPyBeginAllowThreads();
12364 result = (PyObject *)wxFileType_GetMimeType(arg1);
12365
12366 wxPyEndAllowThreads(__tstate);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 resultobj = result;
12370 return resultobj;
12371 fail:
12372 return NULL;
12373 }
12374
12375
12376 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12377 PyObject *resultobj;
12378 wxFileType *arg1 = (wxFileType *) 0 ;
12379 PyObject *result;
12380 PyObject * obj0 = 0 ;
12381 char *kwnames[] = {
12382 (char *) "self", NULL
12383 };
12384
12385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12388 {
12389 PyThreadState* __tstate = wxPyBeginAllowThreads();
12390 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12391
12392 wxPyEndAllowThreads(__tstate);
12393 if (PyErr_Occurred()) SWIG_fail;
12394 }
12395 resultobj = result;
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12403 PyObject *resultobj;
12404 wxFileType *arg1 = (wxFileType *) 0 ;
12405 PyObject *result;
12406 PyObject * obj0 = 0 ;
12407 char *kwnames[] = {
12408 (char *) "self", NULL
12409 };
12410
12411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 result = (PyObject *)wxFileType_GetExtensions(arg1);
12417
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 resultobj = result;
12422 return resultobj;
12423 fail:
12424 return NULL;
12425 }
12426
12427
12428 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12429 PyObject *resultobj;
12430 wxFileType *arg1 = (wxFileType *) 0 ;
12431 wxIcon *result;
12432 PyObject * obj0 = 0 ;
12433 char *kwnames[] = {
12434 (char *) "self", NULL
12435 };
12436
12437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 result = (wxIcon *)wxFileType_GetIcon(arg1);
12443
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12448 return resultobj;
12449 fail:
12450 return NULL;
12451 }
12452
12453
12454 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj;
12456 wxFileType *arg1 = (wxFileType *) 0 ;
12457 PyObject *result;
12458 PyObject * obj0 = 0 ;
12459 char *kwnames[] = {
12460 (char *) "self", NULL
12461 };
12462
12463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12466 {
12467 PyThreadState* __tstate = wxPyBeginAllowThreads();
12468 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12469
12470 wxPyEndAllowThreads(__tstate);
12471 if (PyErr_Occurred()) SWIG_fail;
12472 }
12473 resultobj = result;
12474 return resultobj;
12475 fail:
12476 return NULL;
12477 }
12478
12479
12480 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12481 PyObject *resultobj;
12482 wxFileType *arg1 = (wxFileType *) 0 ;
12483 PyObject *result;
12484 PyObject * obj0 = 0 ;
12485 char *kwnames[] = {
12486 (char *) "self", NULL
12487 };
12488
12489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 result = (PyObject *)wxFileType_GetDescription(arg1);
12495
12496 wxPyEndAllowThreads(__tstate);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 }
12499 resultobj = result;
12500 return resultobj;
12501 fail:
12502 return NULL;
12503 }
12504
12505
12506 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12507 PyObject *resultobj;
12508 wxFileType *arg1 = (wxFileType *) 0 ;
12509 wxString *arg2 = 0 ;
12510 wxString const &arg3_defvalue = wxPyEmptyString ;
12511 wxString *arg3 = (wxString *) &arg3_defvalue ;
12512 PyObject *result;
12513 bool temp2 = False ;
12514 bool temp3 = False ;
12515 PyObject * obj0 = 0 ;
12516 PyObject * obj1 = 0 ;
12517 PyObject * obj2 = 0 ;
12518 char *kwnames[] = {
12519 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12520 };
12521
12522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12525 {
12526 arg2 = wxString_in_helper(obj1);
12527 if (arg2 == NULL) SWIG_fail;
12528 temp2 = True;
12529 }
12530 if (obj2) {
12531 {
12532 arg3 = wxString_in_helper(obj2);
12533 if (arg3 == NULL) SWIG_fail;
12534 temp3 = True;
12535 }
12536 }
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 resultobj = result;
12545 {
12546 if (temp2)
12547 delete arg2;
12548 }
12549 {
12550 if (temp3)
12551 delete arg3;
12552 }
12553 return resultobj;
12554 fail:
12555 {
12556 if (temp2)
12557 delete arg2;
12558 }
12559 {
12560 if (temp3)
12561 delete arg3;
12562 }
12563 return NULL;
12564 }
12565
12566
12567 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj;
12569 wxFileType *arg1 = (wxFileType *) 0 ;
12570 wxString *arg2 = 0 ;
12571 wxString const &arg3_defvalue = wxPyEmptyString ;
12572 wxString *arg3 = (wxString *) &arg3_defvalue ;
12573 PyObject *result;
12574 bool temp2 = False ;
12575 bool temp3 = False ;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
12578 PyObject * obj2 = 0 ;
12579 char *kwnames[] = {
12580 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12581 };
12582
12583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12586 {
12587 arg2 = wxString_in_helper(obj1);
12588 if (arg2 == NULL) SWIG_fail;
12589 temp2 = True;
12590 }
12591 if (obj2) {
12592 {
12593 arg3 = wxString_in_helper(obj2);
12594 if (arg3 == NULL) SWIG_fail;
12595 temp3 = True;
12596 }
12597 }
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 resultobj = result;
12606 {
12607 if (temp2)
12608 delete arg2;
12609 }
12610 {
12611 if (temp3)
12612 delete arg3;
12613 }
12614 return resultobj;
12615 fail:
12616 {
12617 if (temp2)
12618 delete arg2;
12619 }
12620 {
12621 if (temp3)
12622 delete arg3;
12623 }
12624 return NULL;
12625 }
12626
12627
12628 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12629 PyObject *resultobj;
12630 wxFileType *arg1 = (wxFileType *) 0 ;
12631 wxString *arg2 = 0 ;
12632 wxString const &arg3_defvalue = wxPyEmptyString ;
12633 wxString *arg3 = (wxString *) &arg3_defvalue ;
12634 PyObject *result;
12635 bool temp2 = False ;
12636 bool temp3 = False ;
12637 PyObject * obj0 = 0 ;
12638 PyObject * obj1 = 0 ;
12639 PyObject * obj2 = 0 ;
12640 char *kwnames[] = {
12641 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12642 };
12643
12644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12647 {
12648 arg2 = wxString_in_helper(obj1);
12649 if (arg2 == NULL) SWIG_fail;
12650 temp2 = True;
12651 }
12652 if (obj2) {
12653 {
12654 arg3 = wxString_in_helper(obj2);
12655 if (arg3 == NULL) SWIG_fail;
12656 temp3 = True;
12657 }
12658 }
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12662
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 resultobj = result;
12667 {
12668 if (temp2)
12669 delete arg2;
12670 }
12671 {
12672 if (temp3)
12673 delete arg3;
12674 }
12675 return resultobj;
12676 fail:
12677 {
12678 if (temp2)
12679 delete arg2;
12680 }
12681 {
12682 if (temp3)
12683 delete arg3;
12684 }
12685 return NULL;
12686 }
12687
12688
12689 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12690 PyObject *resultobj;
12691 wxFileType *arg1 = (wxFileType *) 0 ;
12692 wxString *arg2 = 0 ;
12693 wxString *arg3 = 0 ;
12694 bool arg4 = (bool) True ;
12695 bool result;
12696 bool temp2 = False ;
12697 bool temp3 = False ;
12698 PyObject * obj0 = 0 ;
12699 PyObject * obj1 = 0 ;
12700 PyObject * obj2 = 0 ;
12701 PyObject * obj3 = 0 ;
12702 char *kwnames[] = {
12703 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12704 };
12705
12706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12709 {
12710 arg2 = wxString_in_helper(obj1);
12711 if (arg2 == NULL) SWIG_fail;
12712 temp2 = True;
12713 }
12714 {
12715 arg3 = wxString_in_helper(obj2);
12716 if (arg3 == NULL) SWIG_fail;
12717 temp3 = True;
12718 }
12719 if (obj3) {
12720 arg4 = (bool) SWIG_AsBool(obj3);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 {
12724 PyThreadState* __tstate = wxPyBeginAllowThreads();
12725 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12726
12727 wxPyEndAllowThreads(__tstate);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 }
12730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12731 {
12732 if (temp2)
12733 delete arg2;
12734 }
12735 {
12736 if (temp3)
12737 delete arg3;
12738 }
12739 return resultobj;
12740 fail:
12741 {
12742 if (temp2)
12743 delete arg2;
12744 }
12745 {
12746 if (temp3)
12747 delete arg3;
12748 }
12749 return NULL;
12750 }
12751
12752
12753 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj;
12755 wxFileType *arg1 = (wxFileType *) 0 ;
12756 wxString const &arg2_defvalue = wxPyEmptyString ;
12757 wxString *arg2 = (wxString *) &arg2_defvalue ;
12758 int arg3 = (int) 0 ;
12759 bool result;
12760 bool temp2 = False ;
12761 PyObject * obj0 = 0 ;
12762 PyObject * obj1 = 0 ;
12763 PyObject * obj2 = 0 ;
12764 char *kwnames[] = {
12765 (char *) "self",(char *) "cmd",(char *) "index", NULL
12766 };
12767
12768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12771 if (obj1) {
12772 {
12773 arg2 = wxString_in_helper(obj1);
12774 if (arg2 == NULL) SWIG_fail;
12775 temp2 = True;
12776 }
12777 }
12778 if (obj2) {
12779 arg3 = (int) SWIG_AsInt(obj2);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12785
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12790 {
12791 if (temp2)
12792 delete arg2;
12793 }
12794 return resultobj;
12795 fail:
12796 {
12797 if (temp2)
12798 delete arg2;
12799 }
12800 return NULL;
12801 }
12802
12803
12804 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj;
12806 wxFileType *arg1 = (wxFileType *) 0 ;
12807 bool result;
12808 PyObject * obj0 = 0 ;
12809 char *kwnames[] = {
12810 (char *) "self", NULL
12811 };
12812
12813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12816 {
12817 PyThreadState* __tstate = wxPyBeginAllowThreads();
12818 result = (bool)(arg1)->Unassociate();
12819
12820 wxPyEndAllowThreads(__tstate);
12821 if (PyErr_Occurred()) SWIG_fail;
12822 }
12823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12824 return resultobj;
12825 fail:
12826 return NULL;
12827 }
12828
12829
12830 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12831 PyObject *resultobj;
12832 wxString *arg1 = 0 ;
12833 wxString *arg2 = 0 ;
12834 wxString const &arg3_defvalue = wxPyEmptyString ;
12835 wxString *arg3 = (wxString *) &arg3_defvalue ;
12836 wxString result;
12837 bool temp1 = False ;
12838 bool temp2 = False ;
12839 bool temp3 = False ;
12840 PyObject * obj0 = 0 ;
12841 PyObject * obj1 = 0 ;
12842 PyObject * obj2 = 0 ;
12843 char *kwnames[] = {
12844 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12845 };
12846
12847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12848 {
12849 arg1 = wxString_in_helper(obj0);
12850 if (arg1 == NULL) SWIG_fail;
12851 temp1 = True;
12852 }
12853 {
12854 arg2 = wxString_in_helper(obj1);
12855 if (arg2 == NULL) SWIG_fail;
12856 temp2 = True;
12857 }
12858 if (obj2) {
12859 {
12860 arg3 = wxString_in_helper(obj2);
12861 if (arg3 == NULL) SWIG_fail;
12862 temp3 = True;
12863 }
12864 }
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12868
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 {
12873 #if wxUSE_UNICODE
12874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12875 #else
12876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12877 #endif
12878 }
12879 {
12880 if (temp1)
12881 delete arg1;
12882 }
12883 {
12884 if (temp2)
12885 delete arg2;
12886 }
12887 {
12888 if (temp3)
12889 delete arg3;
12890 }
12891 return resultobj;
12892 fail:
12893 {
12894 if (temp1)
12895 delete arg1;
12896 }
12897 {
12898 if (temp2)
12899 delete arg2;
12900 }
12901 {
12902 if (temp3)
12903 delete arg3;
12904 }
12905 return NULL;
12906 }
12907
12908
12909 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
12910 PyObject *obj;
12911 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12912 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
12913 Py_INCREF(obj);
12914 return Py_BuildValue((char *)"");
12915 }
12916 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
12917 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
12918 return 1;
12919 }
12920
12921
12922 static PyObject *_wrap_TheMimeTypesManager_get() {
12923 PyObject *pyobj;
12924
12925 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
12926 return pyobj;
12927 }
12928
12929
12930 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
12931 PyObject *resultobj;
12932 wxString *arg1 = 0 ;
12933 wxString *arg2 = 0 ;
12934 bool result;
12935 bool temp1 = False ;
12936 bool temp2 = False ;
12937 PyObject * obj0 = 0 ;
12938 PyObject * obj1 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "mimeType",(char *) "wildcard", NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
12944 {
12945 arg1 = wxString_in_helper(obj0);
12946 if (arg1 == NULL) SWIG_fail;
12947 temp1 = True;
12948 }
12949 {
12950 arg2 = wxString_in_helper(obj1);
12951 if (arg2 == NULL) SWIG_fail;
12952 temp2 = True;
12953 }
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
12957
12958 wxPyEndAllowThreads(__tstate);
12959 if (PyErr_Occurred()) SWIG_fail;
12960 }
12961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12962 {
12963 if (temp1)
12964 delete arg1;
12965 }
12966 {
12967 if (temp2)
12968 delete arg2;
12969 }
12970 return resultobj;
12971 fail:
12972 {
12973 if (temp1)
12974 delete arg1;
12975 }
12976 {
12977 if (temp2)
12978 delete arg2;
12979 }
12980 return NULL;
12981 }
12982
12983
12984 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
12985 PyObject *resultobj;
12986 wxMimeTypesManager *result;
12987 char *kwnames[] = {
12988 NULL
12989 };
12990
12991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
12992 {
12993 PyThreadState* __tstate = wxPyBeginAllowThreads();
12994 result = (wxMimeTypesManager *)new wxMimeTypesManager();
12995
12996 wxPyEndAllowThreads(__tstate);
12997 if (PyErr_Occurred()) SWIG_fail;
12998 }
12999 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13000 return resultobj;
13001 fail:
13002 return NULL;
13003 }
13004
13005
13006 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13007 PyObject *resultobj;
13008 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13009 int arg2 = (int) wxMAILCAP_ALL ;
13010 wxString const &arg3_defvalue = wxPyEmptyString ;
13011 wxString *arg3 = (wxString *) &arg3_defvalue ;
13012 bool temp3 = False ;
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 PyObject * obj2 = 0 ;
13016 char *kwnames[] = {
13017 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13018 };
13019
13020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13023 if (obj1) {
13024 arg2 = (int) SWIG_AsInt(obj1);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 if (obj2) {
13028 {
13029 arg3 = wxString_in_helper(obj2);
13030 if (arg3 == NULL) SWIG_fail;
13031 temp3 = True;
13032 }
13033 }
13034 {
13035 PyThreadState* __tstate = wxPyBeginAllowThreads();
13036 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13037
13038 wxPyEndAllowThreads(__tstate);
13039 if (PyErr_Occurred()) SWIG_fail;
13040 }
13041 Py_INCREF(Py_None); resultobj = Py_None;
13042 {
13043 if (temp3)
13044 delete arg3;
13045 }
13046 return resultobj;
13047 fail:
13048 {
13049 if (temp3)
13050 delete arg3;
13051 }
13052 return NULL;
13053 }
13054
13055
13056 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13057 PyObject *resultobj;
13058 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13059 PyObject * obj0 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "self", NULL
13062 };
13063
13064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 (arg1)->ClearData();
13070
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 Py_INCREF(Py_None); resultobj = Py_None;
13075 return resultobj;
13076 fail:
13077 return NULL;
13078 }
13079
13080
13081 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13082 PyObject *resultobj;
13083 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13084 wxString *arg2 = 0 ;
13085 wxFileType *result;
13086 bool temp2 = False ;
13087 PyObject * obj0 = 0 ;
13088 PyObject * obj1 = 0 ;
13089 char *kwnames[] = {
13090 (char *) "self",(char *) "ext", NULL
13091 };
13092
13093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13096 {
13097 arg2 = wxString_in_helper(obj1);
13098 if (arg2 == NULL) SWIG_fail;
13099 temp2 = True;
13100 }
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13104
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13109 {
13110 if (temp2)
13111 delete arg2;
13112 }
13113 return resultobj;
13114 fail:
13115 {
13116 if (temp2)
13117 delete arg2;
13118 }
13119 return NULL;
13120 }
13121
13122
13123 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj;
13125 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13126 wxString *arg2 = 0 ;
13127 wxFileType *result;
13128 bool temp2 = False ;
13129 PyObject * obj0 = 0 ;
13130 PyObject * obj1 = 0 ;
13131 char *kwnames[] = {
13132 (char *) "self",(char *) "mimeType", NULL
13133 };
13134
13135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13138 {
13139 arg2 = wxString_in_helper(obj1);
13140 if (arg2 == NULL) SWIG_fail;
13141 temp2 = True;
13142 }
13143 {
13144 PyThreadState* __tstate = wxPyBeginAllowThreads();
13145 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13146
13147 wxPyEndAllowThreads(__tstate);
13148 if (PyErr_Occurred()) SWIG_fail;
13149 }
13150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13151 {
13152 if (temp2)
13153 delete arg2;
13154 }
13155 return resultobj;
13156 fail:
13157 {
13158 if (temp2)
13159 delete arg2;
13160 }
13161 return NULL;
13162 }
13163
13164
13165 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13166 PyObject *resultobj;
13167 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13168 wxString *arg2 = 0 ;
13169 bool arg3 = (bool) False ;
13170 bool result;
13171 bool temp2 = False ;
13172 PyObject * obj0 = 0 ;
13173 PyObject * obj1 = 0 ;
13174 PyObject * obj2 = 0 ;
13175 char *kwnames[] = {
13176 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13177 };
13178
13179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13182 {
13183 arg2 = wxString_in_helper(obj1);
13184 if (arg2 == NULL) SWIG_fail;
13185 temp2 = True;
13186 }
13187 if (obj2) {
13188 arg3 = (bool) SWIG_AsBool(obj2);
13189 if (PyErr_Occurred()) SWIG_fail;
13190 }
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13194
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13199 {
13200 if (temp2)
13201 delete arg2;
13202 }
13203 return resultobj;
13204 fail:
13205 {
13206 if (temp2)
13207 delete arg2;
13208 }
13209 return NULL;
13210 }
13211
13212
13213 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13214 PyObject *resultobj;
13215 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13216 wxString *arg2 = 0 ;
13217 bool result;
13218 bool temp2 = False ;
13219 PyObject * obj0 = 0 ;
13220 PyObject * obj1 = 0 ;
13221 char *kwnames[] = {
13222 (char *) "self",(char *) "filename", NULL
13223 };
13224
13225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13228 {
13229 arg2 = wxString_in_helper(obj1);
13230 if (arg2 == NULL) SWIG_fail;
13231 temp2 = True;
13232 }
13233 {
13234 PyThreadState* __tstate = wxPyBeginAllowThreads();
13235 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13236
13237 wxPyEndAllowThreads(__tstate);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 }
13240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13241 {
13242 if (temp2)
13243 delete arg2;
13244 }
13245 return resultobj;
13246 fail:
13247 {
13248 if (temp2)
13249 delete arg2;
13250 }
13251 return NULL;
13252 }
13253
13254
13255 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj;
13257 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13258 PyObject *result;
13259 PyObject * obj0 = 0 ;
13260 char *kwnames[] = {
13261 (char *) "self", NULL
13262 };
13263
13264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 resultobj = result;
13275 return resultobj;
13276 fail:
13277 return NULL;
13278 }
13279
13280
13281 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13282 PyObject *resultobj;
13283 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13284 wxFileTypeInfo *arg2 = 0 ;
13285 PyObject * obj0 = 0 ;
13286 PyObject * obj1 = 0 ;
13287 char *kwnames[] = {
13288 (char *) "self",(char *) "ft", NULL
13289 };
13290
13291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13294 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13295 SWIG_POINTER_EXCEPTION | 0)) == -1)
13296 SWIG_fail;
13297 if (arg2 == NULL) {
13298 PyErr_SetString(PyExc_TypeError,"null reference");
13299 SWIG_fail;
13300 }
13301 {
13302 PyThreadState* __tstate = wxPyBeginAllowThreads();
13303 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13304
13305 wxPyEndAllowThreads(__tstate);
13306 if (PyErr_Occurred()) SWIG_fail;
13307 }
13308 Py_INCREF(Py_None); resultobj = Py_None;
13309 return resultobj;
13310 fail:
13311 return NULL;
13312 }
13313
13314
13315 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13316 PyObject *resultobj;
13317 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13318 wxFileTypeInfo *arg2 = 0 ;
13319 wxFileType *result;
13320 PyObject * obj0 = 0 ;
13321 PyObject * obj1 = 0 ;
13322 char *kwnames[] = {
13323 (char *) "self",(char *) "ftInfo", NULL
13324 };
13325
13326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13330 SWIG_POINTER_EXCEPTION | 0)) == -1)
13331 SWIG_fail;
13332 if (arg2 == NULL) {
13333 PyErr_SetString(PyExc_TypeError,"null reference");
13334 SWIG_fail;
13335 }
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13339
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13344 return resultobj;
13345 fail:
13346 return NULL;
13347 }
13348
13349
13350 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13351 PyObject *resultobj;
13352 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13353 wxFileType *arg2 = (wxFileType *) 0 ;
13354 bool result;
13355 PyObject * obj0 = 0 ;
13356 PyObject * obj1 = 0 ;
13357 char *kwnames[] = {
13358 (char *) "self",(char *) "ft", NULL
13359 };
13360
13361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 result = (bool)(arg1)->Unassociate(arg2);
13369
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13374 return resultobj;
13375 fail:
13376 return NULL;
13377 }
13378
13379
13380 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13381 PyObject *resultobj;
13382 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13383 PyObject * obj0 = 0 ;
13384 char *kwnames[] = {
13385 (char *) "self", NULL
13386 };
13387
13388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13391 {
13392 PyThreadState* __tstate = wxPyBeginAllowThreads();
13393 delete arg1;
13394
13395 wxPyEndAllowThreads(__tstate);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 }
13398 Py_INCREF(Py_None); resultobj = Py_None;
13399 return resultobj;
13400 fail:
13401 return NULL;
13402 }
13403
13404
13405 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13406 PyObject *obj;
13407 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13408 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13409 Py_INCREF(obj);
13410 return Py_BuildValue((char *)"");
13411 }
13412 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13413 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13414 return 1;
13415 }
13416
13417
13418 static PyObject *_wrap_ART_TOOLBAR_get() {
13419 PyObject *pyobj;
13420
13421 {
13422 #if wxUSE_UNICODE
13423 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13424 #else
13425 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13426 #endif
13427 }
13428 return pyobj;
13429 }
13430
13431
13432 static int _wrap_ART_MENU_set(PyObject *_val) {
13433 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13434 return 1;
13435 }
13436
13437
13438 static PyObject *_wrap_ART_MENU_get() {
13439 PyObject *pyobj;
13440
13441 {
13442 #if wxUSE_UNICODE
13443 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13444 #else
13445 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13446 #endif
13447 }
13448 return pyobj;
13449 }
13450
13451
13452 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13453 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13454 return 1;
13455 }
13456
13457
13458 static PyObject *_wrap_ART_FRAME_ICON_get() {
13459 PyObject *pyobj;
13460
13461 {
13462 #if wxUSE_UNICODE
13463 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13464 #else
13465 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13466 #endif
13467 }
13468 return pyobj;
13469 }
13470
13471
13472 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13473 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13474 return 1;
13475 }
13476
13477
13478 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13479 PyObject *pyobj;
13480
13481 {
13482 #if wxUSE_UNICODE
13483 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13484 #else
13485 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13486 #endif
13487 }
13488 return pyobj;
13489 }
13490
13491
13492 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13493 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13494 return 1;
13495 }
13496
13497
13498 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13499 PyObject *pyobj;
13500
13501 {
13502 #if wxUSE_UNICODE
13503 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13504 #else
13505 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13506 #endif
13507 }
13508 return pyobj;
13509 }
13510
13511
13512 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13513 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13514 return 1;
13515 }
13516
13517
13518 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13519 PyObject *pyobj;
13520
13521 {
13522 #if wxUSE_UNICODE
13523 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13524 #else
13525 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13526 #endif
13527 }
13528 return pyobj;
13529 }
13530
13531
13532 static int _wrap_ART_OTHER_set(PyObject *_val) {
13533 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13534 return 1;
13535 }
13536
13537
13538 static PyObject *_wrap_ART_OTHER_get() {
13539 PyObject *pyobj;
13540
13541 {
13542 #if wxUSE_UNICODE
13543 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13544 #else
13545 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13546 #endif
13547 }
13548 return pyobj;
13549 }
13550
13551
13552 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13553 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13554 return 1;
13555 }
13556
13557
13558 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13559 PyObject *pyobj;
13560
13561 {
13562 #if wxUSE_UNICODE
13563 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13564 #else
13565 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13566 #endif
13567 }
13568 return pyobj;
13569 }
13570
13571
13572 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13573 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13574 return 1;
13575 }
13576
13577
13578 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13579 PyObject *pyobj;
13580
13581 {
13582 #if wxUSE_UNICODE
13583 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13584 #else
13585 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13586 #endif
13587 }
13588 return pyobj;
13589 }
13590
13591
13592 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13593 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13594 return 1;
13595 }
13596
13597
13598 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13599 PyObject *pyobj;
13600
13601 {
13602 #if wxUSE_UNICODE
13603 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13604 #else
13605 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13606 #endif
13607 }
13608 return pyobj;
13609 }
13610
13611
13612 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13613 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13614 return 1;
13615 }
13616
13617
13618 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13619 PyObject *pyobj;
13620
13621 {
13622 #if wxUSE_UNICODE
13623 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13624 #else
13625 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13626 #endif
13627 }
13628 return pyobj;
13629 }
13630
13631
13632 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13633 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13634 return 1;
13635 }
13636
13637
13638 static PyObject *_wrap_ART_HELP_BOOK_get() {
13639 PyObject *pyobj;
13640
13641 {
13642 #if wxUSE_UNICODE
13643 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13644 #else
13645 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13646 #endif
13647 }
13648 return pyobj;
13649 }
13650
13651
13652 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13653 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13654 return 1;
13655 }
13656
13657
13658 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13659 PyObject *pyobj;
13660
13661 {
13662 #if wxUSE_UNICODE
13663 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13664 #else
13665 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13666 #endif
13667 }
13668 return pyobj;
13669 }
13670
13671
13672 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13673 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13674 return 1;
13675 }
13676
13677
13678 static PyObject *_wrap_ART_HELP_PAGE_get() {
13679 PyObject *pyobj;
13680
13681 {
13682 #if wxUSE_UNICODE
13683 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13684 #else
13685 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13686 #endif
13687 }
13688 return pyobj;
13689 }
13690
13691
13692 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13693 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13694 return 1;
13695 }
13696
13697
13698 static PyObject *_wrap_ART_GO_BACK_get() {
13699 PyObject *pyobj;
13700
13701 {
13702 #if wxUSE_UNICODE
13703 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13704 #else
13705 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13706 #endif
13707 }
13708 return pyobj;
13709 }
13710
13711
13712 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13713 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13714 return 1;
13715 }
13716
13717
13718 static PyObject *_wrap_ART_GO_FORWARD_get() {
13719 PyObject *pyobj;
13720
13721 {
13722 #if wxUSE_UNICODE
13723 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13724 #else
13725 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13726 #endif
13727 }
13728 return pyobj;
13729 }
13730
13731
13732 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13733 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13734 return 1;
13735 }
13736
13737
13738 static PyObject *_wrap_ART_GO_UP_get() {
13739 PyObject *pyobj;
13740
13741 {
13742 #if wxUSE_UNICODE
13743 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13744 #else
13745 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13746 #endif
13747 }
13748 return pyobj;
13749 }
13750
13751
13752 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13753 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13754 return 1;
13755 }
13756
13757
13758 static PyObject *_wrap_ART_GO_DOWN_get() {
13759 PyObject *pyobj;
13760
13761 {
13762 #if wxUSE_UNICODE
13763 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13764 #else
13765 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13766 #endif
13767 }
13768 return pyobj;
13769 }
13770
13771
13772 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13773 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13774 return 1;
13775 }
13776
13777
13778 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13779 PyObject *pyobj;
13780
13781 {
13782 #if wxUSE_UNICODE
13783 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13784 #else
13785 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13786 #endif
13787 }
13788 return pyobj;
13789 }
13790
13791
13792 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13793 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13794 return 1;
13795 }
13796
13797
13798 static PyObject *_wrap_ART_GO_HOME_get() {
13799 PyObject *pyobj;
13800
13801 {
13802 #if wxUSE_UNICODE
13803 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13804 #else
13805 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13806 #endif
13807 }
13808 return pyobj;
13809 }
13810
13811
13812 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13813 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13814 return 1;
13815 }
13816
13817
13818 static PyObject *_wrap_ART_FILE_OPEN_get() {
13819 PyObject *pyobj;
13820
13821 {
13822 #if wxUSE_UNICODE
13823 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13824 #else
13825 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13826 #endif
13827 }
13828 return pyobj;
13829 }
13830
13831
13832 static int _wrap_ART_PRINT_set(PyObject *_val) {
13833 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13834 return 1;
13835 }
13836
13837
13838 static PyObject *_wrap_ART_PRINT_get() {
13839 PyObject *pyobj;
13840
13841 {
13842 #if wxUSE_UNICODE
13843 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13844 #else
13845 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13846 #endif
13847 }
13848 return pyobj;
13849 }
13850
13851
13852 static int _wrap_ART_HELP_set(PyObject *_val) {
13853 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13854 return 1;
13855 }
13856
13857
13858 static PyObject *_wrap_ART_HELP_get() {
13859 PyObject *pyobj;
13860
13861 {
13862 #if wxUSE_UNICODE
13863 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13864 #else
13865 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13866 #endif
13867 }
13868 return pyobj;
13869 }
13870
13871
13872 static int _wrap_ART_TIP_set(PyObject *_val) {
13873 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13874 return 1;
13875 }
13876
13877
13878 static PyObject *_wrap_ART_TIP_get() {
13879 PyObject *pyobj;
13880
13881 {
13882 #if wxUSE_UNICODE
13883 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13884 #else
13885 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13886 #endif
13887 }
13888 return pyobj;
13889 }
13890
13891
13892 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
13893 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13894 return 1;
13895 }
13896
13897
13898 static PyObject *_wrap_ART_REPORT_VIEW_get() {
13899 PyObject *pyobj;
13900
13901 {
13902 #if wxUSE_UNICODE
13903 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13904 #else
13905 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13906 #endif
13907 }
13908 return pyobj;
13909 }
13910
13911
13912 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
13913 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
13914 return 1;
13915 }
13916
13917
13918 static PyObject *_wrap_ART_LIST_VIEW_get() {
13919 PyObject *pyobj;
13920
13921 {
13922 #if wxUSE_UNICODE
13923 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13924 #else
13925 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13926 #endif
13927 }
13928 return pyobj;
13929 }
13930
13931
13932 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
13933 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
13934 return 1;
13935 }
13936
13937
13938 static PyObject *_wrap_ART_NEW_DIR_get() {
13939 PyObject *pyobj;
13940
13941 {
13942 #if wxUSE_UNICODE
13943 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13944 #else
13945 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13946 #endif
13947 }
13948 return pyobj;
13949 }
13950
13951
13952 static int _wrap_ART_FOLDER_set(PyObject *_val) {
13953 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
13954 return 1;
13955 }
13956
13957
13958 static PyObject *_wrap_ART_FOLDER_get() {
13959 PyObject *pyobj;
13960
13961 {
13962 #if wxUSE_UNICODE
13963 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13964 #else
13965 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13966 #endif
13967 }
13968 return pyobj;
13969 }
13970
13971
13972 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
13973 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
13974 return 1;
13975 }
13976
13977
13978 static PyObject *_wrap_ART_GO_DIR_UP_get() {
13979 PyObject *pyobj;
13980
13981 {
13982 #if wxUSE_UNICODE
13983 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13984 #else
13985 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13986 #endif
13987 }
13988 return pyobj;
13989 }
13990
13991
13992 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
13993 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
13994 return 1;
13995 }
13996
13997
13998 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
13999 PyObject *pyobj;
14000
14001 {
14002 #if wxUSE_UNICODE
14003 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14004 #else
14005 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14006 #endif
14007 }
14008 return pyobj;
14009 }
14010
14011
14012 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14013 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14014 return 1;
14015 }
14016
14017
14018 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14019 PyObject *pyobj;
14020
14021 {
14022 #if wxUSE_UNICODE
14023 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14024 #else
14025 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14026 #endif
14027 }
14028 return pyobj;
14029 }
14030
14031
14032 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14033 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14034 return 1;
14035 }
14036
14037
14038 static PyObject *_wrap_ART_TICK_MARK_get() {
14039 PyObject *pyobj;
14040
14041 {
14042 #if wxUSE_UNICODE
14043 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14044 #else
14045 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14046 #endif
14047 }
14048 return pyobj;
14049 }
14050
14051
14052 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14053 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14054 return 1;
14055 }
14056
14057
14058 static PyObject *_wrap_ART_CROSS_MARK_get() {
14059 PyObject *pyobj;
14060
14061 {
14062 #if wxUSE_UNICODE
14063 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14064 #else
14065 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14066 #endif
14067 }
14068 return pyobj;
14069 }
14070
14071
14072 static int _wrap_ART_ERROR_set(PyObject *_val) {
14073 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14074 return 1;
14075 }
14076
14077
14078 static PyObject *_wrap_ART_ERROR_get() {
14079 PyObject *pyobj;
14080
14081 {
14082 #if wxUSE_UNICODE
14083 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14084 #else
14085 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14086 #endif
14087 }
14088 return pyobj;
14089 }
14090
14091
14092 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14093 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14094 return 1;
14095 }
14096
14097
14098 static PyObject *_wrap_ART_QUESTION_get() {
14099 PyObject *pyobj;
14100
14101 {
14102 #if wxUSE_UNICODE
14103 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14104 #else
14105 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14106 #endif
14107 }
14108 return pyobj;
14109 }
14110
14111
14112 static int _wrap_ART_WARNING_set(PyObject *_val) {
14113 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14114 return 1;
14115 }
14116
14117
14118 static PyObject *_wrap_ART_WARNING_get() {
14119 PyObject *pyobj;
14120
14121 {
14122 #if wxUSE_UNICODE
14123 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14124 #else
14125 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14126 #endif
14127 }
14128 return pyobj;
14129 }
14130
14131
14132 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14133 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14134 return 1;
14135 }
14136
14137
14138 static PyObject *_wrap_ART_INFORMATION_get() {
14139 PyObject *pyobj;
14140
14141 {
14142 #if wxUSE_UNICODE
14143 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14144 #else
14145 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14146 #endif
14147 }
14148 return pyobj;
14149 }
14150
14151
14152 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14153 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14154 return 1;
14155 }
14156
14157
14158 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14159 PyObject *pyobj;
14160
14161 {
14162 #if wxUSE_UNICODE
14163 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14164 #else
14165 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14166 #endif
14167 }
14168 return pyobj;
14169 }
14170
14171
14172 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj;
14174 wxPyArtProvider *result;
14175 char *kwnames[] = {
14176 NULL
14177 };
14178
14179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14180 {
14181 PyThreadState* __tstate = wxPyBeginAllowThreads();
14182 result = (wxPyArtProvider *)new wxPyArtProvider();
14183
14184 wxPyEndAllowThreads(__tstate);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 }
14187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14188 return resultobj;
14189 fail:
14190 return NULL;
14191 }
14192
14193
14194 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14195 PyObject *resultobj;
14196 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14197 PyObject *arg2 = (PyObject *) 0 ;
14198 PyObject *arg3 = (PyObject *) 0 ;
14199 PyObject * obj0 = 0 ;
14200 PyObject * obj1 = 0 ;
14201 PyObject * obj2 = 0 ;
14202 char *kwnames[] = {
14203 (char *) "self",(char *) "self",(char *) "_class", NULL
14204 };
14205
14206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14209 arg2 = obj1;
14210 arg3 = obj2;
14211 {
14212 PyThreadState* __tstate = wxPyBeginAllowThreads();
14213 (arg1)->_setCallbackInfo(arg2,arg3);
14214
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 Py_INCREF(Py_None); resultobj = Py_None;
14219 return resultobj;
14220 fail:
14221 return NULL;
14222 }
14223
14224
14225 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14226 PyObject *resultobj;
14227 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14228 PyObject * obj0 = 0 ;
14229 char *kwnames[] = {
14230 (char *) "provider", NULL
14231 };
14232
14233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14236 {
14237 PyThreadState* __tstate = wxPyBeginAllowThreads();
14238 wxPyArtProvider::PushProvider(arg1);
14239
14240 wxPyEndAllowThreads(__tstate);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 }
14243 Py_INCREF(Py_None); resultobj = Py_None;
14244 return resultobj;
14245 fail:
14246 return NULL;
14247 }
14248
14249
14250 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14251 PyObject *resultobj;
14252 bool result;
14253 char *kwnames[] = {
14254 NULL
14255 };
14256
14257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (bool)wxPyArtProvider::PopProvider();
14261
14262 wxPyEndAllowThreads(__tstate);
14263 if (PyErr_Occurred()) SWIG_fail;
14264 }
14265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14266 return resultobj;
14267 fail:
14268 return NULL;
14269 }
14270
14271
14272 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14273 PyObject *resultobj;
14274 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14275 bool result;
14276 PyObject * obj0 = 0 ;
14277 char *kwnames[] = {
14278 (char *) "provider", NULL
14279 };
14280
14281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14287
14288 wxPyEndAllowThreads(__tstate);
14289 if (PyErr_Occurred()) SWIG_fail;
14290 }
14291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14292 return resultobj;
14293 fail:
14294 return NULL;
14295 }
14296
14297
14298 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14299 PyObject *resultobj;
14300 wxString *arg1 = 0 ;
14301 wxString const &arg2_defvalue = wxPyART_OTHER ;
14302 wxString *arg2 = (wxString *) &arg2_defvalue ;
14303 wxSize const &arg3_defvalue = wxDefaultSize ;
14304 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14305 wxBitmap result;
14306 bool temp1 = False ;
14307 bool temp2 = False ;
14308 wxSize temp3 ;
14309 PyObject * obj0 = 0 ;
14310 PyObject * obj1 = 0 ;
14311 PyObject * obj2 = 0 ;
14312 char *kwnames[] = {
14313 (char *) "id",(char *) "client",(char *) "size", NULL
14314 };
14315
14316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14317 {
14318 arg1 = wxString_in_helper(obj0);
14319 if (arg1 == NULL) SWIG_fail;
14320 temp1 = True;
14321 }
14322 if (obj1) {
14323 {
14324 arg2 = wxString_in_helper(obj1);
14325 if (arg2 == NULL) SWIG_fail;
14326 temp2 = True;
14327 }
14328 }
14329 if (obj2) {
14330 {
14331 arg3 = &temp3;
14332 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14333 }
14334 }
14335 {
14336 PyThreadState* __tstate = wxPyBeginAllowThreads();
14337 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14338
14339 wxPyEndAllowThreads(__tstate);
14340 if (PyErr_Occurred()) SWIG_fail;
14341 }
14342 {
14343 wxBitmap * resultptr;
14344 resultptr = new wxBitmap((wxBitmap &) result);
14345 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14346 }
14347 {
14348 if (temp1)
14349 delete arg1;
14350 }
14351 {
14352 if (temp2)
14353 delete arg2;
14354 }
14355 return resultobj;
14356 fail:
14357 {
14358 if (temp1)
14359 delete arg1;
14360 }
14361 {
14362 if (temp2)
14363 delete arg2;
14364 }
14365 return NULL;
14366 }
14367
14368
14369 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14370 PyObject *resultobj;
14371 wxString *arg1 = 0 ;
14372 wxString const &arg2_defvalue = wxPyART_OTHER ;
14373 wxString *arg2 = (wxString *) &arg2_defvalue ;
14374 wxSize const &arg3_defvalue = wxDefaultSize ;
14375 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14376 wxIcon result;
14377 bool temp1 = False ;
14378 bool temp2 = False ;
14379 wxSize temp3 ;
14380 PyObject * obj0 = 0 ;
14381 PyObject * obj1 = 0 ;
14382 PyObject * obj2 = 0 ;
14383 char *kwnames[] = {
14384 (char *) "id",(char *) "client",(char *) "size", NULL
14385 };
14386
14387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14388 {
14389 arg1 = wxString_in_helper(obj0);
14390 if (arg1 == NULL) SWIG_fail;
14391 temp1 = True;
14392 }
14393 if (obj1) {
14394 {
14395 arg2 = wxString_in_helper(obj1);
14396 if (arg2 == NULL) SWIG_fail;
14397 temp2 = True;
14398 }
14399 }
14400 if (obj2) {
14401 {
14402 arg3 = &temp3;
14403 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14404 }
14405 }
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14409
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 {
14414 wxIcon * resultptr;
14415 resultptr = new wxIcon((wxIcon &) result);
14416 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14417 }
14418 {
14419 if (temp1)
14420 delete arg1;
14421 }
14422 {
14423 if (temp2)
14424 delete arg2;
14425 }
14426 return resultobj;
14427 fail:
14428 {
14429 if (temp1)
14430 delete arg1;
14431 }
14432 {
14433 if (temp2)
14434 delete arg2;
14435 }
14436 return NULL;
14437 }
14438
14439
14440 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14441 PyObject *resultobj;
14442 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14443 PyObject * obj0 = 0 ;
14444 char *kwnames[] = {
14445 (char *) "self", NULL
14446 };
14447
14448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14451 {
14452 PyThreadState* __tstate = wxPyBeginAllowThreads();
14453 wxPyArtProvider_Destroy(arg1);
14454
14455 wxPyEndAllowThreads(__tstate);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 }
14458 Py_INCREF(Py_None); resultobj = Py_None;
14459 return resultobj;
14460 fail:
14461 return NULL;
14462 }
14463
14464
14465 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14466 PyObject *obj;
14467 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14468 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14469 Py_INCREF(obj);
14470 return Py_BuildValue((char *)"");
14471 }
14472 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj;
14474 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14475 PyObject * obj0 = 0 ;
14476 char *kwnames[] = {
14477 (char *) "self", NULL
14478 };
14479
14480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14483 {
14484 PyThreadState* __tstate = wxPyBeginAllowThreads();
14485 delete arg1;
14486
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 Py_INCREF(Py_None); resultobj = Py_None;
14491 return resultobj;
14492 fail:
14493 return NULL;
14494 }
14495
14496
14497 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14498 PyObject *resultobj;
14499 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14500 wxConfigBase *result;
14501 PyObject * obj0 = 0 ;
14502 char *kwnames[] = {
14503 (char *) "config", NULL
14504 };
14505
14506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14512
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14517 return resultobj;
14518 fail:
14519 return NULL;
14520 }
14521
14522
14523 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14524 PyObject *resultobj;
14525 bool arg1 = (bool) True ;
14526 wxConfigBase *result;
14527 PyObject * obj0 = 0 ;
14528 char *kwnames[] = {
14529 (char *) "createOnDemand", NULL
14530 };
14531
14532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14533 if (obj0) {
14534 arg1 = (bool) SWIG_AsBool(obj0);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 {
14538 PyThreadState* __tstate = wxPyBeginAllowThreads();
14539 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14540
14541 wxPyEndAllowThreads(__tstate);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 }
14544 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14545 return resultobj;
14546 fail:
14547 return NULL;
14548 }
14549
14550
14551 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14552 PyObject *resultobj;
14553 wxConfigBase *result;
14554 char *kwnames[] = {
14555 NULL
14556 };
14557
14558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 result = (wxConfigBase *)wxConfigBase::Create();
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14567 return resultobj;
14568 fail:
14569 return NULL;
14570 }
14571
14572
14573 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14574 PyObject *resultobj;
14575 char *kwnames[] = {
14576 NULL
14577 };
14578
14579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14580 {
14581 PyThreadState* __tstate = wxPyBeginAllowThreads();
14582 wxConfigBase::DontCreateOnDemand();
14583
14584 wxPyEndAllowThreads(__tstate);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 Py_INCREF(Py_None); resultobj = Py_None;
14588 return resultobj;
14589 fail:
14590 return NULL;
14591 }
14592
14593
14594 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14595 PyObject *resultobj;
14596 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14597 wxString *arg2 = 0 ;
14598 bool temp2 = False ;
14599 PyObject * obj0 = 0 ;
14600 PyObject * obj1 = 0 ;
14601 char *kwnames[] = {
14602 (char *) "self",(char *) "path", NULL
14603 };
14604
14605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14608 {
14609 arg2 = wxString_in_helper(obj1);
14610 if (arg2 == NULL) SWIG_fail;
14611 temp2 = True;
14612 }
14613 {
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 (arg1)->SetPath((wxString const &)*arg2);
14616
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 Py_INCREF(Py_None); resultobj = Py_None;
14621 {
14622 if (temp2)
14623 delete arg2;
14624 }
14625 return resultobj;
14626 fail:
14627 {
14628 if (temp2)
14629 delete arg2;
14630 }
14631 return NULL;
14632 }
14633
14634
14635 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14636 PyObject *resultobj;
14637 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14638 wxString *result;
14639 PyObject * obj0 = 0 ;
14640 char *kwnames[] = {
14641 (char *) "self", NULL
14642 };
14643
14644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 {
14650 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14651 result = (wxString *) &_result_ref;
14652 }
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 {
14658 #if wxUSE_UNICODE
14659 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14660 #else
14661 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14662 #endif
14663 }
14664 return resultobj;
14665 fail:
14666 return NULL;
14667 }
14668
14669
14670 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14671 PyObject *resultobj;
14672 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14673 PyObject *result;
14674 PyObject * obj0 = 0 ;
14675 char *kwnames[] = {
14676 (char *) "self", NULL
14677 };
14678
14679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14685
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 resultobj = result;
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14697 PyObject *resultobj;
14698 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14699 long arg2 ;
14700 PyObject *result;
14701 PyObject * obj0 = 0 ;
14702 PyObject * obj1 = 0 ;
14703 char *kwnames[] = {
14704 (char *) "self",(char *) "index", NULL
14705 };
14706
14707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14710 arg2 = (long) SWIG_AsLong(obj1);
14711 if (PyErr_Occurred()) SWIG_fail;
14712 {
14713 PyThreadState* __tstate = wxPyBeginAllowThreads();
14714 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14715
14716 wxPyEndAllowThreads(__tstate);
14717 if (PyErr_Occurred()) SWIG_fail;
14718 }
14719 resultobj = result;
14720 return resultobj;
14721 fail:
14722 return NULL;
14723 }
14724
14725
14726 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14727 PyObject *resultobj;
14728 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14729 PyObject *result;
14730 PyObject * obj0 = 0 ;
14731 char *kwnames[] = {
14732 (char *) "self", NULL
14733 };
14734
14735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14741
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 resultobj = result;
14746 return resultobj;
14747 fail:
14748 return NULL;
14749 }
14750
14751
14752 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj;
14754 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14755 long arg2 ;
14756 PyObject *result;
14757 PyObject * obj0 = 0 ;
14758 PyObject * obj1 = 0 ;
14759 char *kwnames[] = {
14760 (char *) "self",(char *) "index", NULL
14761 };
14762
14763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14766 arg2 = (long) SWIG_AsLong(obj1);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 {
14769 PyThreadState* __tstate = wxPyBeginAllowThreads();
14770 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14771
14772 wxPyEndAllowThreads(__tstate);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 }
14775 resultobj = result;
14776 return resultobj;
14777 fail:
14778 return NULL;
14779 }
14780
14781
14782 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14783 PyObject *resultobj;
14784 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14785 bool arg2 = (bool) False ;
14786 size_t result;
14787 PyObject * obj0 = 0 ;
14788 PyObject * obj1 = 0 ;
14789 char *kwnames[] = {
14790 (char *) "self",(char *) "recursive", NULL
14791 };
14792
14793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14796 if (obj1) {
14797 arg2 = (bool) SWIG_AsBool(obj1);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14803
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14808 return resultobj;
14809 fail:
14810 return NULL;
14811 }
14812
14813
14814 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14815 PyObject *resultobj;
14816 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14817 bool arg2 = (bool) False ;
14818 size_t result;
14819 PyObject * obj0 = 0 ;
14820 PyObject * obj1 = 0 ;
14821 char *kwnames[] = {
14822 (char *) "self",(char *) "recursive", NULL
14823 };
14824
14825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14828 if (obj1) {
14829 arg2 = (bool) SWIG_AsBool(obj1);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 {
14833 PyThreadState* __tstate = wxPyBeginAllowThreads();
14834 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14835
14836 wxPyEndAllowThreads(__tstate);
14837 if (PyErr_Occurred()) SWIG_fail;
14838 }
14839 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14840 return resultobj;
14841 fail:
14842 return NULL;
14843 }
14844
14845
14846 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14847 PyObject *resultobj;
14848 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14849 wxString *arg2 = 0 ;
14850 bool result;
14851 bool temp2 = False ;
14852 PyObject * obj0 = 0 ;
14853 PyObject * obj1 = 0 ;
14854 char *kwnames[] = {
14855 (char *) "self",(char *) "name", NULL
14856 };
14857
14858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14861 {
14862 arg2 = wxString_in_helper(obj1);
14863 if (arg2 == NULL) SWIG_fail;
14864 temp2 = True;
14865 }
14866 {
14867 PyThreadState* __tstate = wxPyBeginAllowThreads();
14868 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14869
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14874 {
14875 if (temp2)
14876 delete arg2;
14877 }
14878 return resultobj;
14879 fail:
14880 {
14881 if (temp2)
14882 delete arg2;
14883 }
14884 return NULL;
14885 }
14886
14887
14888 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj;
14890 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14891 wxString *arg2 = 0 ;
14892 bool result;
14893 bool temp2 = False ;
14894 PyObject * obj0 = 0 ;
14895 PyObject * obj1 = 0 ;
14896 char *kwnames[] = {
14897 (char *) "self",(char *) "name", NULL
14898 };
14899
14900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
14901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14903 {
14904 arg2 = wxString_in_helper(obj1);
14905 if (arg2 == NULL) SWIG_fail;
14906 temp2 = True;
14907 }
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
14911
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14916 {
14917 if (temp2)
14918 delete arg2;
14919 }
14920 return resultobj;
14921 fail:
14922 {
14923 if (temp2)
14924 delete arg2;
14925 }
14926 return NULL;
14927 }
14928
14929
14930 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
14931 PyObject *resultobj;
14932 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14933 wxString *arg2 = 0 ;
14934 bool result;
14935 bool temp2 = False ;
14936 PyObject * obj0 = 0 ;
14937 PyObject * obj1 = 0 ;
14938 char *kwnames[] = {
14939 (char *) "self",(char *) "name", NULL
14940 };
14941
14942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
14943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14945 {
14946 arg2 = wxString_in_helper(obj1);
14947 if (arg2 == NULL) SWIG_fail;
14948 temp2 = True;
14949 }
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
14953
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14958 {
14959 if (temp2)
14960 delete arg2;
14961 }
14962 return resultobj;
14963 fail:
14964 {
14965 if (temp2)
14966 delete arg2;
14967 }
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14975 wxString *arg2 = 0 ;
14976 int result;
14977 bool temp2 = False ;
14978 PyObject * obj0 = 0 ;
14979 PyObject * obj1 = 0 ;
14980 char *kwnames[] = {
14981 (char *) "self",(char *) "name", NULL
14982 };
14983
14984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
14985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14987 {
14988 arg2 = wxString_in_helper(obj1);
14989 if (arg2 == NULL) SWIG_fail;
14990 temp2 = True;
14991 }
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
14995
14996 wxPyEndAllowThreads(__tstate);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 }
14999 resultobj = SWIG_FromInt((int)result);
15000 {
15001 if (temp2)
15002 delete arg2;
15003 }
15004 return resultobj;
15005 fail:
15006 {
15007 if (temp2)
15008 delete arg2;
15009 }
15010 return NULL;
15011 }
15012
15013
15014 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15015 PyObject *resultobj;
15016 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15017 wxString *arg2 = 0 ;
15018 wxString const &arg3_defvalue = wxPyEmptyString ;
15019 wxString *arg3 = (wxString *) &arg3_defvalue ;
15020 wxString result;
15021 bool temp2 = False ;
15022 bool temp3 = False ;
15023 PyObject * obj0 = 0 ;
15024 PyObject * obj1 = 0 ;
15025 PyObject * obj2 = 0 ;
15026 char *kwnames[] = {
15027 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15028 };
15029
15030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15033 {
15034 arg2 = wxString_in_helper(obj1);
15035 if (arg2 == NULL) SWIG_fail;
15036 temp2 = True;
15037 }
15038 if (obj2) {
15039 {
15040 arg3 = wxString_in_helper(obj2);
15041 if (arg3 == NULL) SWIG_fail;
15042 temp3 = True;
15043 }
15044 }
15045 {
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15048
15049 wxPyEndAllowThreads(__tstate);
15050 if (PyErr_Occurred()) SWIG_fail;
15051 }
15052 {
15053 #if wxUSE_UNICODE
15054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15055 #else
15056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15057 #endif
15058 }
15059 {
15060 if (temp2)
15061 delete arg2;
15062 }
15063 {
15064 if (temp3)
15065 delete arg3;
15066 }
15067 return resultobj;
15068 fail:
15069 {
15070 if (temp2)
15071 delete arg2;
15072 }
15073 {
15074 if (temp3)
15075 delete arg3;
15076 }
15077 return NULL;
15078 }
15079
15080
15081 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15082 PyObject *resultobj;
15083 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15084 wxString *arg2 = 0 ;
15085 long arg3 = (long) 0 ;
15086 long result;
15087 bool temp2 = False ;
15088 PyObject * obj0 = 0 ;
15089 PyObject * obj1 = 0 ;
15090 PyObject * obj2 = 0 ;
15091 char *kwnames[] = {
15092 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15093 };
15094
15095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15098 {
15099 arg2 = wxString_in_helper(obj1);
15100 if (arg2 == NULL) SWIG_fail;
15101 temp2 = True;
15102 }
15103 if (obj2) {
15104 arg3 = (long) SWIG_AsLong(obj2);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_FromLong((long)result);
15115 {
15116 if (temp2)
15117 delete arg2;
15118 }
15119 return resultobj;
15120 fail:
15121 {
15122 if (temp2)
15123 delete arg2;
15124 }
15125 return NULL;
15126 }
15127
15128
15129 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj;
15131 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15132 wxString *arg2 = 0 ;
15133 double arg3 = (double) 0.0 ;
15134 double result;
15135 bool temp2 = False ;
15136 PyObject * obj0 = 0 ;
15137 PyObject * obj1 = 0 ;
15138 PyObject * obj2 = 0 ;
15139 char *kwnames[] = {
15140 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15141 };
15142
15143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15146 {
15147 arg2 = wxString_in_helper(obj1);
15148 if (arg2 == NULL) SWIG_fail;
15149 temp2 = True;
15150 }
15151 if (obj2) {
15152 arg3 = (double) SWIG_AsDouble(obj2);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15158
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
15162 resultobj = SWIG_FromDouble((double)result);
15163 {
15164 if (temp2)
15165 delete arg2;
15166 }
15167 return resultobj;
15168 fail:
15169 {
15170 if (temp2)
15171 delete arg2;
15172 }
15173 return NULL;
15174 }
15175
15176
15177 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15178 PyObject *resultobj;
15179 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15180 wxString *arg2 = 0 ;
15181 bool arg3 = (bool) False ;
15182 bool result;
15183 bool temp2 = False ;
15184 PyObject * obj0 = 0 ;
15185 PyObject * obj1 = 0 ;
15186 PyObject * obj2 = 0 ;
15187 char *kwnames[] = {
15188 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15189 };
15190
15191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15194 {
15195 arg2 = wxString_in_helper(obj1);
15196 if (arg2 == NULL) SWIG_fail;
15197 temp2 = True;
15198 }
15199 if (obj2) {
15200 arg3 = (bool) SWIG_AsBool(obj2);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15211 {
15212 if (temp2)
15213 delete arg2;
15214 }
15215 return resultobj;
15216 fail:
15217 {
15218 if (temp2)
15219 delete arg2;
15220 }
15221 return NULL;
15222 }
15223
15224
15225 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15228 wxString *arg2 = 0 ;
15229 wxString *arg3 = 0 ;
15230 bool result;
15231 bool temp2 = False ;
15232 bool temp3 = False ;
15233 PyObject * obj0 = 0 ;
15234 PyObject * obj1 = 0 ;
15235 PyObject * obj2 = 0 ;
15236 char *kwnames[] = {
15237 (char *) "self",(char *) "key",(char *) "value", NULL
15238 };
15239
15240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15243 {
15244 arg2 = wxString_in_helper(obj1);
15245 if (arg2 == NULL) SWIG_fail;
15246 temp2 = True;
15247 }
15248 {
15249 arg3 = wxString_in_helper(obj2);
15250 if (arg3 == NULL) SWIG_fail;
15251 temp3 = True;
15252 }
15253 {
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
15255 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15256
15257 wxPyEndAllowThreads(__tstate);
15258 if (PyErr_Occurred()) SWIG_fail;
15259 }
15260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15261 {
15262 if (temp2)
15263 delete arg2;
15264 }
15265 {
15266 if (temp3)
15267 delete arg3;
15268 }
15269 return resultobj;
15270 fail:
15271 {
15272 if (temp2)
15273 delete arg2;
15274 }
15275 {
15276 if (temp3)
15277 delete arg3;
15278 }
15279 return NULL;
15280 }
15281
15282
15283 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15284 PyObject *resultobj;
15285 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15286 wxString *arg2 = 0 ;
15287 long arg3 ;
15288 bool result;
15289 bool temp2 = False ;
15290 PyObject * obj0 = 0 ;
15291 PyObject * obj1 = 0 ;
15292 PyObject * obj2 = 0 ;
15293 char *kwnames[] = {
15294 (char *) "self",(char *) "key",(char *) "value", NULL
15295 };
15296
15297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15300 {
15301 arg2 = wxString_in_helper(obj1);
15302 if (arg2 == NULL) SWIG_fail;
15303 temp2 = True;
15304 }
15305 arg3 = (long) SWIG_AsLong(obj2);
15306 if (PyErr_Occurred()) SWIG_fail;
15307 {
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15310
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15315 {
15316 if (temp2)
15317 delete arg2;
15318 }
15319 return resultobj;
15320 fail:
15321 {
15322 if (temp2)
15323 delete arg2;
15324 }
15325 return NULL;
15326 }
15327
15328
15329 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj;
15331 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15332 wxString *arg2 = 0 ;
15333 double arg3 ;
15334 bool result;
15335 bool temp2 = False ;
15336 PyObject * obj0 = 0 ;
15337 PyObject * obj1 = 0 ;
15338 PyObject * obj2 = 0 ;
15339 char *kwnames[] = {
15340 (char *) "self",(char *) "key",(char *) "value", NULL
15341 };
15342
15343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15346 {
15347 arg2 = wxString_in_helper(obj1);
15348 if (arg2 == NULL) SWIG_fail;
15349 temp2 = True;
15350 }
15351 arg3 = (double) SWIG_AsDouble(obj2);
15352 if (PyErr_Occurred()) SWIG_fail;
15353 {
15354 PyThreadState* __tstate = wxPyBeginAllowThreads();
15355 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15356
15357 wxPyEndAllowThreads(__tstate);
15358 if (PyErr_Occurred()) SWIG_fail;
15359 }
15360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15361 {
15362 if (temp2)
15363 delete arg2;
15364 }
15365 return resultobj;
15366 fail:
15367 {
15368 if (temp2)
15369 delete arg2;
15370 }
15371 return NULL;
15372 }
15373
15374
15375 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15376 PyObject *resultobj;
15377 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15378 wxString *arg2 = 0 ;
15379 bool arg3 ;
15380 bool result;
15381 bool temp2 = False ;
15382 PyObject * obj0 = 0 ;
15383 PyObject * obj1 = 0 ;
15384 PyObject * obj2 = 0 ;
15385 char *kwnames[] = {
15386 (char *) "self",(char *) "key",(char *) "value", NULL
15387 };
15388
15389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15392 {
15393 arg2 = wxString_in_helper(obj1);
15394 if (arg2 == NULL) SWIG_fail;
15395 temp2 = True;
15396 }
15397 arg3 = (bool) SWIG_AsBool(obj2);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 {
15400 PyThreadState* __tstate = wxPyBeginAllowThreads();
15401 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15402
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15407 {
15408 if (temp2)
15409 delete arg2;
15410 }
15411 return resultobj;
15412 fail:
15413 {
15414 if (temp2)
15415 delete arg2;
15416 }
15417 return NULL;
15418 }
15419
15420
15421 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15422 PyObject *resultobj;
15423 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15424 bool arg2 = (bool) False ;
15425 bool result;
15426 PyObject * obj0 = 0 ;
15427 PyObject * obj1 = 0 ;
15428 char *kwnames[] = {
15429 (char *) "self",(char *) "currentOnly", NULL
15430 };
15431
15432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15435 if (obj1) {
15436 arg2 = (bool) SWIG_AsBool(obj1);
15437 if (PyErr_Occurred()) SWIG_fail;
15438 }
15439 {
15440 PyThreadState* __tstate = wxPyBeginAllowThreads();
15441 result = (bool)(arg1)->Flush(arg2);
15442
15443 wxPyEndAllowThreads(__tstate);
15444 if (PyErr_Occurred()) SWIG_fail;
15445 }
15446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15447 return resultobj;
15448 fail:
15449 return NULL;
15450 }
15451
15452
15453 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15454 PyObject *resultobj;
15455 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15456 wxString *arg2 = 0 ;
15457 wxString *arg3 = 0 ;
15458 bool result;
15459 bool temp2 = False ;
15460 bool temp3 = False ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 PyObject * obj2 = 0 ;
15464 char *kwnames[] = {
15465 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15466 };
15467
15468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15471 {
15472 arg2 = wxString_in_helper(obj1);
15473 if (arg2 == NULL) SWIG_fail;
15474 temp2 = True;
15475 }
15476 {
15477 arg3 = wxString_in_helper(obj2);
15478 if (arg3 == NULL) SWIG_fail;
15479 temp3 = True;
15480 }
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15489 {
15490 if (temp2)
15491 delete arg2;
15492 }
15493 {
15494 if (temp3)
15495 delete arg3;
15496 }
15497 return resultobj;
15498 fail:
15499 {
15500 if (temp2)
15501 delete arg2;
15502 }
15503 {
15504 if (temp3)
15505 delete arg3;
15506 }
15507 return NULL;
15508 }
15509
15510
15511 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15512 PyObject *resultobj;
15513 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15514 wxString *arg2 = 0 ;
15515 wxString *arg3 = 0 ;
15516 bool result;
15517 bool temp2 = False ;
15518 bool temp3 = False ;
15519 PyObject * obj0 = 0 ;
15520 PyObject * obj1 = 0 ;
15521 PyObject * obj2 = 0 ;
15522 char *kwnames[] = {
15523 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15524 };
15525
15526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15529 {
15530 arg2 = wxString_in_helper(obj1);
15531 if (arg2 == NULL) SWIG_fail;
15532 temp2 = True;
15533 }
15534 {
15535 arg3 = wxString_in_helper(obj2);
15536 if (arg3 == NULL) SWIG_fail;
15537 temp3 = True;
15538 }
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15542
15543 wxPyEndAllowThreads(__tstate);
15544 if (PyErr_Occurred()) SWIG_fail;
15545 }
15546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15547 {
15548 if (temp2)
15549 delete arg2;
15550 }
15551 {
15552 if (temp3)
15553 delete arg3;
15554 }
15555 return resultobj;
15556 fail:
15557 {
15558 if (temp2)
15559 delete arg2;
15560 }
15561 {
15562 if (temp3)
15563 delete arg3;
15564 }
15565 return NULL;
15566 }
15567
15568
15569 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15570 PyObject *resultobj;
15571 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15572 wxString *arg2 = 0 ;
15573 bool arg3 = (bool) True ;
15574 bool result;
15575 bool temp2 = False ;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 PyObject * obj2 = 0 ;
15579 char *kwnames[] = {
15580 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15581 };
15582
15583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15586 {
15587 arg2 = wxString_in_helper(obj1);
15588 if (arg2 == NULL) SWIG_fail;
15589 temp2 = True;
15590 }
15591 if (obj2) {
15592 arg3 = (bool) SWIG_AsBool(obj2);
15593 if (PyErr_Occurred()) SWIG_fail;
15594 }
15595 {
15596 PyThreadState* __tstate = wxPyBeginAllowThreads();
15597 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15598
15599 wxPyEndAllowThreads(__tstate);
15600 if (PyErr_Occurred()) SWIG_fail;
15601 }
15602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15603 {
15604 if (temp2)
15605 delete arg2;
15606 }
15607 return resultobj;
15608 fail:
15609 {
15610 if (temp2)
15611 delete arg2;
15612 }
15613 return NULL;
15614 }
15615
15616
15617 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15618 PyObject *resultobj;
15619 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15620 wxString *arg2 = 0 ;
15621 bool result;
15622 bool temp2 = False ;
15623 PyObject * obj0 = 0 ;
15624 PyObject * obj1 = 0 ;
15625 char *kwnames[] = {
15626 (char *) "self",(char *) "key", NULL
15627 };
15628
15629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15632 {
15633 arg2 = wxString_in_helper(obj1);
15634 if (arg2 == NULL) SWIG_fail;
15635 temp2 = True;
15636 }
15637 {
15638 PyThreadState* __tstate = wxPyBeginAllowThreads();
15639 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15640
15641 wxPyEndAllowThreads(__tstate);
15642 if (PyErr_Occurred()) SWIG_fail;
15643 }
15644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15645 {
15646 if (temp2)
15647 delete arg2;
15648 }
15649 return resultobj;
15650 fail:
15651 {
15652 if (temp2)
15653 delete arg2;
15654 }
15655 return NULL;
15656 }
15657
15658
15659 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15662 bool result;
15663 PyObject * obj0 = 0 ;
15664 char *kwnames[] = {
15665 (char *) "self", NULL
15666 };
15667
15668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15671 {
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 result = (bool)(arg1)->DeleteAll();
15674
15675 wxPyEndAllowThreads(__tstate);
15676 if (PyErr_Occurred()) SWIG_fail;
15677 }
15678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15679 return resultobj;
15680 fail:
15681 return NULL;
15682 }
15683
15684
15685 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15686 PyObject *resultobj;
15687 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15688 bool arg2 = (bool) True ;
15689 PyObject * obj0 = 0 ;
15690 PyObject * obj1 = 0 ;
15691 char *kwnames[] = {
15692 (char *) "self",(char *) "doIt", NULL
15693 };
15694
15695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15698 if (obj1) {
15699 arg2 = (bool) SWIG_AsBool(obj1);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 {
15703 PyThreadState* __tstate = wxPyBeginAllowThreads();
15704 (arg1)->SetExpandEnvVars(arg2);
15705
15706 wxPyEndAllowThreads(__tstate);
15707 if (PyErr_Occurred()) SWIG_fail;
15708 }
15709 Py_INCREF(Py_None); resultobj = Py_None;
15710 return resultobj;
15711 fail:
15712 return NULL;
15713 }
15714
15715
15716 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15717 PyObject *resultobj;
15718 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15719 bool result;
15720 PyObject * obj0 = 0 ;
15721 char *kwnames[] = {
15722 (char *) "self", NULL
15723 };
15724
15725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15731
15732 wxPyEndAllowThreads(__tstate);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 }
15735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15736 return resultobj;
15737 fail:
15738 return NULL;
15739 }
15740
15741
15742 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15743 PyObject *resultobj;
15744 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15745 bool arg2 = (bool) True ;
15746 PyObject * obj0 = 0 ;
15747 PyObject * obj1 = 0 ;
15748 char *kwnames[] = {
15749 (char *) "self",(char *) "doIt", NULL
15750 };
15751
15752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15755 if (obj1) {
15756 arg2 = (bool) SWIG_AsBool(obj1);
15757 if (PyErr_Occurred()) SWIG_fail;
15758 }
15759 {
15760 PyThreadState* __tstate = wxPyBeginAllowThreads();
15761 (arg1)->SetRecordDefaults(arg2);
15762
15763 wxPyEndAllowThreads(__tstate);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 Py_INCREF(Py_None); resultobj = Py_None;
15767 return resultobj;
15768 fail:
15769 return NULL;
15770 }
15771
15772
15773 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj;
15775 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15776 bool result;
15777 PyObject * obj0 = 0 ;
15778 char *kwnames[] = {
15779 (char *) "self", NULL
15780 };
15781
15782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15785 {
15786 PyThreadState* __tstate = wxPyBeginAllowThreads();
15787 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15788
15789 wxPyEndAllowThreads(__tstate);
15790 if (PyErr_Occurred()) SWIG_fail;
15791 }
15792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15793 return resultobj;
15794 fail:
15795 return NULL;
15796 }
15797
15798
15799 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15800 PyObject *resultobj;
15801 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15802 wxString *arg2 = 0 ;
15803 wxString result;
15804 bool temp2 = False ;
15805 PyObject * obj0 = 0 ;
15806 PyObject * obj1 = 0 ;
15807 char *kwnames[] = {
15808 (char *) "self",(char *) "str", NULL
15809 };
15810
15811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15814 {
15815 arg2 = wxString_in_helper(obj1);
15816 if (arg2 == NULL) SWIG_fail;
15817 temp2 = True;
15818 }
15819 {
15820 PyThreadState* __tstate = wxPyBeginAllowThreads();
15821 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15822
15823 wxPyEndAllowThreads(__tstate);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
15826 {
15827 #if wxUSE_UNICODE
15828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15829 #else
15830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15831 #endif
15832 }
15833 {
15834 if (temp2)
15835 delete arg2;
15836 }
15837 return resultobj;
15838 fail:
15839 {
15840 if (temp2)
15841 delete arg2;
15842 }
15843 return NULL;
15844 }
15845
15846
15847 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj;
15849 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15850 wxString result;
15851 PyObject * obj0 = 0 ;
15852 char *kwnames[] = {
15853 (char *) "self", NULL
15854 };
15855
15856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15859 {
15860 PyThreadState* __tstate = wxPyBeginAllowThreads();
15861 result = ((wxConfigBase const *)arg1)->GetAppName();
15862
15863 wxPyEndAllowThreads(__tstate);
15864 if (PyErr_Occurred()) SWIG_fail;
15865 }
15866 {
15867 #if wxUSE_UNICODE
15868 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15869 #else
15870 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15871 #endif
15872 }
15873 return resultobj;
15874 fail:
15875 return NULL;
15876 }
15877
15878
15879 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15880 PyObject *resultobj;
15881 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15882 wxString result;
15883 PyObject * obj0 = 0 ;
15884 char *kwnames[] = {
15885 (char *) "self", NULL
15886 };
15887
15888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
15889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 result = ((wxConfigBase const *)arg1)->GetVendorName();
15894
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 {
15899 #if wxUSE_UNICODE
15900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15901 #else
15902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15903 #endif
15904 }
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15912 PyObject *resultobj;
15913 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15914 wxString *arg2 = 0 ;
15915 bool temp2 = False ;
15916 PyObject * obj0 = 0 ;
15917 PyObject * obj1 = 0 ;
15918 char *kwnames[] = {
15919 (char *) "self",(char *) "appName", NULL
15920 };
15921
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
15923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15925 {
15926 arg2 = wxString_in_helper(obj1);
15927 if (arg2 == NULL) SWIG_fail;
15928 temp2 = True;
15929 }
15930 {
15931 PyThreadState* __tstate = wxPyBeginAllowThreads();
15932 (arg1)->SetAppName((wxString const &)*arg2);
15933
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 Py_INCREF(Py_None); resultobj = Py_None;
15938 {
15939 if (temp2)
15940 delete arg2;
15941 }
15942 return resultobj;
15943 fail:
15944 {
15945 if (temp2)
15946 delete arg2;
15947 }
15948 return NULL;
15949 }
15950
15951
15952 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15953 PyObject *resultobj;
15954 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15955 wxString *arg2 = 0 ;
15956 bool temp2 = False ;
15957 PyObject * obj0 = 0 ;
15958 PyObject * obj1 = 0 ;
15959 char *kwnames[] = {
15960 (char *) "self",(char *) "vendorName", NULL
15961 };
15962
15963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
15964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15966 {
15967 arg2 = wxString_in_helper(obj1);
15968 if (arg2 == NULL) SWIG_fail;
15969 temp2 = True;
15970 }
15971 {
15972 PyThreadState* __tstate = wxPyBeginAllowThreads();
15973 (arg1)->SetVendorName((wxString const &)*arg2);
15974
15975 wxPyEndAllowThreads(__tstate);
15976 if (PyErr_Occurred()) SWIG_fail;
15977 }
15978 Py_INCREF(Py_None); resultobj = Py_None;
15979 {
15980 if (temp2)
15981 delete arg2;
15982 }
15983 return resultobj;
15984 fail:
15985 {
15986 if (temp2)
15987 delete arg2;
15988 }
15989 return NULL;
15990 }
15991
15992
15993 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15994 PyObject *resultobj;
15995 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15996 long arg2 ;
15997 PyObject * obj0 = 0 ;
15998 PyObject * obj1 = 0 ;
15999 char *kwnames[] = {
16000 (char *) "self",(char *) "style", NULL
16001 };
16002
16003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16006 arg2 = (long) SWIG_AsLong(obj1);
16007 if (PyErr_Occurred()) SWIG_fail;
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 (arg1)->SetStyle(arg2);
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 Py_INCREF(Py_None); resultobj = Py_None;
16016 return resultobj;
16017 fail:
16018 return NULL;
16019 }
16020
16021
16022 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16023 PyObject *resultobj;
16024 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16025 long result;
16026 PyObject * obj0 = 0 ;
16027 char *kwnames[] = {
16028 (char *) "self", NULL
16029 };
16030
16031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16037
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 resultobj = SWIG_FromLong((long)result);
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16049 PyObject *obj;
16050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16051 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16052 Py_INCREF(obj);
16053 return Py_BuildValue((char *)"");
16054 }
16055 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj;
16057 wxString const &arg1_defvalue = wxPyEmptyString ;
16058 wxString *arg1 = (wxString *) &arg1_defvalue ;
16059 wxString const &arg2_defvalue = wxPyEmptyString ;
16060 wxString *arg2 = (wxString *) &arg2_defvalue ;
16061 wxString const &arg3_defvalue = wxPyEmptyString ;
16062 wxString *arg3 = (wxString *) &arg3_defvalue ;
16063 wxString const &arg4_defvalue = wxPyEmptyString ;
16064 wxString *arg4 = (wxString *) &arg4_defvalue ;
16065 long arg5 = (long) 0 ;
16066 wxConfig *result;
16067 bool temp1 = False ;
16068 bool temp2 = False ;
16069 bool temp3 = False ;
16070 bool temp4 = False ;
16071 PyObject * obj0 = 0 ;
16072 PyObject * obj1 = 0 ;
16073 PyObject * obj2 = 0 ;
16074 PyObject * obj3 = 0 ;
16075 PyObject * obj4 = 0 ;
16076 char *kwnames[] = {
16077 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16078 };
16079
16080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16081 if (obj0) {
16082 {
16083 arg1 = wxString_in_helper(obj0);
16084 if (arg1 == NULL) SWIG_fail;
16085 temp1 = True;
16086 }
16087 }
16088 if (obj1) {
16089 {
16090 arg2 = wxString_in_helper(obj1);
16091 if (arg2 == NULL) SWIG_fail;
16092 temp2 = True;
16093 }
16094 }
16095 if (obj2) {
16096 {
16097 arg3 = wxString_in_helper(obj2);
16098 if (arg3 == NULL) SWIG_fail;
16099 temp3 = True;
16100 }
16101 }
16102 if (obj3) {
16103 {
16104 arg4 = wxString_in_helper(obj3);
16105 if (arg4 == NULL) SWIG_fail;
16106 temp4 = True;
16107 }
16108 }
16109 if (obj4) {
16110 arg5 = (long) SWIG_AsLong(obj4);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 }
16113 {
16114 PyThreadState* __tstate = wxPyBeginAllowThreads();
16115 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16116
16117 wxPyEndAllowThreads(__tstate);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 }
16120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16121 {
16122 if (temp1)
16123 delete arg1;
16124 }
16125 {
16126 if (temp2)
16127 delete arg2;
16128 }
16129 {
16130 if (temp3)
16131 delete arg3;
16132 }
16133 {
16134 if (temp4)
16135 delete arg4;
16136 }
16137 return resultobj;
16138 fail:
16139 {
16140 if (temp1)
16141 delete arg1;
16142 }
16143 {
16144 if (temp2)
16145 delete arg2;
16146 }
16147 {
16148 if (temp3)
16149 delete arg3;
16150 }
16151 {
16152 if (temp4)
16153 delete arg4;
16154 }
16155 return NULL;
16156 }
16157
16158
16159 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj;
16161 wxConfig *arg1 = (wxConfig *) 0 ;
16162 PyObject * obj0 = 0 ;
16163 char *kwnames[] = {
16164 (char *) "self", NULL
16165 };
16166
16167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16170 {
16171 PyThreadState* __tstate = wxPyBeginAllowThreads();
16172 delete arg1;
16173
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 Py_INCREF(Py_None); resultobj = Py_None;
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16185 PyObject *obj;
16186 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16187 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16188 Py_INCREF(obj);
16189 return Py_BuildValue((char *)"");
16190 }
16191 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj;
16193 wxString const &arg1_defvalue = wxPyEmptyString ;
16194 wxString *arg1 = (wxString *) &arg1_defvalue ;
16195 wxString const &arg2_defvalue = wxPyEmptyString ;
16196 wxString *arg2 = (wxString *) &arg2_defvalue ;
16197 wxString const &arg3_defvalue = wxPyEmptyString ;
16198 wxString *arg3 = (wxString *) &arg3_defvalue ;
16199 wxString const &arg4_defvalue = wxPyEmptyString ;
16200 wxString *arg4 = (wxString *) &arg4_defvalue ;
16201 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16202 wxFileConfig *result;
16203 bool temp1 = False ;
16204 bool temp2 = False ;
16205 bool temp3 = False ;
16206 bool temp4 = False ;
16207 PyObject * obj0 = 0 ;
16208 PyObject * obj1 = 0 ;
16209 PyObject * obj2 = 0 ;
16210 PyObject * obj3 = 0 ;
16211 PyObject * obj4 = 0 ;
16212 char *kwnames[] = {
16213 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16214 };
16215
16216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16217 if (obj0) {
16218 {
16219 arg1 = wxString_in_helper(obj0);
16220 if (arg1 == NULL) SWIG_fail;
16221 temp1 = True;
16222 }
16223 }
16224 if (obj1) {
16225 {
16226 arg2 = wxString_in_helper(obj1);
16227 if (arg2 == NULL) SWIG_fail;
16228 temp2 = True;
16229 }
16230 }
16231 if (obj2) {
16232 {
16233 arg3 = wxString_in_helper(obj2);
16234 if (arg3 == NULL) SWIG_fail;
16235 temp3 = True;
16236 }
16237 }
16238 if (obj3) {
16239 {
16240 arg4 = wxString_in_helper(obj3);
16241 if (arg4 == NULL) SWIG_fail;
16242 temp4 = True;
16243 }
16244 }
16245 if (obj4) {
16246 arg5 = (long) SWIG_AsLong(obj4);
16247 if (PyErr_Occurred()) SWIG_fail;
16248 }
16249 {
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16252
16253 wxPyEndAllowThreads(__tstate);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 }
16256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16257 {
16258 if (temp1)
16259 delete arg1;
16260 }
16261 {
16262 if (temp2)
16263 delete arg2;
16264 }
16265 {
16266 if (temp3)
16267 delete arg3;
16268 }
16269 {
16270 if (temp4)
16271 delete arg4;
16272 }
16273 return resultobj;
16274 fail:
16275 {
16276 if (temp1)
16277 delete arg1;
16278 }
16279 {
16280 if (temp2)
16281 delete arg2;
16282 }
16283 {
16284 if (temp3)
16285 delete arg3;
16286 }
16287 {
16288 if (temp4)
16289 delete arg4;
16290 }
16291 return NULL;
16292 }
16293
16294
16295 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj;
16297 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16298 PyObject * obj0 = 0 ;
16299 char *kwnames[] = {
16300 (char *) "self", NULL
16301 };
16302
16303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 delete arg1;
16309
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 Py_INCREF(Py_None); resultobj = Py_None;
16314 return resultobj;
16315 fail:
16316 return NULL;
16317 }
16318
16319
16320 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16321 PyObject *obj;
16322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16323 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16324 Py_INCREF(obj);
16325 return Py_BuildValue((char *)"");
16326 }
16327 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj;
16329 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16330 wxString *arg2 = 0 ;
16331 wxConfigPathChanger *result;
16332 bool temp2 = False ;
16333 PyObject * obj0 = 0 ;
16334 PyObject * obj1 = 0 ;
16335 char *kwnames[] = {
16336 (char *) "config",(char *) "entry", NULL
16337 };
16338
16339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16342 {
16343 arg2 = wxString_in_helper(obj1);
16344 if (arg2 == NULL) SWIG_fail;
16345 temp2 = True;
16346 }
16347 {
16348 PyThreadState* __tstate = wxPyBeginAllowThreads();
16349 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16350
16351 wxPyEndAllowThreads(__tstate);
16352 if (PyErr_Occurred()) SWIG_fail;
16353 }
16354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16355 {
16356 if (temp2)
16357 delete arg2;
16358 }
16359 return resultobj;
16360 fail:
16361 {
16362 if (temp2)
16363 delete arg2;
16364 }
16365 return NULL;
16366 }
16367
16368
16369 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16370 PyObject *resultobj;
16371 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16372 PyObject * obj0 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self", NULL
16375 };
16376
16377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 delete arg1;
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 Py_INCREF(Py_None); resultobj = Py_None;
16388 return resultobj;
16389 fail:
16390 return NULL;
16391 }
16392
16393
16394 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16395 PyObject *resultobj;
16396 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16397 wxString *result;
16398 PyObject * obj0 = 0 ;
16399 char *kwnames[] = {
16400 (char *) "self", NULL
16401 };
16402
16403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16406 {
16407 PyThreadState* __tstate = wxPyBeginAllowThreads();
16408 {
16409 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16410 result = (wxString *) &_result_ref;
16411 }
16412
16413 wxPyEndAllowThreads(__tstate);
16414 if (PyErr_Occurred()) SWIG_fail;
16415 }
16416 {
16417 #if wxUSE_UNICODE
16418 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16419 #else
16420 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16421 #endif
16422 }
16423 return resultobj;
16424 fail:
16425 return NULL;
16426 }
16427
16428
16429 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16430 PyObject *obj;
16431 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16432 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16433 Py_INCREF(obj);
16434 return Py_BuildValue((char *)"");
16435 }
16436 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16437 PyObject *resultobj;
16438 wxString *arg1 = 0 ;
16439 wxString result;
16440 bool temp1 = False ;
16441 PyObject * obj0 = 0 ;
16442 char *kwnames[] = {
16443 (char *) "sz", NULL
16444 };
16445
16446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16447 {
16448 arg1 = wxString_in_helper(obj0);
16449 if (arg1 == NULL) SWIG_fail;
16450 temp1 = True;
16451 }
16452 {
16453 PyThreadState* __tstate = wxPyBeginAllowThreads();
16454 result = wxExpandEnvVars((wxString const &)*arg1);
16455
16456 wxPyEndAllowThreads(__tstate);
16457 if (PyErr_Occurred()) SWIG_fail;
16458 }
16459 {
16460 #if wxUSE_UNICODE
16461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16462 #else
16463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16464 #endif
16465 }
16466 {
16467 if (temp1)
16468 delete arg1;
16469 }
16470 return resultobj;
16471 fail:
16472 {
16473 if (temp1)
16474 delete arg1;
16475 }
16476 return NULL;
16477 }
16478
16479
16480 static int _wrap_DateFormatStr_set(PyObject *_val) {
16481 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16482 return 1;
16483 }
16484
16485
16486 static PyObject *_wrap_DateFormatStr_get() {
16487 PyObject *pyobj;
16488
16489 {
16490 #if wxUSE_UNICODE
16491 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16492 #else
16493 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16494 #endif
16495 }
16496 return pyobj;
16497 }
16498
16499
16500 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16501 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16502 return 1;
16503 }
16504
16505
16506 static PyObject *_wrap_TimeSpanFormatStr_get() {
16507 PyObject *pyobj;
16508
16509 {
16510 #if wxUSE_UNICODE
16511 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16512 #else
16513 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16514 #endif
16515 }
16516 return pyobj;
16517 }
16518
16519
16520 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16521 PyObject *resultobj;
16522 int arg1 ;
16523 PyObject * obj0 = 0 ;
16524 char *kwnames[] = {
16525 (char *) "country", NULL
16526 };
16527
16528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16529 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16530 if (PyErr_Occurred()) SWIG_fail;
16531 {
16532 PyThreadState* __tstate = wxPyBeginAllowThreads();
16533 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16534
16535 wxPyEndAllowThreads(__tstate);
16536 if (PyErr_Occurred()) SWIG_fail;
16537 }
16538 Py_INCREF(Py_None); resultobj = Py_None;
16539 return resultobj;
16540 fail:
16541 return NULL;
16542 }
16543
16544
16545 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16546 PyObject *resultobj;
16547 int result;
16548 char *kwnames[] = {
16549 NULL
16550 };
16551
16552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16553 {
16554 PyThreadState* __tstate = wxPyBeginAllowThreads();
16555 result = (int)wxDateTime::GetCountry();
16556
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 resultobj = SWIG_FromInt((int)result);
16561 return resultobj;
16562 fail:
16563 return NULL;
16564 }
16565
16566
16567 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16568 PyObject *resultobj;
16569 int arg1 = (int) wxDateTime::Country_Default ;
16570 bool result;
16571 PyObject * obj0 = 0 ;
16572 char *kwnames[] = {
16573 (char *) "country", NULL
16574 };
16575
16576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16577 if (obj0) {
16578 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16584
16585 wxPyEndAllowThreads(__tstate);
16586 if (PyErr_Occurred()) SWIG_fail;
16587 }
16588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj;
16597 int arg1 = (int) wxDateTime::Gregorian ;
16598 int result;
16599 PyObject * obj0 = 0 ;
16600 char *kwnames[] = {
16601 (char *) "cal", NULL
16602 };
16603
16604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16605 if (obj0) {
16606 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16607 if (PyErr_Occurred()) SWIG_fail;
16608 }
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16612
16613 wxPyEndAllowThreads(__tstate);
16614 if (PyErr_Occurred()) SWIG_fail;
16615 }
16616 resultobj = SWIG_FromInt((int)result);
16617 return resultobj;
16618 fail:
16619 return NULL;
16620 }
16621
16622
16623 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16624 PyObject *resultobj;
16625 int arg1 ;
16626 int result;
16627 PyObject * obj0 = 0 ;
16628 char *kwnames[] = {
16629 (char *) "year", NULL
16630 };
16631
16632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16633 arg1 = (int) SWIG_AsInt(obj0);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 result = (int)wxDateTime::ConvertYearToBC(arg1);
16638
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 resultobj = SWIG_FromInt((int)result);
16643 return resultobj;
16644 fail:
16645 return NULL;
16646 }
16647
16648
16649 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16650 PyObject *resultobj;
16651 int arg1 = (int) wxDateTime::Gregorian ;
16652 int result;
16653 PyObject * obj0 = 0 ;
16654 char *kwnames[] = {
16655 (char *) "cal", NULL
16656 };
16657
16658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16659 if (obj0) {
16660 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16661 if (PyErr_Occurred()) SWIG_fail;
16662 }
16663 {
16664 PyThreadState* __tstate = wxPyBeginAllowThreads();
16665 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16666
16667 wxPyEndAllowThreads(__tstate);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 resultobj = SWIG_FromInt((int)result);
16671 return resultobj;
16672 fail:
16673 return NULL;
16674 }
16675
16676
16677 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16678 PyObject *resultobj;
16679 int arg1 = (int) wxDateTime::Inv_Year ;
16680 int arg2 = (int) wxDateTime::Gregorian ;
16681 bool result;
16682 PyObject * obj0 = 0 ;
16683 PyObject * obj1 = 0 ;
16684 char *kwnames[] = {
16685 (char *) "year",(char *) "cal", NULL
16686 };
16687
16688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16689 if (obj0) {
16690 arg1 = (int) SWIG_AsInt(obj0);
16691 if (PyErr_Occurred()) SWIG_fail;
16692 }
16693 if (obj1) {
16694 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 {
16698 PyThreadState* __tstate = wxPyBeginAllowThreads();
16699 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16700
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16705 return resultobj;
16706 fail:
16707 return NULL;
16708 }
16709
16710
16711 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16712 PyObject *resultobj;
16713 int arg1 = (int) wxDateTime::Inv_Year ;
16714 int result;
16715 PyObject * obj0 = 0 ;
16716 char *kwnames[] = {
16717 (char *) "year", NULL
16718 };
16719
16720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16721 if (obj0) {
16722 arg1 = (int) SWIG_AsInt(obj0);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 }
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 result = (int)wxDateTime::GetCentury(arg1);
16728
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 resultobj = SWIG_FromInt((int)result);
16733 return resultobj;
16734 fail:
16735 return NULL;
16736 }
16737
16738
16739 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16740 PyObject *resultobj;
16741 int arg1 ;
16742 int arg2 = (int) wxDateTime::Gregorian ;
16743 int result;
16744 PyObject * obj0 = 0 ;
16745 PyObject * obj1 = 0 ;
16746 char *kwnames[] = {
16747 (char *) "year",(char *) "cal", NULL
16748 };
16749
16750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16751 arg1 = (int) SWIG_AsInt(obj0);
16752 if (PyErr_Occurred()) SWIG_fail;
16753 if (obj1) {
16754 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16755 if (PyErr_Occurred()) SWIG_fail;
16756 }
16757 {
16758 PyThreadState* __tstate = wxPyBeginAllowThreads();
16759 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16760
16761 wxPyEndAllowThreads(__tstate);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 resultobj = SWIG_FromInt((int)result);
16765 return resultobj;
16766 fail:
16767 return NULL;
16768 }
16769
16770
16771 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16772 PyObject *resultobj;
16773 int arg1 ;
16774 int arg2 = (int) wxDateTime::Inv_Year ;
16775 int arg3 = (int) wxDateTime::Gregorian ;
16776 int result;
16777 PyObject * obj0 = 0 ;
16778 PyObject * obj1 = 0 ;
16779 PyObject * obj2 = 0 ;
16780 char *kwnames[] = {
16781 (char *) "month",(char *) "year",(char *) "cal", NULL
16782 };
16783
16784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16785 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16786 if (PyErr_Occurred()) SWIG_fail;
16787 if (obj1) {
16788 arg2 = (int) SWIG_AsInt(obj1);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 }
16791 if (obj2) {
16792 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16793 if (PyErr_Occurred()) SWIG_fail;
16794 }
16795 {
16796 PyThreadState* __tstate = wxPyBeginAllowThreads();
16797 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16798
16799 wxPyEndAllowThreads(__tstate);
16800 if (PyErr_Occurred()) SWIG_fail;
16801 }
16802 resultobj = SWIG_FromInt((int)result);
16803 return resultobj;
16804 fail:
16805 return NULL;
16806 }
16807
16808
16809 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16810 PyObject *resultobj;
16811 int arg1 ;
16812 int arg2 = (int) wxDateTime::Name_Full ;
16813 wxString result;
16814 PyObject * obj0 = 0 ;
16815 PyObject * obj1 = 0 ;
16816 char *kwnames[] = {
16817 (char *) "month",(char *) "flags", NULL
16818 };
16819
16820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16821 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16822 if (PyErr_Occurred()) SWIG_fail;
16823 if (obj1) {
16824 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 {
16828 PyThreadState* __tstate = wxPyBeginAllowThreads();
16829 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16830
16831 wxPyEndAllowThreads(__tstate);
16832 if (PyErr_Occurred()) SWIG_fail;
16833 }
16834 {
16835 #if wxUSE_UNICODE
16836 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16837 #else
16838 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16839 #endif
16840 }
16841 return resultobj;
16842 fail:
16843 return NULL;
16844 }
16845
16846
16847 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
16848 PyObject *resultobj;
16849 int arg1 ;
16850 int arg2 = (int) wxDateTime::Name_Full ;
16851 wxString result;
16852 PyObject * obj0 = 0 ;
16853 PyObject * obj1 = 0 ;
16854 char *kwnames[] = {
16855 (char *) "weekday",(char *) "flags", NULL
16856 };
16857
16858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
16859 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 if (obj1) {
16862 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 {
16866 PyThreadState* __tstate = wxPyBeginAllowThreads();
16867 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
16868
16869 wxPyEndAllowThreads(__tstate);
16870 if (PyErr_Occurred()) SWIG_fail;
16871 }
16872 {
16873 #if wxUSE_UNICODE
16874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16875 #else
16876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16877 #endif
16878 }
16879 return resultobj;
16880 fail:
16881 return NULL;
16882 }
16883
16884
16885 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
16886 PyObject *resultobj;
16887 wxString *arg1 = (wxString *) 0 ;
16888 wxString *arg2 = (wxString *) 0 ;
16889 bool temp1 = False ;
16890 bool temp2 = False ;
16891 PyObject * obj0 = 0 ;
16892 PyObject * obj1 = 0 ;
16893 char *kwnames[] = {
16894 (char *) "OUTPUT",(char *) "OUTPUT", NULL
16895 };
16896
16897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
16898 {
16899 arg1 = wxString_in_helper(obj0);
16900 if (arg1 == NULL) SWIG_fail;
16901 temp1 = True;
16902 }
16903 {
16904 arg2 = wxString_in_helper(obj1);
16905 if (arg2 == NULL) SWIG_fail;
16906 temp2 = True;
16907 }
16908 {
16909 PyThreadState* __tstate = wxPyBeginAllowThreads();
16910 wxDateTime::GetAmPmStrings(arg1,arg2);
16911
16912 wxPyEndAllowThreads(__tstate);
16913 if (PyErr_Occurred()) SWIG_fail;
16914 }
16915 Py_INCREF(Py_None); resultobj = Py_None;
16916 {
16917 if (temp1)
16918 delete arg1;
16919 }
16920 {
16921 if (temp2)
16922 delete arg2;
16923 }
16924 return resultobj;
16925 fail:
16926 {
16927 if (temp1)
16928 delete arg1;
16929 }
16930 {
16931 if (temp2)
16932 delete arg2;
16933 }
16934 return NULL;
16935 }
16936
16937
16938 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj;
16940 int arg1 = (int) wxDateTime::Inv_Year ;
16941 int arg2 = (int) wxDateTime::Country_Default ;
16942 bool result;
16943 PyObject * obj0 = 0 ;
16944 PyObject * obj1 = 0 ;
16945 char *kwnames[] = {
16946 (char *) "year",(char *) "country", NULL
16947 };
16948
16949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
16950 if (obj0) {
16951 arg1 = (int) SWIG_AsInt(obj0);
16952 if (PyErr_Occurred()) SWIG_fail;
16953 }
16954 if (obj1) {
16955 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 }
16958 {
16959 PyThreadState* __tstate = wxPyBeginAllowThreads();
16960 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
16961
16962 wxPyEndAllowThreads(__tstate);
16963 if (PyErr_Occurred()) SWIG_fail;
16964 }
16965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16966 return resultobj;
16967 fail:
16968 return NULL;
16969 }
16970
16971
16972 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16973 PyObject *resultobj;
16974 int arg1 = (int) wxDateTime::Inv_Year ;
16975 int arg2 = (int) wxDateTime::Country_Default ;
16976 wxDateTime result;
16977 PyObject * obj0 = 0 ;
16978 PyObject * obj1 = 0 ;
16979 char *kwnames[] = {
16980 (char *) "year",(char *) "country", NULL
16981 };
16982
16983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
16984 if (obj0) {
16985 arg1 = (int) SWIG_AsInt(obj0);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 if (obj1) {
16989 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 {
16993 PyThreadState* __tstate = wxPyBeginAllowThreads();
16994 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
16995
16996 wxPyEndAllowThreads(__tstate);
16997 if (PyErr_Occurred()) SWIG_fail;
16998 }
16999 {
17000 wxDateTime * resultptr;
17001 resultptr = new wxDateTime((wxDateTime &) result);
17002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17003 }
17004 return resultobj;
17005 fail:
17006 return NULL;
17007 }
17008
17009
17010 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj;
17012 int arg1 = (int) wxDateTime::Inv_Year ;
17013 int arg2 = (int) wxDateTime::Country_Default ;
17014 wxDateTime result;
17015 PyObject * obj0 = 0 ;
17016 PyObject * obj1 = 0 ;
17017 char *kwnames[] = {
17018 (char *) "year",(char *) "country", NULL
17019 };
17020
17021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17022 if (obj0) {
17023 arg1 = (int) SWIG_AsInt(obj0);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 if (obj1) {
17027 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17033
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 {
17038 wxDateTime * resultptr;
17039 resultptr = new wxDateTime((wxDateTime &) result);
17040 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17041 }
17042 return resultobj;
17043 fail:
17044 return NULL;
17045 }
17046
17047
17048 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17049 PyObject *resultobj;
17050 wxDateTime result;
17051 char *kwnames[] = {
17052 NULL
17053 };
17054
17055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17056 {
17057 PyThreadState* __tstate = wxPyBeginAllowThreads();
17058 result = wxDateTime::Now();
17059
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 {
17064 wxDateTime * resultptr;
17065 resultptr = new wxDateTime((wxDateTime &) result);
17066 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17067 }
17068 return resultobj;
17069 fail:
17070 return NULL;
17071 }
17072
17073
17074 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17075 PyObject *resultobj;
17076 wxDateTime result;
17077 char *kwnames[] = {
17078 NULL
17079 };
17080
17081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17082 {
17083 PyThreadState* __tstate = wxPyBeginAllowThreads();
17084 result = wxDateTime::UNow();
17085
17086 wxPyEndAllowThreads(__tstate);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 {
17090 wxDateTime * resultptr;
17091 resultptr = new wxDateTime((wxDateTime &) result);
17092 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17093 }
17094 return resultobj;
17095 fail:
17096 return NULL;
17097 }
17098
17099
17100 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17101 PyObject *resultobj;
17102 wxDateTime result;
17103 char *kwnames[] = {
17104 NULL
17105 };
17106
17107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17108 {
17109 PyThreadState* __tstate = wxPyBeginAllowThreads();
17110 result = wxDateTime::Today();
17111
17112 wxPyEndAllowThreads(__tstate);
17113 if (PyErr_Occurred()) SWIG_fail;
17114 }
17115 {
17116 wxDateTime * resultptr;
17117 resultptr = new wxDateTime((wxDateTime &) result);
17118 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17119 }
17120 return resultobj;
17121 fail:
17122 return NULL;
17123 }
17124
17125
17126 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17127 PyObject *resultobj;
17128 wxDateTime *result;
17129 char *kwnames[] = {
17130 NULL
17131 };
17132
17133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17134 {
17135 PyThreadState* __tstate = wxPyBeginAllowThreads();
17136 result = (wxDateTime *)new wxDateTime();
17137
17138 wxPyEndAllowThreads(__tstate);
17139 if (PyErr_Occurred()) SWIG_fail;
17140 }
17141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17142 return resultobj;
17143 fail:
17144 return NULL;
17145 }
17146
17147
17148 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17149 PyObject *resultobj;
17150 time_t arg1 ;
17151 wxDateTime *result;
17152 PyObject * obj0 = 0 ;
17153 char *kwnames[] = {
17154 (char *) "timet", NULL
17155 };
17156
17157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17158 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 {
17161 PyThreadState* __tstate = wxPyBeginAllowThreads();
17162 result = (wxDateTime *)new wxDateTime(arg1);
17163
17164 wxPyEndAllowThreads(__tstate);
17165 if (PyErr_Occurred()) SWIG_fail;
17166 }
17167 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17168 return resultobj;
17169 fail:
17170 return NULL;
17171 }
17172
17173
17174 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17175 PyObject *resultobj;
17176 double arg1 ;
17177 wxDateTime *result;
17178 PyObject * obj0 = 0 ;
17179 char *kwnames[] = {
17180 (char *) "jdn", NULL
17181 };
17182
17183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17184 arg1 = (double) SWIG_AsDouble(obj0);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 {
17187 PyThreadState* __tstate = wxPyBeginAllowThreads();
17188 result = (wxDateTime *)new wxDateTime(arg1);
17189
17190 wxPyEndAllowThreads(__tstate);
17191 if (PyErr_Occurred()) SWIG_fail;
17192 }
17193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17194 return resultobj;
17195 fail:
17196 return NULL;
17197 }
17198
17199
17200 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17201 PyObject *resultobj;
17202 int arg1 ;
17203 int arg2 = (int) 0 ;
17204 int arg3 = (int) 0 ;
17205 int arg4 = (int) 0 ;
17206 wxDateTime *result;
17207 PyObject * obj0 = 0 ;
17208 PyObject * obj1 = 0 ;
17209 PyObject * obj2 = 0 ;
17210 PyObject * obj3 = 0 ;
17211 char *kwnames[] = {
17212 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17213 };
17214
17215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17216 arg1 = (int) SWIG_AsInt(obj0);
17217 if (PyErr_Occurred()) SWIG_fail;
17218 if (obj1) {
17219 arg2 = (int) SWIG_AsInt(obj1);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 if (obj2) {
17223 arg3 = (int) SWIG_AsInt(obj2);
17224 if (PyErr_Occurred()) SWIG_fail;
17225 }
17226 if (obj3) {
17227 arg4 = (int) SWIG_AsInt(obj3);
17228 if (PyErr_Occurred()) SWIG_fail;
17229 }
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17233
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17238 return resultobj;
17239 fail:
17240 return NULL;
17241 }
17242
17243
17244 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17245 PyObject *resultobj;
17246 int arg1 ;
17247 int arg2 = (int) wxDateTime::Inv_Month ;
17248 int arg3 = (int) wxDateTime::Inv_Year ;
17249 int arg4 = (int) 0 ;
17250 int arg5 = (int) 0 ;
17251 int arg6 = (int) 0 ;
17252 int arg7 = (int) 0 ;
17253 wxDateTime *result;
17254 PyObject * obj0 = 0 ;
17255 PyObject * obj1 = 0 ;
17256 PyObject * obj2 = 0 ;
17257 PyObject * obj3 = 0 ;
17258 PyObject * obj4 = 0 ;
17259 PyObject * obj5 = 0 ;
17260 PyObject * obj6 = 0 ;
17261 char *kwnames[] = {
17262 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17263 };
17264
17265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17266 arg1 = (int) SWIG_AsInt(obj0);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 if (obj1) {
17269 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17270 if (PyErr_Occurred()) SWIG_fail;
17271 }
17272 if (obj2) {
17273 arg3 = (int) SWIG_AsInt(obj2);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 if (obj3) {
17277 arg4 = (int) SWIG_AsInt(obj3);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 }
17280 if (obj4) {
17281 arg5 = (int) SWIG_AsInt(obj4);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 if (obj5) {
17285 arg6 = (int) SWIG_AsInt(obj5);
17286 if (PyErr_Occurred()) SWIG_fail;
17287 }
17288 if (obj6) {
17289 arg7 = (int) SWIG_AsInt(obj6);
17290 if (PyErr_Occurred()) SWIG_fail;
17291 }
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17295
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17300 return resultobj;
17301 fail:
17302 return NULL;
17303 }
17304
17305
17306 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17307 PyObject *resultobj;
17308 wxDateTime *arg1 = (wxDateTime *) 0 ;
17309 PyObject * obj0 = 0 ;
17310 char *kwnames[] = {
17311 (char *) "self", NULL
17312 };
17313
17314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17317 {
17318 PyThreadState* __tstate = wxPyBeginAllowThreads();
17319 delete arg1;
17320
17321 wxPyEndAllowThreads(__tstate);
17322 if (PyErr_Occurred()) SWIG_fail;
17323 }
17324 Py_INCREF(Py_None); resultobj = Py_None;
17325 return resultobj;
17326 fail:
17327 return NULL;
17328 }
17329
17330
17331 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17332 PyObject *resultobj;
17333 wxDateTime *arg1 = (wxDateTime *) 0 ;
17334 wxDateTime *result;
17335 PyObject * obj0 = 0 ;
17336 char *kwnames[] = {
17337 (char *) "self", NULL
17338 };
17339
17340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 {
17346 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17347 result = (wxDateTime *) &_result_ref;
17348 }
17349
17350 wxPyEndAllowThreads(__tstate);
17351 if (PyErr_Occurred()) SWIG_fail;
17352 }
17353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17354 return resultobj;
17355 fail:
17356 return NULL;
17357 }
17358
17359
17360 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17361 PyObject *resultobj;
17362 wxDateTime *arg1 = (wxDateTime *) 0 ;
17363 time_t arg2 ;
17364 wxDateTime *result;
17365 PyObject * obj0 = 0 ;
17366 PyObject * obj1 = 0 ;
17367 char *kwnames[] = {
17368 (char *) "self",(char *) "timet", NULL
17369 };
17370
17371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17374 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 {
17379 wxDateTime &_result_ref = (arg1)->Set(arg2);
17380 result = (wxDateTime *) &_result_ref;
17381 }
17382
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17387 return resultobj;
17388 fail:
17389 return NULL;
17390 }
17391
17392
17393 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17394 PyObject *resultobj;
17395 wxDateTime *arg1 = (wxDateTime *) 0 ;
17396 double arg2 ;
17397 wxDateTime *result;
17398 PyObject * obj0 = 0 ;
17399 PyObject * obj1 = 0 ;
17400 char *kwnames[] = {
17401 (char *) "self",(char *) "jdn", NULL
17402 };
17403
17404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17407 arg2 = (double) SWIG_AsDouble(obj1);
17408 if (PyErr_Occurred()) SWIG_fail;
17409 {
17410 PyThreadState* __tstate = wxPyBeginAllowThreads();
17411 {
17412 wxDateTime &_result_ref = (arg1)->Set(arg2);
17413 result = (wxDateTime *) &_result_ref;
17414 }
17415
17416 wxPyEndAllowThreads(__tstate);
17417 if (PyErr_Occurred()) SWIG_fail;
17418 }
17419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17420 return resultobj;
17421 fail:
17422 return NULL;
17423 }
17424
17425
17426 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17427 PyObject *resultobj;
17428 wxDateTime *arg1 = (wxDateTime *) 0 ;
17429 int arg2 ;
17430 int arg3 = (int) 0 ;
17431 int arg4 = (int) 0 ;
17432 int arg5 = (int) 0 ;
17433 wxDateTime *result;
17434 PyObject * obj0 = 0 ;
17435 PyObject * obj1 = 0 ;
17436 PyObject * obj2 = 0 ;
17437 PyObject * obj3 = 0 ;
17438 PyObject * obj4 = 0 ;
17439 char *kwnames[] = {
17440 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17441 };
17442
17443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17446 arg2 = (int) SWIG_AsInt(obj1);
17447 if (PyErr_Occurred()) SWIG_fail;
17448 if (obj2) {
17449 arg3 = (int) SWIG_AsInt(obj2);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 if (obj3) {
17453 arg4 = (int) SWIG_AsInt(obj3);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 if (obj4) {
17457 arg5 = (int) SWIG_AsInt(obj4);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 {
17463 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17464 result = (wxDateTime *) &_result_ref;
17465 }
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17471 return resultobj;
17472 fail:
17473 return NULL;
17474 }
17475
17476
17477 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17478 PyObject *resultobj;
17479 wxDateTime *arg1 = (wxDateTime *) 0 ;
17480 int arg2 ;
17481 int arg3 = (int) wxDateTime::Inv_Month ;
17482 int arg4 = (int) wxDateTime::Inv_Year ;
17483 int arg5 = (int) 0 ;
17484 int arg6 = (int) 0 ;
17485 int arg7 = (int) 0 ;
17486 int arg8 = (int) 0 ;
17487 wxDateTime *result;
17488 PyObject * obj0 = 0 ;
17489 PyObject * obj1 = 0 ;
17490 PyObject * obj2 = 0 ;
17491 PyObject * obj3 = 0 ;
17492 PyObject * obj4 = 0 ;
17493 PyObject * obj5 = 0 ;
17494 PyObject * obj6 = 0 ;
17495 PyObject * obj7 = 0 ;
17496 char *kwnames[] = {
17497 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17498 };
17499
17500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17503 arg2 = (int) SWIG_AsInt(obj1);
17504 if (PyErr_Occurred()) SWIG_fail;
17505 if (obj2) {
17506 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 if (obj3) {
17510 arg4 = (int) SWIG_AsInt(obj3);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 }
17513 if (obj4) {
17514 arg5 = (int) SWIG_AsInt(obj4);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 if (obj5) {
17518 arg6 = (int) SWIG_AsInt(obj5);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 if (obj6) {
17522 arg7 = (int) SWIG_AsInt(obj6);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 if (obj7) {
17526 arg8 = (int) SWIG_AsInt(obj7);
17527 if (PyErr_Occurred()) SWIG_fail;
17528 }
17529 {
17530 PyThreadState* __tstate = wxPyBeginAllowThreads();
17531 {
17532 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17533 result = (wxDateTime *) &_result_ref;
17534 }
17535
17536 wxPyEndAllowThreads(__tstate);
17537 if (PyErr_Occurred()) SWIG_fail;
17538 }
17539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17540 return resultobj;
17541 fail:
17542 return NULL;
17543 }
17544
17545
17546 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17547 PyObject *resultobj;
17548 wxDateTime *arg1 = (wxDateTime *) 0 ;
17549 wxDateTime *result;
17550 PyObject * obj0 = 0 ;
17551 char *kwnames[] = {
17552 (char *) "self", NULL
17553 };
17554
17555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17558 {
17559 PyThreadState* __tstate = wxPyBeginAllowThreads();
17560 {
17561 wxDateTime &_result_ref = (arg1)->ResetTime();
17562 result = (wxDateTime *) &_result_ref;
17563 }
17564
17565 wxPyEndAllowThreads(__tstate);
17566 if (PyErr_Occurred()) SWIG_fail;
17567 }
17568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17569 return resultobj;
17570 fail:
17571 return NULL;
17572 }
17573
17574
17575 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17576 PyObject *resultobj;
17577 wxDateTime *arg1 = (wxDateTime *) 0 ;
17578 int arg2 ;
17579 wxDateTime *result;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 char *kwnames[] = {
17583 (char *) "self",(char *) "year", NULL
17584 };
17585
17586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17589 arg2 = (int) SWIG_AsInt(obj1);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 {
17594 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17595 result = (wxDateTime *) &_result_ref;
17596 }
17597
17598 wxPyEndAllowThreads(__tstate);
17599 if (PyErr_Occurred()) SWIG_fail;
17600 }
17601 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17602 return resultobj;
17603 fail:
17604 return NULL;
17605 }
17606
17607
17608 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17609 PyObject *resultobj;
17610 wxDateTime *arg1 = (wxDateTime *) 0 ;
17611 int arg2 ;
17612 wxDateTime *result;
17613 PyObject * obj0 = 0 ;
17614 PyObject * obj1 = 0 ;
17615 char *kwnames[] = {
17616 (char *) "self",(char *) "month", NULL
17617 };
17618
17619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17622 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 {
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 {
17627 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17628 result = (wxDateTime *) &_result_ref;
17629 }
17630
17631 wxPyEndAllowThreads(__tstate);
17632 if (PyErr_Occurred()) SWIG_fail;
17633 }
17634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17635 return resultobj;
17636 fail:
17637 return NULL;
17638 }
17639
17640
17641 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17642 PyObject *resultobj;
17643 wxDateTime *arg1 = (wxDateTime *) 0 ;
17644 int arg2 ;
17645 wxDateTime *result;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 char *kwnames[] = {
17649 (char *) "self",(char *) "day", NULL
17650 };
17651
17652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17655 arg2 = (int) SWIG_AsInt(obj1);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 {
17658 PyThreadState* __tstate = wxPyBeginAllowThreads();
17659 {
17660 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17661 result = (wxDateTime *) &_result_ref;
17662 }
17663
17664 wxPyEndAllowThreads(__tstate);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 }
17667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17668 return resultobj;
17669 fail:
17670 return NULL;
17671 }
17672
17673
17674 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17675 PyObject *resultobj;
17676 wxDateTime *arg1 = (wxDateTime *) 0 ;
17677 int arg2 ;
17678 wxDateTime *result;
17679 PyObject * obj0 = 0 ;
17680 PyObject * obj1 = 0 ;
17681 char *kwnames[] = {
17682 (char *) "self",(char *) "hour", NULL
17683 };
17684
17685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17688 arg2 = (int) SWIG_AsInt(obj1);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 {
17693 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17694 result = (wxDateTime *) &_result_ref;
17695 }
17696
17697 wxPyEndAllowThreads(__tstate);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17701 return resultobj;
17702 fail:
17703 return NULL;
17704 }
17705
17706
17707 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17708 PyObject *resultobj;
17709 wxDateTime *arg1 = (wxDateTime *) 0 ;
17710 int arg2 ;
17711 wxDateTime *result;
17712 PyObject * obj0 = 0 ;
17713 PyObject * obj1 = 0 ;
17714 char *kwnames[] = {
17715 (char *) "self",(char *) "minute", NULL
17716 };
17717
17718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17721 arg2 = (int) SWIG_AsInt(obj1);
17722 if (PyErr_Occurred()) SWIG_fail;
17723 {
17724 PyThreadState* __tstate = wxPyBeginAllowThreads();
17725 {
17726 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17727 result = (wxDateTime *) &_result_ref;
17728 }
17729
17730 wxPyEndAllowThreads(__tstate);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 }
17733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17734 return resultobj;
17735 fail:
17736 return NULL;
17737 }
17738
17739
17740 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17741 PyObject *resultobj;
17742 wxDateTime *arg1 = (wxDateTime *) 0 ;
17743 int arg2 ;
17744 wxDateTime *result;
17745 PyObject * obj0 = 0 ;
17746 PyObject * obj1 = 0 ;
17747 char *kwnames[] = {
17748 (char *) "self",(char *) "second", NULL
17749 };
17750
17751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17754 arg2 = (int) SWIG_AsInt(obj1);
17755 if (PyErr_Occurred()) SWIG_fail;
17756 {
17757 PyThreadState* __tstate = wxPyBeginAllowThreads();
17758 {
17759 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
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_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17774 PyObject *resultobj;
17775 wxDateTime *arg1 = (wxDateTime *) 0 ;
17776 int arg2 ;
17777 wxDateTime *result;
17778 PyObject * obj0 = 0 ;
17779 PyObject * obj1 = 0 ;
17780 char *kwnames[] = {
17781 (char *) "self",(char *) "millisecond", NULL
17782 };
17783
17784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17787 arg2 = (int) SWIG_AsInt(obj1);
17788 if (PyErr_Occurred()) SWIG_fail;
17789 {
17790 PyThreadState* __tstate = wxPyBeginAllowThreads();
17791 {
17792 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17793 result = (wxDateTime *) &_result_ref;
17794 }
17795
17796 wxPyEndAllowThreads(__tstate);
17797 if (PyErr_Occurred()) SWIG_fail;
17798 }
17799 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17800 return resultobj;
17801 fail:
17802 return NULL;
17803 }
17804
17805
17806 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17807 PyObject *resultobj;
17808 wxDateTime *arg1 = (wxDateTime *) 0 ;
17809 int arg2 ;
17810 int arg3 = (int) wxDateTime::Monday_First ;
17811 wxDateTime *result;
17812 PyObject * obj0 = 0 ;
17813 PyObject * obj1 = 0 ;
17814 PyObject * obj2 = 0 ;
17815 char *kwnames[] = {
17816 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17817 };
17818
17819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17822 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17823 if (PyErr_Occurred()) SWIG_fail;
17824 if (obj2) {
17825 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 {
17829 PyThreadState* __tstate = wxPyBeginAllowThreads();
17830 {
17831 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17832 result = (wxDateTime *) &_result_ref;
17833 }
17834
17835 wxPyEndAllowThreads(__tstate);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 }
17838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17839 return resultobj;
17840 fail:
17841 return NULL;
17842 }
17843
17844
17845 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj;
17847 wxDateTime *arg1 = (wxDateTime *) 0 ;
17848 int arg2 ;
17849 int arg3 = (int) wxDateTime::Monday_First ;
17850 wxDateTime result;
17851 PyObject * obj0 = 0 ;
17852 PyObject * obj1 = 0 ;
17853 PyObject * obj2 = 0 ;
17854 char *kwnames[] = {
17855 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17856 };
17857
17858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17861 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 if (obj2) {
17864 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 {
17868 PyThreadState* __tstate = wxPyBeginAllowThreads();
17869 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17870
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 {
17875 wxDateTime * resultptr;
17876 resultptr = new wxDateTime((wxDateTime &) result);
17877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17878 }
17879 return resultobj;
17880 fail:
17881 return NULL;
17882 }
17883
17884
17885 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17886 PyObject *resultobj;
17887 wxDateTime *arg1 = (wxDateTime *) 0 ;
17888 int arg2 ;
17889 wxDateTime *result;
17890 PyObject * obj0 = 0 ;
17891 PyObject * obj1 = 0 ;
17892 char *kwnames[] = {
17893 (char *) "self",(char *) "weekday", NULL
17894 };
17895
17896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
17897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17899 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 {
17902 PyThreadState* __tstate = wxPyBeginAllowThreads();
17903 {
17904 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
17905 result = (wxDateTime *) &_result_ref;
17906 }
17907
17908 wxPyEndAllowThreads(__tstate);
17909 if (PyErr_Occurred()) SWIG_fail;
17910 }
17911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17912 return resultobj;
17913 fail:
17914 return NULL;
17915 }
17916
17917
17918 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj;
17920 wxDateTime *arg1 = (wxDateTime *) 0 ;
17921 int arg2 ;
17922 wxDateTime result;
17923 PyObject * obj0 = 0 ;
17924 PyObject * obj1 = 0 ;
17925 char *kwnames[] = {
17926 (char *) "self",(char *) "weekday", NULL
17927 };
17928
17929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
17930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17932 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
17937
17938 wxPyEndAllowThreads(__tstate);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 {
17942 wxDateTime * resultptr;
17943 resultptr = new wxDateTime((wxDateTime &) result);
17944 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17945 }
17946 return resultobj;
17947 fail:
17948 return NULL;
17949 }
17950
17951
17952 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17953 PyObject *resultobj;
17954 wxDateTime *arg1 = (wxDateTime *) 0 ;
17955 int arg2 ;
17956 wxDateTime *result;
17957 PyObject * obj0 = 0 ;
17958 PyObject * obj1 = 0 ;
17959 char *kwnames[] = {
17960 (char *) "self",(char *) "weekday", NULL
17961 };
17962
17963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
17964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17966 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17967 if (PyErr_Occurred()) SWIG_fail;
17968 {
17969 PyThreadState* __tstate = wxPyBeginAllowThreads();
17970 {
17971 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
17972 result = (wxDateTime *) &_result_ref;
17973 }
17974
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17979 return resultobj;
17980 fail:
17981 return NULL;
17982 }
17983
17984
17985 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17986 PyObject *resultobj;
17987 wxDateTime *arg1 = (wxDateTime *) 0 ;
17988 int arg2 ;
17989 wxDateTime result;
17990 PyObject * obj0 = 0 ;
17991 PyObject * obj1 = 0 ;
17992 char *kwnames[] = {
17993 (char *) "self",(char *) "weekday", NULL
17994 };
17995
17996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
17997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17999 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18004
18005 wxPyEndAllowThreads(__tstate);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 }
18008 {
18009 wxDateTime * resultptr;
18010 resultptr = new wxDateTime((wxDateTime &) result);
18011 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18012 }
18013 return resultobj;
18014 fail:
18015 return NULL;
18016 }
18017
18018
18019 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18020 PyObject *resultobj;
18021 wxDateTime *arg1 = (wxDateTime *) 0 ;
18022 int arg2 ;
18023 int arg3 = (int) 1 ;
18024 int arg4 = (int) wxDateTime::Inv_Month ;
18025 int arg5 = (int) wxDateTime::Inv_Year ;
18026 bool result;
18027 PyObject * obj0 = 0 ;
18028 PyObject * obj1 = 0 ;
18029 PyObject * obj2 = 0 ;
18030 PyObject * obj3 = 0 ;
18031 PyObject * obj4 = 0 ;
18032 char *kwnames[] = {
18033 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18034 };
18035
18036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18039 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18040 if (PyErr_Occurred()) SWIG_fail;
18041 if (obj2) {
18042 arg3 = (int) SWIG_AsInt(obj2);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 if (obj3) {
18046 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18047 if (PyErr_Occurred()) SWIG_fail;
18048 }
18049 if (obj4) {
18050 arg5 = (int) SWIG_AsInt(obj4);
18051 if (PyErr_Occurred()) SWIG_fail;
18052 }
18053 {
18054 PyThreadState* __tstate = wxPyBeginAllowThreads();
18055 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18056
18057 wxPyEndAllowThreads(__tstate);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 }
18060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18061 return resultobj;
18062 fail:
18063 return NULL;
18064 }
18065
18066
18067 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18068 PyObject *resultobj;
18069 wxDateTime *arg1 = (wxDateTime *) 0 ;
18070 int arg2 ;
18071 int arg3 = (int) wxDateTime::Inv_Month ;
18072 int arg4 = (int) wxDateTime::Inv_Year ;
18073 bool result;
18074 PyObject * obj0 = 0 ;
18075 PyObject * obj1 = 0 ;
18076 PyObject * obj2 = 0 ;
18077 PyObject * obj3 = 0 ;
18078 char *kwnames[] = {
18079 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18080 };
18081
18082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18085 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18086 if (PyErr_Occurred()) SWIG_fail;
18087 if (obj2) {
18088 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 if (obj3) {
18092 arg4 = (int) SWIG_AsInt(obj3);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 {
18096 PyThreadState* __tstate = wxPyBeginAllowThreads();
18097 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18098
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18103 return resultobj;
18104 fail:
18105 return NULL;
18106 }
18107
18108
18109 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18110 PyObject *resultobj;
18111 wxDateTime *arg1 = (wxDateTime *) 0 ;
18112 int arg2 ;
18113 int arg3 = (int) wxDateTime::Inv_Month ;
18114 int arg4 = (int) wxDateTime::Inv_Year ;
18115 wxDateTime result;
18116 PyObject * obj0 = 0 ;
18117 PyObject * obj1 = 0 ;
18118 PyObject * obj2 = 0 ;
18119 PyObject * obj3 = 0 ;
18120 char *kwnames[] = {
18121 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18122 };
18123
18124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18127 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 if (obj2) {
18130 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18131 if (PyErr_Occurred()) SWIG_fail;
18132 }
18133 if (obj3) {
18134 arg4 = (int) SWIG_AsInt(obj3);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 }
18137 {
18138 PyThreadState* __tstate = wxPyBeginAllowThreads();
18139 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18140
18141 wxPyEndAllowThreads(__tstate);
18142 if (PyErr_Occurred()) SWIG_fail;
18143 }
18144 {
18145 wxDateTime * resultptr;
18146 resultptr = new wxDateTime((wxDateTime &) result);
18147 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18148 }
18149 return resultobj;
18150 fail:
18151 return NULL;
18152 }
18153
18154
18155 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj;
18157 wxDateTime *arg1 = (wxDateTime *) 0 ;
18158 int arg2 ;
18159 int arg3 = (int) wxDateTime::Mon ;
18160 int arg4 = (int) wxDateTime::Monday_First ;
18161 bool result;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 PyObject * obj2 = 0 ;
18165 PyObject * obj3 = 0 ;
18166 char *kwnames[] = {
18167 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18168 };
18169
18170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18173 arg2 = (int) SWIG_AsInt(obj1);
18174 if (PyErr_Occurred()) SWIG_fail;
18175 if (obj2) {
18176 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 if (obj3) {
18180 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18186
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18191 return resultobj;
18192 fail:
18193 return NULL;
18194 }
18195
18196
18197 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj;
18199 wxDateTime *arg1 = (wxDateTime *) 0 ;
18200 int arg2 ;
18201 int arg3 = (int) wxDateTime::Mon ;
18202 int arg4 = (int) wxDateTime::Monday_First ;
18203 wxDateTime result;
18204 PyObject * obj0 = 0 ;
18205 PyObject * obj1 = 0 ;
18206 PyObject * obj2 = 0 ;
18207 PyObject * obj3 = 0 ;
18208 char *kwnames[] = {
18209 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18210 };
18211
18212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18215 arg2 = (int) SWIG_AsInt(obj1);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 if (obj2) {
18218 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18219 if (PyErr_Occurred()) SWIG_fail;
18220 }
18221 if (obj3) {
18222 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 }
18225 {
18226 PyThreadState* __tstate = wxPyBeginAllowThreads();
18227 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18228
18229 wxPyEndAllowThreads(__tstate);
18230 if (PyErr_Occurred()) SWIG_fail;
18231 }
18232 {
18233 wxDateTime * resultptr;
18234 resultptr = new wxDateTime((wxDateTime &) result);
18235 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18236 }
18237 return resultobj;
18238 fail:
18239 return NULL;
18240 }
18241
18242
18243 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18244 PyObject *resultobj;
18245 wxDateTime *arg1 = (wxDateTime *) 0 ;
18246 int arg2 = (int) wxDateTime::Inv_Month ;
18247 int arg3 = (int) wxDateTime::Inv_Year ;
18248 wxDateTime *result;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18251 PyObject * obj2 = 0 ;
18252 char *kwnames[] = {
18253 (char *) "self",(char *) "month",(char *) "year", NULL
18254 };
18255
18256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18259 if (obj1) {
18260 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 }
18263 if (obj2) {
18264 arg3 = (int) SWIG_AsInt(obj2);
18265 if (PyErr_Occurred()) SWIG_fail;
18266 }
18267 {
18268 PyThreadState* __tstate = wxPyBeginAllowThreads();
18269 {
18270 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18271 result = (wxDateTime *) &_result_ref;
18272 }
18273
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18278 return resultobj;
18279 fail:
18280 return NULL;
18281 }
18282
18283
18284 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18285 PyObject *resultobj;
18286 wxDateTime *arg1 = (wxDateTime *) 0 ;
18287 int arg2 = (int) wxDateTime::Inv_Month ;
18288 int arg3 = (int) wxDateTime::Inv_Year ;
18289 wxDateTime result;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 PyObject * obj2 = 0 ;
18293 char *kwnames[] = {
18294 (char *) "self",(char *) "month",(char *) "year", NULL
18295 };
18296
18297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18300 if (obj1) {
18301 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18302 if (PyErr_Occurred()) SWIG_fail;
18303 }
18304 if (obj2) {
18305 arg3 = (int) SWIG_AsInt(obj2);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 {
18309 PyThreadState* __tstate = wxPyBeginAllowThreads();
18310 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18311
18312 wxPyEndAllowThreads(__tstate);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 }
18315 {
18316 wxDateTime * resultptr;
18317 resultptr = new wxDateTime((wxDateTime &) result);
18318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18319 }
18320 return resultobj;
18321 fail:
18322 return NULL;
18323 }
18324
18325
18326 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj;
18328 wxDateTime *arg1 = (wxDateTime *) 0 ;
18329 int arg2 ;
18330 wxDateTime *result;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 char *kwnames[] = {
18334 (char *) "self",(char *) "yday", NULL
18335 };
18336
18337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18340 arg2 = (int) SWIG_AsInt(obj1);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 {
18345 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18346 result = (wxDateTime *) &_result_ref;
18347 }
18348
18349 wxPyEndAllowThreads(__tstate);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18353 return resultobj;
18354 fail:
18355 return NULL;
18356 }
18357
18358
18359 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18360 PyObject *resultobj;
18361 wxDateTime *arg1 = (wxDateTime *) 0 ;
18362 int arg2 ;
18363 wxDateTime result;
18364 PyObject * obj0 = 0 ;
18365 PyObject * obj1 = 0 ;
18366 char *kwnames[] = {
18367 (char *) "self",(char *) "yday", NULL
18368 };
18369
18370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18373 arg2 = (int) SWIG_AsInt(obj1);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 {
18376 PyThreadState* __tstate = wxPyBeginAllowThreads();
18377 result = (arg1)->GetYearDay(arg2);
18378
18379 wxPyEndAllowThreads(__tstate);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 {
18383 wxDateTime * resultptr;
18384 resultptr = new wxDateTime((wxDateTime &) result);
18385 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18386 }
18387 return resultobj;
18388 fail:
18389 return NULL;
18390 }
18391
18392
18393 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18394 PyObject *resultobj;
18395 wxDateTime *arg1 = (wxDateTime *) 0 ;
18396 double result;
18397 PyObject * obj0 = 0 ;
18398 char *kwnames[] = {
18399 (char *) "self", NULL
18400 };
18401
18402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18405 {
18406 PyThreadState* __tstate = wxPyBeginAllowThreads();
18407 result = (double)(arg1)->GetJulianDayNumber();
18408
18409 wxPyEndAllowThreads(__tstate);
18410 if (PyErr_Occurred()) SWIG_fail;
18411 }
18412 resultobj = SWIG_FromDouble((double)result);
18413 return resultobj;
18414 fail:
18415 return NULL;
18416 }
18417
18418
18419 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18420 PyObject *resultobj;
18421 wxDateTime *arg1 = (wxDateTime *) 0 ;
18422 double result;
18423 PyObject * obj0 = 0 ;
18424 char *kwnames[] = {
18425 (char *) "self", NULL
18426 };
18427
18428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18431 {
18432 PyThreadState* __tstate = wxPyBeginAllowThreads();
18433 result = (double)(arg1)->GetJDN();
18434
18435 wxPyEndAllowThreads(__tstate);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 resultobj = SWIG_FromDouble((double)result);
18439 return resultobj;
18440 fail:
18441 return NULL;
18442 }
18443
18444
18445 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18446 PyObject *resultobj;
18447 wxDateTime *arg1 = (wxDateTime *) 0 ;
18448 double result;
18449 PyObject * obj0 = 0 ;
18450 char *kwnames[] = {
18451 (char *) "self", NULL
18452 };
18453
18454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18457 {
18458 PyThreadState* __tstate = wxPyBeginAllowThreads();
18459 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18460
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 resultobj = SWIG_FromDouble((double)result);
18465 return resultobj;
18466 fail:
18467 return NULL;
18468 }
18469
18470
18471 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18472 PyObject *resultobj;
18473 wxDateTime *arg1 = (wxDateTime *) 0 ;
18474 double result;
18475 PyObject * obj0 = 0 ;
18476 char *kwnames[] = {
18477 (char *) "self", NULL
18478 };
18479
18480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18483 {
18484 PyThreadState* __tstate = wxPyBeginAllowThreads();
18485 result = (double)(arg1)->GetMJD();
18486
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_FromDouble((double)result);
18491 return resultobj;
18492 fail:
18493 return NULL;
18494 }
18495
18496
18497 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18498 PyObject *resultobj;
18499 wxDateTime *arg1 = (wxDateTime *) 0 ;
18500 double result;
18501 PyObject * obj0 = 0 ;
18502 char *kwnames[] = {
18503 (char *) "self", NULL
18504 };
18505
18506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18509 {
18510 PyThreadState* __tstate = wxPyBeginAllowThreads();
18511 result = (double)(arg1)->GetRataDie();
18512
18513 wxPyEndAllowThreads(__tstate);
18514 if (PyErr_Occurred()) SWIG_fail;
18515 }
18516 resultobj = SWIG_FromDouble((double)result);
18517 return resultobj;
18518 fail:
18519 return NULL;
18520 }
18521
18522
18523 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18524 PyObject *resultobj;
18525 wxDateTime *arg1 = (wxDateTime *) 0 ;
18526 wxDateTime::TimeZone *arg2 = 0 ;
18527 bool arg3 = (bool) False ;
18528 wxDateTime result;
18529 bool temp2 = False ;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 PyObject * obj2 = 0 ;
18533 char *kwnames[] = {
18534 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18535 };
18536
18537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18540 {
18541 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18542 temp2 = True;
18543 }
18544 if (obj2) {
18545 arg3 = (bool) SWIG_AsBool(obj2);
18546 if (PyErr_Occurred()) SWIG_fail;
18547 }
18548 {
18549 PyThreadState* __tstate = wxPyBeginAllowThreads();
18550 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18551
18552 wxPyEndAllowThreads(__tstate);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 {
18556 wxDateTime * resultptr;
18557 resultptr = new wxDateTime((wxDateTime &) result);
18558 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18559 }
18560 {
18561 if (temp2) delete arg2;
18562 }
18563 return resultobj;
18564 fail:
18565 {
18566 if (temp2) delete arg2;
18567 }
18568 return NULL;
18569 }
18570
18571
18572 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj;
18574 wxDateTime *arg1 = (wxDateTime *) 0 ;
18575 wxDateTime::TimeZone *arg2 = 0 ;
18576 bool arg3 = (bool) False ;
18577 wxDateTime *result;
18578 bool temp2 = False ;
18579 PyObject * obj0 = 0 ;
18580 PyObject * obj1 = 0 ;
18581 PyObject * obj2 = 0 ;
18582 char *kwnames[] = {
18583 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18584 };
18585
18586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18589 {
18590 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18591 temp2 = True;
18592 }
18593 if (obj2) {
18594 arg3 = (bool) SWIG_AsBool(obj2);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 }
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 {
18600 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18601 result = (wxDateTime *) &_result_ref;
18602 }
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18608 {
18609 if (temp2) delete arg2;
18610 }
18611 return resultobj;
18612 fail:
18613 {
18614 if (temp2) delete arg2;
18615 }
18616 return NULL;
18617 }
18618
18619
18620 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18621 PyObject *resultobj;
18622 wxDateTime *arg1 = (wxDateTime *) 0 ;
18623 bool arg2 = (bool) False ;
18624 wxDateTime result;
18625 PyObject * obj0 = 0 ;
18626 PyObject * obj1 = 0 ;
18627 char *kwnames[] = {
18628 (char *) "self",(char *) "noDST", NULL
18629 };
18630
18631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18634 if (obj1) {
18635 arg2 = (bool) SWIG_AsBool(obj1);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 {
18639 PyThreadState* __tstate = wxPyBeginAllowThreads();
18640 result = (arg1)->ToGMT(arg2);
18641
18642 wxPyEndAllowThreads(__tstate);
18643 if (PyErr_Occurred()) SWIG_fail;
18644 }
18645 {
18646 wxDateTime * resultptr;
18647 resultptr = new wxDateTime((wxDateTime &) result);
18648 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18649 }
18650 return resultobj;
18651 fail:
18652 return NULL;
18653 }
18654
18655
18656 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18657 PyObject *resultobj;
18658 wxDateTime *arg1 = (wxDateTime *) 0 ;
18659 bool arg2 = (bool) False ;
18660 wxDateTime *result;
18661 PyObject * obj0 = 0 ;
18662 PyObject * obj1 = 0 ;
18663 char *kwnames[] = {
18664 (char *) "self",(char *) "noDST", NULL
18665 };
18666
18667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18670 if (obj1) {
18671 arg2 = (bool) SWIG_AsBool(obj1);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 {
18675 PyThreadState* __tstate = wxPyBeginAllowThreads();
18676 {
18677 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18678 result = (wxDateTime *) &_result_ref;
18679 }
18680
18681 wxPyEndAllowThreads(__tstate);
18682 if (PyErr_Occurred()) SWIG_fail;
18683 }
18684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18685 return resultobj;
18686 fail:
18687 return NULL;
18688 }
18689
18690
18691 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18692 PyObject *resultobj;
18693 wxDateTime *arg1 = (wxDateTime *) 0 ;
18694 int arg2 = (int) wxDateTime::Country_Default ;
18695 int result;
18696 PyObject * obj0 = 0 ;
18697 PyObject * obj1 = 0 ;
18698 char *kwnames[] = {
18699 (char *) "self",(char *) "country", NULL
18700 };
18701
18702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18705 if (obj1) {
18706 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18707 if (PyErr_Occurred()) SWIG_fail;
18708 }
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18712
18713 wxPyEndAllowThreads(__tstate);
18714 if (PyErr_Occurred()) SWIG_fail;
18715 }
18716 resultobj = SWIG_FromInt((int)result);
18717 return resultobj;
18718 fail:
18719 return NULL;
18720 }
18721
18722
18723 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18724 PyObject *resultobj;
18725 wxDateTime *arg1 = (wxDateTime *) 0 ;
18726 bool result;
18727 PyObject * obj0 = 0 ;
18728 char *kwnames[] = {
18729 (char *) "self", NULL
18730 };
18731
18732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 result = (bool)((wxDateTime const *)arg1)->IsValid();
18738
18739 wxPyEndAllowThreads(__tstate);
18740 if (PyErr_Occurred()) SWIG_fail;
18741 }
18742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18743 return resultobj;
18744 fail:
18745 return NULL;
18746 }
18747
18748
18749 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18750 PyObject *resultobj;
18751 wxDateTime *arg1 = (wxDateTime *) 0 ;
18752 time_t result;
18753 PyObject * obj0 = 0 ;
18754 char *kwnames[] = {
18755 (char *) "self", NULL
18756 };
18757
18758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18761 {
18762 PyThreadState* __tstate = wxPyBeginAllowThreads();
18763 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18764
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18769 return resultobj;
18770 fail:
18771 return NULL;
18772 }
18773
18774
18775 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18776 PyObject *resultobj;
18777 wxDateTime *arg1 = (wxDateTime *) 0 ;
18778 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18779 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18780 int result;
18781 bool temp2 = False ;
18782 PyObject * obj0 = 0 ;
18783 PyObject * obj1 = 0 ;
18784 char *kwnames[] = {
18785 (char *) "self",(char *) "tz", NULL
18786 };
18787
18788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18791 if (obj1) {
18792 {
18793 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18794 temp2 = True;
18795 }
18796 }
18797 {
18798 PyThreadState* __tstate = wxPyBeginAllowThreads();
18799 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18800
18801 wxPyEndAllowThreads(__tstate);
18802 if (PyErr_Occurred()) SWIG_fail;
18803 }
18804 resultobj = SWIG_FromInt((int)result);
18805 {
18806 if (temp2) delete arg2;
18807 }
18808 return resultobj;
18809 fail:
18810 {
18811 if (temp2) delete arg2;
18812 }
18813 return NULL;
18814 }
18815
18816
18817 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18818 PyObject *resultobj;
18819 wxDateTime *arg1 = (wxDateTime *) 0 ;
18820 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18821 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18822 int result;
18823 bool temp2 = False ;
18824 PyObject * obj0 = 0 ;
18825 PyObject * obj1 = 0 ;
18826 char *kwnames[] = {
18827 (char *) "self",(char *) "tz", NULL
18828 };
18829
18830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18833 if (obj1) {
18834 {
18835 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18836 temp2 = True;
18837 }
18838 }
18839 {
18840 PyThreadState* __tstate = wxPyBeginAllowThreads();
18841 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18842
18843 wxPyEndAllowThreads(__tstate);
18844 if (PyErr_Occurred()) SWIG_fail;
18845 }
18846 resultobj = SWIG_FromInt((int)result);
18847 {
18848 if (temp2) delete arg2;
18849 }
18850 return resultobj;
18851 fail:
18852 {
18853 if (temp2) delete arg2;
18854 }
18855 return NULL;
18856 }
18857
18858
18859 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18860 PyObject *resultobj;
18861 wxDateTime *arg1 = (wxDateTime *) 0 ;
18862 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18863 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18864 int result;
18865 bool temp2 = False ;
18866 PyObject * obj0 = 0 ;
18867 PyObject * obj1 = 0 ;
18868 char *kwnames[] = {
18869 (char *) "self",(char *) "tz", NULL
18870 };
18871
18872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
18873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18875 if (obj1) {
18876 {
18877 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18878 temp2 = True;
18879 }
18880 }
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
18884
18885 wxPyEndAllowThreads(__tstate);
18886 if (PyErr_Occurred()) SWIG_fail;
18887 }
18888 resultobj = SWIG_FromInt((int)result);
18889 {
18890 if (temp2) delete arg2;
18891 }
18892 return resultobj;
18893 fail:
18894 {
18895 if (temp2) delete arg2;
18896 }
18897 return NULL;
18898 }
18899
18900
18901 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18902 PyObject *resultobj;
18903 wxDateTime *arg1 = (wxDateTime *) 0 ;
18904 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18905 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18906 int result;
18907 bool temp2 = False ;
18908 PyObject * obj0 = 0 ;
18909 PyObject * obj1 = 0 ;
18910 char *kwnames[] = {
18911 (char *) "self",(char *) "tz", NULL
18912 };
18913
18914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
18915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18917 if (obj1) {
18918 {
18919 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18920 temp2 = True;
18921 }
18922 }
18923 {
18924 PyThreadState* __tstate = wxPyBeginAllowThreads();
18925 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
18926
18927 wxPyEndAllowThreads(__tstate);
18928 if (PyErr_Occurred()) SWIG_fail;
18929 }
18930 resultobj = SWIG_FromInt((int)result);
18931 {
18932 if (temp2) delete arg2;
18933 }
18934 return resultobj;
18935 fail:
18936 {
18937 if (temp2) delete arg2;
18938 }
18939 return NULL;
18940 }
18941
18942
18943 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18944 PyObject *resultobj;
18945 wxDateTime *arg1 = (wxDateTime *) 0 ;
18946 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18947 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18948 int result;
18949 bool temp2 = False ;
18950 PyObject * obj0 = 0 ;
18951 PyObject * obj1 = 0 ;
18952 char *kwnames[] = {
18953 (char *) "self",(char *) "tz", NULL
18954 };
18955
18956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
18957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18959 if (obj1) {
18960 {
18961 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18962 temp2 = True;
18963 }
18964 }
18965 {
18966 PyThreadState* __tstate = wxPyBeginAllowThreads();
18967 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
18968
18969 wxPyEndAllowThreads(__tstate);
18970 if (PyErr_Occurred()) SWIG_fail;
18971 }
18972 resultobj = SWIG_FromInt((int)result);
18973 {
18974 if (temp2) delete arg2;
18975 }
18976 return resultobj;
18977 fail:
18978 {
18979 if (temp2) delete arg2;
18980 }
18981 return NULL;
18982 }
18983
18984
18985 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18986 PyObject *resultobj;
18987 wxDateTime *arg1 = (wxDateTime *) 0 ;
18988 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18989 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18990 int result;
18991 bool temp2 = False ;
18992 PyObject * obj0 = 0 ;
18993 PyObject * obj1 = 0 ;
18994 char *kwnames[] = {
18995 (char *) "self",(char *) "tz", NULL
18996 };
18997
18998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
18999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19001 if (obj1) {
19002 {
19003 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19004 temp2 = True;
19005 }
19006 }
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19010
19011 wxPyEndAllowThreads(__tstate);
19012 if (PyErr_Occurred()) SWIG_fail;
19013 }
19014 resultobj = SWIG_FromInt((int)result);
19015 {
19016 if (temp2) delete arg2;
19017 }
19018 return resultobj;
19019 fail:
19020 {
19021 if (temp2) delete arg2;
19022 }
19023 return NULL;
19024 }
19025
19026
19027 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19028 PyObject *resultobj;
19029 wxDateTime *arg1 = (wxDateTime *) 0 ;
19030 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19031 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19032 int result;
19033 bool temp2 = False ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self",(char *) "tz", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19043 if (obj1) {
19044 {
19045 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19046 temp2 = True;
19047 }
19048 }
19049 {
19050 PyThreadState* __tstate = wxPyBeginAllowThreads();
19051 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19052
19053 wxPyEndAllowThreads(__tstate);
19054 if (PyErr_Occurred()) SWIG_fail;
19055 }
19056 resultobj = SWIG_FromInt((int)result);
19057 {
19058 if (temp2) delete arg2;
19059 }
19060 return resultobj;
19061 fail:
19062 {
19063 if (temp2) delete arg2;
19064 }
19065 return NULL;
19066 }
19067
19068
19069 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj;
19071 wxDateTime *arg1 = (wxDateTime *) 0 ;
19072 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19073 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19074 int result;
19075 bool temp2 = False ;
19076 PyObject * obj0 = 0 ;
19077 PyObject * obj1 = 0 ;
19078 char *kwnames[] = {
19079 (char *) "self",(char *) "tz", NULL
19080 };
19081
19082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19085 if (obj1) {
19086 {
19087 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19088 temp2 = True;
19089 }
19090 }
19091 {
19092 PyThreadState* __tstate = wxPyBeginAllowThreads();
19093 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19094
19095 wxPyEndAllowThreads(__tstate);
19096 if (PyErr_Occurred()) SWIG_fail;
19097 }
19098 resultobj = SWIG_FromInt((int)result);
19099 {
19100 if (temp2) delete arg2;
19101 }
19102 return resultobj;
19103 fail:
19104 {
19105 if (temp2) delete arg2;
19106 }
19107 return NULL;
19108 }
19109
19110
19111 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19112 PyObject *resultobj;
19113 wxDateTime *arg1 = (wxDateTime *) 0 ;
19114 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19115 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19116 int result;
19117 bool temp2 = False ;
19118 PyObject * obj0 = 0 ;
19119 PyObject * obj1 = 0 ;
19120 char *kwnames[] = {
19121 (char *) "self",(char *) "tz", NULL
19122 };
19123
19124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19127 if (obj1) {
19128 {
19129 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19130 temp2 = True;
19131 }
19132 }
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19136
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_FromInt((int)result);
19141 {
19142 if (temp2) delete arg2;
19143 }
19144 return resultobj;
19145 fail:
19146 {
19147 if (temp2) delete arg2;
19148 }
19149 return NULL;
19150 }
19151
19152
19153 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19154 PyObject *resultobj;
19155 wxDateTime *arg1 = (wxDateTime *) 0 ;
19156 int arg2 = (int) wxDateTime::Monday_First ;
19157 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19158 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19159 int result;
19160 bool temp3 = False ;
19161 PyObject * obj0 = 0 ;
19162 PyObject * obj1 = 0 ;
19163 PyObject * obj2 = 0 ;
19164 char *kwnames[] = {
19165 (char *) "self",(char *) "flags",(char *) "tz", NULL
19166 };
19167
19168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19171 if (obj1) {
19172 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19173 if (PyErr_Occurred()) SWIG_fail;
19174 }
19175 if (obj2) {
19176 {
19177 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19178 temp3 = True;
19179 }
19180 }
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19184
19185 wxPyEndAllowThreads(__tstate);
19186 if (PyErr_Occurred()) SWIG_fail;
19187 }
19188 resultobj = SWIG_FromInt((int)result);
19189 {
19190 if (temp3) delete arg3;
19191 }
19192 return resultobj;
19193 fail:
19194 {
19195 if (temp3) delete arg3;
19196 }
19197 return NULL;
19198 }
19199
19200
19201 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19202 PyObject *resultobj;
19203 wxDateTime *arg1 = (wxDateTime *) 0 ;
19204 int arg2 = (int) wxDateTime::Monday_First ;
19205 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19206 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19207 int result;
19208 bool temp3 = False ;
19209 PyObject * obj0 = 0 ;
19210 PyObject * obj1 = 0 ;
19211 PyObject * obj2 = 0 ;
19212 char *kwnames[] = {
19213 (char *) "self",(char *) "flags",(char *) "tz", NULL
19214 };
19215
19216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19219 if (obj1) {
19220 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19221 if (PyErr_Occurred()) SWIG_fail;
19222 }
19223 if (obj2) {
19224 {
19225 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19226 temp3 = True;
19227 }
19228 }
19229 {
19230 PyThreadState* __tstate = wxPyBeginAllowThreads();
19231 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19232
19233 wxPyEndAllowThreads(__tstate);
19234 if (PyErr_Occurred()) SWIG_fail;
19235 }
19236 resultobj = SWIG_FromInt((int)result);
19237 {
19238 if (temp3) delete arg3;
19239 }
19240 return resultobj;
19241 fail:
19242 {
19243 if (temp3) delete arg3;
19244 }
19245 return NULL;
19246 }
19247
19248
19249 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19250 PyObject *resultobj;
19251 wxDateTime *arg1 = (wxDateTime *) 0 ;
19252 int arg2 = (int) wxDateTime::Country_Default ;
19253 bool result;
19254 PyObject * obj0 = 0 ;
19255 PyObject * obj1 = 0 ;
19256 char *kwnames[] = {
19257 (char *) "self",(char *) "country", NULL
19258 };
19259
19260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",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 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19265 if (PyErr_Occurred()) SWIG_fail;
19266 }
19267 {
19268 PyThreadState* __tstate = wxPyBeginAllowThreads();
19269 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19270
19271 wxPyEndAllowThreads(__tstate);
19272 if (PyErr_Occurred()) SWIG_fail;
19273 }
19274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19275 return resultobj;
19276 fail:
19277 return NULL;
19278 }
19279
19280
19281 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19282 PyObject *resultobj;
19283 wxDateTime *arg1 = (wxDateTime *) 0 ;
19284 wxDateTime *arg2 = 0 ;
19285 bool result;
19286 PyObject * obj0 = 0 ;
19287 PyObject * obj1 = 0 ;
19288 char *kwnames[] = {
19289 (char *) "self",(char *) "datetime", NULL
19290 };
19291
19292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19296 SWIG_POINTER_EXCEPTION | 0)) == -1)
19297 SWIG_fail;
19298 if (arg2 == NULL) {
19299 PyErr_SetString(PyExc_TypeError,"null reference");
19300 SWIG_fail;
19301 }
19302 {
19303 PyThreadState* __tstate = wxPyBeginAllowThreads();
19304 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19305
19306 wxPyEndAllowThreads(__tstate);
19307 if (PyErr_Occurred()) SWIG_fail;
19308 }
19309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19310 return resultobj;
19311 fail:
19312 return NULL;
19313 }
19314
19315
19316 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19317 PyObject *resultobj;
19318 wxDateTime *arg1 = (wxDateTime *) 0 ;
19319 wxDateTime *arg2 = 0 ;
19320 bool result;
19321 PyObject * obj0 = 0 ;
19322 PyObject * obj1 = 0 ;
19323 char *kwnames[] = {
19324 (char *) "self",(char *) "datetime", NULL
19325 };
19326
19327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19330 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19331 SWIG_POINTER_EXCEPTION | 0)) == -1)
19332 SWIG_fail;
19333 if (arg2 == NULL) {
19334 PyErr_SetString(PyExc_TypeError,"null reference");
19335 SWIG_fail;
19336 }
19337 {
19338 PyThreadState* __tstate = wxPyBeginAllowThreads();
19339 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19340
19341 wxPyEndAllowThreads(__tstate);
19342 if (PyErr_Occurred()) SWIG_fail;
19343 }
19344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19345 return resultobj;
19346 fail:
19347 return NULL;
19348 }
19349
19350
19351 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19352 PyObject *resultobj;
19353 wxDateTime *arg1 = (wxDateTime *) 0 ;
19354 wxDateTime *arg2 = 0 ;
19355 bool result;
19356 PyObject * obj0 = 0 ;
19357 PyObject * obj1 = 0 ;
19358 char *kwnames[] = {
19359 (char *) "self",(char *) "datetime", NULL
19360 };
19361
19362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19365 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19366 SWIG_POINTER_EXCEPTION | 0)) == -1)
19367 SWIG_fail;
19368 if (arg2 == NULL) {
19369 PyErr_SetString(PyExc_TypeError,"null reference");
19370 SWIG_fail;
19371 }
19372 {
19373 PyThreadState* __tstate = wxPyBeginAllowThreads();
19374 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19375
19376 wxPyEndAllowThreads(__tstate);
19377 if (PyErr_Occurred()) SWIG_fail;
19378 }
19379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19380 return resultobj;
19381 fail:
19382 return NULL;
19383 }
19384
19385
19386 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19387 PyObject *resultobj;
19388 wxDateTime *arg1 = (wxDateTime *) 0 ;
19389 wxDateTime *arg2 = 0 ;
19390 wxDateTime *arg3 = 0 ;
19391 bool result;
19392 PyObject * obj0 = 0 ;
19393 PyObject * obj1 = 0 ;
19394 PyObject * obj2 = 0 ;
19395 char *kwnames[] = {
19396 (char *) "self",(char *) "t1",(char *) "t2", NULL
19397 };
19398
19399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19403 SWIG_POINTER_EXCEPTION | 0)) == -1)
19404 SWIG_fail;
19405 if (arg2 == NULL) {
19406 PyErr_SetString(PyExc_TypeError,"null reference");
19407 SWIG_fail;
19408 }
19409 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19410 SWIG_POINTER_EXCEPTION | 0)) == -1)
19411 SWIG_fail;
19412 if (arg3 == NULL) {
19413 PyErr_SetString(PyExc_TypeError,"null reference");
19414 SWIG_fail;
19415 }
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19419
19420 wxPyEndAllowThreads(__tstate);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 }
19423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19424 return resultobj;
19425 fail:
19426 return NULL;
19427 }
19428
19429
19430 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19431 PyObject *resultobj;
19432 wxDateTime *arg1 = (wxDateTime *) 0 ;
19433 wxDateTime *arg2 = 0 ;
19434 wxDateTime *arg3 = 0 ;
19435 bool result;
19436 PyObject * obj0 = 0 ;
19437 PyObject * obj1 = 0 ;
19438 PyObject * obj2 = 0 ;
19439 char *kwnames[] = {
19440 (char *) "self",(char *) "t1",(char *) "t2", NULL
19441 };
19442
19443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19446 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19447 SWIG_POINTER_EXCEPTION | 0)) == -1)
19448 SWIG_fail;
19449 if (arg2 == NULL) {
19450 PyErr_SetString(PyExc_TypeError,"null reference");
19451 SWIG_fail;
19452 }
19453 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19454 SWIG_POINTER_EXCEPTION | 0)) == -1)
19455 SWIG_fail;
19456 if (arg3 == NULL) {
19457 PyErr_SetString(PyExc_TypeError,"null reference");
19458 SWIG_fail;
19459 }
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19463
19464 wxPyEndAllowThreads(__tstate);
19465 if (PyErr_Occurred()) SWIG_fail;
19466 }
19467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19468 return resultobj;
19469 fail:
19470 return NULL;
19471 }
19472
19473
19474 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19475 PyObject *resultobj;
19476 wxDateTime *arg1 = (wxDateTime *) 0 ;
19477 wxDateTime *arg2 = 0 ;
19478 bool result;
19479 PyObject * obj0 = 0 ;
19480 PyObject * obj1 = 0 ;
19481 char *kwnames[] = {
19482 (char *) "self",(char *) "dt", NULL
19483 };
19484
19485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19489 SWIG_POINTER_EXCEPTION | 0)) == -1)
19490 SWIG_fail;
19491 if (arg2 == NULL) {
19492 PyErr_SetString(PyExc_TypeError,"null reference");
19493 SWIG_fail;
19494 }
19495 {
19496 PyThreadState* __tstate = wxPyBeginAllowThreads();
19497 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19498
19499 wxPyEndAllowThreads(__tstate);
19500 if (PyErr_Occurred()) SWIG_fail;
19501 }
19502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19503 return resultobj;
19504 fail:
19505 return NULL;
19506 }
19507
19508
19509 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19510 PyObject *resultobj;
19511 wxDateTime *arg1 = (wxDateTime *) 0 ;
19512 wxDateTime *arg2 = 0 ;
19513 bool result;
19514 PyObject * obj0 = 0 ;
19515 PyObject * obj1 = 0 ;
19516 char *kwnames[] = {
19517 (char *) "self",(char *) "dt", NULL
19518 };
19519
19520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19523 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19524 SWIG_POINTER_EXCEPTION | 0)) == -1)
19525 SWIG_fail;
19526 if (arg2 == NULL) {
19527 PyErr_SetString(PyExc_TypeError,"null reference");
19528 SWIG_fail;
19529 }
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19533
19534 wxPyEndAllowThreads(__tstate);
19535 if (PyErr_Occurred()) SWIG_fail;
19536 }
19537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19538 return resultobj;
19539 fail:
19540 return NULL;
19541 }
19542
19543
19544 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19545 PyObject *resultobj;
19546 wxDateTime *arg1 = (wxDateTime *) 0 ;
19547 wxDateTime *arg2 = 0 ;
19548 wxTimeSpan *arg3 = 0 ;
19549 bool result;
19550 PyObject * obj0 = 0 ;
19551 PyObject * obj1 = 0 ;
19552 PyObject * obj2 = 0 ;
19553 char *kwnames[] = {
19554 (char *) "self",(char *) "dt",(char *) "ts", NULL
19555 };
19556
19557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19561 SWIG_POINTER_EXCEPTION | 0)) == -1)
19562 SWIG_fail;
19563 if (arg2 == NULL) {
19564 PyErr_SetString(PyExc_TypeError,"null reference");
19565 SWIG_fail;
19566 }
19567 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19568 SWIG_POINTER_EXCEPTION | 0)) == -1)
19569 SWIG_fail;
19570 if (arg3 == NULL) {
19571 PyErr_SetString(PyExc_TypeError,"null reference");
19572 SWIG_fail;
19573 }
19574 {
19575 PyThreadState* __tstate = wxPyBeginAllowThreads();
19576 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19577
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
19581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19582 return resultobj;
19583 fail:
19584 return NULL;
19585 }
19586
19587
19588 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19589 PyObject *resultobj;
19590 wxDateTime *arg1 = (wxDateTime *) 0 ;
19591 wxTimeSpan *arg2 = 0 ;
19592 wxDateTime *result;
19593 PyObject * obj0 = 0 ;
19594 PyObject * obj1 = 0 ;
19595 char *kwnames[] = {
19596 (char *) "self",(char *) "diff", NULL
19597 };
19598
19599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19602 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19603 SWIG_POINTER_EXCEPTION | 0)) == -1)
19604 SWIG_fail;
19605 if (arg2 == NULL) {
19606 PyErr_SetString(PyExc_TypeError,"null reference");
19607 SWIG_fail;
19608 }
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 {
19612 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19613 result = (wxDateTime *) &_result_ref;
19614 }
19615
19616 wxPyEndAllowThreads(__tstate);
19617 if (PyErr_Occurred()) SWIG_fail;
19618 }
19619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19620 return resultobj;
19621 fail:
19622 return NULL;
19623 }
19624
19625
19626 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19627 PyObject *resultobj;
19628 wxDateTime *arg1 = (wxDateTime *) 0 ;
19629 wxDateSpan *arg2 = 0 ;
19630 wxDateTime *result;
19631 PyObject * obj0 = 0 ;
19632 PyObject * obj1 = 0 ;
19633 char *kwnames[] = {
19634 (char *) "self",(char *) "diff", NULL
19635 };
19636
19637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19641 SWIG_POINTER_EXCEPTION | 0)) == -1)
19642 SWIG_fail;
19643 if (arg2 == NULL) {
19644 PyErr_SetString(PyExc_TypeError,"null reference");
19645 SWIG_fail;
19646 }
19647 {
19648 PyThreadState* __tstate = wxPyBeginAllowThreads();
19649 {
19650 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19651 result = (wxDateTime *) &_result_ref;
19652 }
19653
19654 wxPyEndAllowThreads(__tstate);
19655 if (PyErr_Occurred()) SWIG_fail;
19656 }
19657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19658 return resultobj;
19659 fail:
19660 return NULL;
19661 }
19662
19663
19664 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19665 PyObject *resultobj;
19666 wxDateTime *arg1 = (wxDateTime *) 0 ;
19667 wxTimeSpan *arg2 = 0 ;
19668 wxDateTime *result;
19669 PyObject * obj0 = 0 ;
19670 PyObject * obj1 = 0 ;
19671 char *kwnames[] = {
19672 (char *) "self",(char *) "diff", NULL
19673 };
19674
19675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19678 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19679 SWIG_POINTER_EXCEPTION | 0)) == -1)
19680 SWIG_fail;
19681 if (arg2 == NULL) {
19682 PyErr_SetString(PyExc_TypeError,"null reference");
19683 SWIG_fail;
19684 }
19685 {
19686 PyThreadState* __tstate = wxPyBeginAllowThreads();
19687 {
19688 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19689 result = (wxDateTime *) &_result_ref;
19690 }
19691
19692 wxPyEndAllowThreads(__tstate);
19693 if (PyErr_Occurred()) SWIG_fail;
19694 }
19695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19696 return resultobj;
19697 fail:
19698 return NULL;
19699 }
19700
19701
19702 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19703 PyObject *resultobj;
19704 wxDateTime *arg1 = (wxDateTime *) 0 ;
19705 wxDateSpan *arg2 = 0 ;
19706 wxDateTime *result;
19707 PyObject * obj0 = 0 ;
19708 PyObject * obj1 = 0 ;
19709 char *kwnames[] = {
19710 (char *) "self",(char *) "diff", NULL
19711 };
19712
19713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19716 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19717 SWIG_POINTER_EXCEPTION | 0)) == -1)
19718 SWIG_fail;
19719 if (arg2 == NULL) {
19720 PyErr_SetString(PyExc_TypeError,"null reference");
19721 SWIG_fail;
19722 }
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 {
19726 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19727 result = (wxDateTime *) &_result_ref;
19728 }
19729
19730 wxPyEndAllowThreads(__tstate);
19731 if (PyErr_Occurred()) SWIG_fail;
19732 }
19733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19734 return resultobj;
19735 fail:
19736 return NULL;
19737 }
19738
19739
19740 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19741 PyObject *resultobj;
19742 wxDateTime *arg1 = (wxDateTime *) 0 ;
19743 wxDateTime *arg2 = 0 ;
19744 wxTimeSpan result;
19745 PyObject * obj0 = 0 ;
19746 PyObject * obj1 = 0 ;
19747 char *kwnames[] = {
19748 (char *) "self",(char *) "dt", NULL
19749 };
19750
19751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19754 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19755 SWIG_POINTER_EXCEPTION | 0)) == -1)
19756 SWIG_fail;
19757 if (arg2 == NULL) {
19758 PyErr_SetString(PyExc_TypeError,"null reference");
19759 SWIG_fail;
19760 }
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19764
19765 wxPyEndAllowThreads(__tstate);
19766 if (PyErr_Occurred()) SWIG_fail;
19767 }
19768 {
19769 wxTimeSpan * resultptr;
19770 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19771 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19772 }
19773 return resultobj;
19774 fail:
19775 return NULL;
19776 }
19777
19778
19779 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19780 PyObject *resultobj;
19781 wxDateTime *arg1 = (wxDateTime *) 0 ;
19782 wxTimeSpan *arg2 = 0 ;
19783 wxDateTime *result;
19784 PyObject * obj0 = 0 ;
19785 PyObject * obj1 = 0 ;
19786
19787 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19791 SWIG_POINTER_EXCEPTION | 0)) == -1)
19792 SWIG_fail;
19793 if (arg2 == NULL) {
19794 PyErr_SetString(PyExc_TypeError,"null reference");
19795 SWIG_fail;
19796 }
19797 {
19798 PyThreadState* __tstate = wxPyBeginAllowThreads();
19799 {
19800 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19801 result = (wxDateTime *) &_result_ref;
19802 }
19803
19804 wxPyEndAllowThreads(__tstate);
19805 if (PyErr_Occurred()) SWIG_fail;
19806 }
19807 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19808 return resultobj;
19809 fail:
19810 return NULL;
19811 }
19812
19813
19814 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
19815 PyObject *resultobj;
19816 wxDateTime *arg1 = (wxDateTime *) 0 ;
19817 wxDateSpan *arg2 = 0 ;
19818 wxDateTime *result;
19819 PyObject * obj0 = 0 ;
19820 PyObject * obj1 = 0 ;
19821
19822 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19825 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19826 SWIG_POINTER_EXCEPTION | 0)) == -1)
19827 SWIG_fail;
19828 if (arg2 == NULL) {
19829 PyErr_SetString(PyExc_TypeError,"null reference");
19830 SWIG_fail;
19831 }
19832 {
19833 PyThreadState* __tstate = wxPyBeginAllowThreads();
19834 {
19835 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
19836 result = (wxDateTime *) &_result_ref;
19837 }
19838
19839 wxPyEndAllowThreads(__tstate);
19840 if (PyErr_Occurred()) SWIG_fail;
19841 }
19842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19843 return resultobj;
19844 fail:
19845 return NULL;
19846 }
19847
19848
19849 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
19850 int argc;
19851 PyObject *argv[3];
19852 int ii;
19853
19854 argc = PyObject_Length(args);
19855 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19856 argv[ii] = PyTuple_GetItem(args,ii);
19857 }
19858 if (argc == 2) {
19859 int _v;
19860 {
19861 void *ptr;
19862 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19863 _v = 0;
19864 PyErr_Clear();
19865 } else {
19866 _v = 1;
19867 }
19868 }
19869 if (_v) {
19870 {
19871 void *ptr;
19872 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19873 _v = 0;
19874 PyErr_Clear();
19875 } else {
19876 _v = 1;
19877 }
19878 }
19879 if (_v) {
19880 return _wrap_DateTime___iadd____SWIG_0(self,args);
19881 }
19882 }
19883 }
19884 if (argc == 2) {
19885 int _v;
19886 {
19887 void *ptr;
19888 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19889 _v = 0;
19890 PyErr_Clear();
19891 } else {
19892 _v = 1;
19893 }
19894 }
19895 if (_v) {
19896 {
19897 void *ptr;
19898 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
19899 _v = 0;
19900 PyErr_Clear();
19901 } else {
19902 _v = 1;
19903 }
19904 }
19905 if (_v) {
19906 return _wrap_DateTime___iadd____SWIG_1(self,args);
19907 }
19908 }
19909 }
19910
19911 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
19912 return NULL;
19913 }
19914
19915
19916 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
19917 PyObject *resultobj;
19918 wxDateTime *arg1 = (wxDateTime *) 0 ;
19919 wxTimeSpan *arg2 = 0 ;
19920 wxDateTime *result;
19921 PyObject * obj0 = 0 ;
19922 PyObject * obj1 = 0 ;
19923
19924 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
19925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19927 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19928 SWIG_POINTER_EXCEPTION | 0)) == -1)
19929 SWIG_fail;
19930 if (arg2 == NULL) {
19931 PyErr_SetString(PyExc_TypeError,"null reference");
19932 SWIG_fail;
19933 }
19934 {
19935 PyThreadState* __tstate = wxPyBeginAllowThreads();
19936 {
19937 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
19938 result = (wxDateTime *) &_result_ref;
19939 }
19940
19941 wxPyEndAllowThreads(__tstate);
19942 if (PyErr_Occurred()) SWIG_fail;
19943 }
19944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19945 return resultobj;
19946 fail:
19947 return NULL;
19948 }
19949
19950
19951 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
19952 PyObject *resultobj;
19953 wxDateTime *arg1 = (wxDateTime *) 0 ;
19954 wxDateSpan *arg2 = 0 ;
19955 wxDateTime *result;
19956 PyObject * obj0 = 0 ;
19957 PyObject * obj1 = 0 ;
19958
19959 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&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)->operator -=((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___isub__(PyObject *self, PyObject *args) {
19987 int argc;
19988 PyObject *argv[3];
19989 int ii;
19990
19991 argc = PyObject_Length(args);
19992 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19993 argv[ii] = PyTuple_GetItem(args,ii);
19994 }
19995 if (argc == 2) {
19996 int _v;
19997 {
19998 void *ptr;
19999 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20000 _v = 0;
20001 PyErr_Clear();
20002 } else {
20003 _v = 1;
20004 }
20005 }
20006 if (_v) {
20007 {
20008 void *ptr;
20009 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20010 _v = 0;
20011 PyErr_Clear();
20012 } else {
20013 _v = 1;
20014 }
20015 }
20016 if (_v) {
20017 return _wrap_DateTime___isub____SWIG_0(self,args);
20018 }
20019 }
20020 }
20021 if (argc == 2) {
20022 int _v;
20023 {
20024 void *ptr;
20025 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20026 _v = 0;
20027 PyErr_Clear();
20028 } else {
20029 _v = 1;
20030 }
20031 }
20032 if (_v) {
20033 {
20034 void *ptr;
20035 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20036 _v = 0;
20037 PyErr_Clear();
20038 } else {
20039 _v = 1;
20040 }
20041 }
20042 if (_v) {
20043 return _wrap_DateTime___isub____SWIG_1(self,args);
20044 }
20045 }
20046 }
20047
20048 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20049 return NULL;
20050 }
20051
20052
20053 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20054 PyObject *resultobj;
20055 wxDateTime *arg1 = (wxDateTime *) 0 ;
20056 wxTimeSpan *arg2 = 0 ;
20057 wxDateTime result;
20058 PyObject * obj0 = 0 ;
20059 PyObject * obj1 = 0 ;
20060
20061 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20064 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20065 SWIG_POINTER_EXCEPTION | 0)) == -1)
20066 SWIG_fail;
20067 if (arg2 == NULL) {
20068 PyErr_SetString(PyExc_TypeError,"null reference");
20069 SWIG_fail;
20070 }
20071 {
20072 PyThreadState* __tstate = wxPyBeginAllowThreads();
20073 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20074
20075 wxPyEndAllowThreads(__tstate);
20076 if (PyErr_Occurred()) SWIG_fail;
20077 }
20078 {
20079 wxDateTime * resultptr;
20080 resultptr = new wxDateTime((wxDateTime &) result);
20081 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20082 }
20083 return resultobj;
20084 fail:
20085 return NULL;
20086 }
20087
20088
20089 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20090 PyObject *resultobj;
20091 wxDateTime *arg1 = (wxDateTime *) 0 ;
20092 wxDateSpan *arg2 = 0 ;
20093 wxDateTime result;
20094 PyObject * obj0 = 0 ;
20095 PyObject * obj1 = 0 ;
20096
20097 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20101 SWIG_POINTER_EXCEPTION | 0)) == -1)
20102 SWIG_fail;
20103 if (arg2 == NULL) {
20104 PyErr_SetString(PyExc_TypeError,"null reference");
20105 SWIG_fail;
20106 }
20107 {
20108 PyThreadState* __tstate = wxPyBeginAllowThreads();
20109 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20110
20111 wxPyEndAllowThreads(__tstate);
20112 if (PyErr_Occurred()) SWIG_fail;
20113 }
20114 {
20115 wxDateTime * resultptr;
20116 resultptr = new wxDateTime((wxDateTime &) result);
20117 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20118 }
20119 return resultobj;
20120 fail:
20121 return NULL;
20122 }
20123
20124
20125 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20126 int argc;
20127 PyObject *argv[3];
20128 int ii;
20129
20130 argc = PyObject_Length(args);
20131 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20132 argv[ii] = PyTuple_GetItem(args,ii);
20133 }
20134 if (argc == 2) {
20135 int _v;
20136 {
20137 void *ptr;
20138 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20139 _v = 0;
20140 PyErr_Clear();
20141 } else {
20142 _v = 1;
20143 }
20144 }
20145 if (_v) {
20146 {
20147 void *ptr;
20148 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20149 _v = 0;
20150 PyErr_Clear();
20151 } else {
20152 _v = 1;
20153 }
20154 }
20155 if (_v) {
20156 return _wrap_DateTime___add____SWIG_0(self,args);
20157 }
20158 }
20159 }
20160 if (argc == 2) {
20161 int _v;
20162 {
20163 void *ptr;
20164 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20165 _v = 0;
20166 PyErr_Clear();
20167 } else {
20168 _v = 1;
20169 }
20170 }
20171 if (_v) {
20172 {
20173 void *ptr;
20174 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20175 _v = 0;
20176 PyErr_Clear();
20177 } else {
20178 _v = 1;
20179 }
20180 }
20181 if (_v) {
20182 return _wrap_DateTime___add____SWIG_1(self,args);
20183 }
20184 }
20185 }
20186
20187 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20188 return NULL;
20189 }
20190
20191
20192 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20193 PyObject *resultobj;
20194 wxDateTime *arg1 = (wxDateTime *) 0 ;
20195 wxDateTime *arg2 = 0 ;
20196 wxTimeSpan result;
20197 PyObject * obj0 = 0 ;
20198 PyObject * obj1 = 0 ;
20199
20200 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20204 SWIG_POINTER_EXCEPTION | 0)) == -1)
20205 SWIG_fail;
20206 if (arg2 == NULL) {
20207 PyErr_SetString(PyExc_TypeError,"null reference");
20208 SWIG_fail;
20209 }
20210 {
20211 PyThreadState* __tstate = wxPyBeginAllowThreads();
20212 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20213
20214 wxPyEndAllowThreads(__tstate);
20215 if (PyErr_Occurred()) SWIG_fail;
20216 }
20217 {
20218 wxTimeSpan * resultptr;
20219 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20220 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20221 }
20222 return resultobj;
20223 fail:
20224 return NULL;
20225 }
20226
20227
20228 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20229 PyObject *resultobj;
20230 wxDateTime *arg1 = (wxDateTime *) 0 ;
20231 wxTimeSpan *arg2 = 0 ;
20232 wxDateTime result;
20233 PyObject * obj0 = 0 ;
20234 PyObject * obj1 = 0 ;
20235
20236 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20240 SWIG_POINTER_EXCEPTION | 0)) == -1)
20241 SWIG_fail;
20242 if (arg2 == NULL) {
20243 PyErr_SetString(PyExc_TypeError,"null reference");
20244 SWIG_fail;
20245 }
20246 {
20247 PyThreadState* __tstate = wxPyBeginAllowThreads();
20248 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20249
20250 wxPyEndAllowThreads(__tstate);
20251 if (PyErr_Occurred()) SWIG_fail;
20252 }
20253 {
20254 wxDateTime * resultptr;
20255 resultptr = new wxDateTime((wxDateTime &) result);
20256 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20257 }
20258 return resultobj;
20259 fail:
20260 return NULL;
20261 }
20262
20263
20264 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20265 PyObject *resultobj;
20266 wxDateTime *arg1 = (wxDateTime *) 0 ;
20267 wxDateSpan *arg2 = 0 ;
20268 wxDateTime result;
20269 PyObject * obj0 = 0 ;
20270 PyObject * obj1 = 0 ;
20271
20272 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20276 SWIG_POINTER_EXCEPTION | 0)) == -1)
20277 SWIG_fail;
20278 if (arg2 == NULL) {
20279 PyErr_SetString(PyExc_TypeError,"null reference");
20280 SWIG_fail;
20281 }
20282 {
20283 PyThreadState* __tstate = wxPyBeginAllowThreads();
20284 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20285
20286 wxPyEndAllowThreads(__tstate);
20287 if (PyErr_Occurred()) SWIG_fail;
20288 }
20289 {
20290 wxDateTime * resultptr;
20291 resultptr = new wxDateTime((wxDateTime &) result);
20292 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20293 }
20294 return resultobj;
20295 fail:
20296 return NULL;
20297 }
20298
20299
20300 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20301 int argc;
20302 PyObject *argv[3];
20303 int ii;
20304
20305 argc = PyObject_Length(args);
20306 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20307 argv[ii] = PyTuple_GetItem(args,ii);
20308 }
20309 if (argc == 2) {
20310 int _v;
20311 {
20312 void *ptr;
20313 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20314 _v = 0;
20315 PyErr_Clear();
20316 } else {
20317 _v = 1;
20318 }
20319 }
20320 if (_v) {
20321 {
20322 void *ptr;
20323 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20324 _v = 0;
20325 PyErr_Clear();
20326 } else {
20327 _v = 1;
20328 }
20329 }
20330 if (_v) {
20331 return _wrap_DateTime___sub____SWIG_0(self,args);
20332 }
20333 }
20334 }
20335 if (argc == 2) {
20336 int _v;
20337 {
20338 void *ptr;
20339 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20340 _v = 0;
20341 PyErr_Clear();
20342 } else {
20343 _v = 1;
20344 }
20345 }
20346 if (_v) {
20347 {
20348 void *ptr;
20349 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20350 _v = 0;
20351 PyErr_Clear();
20352 } else {
20353 _v = 1;
20354 }
20355 }
20356 if (_v) {
20357 return _wrap_DateTime___sub____SWIG_1(self,args);
20358 }
20359 }
20360 }
20361 if (argc == 2) {
20362 int _v;
20363 {
20364 void *ptr;
20365 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20366 _v = 0;
20367 PyErr_Clear();
20368 } else {
20369 _v = 1;
20370 }
20371 }
20372 if (_v) {
20373 {
20374 void *ptr;
20375 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20376 _v = 0;
20377 PyErr_Clear();
20378 } else {
20379 _v = 1;
20380 }
20381 }
20382 if (_v) {
20383 return _wrap_DateTime___sub____SWIG_2(self,args);
20384 }
20385 }
20386 }
20387
20388 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20389 return NULL;
20390 }
20391
20392
20393 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20394 PyObject *resultobj;
20395 wxDateTime *arg1 = (wxDateTime *) 0 ;
20396 wxDateTime *arg2 = (wxDateTime *) 0 ;
20397 bool result;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400
20401 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20406 {
20407 PyThreadState* __tstate = wxPyBeginAllowThreads();
20408 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20409
20410 wxPyEndAllowThreads(__tstate);
20411 if (PyErr_Occurred()) SWIG_fail;
20412 }
20413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20414 return resultobj;
20415 fail:
20416 return NULL;
20417 }
20418
20419
20420 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20421 PyObject *resultobj;
20422 wxDateTime *arg1 = (wxDateTime *) 0 ;
20423 wxDateTime *arg2 = (wxDateTime *) 0 ;
20424 bool result;
20425 PyObject * obj0 = 0 ;
20426 PyObject * obj1 = 0 ;
20427
20428 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20431 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20433 {
20434 PyThreadState* __tstate = wxPyBeginAllowThreads();
20435 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20436
20437 wxPyEndAllowThreads(__tstate);
20438 if (PyErr_Occurred()) SWIG_fail;
20439 }
20440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20441 return resultobj;
20442 fail:
20443 return NULL;
20444 }
20445
20446
20447 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20448 PyObject *resultobj;
20449 wxDateTime *arg1 = (wxDateTime *) 0 ;
20450 wxDateTime *arg2 = (wxDateTime *) 0 ;
20451 bool result;
20452 PyObject * obj0 = 0 ;
20453 PyObject * obj1 = 0 ;
20454
20455 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20458 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20460 {
20461 PyThreadState* __tstate = wxPyBeginAllowThreads();
20462 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20463
20464 wxPyEndAllowThreads(__tstate);
20465 if (PyErr_Occurred()) SWIG_fail;
20466 }
20467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20468 return resultobj;
20469 fail:
20470 return NULL;
20471 }
20472
20473
20474 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20475 PyObject *resultobj;
20476 wxDateTime *arg1 = (wxDateTime *) 0 ;
20477 wxDateTime *arg2 = (wxDateTime *) 0 ;
20478 bool result;
20479 PyObject * obj0 = 0 ;
20480 PyObject * obj1 = 0 ;
20481
20482 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20485 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20487 {
20488 PyThreadState* __tstate = wxPyBeginAllowThreads();
20489 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20490
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20495 return resultobj;
20496 fail:
20497 return NULL;
20498 }
20499
20500
20501 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20502 PyObject *resultobj;
20503 wxDateTime *arg1 = (wxDateTime *) 0 ;
20504 wxDateTime *arg2 = (wxDateTime *) 0 ;
20505 bool result;
20506 PyObject * obj0 = 0 ;
20507 PyObject * obj1 = 0 ;
20508
20509 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20514 {
20515 PyThreadState* __tstate = wxPyBeginAllowThreads();
20516 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20517
20518 wxPyEndAllowThreads(__tstate);
20519 if (PyErr_Occurred()) SWIG_fail;
20520 }
20521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20522 return resultobj;
20523 fail:
20524 return NULL;
20525 }
20526
20527
20528 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20529 PyObject *resultobj;
20530 wxDateTime *arg1 = (wxDateTime *) 0 ;
20531 wxDateTime *arg2 = (wxDateTime *) 0 ;
20532 bool result;
20533 PyObject * obj0 = 0 ;
20534 PyObject * obj1 = 0 ;
20535
20536 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20539 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20541 {
20542 PyThreadState* __tstate = wxPyBeginAllowThreads();
20543 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20544
20545 wxPyEndAllowThreads(__tstate);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 }
20548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20549 return resultobj;
20550 fail:
20551 return NULL;
20552 }
20553
20554
20555 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20556 PyObject *resultobj;
20557 wxDateTime *arg1 = (wxDateTime *) 0 ;
20558 wxString *arg2 = 0 ;
20559 int result;
20560 bool temp2 = False ;
20561 PyObject * obj0 = 0 ;
20562 PyObject * obj1 = 0 ;
20563 char *kwnames[] = {
20564 (char *) "self",(char *) "date", NULL
20565 };
20566
20567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20570 {
20571 arg2 = wxString_in_helper(obj1);
20572 if (arg2 == NULL) SWIG_fail;
20573 temp2 = True;
20574 }
20575 {
20576 PyThreadState* __tstate = wxPyBeginAllowThreads();
20577 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20578
20579 wxPyEndAllowThreads(__tstate);
20580 if (PyErr_Occurred()) SWIG_fail;
20581 }
20582 resultobj = SWIG_FromInt((int)result);
20583 {
20584 if (temp2)
20585 delete arg2;
20586 }
20587 return resultobj;
20588 fail:
20589 {
20590 if (temp2)
20591 delete arg2;
20592 }
20593 return NULL;
20594 }
20595
20596
20597 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj;
20599 wxDateTime *arg1 = (wxDateTime *) 0 ;
20600 wxString *arg2 = 0 ;
20601 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20602 wxString *arg3 = (wxString *) &arg3_defvalue ;
20603 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20604 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20605 int result;
20606 bool temp2 = False ;
20607 bool temp3 = False ;
20608 PyObject * obj0 = 0 ;
20609 PyObject * obj1 = 0 ;
20610 PyObject * obj2 = 0 ;
20611 PyObject * obj3 = 0 ;
20612 char *kwnames[] = {
20613 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20614 };
20615
20616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20619 {
20620 arg2 = wxString_in_helper(obj1);
20621 if (arg2 == NULL) SWIG_fail;
20622 temp2 = True;
20623 }
20624 if (obj2) {
20625 {
20626 arg3 = wxString_in_helper(obj2);
20627 if (arg3 == NULL) SWIG_fail;
20628 temp3 = True;
20629 }
20630 }
20631 if (obj3) {
20632 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20633 SWIG_POINTER_EXCEPTION | 0)) == -1)
20634 SWIG_fail;
20635 if (arg4 == NULL) {
20636 PyErr_SetString(PyExc_TypeError,"null reference");
20637 SWIG_fail;
20638 }
20639 }
20640 {
20641 PyThreadState* __tstate = wxPyBeginAllowThreads();
20642 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20643
20644 wxPyEndAllowThreads(__tstate);
20645 if (PyErr_Occurred()) SWIG_fail;
20646 }
20647 resultobj = SWIG_FromInt((int)result);
20648 {
20649 if (temp2)
20650 delete arg2;
20651 }
20652 {
20653 if (temp3)
20654 delete arg3;
20655 }
20656 return resultobj;
20657 fail:
20658 {
20659 if (temp2)
20660 delete arg2;
20661 }
20662 {
20663 if (temp3)
20664 delete arg3;
20665 }
20666 return NULL;
20667 }
20668
20669
20670 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20671 PyObject *resultobj;
20672 wxDateTime *arg1 = (wxDateTime *) 0 ;
20673 wxString *arg2 = 0 ;
20674 int result;
20675 bool temp2 = False ;
20676 PyObject * obj0 = 0 ;
20677 PyObject * obj1 = 0 ;
20678 char *kwnames[] = {
20679 (char *) "self",(char *) "datetime", NULL
20680 };
20681
20682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20685 {
20686 arg2 = wxString_in_helper(obj1);
20687 if (arg2 == NULL) SWIG_fail;
20688 temp2 = True;
20689 }
20690 {
20691 PyThreadState* __tstate = wxPyBeginAllowThreads();
20692 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20693
20694 wxPyEndAllowThreads(__tstate);
20695 if (PyErr_Occurred()) SWIG_fail;
20696 }
20697 resultobj = SWIG_FromInt((int)result);
20698 {
20699 if (temp2)
20700 delete arg2;
20701 }
20702 return resultobj;
20703 fail:
20704 {
20705 if (temp2)
20706 delete arg2;
20707 }
20708 return NULL;
20709 }
20710
20711
20712 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20713 PyObject *resultobj;
20714 wxDateTime *arg1 = (wxDateTime *) 0 ;
20715 wxString *arg2 = 0 ;
20716 int result;
20717 bool temp2 = False ;
20718 PyObject * obj0 = 0 ;
20719 PyObject * obj1 = 0 ;
20720 char *kwnames[] = {
20721 (char *) "self",(char *) "date", NULL
20722 };
20723
20724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20727 {
20728 arg2 = wxString_in_helper(obj1);
20729 if (arg2 == NULL) SWIG_fail;
20730 temp2 = True;
20731 }
20732 {
20733 PyThreadState* __tstate = wxPyBeginAllowThreads();
20734 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20735
20736 wxPyEndAllowThreads(__tstate);
20737 if (PyErr_Occurred()) SWIG_fail;
20738 }
20739 resultobj = SWIG_FromInt((int)result);
20740 {
20741 if (temp2)
20742 delete arg2;
20743 }
20744 return resultobj;
20745 fail:
20746 {
20747 if (temp2)
20748 delete arg2;
20749 }
20750 return NULL;
20751 }
20752
20753
20754 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20755 PyObject *resultobj;
20756 wxDateTime *arg1 = (wxDateTime *) 0 ;
20757 wxString *arg2 = 0 ;
20758 int result;
20759 bool temp2 = False ;
20760 PyObject * obj0 = 0 ;
20761 PyObject * obj1 = 0 ;
20762 char *kwnames[] = {
20763 (char *) "self",(char *) "time", NULL
20764 };
20765
20766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20769 {
20770 arg2 = wxString_in_helper(obj1);
20771 if (arg2 == NULL) SWIG_fail;
20772 temp2 = True;
20773 }
20774 {
20775 PyThreadState* __tstate = wxPyBeginAllowThreads();
20776 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20777
20778 wxPyEndAllowThreads(__tstate);
20779 if (PyErr_Occurred()) SWIG_fail;
20780 }
20781 resultobj = SWIG_FromInt((int)result);
20782 {
20783 if (temp2)
20784 delete arg2;
20785 }
20786 return resultobj;
20787 fail:
20788 {
20789 if (temp2)
20790 delete arg2;
20791 }
20792 return NULL;
20793 }
20794
20795
20796 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20797 PyObject *resultobj;
20798 wxDateTime *arg1 = (wxDateTime *) 0 ;
20799 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20800 wxString *arg2 = (wxString *) &arg2_defvalue ;
20801 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20802 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20803 wxString result;
20804 bool temp2 = False ;
20805 bool temp3 = False ;
20806 PyObject * obj0 = 0 ;
20807 PyObject * obj1 = 0 ;
20808 PyObject * obj2 = 0 ;
20809 char *kwnames[] = {
20810 (char *) "self",(char *) "format",(char *) "tz", NULL
20811 };
20812
20813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
20814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20816 if (obj1) {
20817 {
20818 arg2 = wxString_in_helper(obj1);
20819 if (arg2 == NULL) SWIG_fail;
20820 temp2 = True;
20821 }
20822 }
20823 if (obj2) {
20824 {
20825 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
20826 temp3 = True;
20827 }
20828 }
20829 {
20830 PyThreadState* __tstate = wxPyBeginAllowThreads();
20831 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
20832
20833 wxPyEndAllowThreads(__tstate);
20834 if (PyErr_Occurred()) SWIG_fail;
20835 }
20836 {
20837 #if wxUSE_UNICODE
20838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20839 #else
20840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20841 #endif
20842 }
20843 {
20844 if (temp2)
20845 delete arg2;
20846 }
20847 {
20848 if (temp3) delete arg3;
20849 }
20850 return resultobj;
20851 fail:
20852 {
20853 if (temp2)
20854 delete arg2;
20855 }
20856 {
20857 if (temp3) delete arg3;
20858 }
20859 return NULL;
20860 }
20861
20862
20863 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20864 PyObject *resultobj;
20865 wxDateTime *arg1 = (wxDateTime *) 0 ;
20866 wxString result;
20867 PyObject * obj0 = 0 ;
20868 char *kwnames[] = {
20869 (char *) "self", NULL
20870 };
20871
20872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
20873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20875 {
20876 PyThreadState* __tstate = wxPyBeginAllowThreads();
20877 result = ((wxDateTime const *)arg1)->FormatDate();
20878
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 {
20883 #if wxUSE_UNICODE
20884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20885 #else
20886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20887 #endif
20888 }
20889 return resultobj;
20890 fail:
20891 return NULL;
20892 }
20893
20894
20895 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20896 PyObject *resultobj;
20897 wxDateTime *arg1 = (wxDateTime *) 0 ;
20898 wxString result;
20899 PyObject * obj0 = 0 ;
20900 char *kwnames[] = {
20901 (char *) "self", NULL
20902 };
20903
20904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
20905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20907 {
20908 PyThreadState* __tstate = wxPyBeginAllowThreads();
20909 result = ((wxDateTime const *)arg1)->FormatTime();
20910
20911 wxPyEndAllowThreads(__tstate);
20912 if (PyErr_Occurred()) SWIG_fail;
20913 }
20914 {
20915 #if wxUSE_UNICODE
20916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20917 #else
20918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20919 #endif
20920 }
20921 return resultobj;
20922 fail:
20923 return NULL;
20924 }
20925
20926
20927 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
20928 PyObject *resultobj;
20929 wxDateTime *arg1 = (wxDateTime *) 0 ;
20930 wxString result;
20931 PyObject * obj0 = 0 ;
20932 char *kwnames[] = {
20933 (char *) "self", NULL
20934 };
20935
20936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
20937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20939 {
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 result = ((wxDateTime const *)arg1)->FormatISODate();
20942
20943 wxPyEndAllowThreads(__tstate);
20944 if (PyErr_Occurred()) SWIG_fail;
20945 }
20946 {
20947 #if wxUSE_UNICODE
20948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20949 #else
20950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20951 #endif
20952 }
20953 return resultobj;
20954 fail:
20955 return NULL;
20956 }
20957
20958
20959 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20960 PyObject *resultobj;
20961 wxDateTime *arg1 = (wxDateTime *) 0 ;
20962 wxString result;
20963 PyObject * obj0 = 0 ;
20964 char *kwnames[] = {
20965 (char *) "self", NULL
20966 };
20967
20968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
20969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20971 {
20972 PyThreadState* __tstate = wxPyBeginAllowThreads();
20973 result = ((wxDateTime const *)arg1)->FormatISOTime();
20974
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 {
20979 #if wxUSE_UNICODE
20980 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20981 #else
20982 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20983 #endif
20984 }
20985 return resultobj;
20986 fail:
20987 return NULL;
20988 }
20989
20990
20991 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
20992 PyObject *obj;
20993 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20994 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
20995 Py_INCREF(obj);
20996 return Py_BuildValue((char *)"");
20997 }
20998 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20999 PyObject *resultobj;
21000 long arg1 ;
21001 wxTimeSpan result;
21002 PyObject * obj0 = 0 ;
21003 char *kwnames[] = {
21004 (char *) "sec", NULL
21005 };
21006
21007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21008 arg1 = (long) SWIG_AsLong(obj0);
21009 if (PyErr_Occurred()) SWIG_fail;
21010 {
21011 PyThreadState* __tstate = wxPyBeginAllowThreads();
21012 result = wxTimeSpan::Seconds(arg1);
21013
21014 wxPyEndAllowThreads(__tstate);
21015 if (PyErr_Occurred()) SWIG_fail;
21016 }
21017 {
21018 wxTimeSpan * resultptr;
21019 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21020 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21021 }
21022 return resultobj;
21023 fail:
21024 return NULL;
21025 }
21026
21027
21028 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21029 PyObject *resultobj;
21030 wxTimeSpan result;
21031 char *kwnames[] = {
21032 NULL
21033 };
21034
21035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21036 {
21037 PyThreadState* __tstate = wxPyBeginAllowThreads();
21038 result = wxTimeSpan::Second();
21039
21040 wxPyEndAllowThreads(__tstate);
21041 if (PyErr_Occurred()) SWIG_fail;
21042 }
21043 {
21044 wxTimeSpan * resultptr;
21045 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21046 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21047 }
21048 return resultobj;
21049 fail:
21050 return NULL;
21051 }
21052
21053
21054 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21055 PyObject *resultobj;
21056 long arg1 ;
21057 wxTimeSpan result;
21058 PyObject * obj0 = 0 ;
21059 char *kwnames[] = {
21060 (char *) "min", NULL
21061 };
21062
21063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21064 arg1 = (long) SWIG_AsLong(obj0);
21065 if (PyErr_Occurred()) SWIG_fail;
21066 {
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 result = wxTimeSpan::Minutes(arg1);
21069
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 {
21074 wxTimeSpan * resultptr;
21075 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21076 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21077 }
21078 return resultobj;
21079 fail:
21080 return NULL;
21081 }
21082
21083
21084 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj;
21086 wxTimeSpan result;
21087 char *kwnames[] = {
21088 NULL
21089 };
21090
21091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21092 {
21093 PyThreadState* __tstate = wxPyBeginAllowThreads();
21094 result = wxTimeSpan::Minute();
21095
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 {
21100 wxTimeSpan * resultptr;
21101 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21102 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21103 }
21104 return resultobj;
21105 fail:
21106 return NULL;
21107 }
21108
21109
21110 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21111 PyObject *resultobj;
21112 long arg1 ;
21113 wxTimeSpan result;
21114 PyObject * obj0 = 0 ;
21115 char *kwnames[] = {
21116 (char *) "hours", NULL
21117 };
21118
21119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21120 arg1 = (long) SWIG_AsLong(obj0);
21121 if (PyErr_Occurred()) SWIG_fail;
21122 {
21123 PyThreadState* __tstate = wxPyBeginAllowThreads();
21124 result = wxTimeSpan::Hours(arg1);
21125
21126 wxPyEndAllowThreads(__tstate);
21127 if (PyErr_Occurred()) SWIG_fail;
21128 }
21129 {
21130 wxTimeSpan * resultptr;
21131 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21132 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21133 }
21134 return resultobj;
21135 fail:
21136 return NULL;
21137 }
21138
21139
21140 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21141 PyObject *resultobj;
21142 wxTimeSpan result;
21143 char *kwnames[] = {
21144 NULL
21145 };
21146
21147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21148 {
21149 PyThreadState* __tstate = wxPyBeginAllowThreads();
21150 result = wxTimeSpan::Hour();
21151
21152 wxPyEndAllowThreads(__tstate);
21153 if (PyErr_Occurred()) SWIG_fail;
21154 }
21155 {
21156 wxTimeSpan * resultptr;
21157 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21158 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21159 }
21160 return resultobj;
21161 fail:
21162 return NULL;
21163 }
21164
21165
21166 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21167 PyObject *resultobj;
21168 long arg1 ;
21169 wxTimeSpan result;
21170 PyObject * obj0 = 0 ;
21171 char *kwnames[] = {
21172 (char *) "days", NULL
21173 };
21174
21175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21176 arg1 = (long) SWIG_AsLong(obj0);
21177 if (PyErr_Occurred()) SWIG_fail;
21178 {
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 result = wxTimeSpan::Days(arg1);
21181
21182 wxPyEndAllowThreads(__tstate);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 }
21185 {
21186 wxTimeSpan * resultptr;
21187 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21188 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21189 }
21190 return resultobj;
21191 fail:
21192 return NULL;
21193 }
21194
21195
21196 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21197 PyObject *resultobj;
21198 wxTimeSpan result;
21199 char *kwnames[] = {
21200 NULL
21201 };
21202
21203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21204 {
21205 PyThreadState* __tstate = wxPyBeginAllowThreads();
21206 result = wxTimeSpan::Day();
21207
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 {
21212 wxTimeSpan * resultptr;
21213 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21214 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21215 }
21216 return resultobj;
21217 fail:
21218 return NULL;
21219 }
21220
21221
21222 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21223 PyObject *resultobj;
21224 long arg1 ;
21225 wxTimeSpan result;
21226 PyObject * obj0 = 0 ;
21227 char *kwnames[] = {
21228 (char *) "days", NULL
21229 };
21230
21231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21232 arg1 = (long) SWIG_AsLong(obj0);
21233 if (PyErr_Occurred()) SWIG_fail;
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = wxTimeSpan::Weeks(arg1);
21237
21238 wxPyEndAllowThreads(__tstate);
21239 if (PyErr_Occurred()) SWIG_fail;
21240 }
21241 {
21242 wxTimeSpan * resultptr;
21243 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21245 }
21246 return resultobj;
21247 fail:
21248 return NULL;
21249 }
21250
21251
21252 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj;
21254 wxTimeSpan result;
21255 char *kwnames[] = {
21256 NULL
21257 };
21258
21259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21260 {
21261 PyThreadState* __tstate = wxPyBeginAllowThreads();
21262 result = wxTimeSpan::Week();
21263
21264 wxPyEndAllowThreads(__tstate);
21265 if (PyErr_Occurred()) SWIG_fail;
21266 }
21267 {
21268 wxTimeSpan * resultptr;
21269 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21270 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21271 }
21272 return resultobj;
21273 fail:
21274 return NULL;
21275 }
21276
21277
21278 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21279 PyObject *resultobj;
21280 long arg1 = (long) 0 ;
21281 long arg2 = (long) 0 ;
21282 long arg3 = (long) 0 ;
21283 long arg4 = (long) 0 ;
21284 wxTimeSpan *result;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287 PyObject * obj2 = 0 ;
21288 PyObject * obj3 = 0 ;
21289 char *kwnames[] = {
21290 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21291 };
21292
21293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21294 if (obj0) {
21295 arg1 = (long) SWIG_AsLong(obj0);
21296 if (PyErr_Occurred()) SWIG_fail;
21297 }
21298 if (obj1) {
21299 arg2 = (long) SWIG_AsLong(obj1);
21300 if (PyErr_Occurred()) SWIG_fail;
21301 }
21302 if (obj2) {
21303 arg3 = (long) SWIG_AsLong(obj2);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 if (obj3) {
21307 arg4 = (long) SWIG_AsLong(obj3);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 {
21311 PyThreadState* __tstate = wxPyBeginAllowThreads();
21312 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21313
21314 wxPyEndAllowThreads(__tstate);
21315 if (PyErr_Occurred()) SWIG_fail;
21316 }
21317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21318 return resultobj;
21319 fail:
21320 return NULL;
21321 }
21322
21323
21324 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21325 PyObject *resultobj;
21326 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21327 PyObject * obj0 = 0 ;
21328 char *kwnames[] = {
21329 (char *) "self", NULL
21330 };
21331
21332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21335 {
21336 PyThreadState* __tstate = wxPyBeginAllowThreads();
21337 delete arg1;
21338
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 Py_INCREF(Py_None); resultobj = Py_None;
21343 return resultobj;
21344 fail:
21345 return NULL;
21346 }
21347
21348
21349 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21350 PyObject *resultobj;
21351 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21352 wxTimeSpan *arg2 = 0 ;
21353 wxTimeSpan *result;
21354 PyObject * obj0 = 0 ;
21355 PyObject * obj1 = 0 ;
21356 char *kwnames[] = {
21357 (char *) "self",(char *) "diff", NULL
21358 };
21359
21360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21364 SWIG_POINTER_EXCEPTION | 0)) == -1)
21365 SWIG_fail;
21366 if (arg2 == NULL) {
21367 PyErr_SetString(PyExc_TypeError,"null reference");
21368 SWIG_fail;
21369 }
21370 {
21371 PyThreadState* __tstate = wxPyBeginAllowThreads();
21372 {
21373 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21374 result = (wxTimeSpan *) &_result_ref;
21375 }
21376
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21381 return resultobj;
21382 fail:
21383 return NULL;
21384 }
21385
21386
21387 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21388 PyObject *resultobj;
21389 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21390 wxTimeSpan *arg2 = 0 ;
21391 wxTimeSpan *result;
21392 PyObject * obj0 = 0 ;
21393 PyObject * obj1 = 0 ;
21394 char *kwnames[] = {
21395 (char *) "self",(char *) "diff", NULL
21396 };
21397
21398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21402 SWIG_POINTER_EXCEPTION | 0)) == -1)
21403 SWIG_fail;
21404 if (arg2 == NULL) {
21405 PyErr_SetString(PyExc_TypeError,"null reference");
21406 SWIG_fail;
21407 }
21408 {
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 {
21411 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21412 result = (wxTimeSpan *) &_result_ref;
21413 }
21414
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21419 return resultobj;
21420 fail:
21421 return NULL;
21422 }
21423
21424
21425 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21426 PyObject *resultobj;
21427 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21428 int arg2 ;
21429 wxTimeSpan *result;
21430 PyObject * obj0 = 0 ;
21431 PyObject * obj1 = 0 ;
21432 char *kwnames[] = {
21433 (char *) "self",(char *) "n", NULL
21434 };
21435
21436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21439 arg2 = (int) SWIG_AsInt(obj1);
21440 if (PyErr_Occurred()) SWIG_fail;
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 {
21444 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21445 result = (wxTimeSpan *) &_result_ref;
21446 }
21447
21448 wxPyEndAllowThreads(__tstate);
21449 if (PyErr_Occurred()) SWIG_fail;
21450 }
21451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21452 return resultobj;
21453 fail:
21454 return NULL;
21455 }
21456
21457
21458 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21459 PyObject *resultobj;
21460 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21461 wxTimeSpan *result;
21462 PyObject * obj0 = 0 ;
21463 char *kwnames[] = {
21464 (char *) "self", NULL
21465 };
21466
21467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21470 {
21471 PyThreadState* __tstate = wxPyBeginAllowThreads();
21472 {
21473 wxTimeSpan &_result_ref = (arg1)->Neg();
21474 result = (wxTimeSpan *) &_result_ref;
21475 }
21476
21477 wxPyEndAllowThreads(__tstate);
21478 if (PyErr_Occurred()) SWIG_fail;
21479 }
21480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21481 return resultobj;
21482 fail:
21483 return NULL;
21484 }
21485
21486
21487 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21488 PyObject *resultobj;
21489 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21490 wxTimeSpan result;
21491 PyObject * obj0 = 0 ;
21492 char *kwnames[] = {
21493 (char *) "self", NULL
21494 };
21495
21496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21499 {
21500 PyThreadState* __tstate = wxPyBeginAllowThreads();
21501 result = ((wxTimeSpan const *)arg1)->Abs();
21502
21503 wxPyEndAllowThreads(__tstate);
21504 if (PyErr_Occurred()) SWIG_fail;
21505 }
21506 {
21507 wxTimeSpan * resultptr;
21508 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21509 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21510 }
21511 return resultobj;
21512 fail:
21513 return NULL;
21514 }
21515
21516
21517 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj;
21519 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21520 wxTimeSpan *arg2 = 0 ;
21521 wxTimeSpan *result;
21522 PyObject * obj0 = 0 ;
21523 PyObject * obj1 = 0 ;
21524 char *kwnames[] = {
21525 (char *) "self",(char *) "diff", NULL
21526 };
21527
21528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21532 SWIG_POINTER_EXCEPTION | 0)) == -1)
21533 SWIG_fail;
21534 if (arg2 == NULL) {
21535 PyErr_SetString(PyExc_TypeError,"null reference");
21536 SWIG_fail;
21537 }
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 {
21541 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21542 result = (wxTimeSpan *) &_result_ref;
21543 }
21544
21545 wxPyEndAllowThreads(__tstate);
21546 if (PyErr_Occurred()) SWIG_fail;
21547 }
21548 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21549 return resultobj;
21550 fail:
21551 return NULL;
21552 }
21553
21554
21555 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21556 PyObject *resultobj;
21557 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21558 wxTimeSpan *arg2 = 0 ;
21559 wxTimeSpan *result;
21560 PyObject * obj0 = 0 ;
21561 PyObject * obj1 = 0 ;
21562 char *kwnames[] = {
21563 (char *) "self",(char *) "diff", NULL
21564 };
21565
21566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21569 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21570 SWIG_POINTER_EXCEPTION | 0)) == -1)
21571 SWIG_fail;
21572 if (arg2 == NULL) {
21573 PyErr_SetString(PyExc_TypeError,"null reference");
21574 SWIG_fail;
21575 }
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 {
21579 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21580 result = (wxTimeSpan *) &_result_ref;
21581 }
21582
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21587 return resultobj;
21588 fail:
21589 return NULL;
21590 }
21591
21592
21593 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21594 PyObject *resultobj;
21595 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21596 int arg2 ;
21597 wxTimeSpan *result;
21598 PyObject * obj0 = 0 ;
21599 PyObject * obj1 = 0 ;
21600 char *kwnames[] = {
21601 (char *) "self",(char *) "n", NULL
21602 };
21603
21604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21607 arg2 = (int) SWIG_AsInt(obj1);
21608 if (PyErr_Occurred()) SWIG_fail;
21609 {
21610 PyThreadState* __tstate = wxPyBeginAllowThreads();
21611 {
21612 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21613 result = (wxTimeSpan *) &_result_ref;
21614 }
21615
21616 wxPyEndAllowThreads(__tstate);
21617 if (PyErr_Occurred()) SWIG_fail;
21618 }
21619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21620 return resultobj;
21621 fail:
21622 return NULL;
21623 }
21624
21625
21626 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21627 PyObject *resultobj;
21628 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21629 wxTimeSpan *result;
21630 PyObject * obj0 = 0 ;
21631 char *kwnames[] = {
21632 (char *) "self", NULL
21633 };
21634
21635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21638 {
21639 PyThreadState* __tstate = wxPyBeginAllowThreads();
21640 {
21641 wxTimeSpan &_result_ref = (arg1)->operator -();
21642 result = (wxTimeSpan *) &_result_ref;
21643 }
21644
21645 wxPyEndAllowThreads(__tstate);
21646 if (PyErr_Occurred()) SWIG_fail;
21647 }
21648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21649 return resultobj;
21650 fail:
21651 return NULL;
21652 }
21653
21654
21655 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21656 PyObject *resultobj;
21657 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21658 wxTimeSpan *arg2 = 0 ;
21659 wxTimeSpan result;
21660 PyObject * obj0 = 0 ;
21661 PyObject * obj1 = 0 ;
21662 char *kwnames[] = {
21663 (char *) "self",(char *) "other", NULL
21664 };
21665
21666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21669 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21670 SWIG_POINTER_EXCEPTION | 0)) == -1)
21671 SWIG_fail;
21672 if (arg2 == NULL) {
21673 PyErr_SetString(PyExc_TypeError,"null reference");
21674 SWIG_fail;
21675 }
21676 {
21677 PyThreadState* __tstate = wxPyBeginAllowThreads();
21678 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21679
21680 wxPyEndAllowThreads(__tstate);
21681 if (PyErr_Occurred()) SWIG_fail;
21682 }
21683 {
21684 wxTimeSpan * resultptr;
21685 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21686 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21687 }
21688 return resultobj;
21689 fail:
21690 return NULL;
21691 }
21692
21693
21694 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21695 PyObject *resultobj;
21696 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21697 wxTimeSpan *arg2 = 0 ;
21698 wxTimeSpan result;
21699 PyObject * obj0 = 0 ;
21700 PyObject * obj1 = 0 ;
21701 char *kwnames[] = {
21702 (char *) "self",(char *) "other", NULL
21703 };
21704
21705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21709 SWIG_POINTER_EXCEPTION | 0)) == -1)
21710 SWIG_fail;
21711 if (arg2 == NULL) {
21712 PyErr_SetString(PyExc_TypeError,"null reference");
21713 SWIG_fail;
21714 }
21715 {
21716 PyThreadState* __tstate = wxPyBeginAllowThreads();
21717 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21718
21719 wxPyEndAllowThreads(__tstate);
21720 if (PyErr_Occurred()) SWIG_fail;
21721 }
21722 {
21723 wxTimeSpan * resultptr;
21724 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21726 }
21727 return resultobj;
21728 fail:
21729 return NULL;
21730 }
21731
21732
21733 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21734 PyObject *resultobj;
21735 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21736 int arg2 ;
21737 wxTimeSpan result;
21738 PyObject * obj0 = 0 ;
21739 PyObject * obj1 = 0 ;
21740 char *kwnames[] = {
21741 (char *) "self",(char *) "n", NULL
21742 };
21743
21744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21747 arg2 = (int) SWIG_AsInt(obj1);
21748 if (PyErr_Occurred()) SWIG_fail;
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 result = wxTimeSpan___mul__(arg1,arg2);
21752
21753 wxPyEndAllowThreads(__tstate);
21754 if (PyErr_Occurred()) SWIG_fail;
21755 }
21756 {
21757 wxTimeSpan * resultptr;
21758 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21760 }
21761 return resultobj;
21762 fail:
21763 return NULL;
21764 }
21765
21766
21767 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21768 PyObject *resultobj;
21769 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21770 int arg2 ;
21771 wxTimeSpan result;
21772 PyObject * obj0 = 0 ;
21773 PyObject * obj1 = 0 ;
21774 char *kwnames[] = {
21775 (char *) "self",(char *) "n", NULL
21776 };
21777
21778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21781 arg2 = (int) SWIG_AsInt(obj1);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 result = wxTimeSpan___rmul__(arg1,arg2);
21786
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 {
21791 wxTimeSpan * resultptr;
21792 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21793 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21794 }
21795 return resultobj;
21796 fail:
21797 return NULL;
21798 }
21799
21800
21801 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21802 PyObject *resultobj;
21803 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21804 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21805 bool result;
21806 PyObject * obj0 = 0 ;
21807 PyObject * obj1 = 0 ;
21808 char *kwnames[] = {
21809 (char *) "self",(char *) "other", NULL
21810 };
21811
21812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
21813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21817 {
21818 PyThreadState* __tstate = wxPyBeginAllowThreads();
21819 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
21820
21821 wxPyEndAllowThreads(__tstate);
21822 if (PyErr_Occurred()) SWIG_fail;
21823 }
21824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21825 return resultobj;
21826 fail:
21827 return NULL;
21828 }
21829
21830
21831 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
21832 PyObject *resultobj;
21833 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21834 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21835 bool result;
21836 PyObject * obj0 = 0 ;
21837 PyObject * obj1 = 0 ;
21838 char *kwnames[] = {
21839 (char *) "self",(char *) "other", NULL
21840 };
21841
21842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
21843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21847 {
21848 PyThreadState* __tstate = wxPyBeginAllowThreads();
21849 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
21850
21851 wxPyEndAllowThreads(__tstate);
21852 if (PyErr_Occurred()) SWIG_fail;
21853 }
21854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21855 return resultobj;
21856 fail:
21857 return NULL;
21858 }
21859
21860
21861 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21862 PyObject *resultobj;
21863 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21864 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21865 bool result;
21866 PyObject * obj0 = 0 ;
21867 PyObject * obj1 = 0 ;
21868 char *kwnames[] = {
21869 (char *) "self",(char *) "other", NULL
21870 };
21871
21872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
21873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21875 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21877 {
21878 PyThreadState* __tstate = wxPyBeginAllowThreads();
21879 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
21880
21881 wxPyEndAllowThreads(__tstate);
21882 if (PyErr_Occurred()) SWIG_fail;
21883 }
21884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21885 return resultobj;
21886 fail:
21887 return NULL;
21888 }
21889
21890
21891 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
21892 PyObject *resultobj;
21893 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21894 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21895 bool result;
21896 PyObject * obj0 = 0 ;
21897 PyObject * obj1 = 0 ;
21898 char *kwnames[] = {
21899 (char *) "self",(char *) "other", NULL
21900 };
21901
21902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
21903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21905 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21907 {
21908 PyThreadState* __tstate = wxPyBeginAllowThreads();
21909 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
21910
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21915 return resultobj;
21916 fail:
21917 return NULL;
21918 }
21919
21920
21921 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
21922 PyObject *resultobj;
21923 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21924 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21925 bool result;
21926 PyObject * obj0 = 0 ;
21927 PyObject * obj1 = 0 ;
21928 char *kwnames[] = {
21929 (char *) "self",(char *) "other", NULL
21930 };
21931
21932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
21933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21937 {
21938 PyThreadState* __tstate = wxPyBeginAllowThreads();
21939 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
21940
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21945 return resultobj;
21946 fail:
21947 return NULL;
21948 }
21949
21950
21951 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
21952 PyObject *resultobj;
21953 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21954 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21955 bool result;
21956 PyObject * obj0 = 0 ;
21957 PyObject * obj1 = 0 ;
21958 char *kwnames[] = {
21959 (char *) "self",(char *) "other", NULL
21960 };
21961
21962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
21963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21967 {
21968 PyThreadState* __tstate = wxPyBeginAllowThreads();
21969 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
21970
21971 wxPyEndAllowThreads(__tstate);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21975 return resultobj;
21976 fail:
21977 return NULL;
21978 }
21979
21980
21981 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
21982 PyObject *resultobj;
21983 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21984 bool result;
21985 PyObject * obj0 = 0 ;
21986 char *kwnames[] = {
21987 (char *) "self", NULL
21988 };
21989
21990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
21991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21993 {
21994 PyThreadState* __tstate = wxPyBeginAllowThreads();
21995 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
21996
21997 wxPyEndAllowThreads(__tstate);
21998 if (PyErr_Occurred()) SWIG_fail;
21999 }
22000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22001 return resultobj;
22002 fail:
22003 return NULL;
22004 }
22005
22006
22007 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22008 PyObject *resultobj;
22009 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22010 bool result;
22011 PyObject * obj0 = 0 ;
22012 char *kwnames[] = {
22013 (char *) "self", NULL
22014 };
22015
22016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22019 {
22020 PyThreadState* __tstate = wxPyBeginAllowThreads();
22021 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22022
22023 wxPyEndAllowThreads(__tstate);
22024 if (PyErr_Occurred()) SWIG_fail;
22025 }
22026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22027 return resultobj;
22028 fail:
22029 return NULL;
22030 }
22031
22032
22033 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22034 PyObject *resultobj;
22035 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22036 bool result;
22037 PyObject * obj0 = 0 ;
22038 char *kwnames[] = {
22039 (char *) "self", NULL
22040 };
22041
22042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22045 {
22046 PyThreadState* __tstate = wxPyBeginAllowThreads();
22047 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22048
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22053 return resultobj;
22054 fail:
22055 return NULL;
22056 }
22057
22058
22059 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22060 PyObject *resultobj;
22061 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22062 wxTimeSpan *arg2 = 0 ;
22063 bool result;
22064 PyObject * obj0 = 0 ;
22065 PyObject * obj1 = 0 ;
22066 char *kwnames[] = {
22067 (char *) "self",(char *) "ts", NULL
22068 };
22069
22070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22074 SWIG_POINTER_EXCEPTION | 0)) == -1)
22075 SWIG_fail;
22076 if (arg2 == NULL) {
22077 PyErr_SetString(PyExc_TypeError,"null reference");
22078 SWIG_fail;
22079 }
22080 {
22081 PyThreadState* __tstate = wxPyBeginAllowThreads();
22082 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22083
22084 wxPyEndAllowThreads(__tstate);
22085 if (PyErr_Occurred()) SWIG_fail;
22086 }
22087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22088 return resultobj;
22089 fail:
22090 return NULL;
22091 }
22092
22093
22094 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj;
22096 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22097 wxTimeSpan *arg2 = 0 ;
22098 bool result;
22099 PyObject * obj0 = 0 ;
22100 PyObject * obj1 = 0 ;
22101 char *kwnames[] = {
22102 (char *) "self",(char *) "ts", NULL
22103 };
22104
22105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22109 SWIG_POINTER_EXCEPTION | 0)) == -1)
22110 SWIG_fail;
22111 if (arg2 == NULL) {
22112 PyErr_SetString(PyExc_TypeError,"null reference");
22113 SWIG_fail;
22114 }
22115 {
22116 PyThreadState* __tstate = wxPyBeginAllowThreads();
22117 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22118
22119 wxPyEndAllowThreads(__tstate);
22120 if (PyErr_Occurred()) SWIG_fail;
22121 }
22122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22123 return resultobj;
22124 fail:
22125 return NULL;
22126 }
22127
22128
22129 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22130 PyObject *resultobj;
22131 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22132 wxTimeSpan *arg2 = 0 ;
22133 bool result;
22134 PyObject * obj0 = 0 ;
22135 PyObject * obj1 = 0 ;
22136 char *kwnames[] = {
22137 (char *) "self",(char *) "t", NULL
22138 };
22139
22140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22144 SWIG_POINTER_EXCEPTION | 0)) == -1)
22145 SWIG_fail;
22146 if (arg2 == NULL) {
22147 PyErr_SetString(PyExc_TypeError,"null reference");
22148 SWIG_fail;
22149 }
22150 {
22151 PyThreadState* __tstate = wxPyBeginAllowThreads();
22152 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22153
22154 wxPyEndAllowThreads(__tstate);
22155 if (PyErr_Occurred()) SWIG_fail;
22156 }
22157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22158 return resultobj;
22159 fail:
22160 return NULL;
22161 }
22162
22163
22164 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22165 PyObject *resultobj;
22166 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22167 int result;
22168 PyObject * obj0 = 0 ;
22169 char *kwnames[] = {
22170 (char *) "self", NULL
22171 };
22172
22173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22176 {
22177 PyThreadState* __tstate = wxPyBeginAllowThreads();
22178 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22179
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 resultobj = SWIG_FromInt((int)result);
22184 return resultobj;
22185 fail:
22186 return NULL;
22187 }
22188
22189
22190 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22191 PyObject *resultobj;
22192 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22193 int result;
22194 PyObject * obj0 = 0 ;
22195 char *kwnames[] = {
22196 (char *) "self", NULL
22197 };
22198
22199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22202 {
22203 PyThreadState* __tstate = wxPyBeginAllowThreads();
22204 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22205
22206 wxPyEndAllowThreads(__tstate);
22207 if (PyErr_Occurred()) SWIG_fail;
22208 }
22209 resultobj = SWIG_FromInt((int)result);
22210 return resultobj;
22211 fail:
22212 return NULL;
22213 }
22214
22215
22216 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22217 PyObject *resultobj;
22218 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22219 int result;
22220 PyObject * obj0 = 0 ;
22221 char *kwnames[] = {
22222 (char *) "self", NULL
22223 };
22224
22225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22228 {
22229 PyThreadState* __tstate = wxPyBeginAllowThreads();
22230 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22231
22232 wxPyEndAllowThreads(__tstate);
22233 if (PyErr_Occurred()) SWIG_fail;
22234 }
22235 resultobj = SWIG_FromInt((int)result);
22236 return resultobj;
22237 fail:
22238 return NULL;
22239 }
22240
22241
22242 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22243 PyObject *resultobj;
22244 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22245 int result;
22246 PyObject * obj0 = 0 ;
22247 char *kwnames[] = {
22248 (char *) "self", NULL
22249 };
22250
22251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22254 {
22255 PyThreadState* __tstate = wxPyBeginAllowThreads();
22256 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22257
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 resultobj = SWIG_FromInt((int)result);
22262 return resultobj;
22263 fail:
22264 return NULL;
22265 }
22266
22267
22268 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22269 PyObject *resultobj;
22270 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22271 wxLongLong result;
22272 PyObject * obj0 = 0 ;
22273 char *kwnames[] = {
22274 (char *) "self", NULL
22275 };
22276
22277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22280 {
22281 PyThreadState* __tstate = wxPyBeginAllowThreads();
22282 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22283
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
22287 {
22288 PyObject *hi, *lo, *shifter, *shifted;
22289 hi = PyLong_FromLong( (&result)->GetHi() );
22290 lo = PyLong_FromLong( (&result)->GetLo() );
22291 shifter = PyLong_FromLong(32);
22292 shifted = PyNumber_Lshift(hi, shifter);
22293 resultobj = PyNumber_Or(shifted, lo);
22294 Py_DECREF(hi);
22295 Py_DECREF(lo);
22296 Py_DECREF(shifter);
22297 Py_DECREF(shifted);
22298 }
22299 return resultobj;
22300 fail:
22301 return NULL;
22302 }
22303
22304
22305 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22306 PyObject *resultobj;
22307 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22308 wxLongLong result;
22309 PyObject * obj0 = 0 ;
22310 char *kwnames[] = {
22311 (char *) "self", NULL
22312 };
22313
22314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22320
22321 wxPyEndAllowThreads(__tstate);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 {
22325 PyObject *hi, *lo, *shifter, *shifted;
22326 hi = PyLong_FromLong( (&result)->GetHi() );
22327 lo = PyLong_FromLong( (&result)->GetLo() );
22328 shifter = PyLong_FromLong(32);
22329 shifted = PyNumber_Lshift(hi, shifter);
22330 resultobj = PyNumber_Or(shifted, lo);
22331 Py_DECREF(hi);
22332 Py_DECREF(lo);
22333 Py_DECREF(shifter);
22334 Py_DECREF(shifted);
22335 }
22336 return resultobj;
22337 fail:
22338 return NULL;
22339 }
22340
22341
22342 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22343 PyObject *resultobj;
22344 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22345 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22346 wxString *arg2 = (wxString *) &arg2_defvalue ;
22347 wxString result;
22348 bool temp2 = False ;
22349 PyObject * obj0 = 0 ;
22350 PyObject * obj1 = 0 ;
22351 char *kwnames[] = {
22352 (char *) "self",(char *) "format", NULL
22353 };
22354
22355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22358 if (obj1) {
22359 {
22360 arg2 = wxString_in_helper(obj1);
22361 if (arg2 == NULL) SWIG_fail;
22362 temp2 = True;
22363 }
22364 }
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22368
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 {
22373 #if wxUSE_UNICODE
22374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22375 #else
22376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22377 #endif
22378 }
22379 {
22380 if (temp2)
22381 delete arg2;
22382 }
22383 return resultobj;
22384 fail:
22385 {
22386 if (temp2)
22387 delete arg2;
22388 }
22389 return NULL;
22390 }
22391
22392
22393 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22394 PyObject *obj;
22395 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22396 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22397 Py_INCREF(obj);
22398 return Py_BuildValue((char *)"");
22399 }
22400 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22401 PyObject *resultobj;
22402 int arg1 = (int) 0 ;
22403 int arg2 = (int) 0 ;
22404 int arg3 = (int) 0 ;
22405 int arg4 = (int) 0 ;
22406 wxDateSpan *result;
22407 PyObject * obj0 = 0 ;
22408 PyObject * obj1 = 0 ;
22409 PyObject * obj2 = 0 ;
22410 PyObject * obj3 = 0 ;
22411 char *kwnames[] = {
22412 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22413 };
22414
22415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22416 if (obj0) {
22417 arg1 = (int) SWIG_AsInt(obj0);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 if (obj1) {
22421 arg2 = (int) SWIG_AsInt(obj1);
22422 if (PyErr_Occurred()) SWIG_fail;
22423 }
22424 if (obj2) {
22425 arg3 = (int) SWIG_AsInt(obj2);
22426 if (PyErr_Occurred()) SWIG_fail;
22427 }
22428 if (obj3) {
22429 arg4 = (int) SWIG_AsInt(obj3);
22430 if (PyErr_Occurred()) SWIG_fail;
22431 }
22432 {
22433 PyThreadState* __tstate = wxPyBeginAllowThreads();
22434 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22435
22436 wxPyEndAllowThreads(__tstate);
22437 if (PyErr_Occurred()) SWIG_fail;
22438 }
22439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22440 return resultobj;
22441 fail:
22442 return NULL;
22443 }
22444
22445
22446 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22447 PyObject *resultobj;
22448 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22449 PyObject * obj0 = 0 ;
22450 char *kwnames[] = {
22451 (char *) "self", NULL
22452 };
22453
22454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22457 {
22458 PyThreadState* __tstate = wxPyBeginAllowThreads();
22459 delete arg1;
22460
22461 wxPyEndAllowThreads(__tstate);
22462 if (PyErr_Occurred()) SWIG_fail;
22463 }
22464 Py_INCREF(Py_None); resultobj = Py_None;
22465 return resultobj;
22466 fail:
22467 return NULL;
22468 }
22469
22470
22471 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22472 PyObject *resultobj;
22473 int arg1 ;
22474 wxDateSpan result;
22475 PyObject * obj0 = 0 ;
22476 char *kwnames[] = {
22477 (char *) "days", NULL
22478 };
22479
22480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22481 arg1 = (int) SWIG_AsInt(obj0);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 {
22484 PyThreadState* __tstate = wxPyBeginAllowThreads();
22485 result = wxDateSpan::Days(arg1);
22486
22487 wxPyEndAllowThreads(__tstate);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 {
22491 wxDateSpan * resultptr;
22492 resultptr = new wxDateSpan((wxDateSpan &) result);
22493 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22494 }
22495 return resultobj;
22496 fail:
22497 return NULL;
22498 }
22499
22500
22501 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22502 PyObject *resultobj;
22503 wxDateSpan result;
22504 char *kwnames[] = {
22505 NULL
22506 };
22507
22508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22509 {
22510 PyThreadState* __tstate = wxPyBeginAllowThreads();
22511 result = wxDateSpan::Day();
22512
22513 wxPyEndAllowThreads(__tstate);
22514 if (PyErr_Occurred()) SWIG_fail;
22515 }
22516 {
22517 wxDateSpan * resultptr;
22518 resultptr = new wxDateSpan((wxDateSpan &) result);
22519 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22520 }
22521 return resultobj;
22522 fail:
22523 return NULL;
22524 }
22525
22526
22527 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22528 PyObject *resultobj;
22529 int arg1 ;
22530 wxDateSpan result;
22531 PyObject * obj0 = 0 ;
22532 char *kwnames[] = {
22533 (char *) "weeks", NULL
22534 };
22535
22536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22537 arg1 = (int) SWIG_AsInt(obj0);
22538 if (PyErr_Occurred()) SWIG_fail;
22539 {
22540 PyThreadState* __tstate = wxPyBeginAllowThreads();
22541 result = wxDateSpan::Weeks(arg1);
22542
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 {
22547 wxDateSpan * resultptr;
22548 resultptr = new wxDateSpan((wxDateSpan &) result);
22549 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22550 }
22551 return resultobj;
22552 fail:
22553 return NULL;
22554 }
22555
22556
22557 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22558 PyObject *resultobj;
22559 wxDateSpan result;
22560 char *kwnames[] = {
22561 NULL
22562 };
22563
22564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22565 {
22566 PyThreadState* __tstate = wxPyBeginAllowThreads();
22567 result = wxDateSpan::Week();
22568
22569 wxPyEndAllowThreads(__tstate);
22570 if (PyErr_Occurred()) SWIG_fail;
22571 }
22572 {
22573 wxDateSpan * resultptr;
22574 resultptr = new wxDateSpan((wxDateSpan &) result);
22575 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22576 }
22577 return resultobj;
22578 fail:
22579 return NULL;
22580 }
22581
22582
22583 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22584 PyObject *resultobj;
22585 int arg1 ;
22586 wxDateSpan result;
22587 PyObject * obj0 = 0 ;
22588 char *kwnames[] = {
22589 (char *) "mon", NULL
22590 };
22591
22592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22593 arg1 = (int) SWIG_AsInt(obj0);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 {
22596 PyThreadState* __tstate = wxPyBeginAllowThreads();
22597 result = wxDateSpan::Months(arg1);
22598
22599 wxPyEndAllowThreads(__tstate);
22600 if (PyErr_Occurred()) SWIG_fail;
22601 }
22602 {
22603 wxDateSpan * resultptr;
22604 resultptr = new wxDateSpan((wxDateSpan &) result);
22605 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22606 }
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22614 PyObject *resultobj;
22615 wxDateSpan result;
22616 char *kwnames[] = {
22617 NULL
22618 };
22619
22620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22621 {
22622 PyThreadState* __tstate = wxPyBeginAllowThreads();
22623 result = wxDateSpan::Month();
22624
22625 wxPyEndAllowThreads(__tstate);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 {
22629 wxDateSpan * resultptr;
22630 resultptr = new wxDateSpan((wxDateSpan &) result);
22631 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22632 }
22633 return resultobj;
22634 fail:
22635 return NULL;
22636 }
22637
22638
22639 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22640 PyObject *resultobj;
22641 int arg1 ;
22642 wxDateSpan result;
22643 PyObject * obj0 = 0 ;
22644 char *kwnames[] = {
22645 (char *) "years", NULL
22646 };
22647
22648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22649 arg1 = (int) SWIG_AsInt(obj0);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 {
22652 PyThreadState* __tstate = wxPyBeginAllowThreads();
22653 result = wxDateSpan::Years(arg1);
22654
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 {
22659 wxDateSpan * resultptr;
22660 resultptr = new wxDateSpan((wxDateSpan &) result);
22661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22662 }
22663 return resultobj;
22664 fail:
22665 return NULL;
22666 }
22667
22668
22669 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22670 PyObject *resultobj;
22671 wxDateSpan result;
22672 char *kwnames[] = {
22673 NULL
22674 };
22675
22676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 result = wxDateSpan::Year();
22680
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 {
22685 wxDateSpan * resultptr;
22686 resultptr = new wxDateSpan((wxDateSpan &) result);
22687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22688 }
22689 return resultobj;
22690 fail:
22691 return NULL;
22692 }
22693
22694
22695 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22696 PyObject *resultobj;
22697 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22698 int arg2 ;
22699 wxDateSpan *result;
22700 PyObject * obj0 = 0 ;
22701 PyObject * obj1 = 0 ;
22702 char *kwnames[] = {
22703 (char *) "self",(char *) "n", NULL
22704 };
22705
22706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22709 arg2 = (int) SWIG_AsInt(obj1);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 {
22712 PyThreadState* __tstate = wxPyBeginAllowThreads();
22713 {
22714 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22715 result = (wxDateSpan *) &_result_ref;
22716 }
22717
22718 wxPyEndAllowThreads(__tstate);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 }
22721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22722 return resultobj;
22723 fail:
22724 return NULL;
22725 }
22726
22727
22728 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22729 PyObject *resultobj;
22730 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22731 int arg2 ;
22732 wxDateSpan *result;
22733 PyObject * obj0 = 0 ;
22734 PyObject * obj1 = 0 ;
22735 char *kwnames[] = {
22736 (char *) "self",(char *) "n", NULL
22737 };
22738
22739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22742 arg2 = (int) SWIG_AsInt(obj1);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 {
22745 PyThreadState* __tstate = wxPyBeginAllowThreads();
22746 {
22747 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22748 result = (wxDateSpan *) &_result_ref;
22749 }
22750
22751 wxPyEndAllowThreads(__tstate);
22752 if (PyErr_Occurred()) SWIG_fail;
22753 }
22754 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22755 return resultobj;
22756 fail:
22757 return NULL;
22758 }
22759
22760
22761 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22762 PyObject *resultobj;
22763 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22764 int arg2 ;
22765 wxDateSpan *result;
22766 PyObject * obj0 = 0 ;
22767 PyObject * obj1 = 0 ;
22768 char *kwnames[] = {
22769 (char *) "self",(char *) "n", NULL
22770 };
22771
22772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22775 arg2 = (int) SWIG_AsInt(obj1);
22776 if (PyErr_Occurred()) SWIG_fail;
22777 {
22778 PyThreadState* __tstate = wxPyBeginAllowThreads();
22779 {
22780 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22781 result = (wxDateSpan *) &_result_ref;
22782 }
22783
22784 wxPyEndAllowThreads(__tstate);
22785 if (PyErr_Occurred()) SWIG_fail;
22786 }
22787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22795 PyObject *resultobj;
22796 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22797 int arg2 ;
22798 wxDateSpan *result;
22799 PyObject * obj0 = 0 ;
22800 PyObject * obj1 = 0 ;
22801 char *kwnames[] = {
22802 (char *) "self",(char *) "n", NULL
22803 };
22804
22805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
22806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22808 arg2 = (int) SWIG_AsInt(obj1);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 {
22813 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
22814 result = (wxDateSpan *) &_result_ref;
22815 }
22816
22817 wxPyEndAllowThreads(__tstate);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22821 return resultobj;
22822 fail:
22823 return NULL;
22824 }
22825
22826
22827 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22828 PyObject *resultobj;
22829 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22830 int result;
22831 PyObject * obj0 = 0 ;
22832 char *kwnames[] = {
22833 (char *) "self", NULL
22834 };
22835
22836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
22837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22839 {
22840 PyThreadState* __tstate = wxPyBeginAllowThreads();
22841 result = (int)((wxDateSpan const *)arg1)->GetYears();
22842
22843 wxPyEndAllowThreads(__tstate);
22844 if (PyErr_Occurred()) SWIG_fail;
22845 }
22846 resultobj = SWIG_FromInt((int)result);
22847 return resultobj;
22848 fail:
22849 return NULL;
22850 }
22851
22852
22853 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22854 PyObject *resultobj;
22855 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22856 int result;
22857 PyObject * obj0 = 0 ;
22858 char *kwnames[] = {
22859 (char *) "self", NULL
22860 };
22861
22862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
22863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22865 {
22866 PyThreadState* __tstate = wxPyBeginAllowThreads();
22867 result = (int)((wxDateSpan const *)arg1)->GetMonths();
22868
22869 wxPyEndAllowThreads(__tstate);
22870 if (PyErr_Occurred()) SWIG_fail;
22871 }
22872 resultobj = SWIG_FromInt((int)result);
22873 return resultobj;
22874 fail:
22875 return NULL;
22876 }
22877
22878
22879 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22880 PyObject *resultobj;
22881 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22882 int result;
22883 PyObject * obj0 = 0 ;
22884 char *kwnames[] = {
22885 (char *) "self", NULL
22886 };
22887
22888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
22889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22891 {
22892 PyThreadState* __tstate = wxPyBeginAllowThreads();
22893 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
22894
22895 wxPyEndAllowThreads(__tstate);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 resultobj = SWIG_FromInt((int)result);
22899 return resultobj;
22900 fail:
22901 return NULL;
22902 }
22903
22904
22905 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22906 PyObject *resultobj;
22907 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22908 int result;
22909 PyObject * obj0 = 0 ;
22910 char *kwnames[] = {
22911 (char *) "self", NULL
22912 };
22913
22914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
22915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22917 {
22918 PyThreadState* __tstate = wxPyBeginAllowThreads();
22919 result = (int)((wxDateSpan const *)arg1)->GetDays();
22920
22921 wxPyEndAllowThreads(__tstate);
22922 if (PyErr_Occurred()) SWIG_fail;
22923 }
22924 resultobj = SWIG_FromInt((int)result);
22925 return resultobj;
22926 fail:
22927 return NULL;
22928 }
22929
22930
22931 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22932 PyObject *resultobj;
22933 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22934 int result;
22935 PyObject * obj0 = 0 ;
22936 char *kwnames[] = {
22937 (char *) "self", NULL
22938 };
22939
22940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
22941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22943 {
22944 PyThreadState* __tstate = wxPyBeginAllowThreads();
22945 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
22946
22947 wxPyEndAllowThreads(__tstate);
22948 if (PyErr_Occurred()) SWIG_fail;
22949 }
22950 resultobj = SWIG_FromInt((int)result);
22951 return resultobj;
22952 fail:
22953 return NULL;
22954 }
22955
22956
22957 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
22958 PyObject *resultobj;
22959 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22960 wxDateSpan *arg2 = 0 ;
22961 wxDateSpan *result;
22962 PyObject * obj0 = 0 ;
22963 PyObject * obj1 = 0 ;
22964 char *kwnames[] = {
22965 (char *) "self",(char *) "other", NULL
22966 };
22967
22968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22971 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
22972 SWIG_POINTER_EXCEPTION | 0)) == -1)
22973 SWIG_fail;
22974 if (arg2 == NULL) {
22975 PyErr_SetString(PyExc_TypeError,"null reference");
22976 SWIG_fail;
22977 }
22978 {
22979 PyThreadState* __tstate = wxPyBeginAllowThreads();
22980 {
22981 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
22982 result = (wxDateSpan *) &_result_ref;
22983 }
22984
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22989 return resultobj;
22990 fail:
22991 return NULL;
22992 }
22993
22994
22995 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
22996 PyObject *resultobj;
22997 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22998 wxDateSpan *arg2 = 0 ;
22999 wxDateSpan *result;
23000 PyObject * obj0 = 0 ;
23001 PyObject * obj1 = 0 ;
23002 char *kwnames[] = {
23003 (char *) "self",(char *) "other", NULL
23004 };
23005
23006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23009 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23010 SWIG_POINTER_EXCEPTION | 0)) == -1)
23011 SWIG_fail;
23012 if (arg2 == NULL) {
23013 PyErr_SetString(PyExc_TypeError,"null reference");
23014 SWIG_fail;
23015 }
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 {
23019 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23020 result = (wxDateSpan *) &_result_ref;
23021 }
23022
23023 wxPyEndAllowThreads(__tstate);
23024 if (PyErr_Occurred()) SWIG_fail;
23025 }
23026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23027 return resultobj;
23028 fail:
23029 return NULL;
23030 }
23031
23032
23033 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23034 PyObject *resultobj;
23035 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23036 wxDateSpan *result;
23037 PyObject * obj0 = 0 ;
23038 char *kwnames[] = {
23039 (char *) "self", NULL
23040 };
23041
23042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23045 {
23046 PyThreadState* __tstate = wxPyBeginAllowThreads();
23047 {
23048 wxDateSpan &_result_ref = (arg1)->Neg();
23049 result = (wxDateSpan *) &_result_ref;
23050 }
23051
23052 wxPyEndAllowThreads(__tstate);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23056 return resultobj;
23057 fail:
23058 return NULL;
23059 }
23060
23061
23062 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23063 PyObject *resultobj;
23064 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23065 int arg2 ;
23066 wxDateSpan *result;
23067 PyObject * obj0 = 0 ;
23068 PyObject * obj1 = 0 ;
23069 char *kwnames[] = {
23070 (char *) "self",(char *) "factor", NULL
23071 };
23072
23073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23076 arg2 = (int) SWIG_AsInt(obj1);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 {
23079 PyThreadState* __tstate = wxPyBeginAllowThreads();
23080 {
23081 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23082 result = (wxDateSpan *) &_result_ref;
23083 }
23084
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23089 return resultobj;
23090 fail:
23091 return NULL;
23092 }
23093
23094
23095 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23096 PyObject *resultobj;
23097 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23098 wxDateSpan *arg2 = 0 ;
23099 wxDateSpan *result;
23100 PyObject * obj0 = 0 ;
23101 PyObject * obj1 = 0 ;
23102 char *kwnames[] = {
23103 (char *) "self",(char *) "other", NULL
23104 };
23105
23106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23110 SWIG_POINTER_EXCEPTION | 0)) == -1)
23111 SWIG_fail;
23112 if (arg2 == NULL) {
23113 PyErr_SetString(PyExc_TypeError,"null reference");
23114 SWIG_fail;
23115 }
23116 {
23117 PyThreadState* __tstate = wxPyBeginAllowThreads();
23118 {
23119 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23120 result = (wxDateSpan *) &_result_ref;
23121 }
23122
23123 wxPyEndAllowThreads(__tstate);
23124 if (PyErr_Occurred()) SWIG_fail;
23125 }
23126 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23127 return resultobj;
23128 fail:
23129 return NULL;
23130 }
23131
23132
23133 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj;
23135 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23136 wxDateSpan *arg2 = 0 ;
23137 wxDateSpan *result;
23138 PyObject * obj0 = 0 ;
23139 PyObject * obj1 = 0 ;
23140 char *kwnames[] = {
23141 (char *) "self",(char *) "other", NULL
23142 };
23143
23144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23147 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23148 SWIG_POINTER_EXCEPTION | 0)) == -1)
23149 SWIG_fail;
23150 if (arg2 == NULL) {
23151 PyErr_SetString(PyExc_TypeError,"null reference");
23152 SWIG_fail;
23153 }
23154 {
23155 PyThreadState* __tstate = wxPyBeginAllowThreads();
23156 {
23157 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23158 result = (wxDateSpan *) &_result_ref;
23159 }
23160
23161 wxPyEndAllowThreads(__tstate);
23162 if (PyErr_Occurred()) SWIG_fail;
23163 }
23164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23165 return resultobj;
23166 fail:
23167 return NULL;
23168 }
23169
23170
23171 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23172 PyObject *resultobj;
23173 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23174 wxDateSpan *result;
23175 PyObject * obj0 = 0 ;
23176 char *kwnames[] = {
23177 (char *) "self", NULL
23178 };
23179
23180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23183 {
23184 PyThreadState* __tstate = wxPyBeginAllowThreads();
23185 {
23186 wxDateSpan &_result_ref = (arg1)->operator -();
23187 result = (wxDateSpan *) &_result_ref;
23188 }
23189
23190 wxPyEndAllowThreads(__tstate);
23191 if (PyErr_Occurred()) SWIG_fail;
23192 }
23193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23194 return resultobj;
23195 fail:
23196 return NULL;
23197 }
23198
23199
23200 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23201 PyObject *resultobj;
23202 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23203 int arg2 ;
23204 wxDateSpan *result;
23205 PyObject * obj0 = 0 ;
23206 PyObject * obj1 = 0 ;
23207 char *kwnames[] = {
23208 (char *) "self",(char *) "factor", NULL
23209 };
23210
23211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23214 arg2 = (int) SWIG_AsInt(obj1);
23215 if (PyErr_Occurred()) SWIG_fail;
23216 {
23217 PyThreadState* __tstate = wxPyBeginAllowThreads();
23218 {
23219 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23220 result = (wxDateSpan *) &_result_ref;
23221 }
23222
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23227 return resultobj;
23228 fail:
23229 return NULL;
23230 }
23231
23232
23233 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23234 PyObject *resultobj;
23235 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23236 wxDateSpan *arg2 = 0 ;
23237 wxDateSpan result;
23238 PyObject * obj0 = 0 ;
23239 PyObject * obj1 = 0 ;
23240 char *kwnames[] = {
23241 (char *) "self",(char *) "other", NULL
23242 };
23243
23244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23248 SWIG_POINTER_EXCEPTION | 0)) == -1)
23249 SWIG_fail;
23250 if (arg2 == NULL) {
23251 PyErr_SetString(PyExc_TypeError,"null reference");
23252 SWIG_fail;
23253 }
23254 {
23255 PyThreadState* __tstate = wxPyBeginAllowThreads();
23256 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23257
23258 wxPyEndAllowThreads(__tstate);
23259 if (PyErr_Occurred()) SWIG_fail;
23260 }
23261 {
23262 wxDateSpan * resultptr;
23263 resultptr = new wxDateSpan((wxDateSpan &) result);
23264 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23265 }
23266 return resultobj;
23267 fail:
23268 return NULL;
23269 }
23270
23271
23272 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23273 PyObject *resultobj;
23274 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23275 wxDateSpan *arg2 = 0 ;
23276 wxDateSpan result;
23277 PyObject * obj0 = 0 ;
23278 PyObject * obj1 = 0 ;
23279 char *kwnames[] = {
23280 (char *) "self",(char *) "other", NULL
23281 };
23282
23283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23287 SWIG_POINTER_EXCEPTION | 0)) == -1)
23288 SWIG_fail;
23289 if (arg2 == NULL) {
23290 PyErr_SetString(PyExc_TypeError,"null reference");
23291 SWIG_fail;
23292 }
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23296
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 {
23301 wxDateSpan * resultptr;
23302 resultptr = new wxDateSpan((wxDateSpan &) result);
23303 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23304 }
23305 return resultobj;
23306 fail:
23307 return NULL;
23308 }
23309
23310
23311 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23312 PyObject *resultobj;
23313 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23314 int arg2 ;
23315 wxDateSpan result;
23316 PyObject * obj0 = 0 ;
23317 PyObject * obj1 = 0 ;
23318 char *kwnames[] = {
23319 (char *) "self",(char *) "n", NULL
23320 };
23321
23322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23325 arg2 = (int) SWIG_AsInt(obj1);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 {
23328 PyThreadState* __tstate = wxPyBeginAllowThreads();
23329 result = wxDateSpan___mul__(arg1,arg2);
23330
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 {
23335 wxDateSpan * resultptr;
23336 resultptr = new wxDateSpan((wxDateSpan &) result);
23337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23338 }
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj;
23347 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23348 int arg2 ;
23349 wxDateSpan result;
23350 PyObject * obj0 = 0 ;
23351 PyObject * obj1 = 0 ;
23352 char *kwnames[] = {
23353 (char *) "self",(char *) "n", NULL
23354 };
23355
23356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23359 arg2 = (int) SWIG_AsInt(obj1);
23360 if (PyErr_Occurred()) SWIG_fail;
23361 {
23362 PyThreadState* __tstate = wxPyBeginAllowThreads();
23363 result = wxDateSpan___rmul__(arg1,arg2);
23364
23365 wxPyEndAllowThreads(__tstate);
23366 if (PyErr_Occurred()) SWIG_fail;
23367 }
23368 {
23369 wxDateSpan * resultptr;
23370 resultptr = new wxDateSpan((wxDateSpan &) result);
23371 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23372 }
23373 return resultobj;
23374 fail:
23375 return NULL;
23376 }
23377
23378
23379 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23380 PyObject *resultobj;
23381 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23382 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23383 bool result;
23384 PyObject * obj0 = 0 ;
23385 PyObject * obj1 = 0 ;
23386 char *kwnames[] = {
23387 (char *) "self",(char *) "other", NULL
23388 };
23389
23390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23393 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23395 {
23396 PyThreadState* __tstate = wxPyBeginAllowThreads();
23397 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23398
23399 wxPyEndAllowThreads(__tstate);
23400 if (PyErr_Occurred()) SWIG_fail;
23401 }
23402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23403 return resultobj;
23404 fail:
23405 return NULL;
23406 }
23407
23408
23409 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23410 PyObject *resultobj;
23411 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23412 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23413 bool result;
23414 PyObject * obj0 = 0 ;
23415 PyObject * obj1 = 0 ;
23416 char *kwnames[] = {
23417 (char *) "self",(char *) "other", NULL
23418 };
23419
23420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23423 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23425 {
23426 PyThreadState* __tstate = wxPyBeginAllowThreads();
23427 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23428
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23440 PyObject *obj;
23441 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23442 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23443 Py_INCREF(obj);
23444 return Py_BuildValue((char *)"");
23445 }
23446 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23447 PyObject *resultobj;
23448 long result;
23449 char *kwnames[] = {
23450 NULL
23451 };
23452
23453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 result = (long)wxGetLocalTime();
23457
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 resultobj = SWIG_FromLong((long)result);
23462 return resultobj;
23463 fail:
23464 return NULL;
23465 }
23466
23467
23468 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23469 PyObject *resultobj;
23470 long result;
23471 char *kwnames[] = {
23472 NULL
23473 };
23474
23475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23476 {
23477 PyThreadState* __tstate = wxPyBeginAllowThreads();
23478 result = (long)wxGetUTCTime();
23479
23480 wxPyEndAllowThreads(__tstate);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 }
23483 resultobj = SWIG_FromLong((long)result);
23484 return resultobj;
23485 fail:
23486 return NULL;
23487 }
23488
23489
23490 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23491 PyObject *resultobj;
23492 long result;
23493 char *kwnames[] = {
23494 NULL
23495 };
23496
23497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23498 {
23499 PyThreadState* __tstate = wxPyBeginAllowThreads();
23500 result = (long)wxGetCurrentTime();
23501
23502 wxPyEndAllowThreads(__tstate);
23503 if (PyErr_Occurred()) SWIG_fail;
23504 }
23505 resultobj = SWIG_FromLong((long)result);
23506 return resultobj;
23507 fail:
23508 return NULL;
23509 }
23510
23511
23512 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23513 PyObject *resultobj;
23514 wxLongLong result;
23515 char *kwnames[] = {
23516 NULL
23517 };
23518
23519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23520 {
23521 PyThreadState* __tstate = wxPyBeginAllowThreads();
23522 result = wxGetLocalTimeMillis();
23523
23524 wxPyEndAllowThreads(__tstate);
23525 if (PyErr_Occurred()) SWIG_fail;
23526 }
23527 {
23528 PyObject *hi, *lo, *shifter, *shifted;
23529 hi = PyLong_FromLong( (&result)->GetHi() );
23530 lo = PyLong_FromLong( (&result)->GetLo() );
23531 shifter = PyLong_FromLong(32);
23532 shifted = PyNumber_Lshift(hi, shifter);
23533 resultobj = PyNumber_Or(shifted, lo);
23534 Py_DECREF(hi);
23535 Py_DECREF(lo);
23536 Py_DECREF(shifter);
23537 Py_DECREF(shifted);
23538 }
23539 return resultobj;
23540 fail:
23541 return NULL;
23542 }
23543
23544
23545 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23546 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23547 return 1;
23548 }
23549
23550
23551 static PyObject *_wrap_DefaultDateTime_get() {
23552 PyObject *pyobj;
23553
23554 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23555 return pyobj;
23556 }
23557
23558
23559 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj;
23561 int arg1 ;
23562 wxDataFormat *result;
23563 PyObject * obj0 = 0 ;
23564 char *kwnames[] = {
23565 (char *) "type", NULL
23566 };
23567
23568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23569 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23570 if (PyErr_Occurred()) SWIG_fail;
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23574
23575 wxPyEndAllowThreads(__tstate);
23576 if (PyErr_Occurred()) SWIG_fail;
23577 }
23578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23579 return resultobj;
23580 fail:
23581 return NULL;
23582 }
23583
23584
23585 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23586 PyObject *resultobj;
23587 wxString *arg1 = 0 ;
23588 wxDataFormat *result;
23589 bool temp1 = False ;
23590 PyObject * obj0 = 0 ;
23591 char *kwnames[] = {
23592 (char *) "format", NULL
23593 };
23594
23595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23596 {
23597 arg1 = wxString_in_helper(obj0);
23598 if (arg1 == NULL) SWIG_fail;
23599 temp1 = True;
23600 }
23601 {
23602 PyThreadState* __tstate = wxPyBeginAllowThreads();
23603 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23604
23605 wxPyEndAllowThreads(__tstate);
23606 if (PyErr_Occurred()) SWIG_fail;
23607 }
23608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23609 {
23610 if (temp1)
23611 delete arg1;
23612 }
23613 return resultobj;
23614 fail:
23615 {
23616 if (temp1)
23617 delete arg1;
23618 }
23619 return NULL;
23620 }
23621
23622
23623 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23624 PyObject *resultobj;
23625 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23626 PyObject * obj0 = 0 ;
23627 char *kwnames[] = {
23628 (char *) "self", NULL
23629 };
23630
23631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 delete arg1;
23637
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 Py_INCREF(Py_None); resultobj = Py_None;
23642 return resultobj;
23643 fail:
23644 return NULL;
23645 }
23646
23647
23648 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23649 PyObject *resultobj;
23650 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23651 int arg2 ;
23652 bool result;
23653 PyObject * obj0 = 0 ;
23654 PyObject * obj1 = 0 ;
23655
23656 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23659 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23660 if (PyErr_Occurred()) SWIG_fail;
23661 {
23662 PyThreadState* __tstate = wxPyBeginAllowThreads();
23663 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23664
23665 wxPyEndAllowThreads(__tstate);
23666 if (PyErr_Occurred()) SWIG_fail;
23667 }
23668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23669 return resultobj;
23670 fail:
23671 return NULL;
23672 }
23673
23674
23675 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23676 PyObject *resultobj;
23677 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23678 int arg2 ;
23679 bool result;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682
23683 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23686 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23687 if (PyErr_Occurred()) SWIG_fail;
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
23690 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23691
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23703 PyObject *resultobj;
23704 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23705 wxDataFormat *arg2 = 0 ;
23706 bool result;
23707 PyObject * obj0 = 0 ;
23708 PyObject * obj1 = 0 ;
23709
23710 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23714 SWIG_POINTER_EXCEPTION | 0)) == -1)
23715 SWIG_fail;
23716 if (arg2 == NULL) {
23717 PyErr_SetString(PyExc_TypeError,"null reference");
23718 SWIG_fail;
23719 }
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23723
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23728 return resultobj;
23729 fail:
23730 return NULL;
23731 }
23732
23733
23734 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23735 int argc;
23736 PyObject *argv[3];
23737 int ii;
23738
23739 argc = PyObject_Length(args);
23740 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23741 argv[ii] = PyTuple_GetItem(args,ii);
23742 }
23743 if (argc == 2) {
23744 int _v;
23745 {
23746 void *ptr;
23747 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23748 _v = 0;
23749 PyErr_Clear();
23750 } else {
23751 _v = 1;
23752 }
23753 }
23754 if (_v) {
23755 {
23756 void *ptr;
23757 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23758 _v = 0;
23759 PyErr_Clear();
23760 } else {
23761 _v = 1;
23762 }
23763 }
23764 if (_v) {
23765 return _wrap_DataFormat___eq____SWIG_1(self,args);
23766 }
23767 }
23768 }
23769 if (argc == 2) {
23770 int _v;
23771 {
23772 void *ptr;
23773 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23774 _v = 0;
23775 PyErr_Clear();
23776 } else {
23777 _v = 1;
23778 }
23779 }
23780 if (_v) {
23781 _v = SWIG_CheckInt(argv[1]);
23782 if (_v) {
23783 return _wrap_DataFormat___eq____SWIG_0(self,args);
23784 }
23785 }
23786 }
23787
23788 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
23789 return NULL;
23790 }
23791
23792
23793 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
23794 PyObject *resultobj;
23795 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23796 wxDataFormat *arg2 = 0 ;
23797 bool result;
23798 PyObject * obj0 = 0 ;
23799 PyObject * obj1 = 0 ;
23800
23801 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23805 SWIG_POINTER_EXCEPTION | 0)) == -1)
23806 SWIG_fail;
23807 if (arg2 == NULL) {
23808 PyErr_SetString(PyExc_TypeError,"null reference");
23809 SWIG_fail;
23810 }
23811 {
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
23814
23815 wxPyEndAllowThreads(__tstate);
23816 if (PyErr_Occurred()) SWIG_fail;
23817 }
23818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23819 return resultobj;
23820 fail:
23821 return NULL;
23822 }
23823
23824
23825 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
23826 int argc;
23827 PyObject *argv[3];
23828 int ii;
23829
23830 argc = PyObject_Length(args);
23831 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23832 argv[ii] = PyTuple_GetItem(args,ii);
23833 }
23834 if (argc == 2) {
23835 int _v;
23836 {
23837 void *ptr;
23838 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23839 _v = 0;
23840 PyErr_Clear();
23841 } else {
23842 _v = 1;
23843 }
23844 }
23845 if (_v) {
23846 {
23847 void *ptr;
23848 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23849 _v = 0;
23850 PyErr_Clear();
23851 } else {
23852 _v = 1;
23853 }
23854 }
23855 if (_v) {
23856 return _wrap_DataFormat___ne____SWIG_1(self,args);
23857 }
23858 }
23859 }
23860 if (argc == 2) {
23861 int _v;
23862 {
23863 void *ptr;
23864 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23865 _v = 0;
23866 PyErr_Clear();
23867 } else {
23868 _v = 1;
23869 }
23870 }
23871 if (_v) {
23872 _v = SWIG_CheckInt(argv[1]);
23873 if (_v) {
23874 return _wrap_DataFormat___ne____SWIG_0(self,args);
23875 }
23876 }
23877 }
23878
23879 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
23880 return NULL;
23881 }
23882
23883
23884 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23885 PyObject *resultobj;
23886 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23887 int arg2 ;
23888 PyObject * obj0 = 0 ;
23889 PyObject * obj1 = 0 ;
23890 char *kwnames[] = {
23891 (char *) "self",(char *) "format", NULL
23892 };
23893
23894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
23895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23897 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23898 if (PyErr_Occurred()) SWIG_fail;
23899 {
23900 PyThreadState* __tstate = wxPyBeginAllowThreads();
23901 (arg1)->SetType((wxDataFormatId )arg2);
23902
23903 wxPyEndAllowThreads(__tstate);
23904 if (PyErr_Occurred()) SWIG_fail;
23905 }
23906 Py_INCREF(Py_None); resultobj = Py_None;
23907 return resultobj;
23908 fail:
23909 return NULL;
23910 }
23911
23912
23913 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23914 PyObject *resultobj;
23915 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23916 int result;
23917 PyObject * obj0 = 0 ;
23918 char *kwnames[] = {
23919 (char *) "self", NULL
23920 };
23921
23922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
23923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23925 {
23926 PyThreadState* __tstate = wxPyBeginAllowThreads();
23927 result = (int)((wxDataFormat const *)arg1)->GetType();
23928
23929 wxPyEndAllowThreads(__tstate);
23930 if (PyErr_Occurred()) SWIG_fail;
23931 }
23932 resultobj = SWIG_FromInt((int)result);
23933 return resultobj;
23934 fail:
23935 return NULL;
23936 }
23937
23938
23939 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23940 PyObject *resultobj;
23941 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23942 wxString result;
23943 PyObject * obj0 = 0 ;
23944 char *kwnames[] = {
23945 (char *) "self", NULL
23946 };
23947
23948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
23949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23951 {
23952 PyThreadState* __tstate = wxPyBeginAllowThreads();
23953 result = ((wxDataFormat const *)arg1)->GetId();
23954
23955 wxPyEndAllowThreads(__tstate);
23956 if (PyErr_Occurred()) SWIG_fail;
23957 }
23958 {
23959 #if wxUSE_UNICODE
23960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23961 #else
23962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23963 #endif
23964 }
23965 return resultobj;
23966 fail:
23967 return NULL;
23968 }
23969
23970
23971 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23972 PyObject *resultobj;
23973 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23974 wxString *arg2 = 0 ;
23975 bool temp2 = False ;
23976 PyObject * obj0 = 0 ;
23977 PyObject * obj1 = 0 ;
23978 char *kwnames[] = {
23979 (char *) "self",(char *) "format", NULL
23980 };
23981
23982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
23983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23985 {
23986 arg2 = wxString_in_helper(obj1);
23987 if (arg2 == NULL) SWIG_fail;
23988 temp2 = True;
23989 }
23990 {
23991 PyThreadState* __tstate = wxPyBeginAllowThreads();
23992 (arg1)->SetId((wxString const &)*arg2);
23993
23994 wxPyEndAllowThreads(__tstate);
23995 if (PyErr_Occurred()) SWIG_fail;
23996 }
23997 Py_INCREF(Py_None); resultobj = Py_None;
23998 {
23999 if (temp2)
24000 delete arg2;
24001 }
24002 return resultobj;
24003 fail:
24004 {
24005 if (temp2)
24006 delete arg2;
24007 }
24008 return NULL;
24009 }
24010
24011
24012 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24013 PyObject *obj;
24014 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24015 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24016 Py_INCREF(obj);
24017 return Py_BuildValue((char *)"");
24018 }
24019 static int _wrap_FormatInvalid_set(PyObject *_val) {
24020 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24021 return 1;
24022 }
24023
24024
24025 static PyObject *_wrap_FormatInvalid_get() {
24026 PyObject *pyobj;
24027
24028 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24029 return pyobj;
24030 }
24031
24032
24033 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24034 PyObject *resultobj;
24035 wxDataObject *arg1 = (wxDataObject *) 0 ;
24036 PyObject * obj0 = 0 ;
24037 char *kwnames[] = {
24038 (char *) "self", NULL
24039 };
24040
24041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24044 {
24045 PyThreadState* __tstate = wxPyBeginAllowThreads();
24046 delete arg1;
24047
24048 wxPyEndAllowThreads(__tstate);
24049 if (PyErr_Occurred()) SWIG_fail;
24050 }
24051 Py_INCREF(Py_None); resultobj = Py_None;
24052 return resultobj;
24053 fail:
24054 return NULL;
24055 }
24056
24057
24058 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24059 PyObject *resultobj;
24060 wxDataObject *arg1 = (wxDataObject *) 0 ;
24061 int arg2 = (int) wxDataObject::Get ;
24062 SwigValueWrapper< wxDataFormat > result;
24063 PyObject * obj0 = 0 ;
24064 PyObject * obj1 = 0 ;
24065 char *kwnames[] = {
24066 (char *) "self",(char *) "dir", NULL
24067 };
24068
24069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24072 if (obj1) {
24073 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24074 if (PyErr_Occurred()) SWIG_fail;
24075 }
24076 {
24077 PyThreadState* __tstate = wxPyBeginAllowThreads();
24078 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24079
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 {
24084 wxDataFormat * resultptr;
24085 resultptr = new wxDataFormat((wxDataFormat &) result);
24086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24087 }
24088 return resultobj;
24089 fail:
24090 return NULL;
24091 }
24092
24093
24094 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj;
24096 wxDataObject *arg1 = (wxDataObject *) 0 ;
24097 int arg2 = (int) wxDataObject::Get ;
24098 size_t result;
24099 PyObject * obj0 = 0 ;
24100 PyObject * obj1 = 0 ;
24101 char *kwnames[] = {
24102 (char *) "self",(char *) "dir", NULL
24103 };
24104
24105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24108 if (obj1) {
24109 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24110 if (PyErr_Occurred()) SWIG_fail;
24111 }
24112 {
24113 PyThreadState* __tstate = wxPyBeginAllowThreads();
24114 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24115
24116 wxPyEndAllowThreads(__tstate);
24117 if (PyErr_Occurred()) SWIG_fail;
24118 }
24119 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24120 return resultobj;
24121 fail:
24122 return NULL;
24123 }
24124
24125
24126 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24127 PyObject *resultobj;
24128 wxDataObject *arg1 = (wxDataObject *) 0 ;
24129 wxDataFormat *arg2 = 0 ;
24130 int arg3 = (int) wxDataObject::Get ;
24131 bool result;
24132 PyObject * obj0 = 0 ;
24133 PyObject * obj1 = 0 ;
24134 PyObject * obj2 = 0 ;
24135 char *kwnames[] = {
24136 (char *) "self",(char *) "format",(char *) "dir", NULL
24137 };
24138
24139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24143 SWIG_POINTER_EXCEPTION | 0)) == -1)
24144 SWIG_fail;
24145 if (arg2 == NULL) {
24146 PyErr_SetString(PyExc_TypeError,"null reference");
24147 SWIG_fail;
24148 }
24149 if (obj2) {
24150 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24151 if (PyErr_Occurred()) SWIG_fail;
24152 }
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24156
24157 wxPyEndAllowThreads(__tstate);
24158 if (PyErr_Occurred()) SWIG_fail;
24159 }
24160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24161 return resultobj;
24162 fail:
24163 return NULL;
24164 }
24165
24166
24167 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24168 PyObject *resultobj;
24169 wxDataObject *arg1 = (wxDataObject *) 0 ;
24170 wxDataFormat *arg2 = 0 ;
24171 size_t result;
24172 PyObject * obj0 = 0 ;
24173 PyObject * obj1 = 0 ;
24174 char *kwnames[] = {
24175 (char *) "self",(char *) "format", NULL
24176 };
24177
24178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24181 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24182 SWIG_POINTER_EXCEPTION | 0)) == -1)
24183 SWIG_fail;
24184 if (arg2 == NULL) {
24185 PyErr_SetString(PyExc_TypeError,"null reference");
24186 SWIG_fail;
24187 }
24188 {
24189 PyThreadState* __tstate = wxPyBeginAllowThreads();
24190 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24191
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24196 return resultobj;
24197 fail:
24198 return NULL;
24199 }
24200
24201
24202 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24203 PyObject *resultobj;
24204 wxDataObject *arg1 = (wxDataObject *) 0 ;
24205 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24206 int arg3 = (int) wxDataObject::Get ;
24207 PyObject * obj0 = 0 ;
24208 PyObject * obj1 = 0 ;
24209 PyObject * obj2 = 0 ;
24210 char *kwnames[] = {
24211 (char *) "self",(char *) "formats",(char *) "dir", NULL
24212 };
24213
24214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24219 if (obj2) {
24220 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24221 if (PyErr_Occurred()) SWIG_fail;
24222 }
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24226
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 Py_INCREF(Py_None); resultobj = Py_None;
24231 return resultobj;
24232 fail:
24233 return NULL;
24234 }
24235
24236
24237 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj;
24239 wxDataObject *arg1 = (wxDataObject *) 0 ;
24240 wxDataFormat *arg2 = 0 ;
24241 void *arg3 = (void *) 0 ;
24242 bool result;
24243 PyObject * obj0 = 0 ;
24244 PyObject * obj1 = 0 ;
24245 PyObject * obj2 = 0 ;
24246 char *kwnames[] = {
24247 (char *) "self",(char *) "format",(char *) "buf", NULL
24248 };
24249
24250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24254 SWIG_POINTER_EXCEPTION | 0)) == -1)
24255 SWIG_fail;
24256 if (arg2 == NULL) {
24257 PyErr_SetString(PyExc_TypeError,"null reference");
24258 SWIG_fail;
24259 }
24260 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24261 {
24262 PyThreadState* __tstate = wxPyBeginAllowThreads();
24263 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24264
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24269 return resultobj;
24270 fail:
24271 return NULL;
24272 }
24273
24274
24275 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24276 PyObject *resultobj;
24277 wxDataObject *arg1 = (wxDataObject *) 0 ;
24278 wxDataFormat *arg2 = 0 ;
24279 size_t arg3 ;
24280 void *arg4 = (void *) 0 ;
24281 bool result;
24282 PyObject * obj0 = 0 ;
24283 PyObject * obj1 = 0 ;
24284 PyObject * obj2 = 0 ;
24285 PyObject * obj3 = 0 ;
24286 char *kwnames[] = {
24287 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24288 };
24289
24290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24293 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24294 SWIG_POINTER_EXCEPTION | 0)) == -1)
24295 SWIG_fail;
24296 if (arg2 == NULL) {
24297 PyErr_SetString(PyExc_TypeError,"null reference");
24298 SWIG_fail;
24299 }
24300 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24301 if (PyErr_Occurred()) SWIG_fail;
24302 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24303 {
24304 PyThreadState* __tstate = wxPyBeginAllowThreads();
24305 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24306
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24311 return resultobj;
24312 fail:
24313 return NULL;
24314 }
24315
24316
24317 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24318 PyObject *obj;
24319 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24320 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24321 Py_INCREF(obj);
24322 return Py_BuildValue((char *)"");
24323 }
24324 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj;
24326 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24327 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24328 wxDataObjectSimple *result;
24329 PyObject * obj0 = 0 ;
24330 char *kwnames[] = {
24331 (char *) "format", NULL
24332 };
24333
24334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24335 if (obj0) {
24336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24337 SWIG_POINTER_EXCEPTION | 0)) == -1)
24338 SWIG_fail;
24339 if (arg1 == NULL) {
24340 PyErr_SetString(PyExc_TypeError,"null reference");
24341 SWIG_fail;
24342 }
24343 }
24344 {
24345 PyThreadState* __tstate = wxPyBeginAllowThreads();
24346 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24347
24348 wxPyEndAllowThreads(__tstate);
24349 if (PyErr_Occurred()) SWIG_fail;
24350 }
24351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24352 return resultobj;
24353 fail:
24354 return NULL;
24355 }
24356
24357
24358 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24359 PyObject *resultobj;
24360 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24361 wxDataFormat *result;
24362 PyObject * obj0 = 0 ;
24363 char *kwnames[] = {
24364 (char *) "self", NULL
24365 };
24366
24367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24370 {
24371 PyThreadState* __tstate = wxPyBeginAllowThreads();
24372 {
24373 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24374 result = (wxDataFormat *) &_result_ref;
24375 }
24376
24377 wxPyEndAllowThreads(__tstate);
24378 if (PyErr_Occurred()) SWIG_fail;
24379 }
24380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24381 return resultobj;
24382 fail:
24383 return NULL;
24384 }
24385
24386
24387 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24388 PyObject *resultobj;
24389 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24390 wxDataFormat *arg2 = 0 ;
24391 PyObject * obj0 = 0 ;
24392 PyObject * obj1 = 0 ;
24393 char *kwnames[] = {
24394 (char *) "self",(char *) "format", NULL
24395 };
24396
24397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24400 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24401 SWIG_POINTER_EXCEPTION | 0)) == -1)
24402 SWIG_fail;
24403 if (arg2 == NULL) {
24404 PyErr_SetString(PyExc_TypeError,"null reference");
24405 SWIG_fail;
24406 }
24407 {
24408 PyThreadState* __tstate = wxPyBeginAllowThreads();
24409 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24410
24411 wxPyEndAllowThreads(__tstate);
24412 if (PyErr_Occurred()) SWIG_fail;
24413 }
24414 Py_INCREF(Py_None); resultobj = Py_None;
24415 return resultobj;
24416 fail:
24417 return NULL;
24418 }
24419
24420
24421 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24422 PyObject *obj;
24423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24424 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24425 Py_INCREF(obj);
24426 return Py_BuildValue((char *)"");
24427 }
24428 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj;
24430 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24431 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24432 wxPyDataObjectSimple *result;
24433 PyObject * obj0 = 0 ;
24434 char *kwnames[] = {
24435 (char *) "format", NULL
24436 };
24437
24438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24439 if (obj0) {
24440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24441 SWIG_POINTER_EXCEPTION | 0)) == -1)
24442 SWIG_fail;
24443 if (arg1 == NULL) {
24444 PyErr_SetString(PyExc_TypeError,"null reference");
24445 SWIG_fail;
24446 }
24447 }
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24451
24452 wxPyEndAllowThreads(__tstate);
24453 if (PyErr_Occurred()) SWIG_fail;
24454 }
24455 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24456 return resultobj;
24457 fail:
24458 return NULL;
24459 }
24460
24461
24462 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24463 PyObject *resultobj;
24464 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24465 PyObject *arg2 = (PyObject *) 0 ;
24466 PyObject *arg3 = (PyObject *) 0 ;
24467 PyObject * obj0 = 0 ;
24468 PyObject * obj1 = 0 ;
24469 PyObject * obj2 = 0 ;
24470 char *kwnames[] = {
24471 (char *) "self",(char *) "self",(char *) "_class", NULL
24472 };
24473
24474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24477 arg2 = obj1;
24478 arg3 = obj2;
24479 {
24480 PyThreadState* __tstate = wxPyBeginAllowThreads();
24481 (arg1)->_setCallbackInfo(arg2,arg3);
24482
24483 wxPyEndAllowThreads(__tstate);
24484 if (PyErr_Occurred()) SWIG_fail;
24485 }
24486 Py_INCREF(Py_None); resultobj = Py_None;
24487 return resultobj;
24488 fail:
24489 return NULL;
24490 }
24491
24492
24493 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24494 PyObject *obj;
24495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24496 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24497 Py_INCREF(obj);
24498 return Py_BuildValue((char *)"");
24499 }
24500 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24501 PyObject *resultobj;
24502 wxDataObjectComposite *result;
24503 char *kwnames[] = {
24504 NULL
24505 };
24506
24507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24508 {
24509 PyThreadState* __tstate = wxPyBeginAllowThreads();
24510 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24511
24512 wxPyEndAllowThreads(__tstate);
24513 if (PyErr_Occurred()) SWIG_fail;
24514 }
24515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24516 return resultobj;
24517 fail:
24518 return NULL;
24519 }
24520
24521
24522 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24523 PyObject *resultobj;
24524 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24525 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24526 int arg3 = (int) False ;
24527 PyObject * obj0 = 0 ;
24528 PyObject * obj1 = 0 ;
24529 PyObject * obj2 = 0 ;
24530 char *kwnames[] = {
24531 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24532 };
24533
24534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24538 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24539 if (obj2) {
24540 arg3 = (int) SWIG_AsInt(obj2);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 (arg1)->Add(arg2,arg3);
24546
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
24550 Py_INCREF(Py_None); resultobj = Py_None;
24551 return resultobj;
24552 fail:
24553 return NULL;
24554 }
24555
24556
24557 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24558 PyObject *obj;
24559 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24560 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24561 Py_INCREF(obj);
24562 return Py_BuildValue((char *)"");
24563 }
24564 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj;
24566 wxString const &arg1_defvalue = wxPyEmptyString ;
24567 wxString *arg1 = (wxString *) &arg1_defvalue ;
24568 wxTextDataObject *result;
24569 bool temp1 = False ;
24570 PyObject * obj0 = 0 ;
24571 char *kwnames[] = {
24572 (char *) "text", NULL
24573 };
24574
24575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24576 if (obj0) {
24577 {
24578 arg1 = wxString_in_helper(obj0);
24579 if (arg1 == NULL) SWIG_fail;
24580 temp1 = True;
24581 }
24582 }
24583 {
24584 PyThreadState* __tstate = wxPyBeginAllowThreads();
24585 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24586
24587 wxPyEndAllowThreads(__tstate);
24588 if (PyErr_Occurred()) SWIG_fail;
24589 }
24590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24591 {
24592 if (temp1)
24593 delete arg1;
24594 }
24595 return resultobj;
24596 fail:
24597 {
24598 if (temp1)
24599 delete arg1;
24600 }
24601 return NULL;
24602 }
24603
24604
24605 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24606 PyObject *resultobj;
24607 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24608 size_t result;
24609 PyObject * obj0 = 0 ;
24610 char *kwnames[] = {
24611 (char *) "self", NULL
24612 };
24613
24614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 result = (size_t)(arg1)->GetTextLength();
24620
24621 wxPyEndAllowThreads(__tstate);
24622 if (PyErr_Occurred()) SWIG_fail;
24623 }
24624 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24625 return resultobj;
24626 fail:
24627 return NULL;
24628 }
24629
24630
24631 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj;
24633 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24634 wxString result;
24635 PyObject * obj0 = 0 ;
24636 char *kwnames[] = {
24637 (char *) "self", NULL
24638 };
24639
24640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24643 {
24644 PyThreadState* __tstate = wxPyBeginAllowThreads();
24645 result = (arg1)->GetText();
24646
24647 wxPyEndAllowThreads(__tstate);
24648 if (PyErr_Occurred()) SWIG_fail;
24649 }
24650 {
24651 #if wxUSE_UNICODE
24652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24653 #else
24654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24655 #endif
24656 }
24657 return resultobj;
24658 fail:
24659 return NULL;
24660 }
24661
24662
24663 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj;
24665 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24666 wxString *arg2 = 0 ;
24667 bool temp2 = False ;
24668 PyObject * obj0 = 0 ;
24669 PyObject * obj1 = 0 ;
24670 char *kwnames[] = {
24671 (char *) "self",(char *) "text", NULL
24672 };
24673
24674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24677 {
24678 arg2 = wxString_in_helper(obj1);
24679 if (arg2 == NULL) SWIG_fail;
24680 temp2 = True;
24681 }
24682 {
24683 PyThreadState* __tstate = wxPyBeginAllowThreads();
24684 (arg1)->SetText((wxString const &)*arg2);
24685
24686 wxPyEndAllowThreads(__tstate);
24687 if (PyErr_Occurred()) SWIG_fail;
24688 }
24689 Py_INCREF(Py_None); resultobj = Py_None;
24690 {
24691 if (temp2)
24692 delete arg2;
24693 }
24694 return resultobj;
24695 fail:
24696 {
24697 if (temp2)
24698 delete arg2;
24699 }
24700 return NULL;
24701 }
24702
24703
24704 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24705 PyObject *obj;
24706 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24707 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24708 Py_INCREF(obj);
24709 return Py_BuildValue((char *)"");
24710 }
24711 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24712 PyObject *resultobj;
24713 wxString const &arg1_defvalue = wxPyEmptyString ;
24714 wxString *arg1 = (wxString *) &arg1_defvalue ;
24715 wxPyTextDataObject *result;
24716 bool temp1 = False ;
24717 PyObject * obj0 = 0 ;
24718 char *kwnames[] = {
24719 (char *) "text", NULL
24720 };
24721
24722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24723 if (obj0) {
24724 {
24725 arg1 = wxString_in_helper(obj0);
24726 if (arg1 == NULL) SWIG_fail;
24727 temp1 = True;
24728 }
24729 }
24730 {
24731 PyThreadState* __tstate = wxPyBeginAllowThreads();
24732 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24733
24734 wxPyEndAllowThreads(__tstate);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24738 {
24739 if (temp1)
24740 delete arg1;
24741 }
24742 return resultobj;
24743 fail:
24744 {
24745 if (temp1)
24746 delete arg1;
24747 }
24748 return NULL;
24749 }
24750
24751
24752 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24753 PyObject *resultobj;
24754 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24755 PyObject *arg2 = (PyObject *) 0 ;
24756 PyObject *arg3 = (PyObject *) 0 ;
24757 PyObject * obj0 = 0 ;
24758 PyObject * obj1 = 0 ;
24759 PyObject * obj2 = 0 ;
24760 char *kwnames[] = {
24761 (char *) "self",(char *) "self",(char *) "_class", NULL
24762 };
24763
24764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
24766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24767 arg2 = obj1;
24768 arg3 = obj2;
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 (arg1)->_setCallbackInfo(arg2,arg3);
24772
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 Py_INCREF(Py_None); resultobj = Py_None;
24777 return resultobj;
24778 fail:
24779 return NULL;
24780 }
24781
24782
24783 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
24784 PyObject *obj;
24785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24786 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
24787 Py_INCREF(obj);
24788 return Py_BuildValue((char *)"");
24789 }
24790 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24791 PyObject *resultobj;
24792 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24793 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24794 wxBitmapDataObject *result;
24795 PyObject * obj0 = 0 ;
24796 char *kwnames[] = {
24797 (char *) "bitmap", NULL
24798 };
24799
24800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
24801 if (obj0) {
24802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24803 SWIG_POINTER_EXCEPTION | 0)) == -1)
24804 SWIG_fail;
24805 if (arg1 == NULL) {
24806 PyErr_SetString(PyExc_TypeError,"null reference");
24807 SWIG_fail;
24808 }
24809 }
24810 {
24811 PyThreadState* __tstate = wxPyBeginAllowThreads();
24812 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
24813
24814 wxPyEndAllowThreads(__tstate);
24815 if (PyErr_Occurred()) SWIG_fail;
24816 }
24817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
24818 return resultobj;
24819 fail:
24820 return NULL;
24821 }
24822
24823
24824 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24825 PyObject *resultobj;
24826 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24827 wxBitmap result;
24828 PyObject * obj0 = 0 ;
24829 char *kwnames[] = {
24830 (char *) "self", NULL
24831 };
24832
24833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
24834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24836 {
24837 PyThreadState* __tstate = wxPyBeginAllowThreads();
24838 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
24839
24840 wxPyEndAllowThreads(__tstate);
24841 if (PyErr_Occurred()) SWIG_fail;
24842 }
24843 {
24844 wxBitmap * resultptr;
24845 resultptr = new wxBitmap((wxBitmap &) result);
24846 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
24847 }
24848 return resultobj;
24849 fail:
24850 return NULL;
24851 }
24852
24853
24854 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24855 PyObject *resultobj;
24856 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24857 wxBitmap *arg2 = 0 ;
24858 PyObject * obj0 = 0 ;
24859 PyObject * obj1 = 0 ;
24860 char *kwnames[] = {
24861 (char *) "self",(char *) "bitmap", NULL
24862 };
24863
24864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
24865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24867 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
24868 SWIG_POINTER_EXCEPTION | 0)) == -1)
24869 SWIG_fail;
24870 if (arg2 == NULL) {
24871 PyErr_SetString(PyExc_TypeError,"null reference");
24872 SWIG_fail;
24873 }
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
24876 (arg1)->SetBitmap((wxBitmap const &)*arg2);
24877
24878 wxPyEndAllowThreads(__tstate);
24879 if (PyErr_Occurred()) SWIG_fail;
24880 }
24881 Py_INCREF(Py_None); resultobj = Py_None;
24882 return resultobj;
24883 fail:
24884 return NULL;
24885 }
24886
24887
24888 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24889 PyObject *obj;
24890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24891 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
24892 Py_INCREF(obj);
24893 return Py_BuildValue((char *)"");
24894 }
24895 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24896 PyObject *resultobj;
24897 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24898 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24899 wxPyBitmapDataObject *result;
24900 PyObject * obj0 = 0 ;
24901 char *kwnames[] = {
24902 (char *) "bitmap", NULL
24903 };
24904
24905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
24906 if (obj0) {
24907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24908 SWIG_POINTER_EXCEPTION | 0)) == -1)
24909 SWIG_fail;
24910 if (arg1 == NULL) {
24911 PyErr_SetString(PyExc_TypeError,"null reference");
24912 SWIG_fail;
24913 }
24914 }
24915 {
24916 PyThreadState* __tstate = wxPyBeginAllowThreads();
24917 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
24918
24919 wxPyEndAllowThreads(__tstate);
24920 if (PyErr_Occurred()) SWIG_fail;
24921 }
24922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
24923 return resultobj;
24924 fail:
24925 return NULL;
24926 }
24927
24928
24929 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24930 PyObject *resultobj;
24931 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
24932 PyObject *arg2 = (PyObject *) 0 ;
24933 PyObject *arg3 = (PyObject *) 0 ;
24934 PyObject * obj0 = 0 ;
24935 PyObject * obj1 = 0 ;
24936 PyObject * obj2 = 0 ;
24937 char *kwnames[] = {
24938 (char *) "self",(char *) "self",(char *) "_class", NULL
24939 };
24940
24941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
24943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24944 arg2 = obj1;
24945 arg3 = obj2;
24946 {
24947 PyThreadState* __tstate = wxPyBeginAllowThreads();
24948 (arg1)->_setCallbackInfo(arg2,arg3);
24949
24950 wxPyEndAllowThreads(__tstate);
24951 if (PyErr_Occurred()) SWIG_fail;
24952 }
24953 Py_INCREF(Py_None); resultobj = Py_None;
24954 return resultobj;
24955 fail:
24956 return NULL;
24957 }
24958
24959
24960 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24961 PyObject *obj;
24962 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24963 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
24964 Py_INCREF(obj);
24965 return Py_BuildValue((char *)"");
24966 }
24967 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24968 PyObject *resultobj;
24969 wxFileDataObject *result;
24970 char *kwnames[] = {
24971 NULL
24972 };
24973
24974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
24975 {
24976 PyThreadState* __tstate = wxPyBeginAllowThreads();
24977 result = (wxFileDataObject *)new wxFileDataObject();
24978
24979 wxPyEndAllowThreads(__tstate);
24980 if (PyErr_Occurred()) SWIG_fail;
24981 }
24982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
24983 return resultobj;
24984 fail:
24985 return NULL;
24986 }
24987
24988
24989 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
24990 PyObject *resultobj;
24991 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24992 wxArrayString *result;
24993 PyObject * obj0 = 0 ;
24994 char *kwnames[] = {
24995 (char *) "self", NULL
24996 };
24997
24998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
24999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25001 {
25002 PyThreadState* __tstate = wxPyBeginAllowThreads();
25003 {
25004 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25005 result = (wxArrayString *) &_result_ref;
25006 }
25007
25008 wxPyEndAllowThreads(__tstate);
25009 if (PyErr_Occurred()) SWIG_fail;
25010 }
25011 {
25012 resultobj = wxArrayString2PyList_helper(*result);
25013 }
25014 return resultobj;
25015 fail:
25016 return NULL;
25017 }
25018
25019
25020 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25021 PyObject *resultobj;
25022 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25023 wxString *arg2 = 0 ;
25024 bool temp2 = False ;
25025 PyObject * obj0 = 0 ;
25026 PyObject * obj1 = 0 ;
25027 char *kwnames[] = {
25028 (char *) "self",(char *) "filename", NULL
25029 };
25030
25031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25034 {
25035 arg2 = wxString_in_helper(obj1);
25036 if (arg2 == NULL) SWIG_fail;
25037 temp2 = True;
25038 }
25039 {
25040 PyThreadState* __tstate = wxPyBeginAllowThreads();
25041 (arg1)->AddFile((wxString const &)*arg2);
25042
25043 wxPyEndAllowThreads(__tstate);
25044 if (PyErr_Occurred()) SWIG_fail;
25045 }
25046 Py_INCREF(Py_None); resultobj = Py_None;
25047 {
25048 if (temp2)
25049 delete arg2;
25050 }
25051 return resultobj;
25052 fail:
25053 {
25054 if (temp2)
25055 delete arg2;
25056 }
25057 return NULL;
25058 }
25059
25060
25061 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25062 PyObject *obj;
25063 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25064 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25065 Py_INCREF(obj);
25066 return Py_BuildValue((char *)"");
25067 }
25068 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25069 PyObject *resultobj;
25070 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25071 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25072 wxCustomDataObject *result;
25073 PyObject * obj0 = 0 ;
25074 char *kwnames[] = {
25075 (char *) "format", NULL
25076 };
25077
25078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25079 if (obj0) {
25080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25081 SWIG_POINTER_EXCEPTION | 0)) == -1)
25082 SWIG_fail;
25083 if (arg1 == NULL) {
25084 PyErr_SetString(PyExc_TypeError,"null reference");
25085 SWIG_fail;
25086 }
25087 }
25088 {
25089 PyThreadState* __tstate = wxPyBeginAllowThreads();
25090 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25091
25092 wxPyEndAllowThreads(__tstate);
25093 if (PyErr_Occurred()) SWIG_fail;
25094 }
25095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25096 return resultobj;
25097 fail:
25098 return NULL;
25099 }
25100
25101
25102 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
25103 PyObject *resultobj;
25104 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25105 PyObject *arg2 = (PyObject *) 0 ;
25106 PyObject * obj0 = 0 ;
25107 PyObject * obj1 = 0 ;
25108 char *kwnames[] = {
25109 (char *) "self",(char *) "data", NULL
25110 };
25111
25112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25115 arg2 = obj1;
25116 {
25117 PyThreadState* __tstate = wxPyBeginAllowThreads();
25118 wxCustomDataObject_TakeData(arg1,arg2);
25119
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 Py_INCREF(Py_None); resultobj = Py_None;
25124 return resultobj;
25125 fail:
25126 return NULL;
25127 }
25128
25129
25130 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25131 PyObject *resultobj;
25132 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25133 PyObject *arg2 = (PyObject *) 0 ;
25134 bool result;
25135 PyObject * obj0 = 0 ;
25136 PyObject * obj1 = 0 ;
25137 char *kwnames[] = {
25138 (char *) "self",(char *) "data", NULL
25139 };
25140
25141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25144 arg2 = obj1;
25145 {
25146 PyThreadState* __tstate = wxPyBeginAllowThreads();
25147 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25148
25149 wxPyEndAllowThreads(__tstate);
25150 if (PyErr_Occurred()) SWIG_fail;
25151 }
25152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25153 return resultobj;
25154 fail:
25155 return NULL;
25156 }
25157
25158
25159 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25160 PyObject *resultobj;
25161 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25162 size_t result;
25163 PyObject * obj0 = 0 ;
25164 char *kwnames[] = {
25165 (char *) "self", NULL
25166 };
25167
25168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25171 {
25172 PyThreadState* __tstate = wxPyBeginAllowThreads();
25173 result = (size_t)(arg1)->GetSize();
25174
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25186 PyObject *resultobj;
25187 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25188 PyObject *result;
25189 PyObject * obj0 = 0 ;
25190 char *kwnames[] = {
25191 (char *) "self", NULL
25192 };
25193
25194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25197 {
25198 PyThreadState* __tstate = wxPyBeginAllowThreads();
25199 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25200
25201 wxPyEndAllowThreads(__tstate);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 resultobj = result;
25205 return resultobj;
25206 fail:
25207 return NULL;
25208 }
25209
25210
25211 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25212 PyObject *obj;
25213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25214 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25215 Py_INCREF(obj);
25216 return Py_BuildValue((char *)"");
25217 }
25218 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25219 PyObject *resultobj;
25220 wxURLDataObject *result;
25221 char *kwnames[] = {
25222 NULL
25223 };
25224
25225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (wxURLDataObject *)new wxURLDataObject();
25229
25230 wxPyEndAllowThreads(__tstate);
25231 if (PyErr_Occurred()) SWIG_fail;
25232 }
25233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25234 return resultobj;
25235 fail:
25236 return NULL;
25237 }
25238
25239
25240 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25241 PyObject *resultobj;
25242 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25243 wxString result;
25244 PyObject * obj0 = 0 ;
25245 char *kwnames[] = {
25246 (char *) "self", NULL
25247 };
25248
25249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25252 {
25253 PyThreadState* __tstate = wxPyBeginAllowThreads();
25254 result = (arg1)->GetURL();
25255
25256 wxPyEndAllowThreads(__tstate);
25257 if (PyErr_Occurred()) SWIG_fail;
25258 }
25259 {
25260 #if wxUSE_UNICODE
25261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25262 #else
25263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25264 #endif
25265 }
25266 return resultobj;
25267 fail:
25268 return NULL;
25269 }
25270
25271
25272 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25273 PyObject *resultobj;
25274 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25275 wxString *arg2 = 0 ;
25276 bool temp2 = False ;
25277 PyObject * obj0 = 0 ;
25278 PyObject * obj1 = 0 ;
25279 char *kwnames[] = {
25280 (char *) "self",(char *) "url", NULL
25281 };
25282
25283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25286 {
25287 arg2 = wxString_in_helper(obj1);
25288 if (arg2 == NULL) SWIG_fail;
25289 temp2 = True;
25290 }
25291 {
25292 PyThreadState* __tstate = wxPyBeginAllowThreads();
25293 (arg1)->SetURL((wxString const &)*arg2);
25294
25295 wxPyEndAllowThreads(__tstate);
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 Py_INCREF(Py_None); resultobj = Py_None;
25299 {
25300 if (temp2)
25301 delete arg2;
25302 }
25303 return resultobj;
25304 fail:
25305 {
25306 if (temp2)
25307 delete arg2;
25308 }
25309 return NULL;
25310 }
25311
25312
25313 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25314 PyObject *obj;
25315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25316 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25317 Py_INCREF(obj);
25318 return Py_BuildValue((char *)"");
25319 }
25320 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25321 PyObject *resultobj;
25322 wxMetafileDataObject *result;
25323 char *kwnames[] = {
25324 NULL
25325 };
25326
25327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25328 {
25329 PyThreadState* __tstate = wxPyBeginAllowThreads();
25330 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25331
25332 wxPyEndAllowThreads(__tstate);
25333 if (PyErr_Occurred()) SWIG_fail;
25334 }
25335 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25336 return resultobj;
25337 fail:
25338 return NULL;
25339 }
25340
25341
25342 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25343 PyObject *obj;
25344 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25345 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25346 Py_INCREF(obj);
25347 return Py_BuildValue((char *)"");
25348 }
25349 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25350 PyObject *resultobj;
25351 int arg1 ;
25352 bool result;
25353 PyObject * obj0 = 0 ;
25354 char *kwnames[] = {
25355 (char *) "res", NULL
25356 };
25357
25358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25359 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25360 if (PyErr_Occurred()) SWIG_fail;
25361 {
25362 PyThreadState* __tstate = wxPyBeginAllowThreads();
25363 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25364
25365 wxPyEndAllowThreads(__tstate);
25366 if (PyErr_Occurred()) SWIG_fail;
25367 }
25368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25369 return resultobj;
25370 fail:
25371 return NULL;
25372 }
25373
25374
25375 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25376 PyObject *resultobj;
25377 wxWindow *arg1 = (wxWindow *) 0 ;
25378 wxIcon const &arg2_defvalue = wxNullIcon ;
25379 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
25380 wxIcon const &arg3_defvalue = wxNullIcon ;
25381 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
25382 wxIcon const &arg4_defvalue = wxNullIcon ;
25383 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
25384 wxPyDropSource *result;
25385 PyObject * obj0 = 0 ;
25386 PyObject * obj1 = 0 ;
25387 PyObject * obj2 = 0 ;
25388 PyObject * obj3 = 0 ;
25389 char *kwnames[] = {
25390 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25391 };
25392
25393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25396 if (obj1) {
25397 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
25398 SWIG_POINTER_EXCEPTION | 0)) == -1)
25399 SWIG_fail;
25400 if (arg2 == NULL) {
25401 PyErr_SetString(PyExc_TypeError,"null reference");
25402 SWIG_fail;
25403 }
25404 }
25405 if (obj2) {
25406 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
25407 SWIG_POINTER_EXCEPTION | 0)) == -1)
25408 SWIG_fail;
25409 if (arg3 == NULL) {
25410 PyErr_SetString(PyExc_TypeError,"null reference");
25411 SWIG_fail;
25412 }
25413 }
25414 if (obj3) {
25415 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
25416 SWIG_POINTER_EXCEPTION | 0)) == -1)
25417 SWIG_fail;
25418 if (arg4 == NULL) {
25419 PyErr_SetString(PyExc_TypeError,"null reference");
25420 SWIG_fail;
25421 }
25422 }
25423 {
25424 PyThreadState* __tstate = wxPyBeginAllowThreads();
25425 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
25426
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25431 return resultobj;
25432 fail:
25433 return NULL;
25434 }
25435
25436
25437 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25438 PyObject *resultobj;
25439 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25440 PyObject *arg2 = (PyObject *) 0 ;
25441 PyObject *arg3 = (PyObject *) 0 ;
25442 int arg4 ;
25443 PyObject * obj0 = 0 ;
25444 PyObject * obj1 = 0 ;
25445 PyObject * obj2 = 0 ;
25446 PyObject * obj3 = 0 ;
25447 char *kwnames[] = {
25448 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25449 };
25450
25451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25454 arg2 = obj1;
25455 arg3 = obj2;
25456 arg4 = (int) SWIG_AsInt(obj3);
25457 if (PyErr_Occurred()) SWIG_fail;
25458 {
25459 PyThreadState* __tstate = wxPyBeginAllowThreads();
25460 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25461
25462 wxPyEndAllowThreads(__tstate);
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 Py_INCREF(Py_None); resultobj = Py_None;
25466 return resultobj;
25467 fail:
25468 return NULL;
25469 }
25470
25471
25472 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25473 PyObject *resultobj;
25474 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25475 PyObject * obj0 = 0 ;
25476 char *kwnames[] = {
25477 (char *) "self", NULL
25478 };
25479
25480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25483 {
25484 PyThreadState* __tstate = wxPyBeginAllowThreads();
25485 delete arg1;
25486
25487 wxPyEndAllowThreads(__tstate);
25488 if (PyErr_Occurred()) SWIG_fail;
25489 }
25490 Py_INCREF(Py_None); resultobj = Py_None;
25491 return resultobj;
25492 fail:
25493 return NULL;
25494 }
25495
25496
25497 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25498 PyObject *resultobj;
25499 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25500 wxDataObject *arg2 = 0 ;
25501 PyObject * obj0 = 0 ;
25502 PyObject * obj1 = 0 ;
25503 char *kwnames[] = {
25504 (char *) "self",(char *) "data", NULL
25505 };
25506
25507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25510 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25511 SWIG_POINTER_EXCEPTION | 0)) == -1)
25512 SWIG_fail;
25513 if (arg2 == NULL) {
25514 PyErr_SetString(PyExc_TypeError,"null reference");
25515 SWIG_fail;
25516 }
25517 {
25518 PyThreadState* __tstate = wxPyBeginAllowThreads();
25519 (arg1)->SetData(*arg2);
25520
25521 wxPyEndAllowThreads(__tstate);
25522 if (PyErr_Occurred()) SWIG_fail;
25523 }
25524 Py_INCREF(Py_None); resultobj = Py_None;
25525 return resultobj;
25526 fail:
25527 return NULL;
25528 }
25529
25530
25531 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25532 PyObject *resultobj;
25533 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25534 wxDataObject *result;
25535 PyObject * obj0 = 0 ;
25536 char *kwnames[] = {
25537 (char *) "self", NULL
25538 };
25539
25540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25543 {
25544 PyThreadState* __tstate = wxPyBeginAllowThreads();
25545 result = (wxDataObject *)(arg1)->GetDataObject();
25546
25547 wxPyEndAllowThreads(__tstate);
25548 if (PyErr_Occurred()) SWIG_fail;
25549 }
25550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25551 return resultobj;
25552 fail:
25553 return NULL;
25554 }
25555
25556
25557 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25558 PyObject *resultobj;
25559 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25560 int arg2 ;
25561 wxCursor *arg3 = 0 ;
25562 PyObject * obj0 = 0 ;
25563 PyObject * obj1 = 0 ;
25564 PyObject * obj2 = 0 ;
25565 char *kwnames[] = {
25566 (char *) "self",(char *) "res",(char *) "cursor", NULL
25567 };
25568
25569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25572 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25573 if (PyErr_Occurred()) SWIG_fail;
25574 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25575 SWIG_POINTER_EXCEPTION | 0)) == -1)
25576 SWIG_fail;
25577 if (arg3 == NULL) {
25578 PyErr_SetString(PyExc_TypeError,"null reference");
25579 SWIG_fail;
25580 }
25581 {
25582 PyThreadState* __tstate = wxPyBeginAllowThreads();
25583 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25584
25585 wxPyEndAllowThreads(__tstate);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 Py_INCREF(Py_None); resultobj = Py_None;
25589 return resultobj;
25590 fail:
25591 return NULL;
25592 }
25593
25594
25595 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25596 PyObject *resultobj;
25597 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25598 int arg2 = (int) wxDrag_CopyOnly ;
25599 int result;
25600 PyObject * obj0 = 0 ;
25601 PyObject * obj1 = 0 ;
25602 char *kwnames[] = {
25603 (char *) "self",(char *) "flags", NULL
25604 };
25605
25606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25609 if (obj1) {
25610 arg2 = (int) SWIG_AsInt(obj1);
25611 if (PyErr_Occurred()) SWIG_fail;
25612 }
25613 {
25614 PyThreadState* __tstate = wxPyBeginAllowThreads();
25615 result = (int)(arg1)->DoDragDrop(arg2);
25616
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 resultobj = SWIG_FromInt((int)result);
25621 return resultobj;
25622 fail:
25623 return NULL;
25624 }
25625
25626
25627 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25628 PyObject *resultobj;
25629 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25630 int arg2 ;
25631 bool result;
25632 PyObject * obj0 = 0 ;
25633 PyObject * obj1 = 0 ;
25634 char *kwnames[] = {
25635 (char *) "self",(char *) "effect", NULL
25636 };
25637
25638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25641 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25642 if (PyErr_Occurred()) SWIG_fail;
25643 {
25644 PyThreadState* __tstate = wxPyBeginAllowThreads();
25645 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25646
25647 wxPyEndAllowThreads(__tstate);
25648 if (PyErr_Occurred()) SWIG_fail;
25649 }
25650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25651 return resultobj;
25652 fail:
25653 return NULL;
25654 }
25655
25656
25657 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25658 PyObject *obj;
25659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25660 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25661 Py_INCREF(obj);
25662 return Py_BuildValue((char *)"");
25663 }
25664 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25665 PyObject *resultobj;
25666 wxDataObject *arg1 = (wxDataObject *) NULL ;
25667 wxPyDropTarget *result;
25668 PyObject * obj0 = 0 ;
25669 char *kwnames[] = {
25670 (char *) "dataObject", NULL
25671 };
25672
25673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25674 if (obj0) {
25675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25676 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25677 }
25678 {
25679 PyThreadState* __tstate = wxPyBeginAllowThreads();
25680 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25681
25682 wxPyEndAllowThreads(__tstate);
25683 if (PyErr_Occurred()) SWIG_fail;
25684 }
25685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25686 return resultobj;
25687 fail:
25688 return NULL;
25689 }
25690
25691
25692 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25693 PyObject *resultobj;
25694 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25695 PyObject *arg2 = (PyObject *) 0 ;
25696 PyObject *arg3 = (PyObject *) 0 ;
25697 PyObject * obj0 = 0 ;
25698 PyObject * obj1 = 0 ;
25699 PyObject * obj2 = 0 ;
25700 char *kwnames[] = {
25701 (char *) "self",(char *) "self",(char *) "_class", NULL
25702 };
25703
25704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25707 arg2 = obj1;
25708 arg3 = obj2;
25709 {
25710 PyThreadState* __tstate = wxPyBeginAllowThreads();
25711 (arg1)->_setCallbackInfo(arg2,arg3);
25712
25713 wxPyEndAllowThreads(__tstate);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 Py_INCREF(Py_None); resultobj = Py_None;
25717 return resultobj;
25718 fail:
25719 return NULL;
25720 }
25721
25722
25723 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25724 PyObject *resultobj;
25725 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25726 PyObject * obj0 = 0 ;
25727 char *kwnames[] = {
25728 (char *) "self", NULL
25729 };
25730
25731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
25732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25734 {
25735 PyThreadState* __tstate = wxPyBeginAllowThreads();
25736 delete arg1;
25737
25738 wxPyEndAllowThreads(__tstate);
25739 if (PyErr_Occurred()) SWIG_fail;
25740 }
25741 Py_INCREF(Py_None); resultobj = Py_None;
25742 return resultobj;
25743 fail:
25744 return NULL;
25745 }
25746
25747
25748 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25749 PyObject *resultobj;
25750 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25751 wxDataObject *result;
25752 PyObject * obj0 = 0 ;
25753 char *kwnames[] = {
25754 (char *) "self", NULL
25755 };
25756
25757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
25758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25760 {
25761 PyThreadState* __tstate = wxPyBeginAllowThreads();
25762 result = (wxDataObject *)(arg1)->GetDataObject();
25763
25764 wxPyEndAllowThreads(__tstate);
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25768 return resultobj;
25769 fail:
25770 return NULL;
25771 }
25772
25773
25774 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25775 PyObject *resultobj;
25776 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25777 wxDataObject *arg2 = (wxDataObject *) 0 ;
25778 PyObject * obj0 = 0 ;
25779 PyObject * obj1 = 0 ;
25780 char *kwnames[] = {
25781 (char *) "self",(char *) "dataObject", NULL
25782 };
25783
25784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
25785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25788 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25789 {
25790 PyThreadState* __tstate = wxPyBeginAllowThreads();
25791 (arg1)->SetDataObject(arg2);
25792
25793 wxPyEndAllowThreads(__tstate);
25794 if (PyErr_Occurred()) SWIG_fail;
25795 }
25796 Py_INCREF(Py_None); resultobj = Py_None;
25797 return resultobj;
25798 fail:
25799 return NULL;
25800 }
25801
25802
25803 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
25804 PyObject *resultobj;
25805 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25806 int arg2 ;
25807 int arg3 ;
25808 int arg4 ;
25809 int result;
25810 PyObject * obj0 = 0 ;
25811 PyObject * obj1 = 0 ;
25812 PyObject * obj2 = 0 ;
25813 PyObject * obj3 = 0 ;
25814 char *kwnames[] = {
25815 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25816 };
25817
25818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25821 arg2 = (int) SWIG_AsInt(obj1);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 arg3 = (int) SWIG_AsInt(obj2);
25824 if (PyErr_Occurred()) SWIG_fail;
25825 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25826 if (PyErr_Occurred()) SWIG_fail;
25827 {
25828 PyThreadState* __tstate = wxPyBeginAllowThreads();
25829 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
25830
25831 wxPyEndAllowThreads(__tstate);
25832 if (PyErr_Occurred()) SWIG_fail;
25833 }
25834 resultobj = SWIG_FromInt((int)result);
25835 return resultobj;
25836 fail:
25837 return NULL;
25838 }
25839
25840
25841 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
25842 PyObject *resultobj;
25843 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25844 int arg2 ;
25845 int arg3 ;
25846 int arg4 ;
25847 int result;
25848 PyObject * obj0 = 0 ;
25849 PyObject * obj1 = 0 ;
25850 PyObject * obj2 = 0 ;
25851 PyObject * obj3 = 0 ;
25852 char *kwnames[] = {
25853 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25854 };
25855
25856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25859 arg2 = (int) SWIG_AsInt(obj1);
25860 if (PyErr_Occurred()) SWIG_fail;
25861 arg3 = (int) SWIG_AsInt(obj2);
25862 if (PyErr_Occurred()) SWIG_fail;
25863 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25864 if (PyErr_Occurred()) SWIG_fail;
25865 {
25866 PyThreadState* __tstate = wxPyBeginAllowThreads();
25867 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
25868
25869 wxPyEndAllowThreads(__tstate);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 resultobj = SWIG_FromInt((int)result);
25873 return resultobj;
25874 fail:
25875 return NULL;
25876 }
25877
25878
25879 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
25880 PyObject *resultobj;
25881 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25882 PyObject * obj0 = 0 ;
25883 char *kwnames[] = {
25884 (char *) "self", NULL
25885 };
25886
25887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
25888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25890 {
25891 PyThreadState* __tstate = wxPyBeginAllowThreads();
25892 (arg1)->base_OnLeave();
25893
25894 wxPyEndAllowThreads(__tstate);
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 Py_INCREF(Py_None); resultobj = Py_None;
25898 return resultobj;
25899 fail:
25900 return NULL;
25901 }
25902
25903
25904 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25905 PyObject *resultobj;
25906 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25907 int arg2 ;
25908 int arg3 ;
25909 bool result;
25910 PyObject * obj0 = 0 ;
25911 PyObject * obj1 = 0 ;
25912 PyObject * obj2 = 0 ;
25913 char *kwnames[] = {
25914 (char *) "self",(char *) "x",(char *) "y", NULL
25915 };
25916
25917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
25918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25920 arg2 = (int) SWIG_AsInt(obj1);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 arg3 = (int) SWIG_AsInt(obj2);
25923 if (PyErr_Occurred()) SWIG_fail;
25924 {
25925 PyThreadState* __tstate = wxPyBeginAllowThreads();
25926 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
25927
25928 wxPyEndAllowThreads(__tstate);
25929 if (PyErr_Occurred()) SWIG_fail;
25930 }
25931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25932 return resultobj;
25933 fail:
25934 return NULL;
25935 }
25936
25937
25938 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25939 PyObject *resultobj;
25940 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25941 bool result;
25942 PyObject * obj0 = 0 ;
25943 char *kwnames[] = {
25944 (char *) "self", NULL
25945 };
25946
25947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
25948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25950 {
25951 PyThreadState* __tstate = wxPyBeginAllowThreads();
25952 result = (bool)(arg1)->GetData();
25953
25954 wxPyEndAllowThreads(__tstate);
25955 if (PyErr_Occurred()) SWIG_fail;
25956 }
25957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25958 return resultobj;
25959 fail:
25960 return NULL;
25961 }
25962
25963
25964 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
25965 PyObject *obj;
25966 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25967 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
25968 Py_INCREF(obj);
25969 return Py_BuildValue((char *)"");
25970 }
25971 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25972 PyObject *resultobj;
25973 wxPyTextDropTarget *result;
25974 char *kwnames[] = {
25975 NULL
25976 };
25977
25978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
25979 {
25980 PyThreadState* __tstate = wxPyBeginAllowThreads();
25981 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
25982
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
25987 return resultobj;
25988 fail:
25989 return NULL;
25990 }
25991
25992
25993 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25994 PyObject *resultobj;
25995 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
25996 PyObject *arg2 = (PyObject *) 0 ;
25997 PyObject *arg3 = (PyObject *) 0 ;
25998 PyObject * obj0 = 0 ;
25999 PyObject * obj1 = 0 ;
26000 PyObject * obj2 = 0 ;
26001 char *kwnames[] = {
26002 (char *) "self",(char *) "self",(char *) "_class", NULL
26003 };
26004
26005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26008 arg2 = obj1;
26009 arg3 = obj2;
26010 {
26011 PyThreadState* __tstate = wxPyBeginAllowThreads();
26012 (arg1)->_setCallbackInfo(arg2,arg3);
26013
26014 wxPyEndAllowThreads(__tstate);
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 Py_INCREF(Py_None); resultobj = Py_None;
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26025 PyObject *resultobj;
26026 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26027 int arg2 ;
26028 int arg3 ;
26029 int arg4 ;
26030 int result;
26031 PyObject * obj0 = 0 ;
26032 PyObject * obj1 = 0 ;
26033 PyObject * obj2 = 0 ;
26034 PyObject * obj3 = 0 ;
26035 char *kwnames[] = {
26036 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26037 };
26038
26039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26042 arg2 = (int) SWIG_AsInt(obj1);
26043 if (PyErr_Occurred()) SWIG_fail;
26044 arg3 = (int) SWIG_AsInt(obj2);
26045 if (PyErr_Occurred()) SWIG_fail;
26046 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26047 if (PyErr_Occurred()) SWIG_fail;
26048 {
26049 PyThreadState* __tstate = wxPyBeginAllowThreads();
26050 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26051
26052 wxPyEndAllowThreads(__tstate);
26053 if (PyErr_Occurred()) SWIG_fail;
26054 }
26055 resultobj = SWIG_FromInt((int)result);
26056 return resultobj;
26057 fail:
26058 return NULL;
26059 }
26060
26061
26062 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26063 PyObject *resultobj;
26064 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26065 int arg2 ;
26066 int arg3 ;
26067 int arg4 ;
26068 int result;
26069 PyObject * obj0 = 0 ;
26070 PyObject * obj1 = 0 ;
26071 PyObject * obj2 = 0 ;
26072 PyObject * obj3 = 0 ;
26073 char *kwnames[] = {
26074 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26075 };
26076
26077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26080 arg2 = (int) SWIG_AsInt(obj1);
26081 if (PyErr_Occurred()) SWIG_fail;
26082 arg3 = (int) SWIG_AsInt(obj2);
26083 if (PyErr_Occurred()) SWIG_fail;
26084 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26085 if (PyErr_Occurred()) SWIG_fail;
26086 {
26087 PyThreadState* __tstate = wxPyBeginAllowThreads();
26088 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26089
26090 wxPyEndAllowThreads(__tstate);
26091 if (PyErr_Occurred()) SWIG_fail;
26092 }
26093 resultobj = SWIG_FromInt((int)result);
26094 return resultobj;
26095 fail:
26096 return NULL;
26097 }
26098
26099
26100 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26101 PyObject *resultobj;
26102 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26103 PyObject * obj0 = 0 ;
26104 char *kwnames[] = {
26105 (char *) "self", NULL
26106 };
26107
26108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26111 {
26112 PyThreadState* __tstate = wxPyBeginAllowThreads();
26113 (arg1)->base_OnLeave();
26114
26115 wxPyEndAllowThreads(__tstate);
26116 if (PyErr_Occurred()) SWIG_fail;
26117 }
26118 Py_INCREF(Py_None); resultobj = Py_None;
26119 return resultobj;
26120 fail:
26121 return NULL;
26122 }
26123
26124
26125 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26126 PyObject *resultobj;
26127 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26128 int arg2 ;
26129 int arg3 ;
26130 bool result;
26131 PyObject * obj0 = 0 ;
26132 PyObject * obj1 = 0 ;
26133 PyObject * obj2 = 0 ;
26134 char *kwnames[] = {
26135 (char *) "self",(char *) "x",(char *) "y", NULL
26136 };
26137
26138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26141 arg2 = (int) SWIG_AsInt(obj1);
26142 if (PyErr_Occurred()) SWIG_fail;
26143 arg3 = (int) SWIG_AsInt(obj2);
26144 if (PyErr_Occurred()) SWIG_fail;
26145 {
26146 PyThreadState* __tstate = wxPyBeginAllowThreads();
26147 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26148
26149 wxPyEndAllowThreads(__tstate);
26150 if (PyErr_Occurred()) SWIG_fail;
26151 }
26152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26153 return resultobj;
26154 fail:
26155 return NULL;
26156 }
26157
26158
26159 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26160 PyObject *resultobj;
26161 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26162 int arg2 ;
26163 int arg3 ;
26164 int arg4 ;
26165 int result;
26166 PyObject * obj0 = 0 ;
26167 PyObject * obj1 = 0 ;
26168 PyObject * obj2 = 0 ;
26169 PyObject * obj3 = 0 ;
26170 char *kwnames[] = {
26171 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26172 };
26173
26174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26177 arg2 = (int) SWIG_AsInt(obj1);
26178 if (PyErr_Occurred()) SWIG_fail;
26179 arg3 = (int) SWIG_AsInt(obj2);
26180 if (PyErr_Occurred()) SWIG_fail;
26181 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26182 if (PyErr_Occurred()) SWIG_fail;
26183 {
26184 PyThreadState* __tstate = wxPyBeginAllowThreads();
26185 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26186
26187 wxPyEndAllowThreads(__tstate);
26188 if (PyErr_Occurred()) SWIG_fail;
26189 }
26190 resultobj = SWIG_FromInt((int)result);
26191 return resultobj;
26192 fail:
26193 return NULL;
26194 }
26195
26196
26197 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26198 PyObject *obj;
26199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26200 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26201 Py_INCREF(obj);
26202 return Py_BuildValue((char *)"");
26203 }
26204 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26205 PyObject *resultobj;
26206 wxPyFileDropTarget *result;
26207 char *kwnames[] = {
26208 NULL
26209 };
26210
26211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26212 {
26213 PyThreadState* __tstate = wxPyBeginAllowThreads();
26214 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26215
26216 wxPyEndAllowThreads(__tstate);
26217 if (PyErr_Occurred()) SWIG_fail;
26218 }
26219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26220 return resultobj;
26221 fail:
26222 return NULL;
26223 }
26224
26225
26226 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26227 PyObject *resultobj;
26228 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26229 PyObject *arg2 = (PyObject *) 0 ;
26230 PyObject *arg3 = (PyObject *) 0 ;
26231 PyObject * obj0 = 0 ;
26232 PyObject * obj1 = 0 ;
26233 PyObject * obj2 = 0 ;
26234 char *kwnames[] = {
26235 (char *) "self",(char *) "self",(char *) "_class", NULL
26236 };
26237
26238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26241 arg2 = obj1;
26242 arg3 = obj2;
26243 {
26244 PyThreadState* __tstate = wxPyBeginAllowThreads();
26245 (arg1)->_setCallbackInfo(arg2,arg3);
26246
26247 wxPyEndAllowThreads(__tstate);
26248 if (PyErr_Occurred()) SWIG_fail;
26249 }
26250 Py_INCREF(Py_None); resultobj = Py_None;
26251 return resultobj;
26252 fail:
26253 return NULL;
26254 }
26255
26256
26257 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26258 PyObject *resultobj;
26259 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26260 int arg2 ;
26261 int arg3 ;
26262 int arg4 ;
26263 int result;
26264 PyObject * obj0 = 0 ;
26265 PyObject * obj1 = 0 ;
26266 PyObject * obj2 = 0 ;
26267 PyObject * obj3 = 0 ;
26268 char *kwnames[] = {
26269 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26270 };
26271
26272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26275 arg2 = (int) SWIG_AsInt(obj1);
26276 if (PyErr_Occurred()) SWIG_fail;
26277 arg3 = (int) SWIG_AsInt(obj2);
26278 if (PyErr_Occurred()) SWIG_fail;
26279 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26280 if (PyErr_Occurred()) SWIG_fail;
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26284
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
26288 resultobj = SWIG_FromInt((int)result);
26289 return resultobj;
26290 fail:
26291 return NULL;
26292 }
26293
26294
26295 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26296 PyObject *resultobj;
26297 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26298 int arg2 ;
26299 int arg3 ;
26300 int arg4 ;
26301 int result;
26302 PyObject * obj0 = 0 ;
26303 PyObject * obj1 = 0 ;
26304 PyObject * obj2 = 0 ;
26305 PyObject * obj3 = 0 ;
26306 char *kwnames[] = {
26307 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26308 };
26309
26310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26313 arg2 = (int) SWIG_AsInt(obj1);
26314 if (PyErr_Occurred()) SWIG_fail;
26315 arg3 = (int) SWIG_AsInt(obj2);
26316 if (PyErr_Occurred()) SWIG_fail;
26317 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26318 if (PyErr_Occurred()) SWIG_fail;
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26322
26323 wxPyEndAllowThreads(__tstate);
26324 if (PyErr_Occurred()) SWIG_fail;
26325 }
26326 resultobj = SWIG_FromInt((int)result);
26327 return resultobj;
26328 fail:
26329 return NULL;
26330 }
26331
26332
26333 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26334 PyObject *resultobj;
26335 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26336 PyObject * obj0 = 0 ;
26337 char *kwnames[] = {
26338 (char *) "self", NULL
26339 };
26340
26341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26344 {
26345 PyThreadState* __tstate = wxPyBeginAllowThreads();
26346 (arg1)->base_OnLeave();
26347
26348 wxPyEndAllowThreads(__tstate);
26349 if (PyErr_Occurred()) SWIG_fail;
26350 }
26351 Py_INCREF(Py_None); resultobj = Py_None;
26352 return resultobj;
26353 fail:
26354 return NULL;
26355 }
26356
26357
26358 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26359 PyObject *resultobj;
26360 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26361 int arg2 ;
26362 int arg3 ;
26363 bool result;
26364 PyObject * obj0 = 0 ;
26365 PyObject * obj1 = 0 ;
26366 PyObject * obj2 = 0 ;
26367 char *kwnames[] = {
26368 (char *) "self",(char *) "x",(char *) "y", NULL
26369 };
26370
26371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26374 arg2 = (int) SWIG_AsInt(obj1);
26375 if (PyErr_Occurred()) SWIG_fail;
26376 arg3 = (int) SWIG_AsInt(obj2);
26377 if (PyErr_Occurred()) SWIG_fail;
26378 {
26379 PyThreadState* __tstate = wxPyBeginAllowThreads();
26380 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26381
26382 wxPyEndAllowThreads(__tstate);
26383 if (PyErr_Occurred()) SWIG_fail;
26384 }
26385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26386 return resultobj;
26387 fail:
26388 return NULL;
26389 }
26390
26391
26392 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26393 PyObject *resultobj;
26394 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26395 int arg2 ;
26396 int arg3 ;
26397 int arg4 ;
26398 int result;
26399 PyObject * obj0 = 0 ;
26400 PyObject * obj1 = 0 ;
26401 PyObject * obj2 = 0 ;
26402 PyObject * obj3 = 0 ;
26403 char *kwnames[] = {
26404 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26405 };
26406
26407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26410 arg2 = (int) SWIG_AsInt(obj1);
26411 if (PyErr_Occurred()) SWIG_fail;
26412 arg3 = (int) SWIG_AsInt(obj2);
26413 if (PyErr_Occurred()) SWIG_fail;
26414 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 {
26417 PyThreadState* __tstate = wxPyBeginAllowThreads();
26418 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26419
26420 wxPyEndAllowThreads(__tstate);
26421 if (PyErr_Occurred()) SWIG_fail;
26422 }
26423 resultobj = SWIG_FromInt((int)result);
26424 return resultobj;
26425 fail:
26426 return NULL;
26427 }
26428
26429
26430 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26431 PyObject *obj;
26432 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26433 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26434 Py_INCREF(obj);
26435 return Py_BuildValue((char *)"");
26436 }
26437 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26438 PyObject *resultobj;
26439 wxClipboard *result;
26440 char *kwnames[] = {
26441 NULL
26442 };
26443
26444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26445 {
26446 PyThreadState* __tstate = wxPyBeginAllowThreads();
26447 result = (wxClipboard *)new wxClipboard();
26448
26449 wxPyEndAllowThreads(__tstate);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 }
26452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26453 return resultobj;
26454 fail:
26455 return NULL;
26456 }
26457
26458
26459 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26460 PyObject *resultobj;
26461 wxClipboard *arg1 = (wxClipboard *) 0 ;
26462 PyObject * obj0 = 0 ;
26463 char *kwnames[] = {
26464 (char *) "self", NULL
26465 };
26466
26467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26470 {
26471 PyThreadState* __tstate = wxPyBeginAllowThreads();
26472 delete arg1;
26473
26474 wxPyEndAllowThreads(__tstate);
26475 if (PyErr_Occurred()) SWIG_fail;
26476 }
26477 Py_INCREF(Py_None); resultobj = Py_None;
26478 return resultobj;
26479 fail:
26480 return NULL;
26481 }
26482
26483
26484 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26485 PyObject *resultobj;
26486 wxClipboard *arg1 = (wxClipboard *) 0 ;
26487 bool result;
26488 PyObject * obj0 = 0 ;
26489 char *kwnames[] = {
26490 (char *) "self", NULL
26491 };
26492
26493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26496 {
26497 PyThreadState* __tstate = wxPyBeginAllowThreads();
26498 result = (bool)(arg1)->Open();
26499
26500 wxPyEndAllowThreads(__tstate);
26501 if (PyErr_Occurred()) SWIG_fail;
26502 }
26503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26504 return resultobj;
26505 fail:
26506 return NULL;
26507 }
26508
26509
26510 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26511 PyObject *resultobj;
26512 wxClipboard *arg1 = (wxClipboard *) 0 ;
26513 PyObject * obj0 = 0 ;
26514 char *kwnames[] = {
26515 (char *) "self", NULL
26516 };
26517
26518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26521 {
26522 PyThreadState* __tstate = wxPyBeginAllowThreads();
26523 (arg1)->Close();
26524
26525 wxPyEndAllowThreads(__tstate);
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
26528 Py_INCREF(Py_None); resultobj = Py_None;
26529 return resultobj;
26530 fail:
26531 return NULL;
26532 }
26533
26534
26535 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26536 PyObject *resultobj;
26537 wxClipboard *arg1 = (wxClipboard *) 0 ;
26538 bool result;
26539 PyObject * obj0 = 0 ;
26540 char *kwnames[] = {
26541 (char *) "self", NULL
26542 };
26543
26544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26547 {
26548 PyThreadState* __tstate = wxPyBeginAllowThreads();
26549 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26550
26551 wxPyEndAllowThreads(__tstate);
26552 if (PyErr_Occurred()) SWIG_fail;
26553 }
26554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26555 return resultobj;
26556 fail:
26557 return NULL;
26558 }
26559
26560
26561 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26562 PyObject *resultobj;
26563 wxClipboard *arg1 = (wxClipboard *) 0 ;
26564 wxDataObject *arg2 = (wxDataObject *) 0 ;
26565 bool result;
26566 PyObject * obj0 = 0 ;
26567 PyObject * obj1 = 0 ;
26568 char *kwnames[] = {
26569 (char *) "self",(char *) "data", NULL
26570 };
26571
26572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26575 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26576 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26577 {
26578 PyThreadState* __tstate = wxPyBeginAllowThreads();
26579 result = (bool)(arg1)->AddData(arg2);
26580
26581 wxPyEndAllowThreads(__tstate);
26582 if (PyErr_Occurred()) SWIG_fail;
26583 }
26584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26585 return resultobj;
26586 fail:
26587 return NULL;
26588 }
26589
26590
26591 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26592 PyObject *resultobj;
26593 wxClipboard *arg1 = (wxClipboard *) 0 ;
26594 wxDataObject *arg2 = (wxDataObject *) 0 ;
26595 bool result;
26596 PyObject * obj0 = 0 ;
26597 PyObject * obj1 = 0 ;
26598 char *kwnames[] = {
26599 (char *) "self",(char *) "data", NULL
26600 };
26601
26602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26606 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26607 {
26608 PyThreadState* __tstate = wxPyBeginAllowThreads();
26609 result = (bool)(arg1)->SetData(arg2);
26610
26611 wxPyEndAllowThreads(__tstate);
26612 if (PyErr_Occurred()) SWIG_fail;
26613 }
26614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26615 return resultobj;
26616 fail:
26617 return NULL;
26618 }
26619
26620
26621 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26622 PyObject *resultobj;
26623 wxClipboard *arg1 = (wxClipboard *) 0 ;
26624 wxDataFormat *arg2 = 0 ;
26625 bool result;
26626 PyObject * obj0 = 0 ;
26627 PyObject * obj1 = 0 ;
26628 char *kwnames[] = {
26629 (char *) "self",(char *) "format", NULL
26630 };
26631
26632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26636 SWIG_POINTER_EXCEPTION | 0)) == -1)
26637 SWIG_fail;
26638 if (arg2 == NULL) {
26639 PyErr_SetString(PyExc_TypeError,"null reference");
26640 SWIG_fail;
26641 }
26642 {
26643 PyThreadState* __tstate = wxPyBeginAllowThreads();
26644 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26645
26646 wxPyEndAllowThreads(__tstate);
26647 if (PyErr_Occurred()) SWIG_fail;
26648 }
26649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26650 return resultobj;
26651 fail:
26652 return NULL;
26653 }
26654
26655
26656 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26657 PyObject *resultobj;
26658 wxClipboard *arg1 = (wxClipboard *) 0 ;
26659 wxDataObject *arg2 = 0 ;
26660 bool result;
26661 PyObject * obj0 = 0 ;
26662 PyObject * obj1 = 0 ;
26663 char *kwnames[] = {
26664 (char *) "self",(char *) "data", NULL
26665 };
26666
26667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26670 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26671 SWIG_POINTER_EXCEPTION | 0)) == -1)
26672 SWIG_fail;
26673 if (arg2 == NULL) {
26674 PyErr_SetString(PyExc_TypeError,"null reference");
26675 SWIG_fail;
26676 }
26677 {
26678 PyThreadState* __tstate = wxPyBeginAllowThreads();
26679 result = (bool)(arg1)->GetData(*arg2);
26680
26681 wxPyEndAllowThreads(__tstate);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
26684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26685 return resultobj;
26686 fail:
26687 return NULL;
26688 }
26689
26690
26691 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
26692 PyObject *resultobj;
26693 wxClipboard *arg1 = (wxClipboard *) 0 ;
26694 PyObject * obj0 = 0 ;
26695 char *kwnames[] = {
26696 (char *) "self", NULL
26697 };
26698
26699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
26700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26702 {
26703 PyThreadState* __tstate = wxPyBeginAllowThreads();
26704 (arg1)->Clear();
26705
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 Py_INCREF(Py_None); resultobj = Py_None;
26710 return resultobj;
26711 fail:
26712 return NULL;
26713 }
26714
26715
26716 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj;
26718 wxClipboard *arg1 = (wxClipboard *) 0 ;
26719 bool result;
26720 PyObject * obj0 = 0 ;
26721 char *kwnames[] = {
26722 (char *) "self", NULL
26723 };
26724
26725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
26726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26728 {
26729 PyThreadState* __tstate = wxPyBeginAllowThreads();
26730 result = (bool)(arg1)->Flush();
26731
26732 wxPyEndAllowThreads(__tstate);
26733 if (PyErr_Occurred()) SWIG_fail;
26734 }
26735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26736 return resultobj;
26737 fail:
26738 return NULL;
26739 }
26740
26741
26742 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26743 PyObject *resultobj;
26744 wxClipboard *arg1 = (wxClipboard *) 0 ;
26745 bool arg2 = (bool) True ;
26746 PyObject * obj0 = 0 ;
26747 PyObject * obj1 = 0 ;
26748 char *kwnames[] = {
26749 (char *) "self",(char *) "primary", NULL
26750 };
26751
26752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
26753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26755 if (obj1) {
26756 arg2 = (bool) SWIG_AsBool(obj1);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 {
26760 PyThreadState* __tstate = wxPyBeginAllowThreads();
26761 (arg1)->UsePrimarySelection(arg2);
26762
26763 wxPyEndAllowThreads(__tstate);
26764 if (PyErr_Occurred()) SWIG_fail;
26765 }
26766 Py_INCREF(Py_None); resultobj = Py_None;
26767 return resultobj;
26768 fail:
26769 return NULL;
26770 }
26771
26772
26773 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
26774 PyObject *obj;
26775 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26776 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
26777 Py_INCREF(obj);
26778 return Py_BuildValue((char *)"");
26779 }
26780 static int _wrap_TheClipboard_set(PyObject *_val) {
26781 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
26782 return 1;
26783 }
26784
26785
26786 static PyObject *_wrap_TheClipboard_get() {
26787 PyObject *pyobj;
26788
26789 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
26790 return pyobj;
26791 }
26792
26793
26794 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26795 PyObject *resultobj;
26796 wxClipboard *arg1 = (wxClipboard *) NULL ;
26797 wxClipboardLocker *result;
26798 PyObject * obj0 = 0 ;
26799 char *kwnames[] = {
26800 (char *) "clipboard", NULL
26801 };
26802
26803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
26804 if (obj0) {
26805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26807 }
26808 {
26809 PyThreadState* __tstate = wxPyBeginAllowThreads();
26810 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
26811
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
26816 return resultobj;
26817 fail:
26818 return NULL;
26819 }
26820
26821
26822 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26823 PyObject *resultobj;
26824 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26825 PyObject * obj0 = 0 ;
26826 char *kwnames[] = {
26827 (char *) "self", NULL
26828 };
26829
26830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
26831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26833 {
26834 PyThreadState* __tstate = wxPyBeginAllowThreads();
26835 delete arg1;
26836
26837 wxPyEndAllowThreads(__tstate);
26838 if (PyErr_Occurred()) SWIG_fail;
26839 }
26840 Py_INCREF(Py_None); resultobj = Py_None;
26841 return resultobj;
26842 fail:
26843 return NULL;
26844 }
26845
26846
26847 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
26848 PyObject *resultobj;
26849 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26850 bool result;
26851 PyObject * obj0 = 0 ;
26852 char *kwnames[] = {
26853 (char *) "self", NULL
26854 };
26855
26856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
26857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26859 {
26860 PyThreadState* __tstate = wxPyBeginAllowThreads();
26861 result = (bool)wxClipboardLocker___nonzero__(arg1);
26862
26863 wxPyEndAllowThreads(__tstate);
26864 if (PyErr_Occurred()) SWIG_fail;
26865 }
26866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26867 return resultobj;
26868 fail:
26869 return NULL;
26870 }
26871
26872
26873 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
26874 PyObject *obj;
26875 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26876 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
26877 Py_INCREF(obj);
26878 return Py_BuildValue((char *)"");
26879 }
26880 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
26881 PyObject *resultobj;
26882 int arg1 = (int) 0 ;
26883 int arg2 = (int) 0 ;
26884 int arg3 = (int) 0 ;
26885 int arg4 = (int) 0 ;
26886 wxVideoMode *result;
26887 PyObject * obj0 = 0 ;
26888 PyObject * obj1 = 0 ;
26889 PyObject * obj2 = 0 ;
26890 PyObject * obj3 = 0 ;
26891 char *kwnames[] = {
26892 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
26893 };
26894
26895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26896 if (obj0) {
26897 arg1 = (int) SWIG_AsInt(obj0);
26898 if (PyErr_Occurred()) SWIG_fail;
26899 }
26900 if (obj1) {
26901 arg2 = (int) SWIG_AsInt(obj1);
26902 if (PyErr_Occurred()) SWIG_fail;
26903 }
26904 if (obj2) {
26905 arg3 = (int) SWIG_AsInt(obj2);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 if (obj3) {
26909 arg4 = (int) SWIG_AsInt(obj3);
26910 if (PyErr_Occurred()) SWIG_fail;
26911 }
26912 {
26913 PyThreadState* __tstate = wxPyBeginAllowThreads();
26914 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
26915
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
26920 return resultobj;
26921 fail:
26922 return NULL;
26923 }
26924
26925
26926 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
26927 PyObject *resultobj;
26928 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
26929 PyObject * obj0 = 0 ;
26930 char *kwnames[] = {
26931 (char *) "self", NULL
26932 };
26933
26934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
26935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
26936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26937 {
26938 PyThreadState* __tstate = wxPyBeginAllowThreads();
26939 delete arg1;
26940
26941 wxPyEndAllowThreads(__tstate);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
26944 Py_INCREF(Py_None); resultobj = Py_None;
26945 return resultobj;
26946 fail:
26947 return NULL;
26948 }
26949
26950
26951 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
26952 PyObject *resultobj;
26953 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
26954 wxVideoMode *arg2 = 0 ;
26955 bool result;
26956 PyObject * obj0 = 0 ;
26957 PyObject * obj1 = 0 ;
26958 char *kwnames[] = {
26959 (char *) "self",(char *) "other", NULL
26960 };
26961
26962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
26963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
26964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
26966 SWIG_POINTER_EXCEPTION | 0)) == -1)
26967 SWIG_fail;
26968 if (arg2 == NULL) {
26969 PyErr_SetString(PyExc_TypeError,"null reference");
26970 SWIG_fail;
26971 }
26972 {
26973 PyThreadState* __tstate = wxPyBeginAllowThreads();
26974 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
26975
26976 wxPyEndAllowThreads(__tstate);
26977 if (PyErr_Occurred()) SWIG_fail;
26978 }
26979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26980 return resultobj;
26981 fail:
26982 return NULL;
26983 }
26984
26985
26986 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
26987 PyObject *resultobj;
26988 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
26989 int result;
26990 PyObject * obj0 = 0 ;
26991 char *kwnames[] = {
26992 (char *) "self", NULL
26993 };
26994
26995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
26996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
26997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26998 {
26999 PyThreadState* __tstate = wxPyBeginAllowThreads();
27000 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27001
27002 wxPyEndAllowThreads(__tstate);
27003 if (PyErr_Occurred()) SWIG_fail;
27004 }
27005 resultobj = SWIG_FromInt((int)result);
27006 return resultobj;
27007 fail:
27008 return NULL;
27009 }
27010
27011
27012 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27013 PyObject *resultobj;
27014 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27015 int result;
27016 PyObject * obj0 = 0 ;
27017 char *kwnames[] = {
27018 (char *) "self", NULL
27019 };
27020
27021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27024 {
27025 PyThreadState* __tstate = wxPyBeginAllowThreads();
27026 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27027
27028 wxPyEndAllowThreads(__tstate);
27029 if (PyErr_Occurred()) SWIG_fail;
27030 }
27031 resultobj = SWIG_FromInt((int)result);
27032 return resultobj;
27033 fail:
27034 return NULL;
27035 }
27036
27037
27038 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27039 PyObject *resultobj;
27040 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27041 int result;
27042 PyObject * obj0 = 0 ;
27043 char *kwnames[] = {
27044 (char *) "self", NULL
27045 };
27046
27047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27050 {
27051 PyThreadState* __tstate = wxPyBeginAllowThreads();
27052 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27053
27054 wxPyEndAllowThreads(__tstate);
27055 if (PyErr_Occurred()) SWIG_fail;
27056 }
27057 resultobj = SWIG_FromInt((int)result);
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27065 PyObject *resultobj;
27066 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27067 bool result;
27068 PyObject * obj0 = 0 ;
27069 char *kwnames[] = {
27070 (char *) "self", NULL
27071 };
27072
27073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27076 {
27077 PyThreadState* __tstate = wxPyBeginAllowThreads();
27078 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27079
27080 wxPyEndAllowThreads(__tstate);
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27091 PyObject *resultobj;
27092 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27093 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27094 bool result;
27095 PyObject * obj0 = 0 ;
27096 PyObject * obj1 = 0 ;
27097 char *kwnames[] = {
27098 (char *) "self",(char *) "other", NULL
27099 };
27100
27101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27109
27110 wxPyEndAllowThreads(__tstate);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27114 return resultobj;
27115 fail:
27116 return NULL;
27117 }
27118
27119
27120 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27121 PyObject *resultobj;
27122 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27123 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27124 bool result;
27125 PyObject * obj0 = 0 ;
27126 PyObject * obj1 = 0 ;
27127 char *kwnames[] = {
27128 (char *) "self",(char *) "other", NULL
27129 };
27130
27131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27136 {
27137 PyThreadState* __tstate = wxPyBeginAllowThreads();
27138 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27139
27140 wxPyEndAllowThreads(__tstate);
27141 if (PyErr_Occurred()) SWIG_fail;
27142 }
27143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27144 return resultobj;
27145 fail:
27146 return NULL;
27147 }
27148
27149
27150 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27151 PyObject *resultobj;
27152 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27153 int arg2 ;
27154 PyObject * obj0 = 0 ;
27155 PyObject * obj1 = 0 ;
27156 char *kwnames[] = {
27157 (char *) "self",(char *) "w", NULL
27158 };
27159
27160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27163 arg2 = (int) SWIG_AsInt(obj1);
27164 if (PyErr_Occurred()) SWIG_fail;
27165 if (arg1) (arg1)->w = arg2;
27166
27167 Py_INCREF(Py_None); resultobj = Py_None;
27168 return resultobj;
27169 fail:
27170 return NULL;
27171 }
27172
27173
27174 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27175 PyObject *resultobj;
27176 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27177 int result;
27178 PyObject * obj0 = 0 ;
27179 char *kwnames[] = {
27180 (char *) "self", NULL
27181 };
27182
27183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27186 result = (int) ((arg1)->w);
27187
27188 resultobj = SWIG_FromInt((int)result);
27189 return resultobj;
27190 fail:
27191 return NULL;
27192 }
27193
27194
27195 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27196 PyObject *resultobj;
27197 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27198 int arg2 ;
27199 PyObject * obj0 = 0 ;
27200 PyObject * obj1 = 0 ;
27201 char *kwnames[] = {
27202 (char *) "self",(char *) "h", NULL
27203 };
27204
27205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27208 arg2 = (int) SWIG_AsInt(obj1);
27209 if (PyErr_Occurred()) SWIG_fail;
27210 if (arg1) (arg1)->h = arg2;
27211
27212 Py_INCREF(Py_None); resultobj = Py_None;
27213 return resultobj;
27214 fail:
27215 return NULL;
27216 }
27217
27218
27219 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27220 PyObject *resultobj;
27221 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27222 int result;
27223 PyObject * obj0 = 0 ;
27224 char *kwnames[] = {
27225 (char *) "self", NULL
27226 };
27227
27228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27231 result = (int) ((arg1)->h);
27232
27233 resultobj = SWIG_FromInt((int)result);
27234 return resultobj;
27235 fail:
27236 return NULL;
27237 }
27238
27239
27240 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27241 PyObject *resultobj;
27242 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27243 int arg2 ;
27244 PyObject * obj0 = 0 ;
27245 PyObject * obj1 = 0 ;
27246 char *kwnames[] = {
27247 (char *) "self",(char *) "bpp", NULL
27248 };
27249
27250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27253 arg2 = (int) SWIG_AsInt(obj1);
27254 if (PyErr_Occurred()) SWIG_fail;
27255 if (arg1) (arg1)->bpp = arg2;
27256
27257 Py_INCREF(Py_None); resultobj = Py_None;
27258 return resultobj;
27259 fail:
27260 return NULL;
27261 }
27262
27263
27264 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27265 PyObject *resultobj;
27266 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27267 int result;
27268 PyObject * obj0 = 0 ;
27269 char *kwnames[] = {
27270 (char *) "self", NULL
27271 };
27272
27273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27276 result = (int) ((arg1)->bpp);
27277
27278 resultobj = SWIG_FromInt((int)result);
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27286 PyObject *resultobj;
27287 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27288 int arg2 ;
27289 PyObject * obj0 = 0 ;
27290 PyObject * obj1 = 0 ;
27291 char *kwnames[] = {
27292 (char *) "self",(char *) "refresh", NULL
27293 };
27294
27295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27298 arg2 = (int) SWIG_AsInt(obj1);
27299 if (PyErr_Occurred()) SWIG_fail;
27300 if (arg1) (arg1)->refresh = arg2;
27301
27302 Py_INCREF(Py_None); resultobj = Py_None;
27303 return resultobj;
27304 fail:
27305 return NULL;
27306 }
27307
27308
27309 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27310 PyObject *resultobj;
27311 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27312 int result;
27313 PyObject * obj0 = 0 ;
27314 char *kwnames[] = {
27315 (char *) "self", NULL
27316 };
27317
27318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27321 result = (int) ((arg1)->refresh);
27322
27323 resultobj = SWIG_FromInt((int)result);
27324 return resultobj;
27325 fail:
27326 return NULL;
27327 }
27328
27329
27330 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27331 PyObject *obj;
27332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27333 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27334 Py_INCREF(obj);
27335 return Py_BuildValue((char *)"");
27336 }
27337 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27338 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27339 return 1;
27340 }
27341
27342
27343 static PyObject *_wrap_DefaultVideoMode_get() {
27344 PyObject *pyobj;
27345
27346 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27347 return pyobj;
27348 }
27349
27350
27351 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27352 PyObject *resultobj;
27353 size_t arg1 = (size_t) 0 ;
27354 wxDisplay *result;
27355 PyObject * obj0 = 0 ;
27356 char *kwnames[] = {
27357 (char *) "index", NULL
27358 };
27359
27360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27361 if (obj0) {
27362 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27363 if (PyErr_Occurred()) SWIG_fail;
27364 }
27365 {
27366 PyThreadState* __tstate = wxPyBeginAllowThreads();
27367 result = (wxDisplay *)new wxDisplay(arg1);
27368
27369 wxPyEndAllowThreads(__tstate);
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
27372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27373 return resultobj;
27374 fail:
27375 return NULL;
27376 }
27377
27378
27379 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27380 PyObject *resultobj;
27381 wxDisplay *arg1 = (wxDisplay *) 0 ;
27382 PyObject * obj0 = 0 ;
27383 char *kwnames[] = {
27384 (char *) "self", NULL
27385 };
27386
27387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27390 {
27391 PyThreadState* __tstate = wxPyBeginAllowThreads();
27392 delete arg1;
27393
27394 wxPyEndAllowThreads(__tstate);
27395 if (PyErr_Occurred()) SWIG_fail;
27396 }
27397 Py_INCREF(Py_None); resultobj = Py_None;
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27405 PyObject *resultobj;
27406 size_t result;
27407 char *kwnames[] = {
27408 NULL
27409 };
27410
27411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27412 {
27413 PyThreadState* __tstate = wxPyBeginAllowThreads();
27414 result = (size_t)wxDisplay::GetCount();
27415
27416 wxPyEndAllowThreads(__tstate);
27417 if (PyErr_Occurred()) SWIG_fail;
27418 }
27419 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27420 return resultobj;
27421 fail:
27422 return NULL;
27423 }
27424
27425
27426 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27427 PyObject *resultobj;
27428 wxPoint *arg1 = 0 ;
27429 int result;
27430 wxPoint temp1 ;
27431 PyObject * obj0 = 0 ;
27432 char *kwnames[] = {
27433 (char *) "pt", NULL
27434 };
27435
27436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27437 {
27438 arg1 = &temp1;
27439 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27440 }
27441 {
27442 PyThreadState* __tstate = wxPyBeginAllowThreads();
27443 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27444
27445 wxPyEndAllowThreads(__tstate);
27446 if (PyErr_Occurred()) SWIG_fail;
27447 }
27448 resultobj = SWIG_FromInt((int)result);
27449 return resultobj;
27450 fail:
27451 return NULL;
27452 }
27453
27454
27455 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27456 PyObject *resultobj;
27457 wxWindow *arg1 = (wxWindow *) 0 ;
27458 int result;
27459 PyObject * obj0 = 0 ;
27460 char *kwnames[] = {
27461 (char *) "window", NULL
27462 };
27463
27464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27467 {
27468 PyThreadState* __tstate = wxPyBeginAllowThreads();
27469 result = (int)Display_GetFromWindow(arg1);
27470
27471 wxPyEndAllowThreads(__tstate);
27472 if (PyErr_Occurred()) SWIG_fail;
27473 }
27474 resultobj = SWIG_FromInt((int)result);
27475 return resultobj;
27476 fail:
27477 return NULL;
27478 }
27479
27480
27481 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27482 PyObject *resultobj;
27483 wxDisplay *arg1 = (wxDisplay *) 0 ;
27484 bool result;
27485 PyObject * obj0 = 0 ;
27486 char *kwnames[] = {
27487 (char *) "self", NULL
27488 };
27489
27490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27493 {
27494 PyThreadState* __tstate = wxPyBeginAllowThreads();
27495 result = (bool)((wxDisplay const *)arg1)->IsOk();
27496
27497 wxPyEndAllowThreads(__tstate);
27498 if (PyErr_Occurred()) SWIG_fail;
27499 }
27500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27501 return resultobj;
27502 fail:
27503 return NULL;
27504 }
27505
27506
27507 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27508 PyObject *resultobj;
27509 wxDisplay *arg1 = (wxDisplay *) 0 ;
27510 wxRect result;
27511 PyObject * obj0 = 0 ;
27512 char *kwnames[] = {
27513 (char *) "self", NULL
27514 };
27515
27516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27519 {
27520 PyThreadState* __tstate = wxPyBeginAllowThreads();
27521 result = ((wxDisplay const *)arg1)->GetGeometry();
27522
27523 wxPyEndAllowThreads(__tstate);
27524 if (PyErr_Occurred()) SWIG_fail;
27525 }
27526 {
27527 wxRect * resultptr;
27528 resultptr = new wxRect((wxRect &) result);
27529 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27530 }
27531 return resultobj;
27532 fail:
27533 return NULL;
27534 }
27535
27536
27537 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27538 PyObject *resultobj;
27539 wxDisplay *arg1 = (wxDisplay *) 0 ;
27540 wxString result;
27541 PyObject * obj0 = 0 ;
27542 char *kwnames[] = {
27543 (char *) "self", NULL
27544 };
27545
27546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27549 {
27550 PyThreadState* __tstate = wxPyBeginAllowThreads();
27551 result = ((wxDisplay const *)arg1)->GetName();
27552
27553 wxPyEndAllowThreads(__tstate);
27554 if (PyErr_Occurred()) SWIG_fail;
27555 }
27556 {
27557 #if wxUSE_UNICODE
27558 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27559 #else
27560 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27561 #endif
27562 }
27563 return resultobj;
27564 fail:
27565 return NULL;
27566 }
27567
27568
27569 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27570 PyObject *resultobj;
27571 wxDisplay *arg1 = (wxDisplay *) 0 ;
27572 bool result;
27573 PyObject * obj0 = 0 ;
27574 char *kwnames[] = {
27575 (char *) "self", NULL
27576 };
27577
27578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27581 {
27582 PyThreadState* __tstate = wxPyBeginAllowThreads();
27583 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27584
27585 wxPyEndAllowThreads(__tstate);
27586 if (PyErr_Occurred()) SWIG_fail;
27587 }
27588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27589 return resultobj;
27590 fail:
27591 return NULL;
27592 }
27593
27594
27595 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
27596 PyObject *resultobj;
27597 wxDisplay *arg1 = (wxDisplay *) 0 ;
27598 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27599 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27600 PyObject *result;
27601 PyObject * obj0 = 0 ;
27602 PyObject * obj1 = 0 ;
27603 char *kwnames[] = {
27604 (char *) "self",(char *) "mode", NULL
27605 };
27606
27607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
27608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27610 if (obj1) {
27611 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27612 SWIG_POINTER_EXCEPTION | 0)) == -1)
27613 SWIG_fail;
27614 if (arg2 == NULL) {
27615 PyErr_SetString(PyExc_TypeError,"null reference");
27616 SWIG_fail;
27617 }
27618 }
27619 {
27620 PyThreadState* __tstate = wxPyBeginAllowThreads();
27621 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
27622
27623 wxPyEndAllowThreads(__tstate);
27624 if (PyErr_Occurred()) SWIG_fail;
27625 }
27626 resultobj = result;
27627 return resultobj;
27628 fail:
27629 return NULL;
27630 }
27631
27632
27633 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27634 PyObject *resultobj;
27635 wxDisplay *arg1 = (wxDisplay *) 0 ;
27636 wxVideoMode result;
27637 PyObject * obj0 = 0 ;
27638 char *kwnames[] = {
27639 (char *) "self", NULL
27640 };
27641
27642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
27643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27645 {
27646 PyThreadState* __tstate = wxPyBeginAllowThreads();
27647 result = ((wxDisplay const *)arg1)->GetCurrentMode();
27648
27649 wxPyEndAllowThreads(__tstate);
27650 if (PyErr_Occurred()) SWIG_fail;
27651 }
27652 {
27653 wxVideoMode * resultptr;
27654 resultptr = new wxVideoMode((wxVideoMode &) result);
27655 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
27656 }
27657 return resultobj;
27658 fail:
27659 return NULL;
27660 }
27661
27662
27663 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27664 PyObject *resultobj;
27665 wxDisplay *arg1 = (wxDisplay *) 0 ;
27666 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27667 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27668 bool result;
27669 PyObject * obj0 = 0 ;
27670 PyObject * obj1 = 0 ;
27671 char *kwnames[] = {
27672 (char *) "self",(char *) "mode", NULL
27673 };
27674
27675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
27676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27678 if (obj1) {
27679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27680 SWIG_POINTER_EXCEPTION | 0)) == -1)
27681 SWIG_fail;
27682 if (arg2 == NULL) {
27683 PyErr_SetString(PyExc_TypeError,"null reference");
27684 SWIG_fail;
27685 }
27686 }
27687 {
27688 PyThreadState* __tstate = wxPyBeginAllowThreads();
27689 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
27690
27691 wxPyEndAllowThreads(__tstate);
27692 if (PyErr_Occurred()) SWIG_fail;
27693 }
27694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27695 return resultobj;
27696 fail:
27697 return NULL;
27698 }
27699
27700
27701 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj;
27703 wxDisplay *arg1 = (wxDisplay *) 0 ;
27704 PyObject * obj0 = 0 ;
27705 char *kwnames[] = {
27706 (char *) "self", NULL
27707 };
27708
27709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
27710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27712 {
27713 PyThreadState* __tstate = wxPyBeginAllowThreads();
27714 (arg1)->ResetMode();
27715
27716 wxPyEndAllowThreads(__tstate);
27717 if (PyErr_Occurred()) SWIG_fail;
27718 }
27719 Py_INCREF(Py_None); resultobj = Py_None;
27720 return resultobj;
27721 fail:
27722 return NULL;
27723 }
27724
27725
27726 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
27727 PyObject *obj;
27728 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27729 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
27730 Py_INCREF(obj);
27731 return Py_BuildValue((char *)"");
27732 }
27733 static PyMethodDef SwigMethods[] = {
27734 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
27735 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
27736 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
27737 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
27738 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
27739 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
27740 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
27741 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
27742 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
27743 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
27744 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
27745 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
27746 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
27747 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
27748 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
27749 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
27750 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
27751 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
27752 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
27753 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
27754 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
27755 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
27756 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
27757 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
27758 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
27759 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
27760 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
27761 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
27762 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
27763 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
27764 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
27765 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
27766 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
27767 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
27768 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
27769 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
27770 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
27771 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
27772 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
27773 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
27774 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
27775 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
27776 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
27777 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
27778 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
27779 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
27780 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
27781 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
27782 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
27783 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
27784 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
27785 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
27786 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
27787 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
27788 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
27789 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
27790 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
27791 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
27792 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
27793 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
27794 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
27795 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
27796 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
27797 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
27798 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
27799 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
27800 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
27801 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
27802 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
27803 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
27804 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
27805 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
27806 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
27807 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
27808 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
27809 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
27810 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
27811 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
27812 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
27813 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
27814 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
27815 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
27816 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
27817 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
27818 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
27819 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
27820 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
27821 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
27822 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
27823 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
27824 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
27825 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
27826 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
27827 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
27828 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
27829 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
27830 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
27831 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
27832 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
27833 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
27834 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
27835 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
27836 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
27837 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
27838 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
27839 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
27840 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
27841 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
27842 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
27843 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
27844 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
27845 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
27846 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
27847 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
27848 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
27849 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
27850 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
27851 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
27852 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
27853 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
27854 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
27855 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
27856 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
27857 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
27858 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
27859 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
27860 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
27861 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
27862 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
27863 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
27864 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
27865 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
27866 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
27867 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
27868 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
27869 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
27870 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
27871 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
27872 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
27873 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
27874 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
27875 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
27876 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27877 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
27878 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
27879 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
27880 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
27881 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
27882 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27883 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
27884 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
27885 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
27886 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
27887 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
27888 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
27889 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
27890 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
27891 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
27892 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
27893 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
27894 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
27895 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
27896 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
27897 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
27898 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
27899 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
27900 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
27901 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
27902 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
27903 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
27904 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
27905 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
27906 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
27907 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
27908 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
27909 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
27910 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
27911 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
27912 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
27913 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
27914 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
27915 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
27916 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
27917 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
27918 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
27919 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
27920 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
27921 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
27922 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
27923 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
27924 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
27925 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
27926 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
27927 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
27928 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
27929 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
27930 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
27931 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
27932 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
27933 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
27934 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
27935 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
27936 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
27937 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
27938 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
27939 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
27940 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
27941 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
27942 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
27943 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
27944 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
27945 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
27946 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
27947 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
27948 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
27949 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
27950 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
27951 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
27952 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
27953 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
27954 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
27955 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
27956 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
27957 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
27958 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
27959 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
27960 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
27961 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
27962 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
27963 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27964 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
27965 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
27966 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
27967 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
27968 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
27969 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27970 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
27971 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
27972 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
27973 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
27974 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
27975 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
27976 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
27977 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
27978 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
27979 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
27980 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
27981 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
27982 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
27983 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
27984 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
27985 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
27986 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
27987 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
27988 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
27989 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
27990 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
27991 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
27992 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
27993 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
27994 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
27995 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
27996 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
27997 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
27998 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
27999 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28000 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28001 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28002 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28003 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28004 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28005 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28006 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28007 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28008 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28009 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28010 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28011 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28012 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28013 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28014 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28015 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28016 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28017 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28018 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28019 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28020 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28021 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28022 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28023 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28024 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28025 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28026 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28027 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28028 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28029 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28030 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28031 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28032 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28033 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28034 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28035 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28036 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28037 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28038 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28039 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28040 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28041 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28042 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28043 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28044 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28045 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28046 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28047 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28048 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28049 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28050 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28051 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28052 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28053 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28054 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28055 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28056 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28057 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28058 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28059 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28060 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28061 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28062 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28063 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28064 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS },
28065 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28066 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS },
28067 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28068 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS },
28069 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS },
28070 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28071 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28072 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28073 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28074 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28075 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28076 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28077 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28078 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28079 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28080 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28081 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28082 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28083 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28084 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28085 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28086 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28087 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28088 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28089 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28090 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28091 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28092 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28093 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28094 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28095 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28096 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28097 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28098 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28099 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28100 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28101 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28102 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28103 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28104 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28105 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28106 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28107 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28108 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28109 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28110 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28111 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28112 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28113 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28114 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28115 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28116 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28117 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28118 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28119 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28120 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28121 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28122 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28123 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28124 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28125 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28126 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28127 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28128 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28129 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28130 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28131 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28132 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28133 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28134 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28135 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28136 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28137 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28138 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28139 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28140 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28141 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28142 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28143 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28144 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28147 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28148 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28150 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28153 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28154 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28156 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28158 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28159 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28160 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28162 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28166 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28169 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28170 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28171 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28173 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28174 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28175 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28176 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28177 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28178 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28179 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28180 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28182 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28183 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28188 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28193 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28196 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28197 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28203 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28207 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28208 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28209 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28210 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28211 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28212 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28213 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28214 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28215 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28216 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28218 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28220 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28221 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28222 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28225 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28226 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28228 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28229 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28232 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28234 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28237 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28238 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28239 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28240 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28241 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28242 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28243 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28244 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28245 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28246 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28249 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28272 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28273 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28274 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28275 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28276 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28277 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28278 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28279 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28280 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28281 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28292 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28337 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28371 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28379 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28380 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28385 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28394 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28398 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28401 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28404 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28409 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28412 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28416 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28419 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28423 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28429 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28433 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28435 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28445 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28456 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28464 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28472 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28485 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28489 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28507 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28521 { NULL, NULL }
28522 };
28523
28524
28525 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28526
28527 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28528 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28529 }
28530 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28531 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28532 }
28533 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28534 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28535 }
28536 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28537 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28538 }
28539 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28540 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28541 }
28542 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28543 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28544 }
28545 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28546 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28547 }
28548 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28549 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28550 }
28551 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28552 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28553 }
28554 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28555 return (void *)((wxEvent *) ((wxPyEvent *) x));
28556 }
28557 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28558 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28559 }
28560 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28561 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28562 }
28563 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28564 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28565 }
28566 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28567 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28568 }
28569 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28570 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28571 }
28572 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28573 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28574 }
28575 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28576 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28577 }
28578 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28579 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28580 }
28581 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28582 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28583 }
28584 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28585 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28586 }
28587 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28588 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28589 }
28590 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
28591 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
28592 }
28593 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
28594 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
28595 }
28596 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
28597 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
28598 }
28599 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
28600 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
28601 }
28602 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
28603 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28604 }
28605 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
28606 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
28607 }
28608 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
28609 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
28610 }
28611 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
28612 return (void *)((wxEvent *) ((wxFocusEvent *) x));
28613 }
28614 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
28615 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
28616 }
28617 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
28618 return (void *)((wxEvent *) ((wxProcessEvent *) x));
28619 }
28620 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
28621 return (void *)((wxEvent *) ((wxShowEvent *) x));
28622 }
28623 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
28624 return (void *)((wxEvent *) ((wxCommandEvent *) x));
28625 }
28626 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
28627 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
28628 }
28629 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
28630 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28631 }
28632 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
28633 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
28634 }
28635 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
28636 return (void *)((wxEvent *) ((wxKeyEvent *) x));
28637 }
28638 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
28639 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
28640 }
28641 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
28642 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
28643 }
28644 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
28645 return (void *)((wxConfigBase *) ((wxConfig *) x));
28646 }
28647 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
28648 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28649 }
28650 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
28651 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
28652 }
28653 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
28654 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
28655 }
28656 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
28657 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28658 }
28659 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
28660 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
28661 }
28662 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
28663 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
28664 }
28665 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
28666 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
28667 }
28668 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
28669 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28670 }
28671 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
28672 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28673 }
28674 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
28675 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
28676 }
28677 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
28678 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
28679 }
28680 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
28681 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
28682 }
28683 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
28684 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28685 }
28686 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
28687 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
28688 }
28689 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
28690 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28691 }
28692 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28693 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
28694 }
28695 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
28696 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
28697 }
28698 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28699 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
28700 }
28701 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
28702 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28703 }
28704 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
28705 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
28706 }
28707 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
28708 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
28709 }
28710 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
28711 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
28712 }
28713 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
28714 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
28715 }
28716 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
28717 return (void *)((wxEvtHandler *) ((wxWindow *) x));
28718 }
28719 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
28720 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
28721 }
28722 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
28723 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
28724 }
28725 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
28726 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
28727 }
28728 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
28729 return (void *)((wxEvtHandler *) ((wxValidator *) x));
28730 }
28731 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
28732 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
28733 }
28734 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
28735 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
28736 }
28737 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
28738 return (void *)((wxEvtHandler *) ((wxMenu *) x));
28739 }
28740 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
28741 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
28742 }
28743 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
28744 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
28745 }
28746 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
28747 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
28748 }
28749 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
28750 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
28751 }
28752 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
28753 return (void *)((wxObject *) ((wxSizerItem *) x));
28754 }
28755 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
28756 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
28757 }
28758 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
28759 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
28760 }
28761 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
28762 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
28763 }
28764 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
28765 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
28766 }
28767 static void *_p_wxSizerTo_p_wxObject(void *x) {
28768 return (void *)((wxObject *) ((wxSizer *) x));
28769 }
28770 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
28771 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
28772 }
28773 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
28774 return (void *)((wxObject *) ((wxFileHistory *) x));
28775 }
28776 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
28777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
28778 }
28779 static void *_p_wxEventTo_p_wxObject(void *x) {
28780 return (void *)((wxObject *) ((wxEvent *) x));
28781 }
28782 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
28783 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
28784 }
28785 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
28786 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
28787 }
28788 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
28789 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
28790 }
28791 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
28792 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
28793 }
28794 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
28795 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
28796 }
28797 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
28798 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
28799 }
28800 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
28801 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
28802 }
28803 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
28804 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28805 }
28806 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
28807 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
28808 }
28809 static void *_p_wxControlTo_p_wxObject(void *x) {
28810 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
28811 }
28812 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
28813 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
28814 }
28815 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
28816 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
28817 }
28818 static void *_p_wxFSFileTo_p_wxObject(void *x) {
28819 return (void *)((wxObject *) ((wxFSFile *) x));
28820 }
28821 static void *_p_wxClipboardTo_p_wxObject(void *x) {
28822 return (void *)((wxObject *) ((wxClipboard *) x));
28823 }
28824 static void *_p_wxPySizerTo_p_wxObject(void *x) {
28825 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
28826 }
28827 static void *_p_wxPyEventTo_p_wxObject(void *x) {
28828 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
28829 }
28830 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
28831 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
28832 }
28833 static void *_p_wxShowEventTo_p_wxObject(void *x) {
28834 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
28835 }
28836 static void *_p_wxToolTipTo_p_wxObject(void *x) {
28837 return (void *)((wxObject *) ((wxToolTip *) x));
28838 }
28839 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
28840 return (void *)((wxObject *) ((wxMenuItem *) x));
28841 }
28842 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
28843 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
28844 }
28845 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
28846 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
28847 }
28848 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
28849 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
28850 }
28851 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
28852 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
28853 }
28854 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
28855 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
28856 }
28857 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
28858 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
28859 }
28860 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
28861 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
28862 }
28863 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
28864 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
28865 }
28866 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
28867 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
28868 }
28869 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
28870 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
28871 }
28872 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
28873 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
28874 }
28875 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
28876 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
28877 }
28878 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
28879 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
28880 }
28881 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
28882 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
28883 }
28884 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
28885 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
28886 }
28887 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
28888 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
28889 }
28890 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
28891 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
28892 }
28893 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
28894 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
28895 }
28896 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
28897 return (void *)((wxObject *) ((wxImageHandler *) x));
28898 }
28899 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
28900 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
28901 }
28902 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
28903 return (void *)((wxObject *) ((wxEvtHandler *) x));
28904 }
28905 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
28906 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
28907 }
28908 static void *_p_wxImageTo_p_wxObject(void *x) {
28909 return (void *)((wxObject *) ((wxImage *) x));
28910 }
28911 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
28912 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
28913 }
28914 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
28915 return (void *)((wxObject *) ((wxSystemOptions *) x));
28916 }
28917 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
28918 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
28919 }
28920 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
28921 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28922 }
28923 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
28924 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
28925 }
28926 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
28927 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
28928 }
28929 static void *_p_wxWindowTo_p_wxObject(void *x) {
28930 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
28931 }
28932 static void *_p_wxMenuTo_p_wxObject(void *x) {
28933 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
28934 }
28935 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
28936 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
28937 }
28938 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
28939 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
28940 }
28941 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
28942 return (void *)((wxObject *) ((wxFileSystem *) x));
28943 }
28944 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
28945 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
28946 }
28947 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
28948 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
28949 }
28950 static void *_p_wxPyAppTo_p_wxObject(void *x) {
28951 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
28952 }
28953 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
28954 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
28955 }
28956 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
28957 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
28958 }
28959 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
28960 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
28961 }
28962 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
28963 return (void *)((wxObject *) ((wxBusyInfo *) x));
28964 }
28965 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
28966 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
28967 }
28968 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
28969 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
28970 }
28971 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
28972 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
28973 }
28974 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
28975 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
28976 }
28977 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
28978 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
28979 }
28980 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
28981 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
28982 }
28983 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
28984 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
28985 }
28986 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
28987 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
28988 }
28989 static void *_p_wxValidatorTo_p_wxObject(void *x) {
28990 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
28991 }
28992 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
28993 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
28994 }
28995 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
28996 return (void *)((wxLog *) ((wxLogStderr *) x));
28997 }
28998 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
28999 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29000 }
29001 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29002 return (void *)((wxLog *) ((wxLogWindow *) x));
29003 }
29004 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29005 return (void *)((wxLog *) ((wxLogChain *) x));
29006 }
29007 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29008 return (void *)((wxLog *) ((wxLogGui *) x));
29009 }
29010 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29011 return (void *)((wxLog *) ((wxPyLog *) x));
29012 }
29013 static void *_p_wxControlTo_p_wxWindow(void *x) {
29014 return (void *)((wxWindow *) ((wxControl *) x));
29015 }
29016 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29017 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29018 }
29019 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29020 return (void *)((wxWindow *) ((wxMenuBar *) x));
29021 }
29022 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29023 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29024 }
29025 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29026 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29027 }
29028 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}};
29029 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}};
29030 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}};
29031 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}};
29032 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}};
29033 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}};
29034 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}};
29035 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}};
29036 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}};
29037 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}};
29038 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}};
29039 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}};
29040 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}};
29041 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}};
29042 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}};
29043 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}};
29044 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}};
29045 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}};
29046 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}};
29047 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}};
29048 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}};
29049 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}};
29050 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}};
29051 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}};
29052 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}};
29053 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}};
29054 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}};
29055 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}};
29056 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}};
29057 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}};
29058 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}};
29059 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}};
29060 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}};
29061 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}};
29062 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}};
29063 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}};
29064 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}};
29065 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}};
29066 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}};
29067 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}};
29068 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}};
29069 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}};
29070 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}};
29071 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}};
29072 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}};
29073 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}};
29074 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}};
29075 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}};
29076 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}};
29077 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}};
29078 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}};
29079 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}};
29080 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}};
29081 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}};
29082 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}};
29083 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}};
29084 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}};
29085 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}};
29086 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}};
29087 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}};
29088 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}};
29089 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}};
29090 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}};
29091 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}};
29092 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}};
29093 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}};
29094 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}};
29095 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}};
29096 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}};
29097 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}};
29098 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}};
29099 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}};
29100 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}};
29101 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}};
29102 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}};
29103 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}};
29104 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}};
29105 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}};
29106 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}};
29107 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}};
29108 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}};
29109 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}};
29110 static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29111 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}};
29112 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}};
29113 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}};
29114
29115 static swig_type_info *swig_types_initial[] = {
29116 _swigt__p_wxLogChain,
29117 _swigt__p_wxMutexGuiLocker,
29118 _swigt__p_wxFileHistory,
29119 _swigt__p_wxLog,
29120 _swigt__p_wxDateTime__TimeZone,
29121 _swigt__p_wxMenu,
29122 _swigt__p_wxEvent,
29123 _swigt__p_wxConfigBase,
29124 _swigt__p_wxDisplay,
29125 _swigt__p_wxFileType,
29126 _swigt__p_wxLogGui,
29127 _swigt__p_wxFont,
29128 _swigt__p_wxDataFormat,
29129 _swigt__p_wxTimerEvent,
29130 _swigt__p_wxCaret,
29131 _swigt__p_int,
29132 _swigt__p_wxSize,
29133 _swigt__p_wxClipboard,
29134 _swigt__p_wxStopWatch,
29135 _swigt__p_wxDC,
29136 _swigt__p_wxClipboardLocker,
29137 _swigt__p_wxIcon,
29138 _swigt__p_wxLogStderr,
29139 _swigt__p_wxLogTextCtrl,
29140 _swigt__p_wxTextCtrl,
29141 _swigt__p_wxBusyCursor,
29142 _swigt__p_wxPyTextDataObject,
29143 _swigt__p_wxBitmapDataObject,
29144 _swigt__p_wxTextDataObject,
29145 _swigt__p_wxDataObject,
29146 _swigt__p_wxPyBitmapDataObject,
29147 _swigt__p_wxFileDataObject,
29148 _swigt__p_wxCustomDataObject,
29149 _swigt__p_wxURLDataObject,
29150 _swigt__p_wxMetafileDataObject,
29151 _swigt__p_wxSound,
29152 _swigt__p_wxTimerRunner,
29153 _swigt__p_wxLogWindow,
29154 _swigt__p_wxTimeSpan,
29155 _swigt__p_wxArrayString,
29156 _swigt__p_wxWindowDisabler,
29157 _swigt__p_wxToolTip,
29158 _swigt__p_wxDataObjectComposite,
29159 _swigt__p_wxFileConfig,
29160 _swigt__p_wxSystemSettings,
29161 _swigt__p_wxVideoMode,
29162 _swigt__p_wxPyDataObjectSimple,
29163 _swigt__p_wxDataObjectSimple,
29164 _swigt__p_wxEvtHandler,
29165 _swigt__p_wxRect,
29166 _swigt__p_char,
29167 _swigt__p_wxSingleInstanceChecker,
29168 _swigt__p_wxFileTypeInfo,
29169 _swigt__p_wxFrame,
29170 _swigt__p_wxTimer,
29171 _swigt__p_wxMimeTypesManager,
29172 _swigt__p_wxPyArtProvider,
29173 _swigt__p_wxPyTipProvider,
29174 _swigt__p_wxTipProvider,
29175 _swigt__p_wxJoystick,
29176 _swigt__p_wxSystemOptions,
29177 _swigt__p_wxPoint,
29178 _swigt__p_wxJoystickEvent,
29179 _swigt__p_wxCursor,
29180 _swigt__p_wxObject,
29181 _swigt__p_wxOutputStream,
29182 _swigt__p_wxDateTime,
29183 _swigt__p_wxPyDropSource,
29184 _swigt__p_wxWindow,
29185 _swigt__p_wxString,
29186 _swigt__p_wxPyProcess,
29187 _swigt__p_wxBitmap,
29188 _swigt__p_wxConfig,
29189 _swigt__p_wxChar,
29190 _swigt__p_wxBusyInfo,
29191 _swigt__p_wxPyDropTarget,
29192 _swigt__p_wxPyTextDropTarget,
29193 _swigt__p_wxPyFileDropTarget,
29194 _swigt__p_wxProcessEvent,
29195 _swigt__p_wxPyLog,
29196 _swigt__p_wxLogNull,
29197 _swigt__p_wxColour,
29198 _swigt__p_wxByte,
29199 _swigt__p_wxConfigPathChanger,
29200 _swigt__p_wxPyTimer,
29201 _swigt__p_wxDateSpan,
29202 0
29203 };
29204
29205
29206 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29207
29208 static swig_const_info swig_const_table[] = {
29209 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29210 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29211 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29212 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29213 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29214 {0}};
29215
29216 #ifdef __cplusplus
29217 }
29218 #endif
29219
29220 #ifdef __cplusplus
29221 extern "C"
29222 #endif
29223 SWIGEXPORT(void) SWIG_init(void) {
29224 static PyObject *SWIG_globals = 0;
29225 static int typeinit = 0;
29226 PyObject *m, *d;
29227 int i;
29228 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29229 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29230 d = PyModule_GetDict(m);
29231
29232 if (!typeinit) {
29233 for (i = 0; swig_types_initial[i]; i++) {
29234 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29235 }
29236 typeinit = 1;
29237 }
29238 SWIG_InstallConstants(d,swig_const_table);
29239
29240 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29241 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29242 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29243 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29244 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29245 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29246 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29247 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29248 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29249 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29250 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29251 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29252 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29253 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29254 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29255 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29256 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29257 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29258 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29259 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29260 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29261 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29262 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29263 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29264 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29265 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29266 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29267 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29268 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29269 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29270 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29271 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29272 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29273 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29274 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29275 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29276 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29277 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29278 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29279 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29280 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29281 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29282 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29283 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29284 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29285 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29286 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29287 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29288 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29289 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29290 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29291 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29292 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29293 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29294 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29295 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29296 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29297 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29298 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29299 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29300 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29301 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29302 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29303 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29304 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29305 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29306 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29307 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29308 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29309 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29310 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29311 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29312 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29313 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29314 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29315 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29316 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29317 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29318 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29319 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29320 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29321 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29322 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29323 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29324 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29325 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29326 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29327 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29328 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29329 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29330 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29331 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29332 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29333 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29334 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29335 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29336 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29337 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29338 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29339 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29340 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29341 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29342 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29343 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29344 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29345 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29346 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29347 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29348 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29349 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29350 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29351 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29352 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29353 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29354 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29355 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29356 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29357 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29358 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29359 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29360 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29361 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29362 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29363 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29364 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29365 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29366 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29367 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29368 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29369 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29370 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29371 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29372 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29373 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29374 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29375 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29376 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29377 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29378 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29379 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29380 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29381 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29382 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29383 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29384 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29385 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29386 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29387 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29388 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29389 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29390
29391 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29392
29393 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29394 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29395 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29396 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29397 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29398 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29399 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29400 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29401 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29402 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29403 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29404 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29405 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29406 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29407 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29408 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29409 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29410 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29411 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29412 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29413 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29414 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29415 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29416 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29417 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29418 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29419 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29420 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29421 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29422 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29423 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29424 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29425 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29426 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29427 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29428 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29429 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29430 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29431 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29432 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29433 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29434 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29435 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29436 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29437 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29438 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29439 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29440 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29441 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29442 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29443 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29444 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29445 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29446 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29447 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29448 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29449 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29450 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29451
29452 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29453
29454 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29455 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29456 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29457 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29458 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29459 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29460 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29461 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29462 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29463 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29464 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29465 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29466 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29467 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29468 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29469 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29470 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29471 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29472 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29473 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29474 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29475 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29476 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29477 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29478 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29479 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29480 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29481 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29482 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29483 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29484 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29485 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29486 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29487 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29488 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29489 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29490 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29491 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29492 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29493 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29494 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29495 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29496 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29497 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29498 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29499 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29500 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29501 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29502 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29503 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29504 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29505 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29506 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29507 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29508 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29509 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29510 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29511 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29512 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29513 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29514 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29515 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29516 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29517 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29518 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29519 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29520 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29521 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29522 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29523 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29524 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29525 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29526 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29527 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29528 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29529 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29530 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29531 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29532 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29533 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29534 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29535 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29536 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29537 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29538 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29539 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29540 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29541 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29542 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29543 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29544 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29545 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29546 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29547 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29548 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29549 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29550 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29551 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29552 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29553 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29554 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29555 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29556 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29557 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29558 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29559 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29560 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29561 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29562 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29563 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29564 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29565 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29566 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29567 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29568 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29569 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29570 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29571 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29572 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29573 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29574 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29575 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29576 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29577 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29578 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29579 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29580 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29581 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29582 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29583 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29584 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29585 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29586 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29587 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
29588 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
29589 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
29590 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
29591 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
29592 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
29593 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
29594 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
29595 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
29596 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
29597 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
29598 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
29599 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
29600 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
29601 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
29602 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
29603 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
29604 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
29605 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
29606 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
29607 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
29608 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
29609 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
29610 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
29611 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
29612 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
29613 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
29614 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
29615 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
29616 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
29617 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
29618 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
29619 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
29620 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
29621 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
29622 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
29623 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
29624 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
29625 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
29626 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
29627 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
29628 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
29629 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
29630 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
29631 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
29632 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
29633 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
29634 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
29635 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
29636 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
29637 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
29638 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
29639 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
29640 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
29641 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
29642 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
29643 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
29644 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
29645 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
29646 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
29647 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
29648 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
29649 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
29650 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
29651 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
29652 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
29653 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
29654
29655 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
29656 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
29657 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
29658 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
29659
29660 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
29661 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
29662 }
29663