]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/misc_wrap.cpp
Oops
[wxWidgets.git] / wxPython / src / msw / misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxMetafile swig_types[2]
212 #define SWIGTYPE_p_wxFileHistory swig_types[3]
213 #define SWIGTYPE_p_wxLog swig_types[4]
214 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215 #define SWIGTYPE_p_wxMenu swig_types[6]
216 #define SWIGTYPE_p_wxEvent swig_types[7]
217 #define SWIGTYPE_p_wxConfigBase swig_types[8]
218 #define SWIGTYPE_p_wxDisplay swig_types[9]
219 #define SWIGTYPE_p_wxFileType swig_types[10]
220 #define SWIGTYPE_p_wxLogGui swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxDataFormat swig_types[13]
223 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
224 #define SWIGTYPE_p_wxCaret swig_types[15]
225 #define SWIGTYPE_p_int swig_types[16]
226 #define SWIGTYPE_p_wxSize swig_types[17]
227 #define SWIGTYPE_p_wxClipboard swig_types[18]
228 #define SWIGTYPE_p_wxStopWatch swig_types[19]
229 #define SWIGTYPE_p_wxDC swig_types[20]
230 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231 #define SWIGTYPE_p_wxIcon swig_types[22]
232 #define SWIGTYPE_p_wxLogStderr swig_types[23]
233 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
235 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
236 #define SWIGTYPE_p_wxPyTextDataObject swig_types[27]
237 #define SWIGTYPE_p_wxBitmapDataObject swig_types[28]
238 #define SWIGTYPE_p_wxTextDataObject swig_types[29]
239 #define SWIGTYPE_p_wxDataObject swig_types[30]
240 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[31]
241 #define SWIGTYPE_p_wxFileDataObject swig_types[32]
242 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243 #define SWIGTYPE_p_wxURLDataObject swig_types[34]
244 #define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245 #define SWIGTYPE_p_wxSound swig_types[36]
246 #define SWIGTYPE_p_wxTimerRunner swig_types[37]
247 #define SWIGTYPE_p_wxLogWindow swig_types[38]
248 #define SWIGTYPE_p_wxTimeSpan swig_types[39]
249 #define SWIGTYPE_p_wxArrayString swig_types[40]
250 #define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251 #define SWIGTYPE_p_wxToolTip swig_types[42]
252 #define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253 #define SWIGTYPE_p_wxFileConfig swig_types[44]
254 #define SWIGTYPE_p_wxSystemSettings swig_types[45]
255 #define SWIGTYPE_p_wxVideoMode swig_types[46]
256 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
259 #define SWIGTYPE_p_wxRect swig_types[50]
260 #define SWIGTYPE_p_char swig_types[51]
261 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262 #define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263 #define SWIGTYPE_p_wxFrame swig_types[54]
264 #define SWIGTYPE_p_wxTimer swig_types[55]
265 #define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266 #define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267 #define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxTipProvider swig_types[59]
269 #define SWIGTYPE_p_wxJoystick swig_types[60]
270 #define SWIGTYPE_p_wxSystemOptions swig_types[61]
271 #define SWIGTYPE_p_wxPoint swig_types[62]
272 #define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273 #define SWIGTYPE_p_wxCursor swig_types[64]
274 #define SWIGTYPE_p_wxObject swig_types[65]
275 #define SWIGTYPE_p_wxOutputStream swig_types[66]
276 #define SWIGTYPE_p_wxDateTime swig_types[67]
277 #define SWIGTYPE_p_wxPyDropSource swig_types[68]
278 #define SWIGTYPE_p_wxWindow swig_types[69]
279 #define SWIGTYPE_p_wxString swig_types[70]
280 #define SWIGTYPE_p_wxPyProcess swig_types[71]
281 #define SWIGTYPE_p_wxBitmap swig_types[72]
282 #define SWIGTYPE_p_wxConfig swig_types[73]
283 #define SWIGTYPE_p_wxChar swig_types[74]
284 #define SWIGTYPE_p_wxBusyInfo swig_types[75]
285 #define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288 #define SWIGTYPE_p_wxProcessEvent swig_types[79]
289 #define SWIGTYPE_p_wxPyLog swig_types[80]
290 #define SWIGTYPE_p_wxLogNull swig_types[81]
291 #define SWIGTYPE_p_wxColour swig_types[82]
292 #define SWIGTYPE_p_wxByte swig_types[83]
293 #define SWIGTYPE_p_wxConfigPathChanger swig_types[84]
294 #define SWIGTYPE_p_wxPyTimer swig_types[85]
295 #define SWIGTYPE_p_wxDateSpan swig_types[86]
296 static swig_type_info *swig_types[88];
297
298 /* -------- TYPES TABLE (END) -------- */
299
300
301 /*-----------------------------------------------
302 @(target):= _misc.so
303 ------------------------------------------------*/
304 #define SWIG_init init_misc
305
306 #define SWIG_name "_misc"
307
308 /* Auxiliar swig macros */
309
310 #ifdef __cplusplus
311 #define SWIGSTATICINLINE(a) static inline a
312 #define SWIGSTATIC(a) static a
313 #define swig_new_array(type, size) (new type[(size)])
314 #define swig_delete_array(cptr) delete[] cptr
315 #define swig_const_cast(type,a) const_cast<type>(a)
316 #define swig_static_cast(type,a) static_cast<type>(a)
317 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
318
319 #ifdef HAVE_NUMERIC_CAST
320 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
321 #else
322 #define swig_numeric_cast(type,a) static_cast<type>(a)
323 #endif
324
325 #else /* C case */
326
327 #define SWIGSTATICINLINE(a) static a
328 #define SWIGSTATIC(a) static a
329 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
330 #define swig_delete_array(cptr) free((char*)cptr)
331 #define swig_const_cast(type,a) (type)(a)
332 #define swig_static_cast(type,a) (type)(a)
333 #define swig_reinterpret_cast(type,a) (type)(a)
334 #define swig_numeric_cast(type,a) (type)(a)
335
336 #endif /* __cplusplus */
337
338
339 #define SWIG_FromSignedChar PyInt_FromLong
340 #define SWIG_FromUnsignedChar PyInt_FromLong
341 #define SWIG_FromShort PyInt_FromLong
342 #define SWIG_FromUnsignedShort PyInt_FromLong
343 #define SWIG_FromInt PyInt_FromLong
344 #define SWIG_FromLong PyInt_FromLong
345 #define SWIG_FromFloat PyFloat_FromDouble
346 #define SWIG_FromDouble PyFloat_FromDouble
347 #define SWIG_FromFloat PyFloat_FromDouble
348 #define SWIG_FromDouble PyFloat_FromDouble
349
350
351 #include "wx/wxPython/wxPython.h"
352 #include "wx/wxPython/pyclasses.h"
353 #include "wx/wxPython/pyistream.h"
354
355
356 static const wxString wxPyEmptyString(wxEmptyString);
357
358
359
360 #include <limits.h>
361
362
363 SWIGSTATICINLINE(long)
364 SWIG_CheckLongInRange(long value, const char* type,
365 long min_value, long max_value)
366 {
367 if (!PyErr_Occurred()) {
368 if (value < min_value) {
369 PyObject *err =
370 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
371 value, type, min_value);
372
373 PyErr_SetObject(PyExc_OverflowError, err);
374 Py_DECREF(err);
375 } else if (value > max_value) {
376 PyObject *err =
377 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
378 value, type, max_value);
379 PyErr_SetObject(PyExc_OverflowError, err);
380 Py_DECREF(err);
381 }
382 }
383 return value;
384 }
385
386
387 SWIGSTATICINLINE(long)
388 SWIG_AsLong(PyObject * obj)
389 {
390 if (PyNumber_Check(obj))
391 return PyInt_AsLong(obj);
392 else {
393 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
394 obj->ob_type->tp_name);
395 PyErr_SetObject(PyExc_TypeError, errmsg);
396 Py_DECREF(errmsg);
397 return 0;
398 }
399 }
400
401
402 #if INT_MAX != LONG_MAX
403 SWIGSTATICINLINE(int)
404 SWIG_AsInt(PyObject *obj)
405 {
406 return swig_numeric_cast(int,
407 SWIG_CheckLongInRange(SWIG_AsLong(obj),
408 "int", INT_MIN, INT_MAX));
409 }
410 #else
411 #define SWIG_AsInt SWIG_AsLong
412 #endif
413
414
415 SWIGSTATICINLINE(int)
416 SWIG_CheckInt(PyObject* obj)
417 {
418 SWIG_AsInt(obj);
419 if (PyErr_Occurred()) {
420 PyErr_Clear();
421 return 0;
422 } else {
423 return 1;
424 }
425 }
426
427 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
428 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
429 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
430
431 SWIGSTATICINLINE(int)
432 SWIG_CheckLong(PyObject* obj)
433 {
434 SWIG_AsLong(obj);
435 if (PyErr_Occurred()) {
436 PyErr_Clear();
437 return 0;
438 } else {
439 return 1;
440 }
441 }
442
443
444 SWIGSTATICINLINE(bool)
445 SWIG_AsBool(PyObject *obj)
446 {
447 return PyObject_IsTrue(obj) ? true : false;
448 }
449
450
451 SWIGSTATICINLINE(int)
452 SWIG_CheckBool(PyObject* obj)
453 {
454 SWIG_AsBool(obj);
455 if (PyErr_Occurred()) {
456 PyErr_Clear();
457 return 0;
458 } else {
459 return 1;
460 }
461 }
462
463
464 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
465 PyObject* o2;
466 PyObject* o3;
467
468 if (!target) {
469 target = o;
470 } else if (target == Py_None) {
471 Py_DECREF(Py_None);
472 target = o;
473 } else {
474 if (!PyTuple_Check(target)) {
475 o2 = target;
476 target = PyTuple_New(1);
477 PyTuple_SetItem(target, 0, o2);
478 }
479 o3 = PyTuple_New(1);
480 PyTuple_SetItem(o3, 0, o);
481
482 o2 = target;
483 target = PySequence_Concat(o2, o3);
484 Py_DECREF(o2);
485 Py_DECREF(o3);
486 }
487 return target;
488 }
489
490
491 SWIGSTATICINLINE(unsigned long)
492 SWIG_AsUnsignedLong(PyObject * obj)
493 {
494 if (PyLong_Check(obj)) {
495 return PyLong_AsUnsignedLong(obj);
496 } else {
497 long i = SWIG_AsLong(obj);
498 if ( !PyErr_Occurred() && (i < 0)) {
499 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
500 }
501 return i;
502 }
503 }
504
505
506 SWIGSTATICINLINE(int)
507 SWIG_CheckUnsignedLong(PyObject* obj)
508 {
509 SWIG_AsUnsignedLong(obj);
510 if (PyErr_Occurred()) {
511 PyErr_Clear();
512 return 0;
513 } else {
514 return 1;
515 }
516 }
517
518
519 SWIGSTATICINLINE(PyObject* )
520 SWIG_FromUnsignedLong(unsigned long value)
521 {
522 return (value > LONG_MAX) ?
523 PyLong_FromUnsignedLong(value)
524 : PyInt_FromLong(swig_numeric_cast(long,value));
525 }
526
527
528 bool wxThread_IsMain() {
529 #ifdef WXP_WITH_THREAD
530 return wxThread::IsMain();
531 #else
532 return True;
533 #endif
534 }
535
536
537 int wxCaret_GetBlinkTime() {
538 return wxCaret::GetBlinkTime();
539 }
540
541 void wxCaret_SetBlinkTime(int milliseconds) {
542 wxCaret::SetBlinkTime(milliseconds);
543 }
544
545
546 #include <wx/snglinst.h>
547
548
549 #ifdef __WXMSW__
550 #include <wx/msw/private.h>
551 #include <wx/dynload.h>
552 #endif
553
554
555
556 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
557 {
558 #ifdef __WXMSW__
559
560 switch (method)
561 {
562 case 1:
563 // This one only partially works. Appears to be an undocumented
564 // "standard" convention that not all widgets adhear to. For
565 // example, for some widgets backgrounds or non-client areas may
566 // not be painted.
567 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
568 break;
569
570 case 2:
571 // This one works much better, except for on XP. On Win2k nearly
572 // all widgets and their children are captured correctly[**]. On
573 // XP with Themes activated most native widgets draw only
574 // partially, if at all. Without themes it works just like on
575 // Win2k.
576 //
577 // ** For example the radio buttons in a wxRadioBox are not its
578 // children by default, but you can capture it via the panel
579 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
580 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
581 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
582 PRF_ERASEBKGND | PRF_OWNED );
583 break;
584
585 case 3:
586 // This one is only defined in the latest SDK and is only
587 // available on XP. MSDN says it is similar to sending WM_PRINT
588 // so I expect that it will work similar to the above. Since it
589 // is avaialble only on XP, it can't be compiled like this and
590 // will have to be loaded dynamically.
591 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
592
593 // fall through
594
595 case 4:
596 // Use PrintWindow if available, or fallback to WM_PRINT
597 // otherwise. Unfortunately using PrintWindow is even worse than
598 // WM_PRINT. For most native widgets nothing is drawn to the dc
599 // at all, with or without Themes.
600 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
601 static bool s_triedToLoad = False;
602 static PrintWindow_t pfnPrintWindow = NULL;
603 if ( !s_triedToLoad )
604 {
605
606 s_triedToLoad = True;
607 wxDynamicLibrary dllUser32(_T("user32.dll"));
608 if ( dllUser32.IsLoaded() )
609 {
610 wxLogNull nolog; // Don't report errors here
611 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
612 }
613 }
614 if (pfnPrintWindow)
615 {
616 printf("Using PrintWindow\n");
617 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
618 }
619 else
620 {
621 printf("Using WM_PRINT\n");
622 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
623 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
624 }
625 }
626 #endif
627 }
628
629
630
631 #include <wx/tipdlg.h>
632
633
634 class wxPyTipProvider : public wxTipProvider {
635 public:
636 wxPyTipProvider(size_t currentTip)
637 : wxTipProvider(currentTip) {}
638
639 DEC_PYCALLBACK_STRING__pure(GetTip);
640 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
641 PYPRIVATE;
642 };
643
644 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
645 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
646
647
648 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
649
650 void wxPyTimer::Notify() {
651 bool found;
652 bool blocked = wxPyBeginBlockThreads();
653 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
654 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
655 wxPyEndBlockThreads(blocked);
656 if (! found)
657 wxTimer::Notify();
658 }
659 void wxPyTimer::base_Notify() {
660 wxTimer::Notify();
661 }
662
663
664
665 SWIGSTATICINLINE(PyObject *)
666 SWIG_FromCharPtr(const char* cptr)
667 {
668 size_t size = cptr ? strlen(cptr) : 0;
669 if (cptr) {
670 if (size > INT_MAX) {
671 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
672 SWIG_TypeQuery("char *"), 0);
673 } else {
674 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
675 }
676 } else {
677 Py_INCREF(Py_None);
678 return Py_None;
679 }
680 }
681
682
683 SWIGSTATICINLINE(unsigned long)
684 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
685 unsigned long max_value)
686 {
687 if (!PyErr_Occurred()) {
688 if (value > max_value) {
689 PyObject *err =
690 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
691 value, type, max_value);
692 PyErr_SetObject(PyExc_OverflowError, err);
693 Py_DECREF(err);
694 }
695 }
696 return value;
697 }
698
699
700 #if UINT_MAX != ULONG_MAX
701 SWIGSTATICINLINE(unsigned int)
702 SWIG_AsUnsignedInt(PyObject *obj)
703 {
704 return swig_numeric_cast(unsigned int,
705 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
706 "unsigned int", UINT_MAX));
707 }
708 #else
709 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
710 #endif
711
712
713 SWIGSTATICINLINE(int)
714 SWIG_CheckUnsignedInt(PyObject* obj)
715 {
716 SWIG_AsUnsignedInt(obj);
717 if (PyErr_Occurred()) {
718 PyErr_Clear();
719 return 0;
720 } else {
721 return 1;
722 }
723 }
724
725 wxString Log_TimeStamp(){
726 wxString msg;
727 wxLog::TimeStamp(&msg);
728 return msg;
729 }
730 void wxLog_Destroy(wxLog *self){ delete self; }
731
732 // A wxLog class that can be derived from in wxPython
733 class wxPyLog : public wxLog {
734 public:
735 wxPyLog() : wxLog() {}
736
737 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
738 bool found;
739 bool blocked = wxPyBeginBlockThreads();
740 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
741 PyObject* s = wx2PyString(szString);
742 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
743 Py_DECREF(s);
744 }
745 wxPyEndBlockThreads(blocked);
746 if (! found)
747 wxLog::DoLog(level, szString, t);
748 }
749
750 virtual void DoLogString(const wxChar *szString, time_t t) {
751 bool found;
752 bool blocked = wxPyBeginBlockThreads();
753 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
754 PyObject* s = wx2PyString(szString);
755 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
756 Py_DECREF(s);
757 }
758 wxPyEndBlockThreads(blocked);
759 if (! found)
760 wxLog::DoLogString(szString, t);
761 }
762
763 PYPRIVATE;
764 };
765
766
767
768
769 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
770
771
772 #include <wx/joystick.h>
773
774
775 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
776 // A C++ stub class for wxJoystick for platforms that don't have it.
777 class wxJoystick : public wxObject {
778 public:
779 wxJoystick(int joystick = wxJOYSTICK1) {
780 bool blocked = wxPyBeginBlockThreads();
781 PyErr_SetString(PyExc_NotImplementedError,
782 "wxJoystick is not available on this platform.");
783 wxPyEndBlockThreads(blocked);
784 }
785 wxPoint GetPosition() { return wxPoint(-1,-1); }
786 int GetZPosition() { return -1; }
787 int GetButtonState() { return -1; }
788 int GetPOVPosition() { return -1; }
789 int GetPOVCTSPosition() { return -1; }
790 int GetRudderPosition() { return -1; }
791 int GetUPosition() { return -1; }
792 int GetVPosition() { return -1; }
793 int GetMovementThreshold() { return -1; }
794 void SetMovementThreshold(int threshold) {}
795
796 bool IsOk(void) { return False; }
797 int GetNumberJoysticks() { return -1; }
798 int GetManufacturerId() { return -1; }
799 int GetProductId() { return -1; }
800 wxString GetProductName() { return ""; }
801 int GetXMin() { return -1; }
802 int GetYMin() { return -1; }
803 int GetZMin() { return -1; }
804 int GetXMax() { return -1; }
805 int GetYMax() { return -1; }
806 int GetZMax() { return -1; }
807 int GetNumberButtons() { return -1; }
808 int GetNumberAxes() { return -1; }
809 int GetMaxButtons() { return -1; }
810 int GetMaxAxes() { return -1; }
811 int GetPollingMin() { return -1; }
812 int GetPollingMax() { return -1; }
813 int GetRudderMin() { return -1; }
814 int GetRudderMax() { return -1; }
815 int GetUMin() { return -1; }
816 int GetUMax() { return -1; }
817 int GetVMin() { return -1; }
818 int GetVMax() { return -1; }
819
820 bool HasRudder() { return False; }
821 bool HasZ() { return False; }
822 bool HasU() { return False; }
823 bool HasV() { return False; }
824 bool HasPOV() { return False; }
825 bool HasPOV4Dir() { return False; }
826 bool HasPOVCTS() { return False; }
827
828 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
829 bool ReleaseCapture() { return False; }
830 };
831 #endif
832
833
834 #include <wx/sound.h>
835
836
837 #if !wxUSE_SOUND
838 // A C++ stub class for wxWave for platforms that don't have it.
839 class wxSound : public wxObject
840 {
841 public:
842 wxSound() {
843 bool blocked = wxPyBeginBlockThreads();
844 PyErr_SetString(PyExc_NotImplementedError,
845 "wxSound is not available on this platform.");
846 wxPyEndBlockThreads(blocked);
847 }
848 wxSound(const wxString&, bool) {
849 bool blocked = wxPyBeginBlockThreads();
850 PyErr_SetString(PyExc_NotImplementedError,
851 "wxSound is not available on this platform.");
852 wxPyEndBlockThreads(blocked);
853 }
854 wxSound(int, const wxByte*) {
855 bool blocked = wxPyBeginBlockThreads();
856 PyErr_SetString(PyExc_NotImplementedError,
857 "wxSound is not available on this platform.");
858 wxPyEndBlockThreads(blocked);
859 }
860
861 ~wxSound() {};
862
863 bool Create(const wxString&, bool) { return false; }
864 bool Create(int, const wxByte*) { return false; };
865 bool IsOk() { return false; };
866 bool Play(unsigned) const { return false; }
867 static bool Play(const wxString&, unsigned) { return false; }
868 static void Stop() {}
869 };
870
871 #endif
872
873
874 #include <wx/mimetype.h>
875
876 PyObject *wxFileType_GetMimeType(wxFileType *self){
877 wxString str;
878 if (self->GetMimeType(&str))
879 return wx2PyString(str);
880 else
881 RETURN_NONE();
882 }
883 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
884 wxArrayString arr;
885 if (self->GetMimeTypes(arr))
886 return wxArrayString2PyList_helper(arr);
887 else
888 RETURN_NONE();
889 }
890 PyObject *wxFileType_GetExtensions(wxFileType *self){
891 wxArrayString arr;
892 if (self->GetExtensions(arr))
893 return wxArrayString2PyList_helper(arr);
894 else
895 RETURN_NONE();
896 }
897 wxIcon *wxFileType_GetIcon(wxFileType *self){
898 wxIconLocation loc;
899 if (self->GetIcon(&loc))
900 return new wxIcon(loc);
901 else
902 return NULL;
903 }
904 PyObject *wxFileType_GetIconInfo(wxFileType *self){
905 wxIconLocation loc;
906 if (self->GetIcon(&loc)) {
907 wxString iconFile = loc.GetFileName();
908 int iconIndex = -1;
909
910 iconIndex = loc.GetIndex();
911
912 // Make a tuple and put the values in it
913 bool blocked = wxPyBeginBlockThreads();
914 PyObject* tuple = PyTuple_New(3);
915 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
916 wxT("wxIcon"), True));
917 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
918 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
919 wxPyEndBlockThreads(blocked);
920 return tuple;
921 }
922 else
923 RETURN_NONE();
924 }
925 PyObject *wxFileType_GetDescription(wxFileType *self){
926 wxString str;
927 if (self->GetDescription(&str))
928 return wx2PyString(str);
929 else
930 RETURN_NONE();
931 }
932 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
933 wxString str;
934 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
935 return wx2PyString(str);
936 else
937 RETURN_NONE();
938 }
939 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
940 wxString str;
941 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
942 return wx2PyString(str);
943 else
944 RETURN_NONE();
945 }
946 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
947 wxArrayString verbs;
948 wxArrayString commands;
949 if (self->GetAllCommands(&verbs, &commands,
950 wxFileType::MessageParameters(filename, mimetype))) {
951 bool blocked = wxPyBeginBlockThreads();
952 PyObject* tuple = PyTuple_New(2);
953 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
954 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
955 wxPyEndBlockThreads(blocked);
956 return tuple;
957 }
958 else
959 RETURN_NONE();
960 }
961 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
962 return wxFileType::ExpandCommand(command,
963 wxFileType::MessageParameters(filename, mimetype));
964 }
965 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
966 wxArrayString arr;
967 self->EnumAllFileTypes(arr);
968 return wxArrayString2PyList_helper(arr);
969 }
970
971 #include <wx/artprov.h>
972
973 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
974 static const wxString wxPyART_MENU(wxART_MENU);
975 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
976 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
977 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
978 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
979 static const wxString wxPyART_OTHER(wxART_OTHER);
980 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
981 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
982 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
983 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
984 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
985 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
986 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
987 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
988 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
989 static const wxString wxPyART_GO_UP(wxART_GO_UP);
990 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
991 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
992 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
993 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
994 static const wxString wxPyART_PRINT(wxART_PRINT);
995 static const wxString wxPyART_HELP(wxART_HELP);
996 static const wxString wxPyART_TIP(wxART_TIP);
997 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
998 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
999 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1000 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1001 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1002 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1003 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1004 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1005 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1006 static const wxString wxPyART_ERROR(wxART_ERROR);
1007 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1008 static const wxString wxPyART_WARNING(wxART_WARNING);
1009 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1010 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1011 // Python aware wxArtProvider
1012 class wxPyArtProvider : public wxArtProvider {
1013 public:
1014
1015 virtual wxBitmap CreateBitmap(const wxArtID& id,
1016 const wxArtClient& client,
1017 const wxSize& size) {
1018 wxBitmap rval = wxNullBitmap;
1019 bool blocked = wxPyBeginBlockThreads();
1020 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1021 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1022 PyObject* ro;
1023 wxBitmap* ptr;
1024 PyObject* s1, *s2;
1025 s1 = wx2PyString(id);
1026 s2 = wx2PyString(client);
1027 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1028 Py_DECREF(so);
1029 Py_DECREF(s1);
1030 Py_DECREF(s2);
1031 if (ro) {
1032 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1033 rval = *ptr;
1034 Py_DECREF(ro);
1035 }
1036 }
1037 wxPyEndBlockThreads(blocked);
1038 return rval;
1039 }
1040
1041 PYPRIVATE;
1042 };
1043
1044 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1045
1046
1047
1048 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1049 PyObject* ret = PyTuple_New(3);
1050 if (ret) {
1051 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1052 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1053 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1054 }
1055 return ret;
1056 }
1057
1058 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1059 bool cont;
1060 long index = 0;
1061 wxString value;
1062
1063 cont = self->GetFirstGroup(value, index);
1064 return __EnumerationHelper(cont, value, index);
1065 }
1066 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1067 bool cont;
1068 wxString value;
1069
1070 cont = self->GetNextGroup(value, index);
1071 return __EnumerationHelper(cont, value, index);
1072 }
1073 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1074 bool cont;
1075 long index = 0;
1076 wxString value;
1077
1078 cont = self->GetFirstEntry(value, index);
1079 return __EnumerationHelper(cont, value, index);
1080 }
1081 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1082 bool cont;
1083 wxString value;
1084
1085 cont = self->GetNextEntry(value, index);
1086 return __EnumerationHelper(cont, value, index);
1087 }
1088 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1089 long rv;
1090 self->Read(key, &rv, defaultVal);
1091 return rv;
1092 }
1093
1094 SWIGSTATICINLINE(double)
1095 SWIG_AsDouble(PyObject *obj)
1096 {
1097 if (PyNumber_Check(obj))
1098 return PyFloat_AsDouble(obj);
1099 else {
1100 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1101 obj->ob_type->tp_name);
1102 PyErr_SetObject(PyExc_TypeError, errmsg);
1103 Py_DECREF(errmsg);
1104 return 0;
1105 }
1106 }
1107
1108
1109 SWIGSTATICINLINE(int)
1110 SWIG_CheckDouble(PyObject* obj)
1111 {
1112 SWIG_AsDouble(obj);
1113 if (PyErr_Occurred()) {
1114 PyErr_Clear();
1115 return 0;
1116 } else {
1117 return 1;
1118 }
1119 }
1120
1121 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1122 double rv;
1123 self->Read(key, &rv, defaultVal);
1124 return rv;
1125 }
1126 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1127 bool rv;
1128 self->Read(key, &rv, defaultVal);
1129 return rv;
1130 }
1131
1132 #include <wx/datetime.h>
1133
1134
1135 static const wxString wxPyDateFormatStr(wxT("%c"));
1136 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1137
1138 #define LOCAL_TZ wxDateTime::Local
1139
1140
1141 #if UINT_MAX < LONG_MAX
1142 #define SWIG_FromUnsignedInt SWIG_FromLong
1143 #else
1144 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1145 #endif
1146
1147 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1148 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1149 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1150 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1151 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1152 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; }
1153 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; }
1154 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; }
1155 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; }
1156 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; }
1157 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; }
1158 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1159 const wxChar* rv;
1160 const wxChar* _date = date;
1161 rv = self->ParseRfc822Date(_date);
1162 if (rv == NULL) return -1;
1163 return rv - _date;
1164 }
1165 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1166 const wxChar* rv;
1167 const wxChar* _date = date;
1168 rv = self->ParseFormat(_date, format, dateDef);
1169 if (rv == NULL) return -1;
1170 return rv - _date;
1171 }
1172 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1173 const wxChar* rv;
1174 const wxChar* _datetime = datetime;
1175 rv = self->ParseDateTime(_datetime);
1176 if (rv == NULL) return -1;
1177 return rv - _datetime;
1178 }
1179 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1180 const wxChar* rv;
1181 const wxChar* _date = date;
1182 rv = self->ParseDate(_date);
1183 if (rv == NULL) return -1;
1184 return rv - _date;
1185 }
1186 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1187 const wxChar* rv;
1188 const wxChar* _time = time;
1189 rv = self->ParseTime(_time);
1190 if (rv == NULL) return -1;
1191 return rv - _time;
1192 }
1193 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1194 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1195 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1196 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1197 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1198 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1199 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1200 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1201 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1202 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1203 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1204 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1205 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1206 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1207 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1208 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1209
1210 #include <wx/dataobj.h>
1211
1212 // Create a new class for wxPython to use
1213 class wxPyDataObjectSimple : public wxDataObjectSimple {
1214 public:
1215 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1216 : wxDataObjectSimple(format) {}
1217
1218 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1219 bool GetDataHere(void *buf) const;
1220 bool SetData(size_t len, const void *buf) const;
1221 PYPRIVATE;
1222 };
1223
1224 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1225
1226 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1227 // We need to get the data for this object and write it to buf. I think
1228 // the best way to do this for wxPython is to have the Python method
1229 // return either a string or None and then act appropriately with the
1230 // C++ version.
1231
1232 bool rval = False;
1233 bool blocked = wxPyBeginBlockThreads();
1234 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1235 PyObject* ro;
1236 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1237 if (ro) {
1238 rval = (ro != Py_None && PyString_Check(ro));
1239 if (rval)
1240 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1241 Py_DECREF(ro);
1242 }
1243 }
1244 wxPyEndBlockThreads(blocked);
1245 return rval;
1246 }
1247
1248 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1249 // For this one we simply need to make a string from buf and len
1250 // and send it to the Python method.
1251 bool rval = False;
1252 bool blocked = wxPyBeginBlockThreads();
1253 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1254 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1255 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1256 Py_DECREF(data);
1257 }
1258 wxPyEndBlockThreads(blocked);
1259 return rval;
1260 }
1261
1262 // Create a new class for wxPython to use
1263 class wxPyTextDataObject : public wxTextDataObject {
1264 public:
1265 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1266 : wxTextDataObject(text) {}
1267
1268 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1269 DEC_PYCALLBACK_STRING__const(GetText);
1270 DEC_PYCALLBACK__STRING(SetText);
1271 PYPRIVATE;
1272 };
1273
1274 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1275 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1276 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1277
1278
1279 // Create a new class for wxPython to use
1280 class wxPyBitmapDataObject : public wxBitmapDataObject {
1281 public:
1282 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1283 : wxBitmapDataObject(bitmap) {}
1284
1285 wxBitmap GetBitmap() const;
1286 void SetBitmap(const wxBitmap& bitmap);
1287 PYPRIVATE;
1288 };
1289
1290 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1291 wxBitmap* rval = &wxNullBitmap;
1292 bool blocked = wxPyBeginBlockThreads();
1293 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1294 PyObject* ro;
1295 wxBitmap* ptr;
1296 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1297 if (ro) {
1298 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1299 rval = ptr;
1300 Py_DECREF(ro);
1301 }
1302 }
1303 wxPyEndBlockThreads(blocked);
1304 return *rval;
1305 }
1306
1307 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1308 bool blocked = wxPyBeginBlockThreads();
1309 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1310 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1311 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1312 Py_DECREF(bo);
1313 }
1314 wxPyEndBlockThreads(blocked);
1315 }
1316
1317 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1318 if (PyString_Check(data)) {
1319 // for Python we just call SetData here since we always need it to make a copy.
1320 self->SetData(PyString_Size(data), PyString_AsString(data));
1321 }
1322 else {
1323 // raise a TypeError if not a string
1324 PyErr_SetString(PyExc_TypeError, "String expected.");
1325 }
1326 }
1327 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1328 if (PyString_Check(data)) {
1329 return self->SetData(PyString_Size(data), PyString_AsString(data));
1330 }
1331 else {
1332 // raise a TypeError if not a string
1333 PyErr_SetString(PyExc_TypeError, "String expected.");
1334 return False;
1335 }
1336 }
1337 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1338 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1339 }
1340
1341 #include <wx/metafile.h>
1342
1343
1344 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1345
1346
1347 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1348 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1349 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1350 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1351 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1352
1353
1354 class wxPyTextDropTarget : public wxTextDropTarget {
1355 public:
1356 wxPyTextDropTarget() {}
1357
1358 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1359
1360 DEC_PYCALLBACK__(OnLeave);
1361 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1362 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1363 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1364 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1365
1366 PYPRIVATE;
1367 };
1368
1369 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1370 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1371 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1372 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1373 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1374 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1375
1376
1377
1378 class wxPyFileDropTarget : public wxFileDropTarget {
1379 public:
1380 wxPyFileDropTarget() {}
1381
1382 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1383
1384 DEC_PYCALLBACK__(OnLeave);
1385 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1386 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1387 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1388 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1389
1390 PYPRIVATE;
1391 };
1392
1393 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1394 const wxArrayString& filenames) {
1395 bool rval = False;
1396 bool blocked = wxPyBeginBlockThreads();
1397 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1398 PyObject* list = wxArrayString2PyList_helper(filenames);
1399 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1400 Py_DECREF(list);
1401 }
1402 wxPyEndBlockThreads(blocked);
1403 return rval;
1404 }
1405
1406
1407
1408 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1409 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1410 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1411 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1412 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1413
1414
1415
1416
1417 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1418
1419 #include "wx/display.h"
1420
1421 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1422 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1423 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1424 PyObject* pyList = NULL;
1425 wxArrayVideoModes arr = self->GetModes(mode);
1426 bool blocked = wxPyBeginBlockThreads();
1427 pyList = PyList_New(0);
1428 for (int i=0; i < arr.GetCount(); i++) {
1429 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1430 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1431 PyList_Append(pyList, pyObj);
1432 }
1433 wxPyEndBlockThreads(blocked);
1434 return pyList;
1435 }
1436 #ifdef __cplusplus
1437 extern "C" {
1438 #endif
1439 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1440 PyObject *resultobj;
1441 int arg1 ;
1442 wxColour result;
1443 PyObject * obj0 = 0 ;
1444 char *kwnames[] = {
1445 (char *) "index", NULL
1446 };
1447
1448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1449 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1450 if (PyErr_Occurred()) SWIG_fail;
1451 {
1452 PyThreadState* __tstate = wxPyBeginAllowThreads();
1453 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1454
1455 wxPyEndAllowThreads(__tstate);
1456 if (PyErr_Occurred()) SWIG_fail;
1457 }
1458 {
1459 wxColour * resultptr;
1460 resultptr = new wxColour((wxColour &) result);
1461 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1462 }
1463 return resultobj;
1464 fail:
1465 return NULL;
1466 }
1467
1468
1469 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1470 PyObject *resultobj;
1471 int arg1 ;
1472 wxFont result;
1473 PyObject * obj0 = 0 ;
1474 char *kwnames[] = {
1475 (char *) "index", NULL
1476 };
1477
1478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1479 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 {
1482 PyThreadState* __tstate = wxPyBeginAllowThreads();
1483 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1484
1485 wxPyEndAllowThreads(__tstate);
1486 if (PyErr_Occurred()) SWIG_fail;
1487 }
1488 {
1489 wxFont * resultptr;
1490 resultptr = new wxFont((wxFont &) result);
1491 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1492 }
1493 return resultobj;
1494 fail:
1495 return NULL;
1496 }
1497
1498
1499 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 int arg1 ;
1502 int result;
1503 PyObject * obj0 = 0 ;
1504 char *kwnames[] = {
1505 (char *) "index", NULL
1506 };
1507
1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1509 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1510 if (PyErr_Occurred()) SWIG_fail;
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 }
1518 resultobj = SWIG_FromInt((int)result);
1519 return resultobj;
1520 fail:
1521 return NULL;
1522 }
1523
1524
1525 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1526 PyObject *resultobj;
1527 int arg1 ;
1528 bool result;
1529 PyObject * obj0 = 0 ;
1530 char *kwnames[] = {
1531 (char *) "index", NULL
1532 };
1533
1534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1535 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1536 if (PyErr_Occurred()) SWIG_fail;
1537 {
1538 PyThreadState* __tstate = wxPyBeginAllowThreads();
1539 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1540
1541 wxPyEndAllowThreads(__tstate);
1542 if (PyErr_Occurred()) SWIG_fail;
1543 }
1544 {
1545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1546 }
1547 return resultobj;
1548 fail:
1549 return NULL;
1550 }
1551
1552
1553 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1554 PyObject *resultobj;
1555 int result;
1556 char *kwnames[] = {
1557 NULL
1558 };
1559
1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1561 {
1562 PyThreadState* __tstate = wxPyBeginAllowThreads();
1563 result = (int)wxSystemSettings::GetScreenType();
1564
1565 wxPyEndAllowThreads(__tstate);
1566 if (PyErr_Occurred()) SWIG_fail;
1567 }
1568 resultobj = SWIG_FromInt((int)result);
1569 return resultobj;
1570 fail:
1571 return NULL;
1572 }
1573
1574
1575 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1576 PyObject *resultobj;
1577 int arg1 ;
1578 PyObject * obj0 = 0 ;
1579 char *kwnames[] = {
1580 (char *) "screen", NULL
1581 };
1582
1583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1584 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1585 if (PyErr_Occurred()) SWIG_fail;
1586 {
1587 PyThreadState* __tstate = wxPyBeginAllowThreads();
1588 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1589
1590 wxPyEndAllowThreads(__tstate);
1591 if (PyErr_Occurred()) SWIG_fail;
1592 }
1593 Py_INCREF(Py_None); resultobj = Py_None;
1594 return resultobj;
1595 fail:
1596 return NULL;
1597 }
1598
1599
1600 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1601 PyObject *obj;
1602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1603 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1604 Py_INCREF(obj);
1605 return Py_BuildValue((char *)"");
1606 }
1607 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject *resultobj;
1609 wxSystemOptions *result;
1610 char *kwnames[] = {
1611 NULL
1612 };
1613
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1615 {
1616 PyThreadState* __tstate = wxPyBeginAllowThreads();
1617 result = (wxSystemOptions *)new wxSystemOptions();
1618
1619 wxPyEndAllowThreads(__tstate);
1620 if (PyErr_Occurred()) SWIG_fail;
1621 }
1622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1623 return resultobj;
1624 fail:
1625 return NULL;
1626 }
1627
1628
1629 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1630 PyObject *resultobj;
1631 wxString *arg1 = 0 ;
1632 wxString *arg2 = 0 ;
1633 bool temp1 = False ;
1634 bool temp2 = False ;
1635 PyObject * obj0 = 0 ;
1636 PyObject * obj1 = 0 ;
1637 char *kwnames[] = {
1638 (char *) "name",(char *) "value", NULL
1639 };
1640
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1642 {
1643 arg1 = wxString_in_helper(obj0);
1644 if (arg1 == NULL) SWIG_fail;
1645 temp1 = True;
1646 }
1647 {
1648 arg2 = wxString_in_helper(obj1);
1649 if (arg2 == NULL) SWIG_fail;
1650 temp2 = True;
1651 }
1652 {
1653 PyThreadState* __tstate = wxPyBeginAllowThreads();
1654 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1655
1656 wxPyEndAllowThreads(__tstate);
1657 if (PyErr_Occurred()) SWIG_fail;
1658 }
1659 Py_INCREF(Py_None); resultobj = Py_None;
1660 {
1661 if (temp1)
1662 delete arg1;
1663 }
1664 {
1665 if (temp2)
1666 delete arg2;
1667 }
1668 return resultobj;
1669 fail:
1670 {
1671 if (temp1)
1672 delete arg1;
1673 }
1674 {
1675 if (temp2)
1676 delete arg2;
1677 }
1678 return NULL;
1679 }
1680
1681
1682 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1683 PyObject *resultobj;
1684 wxString *arg1 = 0 ;
1685 int arg2 ;
1686 bool temp1 = False ;
1687 PyObject * obj0 = 0 ;
1688 PyObject * obj1 = 0 ;
1689 char *kwnames[] = {
1690 (char *) "name",(char *) "value", NULL
1691 };
1692
1693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1694 {
1695 arg1 = wxString_in_helper(obj0);
1696 if (arg1 == NULL) SWIG_fail;
1697 temp1 = True;
1698 }
1699 arg2 = (int) SWIG_AsInt(obj1);
1700 if (PyErr_Occurred()) SWIG_fail;
1701 {
1702 PyThreadState* __tstate = wxPyBeginAllowThreads();
1703 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1704
1705 wxPyEndAllowThreads(__tstate);
1706 if (PyErr_Occurred()) SWIG_fail;
1707 }
1708 Py_INCREF(Py_None); resultobj = Py_None;
1709 {
1710 if (temp1)
1711 delete arg1;
1712 }
1713 return resultobj;
1714 fail:
1715 {
1716 if (temp1)
1717 delete arg1;
1718 }
1719 return NULL;
1720 }
1721
1722
1723 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1724 PyObject *resultobj;
1725 wxString *arg1 = 0 ;
1726 wxString result;
1727 bool temp1 = False ;
1728 PyObject * obj0 = 0 ;
1729 char *kwnames[] = {
1730 (char *) "name", NULL
1731 };
1732
1733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1734 {
1735 arg1 = wxString_in_helper(obj0);
1736 if (arg1 == NULL) SWIG_fail;
1737 temp1 = True;
1738 }
1739 {
1740 PyThreadState* __tstate = wxPyBeginAllowThreads();
1741 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1742
1743 wxPyEndAllowThreads(__tstate);
1744 if (PyErr_Occurred()) SWIG_fail;
1745 }
1746 {
1747 #if wxUSE_UNICODE
1748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1749 #else
1750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1751 #endif
1752 }
1753 {
1754 if (temp1)
1755 delete arg1;
1756 }
1757 return resultobj;
1758 fail:
1759 {
1760 if (temp1)
1761 delete arg1;
1762 }
1763 return NULL;
1764 }
1765
1766
1767 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1768 PyObject *resultobj;
1769 wxString *arg1 = 0 ;
1770 int result;
1771 bool temp1 = False ;
1772 PyObject * obj0 = 0 ;
1773 char *kwnames[] = {
1774 (char *) "name", NULL
1775 };
1776
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1778 {
1779 arg1 = wxString_in_helper(obj0);
1780 if (arg1 == NULL) SWIG_fail;
1781 temp1 = True;
1782 }
1783 {
1784 PyThreadState* __tstate = wxPyBeginAllowThreads();
1785 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1786
1787 wxPyEndAllowThreads(__tstate);
1788 if (PyErr_Occurred()) SWIG_fail;
1789 }
1790 resultobj = SWIG_FromInt((int)result);
1791 {
1792 if (temp1)
1793 delete arg1;
1794 }
1795 return resultobj;
1796 fail:
1797 {
1798 if (temp1)
1799 delete arg1;
1800 }
1801 return NULL;
1802 }
1803
1804
1805 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1806 PyObject *resultobj;
1807 wxString *arg1 = 0 ;
1808 bool result;
1809 bool temp1 = False ;
1810 PyObject * obj0 = 0 ;
1811 char *kwnames[] = {
1812 (char *) "name", NULL
1813 };
1814
1815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1816 {
1817 arg1 = wxString_in_helper(obj0);
1818 if (arg1 == NULL) SWIG_fail;
1819 temp1 = True;
1820 }
1821 {
1822 PyThreadState* __tstate = wxPyBeginAllowThreads();
1823 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1824
1825 wxPyEndAllowThreads(__tstate);
1826 if (PyErr_Occurred()) SWIG_fail;
1827 }
1828 {
1829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1830 }
1831 {
1832 if (temp1)
1833 delete arg1;
1834 }
1835 return resultobj;
1836 fail:
1837 {
1838 if (temp1)
1839 delete arg1;
1840 }
1841 return NULL;
1842 }
1843
1844
1845 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1846 PyObject *obj;
1847 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1848 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1849 Py_INCREF(obj);
1850 return Py_BuildValue((char *)"");
1851 }
1852 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1853 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1854 return 1;
1855 }
1856
1857
1858 static PyObject *_wrap_FileSelectorPromptStr_get() {
1859 PyObject *pyobj;
1860
1861 {
1862 #if wxUSE_UNICODE
1863 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1864 #else
1865 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1866 #endif
1867 }
1868 return pyobj;
1869 }
1870
1871
1872 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
1873 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1874 return 1;
1875 }
1876
1877
1878 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1879 PyObject *pyobj;
1880
1881 {
1882 #if wxUSE_UNICODE
1883 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1884 #else
1885 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1886 #endif
1887 }
1888 return pyobj;
1889 }
1890
1891
1892 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
1893 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1894 return 1;
1895 }
1896
1897
1898 static PyObject *_wrap_DirSelectorPromptStr_get() {
1899 PyObject *pyobj;
1900
1901 {
1902 #if wxUSE_UNICODE
1903 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1904 #else
1905 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1906 #endif
1907 }
1908 return pyobj;
1909 }
1910
1911
1912 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1913 PyObject *resultobj;
1914 long result;
1915 char *kwnames[] = {
1916 NULL
1917 };
1918
1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 result = (long)wxNewId();
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) SWIG_fail;
1926 }
1927 resultobj = SWIG_FromLong((long)result);
1928 return resultobj;
1929 fail:
1930 return NULL;
1931 }
1932
1933
1934 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1935 PyObject *resultobj;
1936 long arg1 ;
1937 PyObject * obj0 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "id", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
1943 arg1 = (long) SWIG_AsLong(obj0);
1944 if (PyErr_Occurred()) SWIG_fail;
1945 {
1946 PyThreadState* __tstate = wxPyBeginAllowThreads();
1947 wxRegisterId(arg1);
1948
1949 wxPyEndAllowThreads(__tstate);
1950 if (PyErr_Occurred()) SWIG_fail;
1951 }
1952 Py_INCREF(Py_None); resultobj = Py_None;
1953 return resultobj;
1954 fail:
1955 return NULL;
1956 }
1957
1958
1959 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1960 PyObject *resultobj;
1961 long result;
1962 char *kwnames[] = {
1963 NULL
1964 };
1965
1966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1967 {
1968 PyThreadState* __tstate = wxPyBeginAllowThreads();
1969 result = (long)wxGetCurrentId();
1970
1971 wxPyEndAllowThreads(__tstate);
1972 if (PyErr_Occurred()) SWIG_fail;
1973 }
1974 resultobj = SWIG_FromLong((long)result);
1975 return resultobj;
1976 fail:
1977 return NULL;
1978 }
1979
1980
1981 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1982 PyObject *resultobj;
1983 char *kwnames[] = {
1984 NULL
1985 };
1986
1987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1988 {
1989 PyThreadState* __tstate = wxPyBeginAllowThreads();
1990 wxBell();
1991
1992 wxPyEndAllowThreads(__tstate);
1993 if (PyErr_Occurred()) SWIG_fail;
1994 }
1995 Py_INCREF(Py_None); resultobj = Py_None;
1996 return resultobj;
1997 fail:
1998 return NULL;
1999 }
2000
2001
2002 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject *resultobj;
2004 char *kwnames[] = {
2005 NULL
2006 };
2007
2008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2009 {
2010 PyThreadState* __tstate = wxPyBeginAllowThreads();
2011 wxEndBusyCursor();
2012
2013 wxPyEndAllowThreads(__tstate);
2014 if (PyErr_Occurred()) SWIG_fail;
2015 }
2016 Py_INCREF(Py_None); resultobj = Py_None;
2017 return resultobj;
2018 fail:
2019 return NULL;
2020 }
2021
2022
2023 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2024 PyObject *resultobj;
2025 bool arg1 = (bool) True ;
2026 long result;
2027 PyObject * obj0 = 0 ;
2028 char *kwnames[] = {
2029 (char *) "resetTimer", NULL
2030 };
2031
2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2033 if (obj0) {
2034 arg1 = (bool) SWIG_AsBool(obj0);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 {
2038 PyThreadState* __tstate = wxPyBeginAllowThreads();
2039 result = (long)wxGetElapsedTime(arg1);
2040
2041 wxPyEndAllowThreads(__tstate);
2042 if (PyErr_Occurred()) SWIG_fail;
2043 }
2044 resultobj = SWIG_FromLong((long)result);
2045 return resultobj;
2046 fail:
2047 return NULL;
2048 }
2049
2050
2051 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2052 PyObject *resultobj;
2053 int *arg1 = (int *) 0 ;
2054 int *arg2 = (int *) 0 ;
2055 int temp1 ;
2056 int temp2 ;
2057 char *kwnames[] = {
2058 NULL
2059 };
2060
2061 arg1 = &temp1;
2062 arg2 = &temp2;
2063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2064 {
2065 PyThreadState* __tstate = wxPyBeginAllowThreads();
2066 wxGetMousePosition(arg1,arg2);
2067
2068 wxPyEndAllowThreads(__tstate);
2069 if (PyErr_Occurred()) SWIG_fail;
2070 }
2071 Py_INCREF(Py_None); resultobj = Py_None;
2072 {
2073 PyObject *o = PyInt_FromLong((long) (*arg1));
2074 resultobj = t_output_helper(resultobj,o);
2075 }
2076 {
2077 PyObject *o = PyInt_FromLong((long) (*arg2));
2078 resultobj = t_output_helper(resultobj,o);
2079 }
2080 return resultobj;
2081 fail:
2082 return NULL;
2083 }
2084
2085
2086 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2087 PyObject *resultobj;
2088 bool result;
2089 char *kwnames[] = {
2090 NULL
2091 };
2092
2093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2094 {
2095 PyThreadState* __tstate = wxPyBeginAllowThreads();
2096 result = (bool)wxIsBusy();
2097
2098 wxPyEndAllowThreads(__tstate);
2099 if (PyErr_Occurred()) SWIG_fail;
2100 }
2101 {
2102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2103 }
2104 return resultobj;
2105 fail:
2106 return NULL;
2107 }
2108
2109
2110 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2111 PyObject *resultobj;
2112 wxString result;
2113 char *kwnames[] = {
2114 NULL
2115 };
2116
2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 result = wxNow();
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 {
2126 #if wxUSE_UNICODE
2127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2128 #else
2129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2130 #endif
2131 }
2132 return resultobj;
2133 fail:
2134 return NULL;
2135 }
2136
2137
2138 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2139 PyObject *resultobj;
2140 wxString const &arg1_defvalue = wxPyEmptyString ;
2141 wxString *arg1 = (wxString *) &arg1_defvalue ;
2142 bool result;
2143 bool temp1 = False ;
2144 PyObject * obj0 = 0 ;
2145 char *kwnames[] = {
2146 (char *) "command", NULL
2147 };
2148
2149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2150 if (obj0) {
2151 {
2152 arg1 = wxString_in_helper(obj0);
2153 if (arg1 == NULL) SWIG_fail;
2154 temp1 = True;
2155 }
2156 }
2157 {
2158 PyThreadState* __tstate = wxPyBeginAllowThreads();
2159 result = (bool)wxShell((wxString const &)*arg1);
2160
2161 wxPyEndAllowThreads(__tstate);
2162 if (PyErr_Occurred()) SWIG_fail;
2163 }
2164 {
2165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2166 }
2167 {
2168 if (temp1)
2169 delete arg1;
2170 }
2171 return resultobj;
2172 fail:
2173 {
2174 if (temp1)
2175 delete arg1;
2176 }
2177 return NULL;
2178 }
2179
2180
2181 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2182 PyObject *resultobj;
2183 char *kwnames[] = {
2184 NULL
2185 };
2186
2187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2188 {
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
2190 wxStartTimer();
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
2195 Py_INCREF(Py_None); resultobj = Py_None;
2196 return resultobj;
2197 fail:
2198 return NULL;
2199 }
2200
2201
2202 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 int *arg1 = (int *) 0 ;
2205 int *arg2 = (int *) 0 ;
2206 int result;
2207 int temp1 ;
2208 int temp2 ;
2209 char *kwnames[] = {
2210 NULL
2211 };
2212
2213 arg1 = &temp1;
2214 arg2 = &temp2;
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 result = (int)wxGetOsVersion(arg1,arg2);
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 resultobj = SWIG_FromInt((int)result);
2224 {
2225 PyObject *o = PyInt_FromLong((long) (*arg1));
2226 resultobj = t_output_helper(resultobj,o);
2227 }
2228 {
2229 PyObject *o = PyInt_FromLong((long) (*arg2));
2230 resultobj = t_output_helper(resultobj,o);
2231 }
2232 return resultobj;
2233 fail:
2234 return NULL;
2235 }
2236
2237
2238 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2239 PyObject *resultobj;
2240 wxString result;
2241 char *kwnames[] = {
2242 NULL
2243 };
2244
2245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2246 {
2247 PyThreadState* __tstate = wxPyBeginAllowThreads();
2248 result = wxGetOsDescription();
2249
2250 wxPyEndAllowThreads(__tstate);
2251 if (PyErr_Occurred()) SWIG_fail;
2252 }
2253 {
2254 #if wxUSE_UNICODE
2255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2256 #else
2257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2258 #endif
2259 }
2260 return resultobj;
2261 fail:
2262 return NULL;
2263 }
2264
2265
2266 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2267 PyObject *resultobj;
2268 long result;
2269 char *kwnames[] = {
2270 NULL
2271 };
2272
2273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2274 {
2275 PyThreadState* __tstate = wxPyBeginAllowThreads();
2276 result = (long)wxGetFreeMemory();
2277
2278 wxPyEndAllowThreads(__tstate);
2279 if (PyErr_Occurred()) SWIG_fail;
2280 }
2281 resultobj = SWIG_FromLong((long)result);
2282 return resultobj;
2283 fail:
2284 return NULL;
2285 }
2286
2287
2288 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2289 PyObject *resultobj;
2290 int arg1 ;
2291 bool result;
2292 PyObject * obj0 = 0 ;
2293 char *kwnames[] = {
2294 (char *) "wFlags", NULL
2295 };
2296
2297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2298 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2299 if (PyErr_Occurred()) SWIG_fail;
2300 {
2301 PyThreadState* __tstate = wxPyBeginAllowThreads();
2302 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2303
2304 wxPyEndAllowThreads(__tstate);
2305 if (PyErr_Occurred()) SWIG_fail;
2306 }
2307 {
2308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2309 }
2310 return resultobj;
2311 fail:
2312 return NULL;
2313 }
2314
2315
2316 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2317 PyObject *resultobj;
2318 int arg1 ;
2319 PyObject * obj0 = 0 ;
2320 char *kwnames[] = {
2321 (char *) "secs", NULL
2322 };
2323
2324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2325 arg1 = (int) SWIG_AsInt(obj0);
2326 if (PyErr_Occurred()) SWIG_fail;
2327 {
2328 PyThreadState* __tstate = wxPyBeginAllowThreads();
2329 wxSleep(arg1);
2330
2331 wxPyEndAllowThreads(__tstate);
2332 if (PyErr_Occurred()) SWIG_fail;
2333 }
2334 Py_INCREF(Py_None); resultobj = Py_None;
2335 return resultobj;
2336 fail:
2337 return NULL;
2338 }
2339
2340
2341 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2342 PyObject *resultobj;
2343 unsigned long arg1 ;
2344 PyObject * obj0 = 0 ;
2345 char *kwnames[] = {
2346 (char *) "milliseconds", NULL
2347 };
2348
2349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2350 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 {
2353 PyThreadState* __tstate = wxPyBeginAllowThreads();
2354 wxUsleep(arg1);
2355
2356 wxPyEndAllowThreads(__tstate);
2357 if (PyErr_Occurred()) SWIG_fail;
2358 }
2359 Py_INCREF(Py_None); resultobj = Py_None;
2360 return resultobj;
2361 fail:
2362 return NULL;
2363 }
2364
2365
2366 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2367 PyObject *resultobj;
2368 bool arg1 ;
2369 PyObject * obj0 = 0 ;
2370 char *kwnames[] = {
2371 (char *) "enable", NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2375 arg1 = (bool) SWIG_AsBool(obj0);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 {
2378 PyThreadState* __tstate = wxPyBeginAllowThreads();
2379 wxEnableTopLevelWindows(arg1);
2380
2381 wxPyEndAllowThreads(__tstate);
2382 if (PyErr_Occurred()) SWIG_fail;
2383 }
2384 Py_INCREF(Py_None); resultobj = Py_None;
2385 return resultobj;
2386 fail:
2387 return NULL;
2388 }
2389
2390
2391 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject *resultobj;
2393 wxString *arg1 = 0 ;
2394 wxString result;
2395 bool temp1 = False ;
2396 PyObject * obj0 = 0 ;
2397 char *kwnames[] = {
2398 (char *) "in", NULL
2399 };
2400
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2402 {
2403 arg1 = wxString_in_helper(obj0);
2404 if (arg1 == NULL) SWIG_fail;
2405 temp1 = True;
2406 }
2407 {
2408 PyThreadState* __tstate = wxPyBeginAllowThreads();
2409 result = wxStripMenuCodes((wxString const &)*arg1);
2410
2411 wxPyEndAllowThreads(__tstate);
2412 if (PyErr_Occurred()) SWIG_fail;
2413 }
2414 {
2415 #if wxUSE_UNICODE
2416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2417 #else
2418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2419 #endif
2420 }
2421 {
2422 if (temp1)
2423 delete arg1;
2424 }
2425 return resultobj;
2426 fail:
2427 {
2428 if (temp1)
2429 delete arg1;
2430 }
2431 return NULL;
2432 }
2433
2434
2435 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2436 PyObject *resultobj;
2437 wxString result;
2438 char *kwnames[] = {
2439 NULL
2440 };
2441
2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2443 {
2444 PyThreadState* __tstate = wxPyBeginAllowThreads();
2445 result = wxGetEmailAddress();
2446
2447 wxPyEndAllowThreads(__tstate);
2448 if (PyErr_Occurred()) SWIG_fail;
2449 }
2450 {
2451 #if wxUSE_UNICODE
2452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2453 #else
2454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2455 #endif
2456 }
2457 return resultobj;
2458 fail:
2459 return NULL;
2460 }
2461
2462
2463 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2464 PyObject *resultobj;
2465 wxString result;
2466 char *kwnames[] = {
2467 NULL
2468 };
2469
2470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2471 {
2472 PyThreadState* __tstate = wxPyBeginAllowThreads();
2473 result = wxGetHostName();
2474
2475 wxPyEndAllowThreads(__tstate);
2476 if (PyErr_Occurred()) SWIG_fail;
2477 }
2478 {
2479 #if wxUSE_UNICODE
2480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2481 #else
2482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2483 #endif
2484 }
2485 return resultobj;
2486 fail:
2487 return NULL;
2488 }
2489
2490
2491 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2492 PyObject *resultobj;
2493 wxString result;
2494 char *kwnames[] = {
2495 NULL
2496 };
2497
2498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2499 {
2500 PyThreadState* __tstate = wxPyBeginAllowThreads();
2501 result = wxGetFullHostName();
2502
2503 wxPyEndAllowThreads(__tstate);
2504 if (PyErr_Occurred()) SWIG_fail;
2505 }
2506 {
2507 #if wxUSE_UNICODE
2508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2509 #else
2510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2511 #endif
2512 }
2513 return resultobj;
2514 fail:
2515 return NULL;
2516 }
2517
2518
2519 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2520 PyObject *resultobj;
2521 wxString result;
2522 char *kwnames[] = {
2523 NULL
2524 };
2525
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2527 {
2528 PyThreadState* __tstate = wxPyBeginAllowThreads();
2529 result = wxGetUserId();
2530
2531 wxPyEndAllowThreads(__tstate);
2532 if (PyErr_Occurred()) SWIG_fail;
2533 }
2534 {
2535 #if wxUSE_UNICODE
2536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2537 #else
2538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2539 #endif
2540 }
2541 return resultobj;
2542 fail:
2543 return NULL;
2544 }
2545
2546
2547 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2548 PyObject *resultobj;
2549 wxString result;
2550 char *kwnames[] = {
2551 NULL
2552 };
2553
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2555 {
2556 PyThreadState* __tstate = wxPyBeginAllowThreads();
2557 result = wxGetUserName();
2558
2559 wxPyEndAllowThreads(__tstate);
2560 if (PyErr_Occurred()) SWIG_fail;
2561 }
2562 {
2563 #if wxUSE_UNICODE
2564 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2565 #else
2566 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2567 #endif
2568 }
2569 return resultobj;
2570 fail:
2571 return NULL;
2572 }
2573
2574
2575 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2576 PyObject *resultobj;
2577 wxString result;
2578 char *kwnames[] = {
2579 NULL
2580 };
2581
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2583 {
2584 PyThreadState* __tstate = wxPyBeginAllowThreads();
2585 result = wxGetHomeDir();
2586
2587 wxPyEndAllowThreads(__tstate);
2588 if (PyErr_Occurred()) SWIG_fail;
2589 }
2590 {
2591 #if wxUSE_UNICODE
2592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2593 #else
2594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2595 #endif
2596 }
2597 return resultobj;
2598 fail:
2599 return NULL;
2600 }
2601
2602
2603 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2604 PyObject *resultobj;
2605 wxString const &arg1_defvalue = wxPyEmptyString ;
2606 wxString *arg1 = (wxString *) &arg1_defvalue ;
2607 wxString result;
2608 bool temp1 = False ;
2609 PyObject * obj0 = 0 ;
2610 char *kwnames[] = {
2611 (char *) "user", NULL
2612 };
2613
2614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2615 if (obj0) {
2616 {
2617 arg1 = wxString_in_helper(obj0);
2618 if (arg1 == NULL) SWIG_fail;
2619 temp1 = True;
2620 }
2621 }
2622 {
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 result = wxGetUserHome((wxString const &)*arg1);
2625
2626 wxPyEndAllowThreads(__tstate);
2627 if (PyErr_Occurred()) SWIG_fail;
2628 }
2629 {
2630 #if wxUSE_UNICODE
2631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2632 #else
2633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2634 #endif
2635 }
2636 {
2637 if (temp1)
2638 delete arg1;
2639 }
2640 return resultobj;
2641 fail:
2642 {
2643 if (temp1)
2644 delete arg1;
2645 }
2646 return NULL;
2647 }
2648
2649
2650 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2651 PyObject *resultobj;
2652 unsigned long result;
2653 char *kwnames[] = {
2654 NULL
2655 };
2656
2657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (unsigned long)wxGetProcessId();
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2666 return resultobj;
2667 fail:
2668 return NULL;
2669 }
2670
2671
2672 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject *resultobj;
2674 char *kwnames[] = {
2675 NULL
2676 };
2677
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2679 {
2680 PyThreadState* __tstate = wxPyBeginAllowThreads();
2681 wxTrap();
2682
2683 wxPyEndAllowThreads(__tstate);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 }
2686 Py_INCREF(Py_None); resultobj = Py_None;
2687 return resultobj;
2688 fail:
2689 return NULL;
2690 }
2691
2692
2693 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2694 PyObject *resultobj;
2695 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2696 wxString *arg1 = (wxString *) &arg1_defvalue ;
2697 wxString const &arg2_defvalue = wxPyEmptyString ;
2698 wxString *arg2 = (wxString *) &arg2_defvalue ;
2699 wxString const &arg3_defvalue = wxPyEmptyString ;
2700 wxString *arg3 = (wxString *) &arg3_defvalue ;
2701 wxString const &arg4_defvalue = wxPyEmptyString ;
2702 wxString *arg4 = (wxString *) &arg4_defvalue ;
2703 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2704 wxString *arg5 = (wxString *) &arg5_defvalue ;
2705 int arg6 = (int) 0 ;
2706 wxWindow *arg7 = (wxWindow *) NULL ;
2707 int arg8 = (int) -1 ;
2708 int arg9 = (int) -1 ;
2709 wxString result;
2710 bool temp1 = False ;
2711 bool temp2 = False ;
2712 bool temp3 = False ;
2713 bool temp4 = False ;
2714 bool temp5 = False ;
2715 PyObject * obj0 = 0 ;
2716 PyObject * obj1 = 0 ;
2717 PyObject * obj2 = 0 ;
2718 PyObject * obj3 = 0 ;
2719 PyObject * obj4 = 0 ;
2720 PyObject * obj5 = 0 ;
2721 PyObject * obj6 = 0 ;
2722 PyObject * obj7 = 0 ;
2723 PyObject * obj8 = 0 ;
2724 char *kwnames[] = {
2725 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2726 };
2727
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2729 if (obj0) {
2730 {
2731 arg1 = wxString_in_helper(obj0);
2732 if (arg1 == NULL) SWIG_fail;
2733 temp1 = True;
2734 }
2735 }
2736 if (obj1) {
2737 {
2738 arg2 = wxString_in_helper(obj1);
2739 if (arg2 == NULL) SWIG_fail;
2740 temp2 = True;
2741 }
2742 }
2743 if (obj2) {
2744 {
2745 arg3 = wxString_in_helper(obj2);
2746 if (arg3 == NULL) SWIG_fail;
2747 temp3 = True;
2748 }
2749 }
2750 if (obj3) {
2751 {
2752 arg4 = wxString_in_helper(obj3);
2753 if (arg4 == NULL) SWIG_fail;
2754 temp4 = True;
2755 }
2756 }
2757 if (obj4) {
2758 {
2759 arg5 = wxString_in_helper(obj4);
2760 if (arg5 == NULL) SWIG_fail;
2761 temp5 = True;
2762 }
2763 }
2764 if (obj5) {
2765 arg6 = (int) SWIG_AsInt(obj5);
2766 if (PyErr_Occurred()) SWIG_fail;
2767 }
2768 if (obj6) {
2769 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2771 }
2772 if (obj7) {
2773 arg8 = (int) SWIG_AsInt(obj7);
2774 if (PyErr_Occurred()) SWIG_fail;
2775 }
2776 if (obj8) {
2777 arg9 = (int) SWIG_AsInt(obj8);
2778 if (PyErr_Occurred()) SWIG_fail;
2779 }
2780 {
2781 PyThreadState* __tstate = wxPyBeginAllowThreads();
2782 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2783
2784 wxPyEndAllowThreads(__tstate);
2785 if (PyErr_Occurred()) SWIG_fail;
2786 }
2787 {
2788 #if wxUSE_UNICODE
2789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2790 #else
2791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2792 #endif
2793 }
2794 {
2795 if (temp1)
2796 delete arg1;
2797 }
2798 {
2799 if (temp2)
2800 delete arg2;
2801 }
2802 {
2803 if (temp3)
2804 delete arg3;
2805 }
2806 {
2807 if (temp4)
2808 delete arg4;
2809 }
2810 {
2811 if (temp5)
2812 delete arg5;
2813 }
2814 return resultobj;
2815 fail:
2816 {
2817 if (temp1)
2818 delete arg1;
2819 }
2820 {
2821 if (temp2)
2822 delete arg2;
2823 }
2824 {
2825 if (temp3)
2826 delete arg3;
2827 }
2828 {
2829 if (temp4)
2830 delete arg4;
2831 }
2832 {
2833 if (temp5)
2834 delete arg5;
2835 }
2836 return NULL;
2837 }
2838
2839
2840 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2841 PyObject *resultobj;
2842 wxString *arg1 = 0 ;
2843 wxString *arg2 = 0 ;
2844 wxString const &arg3_defvalue = wxPyEmptyString ;
2845 wxString *arg3 = (wxString *) &arg3_defvalue ;
2846 wxWindow *arg4 = (wxWindow *) NULL ;
2847 wxString result;
2848 bool temp1 = False ;
2849 bool temp2 = False ;
2850 bool temp3 = False ;
2851 PyObject * obj0 = 0 ;
2852 PyObject * obj1 = 0 ;
2853 PyObject * obj2 = 0 ;
2854 PyObject * obj3 = 0 ;
2855 char *kwnames[] = {
2856 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2857 };
2858
2859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2860 {
2861 arg1 = wxString_in_helper(obj0);
2862 if (arg1 == NULL) SWIG_fail;
2863 temp1 = True;
2864 }
2865 {
2866 arg2 = wxString_in_helper(obj1);
2867 if (arg2 == NULL) SWIG_fail;
2868 temp2 = True;
2869 }
2870 if (obj2) {
2871 {
2872 arg3 = wxString_in_helper(obj2);
2873 if (arg3 == NULL) SWIG_fail;
2874 temp3 = True;
2875 }
2876 }
2877 if (obj3) {
2878 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2880 }
2881 {
2882 PyThreadState* __tstate = wxPyBeginAllowThreads();
2883 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2884
2885 wxPyEndAllowThreads(__tstate);
2886 if (PyErr_Occurred()) SWIG_fail;
2887 }
2888 {
2889 #if wxUSE_UNICODE
2890 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2891 #else
2892 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2893 #endif
2894 }
2895 {
2896 if (temp1)
2897 delete arg1;
2898 }
2899 {
2900 if (temp2)
2901 delete arg2;
2902 }
2903 {
2904 if (temp3)
2905 delete arg3;
2906 }
2907 return resultobj;
2908 fail:
2909 {
2910 if (temp1)
2911 delete arg1;
2912 }
2913 {
2914 if (temp2)
2915 delete arg2;
2916 }
2917 {
2918 if (temp3)
2919 delete arg3;
2920 }
2921 return NULL;
2922 }
2923
2924
2925 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2926 PyObject *resultobj;
2927 wxString *arg1 = 0 ;
2928 wxString *arg2 = 0 ;
2929 wxString const &arg3_defvalue = wxPyEmptyString ;
2930 wxString *arg3 = (wxString *) &arg3_defvalue ;
2931 wxWindow *arg4 = (wxWindow *) NULL ;
2932 wxString result;
2933 bool temp1 = False ;
2934 bool temp2 = False ;
2935 bool temp3 = False ;
2936 PyObject * obj0 = 0 ;
2937 PyObject * obj1 = 0 ;
2938 PyObject * obj2 = 0 ;
2939 PyObject * obj3 = 0 ;
2940 char *kwnames[] = {
2941 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2942 };
2943
2944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2945 {
2946 arg1 = wxString_in_helper(obj0);
2947 if (arg1 == NULL) SWIG_fail;
2948 temp1 = True;
2949 }
2950 {
2951 arg2 = wxString_in_helper(obj1);
2952 if (arg2 == NULL) SWIG_fail;
2953 temp2 = True;
2954 }
2955 if (obj2) {
2956 {
2957 arg3 = wxString_in_helper(obj2);
2958 if (arg3 == NULL) SWIG_fail;
2959 temp3 = True;
2960 }
2961 }
2962 if (obj3) {
2963 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2965 }
2966 {
2967 PyThreadState* __tstate = wxPyBeginAllowThreads();
2968 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2969
2970 wxPyEndAllowThreads(__tstate);
2971 if (PyErr_Occurred()) SWIG_fail;
2972 }
2973 {
2974 #if wxUSE_UNICODE
2975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2976 #else
2977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2978 #endif
2979 }
2980 {
2981 if (temp1)
2982 delete arg1;
2983 }
2984 {
2985 if (temp2)
2986 delete arg2;
2987 }
2988 {
2989 if (temp3)
2990 delete arg3;
2991 }
2992 return resultobj;
2993 fail:
2994 {
2995 if (temp1)
2996 delete arg1;
2997 }
2998 {
2999 if (temp2)
3000 delete arg2;
3001 }
3002 {
3003 if (temp3)
3004 delete arg3;
3005 }
3006 return NULL;
3007 }
3008
3009
3010 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3011 PyObject *resultobj;
3012 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3013 wxString *arg1 = (wxString *) &arg1_defvalue ;
3014 wxString const &arg2_defvalue = wxPyEmptyString ;
3015 wxString *arg2 = (wxString *) &arg2_defvalue ;
3016 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3017 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3018 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3019 wxWindow *arg5 = (wxWindow *) NULL ;
3020 wxString result;
3021 bool temp1 = False ;
3022 bool temp2 = False ;
3023 wxPoint temp4 ;
3024 PyObject * obj0 = 0 ;
3025 PyObject * obj1 = 0 ;
3026 PyObject * obj2 = 0 ;
3027 PyObject * obj3 = 0 ;
3028 PyObject * obj4 = 0 ;
3029 char *kwnames[] = {
3030 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3031 };
3032
3033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3034 if (obj0) {
3035 {
3036 arg1 = wxString_in_helper(obj0);
3037 if (arg1 == NULL) SWIG_fail;
3038 temp1 = True;
3039 }
3040 }
3041 if (obj1) {
3042 {
3043 arg2 = wxString_in_helper(obj1);
3044 if (arg2 == NULL) SWIG_fail;
3045 temp2 = True;
3046 }
3047 }
3048 if (obj2) {
3049 arg3 = (long) SWIG_AsLong(obj2);
3050 if (PyErr_Occurred()) SWIG_fail;
3051 }
3052 if (obj3) {
3053 {
3054 arg4 = &temp4;
3055 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3056 }
3057 }
3058 if (obj4) {
3059 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3061 }
3062 {
3063 PyThreadState* __tstate = wxPyBeginAllowThreads();
3064 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3065
3066 wxPyEndAllowThreads(__tstate);
3067 if (PyErr_Occurred()) SWIG_fail;
3068 }
3069 {
3070 #if wxUSE_UNICODE
3071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3072 #else
3073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3074 #endif
3075 }
3076 {
3077 if (temp1)
3078 delete arg1;
3079 }
3080 {
3081 if (temp2)
3082 delete arg2;
3083 }
3084 return resultobj;
3085 fail:
3086 {
3087 if (temp1)
3088 delete arg1;
3089 }
3090 {
3091 if (temp2)
3092 delete arg2;
3093 }
3094 return NULL;
3095 }
3096
3097
3098 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3099 PyObject *resultobj;
3100 wxString *arg1 = 0 ;
3101 wxString const &arg2_defvalue = wxPyEmptyString ;
3102 wxString *arg2 = (wxString *) &arg2_defvalue ;
3103 wxString const &arg3_defvalue = wxPyEmptyString ;
3104 wxString *arg3 = (wxString *) &arg3_defvalue ;
3105 wxWindow *arg4 = (wxWindow *) NULL ;
3106 int arg5 = (int) -1 ;
3107 int arg6 = (int) -1 ;
3108 bool arg7 = (bool) True ;
3109 wxString result;
3110 bool temp1 = False ;
3111 bool temp2 = False ;
3112 bool temp3 = False ;
3113 PyObject * obj0 = 0 ;
3114 PyObject * obj1 = 0 ;
3115 PyObject * obj2 = 0 ;
3116 PyObject * obj3 = 0 ;
3117 PyObject * obj4 = 0 ;
3118 PyObject * obj5 = 0 ;
3119 PyObject * obj6 = 0 ;
3120 char *kwnames[] = {
3121 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3122 };
3123
3124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3125 {
3126 arg1 = wxString_in_helper(obj0);
3127 if (arg1 == NULL) SWIG_fail;
3128 temp1 = True;
3129 }
3130 if (obj1) {
3131 {
3132 arg2 = wxString_in_helper(obj1);
3133 if (arg2 == NULL) SWIG_fail;
3134 temp2 = True;
3135 }
3136 }
3137 if (obj2) {
3138 {
3139 arg3 = wxString_in_helper(obj2);
3140 if (arg3 == NULL) SWIG_fail;
3141 temp3 = True;
3142 }
3143 }
3144 if (obj3) {
3145 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3147 }
3148 if (obj4) {
3149 arg5 = (int) SWIG_AsInt(obj4);
3150 if (PyErr_Occurred()) SWIG_fail;
3151 }
3152 if (obj5) {
3153 arg6 = (int) SWIG_AsInt(obj5);
3154 if (PyErr_Occurred()) SWIG_fail;
3155 }
3156 if (obj6) {
3157 arg7 = (bool) SWIG_AsBool(obj6);
3158 if (PyErr_Occurred()) SWIG_fail;
3159 }
3160 {
3161 PyThreadState* __tstate = wxPyBeginAllowThreads();
3162 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3163
3164 wxPyEndAllowThreads(__tstate);
3165 if (PyErr_Occurred()) SWIG_fail;
3166 }
3167 {
3168 #if wxUSE_UNICODE
3169 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3170 #else
3171 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3172 #endif
3173 }
3174 {
3175 if (temp1)
3176 delete arg1;
3177 }
3178 {
3179 if (temp2)
3180 delete arg2;
3181 }
3182 {
3183 if (temp3)
3184 delete arg3;
3185 }
3186 return resultobj;
3187 fail:
3188 {
3189 if (temp1)
3190 delete arg1;
3191 }
3192 {
3193 if (temp2)
3194 delete arg2;
3195 }
3196 {
3197 if (temp3)
3198 delete arg3;
3199 }
3200 return NULL;
3201 }
3202
3203
3204 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj;
3206 wxString *arg1 = 0 ;
3207 wxString const &arg2_defvalue = wxPyEmptyString ;
3208 wxString *arg2 = (wxString *) &arg2_defvalue ;
3209 wxString const &arg3_defvalue = wxPyEmptyString ;
3210 wxString *arg3 = (wxString *) &arg3_defvalue ;
3211 wxWindow *arg4 = (wxWindow *) NULL ;
3212 wxString result;
3213 bool temp1 = False ;
3214 bool temp2 = False ;
3215 bool temp3 = False ;
3216 PyObject * obj0 = 0 ;
3217 PyObject * obj1 = 0 ;
3218 PyObject * obj2 = 0 ;
3219 PyObject * obj3 = 0 ;
3220 char *kwnames[] = {
3221 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3222 };
3223
3224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3225 {
3226 arg1 = wxString_in_helper(obj0);
3227 if (arg1 == NULL) SWIG_fail;
3228 temp1 = True;
3229 }
3230 if (obj1) {
3231 {
3232 arg2 = wxString_in_helper(obj1);
3233 if (arg2 == NULL) SWIG_fail;
3234 temp2 = True;
3235 }
3236 }
3237 if (obj2) {
3238 {
3239 arg3 = wxString_in_helper(obj2);
3240 if (arg3 == NULL) SWIG_fail;
3241 temp3 = True;
3242 }
3243 }
3244 if (obj3) {
3245 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3247 }
3248 {
3249 PyThreadState* __tstate = wxPyBeginAllowThreads();
3250 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3251
3252 wxPyEndAllowThreads(__tstate);
3253 if (PyErr_Occurred()) SWIG_fail;
3254 }
3255 {
3256 #if wxUSE_UNICODE
3257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3258 #else
3259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3260 #endif
3261 }
3262 {
3263 if (temp1)
3264 delete arg1;
3265 }
3266 {
3267 if (temp2)
3268 delete arg2;
3269 }
3270 {
3271 if (temp3)
3272 delete arg3;
3273 }
3274 return resultobj;
3275 fail:
3276 {
3277 if (temp1)
3278 delete arg1;
3279 }
3280 {
3281 if (temp2)
3282 delete arg2;
3283 }
3284 {
3285 if (temp3)
3286 delete arg3;
3287 }
3288 return NULL;
3289 }
3290
3291
3292 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3293 PyObject *resultobj;
3294 wxString *arg1 = 0 ;
3295 wxString *arg2 = 0 ;
3296 int arg3 ;
3297 wxString *arg4 = (wxString *) 0 ;
3298 wxWindow *arg5 = (wxWindow *) NULL ;
3299 int arg6 = (int) -1 ;
3300 int arg7 = (int) -1 ;
3301 bool arg8 = (bool) True ;
3302 int arg9 = (int) 150 ;
3303 int arg10 = (int) 200 ;
3304 wxString result;
3305 bool temp1 = False ;
3306 bool temp2 = False ;
3307 PyObject * obj0 = 0 ;
3308 PyObject * obj1 = 0 ;
3309 PyObject * obj2 = 0 ;
3310 PyObject * obj3 = 0 ;
3311 PyObject * obj4 = 0 ;
3312 PyObject * obj5 = 0 ;
3313 PyObject * obj6 = 0 ;
3314 PyObject * obj7 = 0 ;
3315 PyObject * obj8 = 0 ;
3316 char *kwnames[] = {
3317 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3318 };
3319
3320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3321 {
3322 arg1 = wxString_in_helper(obj0);
3323 if (arg1 == NULL) SWIG_fail;
3324 temp1 = True;
3325 }
3326 {
3327 arg2 = wxString_in_helper(obj1);
3328 if (arg2 == NULL) SWIG_fail;
3329 temp2 = True;
3330 }
3331 {
3332 arg3 = PyList_Size(obj2);
3333 arg4 = wxString_LIST_helper(obj2);
3334 if (arg4 == NULL) SWIG_fail;
3335 }
3336 if (obj3) {
3337 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3339 }
3340 if (obj4) {
3341 arg6 = (int) SWIG_AsInt(obj4);
3342 if (PyErr_Occurred()) SWIG_fail;
3343 }
3344 if (obj5) {
3345 arg7 = (int) SWIG_AsInt(obj5);
3346 if (PyErr_Occurred()) SWIG_fail;
3347 }
3348 if (obj6) {
3349 arg8 = (bool) SWIG_AsBool(obj6);
3350 if (PyErr_Occurred()) SWIG_fail;
3351 }
3352 if (obj7) {
3353 arg9 = (int) SWIG_AsInt(obj7);
3354 if (PyErr_Occurred()) SWIG_fail;
3355 }
3356 if (obj8) {
3357 arg10 = (int) SWIG_AsInt(obj8);
3358 if (PyErr_Occurred()) SWIG_fail;
3359 }
3360 {
3361 PyThreadState* __tstate = wxPyBeginAllowThreads();
3362 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3363
3364 wxPyEndAllowThreads(__tstate);
3365 if (PyErr_Occurred()) SWIG_fail;
3366 }
3367 {
3368 #if wxUSE_UNICODE
3369 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3370 #else
3371 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3372 #endif
3373 }
3374 {
3375 if (temp1)
3376 delete arg1;
3377 }
3378 {
3379 if (temp2)
3380 delete arg2;
3381 }
3382 {
3383 if (arg4) delete [] arg4;
3384 }
3385 return resultobj;
3386 fail:
3387 {
3388 if (temp1)
3389 delete arg1;
3390 }
3391 {
3392 if (temp2)
3393 delete arg2;
3394 }
3395 {
3396 if (arg4) delete [] arg4;
3397 }
3398 return NULL;
3399 }
3400
3401
3402 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3403 PyObject *resultobj;
3404 wxString *arg1 = 0 ;
3405 wxString *arg2 = 0 ;
3406 int arg3 ;
3407 wxString *arg4 = (wxString *) 0 ;
3408 wxWindow *arg5 = (wxWindow *) NULL ;
3409 int arg6 = (int) -1 ;
3410 int arg7 = (int) -1 ;
3411 bool arg8 = (bool) True ;
3412 int arg9 = (int) 150 ;
3413 int arg10 = (int) 200 ;
3414 int result;
3415 bool temp1 = False ;
3416 bool temp2 = False ;
3417 PyObject * obj0 = 0 ;
3418 PyObject * obj1 = 0 ;
3419 PyObject * obj2 = 0 ;
3420 PyObject * obj3 = 0 ;
3421 PyObject * obj4 = 0 ;
3422 PyObject * obj5 = 0 ;
3423 PyObject * obj6 = 0 ;
3424 PyObject * obj7 = 0 ;
3425 PyObject * obj8 = 0 ;
3426 char *kwnames[] = {
3427 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3428 };
3429
3430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3431 {
3432 arg1 = wxString_in_helper(obj0);
3433 if (arg1 == NULL) SWIG_fail;
3434 temp1 = True;
3435 }
3436 {
3437 arg2 = wxString_in_helper(obj1);
3438 if (arg2 == NULL) SWIG_fail;
3439 temp2 = True;
3440 }
3441 {
3442 arg3 = PyList_Size(obj2);
3443 arg4 = wxString_LIST_helper(obj2);
3444 if (arg4 == NULL) SWIG_fail;
3445 }
3446 if (obj3) {
3447 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3449 }
3450 if (obj4) {
3451 arg6 = (int) SWIG_AsInt(obj4);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 if (obj5) {
3455 arg7 = (int) SWIG_AsInt(obj5);
3456 if (PyErr_Occurred()) SWIG_fail;
3457 }
3458 if (obj6) {
3459 arg8 = (bool) SWIG_AsBool(obj6);
3460 if (PyErr_Occurred()) SWIG_fail;
3461 }
3462 if (obj7) {
3463 arg9 = (int) SWIG_AsInt(obj7);
3464 if (PyErr_Occurred()) SWIG_fail;
3465 }
3466 if (obj8) {
3467 arg10 = (int) SWIG_AsInt(obj8);
3468 if (PyErr_Occurred()) SWIG_fail;
3469 }
3470 {
3471 PyThreadState* __tstate = wxPyBeginAllowThreads();
3472 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3473
3474 wxPyEndAllowThreads(__tstate);
3475 if (PyErr_Occurred()) SWIG_fail;
3476 }
3477 resultobj = SWIG_FromInt((int)result);
3478 {
3479 if (temp1)
3480 delete arg1;
3481 }
3482 {
3483 if (temp2)
3484 delete arg2;
3485 }
3486 {
3487 if (arg4) delete [] arg4;
3488 }
3489 return resultobj;
3490 fail:
3491 {
3492 if (temp1)
3493 delete arg1;
3494 }
3495 {
3496 if (temp2)
3497 delete arg2;
3498 }
3499 {
3500 if (arg4) delete [] arg4;
3501 }
3502 return NULL;
3503 }
3504
3505
3506 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3507 PyObject *resultobj;
3508 wxString *arg1 = 0 ;
3509 wxString const &arg2_defvalue = wxPyEmptyString ;
3510 wxString *arg2 = (wxString *) &arg2_defvalue ;
3511 int arg3 = (int) wxOK|wxCENTRE ;
3512 wxWindow *arg4 = (wxWindow *) NULL ;
3513 int arg5 = (int) -1 ;
3514 int arg6 = (int) -1 ;
3515 int result;
3516 bool temp1 = False ;
3517 bool temp2 = False ;
3518 PyObject * obj0 = 0 ;
3519 PyObject * obj1 = 0 ;
3520 PyObject * obj2 = 0 ;
3521 PyObject * obj3 = 0 ;
3522 PyObject * obj4 = 0 ;
3523 PyObject * obj5 = 0 ;
3524 char *kwnames[] = {
3525 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3529 {
3530 arg1 = wxString_in_helper(obj0);
3531 if (arg1 == NULL) SWIG_fail;
3532 temp1 = True;
3533 }
3534 if (obj1) {
3535 {
3536 arg2 = wxString_in_helper(obj1);
3537 if (arg2 == NULL) SWIG_fail;
3538 temp2 = True;
3539 }
3540 }
3541 if (obj2) {
3542 arg3 = (int) SWIG_AsInt(obj2);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 if (obj3) {
3546 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3548 }
3549 if (obj4) {
3550 arg5 = (int) SWIG_AsInt(obj4);
3551 if (PyErr_Occurred()) SWIG_fail;
3552 }
3553 if (obj5) {
3554 arg6 = (int) SWIG_AsInt(obj5);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3560
3561 wxPyEndAllowThreads(__tstate);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 }
3564 resultobj = SWIG_FromInt((int)result);
3565 {
3566 if (temp1)
3567 delete arg1;
3568 }
3569 {
3570 if (temp2)
3571 delete arg2;
3572 }
3573 return resultobj;
3574 fail:
3575 {
3576 if (temp1)
3577 delete arg1;
3578 }
3579 {
3580 if (temp2)
3581 delete arg2;
3582 }
3583 return NULL;
3584 }
3585
3586
3587 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3588 PyObject *resultobj;
3589 wxString *arg1 = 0 ;
3590 wxString *arg2 = 0 ;
3591 wxString *arg3 = 0 ;
3592 long arg4 ;
3593 long arg5 = (long) 0 ;
3594 long arg6 = (long) 100 ;
3595 wxWindow *arg7 = (wxWindow *) NULL ;
3596 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3597 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3598 long result;
3599 bool temp1 = False ;
3600 bool temp2 = False ;
3601 bool temp3 = False ;
3602 wxPoint temp8 ;
3603 PyObject * obj0 = 0 ;
3604 PyObject * obj1 = 0 ;
3605 PyObject * obj2 = 0 ;
3606 PyObject * obj3 = 0 ;
3607 PyObject * obj4 = 0 ;
3608 PyObject * obj5 = 0 ;
3609 PyObject * obj6 = 0 ;
3610 PyObject * obj7 = 0 ;
3611 char *kwnames[] = {
3612 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3613 };
3614
3615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3616 {
3617 arg1 = wxString_in_helper(obj0);
3618 if (arg1 == NULL) SWIG_fail;
3619 temp1 = True;
3620 }
3621 {
3622 arg2 = wxString_in_helper(obj1);
3623 if (arg2 == NULL) SWIG_fail;
3624 temp2 = True;
3625 }
3626 {
3627 arg3 = wxString_in_helper(obj2);
3628 if (arg3 == NULL) SWIG_fail;
3629 temp3 = True;
3630 }
3631 arg4 = (long) SWIG_AsLong(obj3);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 if (obj4) {
3634 arg5 = (long) SWIG_AsLong(obj4);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 if (obj5) {
3638 arg6 = (long) SWIG_AsLong(obj5);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 if (obj6) {
3642 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3644 }
3645 if (obj7) {
3646 {
3647 arg8 = &temp8;
3648 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3649 }
3650 }
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3654
3655 wxPyEndAllowThreads(__tstate);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 resultobj = SWIG_FromLong((long)result);
3659 {
3660 if (temp1)
3661 delete arg1;
3662 }
3663 {
3664 if (temp2)
3665 delete arg2;
3666 }
3667 {
3668 if (temp3)
3669 delete arg3;
3670 }
3671 return resultobj;
3672 fail:
3673 {
3674 if (temp1)
3675 delete arg1;
3676 }
3677 {
3678 if (temp2)
3679 delete arg2;
3680 }
3681 {
3682 if (temp3)
3683 delete arg3;
3684 }
3685 return NULL;
3686 }
3687
3688
3689 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3690 PyObject *resultobj;
3691 bool result;
3692 char *kwnames[] = {
3693 NULL
3694 };
3695
3696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3697 {
3698 PyThreadState* __tstate = wxPyBeginAllowThreads();
3699 result = (bool)wxColourDisplay();
3700
3701 wxPyEndAllowThreads(__tstate);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 {
3705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3706 }
3707 return resultobj;
3708 fail:
3709 return NULL;
3710 }
3711
3712
3713 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3714 PyObject *resultobj;
3715 int result;
3716 char *kwnames[] = {
3717 NULL
3718 };
3719
3720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3721 {
3722 PyThreadState* __tstate = wxPyBeginAllowThreads();
3723 result = (int)wxDisplayDepth();
3724
3725 wxPyEndAllowThreads(__tstate);
3726 if (PyErr_Occurred()) SWIG_fail;
3727 }
3728 resultobj = SWIG_FromInt((int)result);
3729 return resultobj;
3730 fail:
3731 return NULL;
3732 }
3733
3734
3735 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3736 PyObject *resultobj;
3737 int result;
3738 char *kwnames[] = {
3739 NULL
3740 };
3741
3742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3743 {
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 result = (int)wxGetDisplayDepth();
3746
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_FromInt((int)result);
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3758 PyObject *resultobj;
3759 int *arg1 = (int *) 0 ;
3760 int *arg2 = (int *) 0 ;
3761 int temp1 ;
3762 int temp2 ;
3763 char *kwnames[] = {
3764 NULL
3765 };
3766
3767 arg1 = &temp1;
3768 arg2 = &temp2;
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
3772 wxDisplaySize(arg1,arg2);
3773
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 Py_INCREF(Py_None); resultobj = Py_None;
3778 {
3779 PyObject *o = PyInt_FromLong((long) (*arg1));
3780 resultobj = t_output_helper(resultobj,o);
3781 }
3782 {
3783 PyObject *o = PyInt_FromLong((long) (*arg2));
3784 resultobj = t_output_helper(resultobj,o);
3785 }
3786 return resultobj;
3787 fail:
3788 return NULL;
3789 }
3790
3791
3792 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3793 PyObject *resultobj;
3794 wxSize result;
3795 char *kwnames[] = {
3796 NULL
3797 };
3798
3799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 result = wxGetDisplaySize();
3803
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 {
3808 wxSize * resultptr;
3809 resultptr = new wxSize((wxSize &) result);
3810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3811 }
3812 return resultobj;
3813 fail:
3814 return NULL;
3815 }
3816
3817
3818 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj;
3820 int *arg1 = (int *) 0 ;
3821 int *arg2 = (int *) 0 ;
3822 int temp1 ;
3823 int temp2 ;
3824 char *kwnames[] = {
3825 NULL
3826 };
3827
3828 arg1 = &temp1;
3829 arg2 = &temp2;
3830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3831 {
3832 PyThreadState* __tstate = wxPyBeginAllowThreads();
3833 wxDisplaySizeMM(arg1,arg2);
3834
3835 wxPyEndAllowThreads(__tstate);
3836 if (PyErr_Occurred()) SWIG_fail;
3837 }
3838 Py_INCREF(Py_None); resultobj = Py_None;
3839 {
3840 PyObject *o = PyInt_FromLong((long) (*arg1));
3841 resultobj = t_output_helper(resultobj,o);
3842 }
3843 {
3844 PyObject *o = PyInt_FromLong((long) (*arg2));
3845 resultobj = t_output_helper(resultobj,o);
3846 }
3847 return resultobj;
3848 fail:
3849 return NULL;
3850 }
3851
3852
3853 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3854 PyObject *resultobj;
3855 wxSize result;
3856 char *kwnames[] = {
3857 NULL
3858 };
3859
3860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3861 {
3862 PyThreadState* __tstate = wxPyBeginAllowThreads();
3863 result = wxGetDisplaySizeMM();
3864
3865 wxPyEndAllowThreads(__tstate);
3866 if (PyErr_Occurred()) SWIG_fail;
3867 }
3868 {
3869 wxSize * resultptr;
3870 resultptr = new wxSize((wxSize &) result);
3871 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3872 }
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject *resultobj;
3881 int *arg1 = (int *) 0 ;
3882 int *arg2 = (int *) 0 ;
3883 int *arg3 = (int *) 0 ;
3884 int *arg4 = (int *) 0 ;
3885 int temp1 ;
3886 int temp2 ;
3887 int temp3 ;
3888 int temp4 ;
3889 char *kwnames[] = {
3890 NULL
3891 };
3892
3893 arg1 = &temp1;
3894 arg2 = &temp2;
3895 arg3 = &temp3;
3896 arg4 = &temp4;
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3898 {
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
3900 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3901
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 Py_INCREF(Py_None); resultobj = Py_None;
3906 {
3907 PyObject *o = PyInt_FromLong((long) (*arg1));
3908 resultobj = t_output_helper(resultobj,o);
3909 }
3910 {
3911 PyObject *o = PyInt_FromLong((long) (*arg2));
3912 resultobj = t_output_helper(resultobj,o);
3913 }
3914 {
3915 PyObject *o = PyInt_FromLong((long) (*arg3));
3916 resultobj = t_output_helper(resultobj,o);
3917 }
3918 {
3919 PyObject *o = PyInt_FromLong((long) (*arg4));
3920 resultobj = t_output_helper(resultobj,o);
3921 }
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj;
3930 wxRect result;
3931 char *kwnames[] = {
3932 NULL
3933 };
3934
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = wxGetClientDisplayRect();
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 {
3944 wxRect * resultptr;
3945 resultptr = new wxRect((wxRect &) result);
3946 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3947 }
3948 return resultobj;
3949 fail:
3950 return NULL;
3951 }
3952
3953
3954 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 wxCursor *arg1 = 0 ;
3957 PyObject * obj0 = 0 ;
3958 char *kwnames[] = {
3959 (char *) "cursor", NULL
3960 };
3961
3962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3964 SWIG_POINTER_EXCEPTION | 0)) == -1)
3965 SWIG_fail;
3966 if (arg1 == NULL) {
3967 PyErr_SetString(PyExc_TypeError,"null reference");
3968 SWIG_fail;
3969 }
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 wxSetCursor(*arg1);
3973
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 }
3977 Py_INCREF(Py_None); resultobj = Py_None;
3978 return resultobj;
3979 fail:
3980 return NULL;
3981 }
3982
3983
3984 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3985 PyObject *resultobj;
3986 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3987 PyObject * obj0 = 0 ;
3988 char *kwnames[] = {
3989 (char *) "cursor", NULL
3990 };
3991
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3993 if (obj0) {
3994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3996 }
3997 {
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 wxBeginBusyCursor(arg1);
4000
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 Py_INCREF(Py_None); resultobj = Py_None;
4005 return resultobj;
4006 fail:
4007 return NULL;
4008 }
4009
4010
4011 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4012 PyObject *resultobj;
4013 wxWindow *result;
4014 char *kwnames[] = {
4015 NULL
4016 };
4017
4018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4019 {
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (wxWindow *)wxGetActiveWindow();
4022
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 {
4027 resultobj = wxPyMake_wxObject(result);
4028 }
4029 return resultobj;
4030 fail:
4031 return NULL;
4032 }
4033
4034
4035 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4036 PyObject *resultobj;
4037 wxPoint *arg1 = 0 ;
4038 wxWindow *result;
4039 wxPoint temp1 ;
4040 PyObject * obj0 = 0 ;
4041 char *kwnames[] = {
4042 (char *) "pt", NULL
4043 };
4044
4045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4046 {
4047 arg1 = &temp1;
4048 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4049 }
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4053
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 {
4058 resultobj = wxPyMake_wxObject(result);
4059 }
4060 return resultobj;
4061 fail:
4062 return NULL;
4063 }
4064
4065
4066 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4067 PyObject *resultobj;
4068 wxPoint *arg1 = 0 ;
4069 wxWindow *result;
4070 wxPoint temp1 ;
4071 PyObject * obj0 = 0 ;
4072 char *kwnames[] = {
4073 (char *) "pt", NULL
4074 };
4075
4076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4077 {
4078 arg1 = &temp1;
4079 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4080 }
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4084
4085 wxPyEndAllowThreads(__tstate);
4086 if (PyErr_Occurred()) SWIG_fail;
4087 }
4088 {
4089 resultobj = wxPyMake_wxObject(result);
4090 }
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4098 PyObject *resultobj;
4099 wxWindow *arg1 = (wxWindow *) 0 ;
4100 wxWindow *result;
4101 PyObject * obj0 = 0 ;
4102 char *kwnames[] = {
4103 (char *) "win", NULL
4104 };
4105
4106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 result = (wxWindow *)wxGetTopLevelParent(arg1);
4112
4113 wxPyEndAllowThreads(__tstate);
4114 if (PyErr_Occurred()) SWIG_fail;
4115 }
4116 {
4117 resultobj = wxPyMake_wxObject(result);
4118 }
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4126 PyObject *resultobj;
4127 int arg1 ;
4128 bool result;
4129 PyObject * obj0 = 0 ;
4130 char *kwnames[] = {
4131 (char *) "key", NULL
4132 };
4133
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4135 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4136 if (PyErr_Occurred()) SWIG_fail;
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4140
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 {
4145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4146 }
4147 return resultobj;
4148 fail:
4149 return NULL;
4150 }
4151
4152
4153 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4154 PyObject *resultobj;
4155 char *kwnames[] = {
4156 NULL
4157 };
4158
4159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4160 {
4161 PyThreadState* __tstate = wxPyBeginAllowThreads();
4162 wxWakeUpMainThread();
4163
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 Py_INCREF(Py_None); resultobj = Py_None;
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 char *kwnames[] = {
4177 NULL
4178 };
4179
4180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4181 {
4182 PyThreadState* __tstate = wxPyBeginAllowThreads();
4183 wxMutexGuiEnter();
4184
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) SWIG_fail;
4187 }
4188 Py_INCREF(Py_None); resultobj = Py_None;
4189 return resultobj;
4190 fail:
4191 return NULL;
4192 }
4193
4194
4195 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4196 PyObject *resultobj;
4197 char *kwnames[] = {
4198 NULL
4199 };
4200
4201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4202 {
4203 PyThreadState* __tstate = wxPyBeginAllowThreads();
4204 wxMutexGuiLeave();
4205
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 Py_INCREF(Py_None); resultobj = Py_None;
4210 return resultobj;
4211 fail:
4212 return NULL;
4213 }
4214
4215
4216 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4217 PyObject *resultobj;
4218 wxMutexGuiLocker *result;
4219 char *kwnames[] = {
4220 NULL
4221 };
4222
4223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4241 PyObject * obj0 = 0 ;
4242 char *kwnames[] = {
4243 (char *) "self", NULL
4244 };
4245
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 delete arg1;
4252
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 Py_INCREF(Py_None); resultobj = Py_None;
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4264 PyObject *obj;
4265 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4266 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4267 Py_INCREF(obj);
4268 return Py_BuildValue((char *)"");
4269 }
4270 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj;
4272 bool result;
4273 char *kwnames[] = {
4274 NULL
4275 };
4276
4277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4278 {
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
4280 result = (bool)wxThread_IsMain();
4281
4282 wxPyEndAllowThreads(__tstate);
4283 if (PyErr_Occurred()) SWIG_fail;
4284 }
4285 {
4286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4287 }
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4295 PyObject *resultobj;
4296 wxString *arg1 = 0 ;
4297 wxToolTip *result;
4298 bool temp1 = False ;
4299 PyObject * obj0 = 0 ;
4300 char *kwnames[] = {
4301 (char *) "tip", NULL
4302 };
4303
4304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4305 {
4306 arg1 = wxString_in_helper(obj0);
4307 if (arg1 == NULL) SWIG_fail;
4308 temp1 = True;
4309 }
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4313
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) SWIG_fail;
4316 }
4317 {
4318 resultobj = wxPyMake_wxObject(result);
4319 }
4320 {
4321 if (temp1)
4322 delete arg1;
4323 }
4324 return resultobj;
4325 fail:
4326 {
4327 if (temp1)
4328 delete arg1;
4329 }
4330 return NULL;
4331 }
4332
4333
4334 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4335 PyObject *resultobj;
4336 wxToolTip *arg1 = (wxToolTip *) 0 ;
4337 wxString *arg2 = 0 ;
4338 bool temp2 = False ;
4339 PyObject * obj0 = 0 ;
4340 PyObject * obj1 = 0 ;
4341 char *kwnames[] = {
4342 (char *) "self",(char *) "tip", NULL
4343 };
4344
4345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4348 {
4349 arg2 = wxString_in_helper(obj1);
4350 if (arg2 == NULL) SWIG_fail;
4351 temp2 = True;
4352 }
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 (arg1)->SetTip((wxString const &)*arg2);
4356
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 Py_INCREF(Py_None); resultobj = Py_None;
4361 {
4362 if (temp2)
4363 delete arg2;
4364 }
4365 return resultobj;
4366 fail:
4367 {
4368 if (temp2)
4369 delete arg2;
4370 }
4371 return NULL;
4372 }
4373
4374
4375 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4376 PyObject *resultobj;
4377 wxToolTip *arg1 = (wxToolTip *) 0 ;
4378 wxString result;
4379 PyObject * obj0 = 0 ;
4380 char *kwnames[] = {
4381 (char *) "self", NULL
4382 };
4383
4384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4387 {
4388 PyThreadState* __tstate = wxPyBeginAllowThreads();
4389 result = (arg1)->GetTip();
4390
4391 wxPyEndAllowThreads(__tstate);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 {
4395 #if wxUSE_UNICODE
4396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4397 #else
4398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4399 #endif
4400 }
4401 return resultobj;
4402 fail:
4403 return NULL;
4404 }
4405
4406
4407 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4408 PyObject *resultobj;
4409 wxToolTip *arg1 = (wxToolTip *) 0 ;
4410 wxWindow *result;
4411 PyObject * obj0 = 0 ;
4412 char *kwnames[] = {
4413 (char *) "self", NULL
4414 };
4415
4416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4419 {
4420 PyThreadState* __tstate = wxPyBeginAllowThreads();
4421 result = (wxWindow *)(arg1)->GetWindow();
4422
4423 wxPyEndAllowThreads(__tstate);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 {
4427 resultobj = wxPyMake_wxObject(result);
4428 }
4429 return resultobj;
4430 fail:
4431 return NULL;
4432 }
4433
4434
4435 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 bool arg1 ;
4438 PyObject * obj0 = 0 ;
4439 char *kwnames[] = {
4440 (char *) "flag", NULL
4441 };
4442
4443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4444 arg1 = (bool) SWIG_AsBool(obj0);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 {
4447 PyThreadState* __tstate = wxPyBeginAllowThreads();
4448 wxToolTip::Enable(arg1);
4449
4450 wxPyEndAllowThreads(__tstate);
4451 if (PyErr_Occurred()) SWIG_fail;
4452 }
4453 Py_INCREF(Py_None); resultobj = Py_None;
4454 return resultobj;
4455 fail:
4456 return NULL;
4457 }
4458
4459
4460 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4461 PyObject *resultobj;
4462 long arg1 ;
4463 PyObject * obj0 = 0 ;
4464 char *kwnames[] = {
4465 (char *) "milliseconds", NULL
4466 };
4467
4468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4469 arg1 = (long) SWIG_AsLong(obj0);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 wxToolTip::SetDelay(arg1);
4474
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 Py_INCREF(Py_None); resultobj = Py_None;
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4486 PyObject *obj;
4487 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4488 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4489 Py_INCREF(obj);
4490 return Py_BuildValue((char *)"");
4491 }
4492 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj;
4494 wxWindow *arg1 = (wxWindow *) 0 ;
4495 wxSize *arg2 = 0 ;
4496 wxCaret *result;
4497 wxSize temp2 ;
4498 PyObject * obj0 = 0 ;
4499 PyObject * obj1 = 0 ;
4500 char *kwnames[] = {
4501 (char *) "window",(char *) "size", NULL
4502 };
4503
4504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4507 {
4508 arg2 = &temp2;
4509 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4510 }
4511 {
4512 PyThreadState* __tstate = wxPyBeginAllowThreads();
4513 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4514
4515 wxPyEndAllowThreads(__tstate);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4519 return resultobj;
4520 fail:
4521 return NULL;
4522 }
4523
4524
4525 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4526 PyObject *resultobj;
4527 wxCaret *arg1 = (wxCaret *) 0 ;
4528 PyObject * obj0 = 0 ;
4529 char *kwnames[] = {
4530 (char *) "self", NULL
4531 };
4532
4533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 delete arg1;
4539
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 Py_INCREF(Py_None); resultobj = Py_None;
4544 return resultobj;
4545 fail:
4546 return NULL;
4547 }
4548
4549
4550 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxCaret *arg1 = (wxCaret *) 0 ;
4553 bool result;
4554 PyObject * obj0 = 0 ;
4555 char *kwnames[] = {
4556 (char *) "self", NULL
4557 };
4558
4559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4562 {
4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
4564 result = (bool)(arg1)->IsOk();
4565
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) SWIG_fail;
4568 }
4569 {
4570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4571 }
4572 return resultobj;
4573 fail:
4574 return NULL;
4575 }
4576
4577
4578 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4579 PyObject *resultobj;
4580 wxCaret *arg1 = (wxCaret *) 0 ;
4581 bool result;
4582 PyObject * obj0 = 0 ;
4583 char *kwnames[] = {
4584 (char *) "self", NULL
4585 };
4586
4587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4590 {
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = (bool)(arg1)->IsVisible();
4593
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 {
4598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4599 }
4600 return resultobj;
4601 fail:
4602 return NULL;
4603 }
4604
4605
4606 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj;
4608 wxCaret *arg1 = (wxCaret *) 0 ;
4609 wxPoint result;
4610 PyObject * obj0 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "self", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4618 {
4619 PyThreadState* __tstate = wxPyBeginAllowThreads();
4620 result = (arg1)->GetPosition();
4621
4622 wxPyEndAllowThreads(__tstate);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
4625 {
4626 wxPoint * resultptr;
4627 resultptr = new wxPoint((wxPoint &) result);
4628 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4629 }
4630 return resultobj;
4631 fail:
4632 return NULL;
4633 }
4634
4635
4636 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4637 PyObject *resultobj;
4638 wxCaret *arg1 = (wxCaret *) 0 ;
4639 int *arg2 = (int *) 0 ;
4640 int *arg3 = (int *) 0 ;
4641 int temp2 ;
4642 int temp3 ;
4643 PyObject * obj0 = 0 ;
4644 char *kwnames[] = {
4645 (char *) "self", NULL
4646 };
4647
4648 arg2 = &temp2;
4649 arg3 = &temp3;
4650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 (arg1)->GetPosition(arg2,arg3);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 Py_INCREF(Py_None); resultobj = Py_None;
4661 {
4662 PyObject *o = PyInt_FromLong((long) (*arg2));
4663 resultobj = t_output_helper(resultobj,o);
4664 }
4665 {
4666 PyObject *o = PyInt_FromLong((long) (*arg3));
4667 resultobj = t_output_helper(resultobj,o);
4668 }
4669 return resultobj;
4670 fail:
4671 return NULL;
4672 }
4673
4674
4675 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4676 PyObject *resultobj;
4677 wxCaret *arg1 = (wxCaret *) 0 ;
4678 wxSize result;
4679 PyObject * obj0 = 0 ;
4680 char *kwnames[] = {
4681 (char *) "self", NULL
4682 };
4683
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4687 {
4688 PyThreadState* __tstate = wxPyBeginAllowThreads();
4689 result = (arg1)->GetSize();
4690
4691 wxPyEndAllowThreads(__tstate);
4692 if (PyErr_Occurred()) SWIG_fail;
4693 }
4694 {
4695 wxSize * resultptr;
4696 resultptr = new wxSize((wxSize &) result);
4697 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4698 }
4699 return resultobj;
4700 fail:
4701 return NULL;
4702 }
4703
4704
4705 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4706 PyObject *resultobj;
4707 wxCaret *arg1 = (wxCaret *) 0 ;
4708 int *arg2 = (int *) 0 ;
4709 int *arg3 = (int *) 0 ;
4710 int temp2 ;
4711 int temp3 ;
4712 PyObject * obj0 = 0 ;
4713 char *kwnames[] = {
4714 (char *) "self", NULL
4715 };
4716
4717 arg2 = &temp2;
4718 arg3 = &temp3;
4719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 (arg1)->GetSize(arg2,arg3);
4725
4726 wxPyEndAllowThreads(__tstate);
4727 if (PyErr_Occurred()) SWIG_fail;
4728 }
4729 Py_INCREF(Py_None); resultobj = Py_None;
4730 {
4731 PyObject *o = PyInt_FromLong((long) (*arg2));
4732 resultobj = t_output_helper(resultobj,o);
4733 }
4734 {
4735 PyObject *o = PyInt_FromLong((long) (*arg3));
4736 resultobj = t_output_helper(resultobj,o);
4737 }
4738 return resultobj;
4739 fail:
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 wxCaret *arg1 = (wxCaret *) 0 ;
4747 wxWindow *result;
4748 PyObject * obj0 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "self", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 result = (wxWindow *)(arg1)->GetWindow();
4759
4760 wxPyEndAllowThreads(__tstate);
4761 if (PyErr_Occurred()) SWIG_fail;
4762 }
4763 {
4764 resultobj = wxPyMake_wxObject(result);
4765 }
4766 return resultobj;
4767 fail:
4768 return NULL;
4769 }
4770
4771
4772 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj;
4774 wxCaret *arg1 = (wxCaret *) 0 ;
4775 int arg2 ;
4776 int arg3 ;
4777 PyObject * obj0 = 0 ;
4778 PyObject * obj1 = 0 ;
4779 PyObject * obj2 = 0 ;
4780 char *kwnames[] = {
4781 (char *) "self",(char *) "x",(char *) "y", NULL
4782 };
4783
4784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4787 arg2 = (int) SWIG_AsInt(obj1);
4788 if (PyErr_Occurred()) SWIG_fail;
4789 arg3 = (int) SWIG_AsInt(obj2);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 {
4792 PyThreadState* __tstate = wxPyBeginAllowThreads();
4793 (arg1)->Move(arg2,arg3);
4794
4795 wxPyEndAllowThreads(__tstate);
4796 if (PyErr_Occurred()) SWIG_fail;
4797 }
4798 Py_INCREF(Py_None); resultobj = Py_None;
4799 return resultobj;
4800 fail:
4801 return NULL;
4802 }
4803
4804
4805 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4806 PyObject *resultobj;
4807 wxCaret *arg1 = (wxCaret *) 0 ;
4808 wxPoint *arg2 = 0 ;
4809 wxPoint temp2 ;
4810 PyObject * obj0 = 0 ;
4811 PyObject * obj1 = 0 ;
4812 char *kwnames[] = {
4813 (char *) "self",(char *) "pt", NULL
4814 };
4815
4816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4819 {
4820 arg2 = &temp2;
4821 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4822 }
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 (arg1)->Move((wxPoint const &)*arg2);
4826
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 Py_INCREF(Py_None); resultobj = Py_None;
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4838 PyObject *resultobj;
4839 wxCaret *arg1 = (wxCaret *) 0 ;
4840 int arg2 ;
4841 int arg3 ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 PyObject * obj2 = 0 ;
4845 char *kwnames[] = {
4846 (char *) "self",(char *) "width",(char *) "height", NULL
4847 };
4848
4849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4852 arg2 = (int) SWIG_AsInt(obj1);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 arg3 = (int) SWIG_AsInt(obj2);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 {
4857 PyThreadState* __tstate = wxPyBeginAllowThreads();
4858 (arg1)->SetSize(arg2,arg3);
4859
4860 wxPyEndAllowThreads(__tstate);
4861 if (PyErr_Occurred()) SWIG_fail;
4862 }
4863 Py_INCREF(Py_None); resultobj = Py_None;
4864 return resultobj;
4865 fail:
4866 return NULL;
4867 }
4868
4869
4870 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4871 PyObject *resultobj;
4872 wxCaret *arg1 = (wxCaret *) 0 ;
4873 wxSize *arg2 = 0 ;
4874 wxSize temp2 ;
4875 PyObject * obj0 = 0 ;
4876 PyObject * obj1 = 0 ;
4877 char *kwnames[] = {
4878 (char *) "self",(char *) "size", NULL
4879 };
4880
4881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4884 {
4885 arg2 = &temp2;
4886 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4887 }
4888 {
4889 PyThreadState* __tstate = wxPyBeginAllowThreads();
4890 (arg1)->SetSize((wxSize const &)*arg2);
4891
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 Py_INCREF(Py_None); resultobj = Py_None;
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4903 PyObject *resultobj;
4904 wxCaret *arg1 = (wxCaret *) 0 ;
4905 int arg2 = (int) True ;
4906 PyObject * obj0 = 0 ;
4907 PyObject * obj1 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "show", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4915 if (obj1) {
4916 arg2 = (int) SWIG_AsInt(obj1);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 {
4920 PyThreadState* __tstate = wxPyBeginAllowThreads();
4921 (arg1)->Show(arg2);
4922
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
4926 Py_INCREF(Py_None); resultobj = Py_None;
4927 return resultobj;
4928 fail:
4929 return NULL;
4930 }
4931
4932
4933 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4934 PyObject *resultobj;
4935 wxCaret *arg1 = (wxCaret *) 0 ;
4936 PyObject * obj0 = 0 ;
4937 char *kwnames[] = {
4938 (char *) "self", NULL
4939 };
4940
4941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 (arg1)->Hide();
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 Py_INCREF(Py_None); resultobj = Py_None;
4952 return resultobj;
4953 fail:
4954 return NULL;
4955 }
4956
4957
4958 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4959 PyObject *obj;
4960 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4961 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4962 Py_INCREF(obj);
4963 return Py_BuildValue((char *)"");
4964 }
4965 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject *resultobj;
4967 int result;
4968 char *kwnames[] = {
4969 NULL
4970 };
4971
4972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 result = (int)wxCaret_GetBlinkTime();
4976
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 resultobj = SWIG_FromInt((int)result);
4981 return resultobj;
4982 fail:
4983 return NULL;
4984 }
4985
4986
4987 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4988 PyObject *resultobj;
4989 int arg1 ;
4990 PyObject * obj0 = 0 ;
4991 char *kwnames[] = {
4992 (char *) "milliseconds", NULL
4993 };
4994
4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
4996 arg1 = (int) SWIG_AsInt(obj0);
4997 if (PyErr_Occurred()) SWIG_fail;
4998 {
4999 PyThreadState* __tstate = wxPyBeginAllowThreads();
5000 wxCaret_SetBlinkTime(arg1);
5001
5002 wxPyEndAllowThreads(__tstate);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 }
5005 Py_INCREF(Py_None); resultobj = Py_None;
5006 return resultobj;
5007 fail:
5008 return NULL;
5009 }
5010
5011
5012 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5013 PyObject *resultobj;
5014 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5015 wxBusyCursor *result;
5016 PyObject * obj0 = 0 ;
5017 char *kwnames[] = {
5018 (char *) "cursor", NULL
5019 };
5020
5021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5022 if (obj0) {
5023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5025 }
5026 {
5027 PyThreadState* __tstate = wxPyBeginAllowThreads();
5028 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5029
5030 wxPyEndAllowThreads(__tstate);
5031 if (PyErr_Occurred()) SWIG_fail;
5032 }
5033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5034 return resultobj;
5035 fail:
5036 return NULL;
5037 }
5038
5039
5040 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5041 PyObject *resultobj;
5042 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5043 PyObject * obj0 = 0 ;
5044 char *kwnames[] = {
5045 (char *) "self", NULL
5046 };
5047
5048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 delete arg1;
5054
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 Py_INCREF(Py_None); resultobj = Py_None;
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5066 PyObject *obj;
5067 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5068 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5069 Py_INCREF(obj);
5070 return Py_BuildValue((char *)"");
5071 }
5072 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5073 PyObject *resultobj;
5074 wxWindow *arg1 = (wxWindow *) NULL ;
5075 wxWindowDisabler *result;
5076 PyObject * obj0 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "winToSkip", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5082 if (obj0) {
5083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5085 }
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj;
5102 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5103 PyObject * obj0 = 0 ;
5104 char *kwnames[] = {
5105 (char *) "self", NULL
5106 };
5107
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 delete arg1;
5114
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 Py_INCREF(Py_None); resultobj = Py_None;
5119 return resultobj;
5120 fail:
5121 return NULL;
5122 }
5123
5124
5125 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5126 PyObject *obj;
5127 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5128 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5129 Py_INCREF(obj);
5130 return Py_BuildValue((char *)"");
5131 }
5132 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5133 PyObject *resultobj;
5134 wxString *arg1 = 0 ;
5135 wxBusyInfo *result;
5136 bool temp1 = False ;
5137 PyObject * obj0 = 0 ;
5138 char *kwnames[] = {
5139 (char *) "message", NULL
5140 };
5141
5142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5143 {
5144 arg1 = wxString_in_helper(obj0);
5145 if (arg1 == NULL) SWIG_fail;
5146 temp1 = True;
5147 }
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5151
5152 wxPyEndAllowThreads(__tstate);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 }
5155 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5156 {
5157 if (temp1)
5158 delete arg1;
5159 }
5160 return resultobj;
5161 fail:
5162 {
5163 if (temp1)
5164 delete arg1;
5165 }
5166 return NULL;
5167 }
5168
5169
5170 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5171 PyObject *resultobj;
5172 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5173 PyObject * obj0 = 0 ;
5174 char *kwnames[] = {
5175 (char *) "self", NULL
5176 };
5177
5178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 delete arg1;
5184
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 Py_INCREF(Py_None); resultobj = Py_None;
5189 return resultobj;
5190 fail:
5191 return NULL;
5192 }
5193
5194
5195 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5196 PyObject *obj;
5197 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5198 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5199 Py_INCREF(obj);
5200 return Py_BuildValue((char *)"");
5201 }
5202 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5203 PyObject *resultobj;
5204 wxStopWatch *result;
5205 char *kwnames[] = {
5206 NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (wxStopWatch *)new wxStopWatch();
5213
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5218 return resultobj;
5219 fail:
5220 return NULL;
5221 }
5222
5223
5224 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5225 PyObject *resultobj;
5226 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5227 long arg2 = (long) 0 ;
5228 PyObject * obj0 = 0 ;
5229 PyObject * obj1 = 0 ;
5230 char *kwnames[] = {
5231 (char *) "self",(char *) "t0", NULL
5232 };
5233
5234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5237 if (obj1) {
5238 arg2 = (long) SWIG_AsLong(obj1);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 {
5242 PyThreadState* __tstate = wxPyBeginAllowThreads();
5243 (arg1)->Start(arg2);
5244
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 Py_INCREF(Py_None); resultobj = Py_None;
5249 return resultobj;
5250 fail:
5251 return NULL;
5252 }
5253
5254
5255 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5256 PyObject *resultobj;
5257 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5258 PyObject * obj0 = 0 ;
5259 char *kwnames[] = {
5260 (char *) "self", NULL
5261 };
5262
5263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5266 {
5267 PyThreadState* __tstate = wxPyBeginAllowThreads();
5268 (arg1)->Pause();
5269
5270 wxPyEndAllowThreads(__tstate);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 }
5273 Py_INCREF(Py_None); resultobj = Py_None;
5274 return resultobj;
5275 fail:
5276 return NULL;
5277 }
5278
5279
5280 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5281 PyObject *resultobj;
5282 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5283 PyObject * obj0 = 0 ;
5284 char *kwnames[] = {
5285 (char *) "self", NULL
5286 };
5287
5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 (arg1)->Resume();
5294
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 Py_INCREF(Py_None); resultobj = Py_None;
5299 return resultobj;
5300 fail:
5301 return NULL;
5302 }
5303
5304
5305 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5306 PyObject *resultobj;
5307 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5308 long result;
5309 PyObject * obj0 = 0 ;
5310 char *kwnames[] = {
5311 (char *) "self", NULL
5312 };
5313
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 result = (long)((wxStopWatch const *)arg1)->Time();
5320
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 resultobj = SWIG_FromLong((long)result);
5325 return resultobj;
5326 fail:
5327 return NULL;
5328 }
5329
5330
5331 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5332 PyObject *obj;
5333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5334 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5335 Py_INCREF(obj);
5336 return Py_BuildValue((char *)"");
5337 }
5338 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 int arg1 = (int) 9 ;
5341 wxFileHistory *result;
5342 PyObject * obj0 = 0 ;
5343 char *kwnames[] = {
5344 (char *) "maxFiles", NULL
5345 };
5346
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5348 if (obj0) {
5349 arg1 = (int) SWIG_AsInt(obj0);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 {
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 result = (wxFileHistory *)new wxFileHistory(arg1);
5355
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5360 return resultobj;
5361 fail:
5362 return NULL;
5363 }
5364
5365
5366 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5367 PyObject *resultobj;
5368 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5369 PyObject * obj0 = 0 ;
5370 char *kwnames[] = {
5371 (char *) "self", NULL
5372 };
5373
5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5377 {
5378 PyThreadState* __tstate = wxPyBeginAllowThreads();
5379 delete arg1;
5380
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 Py_INCREF(Py_None); resultobj = Py_None;
5385 return resultobj;
5386 fail:
5387 return NULL;
5388 }
5389
5390
5391 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5392 PyObject *resultobj;
5393 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5394 wxString *arg2 = 0 ;
5395 bool temp2 = False ;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 char *kwnames[] = {
5399 (char *) "self",(char *) "file", NULL
5400 };
5401
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5405 {
5406 arg2 = wxString_in_helper(obj1);
5407 if (arg2 == NULL) SWIG_fail;
5408 temp2 = True;
5409 }
5410 {
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 (arg1)->AddFileToHistory((wxString const &)*arg2);
5413
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 Py_INCREF(Py_None); resultobj = Py_None;
5418 {
5419 if (temp2)
5420 delete arg2;
5421 }
5422 return resultobj;
5423 fail:
5424 {
5425 if (temp2)
5426 delete arg2;
5427 }
5428 return NULL;
5429 }
5430
5431
5432 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5433 PyObject *resultobj;
5434 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5435 int arg2 ;
5436 PyObject * obj0 = 0 ;
5437 PyObject * obj1 = 0 ;
5438 char *kwnames[] = {
5439 (char *) "self",(char *) "i", NULL
5440 };
5441
5442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5445 arg2 = (int) SWIG_AsInt(obj1);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 {
5448 PyThreadState* __tstate = wxPyBeginAllowThreads();
5449 (arg1)->RemoveFileFromHistory(arg2);
5450
5451 wxPyEndAllowThreads(__tstate);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 }
5454 Py_INCREF(Py_None); resultobj = Py_None;
5455 return resultobj;
5456 fail:
5457 return NULL;
5458 }
5459
5460
5461 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5462 PyObject *resultobj;
5463 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5464 int result;
5465 PyObject * obj0 = 0 ;
5466 char *kwnames[] = {
5467 (char *) "self", NULL
5468 };
5469
5470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5473 {
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5476
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 resultobj = SWIG_FromInt((int)result);
5481 return resultobj;
5482 fail:
5483 return NULL;
5484 }
5485
5486
5487 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj;
5489 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5490 wxMenu *arg2 = (wxMenu *) 0 ;
5491 PyObject * obj0 = 0 ;
5492 PyObject * obj1 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self",(char *) "menu", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5502 {
5503 PyThreadState* __tstate = wxPyBeginAllowThreads();
5504 (arg1)->UseMenu(arg2);
5505
5506 wxPyEndAllowThreads(__tstate);
5507 if (PyErr_Occurred()) SWIG_fail;
5508 }
5509 Py_INCREF(Py_None); resultobj = Py_None;
5510 return resultobj;
5511 fail:
5512 return NULL;
5513 }
5514
5515
5516 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5517 PyObject *resultobj;
5518 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5519 wxMenu *arg2 = (wxMenu *) 0 ;
5520 PyObject * obj0 = 0 ;
5521 PyObject * obj1 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "self",(char *) "menu", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5531 {
5532 PyThreadState* __tstate = wxPyBeginAllowThreads();
5533 (arg1)->RemoveMenu(arg2);
5534
5535 wxPyEndAllowThreads(__tstate);
5536 if (PyErr_Occurred()) SWIG_fail;
5537 }
5538 Py_INCREF(Py_None); resultobj = Py_None;
5539 return resultobj;
5540 fail:
5541 return NULL;
5542 }
5543
5544
5545 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5546 PyObject *resultobj;
5547 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5548 wxConfigBase *arg2 = 0 ;
5549 PyObject * obj0 = 0 ;
5550 PyObject * obj1 = 0 ;
5551 char *kwnames[] = {
5552 (char *) "self",(char *) "config", NULL
5553 };
5554
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5559 SWIG_POINTER_EXCEPTION | 0)) == -1)
5560 SWIG_fail;
5561 if (arg2 == NULL) {
5562 PyErr_SetString(PyExc_TypeError,"null reference");
5563 SWIG_fail;
5564 }
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 (arg1)->Load(*arg2);
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 Py_INCREF(Py_None); resultobj = Py_None;
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5580 PyObject *resultobj;
5581 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5582 wxConfigBase *arg2 = 0 ;
5583 PyObject * obj0 = 0 ;
5584 PyObject * obj1 = 0 ;
5585 char *kwnames[] = {
5586 (char *) "self",(char *) "config", NULL
5587 };
5588
5589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5593 SWIG_POINTER_EXCEPTION | 0)) == -1)
5594 SWIG_fail;
5595 if (arg2 == NULL) {
5596 PyErr_SetString(PyExc_TypeError,"null reference");
5597 SWIG_fail;
5598 }
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 (arg1)->Save(*arg2);
5602
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 }
5606 Py_INCREF(Py_None); resultobj = Py_None;
5607 return resultobj;
5608 fail:
5609 return NULL;
5610 }
5611
5612
5613 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5614 PyObject *resultobj;
5615 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5616 PyObject * obj0 = 0 ;
5617 char *kwnames[] = {
5618 (char *) "self", NULL
5619 };
5620
5621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 (arg1)->AddFilesToMenu();
5627
5628 wxPyEndAllowThreads(__tstate);
5629 if (PyErr_Occurred()) SWIG_fail;
5630 }
5631 Py_INCREF(Py_None); resultobj = Py_None;
5632 return resultobj;
5633 fail:
5634 return NULL;
5635 }
5636
5637
5638 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5639 PyObject *resultobj;
5640 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5641 wxMenu *arg2 = (wxMenu *) 0 ;
5642 PyObject * obj0 = 0 ;
5643 PyObject * obj1 = 0 ;
5644 char *kwnames[] = {
5645 (char *) "self",(char *) "menu", NULL
5646 };
5647
5648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5651 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5653 {
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 (arg1)->AddFilesToMenu(arg2);
5656
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 Py_INCREF(Py_None); resultobj = Py_None;
5661 return resultobj;
5662 fail:
5663 return NULL;
5664 }
5665
5666
5667 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5668 PyObject *resultobj;
5669 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5670 int arg2 ;
5671 wxString result;
5672 PyObject * obj0 = 0 ;
5673 PyObject * obj1 = 0 ;
5674 char *kwnames[] = {
5675 (char *) "self",(char *) "i", NULL
5676 };
5677
5678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5681 arg2 = (int) SWIG_AsInt(obj1);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 {
5684 PyThreadState* __tstate = wxPyBeginAllowThreads();
5685 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5686
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 {
5691 #if wxUSE_UNICODE
5692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5693 #else
5694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5695 #endif
5696 }
5697 return resultobj;
5698 fail:
5699 return NULL;
5700 }
5701
5702
5703 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5704 PyObject *resultobj;
5705 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5706 int result;
5707 PyObject * obj0 = 0 ;
5708 char *kwnames[] = {
5709 (char *) "self", NULL
5710 };
5711
5712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5715 {
5716 PyThreadState* __tstate = wxPyBeginAllowThreads();
5717 result = (int)((wxFileHistory const *)arg1)->GetCount();
5718
5719 wxPyEndAllowThreads(__tstate);
5720 if (PyErr_Occurred()) SWIG_fail;
5721 }
5722 resultobj = SWIG_FromInt((int)result);
5723 return resultobj;
5724 fail:
5725 return NULL;
5726 }
5727
5728
5729 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5730 PyObject *obj;
5731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5732 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5733 Py_INCREF(obj);
5734 return Py_BuildValue((char *)"");
5735 }
5736 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5737 PyObject *resultobj;
5738 wxString *arg1 = 0 ;
5739 wxString const &arg2_defvalue = wxPyEmptyString ;
5740 wxString *arg2 = (wxString *) &arg2_defvalue ;
5741 wxSingleInstanceChecker *result;
5742 bool temp1 = False ;
5743 bool temp2 = False ;
5744 PyObject * obj0 = 0 ;
5745 PyObject * obj1 = 0 ;
5746 char *kwnames[] = {
5747 (char *) "name",(char *) "path", NULL
5748 };
5749
5750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5751 {
5752 arg1 = wxString_in_helper(obj0);
5753 if (arg1 == NULL) SWIG_fail;
5754 temp1 = True;
5755 }
5756 if (obj1) {
5757 {
5758 arg2 = wxString_in_helper(obj1);
5759 if (arg2 == NULL) SWIG_fail;
5760 temp2 = True;
5761 }
5762 }
5763 {
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5766
5767 wxPyEndAllowThreads(__tstate);
5768 if (PyErr_Occurred()) SWIG_fail;
5769 }
5770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5771 {
5772 if (temp1)
5773 delete arg1;
5774 }
5775 {
5776 if (temp2)
5777 delete arg2;
5778 }
5779 return resultobj;
5780 fail:
5781 {
5782 if (temp1)
5783 delete arg1;
5784 }
5785 {
5786 if (temp2)
5787 delete arg2;
5788 }
5789 return NULL;
5790 }
5791
5792
5793 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5794 PyObject *resultobj;
5795 wxSingleInstanceChecker *result;
5796 char *kwnames[] = {
5797 NULL
5798 };
5799
5800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5801 {
5802 PyThreadState* __tstate = wxPyBeginAllowThreads();
5803 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5804
5805 wxPyEndAllowThreads(__tstate);
5806 if (PyErr_Occurred()) SWIG_fail;
5807 }
5808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5809 return resultobj;
5810 fail:
5811 return NULL;
5812 }
5813
5814
5815 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5816 PyObject *resultobj;
5817 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5818 PyObject * obj0 = 0 ;
5819 char *kwnames[] = {
5820 (char *) "self", NULL
5821 };
5822
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 delete arg1;
5829
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 Py_INCREF(Py_None); resultobj = Py_None;
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5843 wxString *arg2 = 0 ;
5844 wxString const &arg3_defvalue = wxPyEmptyString ;
5845 wxString *arg3 = (wxString *) &arg3_defvalue ;
5846 bool result;
5847 bool temp2 = False ;
5848 bool temp3 = False ;
5849 PyObject * obj0 = 0 ;
5850 PyObject * obj1 = 0 ;
5851 PyObject * obj2 = 0 ;
5852 char *kwnames[] = {
5853 (char *) "self",(char *) "name",(char *) "path", NULL
5854 };
5855
5856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5859 {
5860 arg2 = wxString_in_helper(obj1);
5861 if (arg2 == NULL) SWIG_fail;
5862 temp2 = True;
5863 }
5864 if (obj2) {
5865 {
5866 arg3 = wxString_in_helper(obj2);
5867 if (arg3 == NULL) SWIG_fail;
5868 temp3 = True;
5869 }
5870 }
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5874
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 {
5879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5880 }
5881 {
5882 if (temp2)
5883 delete arg2;
5884 }
5885 {
5886 if (temp3)
5887 delete arg3;
5888 }
5889 return resultobj;
5890 fail:
5891 {
5892 if (temp2)
5893 delete arg2;
5894 }
5895 {
5896 if (temp3)
5897 delete arg3;
5898 }
5899 return NULL;
5900 }
5901
5902
5903 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5904 PyObject *resultobj;
5905 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5906 bool result;
5907 PyObject * obj0 = 0 ;
5908 char *kwnames[] = {
5909 (char *) "self", NULL
5910 };
5911
5912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5918
5919 wxPyEndAllowThreads(__tstate);
5920 if (PyErr_Occurred()) SWIG_fail;
5921 }
5922 {
5923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5924 }
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5932 PyObject *obj;
5933 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5934 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5935 Py_INCREF(obj);
5936 return Py_BuildValue((char *)"");
5937 }
5938 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5939 PyObject *resultobj;
5940 wxWindow *arg1 = (wxWindow *) 0 ;
5941 wxDC *arg2 = 0 ;
5942 int arg3 ;
5943 PyObject * obj0 = 0 ;
5944 PyObject * obj1 = 0 ;
5945 PyObject * obj2 = 0 ;
5946 char *kwnames[] = {
5947 (char *) "window",(char *) "dc",(char *) "method", NULL
5948 };
5949
5950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
5951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5953 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
5954 SWIG_POINTER_EXCEPTION | 0)) == -1)
5955 SWIG_fail;
5956 if (arg2 == NULL) {
5957 PyErr_SetString(PyExc_TypeError,"null reference");
5958 SWIG_fail;
5959 }
5960 arg3 = (int) SWIG_AsInt(obj2);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5965
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 Py_INCREF(Py_None); resultobj = Py_None;
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 delete arg1;
5990
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 Py_INCREF(Py_None); resultobj = Py_None;
5995 return resultobj;
5996 fail:
5997 return NULL;
5998 }
5999
6000
6001 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6002 PyObject *resultobj;
6003 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6004 wxString result;
6005 PyObject * obj0 = 0 ;
6006 char *kwnames[] = {
6007 (char *) "self", NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6013 {
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 result = (arg1)->GetTip();
6016
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 {
6021 #if wxUSE_UNICODE
6022 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6023 #else
6024 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6025 #endif
6026 }
6027 return resultobj;
6028 fail:
6029 return NULL;
6030 }
6031
6032
6033 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj;
6035 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6036 size_t result;
6037 PyObject * obj0 = 0 ;
6038 char *kwnames[] = {
6039 (char *) "self", NULL
6040 };
6041
6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = (size_t)(arg1)->GetCurrentTip();
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6053 return resultobj;
6054 fail:
6055 return NULL;
6056 }
6057
6058
6059 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6060 PyObject *resultobj;
6061 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6062 wxString *arg2 = 0 ;
6063 wxString result;
6064 bool temp2 = False ;
6065 PyObject * obj0 = 0 ;
6066 PyObject * obj1 = 0 ;
6067 char *kwnames[] = {
6068 (char *) "self",(char *) "tip", NULL
6069 };
6070
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6074 {
6075 arg2 = wxString_in_helper(obj1);
6076 if (arg2 == NULL) SWIG_fail;
6077 temp2 = True;
6078 }
6079 {
6080 PyThreadState* __tstate = wxPyBeginAllowThreads();
6081 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6082
6083 wxPyEndAllowThreads(__tstate);
6084 if (PyErr_Occurred()) SWIG_fail;
6085 }
6086 {
6087 #if wxUSE_UNICODE
6088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6089 #else
6090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6091 #endif
6092 }
6093 {
6094 if (temp2)
6095 delete arg2;
6096 }
6097 return resultobj;
6098 fail:
6099 {
6100 if (temp2)
6101 delete arg2;
6102 }
6103 return NULL;
6104 }
6105
6106
6107 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6108 PyObject *obj;
6109 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6110 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6111 Py_INCREF(obj);
6112 return Py_BuildValue((char *)"");
6113 }
6114 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 size_t arg1 ;
6117 wxPyTipProvider *result;
6118 PyObject * obj0 = 0 ;
6119 char *kwnames[] = {
6120 (char *) "currentTip", NULL
6121 };
6122
6123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6124 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 {
6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
6128 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6129
6130 wxPyEndAllowThreads(__tstate);
6131 if (PyErr_Occurred()) SWIG_fail;
6132 }
6133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6134 return resultobj;
6135 fail:
6136 return NULL;
6137 }
6138
6139
6140 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6141 PyObject *resultobj;
6142 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6143 PyObject *arg2 = (PyObject *) 0 ;
6144 PyObject *arg3 = (PyObject *) 0 ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 PyObject * obj2 = 0 ;
6148 char *kwnames[] = {
6149 (char *) "self",(char *) "self",(char *) "_class", NULL
6150 };
6151
6152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6155 arg2 = obj1;
6156 arg3 = obj2;
6157 {
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 (arg1)->_setCallbackInfo(arg2,arg3);
6160
6161 wxPyEndAllowThreads(__tstate);
6162 if (PyErr_Occurred()) SWIG_fail;
6163 }
6164 Py_INCREF(Py_None); resultobj = Py_None;
6165 return resultobj;
6166 fail:
6167 return NULL;
6168 }
6169
6170
6171 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6172 PyObject *obj;
6173 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6174 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6175 Py_INCREF(obj);
6176 return Py_BuildValue((char *)"");
6177 }
6178 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6179 PyObject *resultobj;
6180 wxWindow *arg1 = (wxWindow *) 0 ;
6181 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6182 bool arg3 = (bool) True ;
6183 bool result;
6184 PyObject * obj0 = 0 ;
6185 PyObject * obj1 = 0 ;
6186 PyObject * obj2 = 0 ;
6187 char *kwnames[] = {
6188 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6189 };
6190
6191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6194 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6196 if (obj2) {
6197 arg3 = (bool) SWIG_AsBool(obj2);
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 {
6201 PyThreadState* __tstate = wxPyBeginAllowThreads();
6202 result = (bool)wxShowTip(arg1,arg2,arg3);
6203
6204 wxPyEndAllowThreads(__tstate);
6205 if (PyErr_Occurred()) SWIG_fail;
6206 }
6207 {
6208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6209 }
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj;
6218 wxString *arg1 = 0 ;
6219 size_t arg2 ;
6220 wxTipProvider *result;
6221 bool temp1 = False ;
6222 PyObject * obj0 = 0 ;
6223 PyObject * obj1 = 0 ;
6224 char *kwnames[] = {
6225 (char *) "filename",(char *) "currentTip", NULL
6226 };
6227
6228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6229 {
6230 arg1 = wxString_in_helper(obj0);
6231 if (arg1 == NULL) SWIG_fail;
6232 temp1 = True;
6233 }
6234 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6235 if (PyErr_Occurred()) SWIG_fail;
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6244 {
6245 if (temp1)
6246 delete arg1;
6247 }
6248 return resultobj;
6249 fail:
6250 {
6251 if (temp1)
6252 delete arg1;
6253 }
6254 return NULL;
6255 }
6256
6257
6258 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6259 PyObject *resultobj;
6260 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6261 int arg2 = (int) -1 ;
6262 wxPyTimer *result;
6263 PyObject * obj0 = 0 ;
6264 PyObject * obj1 = 0 ;
6265 char *kwnames[] = {
6266 (char *) "owner",(char *) "id", NULL
6267 };
6268
6269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6270 if (obj0) {
6271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6273 }
6274 if (obj1) {
6275 arg2 = (int) SWIG_AsInt(obj1);
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj;
6294 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6295 PyObject * obj0 = 0 ;
6296 char *kwnames[] = {
6297 (char *) "self", NULL
6298 };
6299
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 delete arg1;
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 Py_INCREF(Py_None); resultobj = Py_None;
6311 return resultobj;
6312 fail:
6313 return NULL;
6314 }
6315
6316
6317 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj;
6319 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6320 PyObject *arg2 = (PyObject *) 0 ;
6321 PyObject *arg3 = (PyObject *) 0 ;
6322 int arg4 = (int) 1 ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 PyObject * obj2 = 0 ;
6326 PyObject * obj3 = 0 ;
6327 char *kwnames[] = {
6328 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6329 };
6330
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 arg2 = obj1;
6335 arg3 = obj2;
6336 if (obj3) {
6337 arg4 = (int) SWIG_AsInt(obj3);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6343
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 Py_INCREF(Py_None); resultobj = Py_None;
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj;
6356 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6357 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6358 int arg3 = (int) -1 ;
6359 PyObject * obj0 = 0 ;
6360 PyObject * obj1 = 0 ;
6361 PyObject * obj2 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "self",(char *) "owner",(char *) "id", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6369 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6371 if (obj2) {
6372 arg3 = (int) SWIG_AsInt(obj2);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 {
6376 PyThreadState* __tstate = wxPyBeginAllowThreads();
6377 (arg1)->SetOwner(arg2,arg3);
6378
6379 wxPyEndAllowThreads(__tstate);
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
6382 Py_INCREF(Py_None); resultobj = Py_None;
6383 return resultobj;
6384 fail:
6385 return NULL;
6386 }
6387
6388
6389 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6390 PyObject *resultobj;
6391 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6392 int arg2 = (int) -1 ;
6393 bool arg3 = (bool) False ;
6394 bool result;
6395 PyObject * obj0 = 0 ;
6396 PyObject * obj1 = 0 ;
6397 PyObject * obj2 = 0 ;
6398 char *kwnames[] = {
6399 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6400 };
6401
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6405 if (obj1) {
6406 arg2 = (int) SWIG_AsInt(obj1);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 if (obj2) {
6410 arg3 = (bool) SWIG_AsBool(obj2);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 result = (bool)(arg1)->Start(arg2,arg3);
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 {
6421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6422 }
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6430 PyObject *resultobj;
6431 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6432 PyObject * obj0 = 0 ;
6433 char *kwnames[] = {
6434 (char *) "self", NULL
6435 };
6436
6437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6440 {
6441 PyThreadState* __tstate = wxPyBeginAllowThreads();
6442 (arg1)->Stop();
6443
6444 wxPyEndAllowThreads(__tstate);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 Py_INCREF(Py_None); resultobj = Py_None;
6448 return resultobj;
6449 fail:
6450 return NULL;
6451 }
6452
6453
6454 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6455 PyObject *resultobj;
6456 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6457 bool result;
6458 PyObject * obj0 = 0 ;
6459 char *kwnames[] = {
6460 (char *) "self", NULL
6461 };
6462
6463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6466 {
6467 PyThreadState* __tstate = wxPyBeginAllowThreads();
6468 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6469
6470 wxPyEndAllowThreads(__tstate);
6471 if (PyErr_Occurred()) SWIG_fail;
6472 }
6473 {
6474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6475 }
6476 return resultobj;
6477 fail:
6478 return NULL;
6479 }
6480
6481
6482 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6483 PyObject *resultobj;
6484 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6485 int result;
6486 PyObject * obj0 = 0 ;
6487 char *kwnames[] = {
6488 (char *) "self", NULL
6489 };
6490
6491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6494 {
6495 PyThreadState* __tstate = wxPyBeginAllowThreads();
6496 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6497
6498 wxPyEndAllowThreads(__tstate);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 resultobj = SWIG_FromInt((int)result);
6502 return resultobj;
6503 fail:
6504 return NULL;
6505 }
6506
6507
6508 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6509 PyObject *resultobj;
6510 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6511 bool result;
6512 PyObject * obj0 = 0 ;
6513 char *kwnames[] = {
6514 (char *) "self", NULL
6515 };
6516
6517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6520 {
6521 PyThreadState* __tstate = wxPyBeginAllowThreads();
6522 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6523
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 {
6528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6529 }
6530 return resultobj;
6531 fail:
6532 return NULL;
6533 }
6534
6535
6536 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6537 PyObject *resultobj;
6538 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6539 int result;
6540 PyObject * obj0 = 0 ;
6541 char *kwnames[] = {
6542 (char *) "self", NULL
6543 };
6544
6545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6548 {
6549 PyThreadState* __tstate = wxPyBeginAllowThreads();
6550 result = (int)((wxPyTimer const *)arg1)->GetId();
6551
6552 wxPyEndAllowThreads(__tstate);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_FromInt((int)result);
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6563 PyObject *obj;
6564 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6565 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6566 Py_INCREF(obj);
6567 return Py_BuildValue((char *)"");
6568 }
6569 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6570 PyObject *resultobj;
6571 int arg1 = (int) 0 ;
6572 int arg2 = (int) 0 ;
6573 wxTimerEvent *result;
6574 PyObject * obj0 = 0 ;
6575 PyObject * obj1 = 0 ;
6576 char *kwnames[] = {
6577 (char *) "timerid",(char *) "interval", NULL
6578 };
6579
6580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6581 if (obj0) {
6582 arg1 = (int) SWIG_AsInt(obj0);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 if (obj1) {
6586 arg2 = (int) SWIG_AsInt(obj1);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6597 return resultobj;
6598 fail:
6599 return NULL;
6600 }
6601
6602
6603 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj;
6605 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6606 int result;
6607 PyObject * obj0 = 0 ;
6608 char *kwnames[] = {
6609 (char *) "self", NULL
6610 };
6611
6612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6615 {
6616 PyThreadState* __tstate = wxPyBeginAllowThreads();
6617 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6618
6619 wxPyEndAllowThreads(__tstate);
6620 if (PyErr_Occurred()) SWIG_fail;
6621 }
6622 resultobj = SWIG_FromInt((int)result);
6623 return resultobj;
6624 fail:
6625 return NULL;
6626 }
6627
6628
6629 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6630 PyObject *obj;
6631 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6632 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6633 Py_INCREF(obj);
6634 return Py_BuildValue((char *)"");
6635 }
6636 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6637 PyObject *resultobj;
6638 wxTimer *arg1 = 0 ;
6639 wxTimerRunner *result;
6640 PyObject * obj0 = 0 ;
6641
6642 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6644 SWIG_POINTER_EXCEPTION | 0)) == -1)
6645 SWIG_fail;
6646 if (arg1 == NULL) {
6647 PyErr_SetString(PyExc_TypeError,"null reference");
6648 SWIG_fail;
6649 }
6650 {
6651 PyThreadState* __tstate = wxPyBeginAllowThreads();
6652 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6653
6654 wxPyEndAllowThreads(__tstate);
6655 if (PyErr_Occurred()) SWIG_fail;
6656 }
6657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6658 return resultobj;
6659 fail:
6660 return NULL;
6661 }
6662
6663
6664 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6665 PyObject *resultobj;
6666 wxTimer *arg1 = 0 ;
6667 int arg2 ;
6668 bool arg3 = (bool) False ;
6669 wxTimerRunner *result;
6670 PyObject * obj0 = 0 ;
6671 PyObject * obj1 = 0 ;
6672 PyObject * obj2 = 0 ;
6673
6674 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6676 SWIG_POINTER_EXCEPTION | 0)) == -1)
6677 SWIG_fail;
6678 if (arg1 == NULL) {
6679 PyErr_SetString(PyExc_TypeError,"null reference");
6680 SWIG_fail;
6681 }
6682 arg2 = (int) SWIG_AsInt(obj1);
6683 if (PyErr_Occurred()) SWIG_fail;
6684 if (obj2) {
6685 arg3 = (bool) SWIG_AsBool(obj2);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 {
6689 PyThreadState* __tstate = wxPyBeginAllowThreads();
6690 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6691
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6696 return resultobj;
6697 fail:
6698 return NULL;
6699 }
6700
6701
6702 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6703 int argc;
6704 PyObject *argv[4];
6705 int ii;
6706
6707 argc = PyObject_Length(args);
6708 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6709 argv[ii] = PyTuple_GetItem(args,ii);
6710 }
6711 if (argc == 1) {
6712 int _v;
6713 {
6714 void *ptr;
6715 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6716 _v = 0;
6717 PyErr_Clear();
6718 } else {
6719 _v = 1;
6720 }
6721 }
6722 if (_v) {
6723 return _wrap_new_TimerRunner__SWIG_0(self,args);
6724 }
6725 }
6726 if ((argc >= 2) && (argc <= 3)) {
6727 int _v;
6728 {
6729 void *ptr;
6730 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6731 _v = 0;
6732 PyErr_Clear();
6733 } else {
6734 _v = 1;
6735 }
6736 }
6737 if (_v) {
6738 _v = SWIG_CheckInt(argv[1]);
6739 if (_v) {
6740 if (argc <= 2) {
6741 return _wrap_new_TimerRunner__SWIG_1(self,args);
6742 }
6743 _v = SWIG_CheckBool(argv[2]);
6744 if (_v) {
6745 return _wrap_new_TimerRunner__SWIG_1(self,args);
6746 }
6747 }
6748 }
6749 }
6750
6751 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6752 return NULL;
6753 }
6754
6755
6756 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj;
6758 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6759 PyObject * obj0 = 0 ;
6760 char *kwnames[] = {
6761 (char *) "self", NULL
6762 };
6763
6764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6767 {
6768 PyThreadState* __tstate = wxPyBeginAllowThreads();
6769 delete arg1;
6770
6771 wxPyEndAllowThreads(__tstate);
6772 if (PyErr_Occurred()) SWIG_fail;
6773 }
6774 Py_INCREF(Py_None); resultobj = Py_None;
6775 return resultobj;
6776 fail:
6777 return NULL;
6778 }
6779
6780
6781 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6782 PyObject *resultobj;
6783 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6784 int arg2 ;
6785 bool arg3 = (bool) False ;
6786 PyObject * obj0 = 0 ;
6787 PyObject * obj1 = 0 ;
6788 PyObject * obj2 = 0 ;
6789 char *kwnames[] = {
6790 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6791 };
6792
6793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6796 arg2 = (int) SWIG_AsInt(obj1);
6797 if (PyErr_Occurred()) SWIG_fail;
6798 if (obj2) {
6799 arg3 = (bool) SWIG_AsBool(obj2);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 {
6803 PyThreadState* __tstate = wxPyBeginAllowThreads();
6804 (arg1)->Start(arg2,arg3);
6805
6806 wxPyEndAllowThreads(__tstate);
6807 if (PyErr_Occurred()) SWIG_fail;
6808 }
6809 Py_INCREF(Py_None); resultobj = Py_None;
6810 return resultobj;
6811 fail:
6812 return NULL;
6813 }
6814
6815
6816 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6817 PyObject *obj;
6818 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6819 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6820 Py_INCREF(obj);
6821 return Py_BuildValue((char *)"");
6822 }
6823 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6824 PyObject *resultobj;
6825 wxLog *result;
6826 char *kwnames[] = {
6827 NULL
6828 };
6829
6830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6831 {
6832 PyThreadState* __tstate = wxPyBeginAllowThreads();
6833 result = (wxLog *)new wxLog();
6834
6835 wxPyEndAllowThreads(__tstate);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 }
6838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6839 return resultobj;
6840 fail:
6841 return NULL;
6842 }
6843
6844
6845 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj;
6847 bool result;
6848 char *kwnames[] = {
6849 NULL
6850 };
6851
6852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6853 {
6854 PyThreadState* __tstate = wxPyBeginAllowThreads();
6855 result = (bool)wxLog::IsEnabled();
6856
6857 wxPyEndAllowThreads(__tstate);
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 {
6861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6862 }
6863 return resultobj;
6864 fail:
6865 return NULL;
6866 }
6867
6868
6869 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6870 PyObject *resultobj;
6871 bool arg1 = (bool) True ;
6872 bool result;
6873 PyObject * obj0 = 0 ;
6874 char *kwnames[] = {
6875 (char *) "doIt", NULL
6876 };
6877
6878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6879 if (obj0) {
6880 arg1 = (bool) SWIG_AsBool(obj0);
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 {
6884 PyThreadState* __tstate = wxPyBeginAllowThreads();
6885 result = (bool)wxLog::EnableLogging(arg1);
6886
6887 wxPyEndAllowThreads(__tstate);
6888 if (PyErr_Occurred()) SWIG_fail;
6889 }
6890 {
6891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6892 }
6893 return resultobj;
6894 fail:
6895 return NULL;
6896 }
6897
6898
6899 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6900 PyObject *resultobj;
6901 wxLogLevel arg1 ;
6902 wxChar *arg2 = (wxChar *) 0 ;
6903 time_t arg3 ;
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 PyObject * obj2 = 0 ;
6907 char *kwnames[] = {
6908 (char *) "level",(char *) "szString",(char *) "t", NULL
6909 };
6910
6911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6912 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
6913 if (PyErr_Occurred()) SWIG_fail;
6914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
6915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6916 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6921
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 Py_INCREF(Py_None); resultobj = Py_None;
6926 return resultobj;
6927 fail:
6928 return NULL;
6929 }
6930
6931
6932 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj;
6934 wxLog *arg1 = (wxLog *) 0 ;
6935 PyObject * obj0 = 0 ;
6936 char *kwnames[] = {
6937 (char *) "self", NULL
6938 };
6939
6940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6943 {
6944 PyThreadState* __tstate = wxPyBeginAllowThreads();
6945 (arg1)->Flush();
6946
6947 wxPyEndAllowThreads(__tstate);
6948 if (PyErr_Occurred()) SWIG_fail;
6949 }
6950 Py_INCREF(Py_None); resultobj = Py_None;
6951 return resultobj;
6952 fail:
6953 return NULL;
6954 }
6955
6956
6957 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6958 PyObject *resultobj;
6959 char *kwnames[] = {
6960 NULL
6961 };
6962
6963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6964 {
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 wxLog::FlushActive();
6967
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 Py_INCREF(Py_None); resultobj = Py_None;
6972 return resultobj;
6973 fail:
6974 return NULL;
6975 }
6976
6977
6978 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6979 PyObject *resultobj;
6980 wxLog *result;
6981 char *kwnames[] = {
6982 NULL
6983 };
6984
6985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6986 {
6987 PyThreadState* __tstate = wxPyBeginAllowThreads();
6988 result = (wxLog *)wxLog::GetActiveTarget();
6989
6990 wxPyEndAllowThreads(__tstate);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
6994 return resultobj;
6995 fail:
6996 return NULL;
6997 }
6998
6999
7000 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj;
7002 wxLog *arg1 = (wxLog *) 0 ;
7003 wxLog *result;
7004 PyObject * obj0 = 0 ;
7005 char *kwnames[] = {
7006 (char *) "pLogger", NULL
7007 };
7008
7009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7012 {
7013 PyThreadState* __tstate = wxPyBeginAllowThreads();
7014 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7015
7016 wxPyEndAllowThreads(__tstate);
7017 if (PyErr_Occurred()) SWIG_fail;
7018 }
7019 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 char *kwnames[] = {
7029 NULL
7030 };
7031
7032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7033 {
7034 PyThreadState* __tstate = wxPyBeginAllowThreads();
7035 wxLog::Suspend();
7036
7037 wxPyEndAllowThreads(__tstate);
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 Py_INCREF(Py_None); resultobj = Py_None;
7041 return resultobj;
7042 fail:
7043 return NULL;
7044 }
7045
7046
7047 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 char *kwnames[] = {
7050 NULL
7051 };
7052
7053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7054 {
7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
7056 wxLog::Resume();
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_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject *resultobj;
7070 bool arg1 = (bool) True ;
7071 PyObject * obj0 = 0 ;
7072 char *kwnames[] = {
7073 (char *) "bVerbose", NULL
7074 };
7075
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7077 if (obj0) {
7078 arg1 = (bool) SWIG_AsBool(obj0);
7079 if (PyErr_Occurred()) SWIG_fail;
7080 }
7081 {
7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
7083 wxLog::SetVerbose(arg1);
7084
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) SWIG_fail;
7087 }
7088 Py_INCREF(Py_None); resultobj = Py_None;
7089 return resultobj;
7090 fail:
7091 return NULL;
7092 }
7093
7094
7095 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7096 PyObject *resultobj;
7097 wxLogLevel arg1 ;
7098 PyObject * obj0 = 0 ;
7099 char *kwnames[] = {
7100 (char *) "logLevel", NULL
7101 };
7102
7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7104 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 {
7107 PyThreadState* __tstate = wxPyBeginAllowThreads();
7108 wxLog::SetLogLevel(arg1);
7109
7110 wxPyEndAllowThreads(__tstate);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 Py_INCREF(Py_None); resultobj = Py_None;
7114 return resultobj;
7115 fail:
7116 return NULL;
7117 }
7118
7119
7120 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7121 PyObject *resultobj;
7122 char *kwnames[] = {
7123 NULL
7124 };
7125
7126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7127 {
7128 PyThreadState* __tstate = wxPyBeginAllowThreads();
7129 wxLog::DontCreateOnDemand();
7130
7131 wxPyEndAllowThreads(__tstate);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 Py_INCREF(Py_None); resultobj = Py_None;
7135 return resultobj;
7136 fail:
7137 return NULL;
7138 }
7139
7140
7141 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7142 PyObject *resultobj;
7143 wxTraceMask arg1 ;
7144 PyObject * obj0 = 0 ;
7145 char *kwnames[] = {
7146 (char *) "ulMask", NULL
7147 };
7148
7149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7150 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 {
7153 PyThreadState* __tstate = wxPyBeginAllowThreads();
7154 wxLog::SetTraceMask(arg1);
7155
7156 wxPyEndAllowThreads(__tstate);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 }
7159 Py_INCREF(Py_None); resultobj = Py_None;
7160 return resultobj;
7161 fail:
7162 return NULL;
7163 }
7164
7165
7166 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7167 PyObject *resultobj;
7168 wxString *arg1 = 0 ;
7169 bool temp1 = False ;
7170 PyObject * obj0 = 0 ;
7171 char *kwnames[] = {
7172 (char *) "str", NULL
7173 };
7174
7175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7176 {
7177 arg1 = wxString_in_helper(obj0);
7178 if (arg1 == NULL) SWIG_fail;
7179 temp1 = True;
7180 }
7181 {
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 wxLog::AddTraceMask((wxString const &)*arg1);
7184
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) SWIG_fail;
7187 }
7188 Py_INCREF(Py_None); resultobj = Py_None;
7189 {
7190 if (temp1)
7191 delete arg1;
7192 }
7193 return resultobj;
7194 fail:
7195 {
7196 if (temp1)
7197 delete arg1;
7198 }
7199 return NULL;
7200 }
7201
7202
7203 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj;
7205 wxString *arg1 = 0 ;
7206 bool temp1 = False ;
7207 PyObject * obj0 = 0 ;
7208 char *kwnames[] = {
7209 (char *) "str", NULL
7210 };
7211
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7213 {
7214 arg1 = wxString_in_helper(obj0);
7215 if (arg1 == NULL) SWIG_fail;
7216 temp1 = True;
7217 }
7218 {
7219 PyThreadState* __tstate = wxPyBeginAllowThreads();
7220 wxLog::RemoveTraceMask((wxString const &)*arg1);
7221
7222 wxPyEndAllowThreads(__tstate);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 Py_INCREF(Py_None); resultobj = Py_None;
7226 {
7227 if (temp1)
7228 delete arg1;
7229 }
7230 return resultobj;
7231 fail:
7232 {
7233 if (temp1)
7234 delete arg1;
7235 }
7236 return NULL;
7237 }
7238
7239
7240 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7241 PyObject *resultobj;
7242 char *kwnames[] = {
7243 NULL
7244 };
7245
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 wxLog::ClearTraceMasks();
7250
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 Py_INCREF(Py_None); resultobj = Py_None;
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj;
7263 wxArrayString *result;
7264 char *kwnames[] = {
7265 NULL
7266 };
7267
7268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7269 {
7270 PyThreadState* __tstate = wxPyBeginAllowThreads();
7271 {
7272 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7273 result = (wxArrayString *) &_result_ref;
7274 }
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 {
7280 resultobj = wxArrayString2PyList_helper(*result);
7281 }
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj;
7290 wxChar *arg1 = (wxChar *) 0 ;
7291 PyObject * obj0 = 0 ;
7292 char *kwnames[] = {
7293 (char *) "ts", NULL
7294 };
7295
7296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7299 {
7300 PyThreadState* __tstate = wxPyBeginAllowThreads();
7301 wxLog::SetTimestamp((wxChar const *)arg1);
7302
7303 wxPyEndAllowThreads(__tstate);
7304 if (PyErr_Occurred()) SWIG_fail;
7305 }
7306 Py_INCREF(Py_None); resultobj = Py_None;
7307 return resultobj;
7308 fail:
7309 return NULL;
7310 }
7311
7312
7313 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7314 PyObject *resultobj;
7315 bool result;
7316 char *kwnames[] = {
7317 NULL
7318 };
7319
7320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7321 {
7322 PyThreadState* __tstate = wxPyBeginAllowThreads();
7323 result = (bool)wxLog::GetVerbose();
7324
7325 wxPyEndAllowThreads(__tstate);
7326 if (PyErr_Occurred()) SWIG_fail;
7327 }
7328 {
7329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7330 }
7331 return resultobj;
7332 fail:
7333 return NULL;
7334 }
7335
7336
7337 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj;
7339 wxTraceMask result;
7340 char *kwnames[] = {
7341 NULL
7342 };
7343
7344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = (wxTraceMask)wxLog::GetTraceMask();
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
7352 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7353 return resultobj;
7354 fail:
7355 return NULL;
7356 }
7357
7358
7359 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7360 PyObject *resultobj;
7361 wxChar *arg1 = (wxChar *) 0 ;
7362 bool result;
7363 PyObject * obj0 = 0 ;
7364 char *kwnames[] = {
7365 (char *) "mask", NULL
7366 };
7367
7368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7371 {
7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
7373 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7374
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 {
7379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7380 }
7381 return resultobj;
7382 fail:
7383 return NULL;
7384 }
7385
7386
7387 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 wxLogLevel result;
7390 char *kwnames[] = {
7391 NULL
7392 };
7393
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7395 {
7396 PyThreadState* __tstate = wxPyBeginAllowThreads();
7397 result = (wxLogLevel)wxLog::GetLogLevel();
7398
7399 wxPyEndAllowThreads(__tstate);
7400 if (PyErr_Occurred()) SWIG_fail;
7401 }
7402 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7403 return resultobj;
7404 fail:
7405 return NULL;
7406 }
7407
7408
7409 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7410 PyObject *resultobj;
7411 wxChar *result;
7412 char *kwnames[] = {
7413 NULL
7414 };
7415
7416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 result = (wxChar *)wxLog::GetTimestamp();
7420
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7425 return resultobj;
7426 fail:
7427 return NULL;
7428 }
7429
7430
7431 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj;
7433 wxString result;
7434 char *kwnames[] = {
7435 NULL
7436 };
7437
7438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 result = Log_TimeStamp();
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 {
7447 #if wxUSE_UNICODE
7448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7449 #else
7450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7451 #endif
7452 }
7453 return resultobj;
7454 fail:
7455 return NULL;
7456 }
7457
7458
7459 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7460 PyObject *resultobj;
7461 wxLog *arg1 = (wxLog *) 0 ;
7462 PyObject * obj0 = 0 ;
7463 char *kwnames[] = {
7464 (char *) "self", NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7470 {
7471 PyThreadState* __tstate = wxPyBeginAllowThreads();
7472 wxLog_Destroy(arg1);
7473
7474 wxPyEndAllowThreads(__tstate);
7475 if (PyErr_Occurred()) SWIG_fail;
7476 }
7477 Py_INCREF(Py_None); resultobj = Py_None;
7478 return resultobj;
7479 fail:
7480 return NULL;
7481 }
7482
7483
7484 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7485 PyObject *obj;
7486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7487 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7488 Py_INCREF(obj);
7489 return Py_BuildValue((char *)"");
7490 }
7491 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7492 PyObject *resultobj;
7493 wxLogStderr *result;
7494 char *kwnames[] = {
7495 NULL
7496 };
7497
7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7499 {
7500 PyThreadState* __tstate = wxPyBeginAllowThreads();
7501 result = (wxLogStderr *)new wxLogStderr();
7502
7503 wxPyEndAllowThreads(__tstate);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7507 return resultobj;
7508 fail:
7509 return NULL;
7510 }
7511
7512
7513 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7514 PyObject *obj;
7515 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7516 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7517 Py_INCREF(obj);
7518 return Py_BuildValue((char *)"");
7519 }
7520 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7521 PyObject *resultobj;
7522 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7523 wxLogTextCtrl *result;
7524 PyObject * obj0 = 0 ;
7525 char *kwnames[] = {
7526 (char *) "pTextCtrl", NULL
7527 };
7528
7529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7532 {
7533 PyThreadState* __tstate = wxPyBeginAllowThreads();
7534 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7535
7536 wxPyEndAllowThreads(__tstate);
7537 if (PyErr_Occurred()) SWIG_fail;
7538 }
7539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7540 return resultobj;
7541 fail:
7542 return NULL;
7543 }
7544
7545
7546 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7547 PyObject *obj;
7548 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7549 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7550 Py_INCREF(obj);
7551 return Py_BuildValue((char *)"");
7552 }
7553 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7554 PyObject *resultobj;
7555 wxLogGui *result;
7556 char *kwnames[] = {
7557 NULL
7558 };
7559
7560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = (wxLogGui *)new wxLogGui();
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7569 return resultobj;
7570 fail:
7571 return NULL;
7572 }
7573
7574
7575 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7576 PyObject *obj;
7577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7578 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7579 Py_INCREF(obj);
7580 return Py_BuildValue((char *)"");
7581 }
7582 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7583 PyObject *resultobj;
7584 wxFrame *arg1 = (wxFrame *) 0 ;
7585 wxString *arg2 = 0 ;
7586 bool arg3 = (bool) True ;
7587 bool arg4 = (bool) True ;
7588 wxLogWindow *result;
7589 bool temp2 = False ;
7590 PyObject * obj0 = 0 ;
7591 PyObject * obj1 = 0 ;
7592 PyObject * obj2 = 0 ;
7593 PyObject * obj3 = 0 ;
7594 char *kwnames[] = {
7595 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7596 };
7597
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7601 {
7602 arg2 = wxString_in_helper(obj1);
7603 if (arg2 == NULL) SWIG_fail;
7604 temp2 = True;
7605 }
7606 if (obj2) {
7607 arg3 = (bool) SWIG_AsBool(obj2);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 if (obj3) {
7611 arg4 = (bool) SWIG_AsBool(obj3);
7612 if (PyErr_Occurred()) SWIG_fail;
7613 }
7614 {
7615 PyThreadState* __tstate = wxPyBeginAllowThreads();
7616 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7617
7618 wxPyEndAllowThreads(__tstate);
7619 if (PyErr_Occurred()) SWIG_fail;
7620 }
7621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7622 {
7623 if (temp2)
7624 delete arg2;
7625 }
7626 return resultobj;
7627 fail:
7628 {
7629 if (temp2)
7630 delete arg2;
7631 }
7632 return NULL;
7633 }
7634
7635
7636 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj;
7638 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7639 bool arg2 = (bool) True ;
7640 PyObject * obj0 = 0 ;
7641 PyObject * obj1 = 0 ;
7642 char *kwnames[] = {
7643 (char *) "self",(char *) "bShow", NULL
7644 };
7645
7646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7649 if (obj1) {
7650 arg2 = (bool) SWIG_AsBool(obj1);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 {
7654 PyThreadState* __tstate = wxPyBeginAllowThreads();
7655 (arg1)->Show(arg2);
7656
7657 wxPyEndAllowThreads(__tstate);
7658 if (PyErr_Occurred()) SWIG_fail;
7659 }
7660 Py_INCREF(Py_None); resultobj = Py_None;
7661 return resultobj;
7662 fail:
7663 return NULL;
7664 }
7665
7666
7667 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7668 PyObject *resultobj;
7669 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7670 wxFrame *result;
7671 PyObject * obj0 = 0 ;
7672 char *kwnames[] = {
7673 (char *) "self", NULL
7674 };
7675
7676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7679 {
7680 PyThreadState* __tstate = wxPyBeginAllowThreads();
7681 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7682
7683 wxPyEndAllowThreads(__tstate);
7684 if (PyErr_Occurred()) SWIG_fail;
7685 }
7686 {
7687 resultobj = wxPyMake_wxObject(result);
7688 }
7689 return resultobj;
7690 fail:
7691 return NULL;
7692 }
7693
7694
7695 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7696 PyObject *resultobj;
7697 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7698 wxLog *result;
7699 PyObject * obj0 = 0 ;
7700 char *kwnames[] = {
7701 (char *) "self", NULL
7702 };
7703
7704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7707 {
7708 PyThreadState* __tstate = wxPyBeginAllowThreads();
7709 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7710
7711 wxPyEndAllowThreads(__tstate);
7712 if (PyErr_Occurred()) SWIG_fail;
7713 }
7714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7715 return resultobj;
7716 fail:
7717 return NULL;
7718 }
7719
7720
7721 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7722 PyObject *resultobj;
7723 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7724 bool result;
7725 PyObject * obj0 = 0 ;
7726 char *kwnames[] = {
7727 (char *) "self", NULL
7728 };
7729
7730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7733 {
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7736
7737 wxPyEndAllowThreads(__tstate);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 {
7741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7742 }
7743 return resultobj;
7744 fail:
7745 return NULL;
7746 }
7747
7748
7749 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj;
7751 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7752 bool arg2 ;
7753 PyObject * obj0 = 0 ;
7754 PyObject * obj1 = 0 ;
7755 char *kwnames[] = {
7756 (char *) "self",(char *) "bDoPass", NULL
7757 };
7758
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7762 arg2 = (bool) SWIG_AsBool(obj1);
7763 if (PyErr_Occurred()) SWIG_fail;
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 (arg1)->PassMessages(arg2);
7767
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 Py_INCREF(Py_None); resultobj = Py_None;
7772 return resultobj;
7773 fail:
7774 return NULL;
7775 }
7776
7777
7778 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7779 PyObject *obj;
7780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7781 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7782 Py_INCREF(obj);
7783 return Py_BuildValue((char *)"");
7784 }
7785 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7786 PyObject *resultobj;
7787 wxLog *arg1 = (wxLog *) 0 ;
7788 wxLogChain *result;
7789 PyObject * obj0 = 0 ;
7790 char *kwnames[] = {
7791 (char *) "logger", NULL
7792 };
7793
7794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7797 {
7798 PyThreadState* __tstate = wxPyBeginAllowThreads();
7799 result = (wxLogChain *)new wxLogChain(arg1);
7800
7801 wxPyEndAllowThreads(__tstate);
7802 if (PyErr_Occurred()) SWIG_fail;
7803 }
7804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7805 return resultobj;
7806 fail:
7807 return NULL;
7808 }
7809
7810
7811 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7812 PyObject *resultobj;
7813 wxLogChain *arg1 = (wxLogChain *) 0 ;
7814 wxLog *arg2 = (wxLog *) 0 ;
7815 PyObject * obj0 = 0 ;
7816 PyObject * obj1 = 0 ;
7817 char *kwnames[] = {
7818 (char *) "self",(char *) "logger", NULL
7819 };
7820
7821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7824 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 (arg1)->SetLog(arg2);
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 Py_INCREF(Py_None); resultobj = Py_None;
7834 return resultobj;
7835 fail:
7836 return NULL;
7837 }
7838
7839
7840 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7841 PyObject *resultobj;
7842 wxLogChain *arg1 = (wxLogChain *) 0 ;
7843 bool arg2 ;
7844 PyObject * obj0 = 0 ;
7845 PyObject * obj1 = 0 ;
7846 char *kwnames[] = {
7847 (char *) "self",(char *) "bDoPass", NULL
7848 };
7849
7850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7853 arg2 = (bool) SWIG_AsBool(obj1);
7854 if (PyErr_Occurred()) SWIG_fail;
7855 {
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 (arg1)->PassMessages(arg2);
7858
7859 wxPyEndAllowThreads(__tstate);
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 Py_INCREF(Py_None); resultobj = Py_None;
7863 return resultobj;
7864 fail:
7865 return NULL;
7866 }
7867
7868
7869 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7870 PyObject *resultobj;
7871 wxLogChain *arg1 = (wxLogChain *) 0 ;
7872 bool result;
7873 PyObject * obj0 = 0 ;
7874 char *kwnames[] = {
7875 (char *) "self", NULL
7876 };
7877
7878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7881 {
7882 PyThreadState* __tstate = wxPyBeginAllowThreads();
7883 result = (bool)(arg1)->IsPassingMessages();
7884
7885 wxPyEndAllowThreads(__tstate);
7886 if (PyErr_Occurred()) SWIG_fail;
7887 }
7888 {
7889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7890 }
7891 return resultobj;
7892 fail:
7893 return NULL;
7894 }
7895
7896
7897 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7898 PyObject *resultobj;
7899 wxLogChain *arg1 = (wxLogChain *) 0 ;
7900 wxLog *result;
7901 PyObject * obj0 = 0 ;
7902 char *kwnames[] = {
7903 (char *) "self", NULL
7904 };
7905
7906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7909 {
7910 PyThreadState* __tstate = wxPyBeginAllowThreads();
7911 result = (wxLog *)(arg1)->GetOldLog();
7912
7913 wxPyEndAllowThreads(__tstate);
7914 if (PyErr_Occurred()) SWIG_fail;
7915 }
7916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7917 return resultobj;
7918 fail:
7919 return NULL;
7920 }
7921
7922
7923 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7924 PyObject *obj;
7925 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7926 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7927 Py_INCREF(obj);
7928 return Py_BuildValue((char *)"");
7929 }
7930 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7931 PyObject *resultobj;
7932 unsigned long result;
7933 char *kwnames[] = {
7934 NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (unsigned long)wxSysErrorCode();
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj;
7954 unsigned long arg1 = (unsigned long) 0 ;
7955 wxString result;
7956 PyObject * obj0 = 0 ;
7957 char *kwnames[] = {
7958 (char *) "nErrCode", NULL
7959 };
7960
7961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7962 if (obj0) {
7963 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
7964 if (PyErr_Occurred()) SWIG_fail;
7965 }
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = wxSysErrorMsg(arg1);
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 {
7974 #if wxUSE_UNICODE
7975 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7976 #else
7977 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7978 #endif
7979 }
7980 return resultobj;
7981 fail:
7982 return NULL;
7983 }
7984
7985
7986 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 wxString *arg1 = 0 ;
7989 bool temp1 = False ;
7990 PyObject * obj0 = 0 ;
7991 char *kwnames[] = {
7992 (char *) "msg", NULL
7993 };
7994
7995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7996 {
7997 arg1 = wxString_in_helper(obj0);
7998 if (arg1 == NULL) SWIG_fail;
7999 temp1 = True;
8000 }
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 wxLogFatalError((wxString const &)*arg1);
8004
8005 wxPyEndAllowThreads(__tstate);
8006 if (PyErr_Occurred()) SWIG_fail;
8007 }
8008 Py_INCREF(Py_None); resultobj = Py_None;
8009 {
8010 if (temp1)
8011 delete arg1;
8012 }
8013 return resultobj;
8014 fail:
8015 {
8016 if (temp1)
8017 delete arg1;
8018 }
8019 return NULL;
8020 }
8021
8022
8023 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8024 PyObject *resultobj;
8025 wxString *arg1 = 0 ;
8026 bool temp1 = False ;
8027 PyObject * obj0 = 0 ;
8028 char *kwnames[] = {
8029 (char *) "msg", NULL
8030 };
8031
8032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8033 {
8034 arg1 = wxString_in_helper(obj0);
8035 if (arg1 == NULL) SWIG_fail;
8036 temp1 = True;
8037 }
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 wxLogError((wxString const &)*arg1);
8041
8042 wxPyEndAllowThreads(__tstate);
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 Py_INCREF(Py_None); resultobj = Py_None;
8046 {
8047 if (temp1)
8048 delete arg1;
8049 }
8050 return resultobj;
8051 fail:
8052 {
8053 if (temp1)
8054 delete arg1;
8055 }
8056 return NULL;
8057 }
8058
8059
8060 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj;
8062 wxString *arg1 = 0 ;
8063 bool temp1 = False ;
8064 PyObject * obj0 = 0 ;
8065 char *kwnames[] = {
8066 (char *) "msg", NULL
8067 };
8068
8069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8070 {
8071 arg1 = wxString_in_helper(obj0);
8072 if (arg1 == NULL) SWIG_fail;
8073 temp1 = True;
8074 }
8075 {
8076 PyThreadState* __tstate = wxPyBeginAllowThreads();
8077 wxLogWarning((wxString const &)*arg1);
8078
8079 wxPyEndAllowThreads(__tstate);
8080 if (PyErr_Occurred()) SWIG_fail;
8081 }
8082 Py_INCREF(Py_None); resultobj = Py_None;
8083 {
8084 if (temp1)
8085 delete arg1;
8086 }
8087 return resultobj;
8088 fail:
8089 {
8090 if (temp1)
8091 delete arg1;
8092 }
8093 return NULL;
8094 }
8095
8096
8097 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8098 PyObject *resultobj;
8099 wxString *arg1 = 0 ;
8100 bool temp1 = False ;
8101 PyObject * obj0 = 0 ;
8102 char *kwnames[] = {
8103 (char *) "msg", NULL
8104 };
8105
8106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8107 {
8108 arg1 = wxString_in_helper(obj0);
8109 if (arg1 == NULL) SWIG_fail;
8110 temp1 = True;
8111 }
8112 {
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 wxLogMessage((wxString const &)*arg1);
8115
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 Py_INCREF(Py_None); resultobj = Py_None;
8120 {
8121 if (temp1)
8122 delete arg1;
8123 }
8124 return resultobj;
8125 fail:
8126 {
8127 if (temp1)
8128 delete arg1;
8129 }
8130 return NULL;
8131 }
8132
8133
8134 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8135 PyObject *resultobj;
8136 wxString *arg1 = 0 ;
8137 bool temp1 = False ;
8138 PyObject * obj0 = 0 ;
8139 char *kwnames[] = {
8140 (char *) "msg", NULL
8141 };
8142
8143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8144 {
8145 arg1 = wxString_in_helper(obj0);
8146 if (arg1 == NULL) SWIG_fail;
8147 temp1 = True;
8148 }
8149 {
8150 PyThreadState* __tstate = wxPyBeginAllowThreads();
8151 wxLogInfo((wxString const &)*arg1);
8152
8153 wxPyEndAllowThreads(__tstate);
8154 if (PyErr_Occurred()) SWIG_fail;
8155 }
8156 Py_INCREF(Py_None); resultobj = Py_None;
8157 {
8158 if (temp1)
8159 delete arg1;
8160 }
8161 return resultobj;
8162 fail:
8163 {
8164 if (temp1)
8165 delete arg1;
8166 }
8167 return NULL;
8168 }
8169
8170
8171 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8172 PyObject *resultobj;
8173 wxString *arg1 = 0 ;
8174 bool temp1 = False ;
8175 PyObject * obj0 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "msg", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8181 {
8182 arg1 = wxString_in_helper(obj0);
8183 if (arg1 == NULL) SWIG_fail;
8184 temp1 = True;
8185 }
8186 {
8187 PyThreadState* __tstate = wxPyBeginAllowThreads();
8188 wxLogDebug((wxString const &)*arg1);
8189
8190 wxPyEndAllowThreads(__tstate);
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 Py_INCREF(Py_None); resultobj = Py_None;
8194 {
8195 if (temp1)
8196 delete arg1;
8197 }
8198 return resultobj;
8199 fail:
8200 {
8201 if (temp1)
8202 delete arg1;
8203 }
8204 return NULL;
8205 }
8206
8207
8208 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj;
8210 wxString *arg1 = 0 ;
8211 bool temp1 = False ;
8212 PyObject * obj0 = 0 ;
8213 char *kwnames[] = {
8214 (char *) "msg", NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8218 {
8219 arg1 = wxString_in_helper(obj0);
8220 if (arg1 == NULL) SWIG_fail;
8221 temp1 = True;
8222 }
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 wxLogVerbose((wxString const &)*arg1);
8226
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 Py_INCREF(Py_None); resultobj = Py_None;
8231 {
8232 if (temp1)
8233 delete arg1;
8234 }
8235 return resultobj;
8236 fail:
8237 {
8238 if (temp1)
8239 delete arg1;
8240 }
8241 return NULL;
8242 }
8243
8244
8245 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 wxString *arg1 = 0 ;
8248 bool temp1 = False ;
8249 PyObject * obj0 = 0 ;
8250 char *kwnames[] = {
8251 (char *) "msg", NULL
8252 };
8253
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8255 {
8256 arg1 = wxString_in_helper(obj0);
8257 if (arg1 == NULL) SWIG_fail;
8258 temp1 = True;
8259 }
8260 {
8261 PyThreadState* __tstate = wxPyBeginAllowThreads();
8262 wxLogStatus((wxString const &)*arg1);
8263
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 Py_INCREF(Py_None); resultobj = Py_None;
8268 {
8269 if (temp1)
8270 delete arg1;
8271 }
8272 return resultobj;
8273 fail:
8274 {
8275 if (temp1)
8276 delete arg1;
8277 }
8278 return NULL;
8279 }
8280
8281
8282 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8283 PyObject *resultobj;
8284 wxFrame *arg1 = (wxFrame *) 0 ;
8285 wxString *arg2 = 0 ;
8286 bool temp2 = False ;
8287 PyObject * obj0 = 0 ;
8288 PyObject * obj1 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "pFrame",(char *) "msg", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8296 {
8297 arg2 = wxString_in_helper(obj1);
8298 if (arg2 == NULL) SWIG_fail;
8299 temp2 = True;
8300 }
8301 {
8302 PyThreadState* __tstate = wxPyBeginAllowThreads();
8303 wxLogStatus(arg1,(wxString const &)*arg2);
8304
8305 wxPyEndAllowThreads(__tstate);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 Py_INCREF(Py_None); resultobj = Py_None;
8309 {
8310 if (temp2)
8311 delete arg2;
8312 }
8313 return resultobj;
8314 fail:
8315 {
8316 if (temp2)
8317 delete arg2;
8318 }
8319 return NULL;
8320 }
8321
8322
8323 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8324 PyObject *resultobj;
8325 wxString *arg1 = 0 ;
8326 bool temp1 = False ;
8327 PyObject * obj0 = 0 ;
8328 char *kwnames[] = {
8329 (char *) "msg", NULL
8330 };
8331
8332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8333 {
8334 arg1 = wxString_in_helper(obj0);
8335 if (arg1 == NULL) SWIG_fail;
8336 temp1 = True;
8337 }
8338 {
8339 PyThreadState* __tstate = wxPyBeginAllowThreads();
8340 wxLogSysError((wxString const &)*arg1);
8341
8342 wxPyEndAllowThreads(__tstate);
8343 if (PyErr_Occurred()) SWIG_fail;
8344 }
8345 Py_INCREF(Py_None); resultobj = Py_None;
8346 {
8347 if (temp1)
8348 delete arg1;
8349 }
8350 return resultobj;
8351 fail:
8352 {
8353 if (temp1)
8354 delete arg1;
8355 }
8356 return NULL;
8357 }
8358
8359
8360 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8361 PyObject *resultobj;
8362 unsigned long arg1 ;
8363 wxString *arg2 = 0 ;
8364 bool temp2 = False ;
8365 PyObject * obj0 = 0 ;
8366 PyObject * obj1 = 0 ;
8367
8368 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8369 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 {
8372 arg2 = wxString_in_helper(obj1);
8373 if (arg2 == NULL) SWIG_fail;
8374 temp2 = True;
8375 }
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 wxLogTrace(arg1,(wxString const &)*arg2);
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 Py_INCREF(Py_None); resultobj = Py_None;
8384 {
8385 if (temp2)
8386 delete arg2;
8387 }
8388 return resultobj;
8389 fail:
8390 {
8391 if (temp2)
8392 delete arg2;
8393 }
8394 return NULL;
8395 }
8396
8397
8398 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8399 PyObject *resultobj;
8400 wxString *arg1 = 0 ;
8401 wxString *arg2 = 0 ;
8402 bool temp1 = False ;
8403 bool temp2 = False ;
8404 PyObject * obj0 = 0 ;
8405 PyObject * obj1 = 0 ;
8406
8407 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8408 {
8409 arg1 = wxString_in_helper(obj0);
8410 if (arg1 == NULL) SWIG_fail;
8411 temp1 = True;
8412 }
8413 {
8414 arg2 = wxString_in_helper(obj1);
8415 if (arg2 == NULL) SWIG_fail;
8416 temp2 = True;
8417 }
8418 {
8419 PyThreadState* __tstate = wxPyBeginAllowThreads();
8420 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8421
8422 wxPyEndAllowThreads(__tstate);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 Py_INCREF(Py_None); resultobj = Py_None;
8426 {
8427 if (temp1)
8428 delete arg1;
8429 }
8430 {
8431 if (temp2)
8432 delete arg2;
8433 }
8434 return resultobj;
8435 fail:
8436 {
8437 if (temp1)
8438 delete arg1;
8439 }
8440 {
8441 if (temp2)
8442 delete arg2;
8443 }
8444 return NULL;
8445 }
8446
8447
8448 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8449 int argc;
8450 PyObject *argv[3];
8451 int ii;
8452
8453 argc = PyObject_Length(args);
8454 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8455 argv[ii] = PyTuple_GetItem(args,ii);
8456 }
8457 if (argc == 2) {
8458 int _v;
8459 {
8460 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8461 }
8462 if (_v) {
8463 {
8464 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8465 }
8466 if (_v) {
8467 return _wrap_LogTrace__SWIG_1(self,args);
8468 }
8469 }
8470 }
8471 if (argc == 2) {
8472 int _v;
8473 _v = SWIG_CheckUnsignedLong(argv[0]);
8474 if (_v) {
8475 {
8476 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8477 }
8478 if (_v) {
8479 return _wrap_LogTrace__SWIG_0(self,args);
8480 }
8481 }
8482 }
8483
8484 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8485 return NULL;
8486 }
8487
8488
8489 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8490 PyObject *resultobj;
8491 unsigned long arg1 ;
8492 wxString *arg2 = 0 ;
8493 bool temp2 = False ;
8494 PyObject * obj0 = 0 ;
8495 PyObject * obj1 = 0 ;
8496 char *kwnames[] = {
8497 (char *) "level",(char *) "msg", NULL
8498 };
8499
8500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8501 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 {
8504 arg2 = wxString_in_helper(obj1);
8505 if (arg2 == NULL) SWIG_fail;
8506 temp2 = True;
8507 }
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 wxLogGeneric(arg1,(wxString const &)*arg2);
8511
8512 wxPyEndAllowThreads(__tstate);
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 Py_INCREF(Py_None); resultobj = Py_None;
8516 {
8517 if (temp2)
8518 delete arg2;
8519 }
8520 return resultobj;
8521 fail:
8522 {
8523 if (temp2)
8524 delete arg2;
8525 }
8526 return NULL;
8527 }
8528
8529
8530 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8531 PyObject *resultobj;
8532 wxString *arg1 = 0 ;
8533 wxString *arg2 = 0 ;
8534 bool temp1 = False ;
8535 bool temp2 = False ;
8536 PyObject * obj0 = 0 ;
8537 PyObject * obj1 = 0 ;
8538 char *kwnames[] = {
8539 (char *) "title",(char *) "text", NULL
8540 };
8541
8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8543 {
8544 arg1 = wxString_in_helper(obj0);
8545 if (arg1 == NULL) SWIG_fail;
8546 temp1 = True;
8547 }
8548 {
8549 arg2 = wxString_in_helper(obj1);
8550 if (arg2 == NULL) SWIG_fail;
8551 temp2 = True;
8552 }
8553 {
8554 PyThreadState* __tstate = wxPyBeginAllowThreads();
8555 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8556
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 Py_INCREF(Py_None); resultobj = Py_None;
8561 {
8562 if (temp1)
8563 delete arg1;
8564 }
8565 {
8566 if (temp2)
8567 delete arg2;
8568 }
8569 return resultobj;
8570 fail:
8571 {
8572 if (temp1)
8573 delete arg1;
8574 }
8575 {
8576 if (temp2)
8577 delete arg2;
8578 }
8579 return NULL;
8580 }
8581
8582
8583 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj;
8585 wxLogNull *result;
8586 char *kwnames[] = {
8587 NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 result = (wxLogNull *)new wxLogNull();
8594
8595 wxPyEndAllowThreads(__tstate);
8596 if (PyErr_Occurred()) SWIG_fail;
8597 }
8598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 wxLogNull *arg1 = (wxLogNull *) 0 ;
8608 PyObject * obj0 = 0 ;
8609 char *kwnames[] = {
8610 (char *) "self", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 delete arg1;
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 Py_INCREF(Py_None); resultobj = Py_None;
8624 return resultobj;
8625 fail:
8626 return NULL;
8627 }
8628
8629
8630 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8631 PyObject *obj;
8632 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8633 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8634 Py_INCREF(obj);
8635 return Py_BuildValue((char *)"");
8636 }
8637 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8638 PyObject *resultobj;
8639 wxPyLog *result;
8640 char *kwnames[] = {
8641 NULL
8642 };
8643
8644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8645 {
8646 PyThreadState* __tstate = wxPyBeginAllowThreads();
8647 result = (wxPyLog *)new wxPyLog();
8648
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8653 return resultobj;
8654 fail:
8655 return NULL;
8656 }
8657
8658
8659 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8660 PyObject *resultobj;
8661 wxPyLog *arg1 = (wxPyLog *) 0 ;
8662 PyObject *arg2 = (PyObject *) 0 ;
8663 PyObject *arg3 = (PyObject *) 0 ;
8664 PyObject * obj0 = 0 ;
8665 PyObject * obj1 = 0 ;
8666 PyObject * obj2 = 0 ;
8667 char *kwnames[] = {
8668 (char *) "self",(char *) "self",(char *) "_class", NULL
8669 };
8670
8671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8674 arg2 = obj1;
8675 arg3 = obj2;
8676 {
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 (arg1)->_setCallbackInfo(arg2,arg3);
8679
8680 wxPyEndAllowThreads(__tstate);
8681 if (PyErr_Occurred()) SWIG_fail;
8682 }
8683 Py_INCREF(Py_None); resultobj = Py_None;
8684 return resultobj;
8685 fail:
8686 return NULL;
8687 }
8688
8689
8690 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8691 PyObject *obj;
8692 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8693 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8694 Py_INCREF(obj);
8695 return Py_BuildValue((char *)"");
8696 }
8697 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8698 PyObject *resultobj;
8699 int arg1 ;
8700 int arg2 = (int) wxSIGTERM ;
8701 int result;
8702 PyObject * obj0 = 0 ;
8703 PyObject * obj1 = 0 ;
8704 char *kwnames[] = {
8705 (char *) "pid",(char *) "sig", NULL
8706 };
8707
8708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8709 arg1 = (int) SWIG_AsInt(obj0);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 if (obj1) {
8712 arg2 = (wxSignal) SWIG_AsInt(obj1);
8713 if (PyErr_Occurred()) SWIG_fail;
8714 }
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8718
8719 wxPyEndAllowThreads(__tstate);
8720 if (PyErr_Occurred()) SWIG_fail;
8721 }
8722 resultobj = SWIG_FromInt((int)result);
8723 return resultobj;
8724 fail:
8725 return NULL;
8726 }
8727
8728
8729 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8730 PyObject *resultobj;
8731 int arg1 ;
8732 bool result;
8733 PyObject * obj0 = 0 ;
8734 char *kwnames[] = {
8735 (char *) "pid", NULL
8736 };
8737
8738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8739 arg1 = (int) SWIG_AsInt(obj0);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 {
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 result = (bool)wxPyProcess::Exists(arg1);
8744
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 {
8749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8750 }
8751 return resultobj;
8752 fail:
8753 return NULL;
8754 }
8755
8756
8757 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8758 PyObject *resultobj;
8759 wxString *arg1 = 0 ;
8760 int arg2 = (int) wxEXEC_ASYNC ;
8761 wxPyProcess *result;
8762 bool temp1 = False ;
8763 PyObject * obj0 = 0 ;
8764 PyObject * obj1 = 0 ;
8765 char *kwnames[] = {
8766 (char *) "cmd",(char *) "flags", NULL
8767 };
8768
8769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8770 {
8771 arg1 = wxString_in_helper(obj0);
8772 if (arg1 == NULL) SWIG_fail;
8773 temp1 = True;
8774 }
8775 if (obj1) {
8776 arg2 = (int) SWIG_AsInt(obj1);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 {
8780 PyThreadState* __tstate = wxPyBeginAllowThreads();
8781 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8782
8783 wxPyEndAllowThreads(__tstate);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8787 {
8788 if (temp1)
8789 delete arg1;
8790 }
8791 return resultobj;
8792 fail:
8793 {
8794 if (temp1)
8795 delete arg1;
8796 }
8797 return NULL;
8798 }
8799
8800
8801 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj;
8803 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8804 int arg2 = (int) -1 ;
8805 wxPyProcess *result;
8806 PyObject * obj0 = 0 ;
8807 PyObject * obj1 = 0 ;
8808 char *kwnames[] = {
8809 (char *) "parent",(char *) "id", NULL
8810 };
8811
8812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8813 if (obj0) {
8814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8816 }
8817 if (obj1) {
8818 arg2 = (int) SWIG_AsInt(obj1);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 {
8822 PyThreadState* __tstate = wxPyBeginAllowThreads();
8823 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8824
8825 wxPyEndAllowThreads(__tstate);
8826 if (PyErr_Occurred()) SWIG_fail;
8827 }
8828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8829 return resultobj;
8830 fail:
8831 return NULL;
8832 }
8833
8834
8835 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8836 PyObject *resultobj;
8837 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8838 PyObject *arg2 = (PyObject *) 0 ;
8839 PyObject *arg3 = (PyObject *) 0 ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 PyObject * obj2 = 0 ;
8843 char *kwnames[] = {
8844 (char *) "self",(char *) "self",(char *) "_class", NULL
8845 };
8846
8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8850 arg2 = obj1;
8851 arg3 = obj2;
8852 {
8853 PyThreadState* __tstate = wxPyBeginAllowThreads();
8854 (arg1)->_setCallbackInfo(arg2,arg3);
8855
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 Py_INCREF(Py_None); resultobj = Py_None;
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj;
8868 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8869 int arg2 ;
8870 int arg3 ;
8871 PyObject * obj0 = 0 ;
8872 PyObject * obj1 = 0 ;
8873 PyObject * obj2 = 0 ;
8874 char *kwnames[] = {
8875 (char *) "self",(char *) "pid",(char *) "status", NULL
8876 };
8877
8878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8881 arg2 = (int) SWIG_AsInt(obj1);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 arg3 = (int) SWIG_AsInt(obj2);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 {
8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
8887 (arg1)->base_OnTerminate(arg2,arg3);
8888
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 Py_INCREF(Py_None); resultobj = Py_None;
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8900 PyObject *resultobj;
8901 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8902 PyObject * obj0 = 0 ;
8903 char *kwnames[] = {
8904 (char *) "self", NULL
8905 };
8906
8907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8910 {
8911 PyThreadState* __tstate = wxPyBeginAllowThreads();
8912 (arg1)->Redirect();
8913
8914 wxPyEndAllowThreads(__tstate);
8915 if (PyErr_Occurred()) SWIG_fail;
8916 }
8917 Py_INCREF(Py_None); resultobj = Py_None;
8918 return resultobj;
8919 fail:
8920 return NULL;
8921 }
8922
8923
8924 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8925 PyObject *resultobj;
8926 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8927 bool result;
8928 PyObject * obj0 = 0 ;
8929 char *kwnames[] = {
8930 (char *) "self", NULL
8931 };
8932
8933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8936 {
8937 PyThreadState* __tstate = wxPyBeginAllowThreads();
8938 result = (bool)(arg1)->IsRedirected();
8939
8940 wxPyEndAllowThreads(__tstate);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 {
8944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8945 }
8946 return resultobj;
8947 fail:
8948 return NULL;
8949 }
8950
8951
8952 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8953 PyObject *resultobj;
8954 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8955 PyObject * obj0 = 0 ;
8956 char *kwnames[] = {
8957 (char *) "self", NULL
8958 };
8959
8960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8963 {
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
8965 (arg1)->Detach();
8966
8967 wxPyEndAllowThreads(__tstate);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 }
8970 Py_INCREF(Py_None); resultobj = Py_None;
8971 return resultobj;
8972 fail:
8973 return NULL;
8974 }
8975
8976
8977 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8978 PyObject *resultobj;
8979 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8980 wxInputStream *result;
8981 PyObject * obj0 = 0 ;
8982 char *kwnames[] = {
8983 (char *) "self", NULL
8984 };
8985
8986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8989 {
8990 PyThreadState* __tstate = wxPyBeginAllowThreads();
8991 result = (wxInputStream *)(arg1)->GetInputStream();
8992
8993 wxPyEndAllowThreads(__tstate);
8994 if (PyErr_Occurred()) SWIG_fail;
8995 }
8996 {
8997 wxPyInputStream * _ptr = NULL;
8998
8999 if (result) {
9000 _ptr = new wxPyInputStream(result);
9001 }
9002 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9003 }
9004 return resultobj;
9005 fail:
9006 return NULL;
9007 }
9008
9009
9010 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj;
9012 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9013 wxInputStream *result;
9014 PyObject * obj0 = 0 ;
9015 char *kwnames[] = {
9016 (char *) "self", NULL
9017 };
9018
9019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 result = (wxInputStream *)(arg1)->GetErrorStream();
9025
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 {
9030 wxPyInputStream * _ptr = NULL;
9031
9032 if (result) {
9033 _ptr = new wxPyInputStream(result);
9034 }
9035 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9036 }
9037 return resultobj;
9038 fail:
9039 return NULL;
9040 }
9041
9042
9043 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj;
9045 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9046 wxOutputStream *result;
9047 PyObject * obj0 = 0 ;
9048 char *kwnames[] = {
9049 (char *) "self", NULL
9050 };
9051
9052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9055 {
9056 PyThreadState* __tstate = wxPyBeginAllowThreads();
9057 result = (wxOutputStream *)(arg1)->GetOutputStream();
9058
9059 wxPyEndAllowThreads(__tstate);
9060 if (PyErr_Occurred()) SWIG_fail;
9061 }
9062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9063 return resultobj;
9064 fail:
9065 return NULL;
9066 }
9067
9068
9069 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9070 PyObject *resultobj;
9071 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9072 PyObject * obj0 = 0 ;
9073 char *kwnames[] = {
9074 (char *) "self", NULL
9075 };
9076
9077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9080 {
9081 PyThreadState* __tstate = wxPyBeginAllowThreads();
9082 (arg1)->CloseOutput();
9083
9084 wxPyEndAllowThreads(__tstate);
9085 if (PyErr_Occurred()) SWIG_fail;
9086 }
9087 Py_INCREF(Py_None); resultobj = Py_None;
9088 return resultobj;
9089 fail:
9090 return NULL;
9091 }
9092
9093
9094 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9095 PyObject *resultobj;
9096 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9097 bool result;
9098 PyObject * obj0 = 0 ;
9099 char *kwnames[] = {
9100 (char *) "self", NULL
9101 };
9102
9103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9106 {
9107 PyThreadState* __tstate = wxPyBeginAllowThreads();
9108 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9109
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 {
9114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9115 }
9116 return resultobj;
9117 fail:
9118 return NULL;
9119 }
9120
9121
9122 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9123 PyObject *resultobj;
9124 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9125 bool result;
9126 PyObject * obj0 = 0 ;
9127 char *kwnames[] = {
9128 (char *) "self", NULL
9129 };
9130
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9134 {
9135 PyThreadState* __tstate = wxPyBeginAllowThreads();
9136 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9137
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 {
9142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9143 }
9144 return resultobj;
9145 fail:
9146 return NULL;
9147 }
9148
9149
9150 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9151 PyObject *resultobj;
9152 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9153 bool result;
9154 PyObject * obj0 = 0 ;
9155 char *kwnames[] = {
9156 (char *) "self", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9162 {
9163 PyThreadState* __tstate = wxPyBeginAllowThreads();
9164 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9165
9166 wxPyEndAllowThreads(__tstate);
9167 if (PyErr_Occurred()) SWIG_fail;
9168 }
9169 {
9170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9171 }
9172 return resultobj;
9173 fail:
9174 return NULL;
9175 }
9176
9177
9178 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9179 PyObject *obj;
9180 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9181 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9182 Py_INCREF(obj);
9183 return Py_BuildValue((char *)"");
9184 }
9185 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9186 PyObject *resultobj;
9187 int arg1 = (int) 0 ;
9188 int arg2 = (int) 0 ;
9189 int arg3 = (int) 0 ;
9190 wxProcessEvent *result;
9191 PyObject * obj0 = 0 ;
9192 PyObject * obj1 = 0 ;
9193 PyObject * obj2 = 0 ;
9194 char *kwnames[] = {
9195 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9196 };
9197
9198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9199 if (obj0) {
9200 arg1 = (int) SWIG_AsInt(obj0);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 if (obj1) {
9204 arg2 = (int) SWIG_AsInt(obj1);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 if (obj2) {
9208 arg3 = (int) SWIG_AsInt(obj2);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 {
9212 PyThreadState* __tstate = wxPyBeginAllowThreads();
9213 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9214
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9226 PyObject *resultobj;
9227 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9228 int result;
9229 PyObject * obj0 = 0 ;
9230 char *kwnames[] = {
9231 (char *) "self", NULL
9232 };
9233
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9237 {
9238 PyThreadState* __tstate = wxPyBeginAllowThreads();
9239 result = (int)(arg1)->GetPid();
9240
9241 wxPyEndAllowThreads(__tstate);
9242 if (PyErr_Occurred()) SWIG_fail;
9243 }
9244 resultobj = SWIG_FromInt((int)result);
9245 return resultobj;
9246 fail:
9247 return NULL;
9248 }
9249
9250
9251 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9252 PyObject *resultobj;
9253 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9254 int result;
9255 PyObject * obj0 = 0 ;
9256 char *kwnames[] = {
9257 (char *) "self", NULL
9258 };
9259
9260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (int)(arg1)->GetExitCode();
9266
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 resultobj = SWIG_FromInt((int)result);
9271 return resultobj;
9272 fail:
9273 return NULL;
9274 }
9275
9276
9277 static PyObject *_wrap_ProcessEvent_m_pid_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_pid", NULL
9285 };
9286
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_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_pid = 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_pid_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_pid_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_pid);
9314
9315 resultobj = SWIG_FromInt((int)result);
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9323 PyObject *resultobj;
9324 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9325 int arg2 ;
9326 PyObject * obj0 = 0 ;
9327 PyObject * obj1 = 0 ;
9328 char *kwnames[] = {
9329 (char *) "self",(char *) "m_exitcode", NULL
9330 };
9331
9332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9335 arg2 = (int) SWIG_AsInt(obj1);
9336 if (PyErr_Occurred()) SWIG_fail;
9337 if (arg1) (arg1)->m_exitcode = arg2;
9338
9339 Py_INCREF(Py_None); resultobj = Py_None;
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9347 PyObject *resultobj;
9348 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9349 int result;
9350 PyObject * obj0 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "self", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9358 result = (int) ((arg1)->m_exitcode);
9359
9360 resultobj = SWIG_FromInt((int)result);
9361 return resultobj;
9362 fail:
9363 return NULL;
9364 }
9365
9366
9367 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9368 PyObject *obj;
9369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9370 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9371 Py_INCREF(obj);
9372 return Py_BuildValue((char *)"");
9373 }
9374 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj;
9376 wxString *arg1 = 0 ;
9377 int arg2 = (int) wxEXEC_ASYNC ;
9378 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9379 long result;
9380 bool temp1 = False ;
9381 PyObject * obj0 = 0 ;
9382 PyObject * obj1 = 0 ;
9383 PyObject * obj2 = 0 ;
9384 char *kwnames[] = {
9385 (char *) "command",(char *) "flags",(char *) "process", NULL
9386 };
9387
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9389 {
9390 arg1 = wxString_in_helper(obj0);
9391 if (arg1 == NULL) SWIG_fail;
9392 temp1 = True;
9393 }
9394 if (obj1) {
9395 arg2 = (int) SWIG_AsInt(obj1);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 }
9398 if (obj2) {
9399 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9401 }
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9405
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 resultobj = SWIG_FromLong((long)result);
9410 {
9411 if (temp1)
9412 delete arg1;
9413 }
9414 return resultobj;
9415 fail:
9416 {
9417 if (temp1)
9418 delete arg1;
9419 }
9420 return NULL;
9421 }
9422
9423
9424 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9425 PyObject *resultobj;
9426 int arg1 = (int) wxJOYSTICK1 ;
9427 wxJoystick *result;
9428 PyObject * obj0 = 0 ;
9429 char *kwnames[] = {
9430 (char *) "joystick", NULL
9431 };
9432
9433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9434 if (obj0) {
9435 arg1 = (int) SWIG_AsInt(obj0);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 result = (wxJoystick *)new wxJoystick(arg1);
9441
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj;
9454 wxJoystick *arg1 = (wxJoystick *) 0 ;
9455 PyObject * obj0 = 0 ;
9456 char *kwnames[] = {
9457 (char *) "self", NULL
9458 };
9459
9460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 delete arg1;
9466
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 Py_INCREF(Py_None); resultobj = Py_None;
9471 return resultobj;
9472 fail:
9473 return NULL;
9474 }
9475
9476
9477 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj;
9479 wxJoystick *arg1 = (wxJoystick *) 0 ;
9480 wxPoint result;
9481 PyObject * obj0 = 0 ;
9482 char *kwnames[] = {
9483 (char *) "self", NULL
9484 };
9485
9486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9489 {
9490 PyThreadState* __tstate = wxPyBeginAllowThreads();
9491 result = (arg1)->GetPosition();
9492
9493 wxPyEndAllowThreads(__tstate);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 {
9497 wxPoint * resultptr;
9498 resultptr = new wxPoint((wxPoint &) result);
9499 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9500 }
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9508 PyObject *resultobj;
9509 wxJoystick *arg1 = (wxJoystick *) 0 ;
9510 int result;
9511 PyObject * obj0 = 0 ;
9512 char *kwnames[] = {
9513 (char *) "self", NULL
9514 };
9515
9516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9519 {
9520 PyThreadState* __tstate = wxPyBeginAllowThreads();
9521 result = (int)(arg1)->GetZPosition();
9522
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = SWIG_FromInt((int)result);
9527 return resultobj;
9528 fail:
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj;
9535 wxJoystick *arg1 = (wxJoystick *) 0 ;
9536 int result;
9537 PyObject * obj0 = 0 ;
9538 char *kwnames[] = {
9539 (char *) "self", NULL
9540 };
9541
9542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (int)(arg1)->GetButtonState();
9548
9549 wxPyEndAllowThreads(__tstate);
9550 if (PyErr_Occurred()) SWIG_fail;
9551 }
9552 resultobj = SWIG_FromInt((int)result);
9553 return resultobj;
9554 fail:
9555 return NULL;
9556 }
9557
9558
9559 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj;
9561 wxJoystick *arg1 = (wxJoystick *) 0 ;
9562 int result;
9563 PyObject * obj0 = 0 ;
9564 char *kwnames[] = {
9565 (char *) "self", NULL
9566 };
9567
9568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 result = (int)(arg1)->GetPOVPosition();
9574
9575 wxPyEndAllowThreads(__tstate);
9576 if (PyErr_Occurred()) SWIG_fail;
9577 }
9578 resultobj = SWIG_FromInt((int)result);
9579 return resultobj;
9580 fail:
9581 return NULL;
9582 }
9583
9584
9585 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9586 PyObject *resultobj;
9587 wxJoystick *arg1 = (wxJoystick *) 0 ;
9588 int result;
9589 PyObject * obj0 = 0 ;
9590 char *kwnames[] = {
9591 (char *) "self", NULL
9592 };
9593
9594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9597 {
9598 PyThreadState* __tstate = wxPyBeginAllowThreads();
9599 result = (int)(arg1)->GetPOVCTSPosition();
9600
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 resultobj = SWIG_FromInt((int)result);
9605 return resultobj;
9606 fail:
9607 return NULL;
9608 }
9609
9610
9611 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9612 PyObject *resultobj;
9613 wxJoystick *arg1 = (wxJoystick *) 0 ;
9614 int result;
9615 PyObject * obj0 = 0 ;
9616 char *kwnames[] = {
9617 (char *) "self", NULL
9618 };
9619
9620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 result = (int)(arg1)->GetRudderPosition();
9626
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 resultobj = SWIG_FromInt((int)result);
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj;
9639 wxJoystick *arg1 = (wxJoystick *) 0 ;
9640 int result;
9641 PyObject * obj0 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "self", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 result = (int)(arg1)->GetUPosition();
9652
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = SWIG_FromInt((int)result);
9657 return resultobj;
9658 fail:
9659 return NULL;
9660 }
9661
9662
9663 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj;
9665 wxJoystick *arg1 = (wxJoystick *) 0 ;
9666 int result;
9667 PyObject * obj0 = 0 ;
9668 char *kwnames[] = {
9669 (char *) "self", NULL
9670 };
9671
9672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9675 {
9676 PyThreadState* __tstate = wxPyBeginAllowThreads();
9677 result = (int)(arg1)->GetVPosition();
9678
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_FromInt((int)result);
9683 return resultobj;
9684 fail:
9685 return NULL;
9686 }
9687
9688
9689 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9690 PyObject *resultobj;
9691 wxJoystick *arg1 = (wxJoystick *) 0 ;
9692 int result;
9693 PyObject * obj0 = 0 ;
9694 char *kwnames[] = {
9695 (char *) "self", NULL
9696 };
9697
9698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9701 {
9702 PyThreadState* __tstate = wxPyBeginAllowThreads();
9703 result = (int)(arg1)->GetMovementThreshold();
9704
9705 wxPyEndAllowThreads(__tstate);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 resultobj = SWIG_FromInt((int)result);
9709 return resultobj;
9710 fail:
9711 return NULL;
9712 }
9713
9714
9715 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9716 PyObject *resultobj;
9717 wxJoystick *arg1 = (wxJoystick *) 0 ;
9718 int arg2 ;
9719 PyObject * obj0 = 0 ;
9720 PyObject * obj1 = 0 ;
9721 char *kwnames[] = {
9722 (char *) "self",(char *) "threshold", NULL
9723 };
9724
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9728 arg2 = (int) SWIG_AsInt(obj1);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 {
9731 PyThreadState* __tstate = wxPyBeginAllowThreads();
9732 (arg1)->SetMovementThreshold(arg2);
9733
9734 wxPyEndAllowThreads(__tstate);
9735 if (PyErr_Occurred()) SWIG_fail;
9736 }
9737 Py_INCREF(Py_None); resultobj = Py_None;
9738 return resultobj;
9739 fail:
9740 return NULL;
9741 }
9742
9743
9744 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9745 PyObject *resultobj;
9746 wxJoystick *arg1 = (wxJoystick *) 0 ;
9747 bool result;
9748 PyObject * obj0 = 0 ;
9749 char *kwnames[] = {
9750 (char *) "self", NULL
9751 };
9752
9753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 result = (bool)(arg1)->IsOk();
9759
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 {
9764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9765 }
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj;
9774 wxJoystick *arg1 = (wxJoystick *) 0 ;
9775 int result;
9776 PyObject * obj0 = 0 ;
9777 char *kwnames[] = {
9778 (char *) "self", NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)(arg1)->GetNumberJoysticks();
9787
9788 wxPyEndAllowThreads(__tstate);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 resultobj = SWIG_FromInt((int)result);
9792 return resultobj;
9793 fail:
9794 return NULL;
9795 }
9796
9797
9798 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9799 PyObject *resultobj;
9800 wxJoystick *arg1 = (wxJoystick *) 0 ;
9801 int result;
9802 PyObject * obj0 = 0 ;
9803 char *kwnames[] = {
9804 (char *) "self", NULL
9805 };
9806
9807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9810 {
9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
9812 result = (int)(arg1)->GetManufacturerId();
9813
9814 wxPyEndAllowThreads(__tstate);
9815 if (PyErr_Occurred()) SWIG_fail;
9816 }
9817 resultobj = SWIG_FromInt((int)result);
9818 return resultobj;
9819 fail:
9820 return NULL;
9821 }
9822
9823
9824 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9825 PyObject *resultobj;
9826 wxJoystick *arg1 = (wxJoystick *) 0 ;
9827 int result;
9828 PyObject * obj0 = 0 ;
9829 char *kwnames[] = {
9830 (char *) "self", NULL
9831 };
9832
9833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9836 {
9837 PyThreadState* __tstate = wxPyBeginAllowThreads();
9838 result = (int)(arg1)->GetProductId();
9839
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 resultobj = SWIG_FromInt((int)result);
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj;
9852 wxJoystick *arg1 = (wxJoystick *) 0 ;
9853 wxString result;
9854 PyObject * obj0 = 0 ;
9855 char *kwnames[] = {
9856 (char *) "self", NULL
9857 };
9858
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 result = (arg1)->GetProductName();
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 {
9870 #if wxUSE_UNICODE
9871 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9872 #else
9873 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9874 #endif
9875 }
9876 return resultobj;
9877 fail:
9878 return NULL;
9879 }
9880
9881
9882 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9883 PyObject *resultobj;
9884 wxJoystick *arg1 = (wxJoystick *) 0 ;
9885 int result;
9886 PyObject * obj0 = 0 ;
9887 char *kwnames[] = {
9888 (char *) "self", NULL
9889 };
9890
9891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 result = (int)(arg1)->GetXMin();
9897
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_FromInt((int)result);
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9909 PyObject *resultobj;
9910 wxJoystick *arg1 = (wxJoystick *) 0 ;
9911 int result;
9912 PyObject * obj0 = 0 ;
9913 char *kwnames[] = {
9914 (char *) "self", NULL
9915 };
9916
9917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 result = (int)(arg1)->GetYMin();
9923
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_FromInt((int)result);
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj;
9936 wxJoystick *arg1 = (wxJoystick *) 0 ;
9937 int result;
9938 PyObject * obj0 = 0 ;
9939 char *kwnames[] = {
9940 (char *) "self", NULL
9941 };
9942
9943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9946 {
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = (int)(arg1)->GetZMin();
9949
9950 wxPyEndAllowThreads(__tstate);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
9953 resultobj = SWIG_FromInt((int)result);
9954 return resultobj;
9955 fail:
9956 return NULL;
9957 }
9958
9959
9960 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj;
9962 wxJoystick *arg1 = (wxJoystick *) 0 ;
9963 int result;
9964 PyObject * obj0 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "self", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9972 {
9973 PyThreadState* __tstate = wxPyBeginAllowThreads();
9974 result = (int)(arg1)->GetXMax();
9975
9976 wxPyEndAllowThreads(__tstate);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 resultobj = SWIG_FromInt((int)result);
9980 return resultobj;
9981 fail:
9982 return NULL;
9983 }
9984
9985
9986 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9987 PyObject *resultobj;
9988 wxJoystick *arg1 = (wxJoystick *) 0 ;
9989 int result;
9990 PyObject * obj0 = 0 ;
9991 char *kwnames[] = {
9992 (char *) "self", NULL
9993 };
9994
9995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
9996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 result = (int)(arg1)->GetYMax();
10001
10002 wxPyEndAllowThreads(__tstate);
10003 if (PyErr_Occurred()) SWIG_fail;
10004 }
10005 resultobj = SWIG_FromInt((int)result);
10006 return resultobj;
10007 fail:
10008 return NULL;
10009 }
10010
10011
10012 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10013 PyObject *resultobj;
10014 wxJoystick *arg1 = (wxJoystick *) 0 ;
10015 int result;
10016 PyObject * obj0 = 0 ;
10017 char *kwnames[] = {
10018 (char *) "self", NULL
10019 };
10020
10021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10024 {
10025 PyThreadState* __tstate = wxPyBeginAllowThreads();
10026 result = (int)(arg1)->GetZMax();
10027
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_FromInt((int)result);
10032 return resultobj;
10033 fail:
10034 return NULL;
10035 }
10036
10037
10038 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj;
10040 wxJoystick *arg1 = (wxJoystick *) 0 ;
10041 int result;
10042 PyObject * obj0 = 0 ;
10043 char *kwnames[] = {
10044 (char *) "self", NULL
10045 };
10046
10047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10050 {
10051 PyThreadState* __tstate = wxPyBeginAllowThreads();
10052 result = (int)(arg1)->GetNumberButtons();
10053
10054 wxPyEndAllowThreads(__tstate);
10055 if (PyErr_Occurred()) SWIG_fail;
10056 }
10057 resultobj = SWIG_FromInt((int)result);
10058 return resultobj;
10059 fail:
10060 return NULL;
10061 }
10062
10063
10064 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10065 PyObject *resultobj;
10066 wxJoystick *arg1 = (wxJoystick *) 0 ;
10067 int result;
10068 PyObject * obj0 = 0 ;
10069 char *kwnames[] = {
10070 (char *) "self", NULL
10071 };
10072
10073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10076 {
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 result = (int)(arg1)->GetNumberAxes();
10079
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 resultobj = SWIG_FromInt((int)result);
10084 return resultobj;
10085 fail:
10086 return NULL;
10087 }
10088
10089
10090 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10091 PyObject *resultobj;
10092 wxJoystick *arg1 = (wxJoystick *) 0 ;
10093 int result;
10094 PyObject * obj0 = 0 ;
10095 char *kwnames[] = {
10096 (char *) "self", NULL
10097 };
10098
10099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10102 {
10103 PyThreadState* __tstate = wxPyBeginAllowThreads();
10104 result = (int)(arg1)->GetMaxButtons();
10105
10106 wxPyEndAllowThreads(__tstate);
10107 if (PyErr_Occurred()) SWIG_fail;
10108 }
10109 resultobj = SWIG_FromInt((int)result);
10110 return resultobj;
10111 fail:
10112 return NULL;
10113 }
10114
10115
10116 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10117 PyObject *resultobj;
10118 wxJoystick *arg1 = (wxJoystick *) 0 ;
10119 int result;
10120 PyObject * obj0 = 0 ;
10121 char *kwnames[] = {
10122 (char *) "self", NULL
10123 };
10124
10125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10128 {
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 result = (int)(arg1)->GetMaxAxes();
10131
10132 wxPyEndAllowThreads(__tstate);
10133 if (PyErr_Occurred()) SWIG_fail;
10134 }
10135 resultobj = SWIG_FromInt((int)result);
10136 return resultobj;
10137 fail:
10138 return NULL;
10139 }
10140
10141
10142 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj;
10144 wxJoystick *arg1 = (wxJoystick *) 0 ;
10145 int result;
10146 PyObject * obj0 = 0 ;
10147 char *kwnames[] = {
10148 (char *) "self", NULL
10149 };
10150
10151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10154 {
10155 PyThreadState* __tstate = wxPyBeginAllowThreads();
10156 result = (int)(arg1)->GetPollingMin();
10157
10158 wxPyEndAllowThreads(__tstate);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 }
10161 resultobj = SWIG_FromInt((int)result);
10162 return resultobj;
10163 fail:
10164 return NULL;
10165 }
10166
10167
10168 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10169 PyObject *resultobj;
10170 wxJoystick *arg1 = (wxJoystick *) 0 ;
10171 int result;
10172 PyObject * obj0 = 0 ;
10173 char *kwnames[] = {
10174 (char *) "self", NULL
10175 };
10176
10177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10180 {
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 result = (int)(arg1)->GetPollingMax();
10183
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 resultobj = SWIG_FromInt((int)result);
10188 return resultobj;
10189 fail:
10190 return NULL;
10191 }
10192
10193
10194 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10195 PyObject *resultobj;
10196 wxJoystick *arg1 = (wxJoystick *) 0 ;
10197 int result;
10198 PyObject * obj0 = 0 ;
10199 char *kwnames[] = {
10200 (char *) "self", NULL
10201 };
10202
10203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10206 {
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (int)(arg1)->GetRudderMin();
10209
10210 wxPyEndAllowThreads(__tstate);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 }
10213 resultobj = SWIG_FromInt((int)result);
10214 return resultobj;
10215 fail:
10216 return NULL;
10217 }
10218
10219
10220 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10221 PyObject *resultobj;
10222 wxJoystick *arg1 = (wxJoystick *) 0 ;
10223 int result;
10224 PyObject * obj0 = 0 ;
10225 char *kwnames[] = {
10226 (char *) "self", NULL
10227 };
10228
10229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10232 {
10233 PyThreadState* __tstate = wxPyBeginAllowThreads();
10234 result = (int)(arg1)->GetRudderMax();
10235
10236 wxPyEndAllowThreads(__tstate);
10237 if (PyErr_Occurred()) SWIG_fail;
10238 }
10239 resultobj = SWIG_FromInt((int)result);
10240 return resultobj;
10241 fail:
10242 return NULL;
10243 }
10244
10245
10246 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10247 PyObject *resultobj;
10248 wxJoystick *arg1 = (wxJoystick *) 0 ;
10249 int result;
10250 PyObject * obj0 = 0 ;
10251 char *kwnames[] = {
10252 (char *) "self", NULL
10253 };
10254
10255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 result = (int)(arg1)->GetUMin();
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 resultobj = SWIG_FromInt((int)result);
10266 return resultobj;
10267 fail:
10268 return NULL;
10269 }
10270
10271
10272 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10273 PyObject *resultobj;
10274 wxJoystick *arg1 = (wxJoystick *) 0 ;
10275 int result;
10276 PyObject * obj0 = 0 ;
10277 char *kwnames[] = {
10278 (char *) "self", NULL
10279 };
10280
10281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10284 {
10285 PyThreadState* __tstate = wxPyBeginAllowThreads();
10286 result = (int)(arg1)->GetUMax();
10287
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 resultobj = SWIG_FromInt((int)result);
10292 return resultobj;
10293 fail:
10294 return NULL;
10295 }
10296
10297
10298 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj;
10300 wxJoystick *arg1 = (wxJoystick *) 0 ;
10301 int result;
10302 PyObject * obj0 = 0 ;
10303 char *kwnames[] = {
10304 (char *) "self", NULL
10305 };
10306
10307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 result = (int)(arg1)->GetVMin();
10313
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 resultobj = SWIG_FromInt((int)result);
10318 return resultobj;
10319 fail:
10320 return NULL;
10321 }
10322
10323
10324 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10325 PyObject *resultobj;
10326 wxJoystick *arg1 = (wxJoystick *) 0 ;
10327 int result;
10328 PyObject * obj0 = 0 ;
10329 char *kwnames[] = {
10330 (char *) "self", NULL
10331 };
10332
10333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10336 {
10337 PyThreadState* __tstate = wxPyBeginAllowThreads();
10338 result = (int)(arg1)->GetVMax();
10339
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 resultobj = SWIG_FromInt((int)result);
10344 return resultobj;
10345 fail:
10346 return NULL;
10347 }
10348
10349
10350 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj;
10352 wxJoystick *arg1 = (wxJoystick *) 0 ;
10353 bool result;
10354 PyObject * obj0 = 0 ;
10355 char *kwnames[] = {
10356 (char *) "self", NULL
10357 };
10358
10359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 result = (bool)(arg1)->HasRudder();
10365
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 {
10370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10371 }
10372 return resultobj;
10373 fail:
10374 return NULL;
10375 }
10376
10377
10378 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj;
10380 wxJoystick *arg1 = (wxJoystick *) 0 ;
10381 bool result;
10382 PyObject * obj0 = 0 ;
10383 char *kwnames[] = {
10384 (char *) "self", NULL
10385 };
10386
10387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10390 {
10391 PyThreadState* __tstate = wxPyBeginAllowThreads();
10392 result = (bool)(arg1)->HasZ();
10393
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 {
10398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10399 }
10400 return resultobj;
10401 fail:
10402 return NULL;
10403 }
10404
10405
10406 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10407 PyObject *resultobj;
10408 wxJoystick *arg1 = (wxJoystick *) 0 ;
10409 bool result;
10410 PyObject * obj0 = 0 ;
10411 char *kwnames[] = {
10412 (char *) "self", NULL
10413 };
10414
10415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10418 {
10419 PyThreadState* __tstate = wxPyBeginAllowThreads();
10420 result = (bool)(arg1)->HasU();
10421
10422 wxPyEndAllowThreads(__tstate);
10423 if (PyErr_Occurred()) SWIG_fail;
10424 }
10425 {
10426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10427 }
10428 return resultobj;
10429 fail:
10430 return NULL;
10431 }
10432
10433
10434 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10435 PyObject *resultobj;
10436 wxJoystick *arg1 = (wxJoystick *) 0 ;
10437 bool result;
10438 PyObject * obj0 = 0 ;
10439 char *kwnames[] = {
10440 (char *) "self", NULL
10441 };
10442
10443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10446 {
10447 PyThreadState* __tstate = wxPyBeginAllowThreads();
10448 result = (bool)(arg1)->HasV();
10449
10450 wxPyEndAllowThreads(__tstate);
10451 if (PyErr_Occurred()) SWIG_fail;
10452 }
10453 {
10454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10455 }
10456 return resultobj;
10457 fail:
10458 return NULL;
10459 }
10460
10461
10462 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10463 PyObject *resultobj;
10464 wxJoystick *arg1 = (wxJoystick *) 0 ;
10465 bool result;
10466 PyObject * obj0 = 0 ;
10467 char *kwnames[] = {
10468 (char *) "self", NULL
10469 };
10470
10471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10474 {
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (bool)(arg1)->HasPOV();
10477
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 {
10482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10483 }
10484 return resultobj;
10485 fail:
10486 return NULL;
10487 }
10488
10489
10490 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10491 PyObject *resultobj;
10492 wxJoystick *arg1 = (wxJoystick *) 0 ;
10493 bool result;
10494 PyObject * obj0 = 0 ;
10495 char *kwnames[] = {
10496 (char *) "self", NULL
10497 };
10498
10499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 result = (bool)(arg1)->HasPOV4Dir();
10505
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 {
10510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10511 }
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj;
10520 wxJoystick *arg1 = (wxJoystick *) 0 ;
10521 bool result;
10522 PyObject * obj0 = 0 ;
10523 char *kwnames[] = {
10524 (char *) "self", NULL
10525 };
10526
10527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (bool)(arg1)->HasPOVCTS();
10533
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 {
10538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10539 }
10540 return resultobj;
10541 fail:
10542 return NULL;
10543 }
10544
10545
10546 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj;
10548 wxJoystick *arg1 = (wxJoystick *) 0 ;
10549 wxWindow *arg2 = (wxWindow *) 0 ;
10550 int arg3 = (int) 0 ;
10551 bool result;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 PyObject * obj2 = 0 ;
10555 char *kwnames[] = {
10556 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10557 };
10558
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10564 if (obj2) {
10565 arg3 = (int) SWIG_AsInt(obj2);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 }
10568 {
10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
10570 result = (bool)(arg1)->SetCapture(arg2,arg3);
10571
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 {
10576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10577 }
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj;
10586 wxJoystick *arg1 = (wxJoystick *) 0 ;
10587 bool result;
10588 PyObject * obj0 = 0 ;
10589 char *kwnames[] = {
10590 (char *) "self", NULL
10591 };
10592
10593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10596 {
10597 PyThreadState* __tstate = wxPyBeginAllowThreads();
10598 result = (bool)(arg1)->ReleaseCapture();
10599
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 {
10604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10605 }
10606 return resultobj;
10607 fail:
10608 return NULL;
10609 }
10610
10611
10612 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10613 PyObject *obj;
10614 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10615 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10616 Py_INCREF(obj);
10617 return Py_BuildValue((char *)"");
10618 }
10619 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10622 wxPoint *arg2 = (wxPoint *) 0 ;
10623 PyObject * obj0 = 0 ;
10624 PyObject * obj1 = 0 ;
10625 char *kwnames[] = {
10626 (char *) "self",(char *) "m_pos", NULL
10627 };
10628
10629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10632 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10634 if (arg1) (arg1)->m_pos = *arg2;
10635
10636 Py_INCREF(Py_None); resultobj = Py_None;
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj;
10645 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10646 wxPoint *result;
10647 PyObject * obj0 = 0 ;
10648 char *kwnames[] = {
10649 (char *) "self", NULL
10650 };
10651
10652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10655 result = (wxPoint *)& ((arg1)->m_pos);
10656
10657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj;
10666 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10667 int arg2 ;
10668 PyObject * obj0 = 0 ;
10669 PyObject * obj1 = 0 ;
10670 char *kwnames[] = {
10671 (char *) "self",(char *) "m_zPosition", NULL
10672 };
10673
10674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10677 arg2 = (int) SWIG_AsInt(obj1);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 if (arg1) (arg1)->m_zPosition = arg2;
10680
10681 Py_INCREF(Py_None); resultobj = Py_None;
10682 return resultobj;
10683 fail:
10684 return NULL;
10685 }
10686
10687
10688 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10689 PyObject *resultobj;
10690 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10691 int result;
10692 PyObject * obj0 = 0 ;
10693 char *kwnames[] = {
10694 (char *) "self", NULL
10695 };
10696
10697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10700 result = (int) ((arg1)->m_zPosition);
10701
10702 resultobj = SWIG_FromInt((int)result);
10703 return resultobj;
10704 fail:
10705 return NULL;
10706 }
10707
10708
10709 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10710 PyObject *resultobj;
10711 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10712 int arg2 ;
10713 PyObject * obj0 = 0 ;
10714 PyObject * obj1 = 0 ;
10715 char *kwnames[] = {
10716 (char *) "self",(char *) "m_buttonChange", NULL
10717 };
10718
10719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10722 arg2 = (int) SWIG_AsInt(obj1);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 if (arg1) (arg1)->m_buttonChange = arg2;
10725
10726 Py_INCREF(Py_None); resultobj = Py_None;
10727 return resultobj;
10728 fail:
10729 return NULL;
10730 }
10731
10732
10733 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj;
10735 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10736 int result;
10737 PyObject * obj0 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10745 result = (int) ((arg1)->m_buttonChange);
10746
10747 resultobj = SWIG_FromInt((int)result);
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10755 PyObject *resultobj;
10756 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10757 int arg2 ;
10758 PyObject * obj0 = 0 ;
10759 PyObject * obj1 = 0 ;
10760 char *kwnames[] = {
10761 (char *) "self",(char *) "m_buttonState", NULL
10762 };
10763
10764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10767 arg2 = (int) SWIG_AsInt(obj1);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 if (arg1) (arg1)->m_buttonState = arg2;
10770
10771 Py_INCREF(Py_None); resultobj = Py_None;
10772 return resultobj;
10773 fail:
10774 return NULL;
10775 }
10776
10777
10778 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj;
10780 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10781 int result;
10782 PyObject * obj0 = 0 ;
10783 char *kwnames[] = {
10784 (char *) "self", NULL
10785 };
10786
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10790 result = (int) ((arg1)->m_buttonState);
10791
10792 resultobj = SWIG_FromInt((int)result);
10793 return resultobj;
10794 fail:
10795 return NULL;
10796 }
10797
10798
10799 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10800 PyObject *resultobj;
10801 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10802 int arg2 ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self",(char *) "m_joyStick", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10812 arg2 = (int) SWIG_AsInt(obj1);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 if (arg1) (arg1)->m_joyStick = arg2;
10815
10816 Py_INCREF(Py_None); resultobj = Py_None;
10817 return resultobj;
10818 fail:
10819 return NULL;
10820 }
10821
10822
10823 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj;
10825 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10826 int result;
10827 PyObject * obj0 = 0 ;
10828 char *kwnames[] = {
10829 (char *) "self", NULL
10830 };
10831
10832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10835 result = (int) ((arg1)->m_joyStick);
10836
10837 resultobj = SWIG_FromInt((int)result);
10838 return resultobj;
10839 fail:
10840 return NULL;
10841 }
10842
10843
10844 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10845 PyObject *resultobj;
10846 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10847 int arg2 = (int) 0 ;
10848 int arg3 = (int) wxJOYSTICK1 ;
10849 int arg4 = (int) 0 ;
10850 wxJoystickEvent *result;
10851 PyObject * obj0 = 0 ;
10852 PyObject * obj1 = 0 ;
10853 PyObject * obj2 = 0 ;
10854 PyObject * obj3 = 0 ;
10855 char *kwnames[] = {
10856 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10857 };
10858
10859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10860 if (obj0) {
10861 arg1 = (wxEventType) SWIG_AsInt(obj0);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 }
10864 if (obj1) {
10865 arg2 = (int) SWIG_AsInt(obj1);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 if (obj2) {
10869 arg3 = (int) SWIG_AsInt(obj2);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 if (obj3) {
10873 arg4 = (int) SWIG_AsInt(obj3);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 {
10877 PyThreadState* __tstate = wxPyBeginAllowThreads();
10878 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10879
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10884 return resultobj;
10885 fail:
10886 return NULL;
10887 }
10888
10889
10890 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj;
10892 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10893 wxPoint result;
10894 PyObject * obj0 = 0 ;
10895 char *kwnames[] = {
10896 (char *) "self", NULL
10897 };
10898
10899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10902 {
10903 PyThreadState* __tstate = wxPyBeginAllowThreads();
10904 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10905
10906 wxPyEndAllowThreads(__tstate);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 {
10910 wxPoint * resultptr;
10911 resultptr = new wxPoint((wxPoint &) result);
10912 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10913 }
10914 return resultobj;
10915 fail:
10916 return NULL;
10917 }
10918
10919
10920 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj;
10922 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10923 int result;
10924 PyObject * obj0 = 0 ;
10925 char *kwnames[] = {
10926 (char *) "self", NULL
10927 };
10928
10929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
10930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10932 {
10933 PyThreadState* __tstate = wxPyBeginAllowThreads();
10934 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10935
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 resultobj = SWIG_FromInt((int)result);
10940 return resultobj;
10941 fail:
10942 return NULL;
10943 }
10944
10945
10946 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj;
10948 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10949 int result;
10950 PyObject * obj0 = 0 ;
10951 char *kwnames[] = {
10952 (char *) "self", NULL
10953 };
10954
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10961
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 resultobj = SWIG_FromInt((int)result);
10966 return resultobj;
10967 fail:
10968 return NULL;
10969 }
10970
10971
10972 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj;
10974 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10975 int result;
10976 PyObject * obj0 = 0 ;
10977 char *kwnames[] = {
10978 (char *) "self", NULL
10979 };
10980
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 resultobj = SWIG_FromInt((int)result);
10992 return resultobj;
10993 fail:
10994 return NULL;
10995 }
10996
10997
10998 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj;
11000 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11001 int result;
11002 PyObject * obj0 = 0 ;
11003 char *kwnames[] = {
11004 (char *) "self", NULL
11005 };
11006
11007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11010 {
11011 PyThreadState* __tstate = wxPyBeginAllowThreads();
11012 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11013
11014 wxPyEndAllowThreads(__tstate);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 resultobj = SWIG_FromInt((int)result);
11018 return resultobj;
11019 fail:
11020 return NULL;
11021 }
11022
11023
11024 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11025 PyObject *resultobj;
11026 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11027 int arg2 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 char *kwnames[] = {
11031 (char *) "self",(char *) "stick", NULL
11032 };
11033
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11037 arg2 = (int) SWIG_AsInt(obj1);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 {
11040 PyThreadState* __tstate = wxPyBeginAllowThreads();
11041 (arg1)->SetJoystick(arg2);
11042
11043 wxPyEndAllowThreads(__tstate);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 Py_INCREF(Py_None); resultobj = Py_None;
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11054 PyObject *resultobj;
11055 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11056 int arg2 ;
11057 PyObject * obj0 = 0 ;
11058 PyObject * obj1 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "state", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 arg2 = (int) SWIG_AsInt(obj1);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 (arg1)->SetButtonState(arg2);
11071
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 Py_INCREF(Py_None); resultobj = Py_None;
11076 return resultobj;
11077 fail:
11078 return NULL;
11079 }
11080
11081
11082 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj;
11084 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11085 int arg2 ;
11086 PyObject * obj0 = 0 ;
11087 PyObject * obj1 = 0 ;
11088 char *kwnames[] = {
11089 (char *) "self",(char *) "change", NULL
11090 };
11091
11092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11095 arg2 = (int) SWIG_AsInt(obj1);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 (arg1)->SetButtonChange(arg2);
11100
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 Py_INCREF(Py_None); resultobj = Py_None;
11105 return resultobj;
11106 fail:
11107 return NULL;
11108 }
11109
11110
11111 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj;
11113 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11114 wxPoint *arg2 = 0 ;
11115 wxPoint temp2 ;
11116 PyObject * obj0 = 0 ;
11117 PyObject * obj1 = 0 ;
11118 char *kwnames[] = {
11119 (char *) "self",(char *) "pos", NULL
11120 };
11121
11122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11125 {
11126 arg2 = &temp2;
11127 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11128 }
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 (arg1)->SetPosition((wxPoint const &)*arg2);
11132
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 Py_INCREF(Py_None); resultobj = Py_None;
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj;
11145 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11146 int arg2 ;
11147 PyObject * obj0 = 0 ;
11148 PyObject * obj1 = 0 ;
11149 char *kwnames[] = {
11150 (char *) "self",(char *) "zPos", NULL
11151 };
11152
11153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11156 arg2 = (int) SWIG_AsInt(obj1);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 (arg1)->SetZPosition(arg2);
11161
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 Py_INCREF(Py_None); resultobj = Py_None;
11166 return resultobj;
11167 fail:
11168 return NULL;
11169 }
11170
11171
11172 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11173 PyObject *resultobj;
11174 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11175 bool result;
11176 PyObject * obj0 = 0 ;
11177 char *kwnames[] = {
11178 (char *) "self", NULL
11179 };
11180
11181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11187
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 {
11192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11193 }
11194 return resultobj;
11195 fail:
11196 return NULL;
11197 }
11198
11199
11200 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11201 PyObject *resultobj;
11202 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11203 bool result;
11204 PyObject * obj0 = 0 ;
11205 char *kwnames[] = {
11206 (char *) "self", NULL
11207 };
11208
11209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
11214 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11215
11216 wxPyEndAllowThreads(__tstate);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 }
11219 {
11220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11221 }
11222 return resultobj;
11223 fail:
11224 return NULL;
11225 }
11226
11227
11228 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11229 PyObject *resultobj;
11230 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11231 bool result;
11232 PyObject * obj0 = 0 ;
11233 char *kwnames[] = {
11234 (char *) "self", NULL
11235 };
11236
11237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11240 {
11241 PyThreadState* __tstate = wxPyBeginAllowThreads();
11242 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11243
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 {
11248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11249 }
11250 return resultobj;
11251 fail:
11252 return NULL;
11253 }
11254
11255
11256 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj;
11258 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11259 int arg2 = (int) wxJOY_BUTTON_ANY ;
11260 bool result;
11261 PyObject * obj0 = 0 ;
11262 PyObject * obj1 = 0 ;
11263 char *kwnames[] = {
11264 (char *) "self",(char *) "but", NULL
11265 };
11266
11267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11270 if (obj1) {
11271 arg2 = (int) SWIG_AsInt(obj1);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 }
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11277
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 {
11282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11283 }
11284 return resultobj;
11285 fail:
11286 return NULL;
11287 }
11288
11289
11290 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11291 PyObject *resultobj;
11292 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11293 int arg2 = (int) wxJOY_BUTTON_ANY ;
11294 bool result;
11295 PyObject * obj0 = 0 ;
11296 PyObject * obj1 = 0 ;
11297 char *kwnames[] = {
11298 (char *) "self",(char *) "but", NULL
11299 };
11300
11301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11304 if (obj1) {
11305 arg2 = (int) SWIG_AsInt(obj1);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 {
11309 PyThreadState* __tstate = wxPyBeginAllowThreads();
11310 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11311
11312 wxPyEndAllowThreads(__tstate);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 }
11315 {
11316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11317 }
11318 return resultobj;
11319 fail:
11320 return NULL;
11321 }
11322
11323
11324 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11325 PyObject *resultobj;
11326 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11327 int arg2 = (int) wxJOY_BUTTON_ANY ;
11328 bool result;
11329 PyObject * obj0 = 0 ;
11330 PyObject * obj1 = 0 ;
11331 char *kwnames[] = {
11332 (char *) "self",(char *) "but", NULL
11333 };
11334
11335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11338 if (obj1) {
11339 arg2 = (int) SWIG_AsInt(obj1);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 }
11342 {
11343 PyThreadState* __tstate = wxPyBeginAllowThreads();
11344 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11345
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) SWIG_fail;
11348 }
11349 {
11350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11351 }
11352 return resultobj;
11353 fail:
11354 return NULL;
11355 }
11356
11357
11358 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11359 PyObject *obj;
11360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11361 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11362 Py_INCREF(obj);
11363 return Py_BuildValue((char *)"");
11364 }
11365 static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) {
11366 PyObject *resultobj;
11367 wxSound *result;
11368
11369 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11370 {
11371 PyThreadState* __tstate = wxPyBeginAllowThreads();
11372 result = (wxSound *)new wxSound();
11373
11374 wxPyEndAllowThreads(__tstate);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11378 return resultobj;
11379 fail:
11380 return NULL;
11381 }
11382
11383
11384 static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) {
11385 PyObject *resultobj;
11386 wxString *arg1 = 0 ;
11387 bool arg2 = (bool) false ;
11388 wxSound *result;
11389 bool temp1 = False ;
11390 PyObject * obj0 = 0 ;
11391 PyObject * obj1 = 0 ;
11392
11393 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
11394 {
11395 arg1 = wxString_in_helper(obj0);
11396 if (arg1 == NULL) SWIG_fail;
11397 temp1 = True;
11398 }
11399 if (obj1) {
11400 arg2 = (bool) SWIG_AsBool(obj1);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
11403 {
11404 PyThreadState* __tstate = wxPyBeginAllowThreads();
11405 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
11406
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11411 {
11412 if (temp1)
11413 delete arg1;
11414 }
11415 return resultobj;
11416 fail:
11417 {
11418 if (temp1)
11419 delete arg1;
11420 }
11421 return NULL;
11422 }
11423
11424
11425 static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) {
11426 PyObject *resultobj;
11427 int arg1 ;
11428 wxByte *arg2 = (wxByte *) 0 ;
11429 wxSound *result;
11430 PyObject * obj0 = 0 ;
11431 PyObject * obj1 = 0 ;
11432
11433 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
11434 arg1 = (int) SWIG_AsInt(obj0);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte,
11437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11438 {
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
11441
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11446 return resultobj;
11447 fail:
11448 return NULL;
11449 }
11450
11451
11452 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11453 int argc;
11454 PyObject *argv[3];
11455 int ii;
11456
11457 argc = PyObject_Length(args);
11458 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11459 argv[ii] = PyTuple_GetItem(args,ii);
11460 }
11461 if (argc == 0) {
11462 return _wrap_new_Sound__SWIG_0(self,args);
11463 }
11464 if ((argc >= 1) && (argc <= 2)) {
11465 int _v;
11466 {
11467 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11468 }
11469 if (_v) {
11470 if (argc <= 1) {
11471 return _wrap_new_Sound__SWIG_1(self,args);
11472 }
11473 _v = SWIG_CheckBool(argv[1]);
11474 if (_v) {
11475 return _wrap_new_Sound__SWIG_1(self,args);
11476 }
11477 }
11478 }
11479 if (argc == 2) {
11480 int _v;
11481 _v = SWIG_CheckInt(argv[0]);
11482 if (_v) {
11483 {
11484 void *ptr;
11485 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11486 _v = 0;
11487 PyErr_Clear();
11488 } else {
11489 _v = 1;
11490 }
11491 }
11492 if (_v) {
11493 return _wrap_new_Sound__SWIG_2(self,args);
11494 }
11495 }
11496 }
11497
11498 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
11499 return NULL;
11500 }
11501
11502
11503 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11504 PyObject *resultobj;
11505 wxSound *arg1 = (wxSound *) 0 ;
11506 PyObject * obj0 = 0 ;
11507 char *kwnames[] = {
11508 (char *) "self", NULL
11509 };
11510
11511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11514 {
11515 PyThreadState* __tstate = wxPyBeginAllowThreads();
11516 delete arg1;
11517
11518 wxPyEndAllowThreads(__tstate);
11519 if (PyErr_Occurred()) SWIG_fail;
11520 }
11521 Py_INCREF(Py_None); resultobj = Py_None;
11522 return resultobj;
11523 fail:
11524 return NULL;
11525 }
11526
11527
11528 static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) {
11529 PyObject *resultobj;
11530 wxSound *arg1 = (wxSound *) 0 ;
11531 wxString *arg2 = 0 ;
11532 bool arg3 = (bool) false ;
11533 bool result;
11534 bool temp2 = False ;
11535 PyObject * obj0 = 0 ;
11536 PyObject * obj1 = 0 ;
11537 PyObject * obj2 = 0 ;
11538
11539 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11542 {
11543 arg2 = wxString_in_helper(obj1);
11544 if (arg2 == NULL) SWIG_fail;
11545 temp2 = True;
11546 }
11547 if (obj2) {
11548 arg3 = (bool) SWIG_AsBool(obj2);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 {
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
11554
11555 wxPyEndAllowThreads(__tstate);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 }
11558 {
11559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11560 }
11561 {
11562 if (temp2)
11563 delete arg2;
11564 }
11565 return resultobj;
11566 fail:
11567 {
11568 if (temp2)
11569 delete arg2;
11570 }
11571 return NULL;
11572 }
11573
11574
11575 static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) {
11576 PyObject *resultobj;
11577 wxSound *arg1 = (wxSound *) 0 ;
11578 int arg2 ;
11579 wxByte *arg3 = (wxByte *) 0 ;
11580 bool result;
11581 PyObject * obj0 = 0 ;
11582 PyObject * obj1 = 0 ;
11583 PyObject * obj2 = 0 ;
11584
11585 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11588 arg2 = (int) SWIG_AsInt(obj1);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte,
11591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11592 {
11593 PyThreadState* __tstate = wxPyBeginAllowThreads();
11594 result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3);
11595
11596 wxPyEndAllowThreads(__tstate);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 {
11600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11601 }
11602 return resultobj;
11603 fail:
11604 return NULL;
11605 }
11606
11607
11608 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11609 int argc;
11610 PyObject *argv[4];
11611 int ii;
11612
11613 argc = PyObject_Length(args);
11614 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11615 argv[ii] = PyTuple_GetItem(args,ii);
11616 }
11617 if ((argc >= 2) && (argc <= 3)) {
11618 int _v;
11619 {
11620 void *ptr;
11621 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11622 _v = 0;
11623 PyErr_Clear();
11624 } else {
11625 _v = 1;
11626 }
11627 }
11628 if (_v) {
11629 {
11630 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11631 }
11632 if (_v) {
11633 if (argc <= 2) {
11634 return _wrap_Sound_Create__SWIG_0(self,args);
11635 }
11636 _v = SWIG_CheckBool(argv[2]);
11637 if (_v) {
11638 return _wrap_Sound_Create__SWIG_0(self,args);
11639 }
11640 }
11641 }
11642 }
11643 if (argc == 3) {
11644 int _v;
11645 {
11646 void *ptr;
11647 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11648 _v = 0;
11649 PyErr_Clear();
11650 } else {
11651 _v = 1;
11652 }
11653 }
11654 if (_v) {
11655 _v = SWIG_CheckInt(argv[1]);
11656 if (_v) {
11657 {
11658 void *ptr;
11659 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11660 _v = 0;
11661 PyErr_Clear();
11662 } else {
11663 _v = 1;
11664 }
11665 }
11666 if (_v) {
11667 return _wrap_Sound_Create__SWIG_1(self,args);
11668 }
11669 }
11670 }
11671 }
11672
11673 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11674 return NULL;
11675 }
11676
11677
11678 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11679 PyObject *resultobj;
11680 wxSound *arg1 = (wxSound *) 0 ;
11681 bool result;
11682 PyObject * obj0 = 0 ;
11683 char *kwnames[] = {
11684 (char *) "self", NULL
11685 };
11686
11687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
11692 result = (bool)(arg1)->IsOk();
11693
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 }
11697 {
11698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11699 }
11700 return resultobj;
11701 fail:
11702 return NULL;
11703 }
11704
11705
11706 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) {
11707 PyObject *resultobj;
11708 wxSound *arg1 = (wxSound *) 0 ;
11709 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11710 bool result;
11711 PyObject * obj0 = 0 ;
11712 PyObject * obj1 = 0 ;
11713
11714 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
11715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11717 if (obj1) {
11718 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 {
11722 PyThreadState* __tstate = wxPyBeginAllowThreads();
11723 result = (bool)((wxSound const *)arg1)->Play(arg2);
11724
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 {
11729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11730 }
11731 return resultobj;
11732 fail:
11733 return NULL;
11734 }
11735
11736
11737 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) {
11738 PyObject *resultobj;
11739 wxString *arg1 = 0 ;
11740 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11741 bool result;
11742 bool temp1 = False ;
11743 PyObject * obj0 = 0 ;
11744 PyObject * obj1 = 0 ;
11745
11746 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11747 {
11748 arg1 = wxString_in_helper(obj0);
11749 if (arg1 == NULL) SWIG_fail;
11750 temp1 = True;
11751 }
11752 if (obj1) {
11753 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 {
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11759
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 {
11764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11765 }
11766 {
11767 if (temp1)
11768 delete arg1;
11769 }
11770 return resultobj;
11771 fail:
11772 {
11773 if (temp1)
11774 delete arg1;
11775 }
11776 return NULL;
11777 }
11778
11779
11780 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11781 PyObject *resultobj;
11782 char *kwnames[] = {
11783 NULL
11784 };
11785
11786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11787 {
11788 PyThreadState* __tstate = wxPyBeginAllowThreads();
11789 wxSound::Stop();
11790
11791 wxPyEndAllowThreads(__tstate);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
11794 Py_INCREF(Py_None); resultobj = Py_None;
11795 return resultobj;
11796 fail:
11797 return NULL;
11798 }
11799
11800
11801 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11802 PyObject *obj;
11803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11804 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11805 Py_INCREF(obj);
11806 return Py_BuildValue((char *)"");
11807 }
11808 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11809 PyObject *resultobj;
11810 wxString *arg1 = 0 ;
11811 wxString *arg2 = 0 ;
11812 wxString *arg3 = 0 ;
11813 wxString *arg4 = 0 ;
11814 wxFileTypeInfo *result;
11815 bool temp1 = False ;
11816 bool temp2 = False ;
11817 bool temp3 = False ;
11818 bool temp4 = False ;
11819 PyObject * obj0 = 0 ;
11820 PyObject * obj1 = 0 ;
11821 PyObject * obj2 = 0 ;
11822 PyObject * obj3 = 0 ;
11823 char *kwnames[] = {
11824 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11825 };
11826
11827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11828 {
11829 arg1 = wxString_in_helper(obj0);
11830 if (arg1 == NULL) SWIG_fail;
11831 temp1 = True;
11832 }
11833 {
11834 arg2 = wxString_in_helper(obj1);
11835 if (arg2 == NULL) SWIG_fail;
11836 temp2 = True;
11837 }
11838 {
11839 arg3 = wxString_in_helper(obj2);
11840 if (arg3 == NULL) SWIG_fail;
11841 temp3 = True;
11842 }
11843 {
11844 arg4 = wxString_in_helper(obj3);
11845 if (arg4 == NULL) SWIG_fail;
11846 temp4 = True;
11847 }
11848 {
11849 PyThreadState* __tstate = wxPyBeginAllowThreads();
11850 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11851
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11856 {
11857 if (temp1)
11858 delete arg1;
11859 }
11860 {
11861 if (temp2)
11862 delete arg2;
11863 }
11864 {
11865 if (temp3)
11866 delete arg3;
11867 }
11868 {
11869 if (temp4)
11870 delete arg4;
11871 }
11872 return resultobj;
11873 fail:
11874 {
11875 if (temp1)
11876 delete arg1;
11877 }
11878 {
11879 if (temp2)
11880 delete arg2;
11881 }
11882 {
11883 if (temp3)
11884 delete arg3;
11885 }
11886 {
11887 if (temp4)
11888 delete arg4;
11889 }
11890 return NULL;
11891 }
11892
11893
11894 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11895 PyObject *resultobj;
11896 wxArrayString *arg1 = 0 ;
11897 wxFileTypeInfo *result;
11898 bool temp1 = False ;
11899 PyObject * obj0 = 0 ;
11900 char *kwnames[] = {
11901 (char *) "sArray", NULL
11902 };
11903
11904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11905 {
11906 if (! PySequence_Check(obj0)) {
11907 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11908 SWIG_fail;
11909 }
11910 arg1 = new wxArrayString;
11911 temp1 = True;
11912 int i, len=PySequence_Length(obj0);
11913 for (i=0; i<len; i++) {
11914 PyObject* item = PySequence_GetItem(obj0, i);
11915 #if wxUSE_UNICODE
11916 PyObject* str = PyObject_Unicode(item);
11917 #else
11918 PyObject* str = PyObject_Str(item);
11919 #endif
11920 if (PyErr_Occurred()) SWIG_fail;
11921 arg1->Add(Py2wxString(str));
11922 Py_DECREF(item);
11923 Py_DECREF(str);
11924 }
11925 }
11926 {
11927 PyThreadState* __tstate = wxPyBeginAllowThreads();
11928 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11929
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11934 {
11935 if (temp1) delete arg1;
11936 }
11937 return resultobj;
11938 fail:
11939 {
11940 if (temp1) delete arg1;
11941 }
11942 return NULL;
11943 }
11944
11945
11946 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11947 PyObject *resultobj;
11948 wxFileTypeInfo *result;
11949 char *kwnames[] = {
11950 NULL
11951 };
11952
11953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11954 {
11955 PyThreadState* __tstate = wxPyBeginAllowThreads();
11956 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11962 return resultobj;
11963 fail:
11964 return NULL;
11965 }
11966
11967
11968 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11969 PyObject *resultobj;
11970 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11971 bool result;
11972 PyObject * obj0 = 0 ;
11973 char *kwnames[] = {
11974 (char *) "self", NULL
11975 };
11976
11977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11980 {
11981 PyThreadState* __tstate = wxPyBeginAllowThreads();
11982 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11983
11984 wxPyEndAllowThreads(__tstate);
11985 if (PyErr_Occurred()) SWIG_fail;
11986 }
11987 {
11988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11989 }
11990 return resultobj;
11991 fail:
11992 return NULL;
11993 }
11994
11995
11996 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11997 PyObject *resultobj;
11998 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11999 wxString *arg2 = 0 ;
12000 int arg3 = (int) 0 ;
12001 bool temp2 = False ;
12002 PyObject * obj0 = 0 ;
12003 PyObject * obj1 = 0 ;
12004 PyObject * obj2 = 0 ;
12005 char *kwnames[] = {
12006 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12007 };
12008
12009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12012 {
12013 arg2 = wxString_in_helper(obj1);
12014 if (arg2 == NULL) SWIG_fail;
12015 temp2 = True;
12016 }
12017 if (obj2) {
12018 arg3 = (int) SWIG_AsInt(obj2);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12024
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 Py_INCREF(Py_None); resultobj = Py_None;
12029 {
12030 if (temp2)
12031 delete arg2;
12032 }
12033 return resultobj;
12034 fail:
12035 {
12036 if (temp2)
12037 delete arg2;
12038 }
12039 return NULL;
12040 }
12041
12042
12043 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj;
12045 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12046 wxString *arg2 = 0 ;
12047 bool temp2 = False ;
12048 PyObject * obj0 = 0 ;
12049 PyObject * obj1 = 0 ;
12050 char *kwnames[] = {
12051 (char *) "self",(char *) "shortDesc", NULL
12052 };
12053
12054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12057 {
12058 arg2 = wxString_in_helper(obj1);
12059 if (arg2 == NULL) SWIG_fail;
12060 temp2 = True;
12061 }
12062 {
12063 PyThreadState* __tstate = wxPyBeginAllowThreads();
12064 (arg1)->SetShortDesc((wxString const &)*arg2);
12065
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 Py_INCREF(Py_None); resultobj = Py_None;
12070 {
12071 if (temp2)
12072 delete arg2;
12073 }
12074 return resultobj;
12075 fail:
12076 {
12077 if (temp2)
12078 delete arg2;
12079 }
12080 return NULL;
12081 }
12082
12083
12084 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12085 PyObject *resultobj;
12086 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12087 wxString *result;
12088 PyObject * obj0 = 0 ;
12089 char *kwnames[] = {
12090 (char *) "self", NULL
12091 };
12092
12093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12096 {
12097 PyThreadState* __tstate = wxPyBeginAllowThreads();
12098 {
12099 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12100 result = (wxString *) &_result_ref;
12101 }
12102
12103 wxPyEndAllowThreads(__tstate);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 {
12107 #if wxUSE_UNICODE
12108 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12109 #else
12110 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12111 #endif
12112 }
12113 return resultobj;
12114 fail:
12115 return NULL;
12116 }
12117
12118
12119 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12120 PyObject *resultobj;
12121 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12122 wxString *result;
12123 PyObject * obj0 = 0 ;
12124 char *kwnames[] = {
12125 (char *) "self", NULL
12126 };
12127
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 {
12134 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12135 result = (wxString *) &_result_ref;
12136 }
12137
12138 wxPyEndAllowThreads(__tstate);
12139 if (PyErr_Occurred()) SWIG_fail;
12140 }
12141 {
12142 #if wxUSE_UNICODE
12143 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12144 #else
12145 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12146 #endif
12147 }
12148 return resultobj;
12149 fail:
12150 return NULL;
12151 }
12152
12153
12154 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12155 PyObject *resultobj;
12156 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12157 wxString *result;
12158 PyObject * obj0 = 0 ;
12159 char *kwnames[] = {
12160 (char *) "self", NULL
12161 };
12162
12163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12166 {
12167 PyThreadState* __tstate = wxPyBeginAllowThreads();
12168 {
12169 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12170 result = (wxString *) &_result_ref;
12171 }
12172
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 {
12177 #if wxUSE_UNICODE
12178 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12179 #else
12180 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12181 #endif
12182 }
12183 return resultobj;
12184 fail:
12185 return NULL;
12186 }
12187
12188
12189 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12190 PyObject *resultobj;
12191 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12192 wxString *result;
12193 PyObject * obj0 = 0 ;
12194 char *kwnames[] = {
12195 (char *) "self", NULL
12196 };
12197
12198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12201 {
12202 PyThreadState* __tstate = wxPyBeginAllowThreads();
12203 {
12204 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12205 result = (wxString *) &_result_ref;
12206 }
12207
12208 wxPyEndAllowThreads(__tstate);
12209 if (PyErr_Occurred()) SWIG_fail;
12210 }
12211 {
12212 #if wxUSE_UNICODE
12213 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12214 #else
12215 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12216 #endif
12217 }
12218 return resultobj;
12219 fail:
12220 return NULL;
12221 }
12222
12223
12224 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12225 PyObject *resultobj;
12226 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12227 wxString *result;
12228 PyObject * obj0 = 0 ;
12229 char *kwnames[] = {
12230 (char *) "self", NULL
12231 };
12232
12233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 {
12239 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12240 result = (wxString *) &_result_ref;
12241 }
12242
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 {
12247 #if wxUSE_UNICODE
12248 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12249 #else
12250 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12251 #endif
12252 }
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj;
12261 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12262 wxArrayString *result;
12263 PyObject * obj0 = 0 ;
12264 char *kwnames[] = {
12265 (char *) "self", NULL
12266 };
12267
12268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 {
12274 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12275 result = (wxArrayString *) &_result_ref;
12276 }
12277
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 {
12282 resultobj = wxArrayString2PyList_helper(*result);
12283 }
12284 return resultobj;
12285 fail:
12286 return NULL;
12287 }
12288
12289
12290 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12291 PyObject *resultobj;
12292 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12293 int result;
12294 PyObject * obj0 = 0 ;
12295 char *kwnames[] = {
12296 (char *) "self", NULL
12297 };
12298
12299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12302 {
12303 PyThreadState* __tstate = wxPyBeginAllowThreads();
12304 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12305
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 resultobj = SWIG_FromInt((int)result);
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12317 PyObject *resultobj;
12318 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12319 wxString *result;
12320 PyObject * obj0 = 0 ;
12321 char *kwnames[] = {
12322 (char *) "self", NULL
12323 };
12324
12325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 {
12331 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12332 result = (wxString *) &_result_ref;
12333 }
12334
12335 wxPyEndAllowThreads(__tstate);
12336 if (PyErr_Occurred()) SWIG_fail;
12337 }
12338 {
12339 #if wxUSE_UNICODE
12340 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12341 #else
12342 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12343 #endif
12344 }
12345 return resultobj;
12346 fail:
12347 return NULL;
12348 }
12349
12350
12351 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12352 PyObject *resultobj;
12353 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12354 int result;
12355 PyObject * obj0 = 0 ;
12356 char *kwnames[] = {
12357 (char *) "self", NULL
12358 };
12359
12360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12363 {
12364 PyThreadState* __tstate = wxPyBeginAllowThreads();
12365 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12366
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 resultobj = SWIG_FromInt((int)result);
12371 return resultobj;
12372 fail:
12373 return NULL;
12374 }
12375
12376
12377 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12378 PyObject *obj;
12379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12380 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12381 Py_INCREF(obj);
12382 return Py_BuildValue((char *)"");
12383 }
12384 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj;
12386 wxFileTypeInfo *arg1 = 0 ;
12387 wxFileType *result;
12388 PyObject * obj0 = 0 ;
12389 char *kwnames[] = {
12390 (char *) "ftInfo", NULL
12391 };
12392
12393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12395 SWIG_POINTER_EXCEPTION | 0)) == -1)
12396 SWIG_fail;
12397 if (arg1 == NULL) {
12398 PyErr_SetString(PyExc_TypeError,"null reference");
12399 SWIG_fail;
12400 }
12401 {
12402 PyThreadState* __tstate = wxPyBeginAllowThreads();
12403 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12404
12405 wxPyEndAllowThreads(__tstate);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 }
12408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12409 return resultobj;
12410 fail:
12411 return NULL;
12412 }
12413
12414
12415 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12416 PyObject *resultobj;
12417 wxFileType *arg1 = (wxFileType *) 0 ;
12418 PyObject * obj0 = 0 ;
12419 char *kwnames[] = {
12420 (char *) "self", NULL
12421 };
12422
12423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 delete arg1;
12429
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 Py_INCREF(Py_None); resultobj = Py_None;
12434 return resultobj;
12435 fail:
12436 return NULL;
12437 }
12438
12439
12440 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj;
12442 wxFileType *arg1 = (wxFileType *) 0 ;
12443 PyObject *result;
12444 PyObject * obj0 = 0 ;
12445 char *kwnames[] = {
12446 (char *) "self", NULL
12447 };
12448
12449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 result = (PyObject *)wxFileType_GetMimeType(arg1);
12455
12456 wxPyEndAllowThreads(__tstate);
12457 if (PyErr_Occurred()) SWIG_fail;
12458 }
12459 resultobj = result;
12460 return resultobj;
12461 fail:
12462 return NULL;
12463 }
12464
12465
12466 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12467 PyObject *resultobj;
12468 wxFileType *arg1 = (wxFileType *) 0 ;
12469 PyObject *result;
12470 PyObject * obj0 = 0 ;
12471 char *kwnames[] = {
12472 (char *) "self", NULL
12473 };
12474
12475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12481
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 resultobj = result;
12486 return resultobj;
12487 fail:
12488 return NULL;
12489 }
12490
12491
12492 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12493 PyObject *resultobj;
12494 wxFileType *arg1 = (wxFileType *) 0 ;
12495 PyObject *result;
12496 PyObject * obj0 = 0 ;
12497 char *kwnames[] = {
12498 (char *) "self", NULL
12499 };
12500
12501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12504 {
12505 PyThreadState* __tstate = wxPyBeginAllowThreads();
12506 result = (PyObject *)wxFileType_GetExtensions(arg1);
12507
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 resultobj = result;
12512 return resultobj;
12513 fail:
12514 return NULL;
12515 }
12516
12517
12518 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12519 PyObject *resultobj;
12520 wxFileType *arg1 = (wxFileType *) 0 ;
12521 wxIcon *result;
12522 PyObject * obj0 = 0 ;
12523 char *kwnames[] = {
12524 (char *) "self", NULL
12525 };
12526
12527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 result = (wxIcon *)wxFileType_GetIcon(arg1);
12533
12534 wxPyEndAllowThreads(__tstate);
12535 if (PyErr_Occurred()) SWIG_fail;
12536 }
12537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12545 PyObject *resultobj;
12546 wxFileType *arg1 = (wxFileType *) 0 ;
12547 PyObject *result;
12548 PyObject * obj0 = 0 ;
12549 char *kwnames[] = {
12550 (char *) "self", NULL
12551 };
12552
12553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12559
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = result;
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj;
12572 wxFileType *arg1 = (wxFileType *) 0 ;
12573 PyObject *result;
12574 PyObject * obj0 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 result = (PyObject *)wxFileType_GetDescription(arg1);
12585
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 resultobj = result;
12590 return resultobj;
12591 fail:
12592 return NULL;
12593 }
12594
12595
12596 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12597 PyObject *resultobj;
12598 wxFileType *arg1 = (wxFileType *) 0 ;
12599 wxString *arg2 = 0 ;
12600 wxString const &arg3_defvalue = wxPyEmptyString ;
12601 wxString *arg3 = (wxString *) &arg3_defvalue ;
12602 PyObject *result;
12603 bool temp2 = False ;
12604 bool temp3 = False ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 PyObject * obj2 = 0 ;
12608 char *kwnames[] = {
12609 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12610 };
12611
12612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12615 {
12616 arg2 = wxString_in_helper(obj1);
12617 if (arg2 == NULL) SWIG_fail;
12618 temp2 = True;
12619 }
12620 if (obj2) {
12621 {
12622 arg3 = wxString_in_helper(obj2);
12623 if (arg3 == NULL) SWIG_fail;
12624 temp3 = True;
12625 }
12626 }
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12630
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 resultobj = result;
12635 {
12636 if (temp2)
12637 delete arg2;
12638 }
12639 {
12640 if (temp3)
12641 delete arg3;
12642 }
12643 return resultobj;
12644 fail:
12645 {
12646 if (temp2)
12647 delete arg2;
12648 }
12649 {
12650 if (temp3)
12651 delete arg3;
12652 }
12653 return NULL;
12654 }
12655
12656
12657 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj;
12659 wxFileType *arg1 = (wxFileType *) 0 ;
12660 wxString *arg2 = 0 ;
12661 wxString const &arg3_defvalue = wxPyEmptyString ;
12662 wxString *arg3 = (wxString *) &arg3_defvalue ;
12663 PyObject *result;
12664 bool temp2 = False ;
12665 bool temp3 = False ;
12666 PyObject * obj0 = 0 ;
12667 PyObject * obj1 = 0 ;
12668 PyObject * obj2 = 0 ;
12669 char *kwnames[] = {
12670 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12671 };
12672
12673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12676 {
12677 arg2 = wxString_in_helper(obj1);
12678 if (arg2 == NULL) SWIG_fail;
12679 temp2 = True;
12680 }
12681 if (obj2) {
12682 {
12683 arg3 = wxString_in_helper(obj2);
12684 if (arg3 == NULL) SWIG_fail;
12685 temp3 = True;
12686 }
12687 }
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12691
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 resultobj = result;
12696 {
12697 if (temp2)
12698 delete arg2;
12699 }
12700 {
12701 if (temp3)
12702 delete arg3;
12703 }
12704 return resultobj;
12705 fail:
12706 {
12707 if (temp2)
12708 delete arg2;
12709 }
12710 {
12711 if (temp3)
12712 delete arg3;
12713 }
12714 return NULL;
12715 }
12716
12717
12718 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj;
12720 wxFileType *arg1 = (wxFileType *) 0 ;
12721 wxString *arg2 = 0 ;
12722 wxString const &arg3_defvalue = wxPyEmptyString ;
12723 wxString *arg3 = (wxString *) &arg3_defvalue ;
12724 PyObject *result;
12725 bool temp2 = False ;
12726 bool temp3 = False ;
12727 PyObject * obj0 = 0 ;
12728 PyObject * obj1 = 0 ;
12729 PyObject * obj2 = 0 ;
12730 char *kwnames[] = {
12731 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12732 };
12733
12734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12737 {
12738 arg2 = wxString_in_helper(obj1);
12739 if (arg2 == NULL) SWIG_fail;
12740 temp2 = True;
12741 }
12742 if (obj2) {
12743 {
12744 arg3 = wxString_in_helper(obj2);
12745 if (arg3 == NULL) SWIG_fail;
12746 temp3 = True;
12747 }
12748 }
12749 {
12750 PyThreadState* __tstate = wxPyBeginAllowThreads();
12751 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12752
12753 wxPyEndAllowThreads(__tstate);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 resultobj = result;
12757 {
12758 if (temp2)
12759 delete arg2;
12760 }
12761 {
12762 if (temp3)
12763 delete arg3;
12764 }
12765 return resultobj;
12766 fail:
12767 {
12768 if (temp2)
12769 delete arg2;
12770 }
12771 {
12772 if (temp3)
12773 delete arg3;
12774 }
12775 return NULL;
12776 }
12777
12778
12779 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12780 PyObject *resultobj;
12781 wxFileType *arg1 = (wxFileType *) 0 ;
12782 wxString *arg2 = 0 ;
12783 wxString *arg3 = 0 ;
12784 bool arg4 = (bool) True ;
12785 bool result;
12786 bool temp2 = False ;
12787 bool temp3 = False ;
12788 PyObject * obj0 = 0 ;
12789 PyObject * obj1 = 0 ;
12790 PyObject * obj2 = 0 ;
12791 PyObject * obj3 = 0 ;
12792 char *kwnames[] = {
12793 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12794 };
12795
12796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12799 {
12800 arg2 = wxString_in_helper(obj1);
12801 if (arg2 == NULL) SWIG_fail;
12802 temp2 = True;
12803 }
12804 {
12805 arg3 = wxString_in_helper(obj2);
12806 if (arg3 == NULL) SWIG_fail;
12807 temp3 = True;
12808 }
12809 if (obj3) {
12810 arg4 = (bool) SWIG_AsBool(obj3);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12816
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 {
12821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12822 }
12823 {
12824 if (temp2)
12825 delete arg2;
12826 }
12827 {
12828 if (temp3)
12829 delete arg3;
12830 }
12831 return resultobj;
12832 fail:
12833 {
12834 if (temp2)
12835 delete arg2;
12836 }
12837 {
12838 if (temp3)
12839 delete arg3;
12840 }
12841 return NULL;
12842 }
12843
12844
12845 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12846 PyObject *resultobj;
12847 wxFileType *arg1 = (wxFileType *) 0 ;
12848 wxString const &arg2_defvalue = wxPyEmptyString ;
12849 wxString *arg2 = (wxString *) &arg2_defvalue ;
12850 int arg3 = (int) 0 ;
12851 bool result;
12852 bool temp2 = False ;
12853 PyObject * obj0 = 0 ;
12854 PyObject * obj1 = 0 ;
12855 PyObject * obj2 = 0 ;
12856 char *kwnames[] = {
12857 (char *) "self",(char *) "cmd",(char *) "index", NULL
12858 };
12859
12860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12863 if (obj1) {
12864 {
12865 arg2 = wxString_in_helper(obj1);
12866 if (arg2 == NULL) SWIG_fail;
12867 temp2 = True;
12868 }
12869 }
12870 if (obj2) {
12871 arg3 = (int) SWIG_AsInt(obj2);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 {
12875 PyThreadState* __tstate = wxPyBeginAllowThreads();
12876 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12877
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 {
12882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12883 }
12884 {
12885 if (temp2)
12886 delete arg2;
12887 }
12888 return resultobj;
12889 fail:
12890 {
12891 if (temp2)
12892 delete arg2;
12893 }
12894 return NULL;
12895 }
12896
12897
12898 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12899 PyObject *resultobj;
12900 wxFileType *arg1 = (wxFileType *) 0 ;
12901 bool result;
12902 PyObject * obj0 = 0 ;
12903 char *kwnames[] = {
12904 (char *) "self", NULL
12905 };
12906
12907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12910 {
12911 PyThreadState* __tstate = wxPyBeginAllowThreads();
12912 result = (bool)(arg1)->Unassociate();
12913
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 {
12918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12919 }
12920 return resultobj;
12921 fail:
12922 return NULL;
12923 }
12924
12925
12926 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12927 PyObject *resultobj;
12928 wxString *arg1 = 0 ;
12929 wxString *arg2 = 0 ;
12930 wxString const &arg3_defvalue = wxPyEmptyString ;
12931 wxString *arg3 = (wxString *) &arg3_defvalue ;
12932 wxString result;
12933 bool temp1 = False ;
12934 bool temp2 = False ;
12935 bool temp3 = False ;
12936 PyObject * obj0 = 0 ;
12937 PyObject * obj1 = 0 ;
12938 PyObject * obj2 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) 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 if (obj2) {
12955 {
12956 arg3 = wxString_in_helper(obj2);
12957 if (arg3 == NULL) SWIG_fail;
12958 temp3 = True;
12959 }
12960 }
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12964
12965 wxPyEndAllowThreads(__tstate);
12966 if (PyErr_Occurred()) SWIG_fail;
12967 }
12968 {
12969 #if wxUSE_UNICODE
12970 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12971 #else
12972 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12973 #endif
12974 }
12975 {
12976 if (temp1)
12977 delete arg1;
12978 }
12979 {
12980 if (temp2)
12981 delete arg2;
12982 }
12983 {
12984 if (temp3)
12985 delete arg3;
12986 }
12987 return resultobj;
12988 fail:
12989 {
12990 if (temp1)
12991 delete arg1;
12992 }
12993 {
12994 if (temp2)
12995 delete arg2;
12996 }
12997 {
12998 if (temp3)
12999 delete arg3;
13000 }
13001 return NULL;
13002 }
13003
13004
13005 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13006 PyObject *obj;
13007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13008 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13009 Py_INCREF(obj);
13010 return Py_BuildValue((char *)"");
13011 }
13012 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13013 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13014 return 1;
13015 }
13016
13017
13018 static PyObject *_wrap_TheMimeTypesManager_get() {
13019 PyObject *pyobj;
13020
13021 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13022 return pyobj;
13023 }
13024
13025
13026 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13027 PyObject *resultobj;
13028 wxString *arg1 = 0 ;
13029 wxString *arg2 = 0 ;
13030 bool result;
13031 bool temp1 = False ;
13032 bool temp2 = False ;
13033 PyObject * obj0 = 0 ;
13034 PyObject * obj1 = 0 ;
13035 char *kwnames[] = {
13036 (char *) "mimeType",(char *) "wildcard", NULL
13037 };
13038
13039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13040 {
13041 arg1 = wxString_in_helper(obj0);
13042 if (arg1 == NULL) SWIG_fail;
13043 temp1 = True;
13044 }
13045 {
13046 arg2 = wxString_in_helper(obj1);
13047 if (arg2 == NULL) SWIG_fail;
13048 temp2 = True;
13049 }
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13053
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) SWIG_fail;
13056 }
13057 {
13058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13059 }
13060 {
13061 if (temp1)
13062 delete arg1;
13063 }
13064 {
13065 if (temp2)
13066 delete arg2;
13067 }
13068 return resultobj;
13069 fail:
13070 {
13071 if (temp1)
13072 delete arg1;
13073 }
13074 {
13075 if (temp2)
13076 delete arg2;
13077 }
13078 return NULL;
13079 }
13080
13081
13082 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13083 PyObject *resultobj;
13084 wxMimeTypesManager *result;
13085 char *kwnames[] = {
13086 NULL
13087 };
13088
13089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj;
13106 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13107 int arg2 = (int) wxMAILCAP_ALL ;
13108 wxString const &arg3_defvalue = wxPyEmptyString ;
13109 wxString *arg3 = (wxString *) &arg3_defvalue ;
13110 bool temp3 = False ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 PyObject * obj2 = 0 ;
13114 char *kwnames[] = {
13115 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13116 };
13117
13118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13121 if (obj1) {
13122 arg2 = (int) SWIG_AsInt(obj1);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 if (obj2) {
13126 {
13127 arg3 = wxString_in_helper(obj2);
13128 if (arg3 == NULL) SWIG_fail;
13129 temp3 = True;
13130 }
13131 }
13132 {
13133 PyThreadState* __tstate = wxPyBeginAllowThreads();
13134 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13135
13136 wxPyEndAllowThreads(__tstate);
13137 if (PyErr_Occurred()) SWIG_fail;
13138 }
13139 Py_INCREF(Py_None); resultobj = Py_None;
13140 {
13141 if (temp3)
13142 delete arg3;
13143 }
13144 return resultobj;
13145 fail:
13146 {
13147 if (temp3)
13148 delete arg3;
13149 }
13150 return NULL;
13151 }
13152
13153
13154 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13155 PyObject *resultobj;
13156 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13157 PyObject * obj0 = 0 ;
13158 char *kwnames[] = {
13159 (char *) "self", NULL
13160 };
13161
13162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 (arg1)->ClearData();
13168
13169 wxPyEndAllowThreads(__tstate);
13170 if (PyErr_Occurred()) SWIG_fail;
13171 }
13172 Py_INCREF(Py_None); resultobj = Py_None;
13173 return resultobj;
13174 fail:
13175 return NULL;
13176 }
13177
13178
13179 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13180 PyObject *resultobj;
13181 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13182 wxString *arg2 = 0 ;
13183 wxFileType *result;
13184 bool temp2 = False ;
13185 PyObject * obj0 = 0 ;
13186 PyObject * obj1 = 0 ;
13187 char *kwnames[] = {
13188 (char *) "self",(char *) "ext", NULL
13189 };
13190
13191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13194 {
13195 arg2 = wxString_in_helper(obj1);
13196 if (arg2 == NULL) SWIG_fail;
13197 temp2 = True;
13198 }
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13202
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13207 {
13208 if (temp2)
13209 delete arg2;
13210 }
13211 return resultobj;
13212 fail:
13213 {
13214 if (temp2)
13215 delete arg2;
13216 }
13217 return NULL;
13218 }
13219
13220
13221 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13222 PyObject *resultobj;
13223 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13224 wxString *arg2 = 0 ;
13225 wxFileType *result;
13226 bool temp2 = False ;
13227 PyObject * obj0 = 0 ;
13228 PyObject * obj1 = 0 ;
13229 char *kwnames[] = {
13230 (char *) "self",(char *) "mimeType", NULL
13231 };
13232
13233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13236 {
13237 arg2 = wxString_in_helper(obj1);
13238 if (arg2 == NULL) SWIG_fail;
13239 temp2 = True;
13240 }
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13244
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13249 {
13250 if (temp2)
13251 delete arg2;
13252 }
13253 return resultobj;
13254 fail:
13255 {
13256 if (temp2)
13257 delete arg2;
13258 }
13259 return NULL;
13260 }
13261
13262
13263 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj;
13265 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13266 wxString *arg2 = 0 ;
13267 bool arg3 = (bool) False ;
13268 bool result;
13269 bool temp2 = False ;
13270 PyObject * obj0 = 0 ;
13271 PyObject * obj1 = 0 ;
13272 PyObject * obj2 = 0 ;
13273 char *kwnames[] = {
13274 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13275 };
13276
13277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13280 {
13281 arg2 = wxString_in_helper(obj1);
13282 if (arg2 == NULL) SWIG_fail;
13283 temp2 = True;
13284 }
13285 if (obj2) {
13286 arg3 = (bool) SWIG_AsBool(obj2);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 {
13297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13298 }
13299 {
13300 if (temp2)
13301 delete arg2;
13302 }
13303 return resultobj;
13304 fail:
13305 {
13306 if (temp2)
13307 delete arg2;
13308 }
13309 return NULL;
13310 }
13311
13312
13313 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13314 PyObject *resultobj;
13315 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13316 wxString *arg2 = 0 ;
13317 bool result;
13318 bool temp2 = False ;
13319 PyObject * obj0 = 0 ;
13320 PyObject * obj1 = 0 ;
13321 char *kwnames[] = {
13322 (char *) "self",(char *) "filename", NULL
13323 };
13324
13325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13328 {
13329 arg2 = wxString_in_helper(obj1);
13330 if (arg2 == NULL) SWIG_fail;
13331 temp2 = True;
13332 }
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13336
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 {
13341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13342 }
13343 {
13344 if (temp2)
13345 delete arg2;
13346 }
13347 return resultobj;
13348 fail:
13349 {
13350 if (temp2)
13351 delete arg2;
13352 }
13353 return NULL;
13354 }
13355
13356
13357 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13358 PyObject *resultobj;
13359 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13360 PyObject *result;
13361 PyObject * obj0 = 0 ;
13362 char *kwnames[] = {
13363 (char *) "self", NULL
13364 };
13365
13366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13372
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 resultobj = result;
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13384 PyObject *resultobj;
13385 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13386 wxFileTypeInfo *arg2 = 0 ;
13387 PyObject * obj0 = 0 ;
13388 PyObject * obj1 = 0 ;
13389 char *kwnames[] = {
13390 (char *) "self",(char *) "ft", NULL
13391 };
13392
13393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13396 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13397 SWIG_POINTER_EXCEPTION | 0)) == -1)
13398 SWIG_fail;
13399 if (arg2 == NULL) {
13400 PyErr_SetString(PyExc_TypeError,"null reference");
13401 SWIG_fail;
13402 }
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13406
13407 wxPyEndAllowThreads(__tstate);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 Py_INCREF(Py_None); resultobj = Py_None;
13411 return resultobj;
13412 fail:
13413 return NULL;
13414 }
13415
13416
13417 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13418 PyObject *resultobj;
13419 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13420 wxFileTypeInfo *arg2 = 0 ;
13421 wxFileType *result;
13422 PyObject * obj0 = 0 ;
13423 PyObject * obj1 = 0 ;
13424 char *kwnames[] = {
13425 (char *) "self",(char *) "ftInfo", NULL
13426 };
13427
13428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13431 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13432 SWIG_POINTER_EXCEPTION | 0)) == -1)
13433 SWIG_fail;
13434 if (arg2 == NULL) {
13435 PyErr_SetString(PyExc_TypeError,"null reference");
13436 SWIG_fail;
13437 }
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13441
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13446 return resultobj;
13447 fail:
13448 return NULL;
13449 }
13450
13451
13452 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13453 PyObject *resultobj;
13454 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13455 wxFileType *arg2 = (wxFileType *) 0 ;
13456 bool result;
13457 PyObject * obj0 = 0 ;
13458 PyObject * obj1 = 0 ;
13459 char *kwnames[] = {
13460 (char *) "self",(char *) "ft", NULL
13461 };
13462
13463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13468 {
13469 PyThreadState* __tstate = wxPyBeginAllowThreads();
13470 result = (bool)(arg1)->Unassociate(arg2);
13471
13472 wxPyEndAllowThreads(__tstate);
13473 if (PyErr_Occurred()) SWIG_fail;
13474 }
13475 {
13476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13477 }
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13485 PyObject *resultobj;
13486 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13487 PyObject * obj0 = 0 ;
13488 char *kwnames[] = {
13489 (char *) "self", NULL
13490 };
13491
13492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13495 {
13496 PyThreadState* __tstate = wxPyBeginAllowThreads();
13497 delete arg1;
13498
13499 wxPyEndAllowThreads(__tstate);
13500 if (PyErr_Occurred()) SWIG_fail;
13501 }
13502 Py_INCREF(Py_None); resultobj = Py_None;
13503 return resultobj;
13504 fail:
13505 return NULL;
13506 }
13507
13508
13509 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13510 PyObject *obj;
13511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13512 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13513 Py_INCREF(obj);
13514 return Py_BuildValue((char *)"");
13515 }
13516 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13517 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13518 return 1;
13519 }
13520
13521
13522 static PyObject *_wrap_ART_TOOLBAR_get() {
13523 PyObject *pyobj;
13524
13525 {
13526 #if wxUSE_UNICODE
13527 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13528 #else
13529 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13530 #endif
13531 }
13532 return pyobj;
13533 }
13534
13535
13536 static int _wrap_ART_MENU_set(PyObject *_val) {
13537 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13538 return 1;
13539 }
13540
13541
13542 static PyObject *_wrap_ART_MENU_get() {
13543 PyObject *pyobj;
13544
13545 {
13546 #if wxUSE_UNICODE
13547 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13548 #else
13549 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13550 #endif
13551 }
13552 return pyobj;
13553 }
13554
13555
13556 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13557 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13558 return 1;
13559 }
13560
13561
13562 static PyObject *_wrap_ART_FRAME_ICON_get() {
13563 PyObject *pyobj;
13564
13565 {
13566 #if wxUSE_UNICODE
13567 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13568 #else
13569 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13570 #endif
13571 }
13572 return pyobj;
13573 }
13574
13575
13576 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13577 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13578 return 1;
13579 }
13580
13581
13582 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13583 PyObject *pyobj;
13584
13585 {
13586 #if wxUSE_UNICODE
13587 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13588 #else
13589 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13590 #endif
13591 }
13592 return pyobj;
13593 }
13594
13595
13596 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13597 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13598 return 1;
13599 }
13600
13601
13602 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13603 PyObject *pyobj;
13604
13605 {
13606 #if wxUSE_UNICODE
13607 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13608 #else
13609 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13610 #endif
13611 }
13612 return pyobj;
13613 }
13614
13615
13616 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13617 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13618 return 1;
13619 }
13620
13621
13622 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13623 PyObject *pyobj;
13624
13625 {
13626 #if wxUSE_UNICODE
13627 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13628 #else
13629 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13630 #endif
13631 }
13632 return pyobj;
13633 }
13634
13635
13636 static int _wrap_ART_OTHER_set(PyObject *_val) {
13637 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13638 return 1;
13639 }
13640
13641
13642 static PyObject *_wrap_ART_OTHER_get() {
13643 PyObject *pyobj;
13644
13645 {
13646 #if wxUSE_UNICODE
13647 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13648 #else
13649 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13650 #endif
13651 }
13652 return pyobj;
13653 }
13654
13655
13656 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13657 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13658 return 1;
13659 }
13660
13661
13662 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13663 PyObject *pyobj;
13664
13665 {
13666 #if wxUSE_UNICODE
13667 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13668 #else
13669 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13670 #endif
13671 }
13672 return pyobj;
13673 }
13674
13675
13676 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13677 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13678 return 1;
13679 }
13680
13681
13682 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13683 PyObject *pyobj;
13684
13685 {
13686 #if wxUSE_UNICODE
13687 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13688 #else
13689 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13690 #endif
13691 }
13692 return pyobj;
13693 }
13694
13695
13696 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13697 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13698 return 1;
13699 }
13700
13701
13702 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13703 PyObject *pyobj;
13704
13705 {
13706 #if wxUSE_UNICODE
13707 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13708 #else
13709 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13710 #endif
13711 }
13712 return pyobj;
13713 }
13714
13715
13716 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13717 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13718 return 1;
13719 }
13720
13721
13722 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13723 PyObject *pyobj;
13724
13725 {
13726 #if wxUSE_UNICODE
13727 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13728 #else
13729 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13730 #endif
13731 }
13732 return pyobj;
13733 }
13734
13735
13736 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13737 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13738 return 1;
13739 }
13740
13741
13742 static PyObject *_wrap_ART_HELP_BOOK_get() {
13743 PyObject *pyobj;
13744
13745 {
13746 #if wxUSE_UNICODE
13747 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13748 #else
13749 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13750 #endif
13751 }
13752 return pyobj;
13753 }
13754
13755
13756 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13757 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13758 return 1;
13759 }
13760
13761
13762 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13763 PyObject *pyobj;
13764
13765 {
13766 #if wxUSE_UNICODE
13767 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13768 #else
13769 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13770 #endif
13771 }
13772 return pyobj;
13773 }
13774
13775
13776 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13777 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13778 return 1;
13779 }
13780
13781
13782 static PyObject *_wrap_ART_HELP_PAGE_get() {
13783 PyObject *pyobj;
13784
13785 {
13786 #if wxUSE_UNICODE
13787 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13788 #else
13789 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13790 #endif
13791 }
13792 return pyobj;
13793 }
13794
13795
13796 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13797 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13798 return 1;
13799 }
13800
13801
13802 static PyObject *_wrap_ART_GO_BACK_get() {
13803 PyObject *pyobj;
13804
13805 {
13806 #if wxUSE_UNICODE
13807 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13808 #else
13809 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13810 #endif
13811 }
13812 return pyobj;
13813 }
13814
13815
13816 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13817 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13818 return 1;
13819 }
13820
13821
13822 static PyObject *_wrap_ART_GO_FORWARD_get() {
13823 PyObject *pyobj;
13824
13825 {
13826 #if wxUSE_UNICODE
13827 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13828 #else
13829 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13830 #endif
13831 }
13832 return pyobj;
13833 }
13834
13835
13836 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13837 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13838 return 1;
13839 }
13840
13841
13842 static PyObject *_wrap_ART_GO_UP_get() {
13843 PyObject *pyobj;
13844
13845 {
13846 #if wxUSE_UNICODE
13847 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13848 #else
13849 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13850 #endif
13851 }
13852 return pyobj;
13853 }
13854
13855
13856 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13857 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13858 return 1;
13859 }
13860
13861
13862 static PyObject *_wrap_ART_GO_DOWN_get() {
13863 PyObject *pyobj;
13864
13865 {
13866 #if wxUSE_UNICODE
13867 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13868 #else
13869 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13870 #endif
13871 }
13872 return pyobj;
13873 }
13874
13875
13876 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13877 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13878 return 1;
13879 }
13880
13881
13882 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13883 PyObject *pyobj;
13884
13885 {
13886 #if wxUSE_UNICODE
13887 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13888 #else
13889 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13890 #endif
13891 }
13892 return pyobj;
13893 }
13894
13895
13896 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13897 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13898 return 1;
13899 }
13900
13901
13902 static PyObject *_wrap_ART_GO_HOME_get() {
13903 PyObject *pyobj;
13904
13905 {
13906 #if wxUSE_UNICODE
13907 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13908 #else
13909 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13910 #endif
13911 }
13912 return pyobj;
13913 }
13914
13915
13916 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13917 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13918 return 1;
13919 }
13920
13921
13922 static PyObject *_wrap_ART_FILE_OPEN_get() {
13923 PyObject *pyobj;
13924
13925 {
13926 #if wxUSE_UNICODE
13927 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13928 #else
13929 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13930 #endif
13931 }
13932 return pyobj;
13933 }
13934
13935
13936 static int _wrap_ART_PRINT_set(PyObject *_val) {
13937 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13938 return 1;
13939 }
13940
13941
13942 static PyObject *_wrap_ART_PRINT_get() {
13943 PyObject *pyobj;
13944
13945 {
13946 #if wxUSE_UNICODE
13947 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13948 #else
13949 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13950 #endif
13951 }
13952 return pyobj;
13953 }
13954
13955
13956 static int _wrap_ART_HELP_set(PyObject *_val) {
13957 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13958 return 1;
13959 }
13960
13961
13962 static PyObject *_wrap_ART_HELP_get() {
13963 PyObject *pyobj;
13964
13965 {
13966 #if wxUSE_UNICODE
13967 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13968 #else
13969 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13970 #endif
13971 }
13972 return pyobj;
13973 }
13974
13975
13976 static int _wrap_ART_TIP_set(PyObject *_val) {
13977 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13978 return 1;
13979 }
13980
13981
13982 static PyObject *_wrap_ART_TIP_get() {
13983 PyObject *pyobj;
13984
13985 {
13986 #if wxUSE_UNICODE
13987 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13988 #else
13989 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13990 #endif
13991 }
13992 return pyobj;
13993 }
13994
13995
13996 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
13997 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13998 return 1;
13999 }
14000
14001
14002 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14003 PyObject *pyobj;
14004
14005 {
14006 #if wxUSE_UNICODE
14007 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14008 #else
14009 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14010 #endif
14011 }
14012 return pyobj;
14013 }
14014
14015
14016 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14017 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14018 return 1;
14019 }
14020
14021
14022 static PyObject *_wrap_ART_LIST_VIEW_get() {
14023 PyObject *pyobj;
14024
14025 {
14026 #if wxUSE_UNICODE
14027 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14028 #else
14029 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14030 #endif
14031 }
14032 return pyobj;
14033 }
14034
14035
14036 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14037 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14038 return 1;
14039 }
14040
14041
14042 static PyObject *_wrap_ART_NEW_DIR_get() {
14043 PyObject *pyobj;
14044
14045 {
14046 #if wxUSE_UNICODE
14047 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14048 #else
14049 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14050 #endif
14051 }
14052 return pyobj;
14053 }
14054
14055
14056 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14057 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14058 return 1;
14059 }
14060
14061
14062 static PyObject *_wrap_ART_FOLDER_get() {
14063 PyObject *pyobj;
14064
14065 {
14066 #if wxUSE_UNICODE
14067 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14068 #else
14069 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14070 #endif
14071 }
14072 return pyobj;
14073 }
14074
14075
14076 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14077 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14078 return 1;
14079 }
14080
14081
14082 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14083 PyObject *pyobj;
14084
14085 {
14086 #if wxUSE_UNICODE
14087 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14088 #else
14089 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14090 #endif
14091 }
14092 return pyobj;
14093 }
14094
14095
14096 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14097 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14098 return 1;
14099 }
14100
14101
14102 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14103 PyObject *pyobj;
14104
14105 {
14106 #if wxUSE_UNICODE
14107 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14108 #else
14109 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14110 #endif
14111 }
14112 return pyobj;
14113 }
14114
14115
14116 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14117 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14118 return 1;
14119 }
14120
14121
14122 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14123 PyObject *pyobj;
14124
14125 {
14126 #if wxUSE_UNICODE
14127 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14128 #else
14129 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14130 #endif
14131 }
14132 return pyobj;
14133 }
14134
14135
14136 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14137 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14138 return 1;
14139 }
14140
14141
14142 static PyObject *_wrap_ART_TICK_MARK_get() {
14143 PyObject *pyobj;
14144
14145 {
14146 #if wxUSE_UNICODE
14147 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14148 #else
14149 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14150 #endif
14151 }
14152 return pyobj;
14153 }
14154
14155
14156 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14157 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14158 return 1;
14159 }
14160
14161
14162 static PyObject *_wrap_ART_CROSS_MARK_get() {
14163 PyObject *pyobj;
14164
14165 {
14166 #if wxUSE_UNICODE
14167 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14168 #else
14169 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14170 #endif
14171 }
14172 return pyobj;
14173 }
14174
14175
14176 static int _wrap_ART_ERROR_set(PyObject *_val) {
14177 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14178 return 1;
14179 }
14180
14181
14182 static PyObject *_wrap_ART_ERROR_get() {
14183 PyObject *pyobj;
14184
14185 {
14186 #if wxUSE_UNICODE
14187 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14188 #else
14189 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14190 #endif
14191 }
14192 return pyobj;
14193 }
14194
14195
14196 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14197 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14198 return 1;
14199 }
14200
14201
14202 static PyObject *_wrap_ART_QUESTION_get() {
14203 PyObject *pyobj;
14204
14205 {
14206 #if wxUSE_UNICODE
14207 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14208 #else
14209 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14210 #endif
14211 }
14212 return pyobj;
14213 }
14214
14215
14216 static int _wrap_ART_WARNING_set(PyObject *_val) {
14217 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14218 return 1;
14219 }
14220
14221
14222 static PyObject *_wrap_ART_WARNING_get() {
14223 PyObject *pyobj;
14224
14225 {
14226 #if wxUSE_UNICODE
14227 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14228 #else
14229 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14230 #endif
14231 }
14232 return pyobj;
14233 }
14234
14235
14236 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14237 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14238 return 1;
14239 }
14240
14241
14242 static PyObject *_wrap_ART_INFORMATION_get() {
14243 PyObject *pyobj;
14244
14245 {
14246 #if wxUSE_UNICODE
14247 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14248 #else
14249 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14250 #endif
14251 }
14252 return pyobj;
14253 }
14254
14255
14256 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14257 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14258 return 1;
14259 }
14260
14261
14262 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14263 PyObject *pyobj;
14264
14265 {
14266 #if wxUSE_UNICODE
14267 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14268 #else
14269 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14270 #endif
14271 }
14272 return pyobj;
14273 }
14274
14275
14276 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14277 PyObject *resultobj;
14278 wxPyArtProvider *result;
14279 char *kwnames[] = {
14280 NULL
14281 };
14282
14283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 result = (wxPyArtProvider *)new wxPyArtProvider();
14287
14288 wxPyEndAllowThreads(__tstate);
14289 if (PyErr_Occurred()) SWIG_fail;
14290 }
14291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14292 return resultobj;
14293 fail:
14294 return NULL;
14295 }
14296
14297
14298 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14299 PyObject *resultobj;
14300 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14301 PyObject *arg2 = (PyObject *) 0 ;
14302 PyObject *arg3 = (PyObject *) 0 ;
14303 PyObject * obj0 = 0 ;
14304 PyObject * obj1 = 0 ;
14305 PyObject * obj2 = 0 ;
14306 char *kwnames[] = {
14307 (char *) "self",(char *) "self",(char *) "_class", NULL
14308 };
14309
14310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14313 arg2 = obj1;
14314 arg3 = obj2;
14315 {
14316 PyThreadState* __tstate = wxPyBeginAllowThreads();
14317 (arg1)->_setCallbackInfo(arg2,arg3);
14318
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 Py_INCREF(Py_None); resultobj = Py_None;
14323 return resultobj;
14324 fail:
14325 return NULL;
14326 }
14327
14328
14329 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj;
14331 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14332 PyObject * obj0 = 0 ;
14333 char *kwnames[] = {
14334 (char *) "provider", NULL
14335 };
14336
14337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 wxPyArtProvider::PushProvider(arg1);
14343
14344 wxPyEndAllowThreads(__tstate);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 }
14347 Py_INCREF(Py_None); resultobj = Py_None;
14348 return resultobj;
14349 fail:
14350 return NULL;
14351 }
14352
14353
14354 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj;
14356 bool result;
14357 char *kwnames[] = {
14358 NULL
14359 };
14360
14361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14362 {
14363 PyThreadState* __tstate = wxPyBeginAllowThreads();
14364 result = (bool)wxPyArtProvider::PopProvider();
14365
14366 wxPyEndAllowThreads(__tstate);
14367 if (PyErr_Occurred()) SWIG_fail;
14368 }
14369 {
14370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14371 }
14372 return resultobj;
14373 fail:
14374 return NULL;
14375 }
14376
14377
14378 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14379 PyObject *resultobj;
14380 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14381 bool result;
14382 PyObject * obj0 = 0 ;
14383 char *kwnames[] = {
14384 (char *) "provider", NULL
14385 };
14386
14387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14390 {
14391 PyThreadState* __tstate = wxPyBeginAllowThreads();
14392 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14393
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 {
14398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14399 }
14400 return resultobj;
14401 fail:
14402 return NULL;
14403 }
14404
14405
14406 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14407 PyObject *resultobj;
14408 wxString *arg1 = 0 ;
14409 wxString const &arg2_defvalue = wxPyART_OTHER ;
14410 wxString *arg2 = (wxString *) &arg2_defvalue ;
14411 wxSize const &arg3_defvalue = wxDefaultSize ;
14412 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14413 wxBitmap result;
14414 bool temp1 = False ;
14415 bool temp2 = False ;
14416 wxSize temp3 ;
14417 PyObject * obj0 = 0 ;
14418 PyObject * obj1 = 0 ;
14419 PyObject * obj2 = 0 ;
14420 char *kwnames[] = {
14421 (char *) "id",(char *) "client",(char *) "size", NULL
14422 };
14423
14424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14425 {
14426 arg1 = wxString_in_helper(obj0);
14427 if (arg1 == NULL) SWIG_fail;
14428 temp1 = True;
14429 }
14430 if (obj1) {
14431 {
14432 arg2 = wxString_in_helper(obj1);
14433 if (arg2 == NULL) SWIG_fail;
14434 temp2 = True;
14435 }
14436 }
14437 if (obj2) {
14438 {
14439 arg3 = &temp3;
14440 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14441 }
14442 }
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14446
14447 wxPyEndAllowThreads(__tstate);
14448 if (PyErr_Occurred()) SWIG_fail;
14449 }
14450 {
14451 wxBitmap * resultptr;
14452 resultptr = new wxBitmap((wxBitmap &) result);
14453 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14454 }
14455 {
14456 if (temp1)
14457 delete arg1;
14458 }
14459 {
14460 if (temp2)
14461 delete arg2;
14462 }
14463 return resultobj;
14464 fail:
14465 {
14466 if (temp1)
14467 delete arg1;
14468 }
14469 {
14470 if (temp2)
14471 delete arg2;
14472 }
14473 return NULL;
14474 }
14475
14476
14477 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14478 PyObject *resultobj;
14479 wxString *arg1 = 0 ;
14480 wxString const &arg2_defvalue = wxPyART_OTHER ;
14481 wxString *arg2 = (wxString *) &arg2_defvalue ;
14482 wxSize const &arg3_defvalue = wxDefaultSize ;
14483 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14484 wxIcon result;
14485 bool temp1 = False ;
14486 bool temp2 = False ;
14487 wxSize temp3 ;
14488 PyObject * obj0 = 0 ;
14489 PyObject * obj1 = 0 ;
14490 PyObject * obj2 = 0 ;
14491 char *kwnames[] = {
14492 (char *) "id",(char *) "client",(char *) "size", NULL
14493 };
14494
14495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14496 {
14497 arg1 = wxString_in_helper(obj0);
14498 if (arg1 == NULL) SWIG_fail;
14499 temp1 = True;
14500 }
14501 if (obj1) {
14502 {
14503 arg2 = wxString_in_helper(obj1);
14504 if (arg2 == NULL) SWIG_fail;
14505 temp2 = True;
14506 }
14507 }
14508 if (obj2) {
14509 {
14510 arg3 = &temp3;
14511 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14512 }
14513 }
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14517
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 {
14522 wxIcon * resultptr;
14523 resultptr = new wxIcon((wxIcon &) result);
14524 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14525 }
14526 {
14527 if (temp1)
14528 delete arg1;
14529 }
14530 {
14531 if (temp2)
14532 delete arg2;
14533 }
14534 return resultobj;
14535 fail:
14536 {
14537 if (temp1)
14538 delete arg1;
14539 }
14540 {
14541 if (temp2)
14542 delete arg2;
14543 }
14544 return NULL;
14545 }
14546
14547
14548 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj;
14550 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14551 PyObject * obj0 = 0 ;
14552 char *kwnames[] = {
14553 (char *) "self", NULL
14554 };
14555
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 wxPyArtProvider_Destroy(arg1);
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 Py_INCREF(Py_None); resultobj = Py_None;
14567 return resultobj;
14568 fail:
14569 return NULL;
14570 }
14571
14572
14573 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14574 PyObject *obj;
14575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14576 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14577 Py_INCREF(obj);
14578 return Py_BuildValue((char *)"");
14579 }
14580 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14581 PyObject *resultobj;
14582 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14583 PyObject * obj0 = 0 ;
14584 char *kwnames[] = {
14585 (char *) "self", NULL
14586 };
14587
14588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14591 {
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 delete arg1;
14594
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 Py_INCREF(Py_None); resultobj = Py_None;
14599 return resultobj;
14600 fail:
14601 return NULL;
14602 }
14603
14604
14605 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj;
14607 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14608 wxConfigBase *result;
14609 PyObject * obj0 = 0 ;
14610 char *kwnames[] = {
14611 (char *) "config", NULL
14612 };
14613
14614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14617 {
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14620
14621 wxPyEndAllowThreads(__tstate);
14622 if (PyErr_Occurred()) SWIG_fail;
14623 }
14624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14625 return resultobj;
14626 fail:
14627 return NULL;
14628 }
14629
14630
14631 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 bool arg1 = (bool) True ;
14634 wxConfigBase *result;
14635 PyObject * obj0 = 0 ;
14636 char *kwnames[] = {
14637 (char *) "createOnDemand", NULL
14638 };
14639
14640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14641 if (obj0) {
14642 arg1 = (bool) SWIG_AsBool(obj0);
14643 if (PyErr_Occurred()) SWIG_fail;
14644 }
14645 {
14646 PyThreadState* __tstate = wxPyBeginAllowThreads();
14647 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14648
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14653 return resultobj;
14654 fail:
14655 return NULL;
14656 }
14657
14658
14659 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14660 PyObject *resultobj;
14661 wxConfigBase *result;
14662 char *kwnames[] = {
14663 NULL
14664 };
14665
14666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14667 {
14668 PyThreadState* __tstate = wxPyBeginAllowThreads();
14669 result = (wxConfigBase *)wxConfigBase::Create();
14670
14671 wxPyEndAllowThreads(__tstate);
14672 if (PyErr_Occurred()) SWIG_fail;
14673 }
14674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14675 return resultobj;
14676 fail:
14677 return NULL;
14678 }
14679
14680
14681 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14682 PyObject *resultobj;
14683 char *kwnames[] = {
14684 NULL
14685 };
14686
14687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14688 {
14689 PyThreadState* __tstate = wxPyBeginAllowThreads();
14690 wxConfigBase::DontCreateOnDemand();
14691
14692 wxPyEndAllowThreads(__tstate);
14693 if (PyErr_Occurred()) SWIG_fail;
14694 }
14695 Py_INCREF(Py_None); resultobj = Py_None;
14696 return resultobj;
14697 fail:
14698 return NULL;
14699 }
14700
14701
14702 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14703 PyObject *resultobj;
14704 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14705 wxString *arg2 = 0 ;
14706 bool temp2 = False ;
14707 PyObject * obj0 = 0 ;
14708 PyObject * obj1 = 0 ;
14709 char *kwnames[] = {
14710 (char *) "self",(char *) "path", NULL
14711 };
14712
14713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14716 {
14717 arg2 = wxString_in_helper(obj1);
14718 if (arg2 == NULL) SWIG_fail;
14719 temp2 = True;
14720 }
14721 {
14722 PyThreadState* __tstate = wxPyBeginAllowThreads();
14723 (arg1)->SetPath((wxString const &)*arg2);
14724
14725 wxPyEndAllowThreads(__tstate);
14726 if (PyErr_Occurred()) SWIG_fail;
14727 }
14728 Py_INCREF(Py_None); resultobj = Py_None;
14729 {
14730 if (temp2)
14731 delete arg2;
14732 }
14733 return resultobj;
14734 fail:
14735 {
14736 if (temp2)
14737 delete arg2;
14738 }
14739 return NULL;
14740 }
14741
14742
14743 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14744 PyObject *resultobj;
14745 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14746 wxString *result;
14747 PyObject * obj0 = 0 ;
14748 char *kwnames[] = {
14749 (char *) "self", NULL
14750 };
14751
14752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 {
14758 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14759 result = (wxString *) &_result_ref;
14760 }
14761
14762 wxPyEndAllowThreads(__tstate);
14763 if (PyErr_Occurred()) SWIG_fail;
14764 }
14765 {
14766 #if wxUSE_UNICODE
14767 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14768 #else
14769 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14770 #endif
14771 }
14772 return resultobj;
14773 fail:
14774 return NULL;
14775 }
14776
14777
14778 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14779 PyObject *resultobj;
14780 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14781 PyObject *result;
14782 PyObject * obj0 = 0 ;
14783 char *kwnames[] = {
14784 (char *) "self", NULL
14785 };
14786
14787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14790 {
14791 PyThreadState* __tstate = wxPyBeginAllowThreads();
14792 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14793
14794 wxPyEndAllowThreads(__tstate);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 }
14797 resultobj = result;
14798 return resultobj;
14799 fail:
14800 return NULL;
14801 }
14802
14803
14804 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14805 PyObject *resultobj;
14806 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14807 long arg2 ;
14808 PyObject *result;
14809 PyObject * obj0 = 0 ;
14810 PyObject * obj1 = 0 ;
14811 char *kwnames[] = {
14812 (char *) "self",(char *) "index", NULL
14813 };
14814
14815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14818 arg2 = (long) SWIG_AsLong(obj1);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14823
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 resultobj = result;
14828 return resultobj;
14829 fail:
14830 return NULL;
14831 }
14832
14833
14834 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14835 PyObject *resultobj;
14836 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14837 PyObject *result;
14838 PyObject * obj0 = 0 ;
14839 char *kwnames[] = {
14840 (char *) "self", NULL
14841 };
14842
14843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14849
14850 wxPyEndAllowThreads(__tstate);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 }
14853 resultobj = result;
14854 return resultobj;
14855 fail:
14856 return NULL;
14857 }
14858
14859
14860 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14861 PyObject *resultobj;
14862 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14863 long arg2 ;
14864 PyObject *result;
14865 PyObject * obj0 = 0 ;
14866 PyObject * obj1 = 0 ;
14867 char *kwnames[] = {
14868 (char *) "self",(char *) "index", NULL
14869 };
14870
14871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14874 arg2 = (long) SWIG_AsLong(obj1);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 resultobj = result;
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj;
14892 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14893 bool arg2 = (bool) False ;
14894 size_t result;
14895 PyObject * obj0 = 0 ;
14896 PyObject * obj1 = 0 ;
14897 char *kwnames[] = {
14898 (char *) "self",(char *) "recursive", NULL
14899 };
14900
14901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14904 if (obj1) {
14905 arg2 = (bool) SWIG_AsBool(obj1);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14911
14912 wxPyEndAllowThreads(__tstate);
14913 if (PyErr_Occurred()) SWIG_fail;
14914 }
14915 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14916 return resultobj;
14917 fail:
14918 return NULL;
14919 }
14920
14921
14922 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj;
14924 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14925 bool arg2 = (bool) False ;
14926 size_t result;
14927 PyObject * obj0 = 0 ;
14928 PyObject * obj1 = 0 ;
14929 char *kwnames[] = {
14930 (char *) "self",(char *) "recursive", NULL
14931 };
14932
14933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14936 if (obj1) {
14937 arg2 = (bool) SWIG_AsBool(obj1);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 {
14941 PyThreadState* __tstate = wxPyBeginAllowThreads();
14942 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14943
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14948 return resultobj;
14949 fail:
14950 return NULL;
14951 }
14952
14953
14954 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14955 PyObject *resultobj;
14956 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14957 wxString *arg2 = 0 ;
14958 bool result;
14959 bool temp2 = False ;
14960 PyObject * obj0 = 0 ;
14961 PyObject * obj1 = 0 ;
14962 char *kwnames[] = {
14963 (char *) "self",(char *) "name", NULL
14964 };
14965
14966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14969 {
14970 arg2 = wxString_in_helper(obj1);
14971 if (arg2 == NULL) SWIG_fail;
14972 temp2 = True;
14973 }
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14977
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 {
14982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14983 }
14984 {
14985 if (temp2)
14986 delete arg2;
14987 }
14988 return resultobj;
14989 fail:
14990 {
14991 if (temp2)
14992 delete arg2;
14993 }
14994 return NULL;
14995 }
14996
14997
14998 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj;
15000 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15001 wxString *arg2 = 0 ;
15002 bool result;
15003 bool temp2 = False ;
15004 PyObject * obj0 = 0 ;
15005 PyObject * obj1 = 0 ;
15006 char *kwnames[] = {
15007 (char *) "self",(char *) "name", NULL
15008 };
15009
15010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15013 {
15014 arg2 = wxString_in_helper(obj1);
15015 if (arg2 == NULL) SWIG_fail;
15016 temp2 = True;
15017 }
15018 {
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15021
15022 wxPyEndAllowThreads(__tstate);
15023 if (PyErr_Occurred()) SWIG_fail;
15024 }
15025 {
15026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15027 }
15028 {
15029 if (temp2)
15030 delete arg2;
15031 }
15032 return resultobj;
15033 fail:
15034 {
15035 if (temp2)
15036 delete arg2;
15037 }
15038 return NULL;
15039 }
15040
15041
15042 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj;
15044 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15045 wxString *arg2 = 0 ;
15046 bool result;
15047 bool temp2 = False ;
15048 PyObject * obj0 = 0 ;
15049 PyObject * obj1 = 0 ;
15050 char *kwnames[] = {
15051 (char *) "self",(char *) "name", NULL
15052 };
15053
15054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15057 {
15058 arg2 = wxString_in_helper(obj1);
15059 if (arg2 == NULL) SWIG_fail;
15060 temp2 = True;
15061 }
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15065
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 {
15070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15071 }
15072 {
15073 if (temp2)
15074 delete arg2;
15075 }
15076 return resultobj;
15077 fail:
15078 {
15079 if (temp2)
15080 delete arg2;
15081 }
15082 return NULL;
15083 }
15084
15085
15086 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj;
15088 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15089 wxString *arg2 = 0 ;
15090 int result;
15091 bool temp2 = False ;
15092 PyObject * obj0 = 0 ;
15093 PyObject * obj1 = 0 ;
15094 char *kwnames[] = {
15095 (char *) "self",(char *) "name", NULL
15096 };
15097
15098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15101 {
15102 arg2 = wxString_in_helper(obj1);
15103 if (arg2 == NULL) SWIG_fail;
15104 temp2 = True;
15105 }
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15109
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 resultobj = SWIG_FromInt((int)result);
15114 {
15115 if (temp2)
15116 delete arg2;
15117 }
15118 return resultobj;
15119 fail:
15120 {
15121 if (temp2)
15122 delete arg2;
15123 }
15124 return NULL;
15125 }
15126
15127
15128 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15129 PyObject *resultobj;
15130 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15131 wxString *arg2 = 0 ;
15132 wxString const &arg3_defvalue = wxPyEmptyString ;
15133 wxString *arg3 = (wxString *) &arg3_defvalue ;
15134 wxString result;
15135 bool temp2 = False ;
15136 bool temp3 = False ;
15137 PyObject * obj0 = 0 ;
15138 PyObject * obj1 = 0 ;
15139 PyObject * obj2 = 0 ;
15140 char *kwnames[] = {
15141 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15142 };
15143
15144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15147 {
15148 arg2 = wxString_in_helper(obj1);
15149 if (arg2 == NULL) SWIG_fail;
15150 temp2 = True;
15151 }
15152 if (obj2) {
15153 {
15154 arg3 = wxString_in_helper(obj2);
15155 if (arg3 == NULL) SWIG_fail;
15156 temp3 = True;
15157 }
15158 }
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15162
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 {
15167 #if wxUSE_UNICODE
15168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15169 #else
15170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15171 #endif
15172 }
15173 {
15174 if (temp2)
15175 delete arg2;
15176 }
15177 {
15178 if (temp3)
15179 delete arg3;
15180 }
15181 return resultobj;
15182 fail:
15183 {
15184 if (temp2)
15185 delete arg2;
15186 }
15187 {
15188 if (temp3)
15189 delete arg3;
15190 }
15191 return NULL;
15192 }
15193
15194
15195 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15196 PyObject *resultobj;
15197 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15198 wxString *arg2 = 0 ;
15199 long arg3 = (long) 0 ;
15200 long result;
15201 bool temp2 = False ;
15202 PyObject * obj0 = 0 ;
15203 PyObject * obj1 = 0 ;
15204 PyObject * obj2 = 0 ;
15205 char *kwnames[] = {
15206 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15207 };
15208
15209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15212 {
15213 arg2 = wxString_in_helper(obj1);
15214 if (arg2 == NULL) SWIG_fail;
15215 temp2 = True;
15216 }
15217 if (obj2) {
15218 arg3 = (long) SWIG_AsLong(obj2);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 {
15222 PyThreadState* __tstate = wxPyBeginAllowThreads();
15223 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15224
15225 wxPyEndAllowThreads(__tstate);
15226 if (PyErr_Occurred()) SWIG_fail;
15227 }
15228 resultobj = SWIG_FromLong((long)result);
15229 {
15230 if (temp2)
15231 delete arg2;
15232 }
15233 return resultobj;
15234 fail:
15235 {
15236 if (temp2)
15237 delete arg2;
15238 }
15239 return NULL;
15240 }
15241
15242
15243 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15244 PyObject *resultobj;
15245 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15246 wxString *arg2 = 0 ;
15247 double arg3 = (double) 0.0 ;
15248 double result;
15249 bool temp2 = False ;
15250 PyObject * obj0 = 0 ;
15251 PyObject * obj1 = 0 ;
15252 PyObject * obj2 = 0 ;
15253 char *kwnames[] = {
15254 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15260 {
15261 arg2 = wxString_in_helper(obj1);
15262 if (arg2 == NULL) SWIG_fail;
15263 temp2 = True;
15264 }
15265 if (obj2) {
15266 arg3 = (double) SWIG_AsDouble(obj2);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 {
15270 PyThreadState* __tstate = wxPyBeginAllowThreads();
15271 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15272
15273 wxPyEndAllowThreads(__tstate);
15274 if (PyErr_Occurred()) SWIG_fail;
15275 }
15276 resultobj = SWIG_FromDouble((double)result);
15277 {
15278 if (temp2)
15279 delete arg2;
15280 }
15281 return resultobj;
15282 fail:
15283 {
15284 if (temp2)
15285 delete arg2;
15286 }
15287 return NULL;
15288 }
15289
15290
15291 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15292 PyObject *resultobj;
15293 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15294 wxString *arg2 = 0 ;
15295 bool arg3 = (bool) False ;
15296 bool result;
15297 bool temp2 = False ;
15298 PyObject * obj0 = 0 ;
15299 PyObject * obj1 = 0 ;
15300 PyObject * obj2 = 0 ;
15301 char *kwnames[] = {
15302 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15303 };
15304
15305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15308 {
15309 arg2 = wxString_in_helper(obj1);
15310 if (arg2 == NULL) SWIG_fail;
15311 temp2 = True;
15312 }
15313 if (obj2) {
15314 arg3 = (bool) SWIG_AsBool(obj2);
15315 if (PyErr_Occurred()) SWIG_fail;
15316 }
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 {
15325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15326 }
15327 {
15328 if (temp2)
15329 delete arg2;
15330 }
15331 return resultobj;
15332 fail:
15333 {
15334 if (temp2)
15335 delete arg2;
15336 }
15337 return NULL;
15338 }
15339
15340
15341 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15342 PyObject *resultobj;
15343 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15344 wxString *arg2 = 0 ;
15345 wxString *arg3 = 0 ;
15346 bool result;
15347 bool temp2 = False ;
15348 bool temp3 = False ;
15349 PyObject * obj0 = 0 ;
15350 PyObject * obj1 = 0 ;
15351 PyObject * obj2 = 0 ;
15352 char *kwnames[] = {
15353 (char *) "self",(char *) "key",(char *) "value", NULL
15354 };
15355
15356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15359 {
15360 arg2 = wxString_in_helper(obj1);
15361 if (arg2 == NULL) SWIG_fail;
15362 temp2 = True;
15363 }
15364 {
15365 arg3 = wxString_in_helper(obj2);
15366 if (arg3 == NULL) SWIG_fail;
15367 temp3 = True;
15368 }
15369 {
15370 PyThreadState* __tstate = wxPyBeginAllowThreads();
15371 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15372
15373 wxPyEndAllowThreads(__tstate);
15374 if (PyErr_Occurred()) SWIG_fail;
15375 }
15376 {
15377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15378 }
15379 {
15380 if (temp2)
15381 delete arg2;
15382 }
15383 {
15384 if (temp3)
15385 delete arg3;
15386 }
15387 return resultobj;
15388 fail:
15389 {
15390 if (temp2)
15391 delete arg2;
15392 }
15393 {
15394 if (temp3)
15395 delete arg3;
15396 }
15397 return NULL;
15398 }
15399
15400
15401 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15402 PyObject *resultobj;
15403 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15404 wxString *arg2 = 0 ;
15405 long arg3 ;
15406 bool result;
15407 bool temp2 = False ;
15408 PyObject * obj0 = 0 ;
15409 PyObject * obj1 = 0 ;
15410 PyObject * obj2 = 0 ;
15411 char *kwnames[] = {
15412 (char *) "self",(char *) "key",(char *) "value", NULL
15413 };
15414
15415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15418 {
15419 arg2 = wxString_in_helper(obj1);
15420 if (arg2 == NULL) SWIG_fail;
15421 temp2 = True;
15422 }
15423 arg3 = (long) SWIG_AsLong(obj2);
15424 if (PyErr_Occurred()) SWIG_fail;
15425 {
15426 PyThreadState* __tstate = wxPyBeginAllowThreads();
15427 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15428
15429 wxPyEndAllowThreads(__tstate);
15430 if (PyErr_Occurred()) SWIG_fail;
15431 }
15432 {
15433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15434 }
15435 {
15436 if (temp2)
15437 delete arg2;
15438 }
15439 return resultobj;
15440 fail:
15441 {
15442 if (temp2)
15443 delete arg2;
15444 }
15445 return NULL;
15446 }
15447
15448
15449 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj;
15451 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15452 wxString *arg2 = 0 ;
15453 double arg3 ;
15454 bool result;
15455 bool temp2 = False ;
15456 PyObject * obj0 = 0 ;
15457 PyObject * obj1 = 0 ;
15458 PyObject * obj2 = 0 ;
15459 char *kwnames[] = {
15460 (char *) "self",(char *) "key",(char *) "value", NULL
15461 };
15462
15463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15466 {
15467 arg2 = wxString_in_helper(obj1);
15468 if (arg2 == NULL) SWIG_fail;
15469 temp2 = True;
15470 }
15471 arg3 = (double) SWIG_AsDouble(obj2);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 {
15474 PyThreadState* __tstate = wxPyBeginAllowThreads();
15475 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15476
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 {
15481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15482 }
15483 {
15484 if (temp2)
15485 delete arg2;
15486 }
15487 return resultobj;
15488 fail:
15489 {
15490 if (temp2)
15491 delete arg2;
15492 }
15493 return NULL;
15494 }
15495
15496
15497 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15498 PyObject *resultobj;
15499 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15500 wxString *arg2 = 0 ;
15501 bool arg3 ;
15502 bool result;
15503 bool temp2 = False ;
15504 PyObject * obj0 = 0 ;
15505 PyObject * obj1 = 0 ;
15506 PyObject * obj2 = 0 ;
15507 char *kwnames[] = {
15508 (char *) "self",(char *) "key",(char *) "value", NULL
15509 };
15510
15511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15514 {
15515 arg2 = wxString_in_helper(obj1);
15516 if (arg2 == NULL) SWIG_fail;
15517 temp2 = True;
15518 }
15519 arg3 = (bool) SWIG_AsBool(obj2);
15520 if (PyErr_Occurred()) SWIG_fail;
15521 {
15522 PyThreadState* __tstate = wxPyBeginAllowThreads();
15523 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15524
15525 wxPyEndAllowThreads(__tstate);
15526 if (PyErr_Occurred()) SWIG_fail;
15527 }
15528 {
15529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15530 }
15531 {
15532 if (temp2)
15533 delete arg2;
15534 }
15535 return resultobj;
15536 fail:
15537 {
15538 if (temp2)
15539 delete arg2;
15540 }
15541 return NULL;
15542 }
15543
15544
15545 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15546 PyObject *resultobj;
15547 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15548 bool arg2 = (bool) False ;
15549 bool result;
15550 PyObject * obj0 = 0 ;
15551 PyObject * obj1 = 0 ;
15552 char *kwnames[] = {
15553 (char *) "self",(char *) "currentOnly", NULL
15554 };
15555
15556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15559 if (obj1) {
15560 arg2 = (bool) SWIG_AsBool(obj1);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = (bool)(arg1)->Flush(arg2);
15566
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 {
15571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15572 }
15573 return resultobj;
15574 fail:
15575 return NULL;
15576 }
15577
15578
15579 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj;
15581 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15582 wxString *arg2 = 0 ;
15583 wxString *arg3 = 0 ;
15584 bool result;
15585 bool temp2 = False ;
15586 bool temp3 = False ;
15587 PyObject * obj0 = 0 ;
15588 PyObject * obj1 = 0 ;
15589 PyObject * obj2 = 0 ;
15590 char *kwnames[] = {
15591 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15592 };
15593
15594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15597 {
15598 arg2 = wxString_in_helper(obj1);
15599 if (arg2 == NULL) SWIG_fail;
15600 temp2 = True;
15601 }
15602 {
15603 arg3 = wxString_in_helper(obj2);
15604 if (arg3 == NULL) SWIG_fail;
15605 temp3 = True;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 {
15615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15616 }
15617 {
15618 if (temp2)
15619 delete arg2;
15620 }
15621 {
15622 if (temp3)
15623 delete arg3;
15624 }
15625 return resultobj;
15626 fail:
15627 {
15628 if (temp2)
15629 delete arg2;
15630 }
15631 {
15632 if (temp3)
15633 delete arg3;
15634 }
15635 return NULL;
15636 }
15637
15638
15639 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15640 PyObject *resultobj;
15641 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15642 wxString *arg2 = 0 ;
15643 wxString *arg3 = 0 ;
15644 bool result;
15645 bool temp2 = False ;
15646 bool temp3 = False ;
15647 PyObject * obj0 = 0 ;
15648 PyObject * obj1 = 0 ;
15649 PyObject * obj2 = 0 ;
15650 char *kwnames[] = {
15651 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15652 };
15653
15654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15657 {
15658 arg2 = wxString_in_helper(obj1);
15659 if (arg2 == NULL) SWIG_fail;
15660 temp2 = True;
15661 }
15662 {
15663 arg3 = wxString_in_helper(obj2);
15664 if (arg3 == NULL) SWIG_fail;
15665 temp3 = True;
15666 }
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15670
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 {
15675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15676 }
15677 {
15678 if (temp2)
15679 delete arg2;
15680 }
15681 {
15682 if (temp3)
15683 delete arg3;
15684 }
15685 return resultobj;
15686 fail:
15687 {
15688 if (temp2)
15689 delete arg2;
15690 }
15691 {
15692 if (temp3)
15693 delete arg3;
15694 }
15695 return NULL;
15696 }
15697
15698
15699 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15700 PyObject *resultobj;
15701 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15702 wxString *arg2 = 0 ;
15703 bool arg3 = (bool) True ;
15704 bool result;
15705 bool temp2 = False ;
15706 PyObject * obj0 = 0 ;
15707 PyObject * obj1 = 0 ;
15708 PyObject * obj2 = 0 ;
15709 char *kwnames[] = {
15710 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15711 };
15712
15713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15716 {
15717 arg2 = wxString_in_helper(obj1);
15718 if (arg2 == NULL) SWIG_fail;
15719 temp2 = True;
15720 }
15721 if (obj2) {
15722 arg3 = (bool) SWIG_AsBool(obj2);
15723 if (PyErr_Occurred()) SWIG_fail;
15724 }
15725 {
15726 PyThreadState* __tstate = wxPyBeginAllowThreads();
15727 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15728
15729 wxPyEndAllowThreads(__tstate);
15730 if (PyErr_Occurred()) SWIG_fail;
15731 }
15732 {
15733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15734 }
15735 {
15736 if (temp2)
15737 delete arg2;
15738 }
15739 return resultobj;
15740 fail:
15741 {
15742 if (temp2)
15743 delete arg2;
15744 }
15745 return NULL;
15746 }
15747
15748
15749 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15750 PyObject *resultobj;
15751 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15752 wxString *arg2 = 0 ;
15753 bool result;
15754 bool temp2 = False ;
15755 PyObject * obj0 = 0 ;
15756 PyObject * obj1 = 0 ;
15757 char *kwnames[] = {
15758 (char *) "self",(char *) "key", NULL
15759 };
15760
15761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15764 {
15765 arg2 = wxString_in_helper(obj1);
15766 if (arg2 == NULL) SWIG_fail;
15767 temp2 = True;
15768 }
15769 {
15770 PyThreadState* __tstate = wxPyBeginAllowThreads();
15771 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15772
15773 wxPyEndAllowThreads(__tstate);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
15776 {
15777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15778 }
15779 {
15780 if (temp2)
15781 delete arg2;
15782 }
15783 return resultobj;
15784 fail:
15785 {
15786 if (temp2)
15787 delete arg2;
15788 }
15789 return NULL;
15790 }
15791
15792
15793 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15794 PyObject *resultobj;
15795 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15796 bool result;
15797 PyObject * obj0 = 0 ;
15798 char *kwnames[] = {
15799 (char *) "self", NULL
15800 };
15801
15802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 result = (bool)(arg1)->DeleteAll();
15808
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 {
15813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15814 }
15815 return resultobj;
15816 fail:
15817 return NULL;
15818 }
15819
15820
15821 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15822 PyObject *resultobj;
15823 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15824 bool arg2 = (bool) True ;
15825 PyObject * obj0 = 0 ;
15826 PyObject * obj1 = 0 ;
15827 char *kwnames[] = {
15828 (char *) "self",(char *) "doIt", NULL
15829 };
15830
15831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15834 if (obj1) {
15835 arg2 = (bool) SWIG_AsBool(obj1);
15836 if (PyErr_Occurred()) SWIG_fail;
15837 }
15838 {
15839 PyThreadState* __tstate = wxPyBeginAllowThreads();
15840 (arg1)->SetExpandEnvVars(arg2);
15841
15842 wxPyEndAllowThreads(__tstate);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 }
15845 Py_INCREF(Py_None); resultobj = Py_None;
15846 return resultobj;
15847 fail:
15848 return NULL;
15849 }
15850
15851
15852 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15853 PyObject *resultobj;
15854 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15855 bool result;
15856 PyObject * obj0 = 0 ;
15857 char *kwnames[] = {
15858 (char *) "self", NULL
15859 };
15860
15861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15867
15868 wxPyEndAllowThreads(__tstate);
15869 if (PyErr_Occurred()) SWIG_fail;
15870 }
15871 {
15872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15873 }
15874 return resultobj;
15875 fail:
15876 return NULL;
15877 }
15878
15879
15880 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15881 PyObject *resultobj;
15882 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15883 bool arg2 = (bool) True ;
15884 PyObject * obj0 = 0 ;
15885 PyObject * obj1 = 0 ;
15886 char *kwnames[] = {
15887 (char *) "self",(char *) "doIt", NULL
15888 };
15889
15890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15893 if (obj1) {
15894 arg2 = (bool) SWIG_AsBool(obj1);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 {
15898 PyThreadState* __tstate = wxPyBeginAllowThreads();
15899 (arg1)->SetRecordDefaults(arg2);
15900
15901 wxPyEndAllowThreads(__tstate);
15902 if (PyErr_Occurred()) SWIG_fail;
15903 }
15904 Py_INCREF(Py_None); resultobj = Py_None;
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15912 PyObject *resultobj;
15913 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15914 bool result;
15915 PyObject * obj0 = 0 ;
15916 char *kwnames[] = {
15917 (char *) "self", NULL
15918 };
15919
15920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15926
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 {
15931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15932 }
15933 return resultobj;
15934 fail:
15935 return NULL;
15936 }
15937
15938
15939 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15940 PyObject *resultobj;
15941 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15942 wxString *arg2 = 0 ;
15943 wxString result;
15944 bool temp2 = False ;
15945 PyObject * obj0 = 0 ;
15946 PyObject * obj1 = 0 ;
15947 char *kwnames[] = {
15948 (char *) "self",(char *) "str", NULL
15949 };
15950
15951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15954 {
15955 arg2 = wxString_in_helper(obj1);
15956 if (arg2 == NULL) SWIG_fail;
15957 temp2 = True;
15958 }
15959 {
15960 PyThreadState* __tstate = wxPyBeginAllowThreads();
15961 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15962
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 {
15967 #if wxUSE_UNICODE
15968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15969 #else
15970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15971 #endif
15972 }
15973 {
15974 if (temp2)
15975 delete arg2;
15976 }
15977 return resultobj;
15978 fail:
15979 {
15980 if (temp2)
15981 delete arg2;
15982 }
15983 return NULL;
15984 }
15985
15986
15987 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15990 wxString result;
15991 PyObject * obj0 = 0 ;
15992 char *kwnames[] = {
15993 (char *) "self", NULL
15994 };
15995
15996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = ((wxConfigBase const *)arg1)->GetAppName();
16002
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 {
16007 #if wxUSE_UNICODE
16008 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16009 #else
16010 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16011 #endif
16012 }
16013 return resultobj;
16014 fail:
16015 return NULL;
16016 }
16017
16018
16019 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16020 PyObject *resultobj;
16021 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16022 wxString result;
16023 PyObject * obj0 = 0 ;
16024 char *kwnames[] = {
16025 (char *) "self", NULL
16026 };
16027
16028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16031 {
16032 PyThreadState* __tstate = wxPyBeginAllowThreads();
16033 result = ((wxConfigBase const *)arg1)->GetVendorName();
16034
16035 wxPyEndAllowThreads(__tstate);
16036 if (PyErr_Occurred()) SWIG_fail;
16037 }
16038 {
16039 #if wxUSE_UNICODE
16040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16041 #else
16042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16043 #endif
16044 }
16045 return resultobj;
16046 fail:
16047 return NULL;
16048 }
16049
16050
16051 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16052 PyObject *resultobj;
16053 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16054 wxString *arg2 = 0 ;
16055 bool temp2 = False ;
16056 PyObject * obj0 = 0 ;
16057 PyObject * obj1 = 0 ;
16058 char *kwnames[] = {
16059 (char *) "self",(char *) "appName", NULL
16060 };
16061
16062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16065 {
16066 arg2 = wxString_in_helper(obj1);
16067 if (arg2 == NULL) SWIG_fail;
16068 temp2 = True;
16069 }
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 (arg1)->SetAppName((wxString const &)*arg2);
16073
16074 wxPyEndAllowThreads(__tstate);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 Py_INCREF(Py_None); resultobj = Py_None;
16078 {
16079 if (temp2)
16080 delete arg2;
16081 }
16082 return resultobj;
16083 fail:
16084 {
16085 if (temp2)
16086 delete arg2;
16087 }
16088 return NULL;
16089 }
16090
16091
16092 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj;
16094 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16095 wxString *arg2 = 0 ;
16096 bool temp2 = False ;
16097 PyObject * obj0 = 0 ;
16098 PyObject * obj1 = 0 ;
16099 char *kwnames[] = {
16100 (char *) "self",(char *) "vendorName", NULL
16101 };
16102
16103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16106 {
16107 arg2 = wxString_in_helper(obj1);
16108 if (arg2 == NULL) SWIG_fail;
16109 temp2 = True;
16110 }
16111 {
16112 PyThreadState* __tstate = wxPyBeginAllowThreads();
16113 (arg1)->SetVendorName((wxString const &)*arg2);
16114
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 Py_INCREF(Py_None); resultobj = Py_None;
16119 {
16120 if (temp2)
16121 delete arg2;
16122 }
16123 return resultobj;
16124 fail:
16125 {
16126 if (temp2)
16127 delete arg2;
16128 }
16129 return NULL;
16130 }
16131
16132
16133 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16134 PyObject *resultobj;
16135 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16136 long arg2 ;
16137 PyObject * obj0 = 0 ;
16138 PyObject * obj1 = 0 ;
16139 char *kwnames[] = {
16140 (char *) "self",(char *) "style", NULL
16141 };
16142
16143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16146 arg2 = (long) SWIG_AsLong(obj1);
16147 if (PyErr_Occurred()) SWIG_fail;
16148 {
16149 PyThreadState* __tstate = wxPyBeginAllowThreads();
16150 (arg1)->SetStyle(arg2);
16151
16152 wxPyEndAllowThreads(__tstate);
16153 if (PyErr_Occurred()) SWIG_fail;
16154 }
16155 Py_INCREF(Py_None); resultobj = Py_None;
16156 return resultobj;
16157 fail:
16158 return NULL;
16159 }
16160
16161
16162 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16163 PyObject *resultobj;
16164 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16165 long result;
16166 PyObject * obj0 = 0 ;
16167 char *kwnames[] = {
16168 (char *) "self", NULL
16169 };
16170
16171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16174 {
16175 PyThreadState* __tstate = wxPyBeginAllowThreads();
16176 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16177
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 resultobj = SWIG_FromLong((long)result);
16182 return resultobj;
16183 fail:
16184 return NULL;
16185 }
16186
16187
16188 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16189 PyObject *obj;
16190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16191 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16192 Py_INCREF(obj);
16193 return Py_BuildValue((char *)"");
16194 }
16195 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16196 PyObject *resultobj;
16197 wxString const &arg1_defvalue = wxPyEmptyString ;
16198 wxString *arg1 = (wxString *) &arg1_defvalue ;
16199 wxString const &arg2_defvalue = wxPyEmptyString ;
16200 wxString *arg2 = (wxString *) &arg2_defvalue ;
16201 wxString const &arg3_defvalue = wxPyEmptyString ;
16202 wxString *arg3 = (wxString *) &arg3_defvalue ;
16203 wxString const &arg4_defvalue = wxPyEmptyString ;
16204 wxString *arg4 = (wxString *) &arg4_defvalue ;
16205 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16206 wxConfig *result;
16207 bool temp1 = False ;
16208 bool temp2 = False ;
16209 bool temp3 = False ;
16210 bool temp4 = False ;
16211 PyObject * obj0 = 0 ;
16212 PyObject * obj1 = 0 ;
16213 PyObject * obj2 = 0 ;
16214 PyObject * obj3 = 0 ;
16215 PyObject * obj4 = 0 ;
16216 char *kwnames[] = {
16217 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16218 };
16219
16220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16221 if (obj0) {
16222 {
16223 arg1 = wxString_in_helper(obj0);
16224 if (arg1 == NULL) SWIG_fail;
16225 temp1 = True;
16226 }
16227 }
16228 if (obj1) {
16229 {
16230 arg2 = wxString_in_helper(obj1);
16231 if (arg2 == NULL) SWIG_fail;
16232 temp2 = True;
16233 }
16234 }
16235 if (obj2) {
16236 {
16237 arg3 = wxString_in_helper(obj2);
16238 if (arg3 == NULL) SWIG_fail;
16239 temp3 = True;
16240 }
16241 }
16242 if (obj3) {
16243 {
16244 arg4 = wxString_in_helper(obj3);
16245 if (arg4 == NULL) SWIG_fail;
16246 temp4 = True;
16247 }
16248 }
16249 if (obj4) {
16250 arg5 = (long) SWIG_AsLong(obj4);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 {
16254 PyThreadState* __tstate = wxPyBeginAllowThreads();
16255 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16256
16257 wxPyEndAllowThreads(__tstate);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 }
16260 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16261 {
16262 if (temp1)
16263 delete arg1;
16264 }
16265 {
16266 if (temp2)
16267 delete arg2;
16268 }
16269 {
16270 if (temp3)
16271 delete arg3;
16272 }
16273 {
16274 if (temp4)
16275 delete arg4;
16276 }
16277 return resultobj;
16278 fail:
16279 {
16280 if (temp1)
16281 delete arg1;
16282 }
16283 {
16284 if (temp2)
16285 delete arg2;
16286 }
16287 {
16288 if (temp3)
16289 delete arg3;
16290 }
16291 {
16292 if (temp4)
16293 delete arg4;
16294 }
16295 return NULL;
16296 }
16297
16298
16299 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16300 PyObject *resultobj;
16301 wxConfig *arg1 = (wxConfig *) 0 ;
16302 PyObject * obj0 = 0 ;
16303 char *kwnames[] = {
16304 (char *) "self", NULL
16305 };
16306
16307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16310 {
16311 PyThreadState* __tstate = wxPyBeginAllowThreads();
16312 delete arg1;
16313
16314 wxPyEndAllowThreads(__tstate);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 }
16317 Py_INCREF(Py_None); resultobj = Py_None;
16318 return resultobj;
16319 fail:
16320 return NULL;
16321 }
16322
16323
16324 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16325 PyObject *obj;
16326 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16327 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16328 Py_INCREF(obj);
16329 return Py_BuildValue((char *)"");
16330 }
16331 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16332 PyObject *resultobj;
16333 wxString const &arg1_defvalue = wxPyEmptyString ;
16334 wxString *arg1 = (wxString *) &arg1_defvalue ;
16335 wxString const &arg2_defvalue = wxPyEmptyString ;
16336 wxString *arg2 = (wxString *) &arg2_defvalue ;
16337 wxString const &arg3_defvalue = wxPyEmptyString ;
16338 wxString *arg3 = (wxString *) &arg3_defvalue ;
16339 wxString const &arg4_defvalue = wxPyEmptyString ;
16340 wxString *arg4 = (wxString *) &arg4_defvalue ;
16341 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16342 wxFileConfig *result;
16343 bool temp1 = False ;
16344 bool temp2 = False ;
16345 bool temp3 = False ;
16346 bool temp4 = False ;
16347 PyObject * obj0 = 0 ;
16348 PyObject * obj1 = 0 ;
16349 PyObject * obj2 = 0 ;
16350 PyObject * obj3 = 0 ;
16351 PyObject * obj4 = 0 ;
16352 char *kwnames[] = {
16353 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16354 };
16355
16356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16357 if (obj0) {
16358 {
16359 arg1 = wxString_in_helper(obj0);
16360 if (arg1 == NULL) SWIG_fail;
16361 temp1 = True;
16362 }
16363 }
16364 if (obj1) {
16365 {
16366 arg2 = wxString_in_helper(obj1);
16367 if (arg2 == NULL) SWIG_fail;
16368 temp2 = True;
16369 }
16370 }
16371 if (obj2) {
16372 {
16373 arg3 = wxString_in_helper(obj2);
16374 if (arg3 == NULL) SWIG_fail;
16375 temp3 = True;
16376 }
16377 }
16378 if (obj3) {
16379 {
16380 arg4 = wxString_in_helper(obj3);
16381 if (arg4 == NULL) SWIG_fail;
16382 temp4 = True;
16383 }
16384 }
16385 if (obj4) {
16386 arg5 = (long) SWIG_AsLong(obj4);
16387 if (PyErr_Occurred()) SWIG_fail;
16388 }
16389 {
16390 PyThreadState* __tstate = wxPyBeginAllowThreads();
16391 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16392
16393 wxPyEndAllowThreads(__tstate);
16394 if (PyErr_Occurred()) SWIG_fail;
16395 }
16396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16397 {
16398 if (temp1)
16399 delete arg1;
16400 }
16401 {
16402 if (temp2)
16403 delete arg2;
16404 }
16405 {
16406 if (temp3)
16407 delete arg3;
16408 }
16409 {
16410 if (temp4)
16411 delete arg4;
16412 }
16413 return resultobj;
16414 fail:
16415 {
16416 if (temp1)
16417 delete arg1;
16418 }
16419 {
16420 if (temp2)
16421 delete arg2;
16422 }
16423 {
16424 if (temp3)
16425 delete arg3;
16426 }
16427 {
16428 if (temp4)
16429 delete arg4;
16430 }
16431 return NULL;
16432 }
16433
16434
16435 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16436 PyObject *resultobj;
16437 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16438 PyObject * obj0 = 0 ;
16439 char *kwnames[] = {
16440 (char *) "self", NULL
16441 };
16442
16443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16446 {
16447 PyThreadState* __tstate = wxPyBeginAllowThreads();
16448 delete arg1;
16449
16450 wxPyEndAllowThreads(__tstate);
16451 if (PyErr_Occurred()) SWIG_fail;
16452 }
16453 Py_INCREF(Py_None); resultobj = Py_None;
16454 return resultobj;
16455 fail:
16456 return NULL;
16457 }
16458
16459
16460 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16461 PyObject *obj;
16462 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16463 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16464 Py_INCREF(obj);
16465 return Py_BuildValue((char *)"");
16466 }
16467 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16468 PyObject *resultobj;
16469 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16470 wxString *arg2 = 0 ;
16471 wxConfigPathChanger *result;
16472 bool temp2 = False ;
16473 PyObject * obj0 = 0 ;
16474 PyObject * obj1 = 0 ;
16475 char *kwnames[] = {
16476 (char *) "config",(char *) "entry", NULL
16477 };
16478
16479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16482 {
16483 arg2 = wxString_in_helper(obj1);
16484 if (arg2 == NULL) SWIG_fail;
16485 temp2 = True;
16486 }
16487 {
16488 PyThreadState* __tstate = wxPyBeginAllowThreads();
16489 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16490
16491 wxPyEndAllowThreads(__tstate);
16492 if (PyErr_Occurred()) SWIG_fail;
16493 }
16494 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16495 {
16496 if (temp2)
16497 delete arg2;
16498 }
16499 return resultobj;
16500 fail:
16501 {
16502 if (temp2)
16503 delete arg2;
16504 }
16505 return NULL;
16506 }
16507
16508
16509 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16510 PyObject *resultobj;
16511 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16512 PyObject * obj0 = 0 ;
16513 char *kwnames[] = {
16514 (char *) "self", NULL
16515 };
16516
16517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16520 {
16521 PyThreadState* __tstate = wxPyBeginAllowThreads();
16522 delete arg1;
16523
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 Py_INCREF(Py_None); resultobj = Py_None;
16528 return resultobj;
16529 fail:
16530 return NULL;
16531 }
16532
16533
16534 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16535 PyObject *resultobj;
16536 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16537 wxString *result;
16538 PyObject * obj0 = 0 ;
16539 char *kwnames[] = {
16540 (char *) "self", NULL
16541 };
16542
16543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16546 {
16547 PyThreadState* __tstate = wxPyBeginAllowThreads();
16548 {
16549 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16550 result = (wxString *) &_result_ref;
16551 }
16552
16553 wxPyEndAllowThreads(__tstate);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 }
16556 {
16557 #if wxUSE_UNICODE
16558 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16559 #else
16560 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16561 #endif
16562 }
16563 return resultobj;
16564 fail:
16565 return NULL;
16566 }
16567
16568
16569 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16570 PyObject *obj;
16571 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16572 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16573 Py_INCREF(obj);
16574 return Py_BuildValue((char *)"");
16575 }
16576 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16577 PyObject *resultobj;
16578 wxString *arg1 = 0 ;
16579 wxString result;
16580 bool temp1 = False ;
16581 PyObject * obj0 = 0 ;
16582 char *kwnames[] = {
16583 (char *) "sz", NULL
16584 };
16585
16586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16587 {
16588 arg1 = wxString_in_helper(obj0);
16589 if (arg1 == NULL) SWIG_fail;
16590 temp1 = True;
16591 }
16592 {
16593 PyThreadState* __tstate = wxPyBeginAllowThreads();
16594 result = wxExpandEnvVars((wxString const &)*arg1);
16595
16596 wxPyEndAllowThreads(__tstate);
16597 if (PyErr_Occurred()) SWIG_fail;
16598 }
16599 {
16600 #if wxUSE_UNICODE
16601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16602 #else
16603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16604 #endif
16605 }
16606 {
16607 if (temp1)
16608 delete arg1;
16609 }
16610 return resultobj;
16611 fail:
16612 {
16613 if (temp1)
16614 delete arg1;
16615 }
16616 return NULL;
16617 }
16618
16619
16620 static int _wrap_DateFormatStr_set(PyObject *_val) {
16621 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16622 return 1;
16623 }
16624
16625
16626 static PyObject *_wrap_DateFormatStr_get() {
16627 PyObject *pyobj;
16628
16629 {
16630 #if wxUSE_UNICODE
16631 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16632 #else
16633 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16634 #endif
16635 }
16636 return pyobj;
16637 }
16638
16639
16640 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16641 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16642 return 1;
16643 }
16644
16645
16646 static PyObject *_wrap_TimeSpanFormatStr_get() {
16647 PyObject *pyobj;
16648
16649 {
16650 #if wxUSE_UNICODE
16651 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16652 #else
16653 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16654 #endif
16655 }
16656 return pyobj;
16657 }
16658
16659
16660 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16661 PyObject *resultobj;
16662 int arg1 ;
16663 PyObject * obj0 = 0 ;
16664 char *kwnames[] = {
16665 (char *) "country", NULL
16666 };
16667
16668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16669 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 {
16672 PyThreadState* __tstate = wxPyBeginAllowThreads();
16673 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16674
16675 wxPyEndAllowThreads(__tstate);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 Py_INCREF(Py_None); resultobj = Py_None;
16679 return resultobj;
16680 fail:
16681 return NULL;
16682 }
16683
16684
16685 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj;
16687 int result;
16688 char *kwnames[] = {
16689 NULL
16690 };
16691
16692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16693 {
16694 PyThreadState* __tstate = wxPyBeginAllowThreads();
16695 result = (int)wxDateTime::GetCountry();
16696
16697 wxPyEndAllowThreads(__tstate);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 }
16700 resultobj = SWIG_FromInt((int)result);
16701 return resultobj;
16702 fail:
16703 return NULL;
16704 }
16705
16706
16707 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16708 PyObject *resultobj;
16709 int arg1 = (int) wxDateTime::Country_Default ;
16710 bool result;
16711 PyObject * obj0 = 0 ;
16712 char *kwnames[] = {
16713 (char *) "country", NULL
16714 };
16715
16716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16717 if (obj0) {
16718 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 {
16722 PyThreadState* __tstate = wxPyBeginAllowThreads();
16723 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16724
16725 wxPyEndAllowThreads(__tstate);
16726 if (PyErr_Occurred()) SWIG_fail;
16727 }
16728 {
16729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16730 }
16731 return resultobj;
16732 fail:
16733 return NULL;
16734 }
16735
16736
16737 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16738 PyObject *resultobj;
16739 int arg1 = (int) wxDateTime::Gregorian ;
16740 int result;
16741 PyObject * obj0 = 0 ;
16742 char *kwnames[] = {
16743 (char *) "cal", NULL
16744 };
16745
16746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16747 if (obj0) {
16748 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
16751 {
16752 PyThreadState* __tstate = wxPyBeginAllowThreads();
16753 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16754
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 resultobj = SWIG_FromInt((int)result);
16759 return resultobj;
16760 fail:
16761 return NULL;
16762 }
16763
16764
16765 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16766 PyObject *resultobj;
16767 int arg1 ;
16768 int result;
16769 PyObject * obj0 = 0 ;
16770 char *kwnames[] = {
16771 (char *) "year", NULL
16772 };
16773
16774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16775 arg1 = (int) SWIG_AsInt(obj0);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 result = (int)wxDateTime::ConvertYearToBC(arg1);
16780
16781 wxPyEndAllowThreads(__tstate);
16782 if (PyErr_Occurred()) SWIG_fail;
16783 }
16784 resultobj = SWIG_FromInt((int)result);
16785 return resultobj;
16786 fail:
16787 return NULL;
16788 }
16789
16790
16791 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16792 PyObject *resultobj;
16793 int arg1 = (int) wxDateTime::Gregorian ;
16794 int result;
16795 PyObject * obj0 = 0 ;
16796 char *kwnames[] = {
16797 (char *) "cal", NULL
16798 };
16799
16800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16801 if (obj0) {
16802 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
16805 {
16806 PyThreadState* __tstate = wxPyBeginAllowThreads();
16807 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16808
16809 wxPyEndAllowThreads(__tstate);
16810 if (PyErr_Occurred()) SWIG_fail;
16811 }
16812 resultobj = SWIG_FromInt((int)result);
16813 return resultobj;
16814 fail:
16815 return NULL;
16816 }
16817
16818
16819 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16820 PyObject *resultobj;
16821 int arg1 = (int) wxDateTime::Inv_Year ;
16822 int arg2 = (int) wxDateTime::Gregorian ;
16823 bool result;
16824 PyObject * obj0 = 0 ;
16825 PyObject * obj1 = 0 ;
16826 char *kwnames[] = {
16827 (char *) "year",(char *) "cal", NULL
16828 };
16829
16830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16831 if (obj0) {
16832 arg1 = (int) SWIG_AsInt(obj0);
16833 if (PyErr_Occurred()) SWIG_fail;
16834 }
16835 if (obj1) {
16836 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16837 if (PyErr_Occurred()) SWIG_fail;
16838 }
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16842
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 {
16847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16848 }
16849 return resultobj;
16850 fail:
16851 return NULL;
16852 }
16853
16854
16855 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16856 PyObject *resultobj;
16857 int arg1 = (int) wxDateTime::Inv_Year ;
16858 int result;
16859 PyObject * obj0 = 0 ;
16860 char *kwnames[] = {
16861 (char *) "year", NULL
16862 };
16863
16864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16865 if (obj0) {
16866 arg1 = (int) SWIG_AsInt(obj0);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 {
16870 PyThreadState* __tstate = wxPyBeginAllowThreads();
16871 result = (int)wxDateTime::GetCentury(arg1);
16872
16873 wxPyEndAllowThreads(__tstate);
16874 if (PyErr_Occurred()) SWIG_fail;
16875 }
16876 resultobj = SWIG_FromInt((int)result);
16877 return resultobj;
16878 fail:
16879 return NULL;
16880 }
16881
16882
16883 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16884 PyObject *resultobj;
16885 int arg1 ;
16886 int arg2 = (int) wxDateTime::Gregorian ;
16887 int result;
16888 PyObject * obj0 = 0 ;
16889 PyObject * obj1 = 0 ;
16890 char *kwnames[] = {
16891 (char *) "year",(char *) "cal", NULL
16892 };
16893
16894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16895 arg1 = (int) SWIG_AsInt(obj0);
16896 if (PyErr_Occurred()) SWIG_fail;
16897 if (obj1) {
16898 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 {
16902 PyThreadState* __tstate = wxPyBeginAllowThreads();
16903 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16904
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 resultobj = SWIG_FromInt((int)result);
16909 return resultobj;
16910 fail:
16911 return NULL;
16912 }
16913
16914
16915 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj;
16917 int arg1 ;
16918 int arg2 = (int) wxDateTime::Inv_Year ;
16919 int arg3 = (int) wxDateTime::Gregorian ;
16920 int result;
16921 PyObject * obj0 = 0 ;
16922 PyObject * obj1 = 0 ;
16923 PyObject * obj2 = 0 ;
16924 char *kwnames[] = {
16925 (char *) "month",(char *) "year",(char *) "cal", NULL
16926 };
16927
16928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16929 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 if (obj1) {
16932 arg2 = (int) SWIG_AsInt(obj1);
16933 if (PyErr_Occurred()) SWIG_fail;
16934 }
16935 if (obj2) {
16936 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16937 if (PyErr_Occurred()) SWIG_fail;
16938 }
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16942
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 resultobj = SWIG_FromInt((int)result);
16947 return resultobj;
16948 fail:
16949 return NULL;
16950 }
16951
16952
16953 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj;
16955 int arg1 ;
16956 int arg2 = (int) wxDateTime::Name_Full ;
16957 wxString result;
16958 PyObject * obj0 = 0 ;
16959 PyObject * obj1 = 0 ;
16960 char *kwnames[] = {
16961 (char *) "month",(char *) "flags", NULL
16962 };
16963
16964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16965 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 if (obj1) {
16968 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 {
16972 PyThreadState* __tstate = wxPyBeginAllowThreads();
16973 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16974
16975 wxPyEndAllowThreads(__tstate);
16976 if (PyErr_Occurred()) SWIG_fail;
16977 }
16978 {
16979 #if wxUSE_UNICODE
16980 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16981 #else
16982 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16983 #endif
16984 }
16985 return resultobj;
16986 fail:
16987 return NULL;
16988 }
16989
16990
16991 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
16992 PyObject *resultobj;
16993 int arg1 ;
16994 int arg2 = (int) wxDateTime::Name_Full ;
16995 wxString result;
16996 PyObject * obj0 = 0 ;
16997 PyObject * obj1 = 0 ;
16998 char *kwnames[] = {
16999 (char *) "weekday",(char *) "flags", NULL
17000 };
17001
17002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17003 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 if (obj1) {
17006 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17007 if (PyErr_Occurred()) SWIG_fail;
17008 }
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17012
17013 wxPyEndAllowThreads(__tstate);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 }
17016 {
17017 #if wxUSE_UNICODE
17018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17019 #else
17020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17021 #endif
17022 }
17023 return resultobj;
17024 fail:
17025 return NULL;
17026 }
17027
17028
17029 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj;
17031 wxString *arg1 = (wxString *) 0 ;
17032 wxString *arg2 = (wxString *) 0 ;
17033 bool temp1 = False ;
17034 bool temp2 = False ;
17035 PyObject * obj0 = 0 ;
17036 PyObject * obj1 = 0 ;
17037 char *kwnames[] = {
17038 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17039 };
17040
17041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17042 {
17043 arg1 = wxString_in_helper(obj0);
17044 if (arg1 == NULL) SWIG_fail;
17045 temp1 = True;
17046 }
17047 {
17048 arg2 = wxString_in_helper(obj1);
17049 if (arg2 == NULL) SWIG_fail;
17050 temp2 = True;
17051 }
17052 {
17053 PyThreadState* __tstate = wxPyBeginAllowThreads();
17054 wxDateTime::GetAmPmStrings(arg1,arg2);
17055
17056 wxPyEndAllowThreads(__tstate);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 Py_INCREF(Py_None); resultobj = Py_None;
17060 {
17061 if (temp1)
17062 delete arg1;
17063 }
17064 {
17065 if (temp2)
17066 delete arg2;
17067 }
17068 return resultobj;
17069 fail:
17070 {
17071 if (temp1)
17072 delete arg1;
17073 }
17074 {
17075 if (temp2)
17076 delete arg2;
17077 }
17078 return NULL;
17079 }
17080
17081
17082 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17083 PyObject *resultobj;
17084 int arg1 = (int) wxDateTime::Inv_Year ;
17085 int arg2 = (int) wxDateTime::Country_Default ;
17086 bool result;
17087 PyObject * obj0 = 0 ;
17088 PyObject * obj1 = 0 ;
17089 char *kwnames[] = {
17090 (char *) "year",(char *) "country", NULL
17091 };
17092
17093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17094 if (obj0) {
17095 arg1 = (int) SWIG_AsInt(obj0);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 if (obj1) {
17099 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 }
17102 {
17103 PyThreadState* __tstate = wxPyBeginAllowThreads();
17104 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17105
17106 wxPyEndAllowThreads(__tstate);
17107 if (PyErr_Occurred()) SWIG_fail;
17108 }
17109 {
17110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17111 }
17112 return resultobj;
17113 fail:
17114 return NULL;
17115 }
17116
17117
17118 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17119 PyObject *resultobj;
17120 int arg1 = (int) wxDateTime::Inv_Year ;
17121 int arg2 = (int) wxDateTime::Country_Default ;
17122 wxDateTime result;
17123 PyObject * obj0 = 0 ;
17124 PyObject * obj1 = 0 ;
17125 char *kwnames[] = {
17126 (char *) "year",(char *) "country", NULL
17127 };
17128
17129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17130 if (obj0) {
17131 arg1 = (int) SWIG_AsInt(obj0);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 if (obj1) {
17135 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 }
17138 {
17139 PyThreadState* __tstate = wxPyBeginAllowThreads();
17140 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17141
17142 wxPyEndAllowThreads(__tstate);
17143 if (PyErr_Occurred()) SWIG_fail;
17144 }
17145 {
17146 wxDateTime * resultptr;
17147 resultptr = new wxDateTime((wxDateTime &) result);
17148 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17149 }
17150 return resultobj;
17151 fail:
17152 return NULL;
17153 }
17154
17155
17156 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj;
17158 int arg1 = (int) wxDateTime::Inv_Year ;
17159 int arg2 = (int) wxDateTime::Country_Default ;
17160 wxDateTime result;
17161 PyObject * obj0 = 0 ;
17162 PyObject * obj1 = 0 ;
17163 char *kwnames[] = {
17164 (char *) "year",(char *) "country", NULL
17165 };
17166
17167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17168 if (obj0) {
17169 arg1 = (int) SWIG_AsInt(obj0);
17170 if (PyErr_Occurred()) SWIG_fail;
17171 }
17172 if (obj1) {
17173 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17174 if (PyErr_Occurred()) SWIG_fail;
17175 }
17176 {
17177 PyThreadState* __tstate = wxPyBeginAllowThreads();
17178 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17179
17180 wxPyEndAllowThreads(__tstate);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
17183 {
17184 wxDateTime * resultptr;
17185 resultptr = new wxDateTime((wxDateTime &) result);
17186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17187 }
17188 return resultobj;
17189 fail:
17190 return NULL;
17191 }
17192
17193
17194 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17195 PyObject *resultobj;
17196 wxDateTime result;
17197 char *kwnames[] = {
17198 NULL
17199 };
17200
17201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17202 {
17203 PyThreadState* __tstate = wxPyBeginAllowThreads();
17204 result = wxDateTime::Now();
17205
17206 wxPyEndAllowThreads(__tstate);
17207 if (PyErr_Occurred()) SWIG_fail;
17208 }
17209 {
17210 wxDateTime * resultptr;
17211 resultptr = new wxDateTime((wxDateTime &) result);
17212 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17213 }
17214 return resultobj;
17215 fail:
17216 return NULL;
17217 }
17218
17219
17220 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17221 PyObject *resultobj;
17222 wxDateTime result;
17223 char *kwnames[] = {
17224 NULL
17225 };
17226
17227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17228 {
17229 PyThreadState* __tstate = wxPyBeginAllowThreads();
17230 result = wxDateTime::UNow();
17231
17232 wxPyEndAllowThreads(__tstate);
17233 if (PyErr_Occurred()) SWIG_fail;
17234 }
17235 {
17236 wxDateTime * resultptr;
17237 resultptr = new wxDateTime((wxDateTime &) result);
17238 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17239 }
17240 return resultobj;
17241 fail:
17242 return NULL;
17243 }
17244
17245
17246 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17247 PyObject *resultobj;
17248 wxDateTime result;
17249 char *kwnames[] = {
17250 NULL
17251 };
17252
17253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17254 {
17255 PyThreadState* __tstate = wxPyBeginAllowThreads();
17256 result = wxDateTime::Today();
17257
17258 wxPyEndAllowThreads(__tstate);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 }
17261 {
17262 wxDateTime * resultptr;
17263 resultptr = new wxDateTime((wxDateTime &) result);
17264 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17265 }
17266 return resultobj;
17267 fail:
17268 return NULL;
17269 }
17270
17271
17272 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17273 PyObject *resultobj;
17274 wxDateTime *result;
17275 char *kwnames[] = {
17276 NULL
17277 };
17278
17279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17280 {
17281 PyThreadState* __tstate = wxPyBeginAllowThreads();
17282 result = (wxDateTime *)new wxDateTime();
17283
17284 wxPyEndAllowThreads(__tstate);
17285 if (PyErr_Occurred()) SWIG_fail;
17286 }
17287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17288 return resultobj;
17289 fail:
17290 return NULL;
17291 }
17292
17293
17294 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17295 PyObject *resultobj;
17296 time_t arg1 ;
17297 wxDateTime *result;
17298 PyObject * obj0 = 0 ;
17299 char *kwnames[] = {
17300 (char *) "timet", NULL
17301 };
17302
17303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17304 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17305 if (PyErr_Occurred()) SWIG_fail;
17306 {
17307 PyThreadState* __tstate = wxPyBeginAllowThreads();
17308 result = (wxDateTime *)new wxDateTime(arg1);
17309
17310 wxPyEndAllowThreads(__tstate);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 }
17313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17314 return resultobj;
17315 fail:
17316 return NULL;
17317 }
17318
17319
17320 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17321 PyObject *resultobj;
17322 double arg1 ;
17323 wxDateTime *result;
17324 PyObject * obj0 = 0 ;
17325 char *kwnames[] = {
17326 (char *) "jdn", NULL
17327 };
17328
17329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17330 arg1 = (double) SWIG_AsDouble(obj0);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 {
17333 PyThreadState* __tstate = wxPyBeginAllowThreads();
17334 result = (wxDateTime *)new wxDateTime(arg1);
17335
17336 wxPyEndAllowThreads(__tstate);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17340 return resultobj;
17341 fail:
17342 return NULL;
17343 }
17344
17345
17346 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17347 PyObject *resultobj;
17348 int arg1 ;
17349 int arg2 = (int) 0 ;
17350 int arg3 = (int) 0 ;
17351 int arg4 = (int) 0 ;
17352 wxDateTime *result;
17353 PyObject * obj0 = 0 ;
17354 PyObject * obj1 = 0 ;
17355 PyObject * obj2 = 0 ;
17356 PyObject * obj3 = 0 ;
17357 char *kwnames[] = {
17358 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17359 };
17360
17361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17362 arg1 = (int) SWIG_AsInt(obj0);
17363 if (PyErr_Occurred()) SWIG_fail;
17364 if (obj1) {
17365 arg2 = (int) SWIG_AsInt(obj1);
17366 if (PyErr_Occurred()) SWIG_fail;
17367 }
17368 if (obj2) {
17369 arg3 = (int) SWIG_AsInt(obj2);
17370 if (PyErr_Occurred()) SWIG_fail;
17371 }
17372 if (obj3) {
17373 arg4 = (int) SWIG_AsInt(obj3);
17374 if (PyErr_Occurred()) SWIG_fail;
17375 }
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17379
17380 wxPyEndAllowThreads(__tstate);
17381 if (PyErr_Occurred()) SWIG_fail;
17382 }
17383 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17384 return resultobj;
17385 fail:
17386 return NULL;
17387 }
17388
17389
17390 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17391 PyObject *resultobj;
17392 int arg1 ;
17393 int arg2 = (int) wxDateTime::Inv_Month ;
17394 int arg3 = (int) wxDateTime::Inv_Year ;
17395 int arg4 = (int) 0 ;
17396 int arg5 = (int) 0 ;
17397 int arg6 = (int) 0 ;
17398 int arg7 = (int) 0 ;
17399 wxDateTime *result;
17400 PyObject * obj0 = 0 ;
17401 PyObject * obj1 = 0 ;
17402 PyObject * obj2 = 0 ;
17403 PyObject * obj3 = 0 ;
17404 PyObject * obj4 = 0 ;
17405 PyObject * obj5 = 0 ;
17406 PyObject * obj6 = 0 ;
17407 char *kwnames[] = {
17408 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17409 };
17410
17411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17412 arg1 = (int) SWIG_AsInt(obj0);
17413 if (PyErr_Occurred()) SWIG_fail;
17414 if (obj1) {
17415 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 if (obj2) {
17419 arg3 = (int) SWIG_AsInt(obj2);
17420 if (PyErr_Occurred()) SWIG_fail;
17421 }
17422 if (obj3) {
17423 arg4 = (int) SWIG_AsInt(obj3);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 }
17426 if (obj4) {
17427 arg5 = (int) SWIG_AsInt(obj4);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 }
17430 if (obj5) {
17431 arg6 = (int) SWIG_AsInt(obj5);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 }
17434 if (obj6) {
17435 arg7 = (int) SWIG_AsInt(obj6);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 }
17438 {
17439 PyThreadState* __tstate = wxPyBeginAllowThreads();
17440 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17441
17442 wxPyEndAllowThreads(__tstate);
17443 if (PyErr_Occurred()) SWIG_fail;
17444 }
17445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17446 return resultobj;
17447 fail:
17448 return NULL;
17449 }
17450
17451
17452 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj;
17454 wxDateTime *arg1 = (wxDateTime *) 0 ;
17455 PyObject * obj0 = 0 ;
17456 char *kwnames[] = {
17457 (char *) "self", NULL
17458 };
17459
17460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 delete arg1;
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 Py_INCREF(Py_None); resultobj = Py_None;
17471 return resultobj;
17472 fail:
17473 return NULL;
17474 }
17475
17476
17477 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17478 PyObject *resultobj;
17479 wxDateTime *arg1 = (wxDateTime *) 0 ;
17480 wxDateTime *result;
17481 PyObject * obj0 = 0 ;
17482 char *kwnames[] = {
17483 (char *) "self", NULL
17484 };
17485
17486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17489 {
17490 PyThreadState* __tstate = wxPyBeginAllowThreads();
17491 {
17492 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17493 result = (wxDateTime *) &_result_ref;
17494 }
17495
17496 wxPyEndAllowThreads(__tstate);
17497 if (PyErr_Occurred()) SWIG_fail;
17498 }
17499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17500 return resultobj;
17501 fail:
17502 return NULL;
17503 }
17504
17505
17506 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17507 PyObject *resultobj;
17508 wxDateTime *arg1 = (wxDateTime *) 0 ;
17509 time_t arg2 ;
17510 wxDateTime *result;
17511 PyObject * obj0 = 0 ;
17512 PyObject * obj1 = 0 ;
17513 char *kwnames[] = {
17514 (char *) "self",(char *) "timet", NULL
17515 };
17516
17517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17520 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
17524 {
17525 wxDateTime &_result_ref = (arg1)->Set(arg2);
17526 result = (wxDateTime *) &_result_ref;
17527 }
17528
17529 wxPyEndAllowThreads(__tstate);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17533 return resultobj;
17534 fail:
17535 return NULL;
17536 }
17537
17538
17539 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17540 PyObject *resultobj;
17541 wxDateTime *arg1 = (wxDateTime *) 0 ;
17542 double arg2 ;
17543 wxDateTime *result;
17544 PyObject * obj0 = 0 ;
17545 PyObject * obj1 = 0 ;
17546 char *kwnames[] = {
17547 (char *) "self",(char *) "jdn", NULL
17548 };
17549
17550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17553 arg2 = (double) SWIG_AsDouble(obj1);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 {
17556 PyThreadState* __tstate = wxPyBeginAllowThreads();
17557 {
17558 wxDateTime &_result_ref = (arg1)->Set(arg2);
17559 result = (wxDateTime *) &_result_ref;
17560 }
17561
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17566 return resultobj;
17567 fail:
17568 return NULL;
17569 }
17570
17571
17572 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17573 PyObject *resultobj;
17574 wxDateTime *arg1 = (wxDateTime *) 0 ;
17575 int arg2 ;
17576 int arg3 = (int) 0 ;
17577 int arg4 = (int) 0 ;
17578 int arg5 = (int) 0 ;
17579 wxDateTime *result;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 PyObject * obj2 = 0 ;
17583 PyObject * obj3 = 0 ;
17584 PyObject * obj4 = 0 ;
17585 char *kwnames[] = {
17586 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17587 };
17588
17589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17592 arg2 = (int) SWIG_AsInt(obj1);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 if (obj2) {
17595 arg3 = (int) SWIG_AsInt(obj2);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 if (obj3) {
17599 arg4 = (int) SWIG_AsInt(obj3);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 if (obj4) {
17603 arg5 = (int) SWIG_AsInt(obj4);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 {
17609 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17610 result = (wxDateTime *) &_result_ref;
17611 }
17612
17613 wxPyEndAllowThreads(__tstate);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 }
17616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17617 return resultobj;
17618 fail:
17619 return NULL;
17620 }
17621
17622
17623 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17624 PyObject *resultobj;
17625 wxDateTime *arg1 = (wxDateTime *) 0 ;
17626 int arg2 ;
17627 int arg3 = (int) wxDateTime::Inv_Month ;
17628 int arg4 = (int) wxDateTime::Inv_Year ;
17629 int arg5 = (int) 0 ;
17630 int arg6 = (int) 0 ;
17631 int arg7 = (int) 0 ;
17632 int arg8 = (int) 0 ;
17633 wxDateTime *result;
17634 PyObject * obj0 = 0 ;
17635 PyObject * obj1 = 0 ;
17636 PyObject * obj2 = 0 ;
17637 PyObject * obj3 = 0 ;
17638 PyObject * obj4 = 0 ;
17639 PyObject * obj5 = 0 ;
17640 PyObject * obj6 = 0 ;
17641 PyObject * obj7 = 0 ;
17642 char *kwnames[] = {
17643 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17644 };
17645
17646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17649 arg2 = (int) SWIG_AsInt(obj1);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 if (obj2) {
17652 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17653 if (PyErr_Occurred()) SWIG_fail;
17654 }
17655 if (obj3) {
17656 arg4 = (int) SWIG_AsInt(obj3);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 }
17659 if (obj4) {
17660 arg5 = (int) SWIG_AsInt(obj4);
17661 if (PyErr_Occurred()) SWIG_fail;
17662 }
17663 if (obj5) {
17664 arg6 = (int) SWIG_AsInt(obj5);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 }
17667 if (obj6) {
17668 arg7 = (int) SWIG_AsInt(obj6);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 if (obj7) {
17672 arg8 = (int) SWIG_AsInt(obj7);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 }
17675 {
17676 PyThreadState* __tstate = wxPyBeginAllowThreads();
17677 {
17678 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17679 result = (wxDateTime *) &_result_ref;
17680 }
17681
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17686 return resultobj;
17687 fail:
17688 return NULL;
17689 }
17690
17691
17692 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17693 PyObject *resultobj;
17694 wxDateTime *arg1 = (wxDateTime *) 0 ;
17695 wxDateTime *result;
17696 PyObject * obj0 = 0 ;
17697 char *kwnames[] = {
17698 (char *) "self", NULL
17699 };
17700
17701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 {
17707 wxDateTime &_result_ref = (arg1)->ResetTime();
17708 result = (wxDateTime *) &_result_ref;
17709 }
17710
17711 wxPyEndAllowThreads(__tstate);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 }
17714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17715 return resultobj;
17716 fail:
17717 return NULL;
17718 }
17719
17720
17721 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17722 PyObject *resultobj;
17723 wxDateTime *arg1 = (wxDateTime *) 0 ;
17724 int arg2 ;
17725 wxDateTime *result;
17726 PyObject * obj0 = 0 ;
17727 PyObject * obj1 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "self",(char *) "year", NULL
17730 };
17731
17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17735 arg2 = (int) SWIG_AsInt(obj1);
17736 if (PyErr_Occurred()) SWIG_fail;
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 {
17740 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17741 result = (wxDateTime *) &_result_ref;
17742 }
17743
17744 wxPyEndAllowThreads(__tstate);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 }
17747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17748 return resultobj;
17749 fail:
17750 return NULL;
17751 }
17752
17753
17754 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17755 PyObject *resultobj;
17756 wxDateTime *arg1 = (wxDateTime *) 0 ;
17757 int arg2 ;
17758 wxDateTime *result;
17759 PyObject * obj0 = 0 ;
17760 PyObject * obj1 = 0 ;
17761 char *kwnames[] = {
17762 (char *) "self",(char *) "month", NULL
17763 };
17764
17765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17768 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 {
17771 PyThreadState* __tstate = wxPyBeginAllowThreads();
17772 {
17773 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17774 result = (wxDateTime *) &_result_ref;
17775 }
17776
17777 wxPyEndAllowThreads(__tstate);
17778 if (PyErr_Occurred()) SWIG_fail;
17779 }
17780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17781 return resultobj;
17782 fail:
17783 return NULL;
17784 }
17785
17786
17787 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17788 PyObject *resultobj;
17789 wxDateTime *arg1 = (wxDateTime *) 0 ;
17790 int arg2 ;
17791 wxDateTime *result;
17792 PyObject * obj0 = 0 ;
17793 PyObject * obj1 = 0 ;
17794 char *kwnames[] = {
17795 (char *) "self",(char *) "day", NULL
17796 };
17797
17798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17801 arg2 = (int) SWIG_AsInt(obj1);
17802 if (PyErr_Occurred()) SWIG_fail;
17803 {
17804 PyThreadState* __tstate = wxPyBeginAllowThreads();
17805 {
17806 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17807 result = (wxDateTime *) &_result_ref;
17808 }
17809
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17814 return resultobj;
17815 fail:
17816 return NULL;
17817 }
17818
17819
17820 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17821 PyObject *resultobj;
17822 wxDateTime *arg1 = (wxDateTime *) 0 ;
17823 int arg2 ;
17824 wxDateTime *result;
17825 PyObject * obj0 = 0 ;
17826 PyObject * obj1 = 0 ;
17827 char *kwnames[] = {
17828 (char *) "self",(char *) "hour", NULL
17829 };
17830
17831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17834 arg2 = (int) SWIG_AsInt(obj1);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 {
17837 PyThreadState* __tstate = wxPyBeginAllowThreads();
17838 {
17839 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17840 result = (wxDateTime *) &_result_ref;
17841 }
17842
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17847 return resultobj;
17848 fail:
17849 return NULL;
17850 }
17851
17852
17853 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj;
17855 wxDateTime *arg1 = (wxDateTime *) 0 ;
17856 int arg2 ;
17857 wxDateTime *result;
17858 PyObject * obj0 = 0 ;
17859 PyObject * obj1 = 0 ;
17860 char *kwnames[] = {
17861 (char *) "self",(char *) "minute", NULL
17862 };
17863
17864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17867 arg2 = (int) SWIG_AsInt(obj1);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 {
17870 PyThreadState* __tstate = wxPyBeginAllowThreads();
17871 {
17872 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17873 result = (wxDateTime *) &_result_ref;
17874 }
17875
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17880 return resultobj;
17881 fail:
17882 return NULL;
17883 }
17884
17885
17886 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17887 PyObject *resultobj;
17888 wxDateTime *arg1 = (wxDateTime *) 0 ;
17889 int arg2 ;
17890 wxDateTime *result;
17891 PyObject * obj0 = 0 ;
17892 PyObject * obj1 = 0 ;
17893 char *kwnames[] = {
17894 (char *) "self",(char *) "second", NULL
17895 };
17896
17897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17900 arg2 = (int) SWIG_AsInt(obj1);
17901 if (PyErr_Occurred()) SWIG_fail;
17902 {
17903 PyThreadState* __tstate = wxPyBeginAllowThreads();
17904 {
17905 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17906 result = (wxDateTime *) &_result_ref;
17907 }
17908
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17913 return resultobj;
17914 fail:
17915 return NULL;
17916 }
17917
17918
17919 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17920 PyObject *resultobj;
17921 wxDateTime *arg1 = (wxDateTime *) 0 ;
17922 int arg2 ;
17923 wxDateTime *result;
17924 PyObject * obj0 = 0 ;
17925 PyObject * obj1 = 0 ;
17926 char *kwnames[] = {
17927 (char *) "self",(char *) "millisecond", NULL
17928 };
17929
17930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17933 arg2 = (int) SWIG_AsInt(obj1);
17934 if (PyErr_Occurred()) SWIG_fail;
17935 {
17936 PyThreadState* __tstate = wxPyBeginAllowThreads();
17937 {
17938 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17939 result = (wxDateTime *) &_result_ref;
17940 }
17941
17942 wxPyEndAllowThreads(__tstate);
17943 if (PyErr_Occurred()) SWIG_fail;
17944 }
17945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17946 return resultobj;
17947 fail:
17948 return NULL;
17949 }
17950
17951
17952 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17953 PyObject *resultobj;
17954 wxDateTime *arg1 = (wxDateTime *) 0 ;
17955 int arg2 ;
17956 int arg3 = (int) wxDateTime::Monday_First ;
17957 wxDateTime *result;
17958 PyObject * obj0 = 0 ;
17959 PyObject * obj1 = 0 ;
17960 PyObject * obj2 = 0 ;
17961 char *kwnames[] = {
17962 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17963 };
17964
17965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17968 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 if (obj2) {
17971 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17972 if (PyErr_Occurred()) SWIG_fail;
17973 }
17974 {
17975 PyThreadState* __tstate = wxPyBeginAllowThreads();
17976 {
17977 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17978 result = (wxDateTime *) &_result_ref;
17979 }
17980
17981 wxPyEndAllowThreads(__tstate);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 }
17984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17985 return resultobj;
17986 fail:
17987 return NULL;
17988 }
17989
17990
17991 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17992 PyObject *resultobj;
17993 wxDateTime *arg1 = (wxDateTime *) 0 ;
17994 int arg2 ;
17995 int arg3 = (int) wxDateTime::Monday_First ;
17996 wxDateTime result;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 PyObject * obj2 = 0 ;
18000 char *kwnames[] = {
18001 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18002 };
18003
18004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18007 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 if (obj2) {
18010 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18016
18017 wxPyEndAllowThreads(__tstate);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 }
18020 {
18021 wxDateTime * resultptr;
18022 resultptr = new wxDateTime((wxDateTime &) result);
18023 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18024 }
18025 return resultobj;
18026 fail:
18027 return NULL;
18028 }
18029
18030
18031 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18032 PyObject *resultobj;
18033 wxDateTime *arg1 = (wxDateTime *) 0 ;
18034 int arg2 ;
18035 wxDateTime *result;
18036 PyObject * obj0 = 0 ;
18037 PyObject * obj1 = 0 ;
18038 char *kwnames[] = {
18039 (char *) "self",(char *) "weekday", NULL
18040 };
18041
18042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18045 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18046 if (PyErr_Occurred()) SWIG_fail;
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 {
18050 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18051 result = (wxDateTime *) &_result_ref;
18052 }
18053
18054 wxPyEndAllowThreads(__tstate);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 }
18057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18058 return resultobj;
18059 fail:
18060 return NULL;
18061 }
18062
18063
18064 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18065 PyObject *resultobj;
18066 wxDateTime *arg1 = (wxDateTime *) 0 ;
18067 int arg2 ;
18068 wxDateTime result;
18069 PyObject * obj0 = 0 ;
18070 PyObject * obj1 = 0 ;
18071 char *kwnames[] = {
18072 (char *) "self",(char *) "weekday", NULL
18073 };
18074
18075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18078 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18079 if (PyErr_Occurred()) SWIG_fail;
18080 {
18081 PyThreadState* __tstate = wxPyBeginAllowThreads();
18082 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18083
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 {
18088 wxDateTime * resultptr;
18089 resultptr = new wxDateTime((wxDateTime &) result);
18090 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18091 }
18092 return resultobj;
18093 fail:
18094 return NULL;
18095 }
18096
18097
18098 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj;
18100 wxDateTime *arg1 = (wxDateTime *) 0 ;
18101 int arg2 ;
18102 wxDateTime *result;
18103 PyObject * obj0 = 0 ;
18104 PyObject * obj1 = 0 ;
18105 char *kwnames[] = {
18106 (char *) "self",(char *) "weekday", NULL
18107 };
18108
18109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18112 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18113 if (PyErr_Occurred()) SWIG_fail;
18114 {
18115 PyThreadState* __tstate = wxPyBeginAllowThreads();
18116 {
18117 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18118 result = (wxDateTime *) &_result_ref;
18119 }
18120
18121 wxPyEndAllowThreads(__tstate);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 }
18124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18125 return resultobj;
18126 fail:
18127 return NULL;
18128 }
18129
18130
18131 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18132 PyObject *resultobj;
18133 wxDateTime *arg1 = (wxDateTime *) 0 ;
18134 int arg2 ;
18135 wxDateTime result;
18136 PyObject * obj0 = 0 ;
18137 PyObject * obj1 = 0 ;
18138 char *kwnames[] = {
18139 (char *) "self",(char *) "weekday", NULL
18140 };
18141
18142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18145 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18150
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 {
18155 wxDateTime * resultptr;
18156 resultptr = new wxDateTime((wxDateTime &) result);
18157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18158 }
18159 return resultobj;
18160 fail:
18161 return NULL;
18162 }
18163
18164
18165 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18166 PyObject *resultobj;
18167 wxDateTime *arg1 = (wxDateTime *) 0 ;
18168 int arg2 ;
18169 int arg3 = (int) 1 ;
18170 int arg4 = (int) wxDateTime::Inv_Month ;
18171 int arg5 = (int) wxDateTime::Inv_Year ;
18172 bool result;
18173 PyObject * obj0 = 0 ;
18174 PyObject * obj1 = 0 ;
18175 PyObject * obj2 = 0 ;
18176 PyObject * obj3 = 0 ;
18177 PyObject * obj4 = 0 ;
18178 char *kwnames[] = {
18179 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18180 };
18181
18182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18185 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 if (obj2) {
18188 arg3 = (int) SWIG_AsInt(obj2);
18189 if (PyErr_Occurred()) SWIG_fail;
18190 }
18191 if (obj3) {
18192 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 if (obj4) {
18196 arg5 = (int) SWIG_AsInt(obj4);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 {
18200 PyThreadState* __tstate = wxPyBeginAllowThreads();
18201 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18202
18203 wxPyEndAllowThreads(__tstate);
18204 if (PyErr_Occurred()) SWIG_fail;
18205 }
18206 {
18207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18208 }
18209 return resultobj;
18210 fail:
18211 return NULL;
18212 }
18213
18214
18215 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18216 PyObject *resultobj;
18217 wxDateTime *arg1 = (wxDateTime *) 0 ;
18218 int arg2 ;
18219 int arg3 = (int) wxDateTime::Inv_Month ;
18220 int arg4 = (int) wxDateTime::Inv_Year ;
18221 bool result;
18222 PyObject * obj0 = 0 ;
18223 PyObject * obj1 = 0 ;
18224 PyObject * obj2 = 0 ;
18225 PyObject * obj3 = 0 ;
18226 char *kwnames[] = {
18227 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18228 };
18229
18230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18233 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 if (obj2) {
18236 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18237 if (PyErr_Occurred()) SWIG_fail;
18238 }
18239 if (obj3) {
18240 arg4 = (int) SWIG_AsInt(obj3);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 {
18244 PyThreadState* __tstate = wxPyBeginAllowThreads();
18245 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18246
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 {
18251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18252 }
18253 return resultobj;
18254 fail:
18255 return NULL;
18256 }
18257
18258
18259 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18260 PyObject *resultobj;
18261 wxDateTime *arg1 = (wxDateTime *) 0 ;
18262 int arg2 ;
18263 int arg3 = (int) wxDateTime::Inv_Month ;
18264 int arg4 = (int) wxDateTime::Inv_Year ;
18265 wxDateTime result;
18266 PyObject * obj0 = 0 ;
18267 PyObject * obj1 = 0 ;
18268 PyObject * obj2 = 0 ;
18269 PyObject * obj3 = 0 ;
18270 char *kwnames[] = {
18271 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18272 };
18273
18274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18277 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 if (obj2) {
18280 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18281 if (PyErr_Occurred()) SWIG_fail;
18282 }
18283 if (obj3) {
18284 arg4 = (int) SWIG_AsInt(obj3);
18285 if (PyErr_Occurred()) SWIG_fail;
18286 }
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18290
18291 wxPyEndAllowThreads(__tstate);
18292 if (PyErr_Occurred()) SWIG_fail;
18293 }
18294 {
18295 wxDateTime * resultptr;
18296 resultptr = new wxDateTime((wxDateTime &) result);
18297 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18298 }
18299 return resultobj;
18300 fail:
18301 return NULL;
18302 }
18303
18304
18305 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18306 PyObject *resultobj;
18307 wxDateTime *arg1 = (wxDateTime *) 0 ;
18308 int arg2 ;
18309 int arg3 = (int) wxDateTime::Mon ;
18310 int arg4 = (int) wxDateTime::Monday_First ;
18311 bool result;
18312 PyObject * obj0 = 0 ;
18313 PyObject * obj1 = 0 ;
18314 PyObject * obj2 = 0 ;
18315 PyObject * obj3 = 0 ;
18316 char *kwnames[] = {
18317 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18318 };
18319
18320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18323 arg2 = (int) SWIG_AsInt(obj1);
18324 if (PyErr_Occurred()) SWIG_fail;
18325 if (obj2) {
18326 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 }
18329 if (obj3) {
18330 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18331 if (PyErr_Occurred()) SWIG_fail;
18332 }
18333 {
18334 PyThreadState* __tstate = wxPyBeginAllowThreads();
18335 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18336
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 {
18341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18342 }
18343 return resultobj;
18344 fail:
18345 return NULL;
18346 }
18347
18348
18349 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18350 PyObject *resultobj;
18351 wxDateTime *arg1 = (wxDateTime *) 0 ;
18352 int arg2 ;
18353 int arg3 = (int) wxDateTime::Mon ;
18354 int arg4 = (int) wxDateTime::Monday_First ;
18355 wxDateTime result;
18356 PyObject * obj0 = 0 ;
18357 PyObject * obj1 = 0 ;
18358 PyObject * obj2 = 0 ;
18359 PyObject * obj3 = 0 ;
18360 char *kwnames[] = {
18361 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18362 };
18363
18364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18367 arg2 = (int) SWIG_AsInt(obj1);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 if (obj2) {
18370 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18371 if (PyErr_Occurred()) SWIG_fail;
18372 }
18373 if (obj3) {
18374 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 {
18378 PyThreadState* __tstate = wxPyBeginAllowThreads();
18379 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18380
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 {
18385 wxDateTime * resultptr;
18386 resultptr = new wxDateTime((wxDateTime &) result);
18387 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18388 }
18389 return resultobj;
18390 fail:
18391 return NULL;
18392 }
18393
18394
18395 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj;
18397 wxDateTime *arg1 = (wxDateTime *) 0 ;
18398 int arg2 = (int) wxDateTime::Inv_Month ;
18399 int arg3 = (int) wxDateTime::Inv_Year ;
18400 wxDateTime *result;
18401 PyObject * obj0 = 0 ;
18402 PyObject * obj1 = 0 ;
18403 PyObject * obj2 = 0 ;
18404 char *kwnames[] = {
18405 (char *) "self",(char *) "month",(char *) "year", NULL
18406 };
18407
18408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18411 if (obj1) {
18412 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18413 if (PyErr_Occurred()) SWIG_fail;
18414 }
18415 if (obj2) {
18416 arg3 = (int) SWIG_AsInt(obj2);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 {
18422 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18423 result = (wxDateTime *) &_result_ref;
18424 }
18425
18426 wxPyEndAllowThreads(__tstate);
18427 if (PyErr_Occurred()) SWIG_fail;
18428 }
18429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18430 return resultobj;
18431 fail:
18432 return NULL;
18433 }
18434
18435
18436 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18437 PyObject *resultobj;
18438 wxDateTime *arg1 = (wxDateTime *) 0 ;
18439 int arg2 = (int) wxDateTime::Inv_Month ;
18440 int arg3 = (int) wxDateTime::Inv_Year ;
18441 wxDateTime result;
18442 PyObject * obj0 = 0 ;
18443 PyObject * obj1 = 0 ;
18444 PyObject * obj2 = 0 ;
18445 char *kwnames[] = {
18446 (char *) "self",(char *) "month",(char *) "year", NULL
18447 };
18448
18449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18452 if (obj1) {
18453 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18454 if (PyErr_Occurred()) SWIG_fail;
18455 }
18456 if (obj2) {
18457 arg3 = (int) SWIG_AsInt(obj2);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 {
18461 PyThreadState* __tstate = wxPyBeginAllowThreads();
18462 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18463
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 {
18468 wxDateTime * resultptr;
18469 resultptr = new wxDateTime((wxDateTime &) result);
18470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18471 }
18472 return resultobj;
18473 fail:
18474 return NULL;
18475 }
18476
18477
18478 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18479 PyObject *resultobj;
18480 wxDateTime *arg1 = (wxDateTime *) 0 ;
18481 int arg2 ;
18482 wxDateTime *result;
18483 PyObject * obj0 = 0 ;
18484 PyObject * obj1 = 0 ;
18485 char *kwnames[] = {
18486 (char *) "self",(char *) "yday", NULL
18487 };
18488
18489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18492 arg2 = (int) SWIG_AsInt(obj1);
18493 if (PyErr_Occurred()) SWIG_fail;
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 {
18497 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18498 result = (wxDateTime *) &_result_ref;
18499 }
18500
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18505 return resultobj;
18506 fail:
18507 return NULL;
18508 }
18509
18510
18511 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18512 PyObject *resultobj;
18513 wxDateTime *arg1 = (wxDateTime *) 0 ;
18514 int arg2 ;
18515 wxDateTime result;
18516 PyObject * obj0 = 0 ;
18517 PyObject * obj1 = 0 ;
18518 char *kwnames[] = {
18519 (char *) "self",(char *) "yday", NULL
18520 };
18521
18522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18525 arg2 = (int) SWIG_AsInt(obj1);
18526 if (PyErr_Occurred()) SWIG_fail;
18527 {
18528 PyThreadState* __tstate = wxPyBeginAllowThreads();
18529 result = (arg1)->GetYearDay(arg2);
18530
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 {
18535 wxDateTime * resultptr;
18536 resultptr = new wxDateTime((wxDateTime &) result);
18537 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18538 }
18539 return resultobj;
18540 fail:
18541 return NULL;
18542 }
18543
18544
18545 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj;
18547 wxDateTime *arg1 = (wxDateTime *) 0 ;
18548 double result;
18549 PyObject * obj0 = 0 ;
18550 char *kwnames[] = {
18551 (char *) "self", NULL
18552 };
18553
18554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 result = (double)(arg1)->GetJulianDayNumber();
18560
18561 wxPyEndAllowThreads(__tstate);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 }
18564 resultobj = SWIG_FromDouble((double)result);
18565 return resultobj;
18566 fail:
18567 return NULL;
18568 }
18569
18570
18571 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18572 PyObject *resultobj;
18573 wxDateTime *arg1 = (wxDateTime *) 0 ;
18574 double result;
18575 PyObject * obj0 = 0 ;
18576 char *kwnames[] = {
18577 (char *) "self", NULL
18578 };
18579
18580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18583 {
18584 PyThreadState* __tstate = wxPyBeginAllowThreads();
18585 result = (double)(arg1)->GetJDN();
18586
18587 wxPyEndAllowThreads(__tstate);
18588 if (PyErr_Occurred()) SWIG_fail;
18589 }
18590 resultobj = SWIG_FromDouble((double)result);
18591 return resultobj;
18592 fail:
18593 return NULL;
18594 }
18595
18596
18597 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18598 PyObject *resultobj;
18599 wxDateTime *arg1 = (wxDateTime *) 0 ;
18600 double result;
18601 PyObject * obj0 = 0 ;
18602 char *kwnames[] = {
18603 (char *) "self", NULL
18604 };
18605
18606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18609 {
18610 PyThreadState* __tstate = wxPyBeginAllowThreads();
18611 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18612
18613 wxPyEndAllowThreads(__tstate);
18614 if (PyErr_Occurred()) SWIG_fail;
18615 }
18616 resultobj = SWIG_FromDouble((double)result);
18617 return resultobj;
18618 fail:
18619 return NULL;
18620 }
18621
18622
18623 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18624 PyObject *resultobj;
18625 wxDateTime *arg1 = (wxDateTime *) 0 ;
18626 double result;
18627 PyObject * obj0 = 0 ;
18628 char *kwnames[] = {
18629 (char *) "self", NULL
18630 };
18631
18632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 result = (double)(arg1)->GetMJD();
18638
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_FromDouble((double)result);
18643 return resultobj;
18644 fail:
18645 return NULL;
18646 }
18647
18648
18649 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj;
18651 wxDateTime *arg1 = (wxDateTime *) 0 ;
18652 double result;
18653 PyObject * obj0 = 0 ;
18654 char *kwnames[] = {
18655 (char *) "self", NULL
18656 };
18657
18658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18661 {
18662 PyThreadState* __tstate = wxPyBeginAllowThreads();
18663 result = (double)(arg1)->GetRataDie();
18664
18665 wxPyEndAllowThreads(__tstate);
18666 if (PyErr_Occurred()) SWIG_fail;
18667 }
18668 resultobj = SWIG_FromDouble((double)result);
18669 return resultobj;
18670 fail:
18671 return NULL;
18672 }
18673
18674
18675 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18676 PyObject *resultobj;
18677 wxDateTime *arg1 = (wxDateTime *) 0 ;
18678 wxDateTime::TimeZone *arg2 = 0 ;
18679 bool arg3 = (bool) False ;
18680 wxDateTime result;
18681 bool temp2 = False ;
18682 PyObject * obj0 = 0 ;
18683 PyObject * obj1 = 0 ;
18684 PyObject * obj2 = 0 ;
18685 char *kwnames[] = {
18686 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18687 };
18688
18689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18692 {
18693 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18694 temp2 = True;
18695 }
18696 if (obj2) {
18697 arg3 = (bool) SWIG_AsBool(obj2);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
18700 {
18701 PyThreadState* __tstate = wxPyBeginAllowThreads();
18702 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18703
18704 wxPyEndAllowThreads(__tstate);
18705 if (PyErr_Occurred()) SWIG_fail;
18706 }
18707 {
18708 wxDateTime * resultptr;
18709 resultptr = new wxDateTime((wxDateTime &) result);
18710 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18711 }
18712 {
18713 if (temp2) delete arg2;
18714 }
18715 return resultobj;
18716 fail:
18717 {
18718 if (temp2) delete arg2;
18719 }
18720 return NULL;
18721 }
18722
18723
18724 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18725 PyObject *resultobj;
18726 wxDateTime *arg1 = (wxDateTime *) 0 ;
18727 wxDateTime::TimeZone *arg2 = 0 ;
18728 bool arg3 = (bool) False ;
18729 wxDateTime *result;
18730 bool temp2 = False ;
18731 PyObject * obj0 = 0 ;
18732 PyObject * obj1 = 0 ;
18733 PyObject * obj2 = 0 ;
18734 char *kwnames[] = {
18735 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18736 };
18737
18738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18741 {
18742 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18743 temp2 = True;
18744 }
18745 if (obj2) {
18746 arg3 = (bool) SWIG_AsBool(obj2);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 {
18750 PyThreadState* __tstate = wxPyBeginAllowThreads();
18751 {
18752 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18753 result = (wxDateTime *) &_result_ref;
18754 }
18755
18756 wxPyEndAllowThreads(__tstate);
18757 if (PyErr_Occurred()) SWIG_fail;
18758 }
18759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18760 {
18761 if (temp2) delete arg2;
18762 }
18763 return resultobj;
18764 fail:
18765 {
18766 if (temp2) delete arg2;
18767 }
18768 return NULL;
18769 }
18770
18771
18772 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj;
18774 wxDateTime *arg1 = (wxDateTime *) 0 ;
18775 bool arg2 = (bool) False ;
18776 wxDateTime result;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 char *kwnames[] = {
18780 (char *) "self",(char *) "noDST", NULL
18781 };
18782
18783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18786 if (obj1) {
18787 arg2 = (bool) SWIG_AsBool(obj1);
18788 if (PyErr_Occurred()) SWIG_fail;
18789 }
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 result = (arg1)->ToGMT(arg2);
18793
18794 wxPyEndAllowThreads(__tstate);
18795 if (PyErr_Occurred()) SWIG_fail;
18796 }
18797 {
18798 wxDateTime * resultptr;
18799 resultptr = new wxDateTime((wxDateTime &) result);
18800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18801 }
18802 return resultobj;
18803 fail:
18804 return NULL;
18805 }
18806
18807
18808 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18809 PyObject *resultobj;
18810 wxDateTime *arg1 = (wxDateTime *) 0 ;
18811 bool arg2 = (bool) False ;
18812 wxDateTime *result;
18813 PyObject * obj0 = 0 ;
18814 PyObject * obj1 = 0 ;
18815 char *kwnames[] = {
18816 (char *) "self",(char *) "noDST", NULL
18817 };
18818
18819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18822 if (obj1) {
18823 arg2 = (bool) SWIG_AsBool(obj1);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 {
18827 PyThreadState* __tstate = wxPyBeginAllowThreads();
18828 {
18829 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18830 result = (wxDateTime *) &_result_ref;
18831 }
18832
18833 wxPyEndAllowThreads(__tstate);
18834 if (PyErr_Occurred()) SWIG_fail;
18835 }
18836 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18837 return resultobj;
18838 fail:
18839 return NULL;
18840 }
18841
18842
18843 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18844 PyObject *resultobj;
18845 wxDateTime *arg1 = (wxDateTime *) 0 ;
18846 int arg2 = (int) wxDateTime::Country_Default ;
18847 int result;
18848 PyObject * obj0 = 0 ;
18849 PyObject * obj1 = 0 ;
18850 char *kwnames[] = {
18851 (char *) "self",(char *) "country", NULL
18852 };
18853
18854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18857 if (obj1) {
18858 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 {
18862 PyThreadState* __tstate = wxPyBeginAllowThreads();
18863 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18864
18865 wxPyEndAllowThreads(__tstate);
18866 if (PyErr_Occurred()) SWIG_fail;
18867 }
18868 resultobj = SWIG_FromInt((int)result);
18869 return resultobj;
18870 fail:
18871 return NULL;
18872 }
18873
18874
18875 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18876 PyObject *resultobj;
18877 wxDateTime *arg1 = (wxDateTime *) 0 ;
18878 bool result;
18879 PyObject * obj0 = 0 ;
18880 char *kwnames[] = {
18881 (char *) "self", NULL
18882 };
18883
18884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18887 {
18888 PyThreadState* __tstate = wxPyBeginAllowThreads();
18889 result = (bool)((wxDateTime const *)arg1)->IsValid();
18890
18891 wxPyEndAllowThreads(__tstate);
18892 if (PyErr_Occurred()) SWIG_fail;
18893 }
18894 {
18895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18896 }
18897 return resultobj;
18898 fail:
18899 return NULL;
18900 }
18901
18902
18903 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18904 PyObject *resultobj;
18905 wxDateTime *arg1 = (wxDateTime *) 0 ;
18906 time_t result;
18907 PyObject * obj0 = 0 ;
18908 char *kwnames[] = {
18909 (char *) "self", NULL
18910 };
18911
18912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
18917 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18918
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18923 return resultobj;
18924 fail:
18925 return NULL;
18926 }
18927
18928
18929 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18930 PyObject *resultobj;
18931 wxDateTime *arg1 = (wxDateTime *) 0 ;
18932 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18933 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18934 int result;
18935 bool temp2 = False ;
18936 PyObject * obj0 = 0 ;
18937 PyObject * obj1 = 0 ;
18938 char *kwnames[] = {
18939 (char *) "self",(char *) "tz", NULL
18940 };
18941
18942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18945 if (obj1) {
18946 {
18947 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18948 temp2 = True;
18949 }
18950 }
18951 {
18952 PyThreadState* __tstate = wxPyBeginAllowThreads();
18953 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18954
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_FromInt((int)result);
18959 {
18960 if (temp2) delete arg2;
18961 }
18962 return resultobj;
18963 fail:
18964 {
18965 if (temp2) delete arg2;
18966 }
18967 return NULL;
18968 }
18969
18970
18971 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18972 PyObject *resultobj;
18973 wxDateTime *arg1 = (wxDateTime *) 0 ;
18974 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18975 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18976 int result;
18977 bool temp2 = False ;
18978 PyObject * obj0 = 0 ;
18979 PyObject * obj1 = 0 ;
18980 char *kwnames[] = {
18981 (char *) "self",(char *) "tz", NULL
18982 };
18983
18984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18987 if (obj1) {
18988 {
18989 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18990 temp2 = True;
18991 }
18992 }
18993 {
18994 PyThreadState* __tstate = wxPyBeginAllowThreads();
18995 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18996
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_FromInt((int)result);
19001 {
19002 if (temp2) delete arg2;
19003 }
19004 return resultobj;
19005 fail:
19006 {
19007 if (temp2) delete arg2;
19008 }
19009 return NULL;
19010 }
19011
19012
19013 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19014 PyObject *resultobj;
19015 wxDateTime *arg1 = (wxDateTime *) 0 ;
19016 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19017 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19018 int result;
19019 bool temp2 = False ;
19020 PyObject * obj0 = 0 ;
19021 PyObject * obj1 = 0 ;
19022 char *kwnames[] = {
19023 (char *) "self",(char *) "tz", NULL
19024 };
19025
19026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19029 if (obj1) {
19030 {
19031 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19032 temp2 = True;
19033 }
19034 }
19035 {
19036 PyThreadState* __tstate = wxPyBeginAllowThreads();
19037 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19038
19039 wxPyEndAllowThreads(__tstate);
19040 if (PyErr_Occurred()) SWIG_fail;
19041 }
19042 resultobj = SWIG_FromInt((int)result);
19043 {
19044 if (temp2) delete arg2;
19045 }
19046 return resultobj;
19047 fail:
19048 {
19049 if (temp2) delete arg2;
19050 }
19051 return NULL;
19052 }
19053
19054
19055 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19056 PyObject *resultobj;
19057 wxDateTime *arg1 = (wxDateTime *) 0 ;
19058 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19059 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19060 int result;
19061 bool temp2 = False ;
19062 PyObject * obj0 = 0 ;
19063 PyObject * obj1 = 0 ;
19064 char *kwnames[] = {
19065 (char *) "self",(char *) "tz", NULL
19066 };
19067
19068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19071 if (obj1) {
19072 {
19073 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19074 temp2 = True;
19075 }
19076 }
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19080
19081 wxPyEndAllowThreads(__tstate);
19082 if (PyErr_Occurred()) SWIG_fail;
19083 }
19084 resultobj = SWIG_FromInt((int)result);
19085 {
19086 if (temp2) delete arg2;
19087 }
19088 return resultobj;
19089 fail:
19090 {
19091 if (temp2) delete arg2;
19092 }
19093 return NULL;
19094 }
19095
19096
19097 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19098 PyObject *resultobj;
19099 wxDateTime *arg1 = (wxDateTime *) 0 ;
19100 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19101 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19102 int result;
19103 bool temp2 = False ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 char *kwnames[] = {
19107 (char *) "self",(char *) "tz", NULL
19108 };
19109
19110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19113 if (obj1) {
19114 {
19115 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19116 temp2 = True;
19117 }
19118 }
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19122
19123 wxPyEndAllowThreads(__tstate);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 resultobj = SWIG_FromInt((int)result);
19127 {
19128 if (temp2) delete arg2;
19129 }
19130 return resultobj;
19131 fail:
19132 {
19133 if (temp2) delete arg2;
19134 }
19135 return NULL;
19136 }
19137
19138
19139 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19140 PyObject *resultobj;
19141 wxDateTime *arg1 = (wxDateTime *) 0 ;
19142 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19143 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19144 int result;
19145 bool temp2 = False ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 char *kwnames[] = {
19149 (char *) "self",(char *) "tz", NULL
19150 };
19151
19152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19155 if (obj1) {
19156 {
19157 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19158 temp2 = True;
19159 }
19160 }
19161 {
19162 PyThreadState* __tstate = wxPyBeginAllowThreads();
19163 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19164
19165 wxPyEndAllowThreads(__tstate);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 }
19168 resultobj = SWIG_FromInt((int)result);
19169 {
19170 if (temp2) delete arg2;
19171 }
19172 return resultobj;
19173 fail:
19174 {
19175 if (temp2) delete arg2;
19176 }
19177 return NULL;
19178 }
19179
19180
19181 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19182 PyObject *resultobj;
19183 wxDateTime *arg1 = (wxDateTime *) 0 ;
19184 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19185 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19186 int result;
19187 bool temp2 = False ;
19188 PyObject * obj0 = 0 ;
19189 PyObject * obj1 = 0 ;
19190 char *kwnames[] = {
19191 (char *) "self",(char *) "tz", NULL
19192 };
19193
19194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19197 if (obj1) {
19198 {
19199 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19200 temp2 = True;
19201 }
19202 }
19203 {
19204 PyThreadState* __tstate = wxPyBeginAllowThreads();
19205 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19206
19207 wxPyEndAllowThreads(__tstate);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 }
19210 resultobj = SWIG_FromInt((int)result);
19211 {
19212 if (temp2) delete arg2;
19213 }
19214 return resultobj;
19215 fail:
19216 {
19217 if (temp2) delete arg2;
19218 }
19219 return NULL;
19220 }
19221
19222
19223 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj;
19225 wxDateTime *arg1 = (wxDateTime *) 0 ;
19226 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19227 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19228 int result;
19229 bool temp2 = False ;
19230 PyObject * obj0 = 0 ;
19231 PyObject * obj1 = 0 ;
19232 char *kwnames[] = {
19233 (char *) "self",(char *) "tz", NULL
19234 };
19235
19236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19239 if (obj1) {
19240 {
19241 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19242 temp2 = True;
19243 }
19244 }
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19248
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_FromInt((int)result);
19253 {
19254 if (temp2) delete arg2;
19255 }
19256 return resultobj;
19257 fail:
19258 {
19259 if (temp2) delete arg2;
19260 }
19261 return NULL;
19262 }
19263
19264
19265 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19266 PyObject *resultobj;
19267 wxDateTime *arg1 = (wxDateTime *) 0 ;
19268 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19269 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19270 int result;
19271 bool temp2 = False ;
19272 PyObject * obj0 = 0 ;
19273 PyObject * obj1 = 0 ;
19274 char *kwnames[] = {
19275 (char *) "self",(char *) "tz", NULL
19276 };
19277
19278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19281 if (obj1) {
19282 {
19283 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19284 temp2 = True;
19285 }
19286 }
19287 {
19288 PyThreadState* __tstate = wxPyBeginAllowThreads();
19289 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19290
19291 wxPyEndAllowThreads(__tstate);
19292 if (PyErr_Occurred()) SWIG_fail;
19293 }
19294 resultobj = SWIG_FromInt((int)result);
19295 {
19296 if (temp2) delete arg2;
19297 }
19298 return resultobj;
19299 fail:
19300 {
19301 if (temp2) delete arg2;
19302 }
19303 return NULL;
19304 }
19305
19306
19307 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19308 PyObject *resultobj;
19309 wxDateTime *arg1 = (wxDateTime *) 0 ;
19310 int arg2 = (int) wxDateTime::Monday_First ;
19311 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19312 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19313 int result;
19314 bool temp3 = False ;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 PyObject * obj2 = 0 ;
19318 char *kwnames[] = {
19319 (char *) "self",(char *) "flags",(char *) "tz", NULL
19320 };
19321
19322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19325 if (obj1) {
19326 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 }
19329 if (obj2) {
19330 {
19331 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19332 temp3 = True;
19333 }
19334 }
19335 {
19336 PyThreadState* __tstate = wxPyBeginAllowThreads();
19337 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19338
19339 wxPyEndAllowThreads(__tstate);
19340 if (PyErr_Occurred()) SWIG_fail;
19341 }
19342 resultobj = SWIG_FromInt((int)result);
19343 {
19344 if (temp3) delete arg3;
19345 }
19346 return resultobj;
19347 fail:
19348 {
19349 if (temp3) delete arg3;
19350 }
19351 return NULL;
19352 }
19353
19354
19355 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19356 PyObject *resultobj;
19357 wxDateTime *arg1 = (wxDateTime *) 0 ;
19358 int arg2 = (int) wxDateTime::Monday_First ;
19359 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19360 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19361 int result;
19362 bool temp3 = False ;
19363 PyObject * obj0 = 0 ;
19364 PyObject * obj1 = 0 ;
19365 PyObject * obj2 = 0 ;
19366 char *kwnames[] = {
19367 (char *) "self",(char *) "flags",(char *) "tz", NULL
19368 };
19369
19370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19373 if (obj1) {
19374 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 if (obj2) {
19378 {
19379 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19380 temp3 = True;
19381 }
19382 }
19383 {
19384 PyThreadState* __tstate = wxPyBeginAllowThreads();
19385 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19386
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 resultobj = SWIG_FromInt((int)result);
19391 {
19392 if (temp3) delete arg3;
19393 }
19394 return resultobj;
19395 fail:
19396 {
19397 if (temp3) delete arg3;
19398 }
19399 return NULL;
19400 }
19401
19402
19403 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19404 PyObject *resultobj;
19405 wxDateTime *arg1 = (wxDateTime *) 0 ;
19406 int arg2 = (int) wxDateTime::Country_Default ;
19407 bool result;
19408 PyObject * obj0 = 0 ;
19409 PyObject * obj1 = 0 ;
19410 char *kwnames[] = {
19411 (char *) "self",(char *) "country", NULL
19412 };
19413
19414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19417 if (obj1) {
19418 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19419 if (PyErr_Occurred()) SWIG_fail;
19420 }
19421 {
19422 PyThreadState* __tstate = wxPyBeginAllowThreads();
19423 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19424
19425 wxPyEndAllowThreads(__tstate);
19426 if (PyErr_Occurred()) SWIG_fail;
19427 }
19428 {
19429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19430 }
19431 return resultobj;
19432 fail:
19433 return NULL;
19434 }
19435
19436
19437 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19438 PyObject *resultobj;
19439 wxDateTime *arg1 = (wxDateTime *) 0 ;
19440 wxDateTime *arg2 = 0 ;
19441 bool result;
19442 PyObject * obj0 = 0 ;
19443 PyObject * obj1 = 0 ;
19444 char *kwnames[] = {
19445 (char *) "self",(char *) "datetime", NULL
19446 };
19447
19448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19451 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19452 SWIG_POINTER_EXCEPTION | 0)) == -1)
19453 SWIG_fail;
19454 if (arg2 == NULL) {
19455 PyErr_SetString(PyExc_TypeError,"null reference");
19456 SWIG_fail;
19457 }
19458 {
19459 PyThreadState* __tstate = wxPyBeginAllowThreads();
19460 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19461
19462 wxPyEndAllowThreads(__tstate);
19463 if (PyErr_Occurred()) SWIG_fail;
19464 }
19465 {
19466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19467 }
19468 return resultobj;
19469 fail:
19470 return NULL;
19471 }
19472
19473
19474 static PyObject *_wrap_DateTime_IsEarlierThan(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 *) "datetime", NULL
19483 };
19484
19485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",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)->IsEarlierThan((wxDateTime const &)*arg2);
19498
19499 wxPyEndAllowThreads(__tstate);
19500 if (PyErr_Occurred()) SWIG_fail;
19501 }
19502 {
19503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19504 }
19505 return resultobj;
19506 fail:
19507 return NULL;
19508 }
19509
19510
19511 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19512 PyObject *resultobj;
19513 wxDateTime *arg1 = (wxDateTime *) 0 ;
19514 wxDateTime *arg2 = 0 ;
19515 bool result;
19516 PyObject * obj0 = 0 ;
19517 PyObject * obj1 = 0 ;
19518 char *kwnames[] = {
19519 (char *) "self",(char *) "datetime", NULL
19520 };
19521
19522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19526 SWIG_POINTER_EXCEPTION | 0)) == -1)
19527 SWIG_fail;
19528 if (arg2 == NULL) {
19529 PyErr_SetString(PyExc_TypeError,"null reference");
19530 SWIG_fail;
19531 }
19532 {
19533 PyThreadState* __tstate = wxPyBeginAllowThreads();
19534 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19535
19536 wxPyEndAllowThreads(__tstate);
19537 if (PyErr_Occurred()) SWIG_fail;
19538 }
19539 {
19540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19541 }
19542 return resultobj;
19543 fail:
19544 return NULL;
19545 }
19546
19547
19548 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19549 PyObject *resultobj;
19550 wxDateTime *arg1 = (wxDateTime *) 0 ;
19551 wxDateTime *arg2 = 0 ;
19552 wxDateTime *arg3 = 0 ;
19553 bool result;
19554 PyObject * obj0 = 0 ;
19555 PyObject * obj1 = 0 ;
19556 PyObject * obj2 = 0 ;
19557 char *kwnames[] = {
19558 (char *) "self",(char *) "t1",(char *) "t2", NULL
19559 };
19560
19561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19565 SWIG_POINTER_EXCEPTION | 0)) == -1)
19566 SWIG_fail;
19567 if (arg2 == NULL) {
19568 PyErr_SetString(PyExc_TypeError,"null reference");
19569 SWIG_fail;
19570 }
19571 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19572 SWIG_POINTER_EXCEPTION | 0)) == -1)
19573 SWIG_fail;
19574 if (arg3 == NULL) {
19575 PyErr_SetString(PyExc_TypeError,"null reference");
19576 SWIG_fail;
19577 }
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19581
19582 wxPyEndAllowThreads(__tstate);
19583 if (PyErr_Occurred()) SWIG_fail;
19584 }
19585 {
19586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19587 }
19588 return resultobj;
19589 fail:
19590 return NULL;
19591 }
19592
19593
19594 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19595 PyObject *resultobj;
19596 wxDateTime *arg1 = (wxDateTime *) 0 ;
19597 wxDateTime *arg2 = 0 ;
19598 wxDateTime *arg3 = 0 ;
19599 bool result;
19600 PyObject * obj0 = 0 ;
19601 PyObject * obj1 = 0 ;
19602 PyObject * obj2 = 0 ;
19603 char *kwnames[] = {
19604 (char *) "self",(char *) "t1",(char *) "t2", NULL
19605 };
19606
19607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19611 SWIG_POINTER_EXCEPTION | 0)) == -1)
19612 SWIG_fail;
19613 if (arg2 == NULL) {
19614 PyErr_SetString(PyExc_TypeError,"null reference");
19615 SWIG_fail;
19616 }
19617 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19618 SWIG_POINTER_EXCEPTION | 0)) == -1)
19619 SWIG_fail;
19620 if (arg3 == NULL) {
19621 PyErr_SetString(PyExc_TypeError,"null reference");
19622 SWIG_fail;
19623 }
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19627
19628 wxPyEndAllowThreads(__tstate);
19629 if (PyErr_Occurred()) SWIG_fail;
19630 }
19631 {
19632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19633 }
19634 return resultobj;
19635 fail:
19636 return NULL;
19637 }
19638
19639
19640 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19641 PyObject *resultobj;
19642 wxDateTime *arg1 = (wxDateTime *) 0 ;
19643 wxDateTime *arg2 = 0 ;
19644 bool result;
19645 PyObject * obj0 = 0 ;
19646 PyObject * obj1 = 0 ;
19647 char *kwnames[] = {
19648 (char *) "self",(char *) "dt", NULL
19649 };
19650
19651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19654 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19655 SWIG_POINTER_EXCEPTION | 0)) == -1)
19656 SWIG_fail;
19657 if (arg2 == NULL) {
19658 PyErr_SetString(PyExc_TypeError,"null reference");
19659 SWIG_fail;
19660 }
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19664
19665 wxPyEndAllowThreads(__tstate);
19666 if (PyErr_Occurred()) SWIG_fail;
19667 }
19668 {
19669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19670 }
19671 return resultobj;
19672 fail:
19673 return NULL;
19674 }
19675
19676
19677 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19678 PyObject *resultobj;
19679 wxDateTime *arg1 = (wxDateTime *) 0 ;
19680 wxDateTime *arg2 = 0 ;
19681 bool result;
19682 PyObject * obj0 = 0 ;
19683 PyObject * obj1 = 0 ;
19684 char *kwnames[] = {
19685 (char *) "self",(char *) "dt", NULL
19686 };
19687
19688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19692 SWIG_POINTER_EXCEPTION | 0)) == -1)
19693 SWIG_fail;
19694 if (arg2 == NULL) {
19695 PyErr_SetString(PyExc_TypeError,"null reference");
19696 SWIG_fail;
19697 }
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19701
19702 wxPyEndAllowThreads(__tstate);
19703 if (PyErr_Occurred()) SWIG_fail;
19704 }
19705 {
19706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19707 }
19708 return resultobj;
19709 fail:
19710 return NULL;
19711 }
19712
19713
19714 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19715 PyObject *resultobj;
19716 wxDateTime *arg1 = (wxDateTime *) 0 ;
19717 wxDateTime *arg2 = 0 ;
19718 wxTimeSpan *arg3 = 0 ;
19719 bool result;
19720 PyObject * obj0 = 0 ;
19721 PyObject * obj1 = 0 ;
19722 PyObject * obj2 = 0 ;
19723 char *kwnames[] = {
19724 (char *) "self",(char *) "dt",(char *) "ts", NULL
19725 };
19726
19727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19731 SWIG_POINTER_EXCEPTION | 0)) == -1)
19732 SWIG_fail;
19733 if (arg2 == NULL) {
19734 PyErr_SetString(PyExc_TypeError,"null reference");
19735 SWIG_fail;
19736 }
19737 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19738 SWIG_POINTER_EXCEPTION | 0)) == -1)
19739 SWIG_fail;
19740 if (arg3 == NULL) {
19741 PyErr_SetString(PyExc_TypeError,"null reference");
19742 SWIG_fail;
19743 }
19744 {
19745 PyThreadState* __tstate = wxPyBeginAllowThreads();
19746 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19747
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 {
19752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19753 }
19754 return resultobj;
19755 fail:
19756 return NULL;
19757 }
19758
19759
19760 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19761 PyObject *resultobj;
19762 wxDateTime *arg1 = (wxDateTime *) 0 ;
19763 wxTimeSpan *arg2 = 0 ;
19764 wxDateTime *result;
19765 PyObject * obj0 = 0 ;
19766 PyObject * obj1 = 0 ;
19767 char *kwnames[] = {
19768 (char *) "self",(char *) "diff", NULL
19769 };
19770
19771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19775 SWIG_POINTER_EXCEPTION | 0)) == -1)
19776 SWIG_fail;
19777 if (arg2 == NULL) {
19778 PyErr_SetString(PyExc_TypeError,"null reference");
19779 SWIG_fail;
19780 }
19781 {
19782 PyThreadState* __tstate = wxPyBeginAllowThreads();
19783 {
19784 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19785 result = (wxDateTime *) &_result_ref;
19786 }
19787
19788 wxPyEndAllowThreads(__tstate);
19789 if (PyErr_Occurred()) SWIG_fail;
19790 }
19791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19792 return resultobj;
19793 fail:
19794 return NULL;
19795 }
19796
19797
19798 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19799 PyObject *resultobj;
19800 wxDateTime *arg1 = (wxDateTime *) 0 ;
19801 wxDateSpan *arg2 = 0 ;
19802 wxDateTime *result;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805 char *kwnames[] = {
19806 (char *) "self",(char *) "diff", NULL
19807 };
19808
19809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19812 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19813 SWIG_POINTER_EXCEPTION | 0)) == -1)
19814 SWIG_fail;
19815 if (arg2 == NULL) {
19816 PyErr_SetString(PyExc_TypeError,"null reference");
19817 SWIG_fail;
19818 }
19819 {
19820 PyThreadState* __tstate = wxPyBeginAllowThreads();
19821 {
19822 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19823 result = (wxDateTime *) &_result_ref;
19824 }
19825
19826 wxPyEndAllowThreads(__tstate);
19827 if (PyErr_Occurred()) SWIG_fail;
19828 }
19829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19830 return resultobj;
19831 fail:
19832 return NULL;
19833 }
19834
19835
19836 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj;
19838 wxDateTime *arg1 = (wxDateTime *) 0 ;
19839 wxTimeSpan *arg2 = 0 ;
19840 wxDateTime *result;
19841 PyObject * obj0 = 0 ;
19842 PyObject * obj1 = 0 ;
19843 char *kwnames[] = {
19844 (char *) "self",(char *) "diff", NULL
19845 };
19846
19847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19851 SWIG_POINTER_EXCEPTION | 0)) == -1)
19852 SWIG_fail;
19853 if (arg2 == NULL) {
19854 PyErr_SetString(PyExc_TypeError,"null reference");
19855 SWIG_fail;
19856 }
19857 {
19858 PyThreadState* __tstate = wxPyBeginAllowThreads();
19859 {
19860 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19861 result = (wxDateTime *) &_result_ref;
19862 }
19863
19864 wxPyEndAllowThreads(__tstate);
19865 if (PyErr_Occurred()) SWIG_fail;
19866 }
19867 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19868 return resultobj;
19869 fail:
19870 return NULL;
19871 }
19872
19873
19874 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19875 PyObject *resultobj;
19876 wxDateTime *arg1 = (wxDateTime *) 0 ;
19877 wxDateSpan *arg2 = 0 ;
19878 wxDateTime *result;
19879 PyObject * obj0 = 0 ;
19880 PyObject * obj1 = 0 ;
19881 char *kwnames[] = {
19882 (char *) "self",(char *) "diff", NULL
19883 };
19884
19885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19888 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19889 SWIG_POINTER_EXCEPTION | 0)) == -1)
19890 SWIG_fail;
19891 if (arg2 == NULL) {
19892 PyErr_SetString(PyExc_TypeError,"null reference");
19893 SWIG_fail;
19894 }
19895 {
19896 PyThreadState* __tstate = wxPyBeginAllowThreads();
19897 {
19898 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19899 result = (wxDateTime *) &_result_ref;
19900 }
19901
19902 wxPyEndAllowThreads(__tstate);
19903 if (PyErr_Occurred()) SWIG_fail;
19904 }
19905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19906 return resultobj;
19907 fail:
19908 return NULL;
19909 }
19910
19911
19912 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19913 PyObject *resultobj;
19914 wxDateTime *arg1 = (wxDateTime *) 0 ;
19915 wxDateTime *arg2 = 0 ;
19916 wxTimeSpan result;
19917 PyObject * obj0 = 0 ;
19918 PyObject * obj1 = 0 ;
19919 char *kwnames[] = {
19920 (char *) "self",(char *) "dt", NULL
19921 };
19922
19923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19927 SWIG_POINTER_EXCEPTION | 0)) == -1)
19928 SWIG_fail;
19929 if (arg2 == NULL) {
19930 PyErr_SetString(PyExc_TypeError,"null reference");
19931 SWIG_fail;
19932 }
19933 {
19934 PyThreadState* __tstate = wxPyBeginAllowThreads();
19935 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19936
19937 wxPyEndAllowThreads(__tstate);
19938 if (PyErr_Occurred()) SWIG_fail;
19939 }
19940 {
19941 wxTimeSpan * resultptr;
19942 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19943 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19944 }
19945 return resultobj;
19946 fail:
19947 return NULL;
19948 }
19949
19950
19951 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19952 PyObject *resultobj;
19953 wxDateTime *arg1 = (wxDateTime *) 0 ;
19954 wxTimeSpan *arg2 = 0 ;
19955 wxDateTime *result;
19956 PyObject * obj0 = 0 ;
19957 PyObject * obj1 = 0 ;
19958
19959 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&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_wxTimeSpan,
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 +=((wxTimeSpan 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___iadd____SWIG_1(PyObject *self, PyObject *args) {
19987 PyObject *resultobj;
19988 wxDateTime *arg1 = (wxDateTime *) 0 ;
19989 wxDateSpan *arg2 = 0 ;
19990 wxDateTime *result;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993
19994 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19998 SWIG_POINTER_EXCEPTION | 0)) == -1)
19999 SWIG_fail;
20000 if (arg2 == NULL) {
20001 PyErr_SetString(PyExc_TypeError,"null reference");
20002 SWIG_fail;
20003 }
20004 {
20005 PyThreadState* __tstate = wxPyBeginAllowThreads();
20006 {
20007 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20008 result = (wxDateTime *) &_result_ref;
20009 }
20010
20011 wxPyEndAllowThreads(__tstate);
20012 if (PyErr_Occurred()) SWIG_fail;
20013 }
20014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20015 return resultobj;
20016 fail:
20017 return NULL;
20018 }
20019
20020
20021 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20022 int argc;
20023 PyObject *argv[3];
20024 int ii;
20025
20026 argc = PyObject_Length(args);
20027 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20028 argv[ii] = PyTuple_GetItem(args,ii);
20029 }
20030 if (argc == 2) {
20031 int _v;
20032 {
20033 void *ptr;
20034 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20035 _v = 0;
20036 PyErr_Clear();
20037 } else {
20038 _v = 1;
20039 }
20040 }
20041 if (_v) {
20042 {
20043 void *ptr;
20044 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20045 _v = 0;
20046 PyErr_Clear();
20047 } else {
20048 _v = 1;
20049 }
20050 }
20051 if (_v) {
20052 return _wrap_DateTime___iadd____SWIG_0(self,args);
20053 }
20054 }
20055 }
20056 if (argc == 2) {
20057 int _v;
20058 {
20059 void *ptr;
20060 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20061 _v = 0;
20062 PyErr_Clear();
20063 } else {
20064 _v = 1;
20065 }
20066 }
20067 if (_v) {
20068 {
20069 void *ptr;
20070 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20071 _v = 0;
20072 PyErr_Clear();
20073 } else {
20074 _v = 1;
20075 }
20076 }
20077 if (_v) {
20078 return _wrap_DateTime___iadd____SWIG_1(self,args);
20079 }
20080 }
20081 }
20082
20083 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20084 return NULL;
20085 }
20086
20087
20088 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20089 PyObject *resultobj;
20090 wxDateTime *arg1 = (wxDateTime *) 0 ;
20091 wxTimeSpan *arg2 = 0 ;
20092 wxDateTime *result;
20093 PyObject * obj0 = 0 ;
20094 PyObject * obj1 = 0 ;
20095
20096 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20099 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20100 SWIG_POINTER_EXCEPTION | 0)) == -1)
20101 SWIG_fail;
20102 if (arg2 == NULL) {
20103 PyErr_SetString(PyExc_TypeError,"null reference");
20104 SWIG_fail;
20105 }
20106 {
20107 PyThreadState* __tstate = wxPyBeginAllowThreads();
20108 {
20109 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20110 result = (wxDateTime *) &_result_ref;
20111 }
20112
20113 wxPyEndAllowThreads(__tstate);
20114 if (PyErr_Occurred()) SWIG_fail;
20115 }
20116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20117 return resultobj;
20118 fail:
20119 return NULL;
20120 }
20121
20122
20123 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20124 PyObject *resultobj;
20125 wxDateTime *arg1 = (wxDateTime *) 0 ;
20126 wxDateSpan *arg2 = 0 ;
20127 wxDateTime *result;
20128 PyObject * obj0 = 0 ;
20129 PyObject * obj1 = 0 ;
20130
20131 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20135 SWIG_POINTER_EXCEPTION | 0)) == -1)
20136 SWIG_fail;
20137 if (arg2 == NULL) {
20138 PyErr_SetString(PyExc_TypeError,"null reference");
20139 SWIG_fail;
20140 }
20141 {
20142 PyThreadState* __tstate = wxPyBeginAllowThreads();
20143 {
20144 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20145 result = (wxDateTime *) &_result_ref;
20146 }
20147
20148 wxPyEndAllowThreads(__tstate);
20149 if (PyErr_Occurred()) SWIG_fail;
20150 }
20151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20152 return resultobj;
20153 fail:
20154 return NULL;
20155 }
20156
20157
20158 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20159 int argc;
20160 PyObject *argv[3];
20161 int ii;
20162
20163 argc = PyObject_Length(args);
20164 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20165 argv[ii] = PyTuple_GetItem(args,ii);
20166 }
20167 if (argc == 2) {
20168 int _v;
20169 {
20170 void *ptr;
20171 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20172 _v = 0;
20173 PyErr_Clear();
20174 } else {
20175 _v = 1;
20176 }
20177 }
20178 if (_v) {
20179 {
20180 void *ptr;
20181 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20182 _v = 0;
20183 PyErr_Clear();
20184 } else {
20185 _v = 1;
20186 }
20187 }
20188 if (_v) {
20189 return _wrap_DateTime___isub____SWIG_0(self,args);
20190 }
20191 }
20192 }
20193 if (argc == 2) {
20194 int _v;
20195 {
20196 void *ptr;
20197 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20198 _v = 0;
20199 PyErr_Clear();
20200 } else {
20201 _v = 1;
20202 }
20203 }
20204 if (_v) {
20205 {
20206 void *ptr;
20207 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20208 _v = 0;
20209 PyErr_Clear();
20210 } else {
20211 _v = 1;
20212 }
20213 }
20214 if (_v) {
20215 return _wrap_DateTime___isub____SWIG_1(self,args);
20216 }
20217 }
20218 }
20219
20220 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20221 return NULL;
20222 }
20223
20224
20225 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20226 PyObject *resultobj;
20227 wxDateTime *arg1 = (wxDateTime *) 0 ;
20228 wxTimeSpan *arg2 = 0 ;
20229 wxDateTime result;
20230 PyObject * obj0 = 0 ;
20231 PyObject * obj1 = 0 ;
20232
20233 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20236 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20237 SWIG_POINTER_EXCEPTION | 0)) == -1)
20238 SWIG_fail;
20239 if (arg2 == NULL) {
20240 PyErr_SetString(PyExc_TypeError,"null reference");
20241 SWIG_fail;
20242 }
20243 {
20244 PyThreadState* __tstate = wxPyBeginAllowThreads();
20245 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20246
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 {
20251 wxDateTime * resultptr;
20252 resultptr = new wxDateTime((wxDateTime &) result);
20253 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20254 }
20255 return resultobj;
20256 fail:
20257 return NULL;
20258 }
20259
20260
20261 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20262 PyObject *resultobj;
20263 wxDateTime *arg1 = (wxDateTime *) 0 ;
20264 wxDateSpan *arg2 = 0 ;
20265 wxDateTime result;
20266 PyObject * obj0 = 0 ;
20267 PyObject * obj1 = 0 ;
20268
20269 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20273 SWIG_POINTER_EXCEPTION | 0)) == -1)
20274 SWIG_fail;
20275 if (arg2 == NULL) {
20276 PyErr_SetString(PyExc_TypeError,"null reference");
20277 SWIG_fail;
20278 }
20279 {
20280 PyThreadState* __tstate = wxPyBeginAllowThreads();
20281 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20282
20283 wxPyEndAllowThreads(__tstate);
20284 if (PyErr_Occurred()) SWIG_fail;
20285 }
20286 {
20287 wxDateTime * resultptr;
20288 resultptr = new wxDateTime((wxDateTime &) result);
20289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20290 }
20291 return resultobj;
20292 fail:
20293 return NULL;
20294 }
20295
20296
20297 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20298 int argc;
20299 PyObject *argv[3];
20300 int ii;
20301
20302 argc = PyObject_Length(args);
20303 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20304 argv[ii] = PyTuple_GetItem(args,ii);
20305 }
20306 if (argc == 2) {
20307 int _v;
20308 {
20309 void *ptr;
20310 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20311 _v = 0;
20312 PyErr_Clear();
20313 } else {
20314 _v = 1;
20315 }
20316 }
20317 if (_v) {
20318 {
20319 void *ptr;
20320 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20321 _v = 0;
20322 PyErr_Clear();
20323 } else {
20324 _v = 1;
20325 }
20326 }
20327 if (_v) {
20328 return _wrap_DateTime___add____SWIG_0(self,args);
20329 }
20330 }
20331 }
20332 if (argc == 2) {
20333 int _v;
20334 {
20335 void *ptr;
20336 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20337 _v = 0;
20338 PyErr_Clear();
20339 } else {
20340 _v = 1;
20341 }
20342 }
20343 if (_v) {
20344 {
20345 void *ptr;
20346 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20347 _v = 0;
20348 PyErr_Clear();
20349 } else {
20350 _v = 1;
20351 }
20352 }
20353 if (_v) {
20354 return _wrap_DateTime___add____SWIG_1(self,args);
20355 }
20356 }
20357 }
20358
20359 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20360 return NULL;
20361 }
20362
20363
20364 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20365 PyObject *resultobj;
20366 wxDateTime *arg1 = (wxDateTime *) 0 ;
20367 wxDateTime *arg2 = 0 ;
20368 wxTimeSpan result;
20369 PyObject * obj0 = 0 ;
20370 PyObject * obj1 = 0 ;
20371
20372 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20376 SWIG_POINTER_EXCEPTION | 0)) == -1)
20377 SWIG_fail;
20378 if (arg2 == NULL) {
20379 PyErr_SetString(PyExc_TypeError,"null reference");
20380 SWIG_fail;
20381 }
20382 {
20383 PyThreadState* __tstate = wxPyBeginAllowThreads();
20384 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20385
20386 wxPyEndAllowThreads(__tstate);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 {
20390 wxTimeSpan * resultptr;
20391 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20392 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20393 }
20394 return resultobj;
20395 fail:
20396 return NULL;
20397 }
20398
20399
20400 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20401 PyObject *resultobj;
20402 wxDateTime *arg1 = (wxDateTime *) 0 ;
20403 wxTimeSpan *arg2 = 0 ;
20404 wxDateTime result;
20405 PyObject * obj0 = 0 ;
20406 PyObject * obj1 = 0 ;
20407
20408 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20412 SWIG_POINTER_EXCEPTION | 0)) == -1)
20413 SWIG_fail;
20414 if (arg2 == NULL) {
20415 PyErr_SetString(PyExc_TypeError,"null reference");
20416 SWIG_fail;
20417 }
20418 {
20419 PyThreadState* __tstate = wxPyBeginAllowThreads();
20420 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20421
20422 wxPyEndAllowThreads(__tstate);
20423 if (PyErr_Occurred()) SWIG_fail;
20424 }
20425 {
20426 wxDateTime * resultptr;
20427 resultptr = new wxDateTime((wxDateTime &) result);
20428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20429 }
20430 return resultobj;
20431 fail:
20432 return NULL;
20433 }
20434
20435
20436 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20437 PyObject *resultobj;
20438 wxDateTime *arg1 = (wxDateTime *) 0 ;
20439 wxDateSpan *arg2 = 0 ;
20440 wxDateTime result;
20441 PyObject * obj0 = 0 ;
20442 PyObject * obj1 = 0 ;
20443
20444 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20448 SWIG_POINTER_EXCEPTION | 0)) == -1)
20449 SWIG_fail;
20450 if (arg2 == NULL) {
20451 PyErr_SetString(PyExc_TypeError,"null reference");
20452 SWIG_fail;
20453 }
20454 {
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20457
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 {
20462 wxDateTime * resultptr;
20463 resultptr = new wxDateTime((wxDateTime &) result);
20464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20465 }
20466 return resultobj;
20467 fail:
20468 return NULL;
20469 }
20470
20471
20472 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20473 int argc;
20474 PyObject *argv[3];
20475 int ii;
20476
20477 argc = PyObject_Length(args);
20478 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20479 argv[ii] = PyTuple_GetItem(args,ii);
20480 }
20481 if (argc == 2) {
20482 int _v;
20483 {
20484 void *ptr;
20485 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20486 _v = 0;
20487 PyErr_Clear();
20488 } else {
20489 _v = 1;
20490 }
20491 }
20492 if (_v) {
20493 {
20494 void *ptr;
20495 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20496 _v = 0;
20497 PyErr_Clear();
20498 } else {
20499 _v = 1;
20500 }
20501 }
20502 if (_v) {
20503 return _wrap_DateTime___sub____SWIG_0(self,args);
20504 }
20505 }
20506 }
20507 if (argc == 2) {
20508 int _v;
20509 {
20510 void *ptr;
20511 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20512 _v = 0;
20513 PyErr_Clear();
20514 } else {
20515 _v = 1;
20516 }
20517 }
20518 if (_v) {
20519 {
20520 void *ptr;
20521 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20522 _v = 0;
20523 PyErr_Clear();
20524 } else {
20525 _v = 1;
20526 }
20527 }
20528 if (_v) {
20529 return _wrap_DateTime___sub____SWIG_1(self,args);
20530 }
20531 }
20532 }
20533 if (argc == 2) {
20534 int _v;
20535 {
20536 void *ptr;
20537 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20538 _v = 0;
20539 PyErr_Clear();
20540 } else {
20541 _v = 1;
20542 }
20543 }
20544 if (_v) {
20545 {
20546 void *ptr;
20547 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20548 _v = 0;
20549 PyErr_Clear();
20550 } else {
20551 _v = 1;
20552 }
20553 }
20554 if (_v) {
20555 return _wrap_DateTime___sub____SWIG_2(self,args);
20556 }
20557 }
20558 }
20559
20560 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20561 return NULL;
20562 }
20563
20564
20565 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20566 PyObject *resultobj;
20567 wxDateTime *arg1 = (wxDateTime *) 0 ;
20568 wxDateTime *arg2 = (wxDateTime *) 0 ;
20569 bool result;
20570 PyObject * obj0 = 0 ;
20571 PyObject * obj1 = 0 ;
20572
20573 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20576 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20581
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 {
20586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20587 }
20588 return resultobj;
20589 fail:
20590 return NULL;
20591 }
20592
20593
20594 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20595 PyObject *resultobj;
20596 wxDateTime *arg1 = (wxDateTime *) 0 ;
20597 wxDateTime *arg2 = (wxDateTime *) 0 ;
20598 bool result;
20599 PyObject * obj0 = 0 ;
20600 PyObject * obj1 = 0 ;
20601
20602 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20607 {
20608 PyThreadState* __tstate = wxPyBeginAllowThreads();
20609 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20610
20611 wxPyEndAllowThreads(__tstate);
20612 if (PyErr_Occurred()) SWIG_fail;
20613 }
20614 {
20615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20616 }
20617 return resultobj;
20618 fail:
20619 return NULL;
20620 }
20621
20622
20623 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20624 PyObject *resultobj;
20625 wxDateTime *arg1 = (wxDateTime *) 0 ;
20626 wxDateTime *arg2 = (wxDateTime *) 0 ;
20627 bool result;
20628 PyObject * obj0 = 0 ;
20629 PyObject * obj1 = 0 ;
20630
20631 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20634 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20636 {
20637 PyThreadState* __tstate = wxPyBeginAllowThreads();
20638 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20639
20640 wxPyEndAllowThreads(__tstate);
20641 if (PyErr_Occurred()) SWIG_fail;
20642 }
20643 {
20644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20645 }
20646 return resultobj;
20647 fail:
20648 return NULL;
20649 }
20650
20651
20652 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20653 PyObject *resultobj;
20654 wxDateTime *arg1 = (wxDateTime *) 0 ;
20655 wxDateTime *arg2 = (wxDateTime *) 0 ;
20656 bool result;
20657 PyObject * obj0 = 0 ;
20658 PyObject * obj1 = 0 ;
20659
20660 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20663 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20665 {
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20668
20669 wxPyEndAllowThreads(__tstate);
20670 if (PyErr_Occurred()) SWIG_fail;
20671 }
20672 {
20673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20674 }
20675 return resultobj;
20676 fail:
20677 return NULL;
20678 }
20679
20680
20681 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20682 PyObject *resultobj;
20683 wxDateTime *arg1 = (wxDateTime *) 0 ;
20684 wxDateTime *arg2 = (wxDateTime *) 0 ;
20685 bool result;
20686 PyObject * obj0 = 0 ;
20687 PyObject * obj1 = 0 ;
20688
20689 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20694 {
20695 PyThreadState* __tstate = wxPyBeginAllowThreads();
20696 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20697
20698 wxPyEndAllowThreads(__tstate);
20699 if (PyErr_Occurred()) SWIG_fail;
20700 }
20701 {
20702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20703 }
20704 return resultobj;
20705 fail:
20706 return NULL;
20707 }
20708
20709
20710 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20711 PyObject *resultobj;
20712 wxDateTime *arg1 = (wxDateTime *) 0 ;
20713 wxDateTime *arg2 = (wxDateTime *) 0 ;
20714 bool result;
20715 PyObject * obj0 = 0 ;
20716 PyObject * obj1 = 0 ;
20717
20718 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20726
20727 wxPyEndAllowThreads(__tstate);
20728 if (PyErr_Occurred()) SWIG_fail;
20729 }
20730 {
20731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20732 }
20733 return resultobj;
20734 fail:
20735 return NULL;
20736 }
20737
20738
20739 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20740 PyObject *resultobj;
20741 wxDateTime *arg1 = (wxDateTime *) 0 ;
20742 wxString *arg2 = 0 ;
20743 int result;
20744 bool temp2 = False ;
20745 PyObject * obj0 = 0 ;
20746 PyObject * obj1 = 0 ;
20747 char *kwnames[] = {
20748 (char *) "self",(char *) "date", NULL
20749 };
20750
20751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20754 {
20755 arg2 = wxString_in_helper(obj1);
20756 if (arg2 == NULL) SWIG_fail;
20757 temp2 = True;
20758 }
20759 {
20760 PyThreadState* __tstate = wxPyBeginAllowThreads();
20761 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20762
20763 wxPyEndAllowThreads(__tstate);
20764 if (PyErr_Occurred()) SWIG_fail;
20765 }
20766 resultobj = SWIG_FromInt((int)result);
20767 {
20768 if (temp2)
20769 delete arg2;
20770 }
20771 return resultobj;
20772 fail:
20773 {
20774 if (temp2)
20775 delete arg2;
20776 }
20777 return NULL;
20778 }
20779
20780
20781 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj;
20783 wxDateTime *arg1 = (wxDateTime *) 0 ;
20784 wxString *arg2 = 0 ;
20785 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20786 wxString *arg3 = (wxString *) &arg3_defvalue ;
20787 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20788 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20789 int result;
20790 bool temp2 = False ;
20791 bool temp3 = False ;
20792 PyObject * obj0 = 0 ;
20793 PyObject * obj1 = 0 ;
20794 PyObject * obj2 = 0 ;
20795 PyObject * obj3 = 0 ;
20796 char *kwnames[] = {
20797 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20798 };
20799
20800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20803 {
20804 arg2 = wxString_in_helper(obj1);
20805 if (arg2 == NULL) SWIG_fail;
20806 temp2 = True;
20807 }
20808 if (obj2) {
20809 {
20810 arg3 = wxString_in_helper(obj2);
20811 if (arg3 == NULL) SWIG_fail;
20812 temp3 = True;
20813 }
20814 }
20815 if (obj3) {
20816 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20817 SWIG_POINTER_EXCEPTION | 0)) == -1)
20818 SWIG_fail;
20819 if (arg4 == NULL) {
20820 PyErr_SetString(PyExc_TypeError,"null reference");
20821 SWIG_fail;
20822 }
20823 }
20824 {
20825 PyThreadState* __tstate = wxPyBeginAllowThreads();
20826 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20827
20828 wxPyEndAllowThreads(__tstate);
20829 if (PyErr_Occurred()) SWIG_fail;
20830 }
20831 resultobj = SWIG_FromInt((int)result);
20832 {
20833 if (temp2)
20834 delete arg2;
20835 }
20836 {
20837 if (temp3)
20838 delete arg3;
20839 }
20840 return resultobj;
20841 fail:
20842 {
20843 if (temp2)
20844 delete arg2;
20845 }
20846 {
20847 if (temp3)
20848 delete arg3;
20849 }
20850 return NULL;
20851 }
20852
20853
20854 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20855 PyObject *resultobj;
20856 wxDateTime *arg1 = (wxDateTime *) 0 ;
20857 wxString *arg2 = 0 ;
20858 int result;
20859 bool temp2 = False ;
20860 PyObject * obj0 = 0 ;
20861 PyObject * obj1 = 0 ;
20862 char *kwnames[] = {
20863 (char *) "self",(char *) "datetime", NULL
20864 };
20865
20866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20869 {
20870 arg2 = wxString_in_helper(obj1);
20871 if (arg2 == NULL) SWIG_fail;
20872 temp2 = True;
20873 }
20874 {
20875 PyThreadState* __tstate = wxPyBeginAllowThreads();
20876 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20877
20878 wxPyEndAllowThreads(__tstate);
20879 if (PyErr_Occurred()) SWIG_fail;
20880 }
20881 resultobj = SWIG_FromInt((int)result);
20882 {
20883 if (temp2)
20884 delete arg2;
20885 }
20886 return resultobj;
20887 fail:
20888 {
20889 if (temp2)
20890 delete arg2;
20891 }
20892 return NULL;
20893 }
20894
20895
20896 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20897 PyObject *resultobj;
20898 wxDateTime *arg1 = (wxDateTime *) 0 ;
20899 wxString *arg2 = 0 ;
20900 int result;
20901 bool temp2 = False ;
20902 PyObject * obj0 = 0 ;
20903 PyObject * obj1 = 0 ;
20904 char *kwnames[] = {
20905 (char *) "self",(char *) "date", NULL
20906 };
20907
20908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20911 {
20912 arg2 = wxString_in_helper(obj1);
20913 if (arg2 == NULL) SWIG_fail;
20914 temp2 = True;
20915 }
20916 {
20917 PyThreadState* __tstate = wxPyBeginAllowThreads();
20918 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20919
20920 wxPyEndAllowThreads(__tstate);
20921 if (PyErr_Occurred()) SWIG_fail;
20922 }
20923 resultobj = SWIG_FromInt((int)result);
20924 {
20925 if (temp2)
20926 delete arg2;
20927 }
20928 return resultobj;
20929 fail:
20930 {
20931 if (temp2)
20932 delete arg2;
20933 }
20934 return NULL;
20935 }
20936
20937
20938 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20939 PyObject *resultobj;
20940 wxDateTime *arg1 = (wxDateTime *) 0 ;
20941 wxString *arg2 = 0 ;
20942 int result;
20943 bool temp2 = False ;
20944 PyObject * obj0 = 0 ;
20945 PyObject * obj1 = 0 ;
20946 char *kwnames[] = {
20947 (char *) "self",(char *) "time", NULL
20948 };
20949
20950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20953 {
20954 arg2 = wxString_in_helper(obj1);
20955 if (arg2 == NULL) SWIG_fail;
20956 temp2 = True;
20957 }
20958 {
20959 PyThreadState* __tstate = wxPyBeginAllowThreads();
20960 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20961
20962 wxPyEndAllowThreads(__tstate);
20963 if (PyErr_Occurred()) SWIG_fail;
20964 }
20965 resultobj = SWIG_FromInt((int)result);
20966 {
20967 if (temp2)
20968 delete arg2;
20969 }
20970 return resultobj;
20971 fail:
20972 {
20973 if (temp2)
20974 delete arg2;
20975 }
20976 return NULL;
20977 }
20978
20979
20980 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20981 PyObject *resultobj;
20982 wxDateTime *arg1 = (wxDateTime *) 0 ;
20983 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20984 wxString *arg2 = (wxString *) &arg2_defvalue ;
20985 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20986 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20987 wxString result;
20988 bool temp2 = False ;
20989 bool temp3 = False ;
20990 PyObject * obj0 = 0 ;
20991 PyObject * obj1 = 0 ;
20992 PyObject * obj2 = 0 ;
20993 char *kwnames[] = {
20994 (char *) "self",(char *) "format",(char *) "tz", NULL
20995 };
20996
20997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
20998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21000 if (obj1) {
21001 {
21002 arg2 = wxString_in_helper(obj1);
21003 if (arg2 == NULL) SWIG_fail;
21004 temp2 = True;
21005 }
21006 }
21007 if (obj2) {
21008 {
21009 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21010 temp3 = True;
21011 }
21012 }
21013 {
21014 PyThreadState* __tstate = wxPyBeginAllowThreads();
21015 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21016
21017 wxPyEndAllowThreads(__tstate);
21018 if (PyErr_Occurred()) SWIG_fail;
21019 }
21020 {
21021 #if wxUSE_UNICODE
21022 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21023 #else
21024 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21025 #endif
21026 }
21027 {
21028 if (temp2)
21029 delete arg2;
21030 }
21031 {
21032 if (temp3) delete arg3;
21033 }
21034 return resultobj;
21035 fail:
21036 {
21037 if (temp2)
21038 delete arg2;
21039 }
21040 {
21041 if (temp3) delete arg3;
21042 }
21043 return NULL;
21044 }
21045
21046
21047 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21048 PyObject *resultobj;
21049 wxDateTime *arg1 = (wxDateTime *) 0 ;
21050 wxString result;
21051 PyObject * obj0 = 0 ;
21052 char *kwnames[] = {
21053 (char *) "self", NULL
21054 };
21055
21056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21059 {
21060 PyThreadState* __tstate = wxPyBeginAllowThreads();
21061 result = ((wxDateTime const *)arg1)->FormatDate();
21062
21063 wxPyEndAllowThreads(__tstate);
21064 if (PyErr_Occurred()) SWIG_fail;
21065 }
21066 {
21067 #if wxUSE_UNICODE
21068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21069 #else
21070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21071 #endif
21072 }
21073 return resultobj;
21074 fail:
21075 return NULL;
21076 }
21077
21078
21079 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21080 PyObject *resultobj;
21081 wxDateTime *arg1 = (wxDateTime *) 0 ;
21082 wxString result;
21083 PyObject * obj0 = 0 ;
21084 char *kwnames[] = {
21085 (char *) "self", NULL
21086 };
21087
21088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21091 {
21092 PyThreadState* __tstate = wxPyBeginAllowThreads();
21093 result = ((wxDateTime const *)arg1)->FormatTime();
21094
21095 wxPyEndAllowThreads(__tstate);
21096 if (PyErr_Occurred()) SWIG_fail;
21097 }
21098 {
21099 #if wxUSE_UNICODE
21100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21101 #else
21102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21103 #endif
21104 }
21105 return resultobj;
21106 fail:
21107 return NULL;
21108 }
21109
21110
21111 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21112 PyObject *resultobj;
21113 wxDateTime *arg1 = (wxDateTime *) 0 ;
21114 wxString result;
21115 PyObject * obj0 = 0 ;
21116 char *kwnames[] = {
21117 (char *) "self", NULL
21118 };
21119
21120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 result = ((wxDateTime const *)arg1)->FormatISODate();
21126
21127 wxPyEndAllowThreads(__tstate);
21128 if (PyErr_Occurred()) SWIG_fail;
21129 }
21130 {
21131 #if wxUSE_UNICODE
21132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21133 #else
21134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21135 #endif
21136 }
21137 return resultobj;
21138 fail:
21139 return NULL;
21140 }
21141
21142
21143 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21144 PyObject *resultobj;
21145 wxDateTime *arg1 = (wxDateTime *) 0 ;
21146 wxString result;
21147 PyObject * obj0 = 0 ;
21148 char *kwnames[] = {
21149 (char *) "self", NULL
21150 };
21151
21152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21155 {
21156 PyThreadState* __tstate = wxPyBeginAllowThreads();
21157 result = ((wxDateTime const *)arg1)->FormatISOTime();
21158
21159 wxPyEndAllowThreads(__tstate);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 }
21162 {
21163 #if wxUSE_UNICODE
21164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21165 #else
21166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21167 #endif
21168 }
21169 return resultobj;
21170 fail:
21171 return NULL;
21172 }
21173
21174
21175 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21176 PyObject *obj;
21177 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21178 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21179 Py_INCREF(obj);
21180 return Py_BuildValue((char *)"");
21181 }
21182 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21183 PyObject *resultobj;
21184 long arg1 ;
21185 wxTimeSpan result;
21186 PyObject * obj0 = 0 ;
21187 char *kwnames[] = {
21188 (char *) "sec", NULL
21189 };
21190
21191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21192 arg1 = (long) SWIG_AsLong(obj0);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 {
21195 PyThreadState* __tstate = wxPyBeginAllowThreads();
21196 result = wxTimeSpan::Seconds(arg1);
21197
21198 wxPyEndAllowThreads(__tstate);
21199 if (PyErr_Occurred()) SWIG_fail;
21200 }
21201 {
21202 wxTimeSpan * resultptr;
21203 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21204 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21205 }
21206 return resultobj;
21207 fail:
21208 return NULL;
21209 }
21210
21211
21212 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21213 PyObject *resultobj;
21214 wxTimeSpan result;
21215 char *kwnames[] = {
21216 NULL
21217 };
21218
21219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21220 {
21221 PyThreadState* __tstate = wxPyBeginAllowThreads();
21222 result = wxTimeSpan::Second();
21223
21224 wxPyEndAllowThreads(__tstate);
21225 if (PyErr_Occurred()) SWIG_fail;
21226 }
21227 {
21228 wxTimeSpan * resultptr;
21229 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21230 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21231 }
21232 return resultobj;
21233 fail:
21234 return NULL;
21235 }
21236
21237
21238 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21239 PyObject *resultobj;
21240 long arg1 ;
21241 wxTimeSpan result;
21242 PyObject * obj0 = 0 ;
21243 char *kwnames[] = {
21244 (char *) "min", NULL
21245 };
21246
21247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21248 arg1 = (long) SWIG_AsLong(obj0);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 {
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = wxTimeSpan::Minutes(arg1);
21253
21254 wxPyEndAllowThreads(__tstate);
21255 if (PyErr_Occurred()) SWIG_fail;
21256 }
21257 {
21258 wxTimeSpan * resultptr;
21259 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21260 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21261 }
21262 return resultobj;
21263 fail:
21264 return NULL;
21265 }
21266
21267
21268 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21269 PyObject *resultobj;
21270 wxTimeSpan result;
21271 char *kwnames[] = {
21272 NULL
21273 };
21274
21275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21276 {
21277 PyThreadState* __tstate = wxPyBeginAllowThreads();
21278 result = wxTimeSpan::Minute();
21279
21280 wxPyEndAllowThreads(__tstate);
21281 if (PyErr_Occurred()) SWIG_fail;
21282 }
21283 {
21284 wxTimeSpan * resultptr;
21285 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21286 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21287 }
21288 return resultobj;
21289 fail:
21290 return NULL;
21291 }
21292
21293
21294 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21295 PyObject *resultobj;
21296 long arg1 ;
21297 wxTimeSpan result;
21298 PyObject * obj0 = 0 ;
21299 char *kwnames[] = {
21300 (char *) "hours", NULL
21301 };
21302
21303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21304 arg1 = (long) SWIG_AsLong(obj0);
21305 if (PyErr_Occurred()) SWIG_fail;
21306 {
21307 PyThreadState* __tstate = wxPyBeginAllowThreads();
21308 result = wxTimeSpan::Hours(arg1);
21309
21310 wxPyEndAllowThreads(__tstate);
21311 if (PyErr_Occurred()) SWIG_fail;
21312 }
21313 {
21314 wxTimeSpan * resultptr;
21315 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21316 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21317 }
21318 return resultobj;
21319 fail:
21320 return NULL;
21321 }
21322
21323
21324 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21325 PyObject *resultobj;
21326 wxTimeSpan result;
21327 char *kwnames[] = {
21328 NULL
21329 };
21330
21331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21332 {
21333 PyThreadState* __tstate = wxPyBeginAllowThreads();
21334 result = wxTimeSpan::Hour();
21335
21336 wxPyEndAllowThreads(__tstate);
21337 if (PyErr_Occurred()) SWIG_fail;
21338 }
21339 {
21340 wxTimeSpan * resultptr;
21341 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21342 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21343 }
21344 return resultobj;
21345 fail:
21346 return NULL;
21347 }
21348
21349
21350 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21351 PyObject *resultobj;
21352 long arg1 ;
21353 wxTimeSpan result;
21354 PyObject * obj0 = 0 ;
21355 char *kwnames[] = {
21356 (char *) "days", NULL
21357 };
21358
21359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21360 arg1 = (long) SWIG_AsLong(obj0);
21361 if (PyErr_Occurred()) SWIG_fail;
21362 {
21363 PyThreadState* __tstate = wxPyBeginAllowThreads();
21364 result = wxTimeSpan::Days(arg1);
21365
21366 wxPyEndAllowThreads(__tstate);
21367 if (PyErr_Occurred()) SWIG_fail;
21368 }
21369 {
21370 wxTimeSpan * resultptr;
21371 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21373 }
21374 return resultobj;
21375 fail:
21376 return NULL;
21377 }
21378
21379
21380 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21381 PyObject *resultobj;
21382 wxTimeSpan result;
21383 char *kwnames[] = {
21384 NULL
21385 };
21386
21387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 result = wxTimeSpan::Day();
21391
21392 wxPyEndAllowThreads(__tstate);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 }
21395 {
21396 wxTimeSpan * resultptr;
21397 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21398 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21399 }
21400 return resultobj;
21401 fail:
21402 return NULL;
21403 }
21404
21405
21406 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21407 PyObject *resultobj;
21408 long arg1 ;
21409 wxTimeSpan result;
21410 PyObject * obj0 = 0 ;
21411 char *kwnames[] = {
21412 (char *) "days", NULL
21413 };
21414
21415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21416 arg1 = (long) SWIG_AsLong(obj0);
21417 if (PyErr_Occurred()) SWIG_fail;
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 result = wxTimeSpan::Weeks(arg1);
21421
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 {
21426 wxTimeSpan * resultptr;
21427 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21429 }
21430 return resultobj;
21431 fail:
21432 return NULL;
21433 }
21434
21435
21436 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21437 PyObject *resultobj;
21438 wxTimeSpan result;
21439 char *kwnames[] = {
21440 NULL
21441 };
21442
21443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21444 {
21445 PyThreadState* __tstate = wxPyBeginAllowThreads();
21446 result = wxTimeSpan::Week();
21447
21448 wxPyEndAllowThreads(__tstate);
21449 if (PyErr_Occurred()) SWIG_fail;
21450 }
21451 {
21452 wxTimeSpan * resultptr;
21453 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21454 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21455 }
21456 return resultobj;
21457 fail:
21458 return NULL;
21459 }
21460
21461
21462 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21463 PyObject *resultobj;
21464 long arg1 = (long) 0 ;
21465 long arg2 = (long) 0 ;
21466 long arg3 = (long) 0 ;
21467 long arg4 = (long) 0 ;
21468 wxTimeSpan *result;
21469 PyObject * obj0 = 0 ;
21470 PyObject * obj1 = 0 ;
21471 PyObject * obj2 = 0 ;
21472 PyObject * obj3 = 0 ;
21473 char *kwnames[] = {
21474 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21475 };
21476
21477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21478 if (obj0) {
21479 arg1 = (long) SWIG_AsLong(obj0);
21480 if (PyErr_Occurred()) SWIG_fail;
21481 }
21482 if (obj1) {
21483 arg2 = (long) SWIG_AsLong(obj1);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 if (obj2) {
21487 arg3 = (long) SWIG_AsLong(obj2);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 }
21490 if (obj3) {
21491 arg4 = (long) SWIG_AsLong(obj3);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 {
21495 PyThreadState* __tstate = wxPyBeginAllowThreads();
21496 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21497
21498 wxPyEndAllowThreads(__tstate);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 }
21501 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21502 return resultobj;
21503 fail:
21504 return NULL;
21505 }
21506
21507
21508 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21509 PyObject *resultobj;
21510 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21511 PyObject * obj0 = 0 ;
21512 char *kwnames[] = {
21513 (char *) "self", NULL
21514 };
21515
21516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21519 {
21520 PyThreadState* __tstate = wxPyBeginAllowThreads();
21521 delete arg1;
21522
21523 wxPyEndAllowThreads(__tstate);
21524 if (PyErr_Occurred()) SWIG_fail;
21525 }
21526 Py_INCREF(Py_None); resultobj = Py_None;
21527 return resultobj;
21528 fail:
21529 return NULL;
21530 }
21531
21532
21533 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21534 PyObject *resultobj;
21535 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21536 wxTimeSpan *arg2 = 0 ;
21537 wxTimeSpan *result;
21538 PyObject * obj0 = 0 ;
21539 PyObject * obj1 = 0 ;
21540 char *kwnames[] = {
21541 (char *) "self",(char *) "diff", NULL
21542 };
21543
21544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21547 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21548 SWIG_POINTER_EXCEPTION | 0)) == -1)
21549 SWIG_fail;
21550 if (arg2 == NULL) {
21551 PyErr_SetString(PyExc_TypeError,"null reference");
21552 SWIG_fail;
21553 }
21554 {
21555 PyThreadState* __tstate = wxPyBeginAllowThreads();
21556 {
21557 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21558 result = (wxTimeSpan *) &_result_ref;
21559 }
21560
21561 wxPyEndAllowThreads(__tstate);
21562 if (PyErr_Occurred()) SWIG_fail;
21563 }
21564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21565 return resultobj;
21566 fail:
21567 return NULL;
21568 }
21569
21570
21571 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21572 PyObject *resultobj;
21573 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21574 wxTimeSpan *arg2 = 0 ;
21575 wxTimeSpan *result;
21576 PyObject * obj0 = 0 ;
21577 PyObject * obj1 = 0 ;
21578 char *kwnames[] = {
21579 (char *) "self",(char *) "diff", NULL
21580 };
21581
21582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21586 SWIG_POINTER_EXCEPTION | 0)) == -1)
21587 SWIG_fail;
21588 if (arg2 == NULL) {
21589 PyErr_SetString(PyExc_TypeError,"null reference");
21590 SWIG_fail;
21591 }
21592 {
21593 PyThreadState* __tstate = wxPyBeginAllowThreads();
21594 {
21595 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21596 result = (wxTimeSpan *) &_result_ref;
21597 }
21598
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21603 return resultobj;
21604 fail:
21605 return NULL;
21606 }
21607
21608
21609 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21610 PyObject *resultobj;
21611 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21612 int arg2 ;
21613 wxTimeSpan *result;
21614 PyObject * obj0 = 0 ;
21615 PyObject * obj1 = 0 ;
21616 char *kwnames[] = {
21617 (char *) "self",(char *) "n", NULL
21618 };
21619
21620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21623 arg2 = (int) SWIG_AsInt(obj1);
21624 if (PyErr_Occurred()) SWIG_fail;
21625 {
21626 PyThreadState* __tstate = wxPyBeginAllowThreads();
21627 {
21628 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21629 result = (wxTimeSpan *) &_result_ref;
21630 }
21631
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21636 return resultobj;
21637 fail:
21638 return NULL;
21639 }
21640
21641
21642 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21643 PyObject *resultobj;
21644 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21645 wxTimeSpan *result;
21646 PyObject * obj0 = 0 ;
21647 char *kwnames[] = {
21648 (char *) "self", NULL
21649 };
21650
21651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21654 {
21655 PyThreadState* __tstate = wxPyBeginAllowThreads();
21656 {
21657 wxTimeSpan &_result_ref = (arg1)->Neg();
21658 result = (wxTimeSpan *) &_result_ref;
21659 }
21660
21661 wxPyEndAllowThreads(__tstate);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 }
21664 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21665 return resultobj;
21666 fail:
21667 return NULL;
21668 }
21669
21670
21671 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21672 PyObject *resultobj;
21673 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21674 wxTimeSpan result;
21675 PyObject * obj0 = 0 ;
21676 char *kwnames[] = {
21677 (char *) "self", NULL
21678 };
21679
21680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21683 {
21684 PyThreadState* __tstate = wxPyBeginAllowThreads();
21685 result = ((wxTimeSpan const *)arg1)->Abs();
21686
21687 wxPyEndAllowThreads(__tstate);
21688 if (PyErr_Occurred()) SWIG_fail;
21689 }
21690 {
21691 wxTimeSpan * resultptr;
21692 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21693 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21694 }
21695 return resultobj;
21696 fail:
21697 return NULL;
21698 }
21699
21700
21701 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21702 PyObject *resultobj;
21703 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21704 wxTimeSpan *arg2 = 0 ;
21705 wxTimeSpan *result;
21706 PyObject * obj0 = 0 ;
21707 PyObject * obj1 = 0 ;
21708 char *kwnames[] = {
21709 (char *) "self",(char *) "diff", NULL
21710 };
21711
21712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21716 SWIG_POINTER_EXCEPTION | 0)) == -1)
21717 SWIG_fail;
21718 if (arg2 == NULL) {
21719 PyErr_SetString(PyExc_TypeError,"null reference");
21720 SWIG_fail;
21721 }
21722 {
21723 PyThreadState* __tstate = wxPyBeginAllowThreads();
21724 {
21725 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21726 result = (wxTimeSpan *) &_result_ref;
21727 }
21728
21729 wxPyEndAllowThreads(__tstate);
21730 if (PyErr_Occurred()) SWIG_fail;
21731 }
21732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21733 return resultobj;
21734 fail:
21735 return NULL;
21736 }
21737
21738
21739 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21740 PyObject *resultobj;
21741 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21742 wxTimeSpan *arg2 = 0 ;
21743 wxTimeSpan *result;
21744 PyObject * obj0 = 0 ;
21745 PyObject * obj1 = 0 ;
21746 char *kwnames[] = {
21747 (char *) "self",(char *) "diff", NULL
21748 };
21749
21750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21753 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21754 SWIG_POINTER_EXCEPTION | 0)) == -1)
21755 SWIG_fail;
21756 if (arg2 == NULL) {
21757 PyErr_SetString(PyExc_TypeError,"null reference");
21758 SWIG_fail;
21759 }
21760 {
21761 PyThreadState* __tstate = wxPyBeginAllowThreads();
21762 {
21763 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21764 result = (wxTimeSpan *) &_result_ref;
21765 }
21766
21767 wxPyEndAllowThreads(__tstate);
21768 if (PyErr_Occurred()) SWIG_fail;
21769 }
21770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21771 return resultobj;
21772 fail:
21773 return NULL;
21774 }
21775
21776
21777 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21778 PyObject *resultobj;
21779 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21780 int arg2 ;
21781 wxTimeSpan *result;
21782 PyObject * obj0 = 0 ;
21783 PyObject * obj1 = 0 ;
21784 char *kwnames[] = {
21785 (char *) "self",(char *) "n", NULL
21786 };
21787
21788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21791 arg2 = (int) SWIG_AsInt(obj1);
21792 if (PyErr_Occurred()) SWIG_fail;
21793 {
21794 PyThreadState* __tstate = wxPyBeginAllowThreads();
21795 {
21796 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21797 result = (wxTimeSpan *) &_result_ref;
21798 }
21799
21800 wxPyEndAllowThreads(__tstate);
21801 if (PyErr_Occurred()) SWIG_fail;
21802 }
21803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21804 return resultobj;
21805 fail:
21806 return NULL;
21807 }
21808
21809
21810 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21811 PyObject *resultobj;
21812 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21813 wxTimeSpan *result;
21814 PyObject * obj0 = 0 ;
21815 char *kwnames[] = {
21816 (char *) "self", NULL
21817 };
21818
21819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 {
21825 wxTimeSpan &_result_ref = (arg1)->operator -();
21826 result = (wxTimeSpan *) &_result_ref;
21827 }
21828
21829 wxPyEndAllowThreads(__tstate);
21830 if (PyErr_Occurred()) SWIG_fail;
21831 }
21832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21833 return resultobj;
21834 fail:
21835 return NULL;
21836 }
21837
21838
21839 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21840 PyObject *resultobj;
21841 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21842 wxTimeSpan *arg2 = 0 ;
21843 wxTimeSpan result;
21844 PyObject * obj0 = 0 ;
21845 PyObject * obj1 = 0 ;
21846 char *kwnames[] = {
21847 (char *) "self",(char *) "other", NULL
21848 };
21849
21850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21853 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21854 SWIG_POINTER_EXCEPTION | 0)) == -1)
21855 SWIG_fail;
21856 if (arg2 == NULL) {
21857 PyErr_SetString(PyExc_TypeError,"null reference");
21858 SWIG_fail;
21859 }
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21863
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 {
21868 wxTimeSpan * resultptr;
21869 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21871 }
21872 return resultobj;
21873 fail:
21874 return NULL;
21875 }
21876
21877
21878 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj;
21880 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21881 wxTimeSpan *arg2 = 0 ;
21882 wxTimeSpan result;
21883 PyObject * obj0 = 0 ;
21884 PyObject * obj1 = 0 ;
21885 char *kwnames[] = {
21886 (char *) "self",(char *) "other", NULL
21887 };
21888
21889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21893 SWIG_POINTER_EXCEPTION | 0)) == -1)
21894 SWIG_fail;
21895 if (arg2 == NULL) {
21896 PyErr_SetString(PyExc_TypeError,"null reference");
21897 SWIG_fail;
21898 }
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21902
21903 wxPyEndAllowThreads(__tstate);
21904 if (PyErr_Occurred()) SWIG_fail;
21905 }
21906 {
21907 wxTimeSpan * resultptr;
21908 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21909 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21910 }
21911 return resultobj;
21912 fail:
21913 return NULL;
21914 }
21915
21916
21917 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21918 PyObject *resultobj;
21919 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21920 int arg2 ;
21921 wxTimeSpan result;
21922 PyObject * obj0 = 0 ;
21923 PyObject * obj1 = 0 ;
21924 char *kwnames[] = {
21925 (char *) "self",(char *) "n", NULL
21926 };
21927
21928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21931 arg2 = (int) SWIG_AsInt(obj1);
21932 if (PyErr_Occurred()) SWIG_fail;
21933 {
21934 PyThreadState* __tstate = wxPyBeginAllowThreads();
21935 result = wxTimeSpan___mul__(arg1,arg2);
21936
21937 wxPyEndAllowThreads(__tstate);
21938 if (PyErr_Occurred()) SWIG_fail;
21939 }
21940 {
21941 wxTimeSpan * resultptr;
21942 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21943 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21944 }
21945 return resultobj;
21946 fail:
21947 return NULL;
21948 }
21949
21950
21951 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21952 PyObject *resultobj;
21953 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21954 int arg2 ;
21955 wxTimeSpan result;
21956 PyObject * obj0 = 0 ;
21957 PyObject * obj1 = 0 ;
21958 char *kwnames[] = {
21959 (char *) "self",(char *) "n", NULL
21960 };
21961
21962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21965 arg2 = (int) SWIG_AsInt(obj1);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 {
21968 PyThreadState* __tstate = wxPyBeginAllowThreads();
21969 result = wxTimeSpan___rmul__(arg1,arg2);
21970
21971 wxPyEndAllowThreads(__tstate);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 }
21974 {
21975 wxTimeSpan * resultptr;
21976 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21977 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21978 }
21979 return resultobj;
21980 fail:
21981 return NULL;
21982 }
21983
21984
21985 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21986 PyObject *resultobj;
21987 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21988 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21989 bool result;
21990 PyObject * obj0 = 0 ;
21991 PyObject * obj1 = 0 ;
21992 char *kwnames[] = {
21993 (char *) "self",(char *) "other", NULL
21994 };
21995
21996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
21997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21999 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22004
22005 wxPyEndAllowThreads(__tstate);
22006 if (PyErr_Occurred()) SWIG_fail;
22007 }
22008 {
22009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22010 }
22011 return resultobj;
22012 fail:
22013 return NULL;
22014 }
22015
22016
22017 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22018 PyObject *resultobj;
22019 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22020 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22021 bool result;
22022 PyObject * obj0 = 0 ;
22023 PyObject * obj1 = 0 ;
22024 char *kwnames[] = {
22025 (char *) "self",(char *) "other", NULL
22026 };
22027
22028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22033 {
22034 PyThreadState* __tstate = wxPyBeginAllowThreads();
22035 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22036
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 {
22041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22042 }
22043 return resultobj;
22044 fail:
22045 return NULL;
22046 }
22047
22048
22049 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22050 PyObject *resultobj;
22051 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22052 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22053 bool result;
22054 PyObject * obj0 = 0 ;
22055 PyObject * obj1 = 0 ;
22056 char *kwnames[] = {
22057 (char *) "self",(char *) "other", NULL
22058 };
22059
22060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22063 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22065 {
22066 PyThreadState* __tstate = wxPyBeginAllowThreads();
22067 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22068
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 {
22073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22074 }
22075 return resultobj;
22076 fail:
22077 return NULL;
22078 }
22079
22080
22081 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22082 PyObject *resultobj;
22083 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22084 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22085 bool result;
22086 PyObject * obj0 = 0 ;
22087 PyObject * obj1 = 0 ;
22088 char *kwnames[] = {
22089 (char *) "self",(char *) "other", NULL
22090 };
22091
22092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22100
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 {
22105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22106 }
22107 return resultobj;
22108 fail:
22109 return NULL;
22110 }
22111
22112
22113 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22114 PyObject *resultobj;
22115 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22116 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22117 bool result;
22118 PyObject * obj0 = 0 ;
22119 PyObject * obj1 = 0 ;
22120 char *kwnames[] = {
22121 (char *) "self",(char *) "other", NULL
22122 };
22123
22124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22127 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22129 {
22130 PyThreadState* __tstate = wxPyBeginAllowThreads();
22131 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22132
22133 wxPyEndAllowThreads(__tstate);
22134 if (PyErr_Occurred()) SWIG_fail;
22135 }
22136 {
22137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22138 }
22139 return resultobj;
22140 fail:
22141 return NULL;
22142 }
22143
22144
22145 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22146 PyObject *resultobj;
22147 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22148 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22149 bool result;
22150 PyObject * obj0 = 0 ;
22151 PyObject * obj1 = 0 ;
22152 char *kwnames[] = {
22153 (char *) "self",(char *) "other", NULL
22154 };
22155
22156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22159 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22161 {
22162 PyThreadState* __tstate = wxPyBeginAllowThreads();
22163 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22164
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 {
22169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22170 }
22171 return resultobj;
22172 fail:
22173 return NULL;
22174 }
22175
22176
22177 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22178 PyObject *resultobj;
22179 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22180 bool result;
22181 PyObject * obj0 = 0 ;
22182 char *kwnames[] = {
22183 (char *) "self", NULL
22184 };
22185
22186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22189 {
22190 PyThreadState* __tstate = wxPyBeginAllowThreads();
22191 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22192
22193 wxPyEndAllowThreads(__tstate);
22194 if (PyErr_Occurred()) SWIG_fail;
22195 }
22196 {
22197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22198 }
22199 return resultobj;
22200 fail:
22201 return NULL;
22202 }
22203
22204
22205 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22206 PyObject *resultobj;
22207 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22208 bool result;
22209 PyObject * obj0 = 0 ;
22210 char *kwnames[] = {
22211 (char *) "self", NULL
22212 };
22213
22214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22217 {
22218 PyThreadState* __tstate = wxPyBeginAllowThreads();
22219 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22220
22221 wxPyEndAllowThreads(__tstate);
22222 if (PyErr_Occurred()) SWIG_fail;
22223 }
22224 {
22225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22226 }
22227 return resultobj;
22228 fail:
22229 return NULL;
22230 }
22231
22232
22233 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22234 PyObject *resultobj;
22235 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22236 bool result;
22237 PyObject * obj0 = 0 ;
22238 char *kwnames[] = {
22239 (char *) "self", NULL
22240 };
22241
22242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22248
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 {
22253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22254 }
22255 return resultobj;
22256 fail:
22257 return NULL;
22258 }
22259
22260
22261 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22262 PyObject *resultobj;
22263 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22264 wxTimeSpan *arg2 = 0 ;
22265 bool result;
22266 PyObject * obj0 = 0 ;
22267 PyObject * obj1 = 0 ;
22268 char *kwnames[] = {
22269 (char *) "self",(char *) "ts", NULL
22270 };
22271
22272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22276 SWIG_POINTER_EXCEPTION | 0)) == -1)
22277 SWIG_fail;
22278 if (arg2 == NULL) {
22279 PyErr_SetString(PyExc_TypeError,"null reference");
22280 SWIG_fail;
22281 }
22282 {
22283 PyThreadState* __tstate = wxPyBeginAllowThreads();
22284 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22285
22286 wxPyEndAllowThreads(__tstate);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 }
22289 {
22290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22291 }
22292 return resultobj;
22293 fail:
22294 return NULL;
22295 }
22296
22297
22298 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22299 PyObject *resultobj;
22300 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22301 wxTimeSpan *arg2 = 0 ;
22302 bool result;
22303 PyObject * obj0 = 0 ;
22304 PyObject * obj1 = 0 ;
22305 char *kwnames[] = {
22306 (char *) "self",(char *) "ts", NULL
22307 };
22308
22309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22312 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22313 SWIG_POINTER_EXCEPTION | 0)) == -1)
22314 SWIG_fail;
22315 if (arg2 == NULL) {
22316 PyErr_SetString(PyExc_TypeError,"null reference");
22317 SWIG_fail;
22318 }
22319 {
22320 PyThreadState* __tstate = wxPyBeginAllowThreads();
22321 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22322
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 {
22327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22328 }
22329 return resultobj;
22330 fail:
22331 return NULL;
22332 }
22333
22334
22335 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj;
22337 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22338 wxTimeSpan *arg2 = 0 ;
22339 bool result;
22340 PyObject * obj0 = 0 ;
22341 PyObject * obj1 = 0 ;
22342 char *kwnames[] = {
22343 (char *) "self",(char *) "t", NULL
22344 };
22345
22346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22350 SWIG_POINTER_EXCEPTION | 0)) == -1)
22351 SWIG_fail;
22352 if (arg2 == NULL) {
22353 PyErr_SetString(PyExc_TypeError,"null reference");
22354 SWIG_fail;
22355 }
22356 {
22357 PyThreadState* __tstate = wxPyBeginAllowThreads();
22358 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22359
22360 wxPyEndAllowThreads(__tstate);
22361 if (PyErr_Occurred()) SWIG_fail;
22362 }
22363 {
22364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22365 }
22366 return resultobj;
22367 fail:
22368 return NULL;
22369 }
22370
22371
22372 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22373 PyObject *resultobj;
22374 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22375 int result;
22376 PyObject * obj0 = 0 ;
22377 char *kwnames[] = {
22378 (char *) "self", NULL
22379 };
22380
22381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22384 {
22385 PyThreadState* __tstate = wxPyBeginAllowThreads();
22386 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22387
22388 wxPyEndAllowThreads(__tstate);
22389 if (PyErr_Occurred()) SWIG_fail;
22390 }
22391 resultobj = SWIG_FromInt((int)result);
22392 return resultobj;
22393 fail:
22394 return NULL;
22395 }
22396
22397
22398 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22399 PyObject *resultobj;
22400 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22401 int result;
22402 PyObject * obj0 = 0 ;
22403 char *kwnames[] = {
22404 (char *) "self", NULL
22405 };
22406
22407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22413
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 resultobj = SWIG_FromInt((int)result);
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22425 PyObject *resultobj;
22426 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22427 int result;
22428 PyObject * obj0 = 0 ;
22429 char *kwnames[] = {
22430 (char *) "self", NULL
22431 };
22432
22433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22439
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 resultobj = SWIG_FromInt((int)result);
22444 return resultobj;
22445 fail:
22446 return NULL;
22447 }
22448
22449
22450 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22451 PyObject *resultobj;
22452 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22453 int result;
22454 PyObject * obj0 = 0 ;
22455 char *kwnames[] = {
22456 (char *) "self", NULL
22457 };
22458
22459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22465
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 resultobj = SWIG_FromInt((int)result);
22470 return resultobj;
22471 fail:
22472 return NULL;
22473 }
22474
22475
22476 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22477 PyObject *resultobj;
22478 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22479 wxLongLong result;
22480 PyObject * obj0 = 0 ;
22481 char *kwnames[] = {
22482 (char *) "self", NULL
22483 };
22484
22485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22488 {
22489 PyThreadState* __tstate = wxPyBeginAllowThreads();
22490 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22491
22492 wxPyEndAllowThreads(__tstate);
22493 if (PyErr_Occurred()) SWIG_fail;
22494 }
22495 {
22496 PyObject *hi, *lo, *shifter, *shifted;
22497 hi = PyLong_FromLong( (&result)->GetHi() );
22498 lo = PyLong_FromLong( (&result)->GetLo() );
22499 shifter = PyLong_FromLong(32);
22500 shifted = PyNumber_Lshift(hi, shifter);
22501 resultobj = PyNumber_Or(shifted, lo);
22502 Py_DECREF(hi);
22503 Py_DECREF(lo);
22504 Py_DECREF(shifter);
22505 Py_DECREF(shifted);
22506 }
22507 return resultobj;
22508 fail:
22509 return NULL;
22510 }
22511
22512
22513 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22514 PyObject *resultobj;
22515 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22516 wxLongLong result;
22517 PyObject * obj0 = 0 ;
22518 char *kwnames[] = {
22519 (char *) "self", NULL
22520 };
22521
22522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22525 {
22526 PyThreadState* __tstate = wxPyBeginAllowThreads();
22527 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22528
22529 wxPyEndAllowThreads(__tstate);
22530 if (PyErr_Occurred()) SWIG_fail;
22531 }
22532 {
22533 PyObject *hi, *lo, *shifter, *shifted;
22534 hi = PyLong_FromLong( (&result)->GetHi() );
22535 lo = PyLong_FromLong( (&result)->GetLo() );
22536 shifter = PyLong_FromLong(32);
22537 shifted = PyNumber_Lshift(hi, shifter);
22538 resultobj = PyNumber_Or(shifted, lo);
22539 Py_DECREF(hi);
22540 Py_DECREF(lo);
22541 Py_DECREF(shifter);
22542 Py_DECREF(shifted);
22543 }
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj;
22552 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22553 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22554 wxString *arg2 = (wxString *) &arg2_defvalue ;
22555 wxString result;
22556 bool temp2 = False ;
22557 PyObject * obj0 = 0 ;
22558 PyObject * obj1 = 0 ;
22559 char *kwnames[] = {
22560 (char *) "self",(char *) "format", NULL
22561 };
22562
22563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22566 if (obj1) {
22567 {
22568 arg2 = wxString_in_helper(obj1);
22569 if (arg2 == NULL) SWIG_fail;
22570 temp2 = True;
22571 }
22572 }
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22576
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 {
22581 #if wxUSE_UNICODE
22582 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22583 #else
22584 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22585 #endif
22586 }
22587 {
22588 if (temp2)
22589 delete arg2;
22590 }
22591 return resultobj;
22592 fail:
22593 {
22594 if (temp2)
22595 delete arg2;
22596 }
22597 return NULL;
22598 }
22599
22600
22601 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22602 PyObject *obj;
22603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22604 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22605 Py_INCREF(obj);
22606 return Py_BuildValue((char *)"");
22607 }
22608 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22609 PyObject *resultobj;
22610 int arg1 = (int) 0 ;
22611 int arg2 = (int) 0 ;
22612 int arg3 = (int) 0 ;
22613 int arg4 = (int) 0 ;
22614 wxDateSpan *result;
22615 PyObject * obj0 = 0 ;
22616 PyObject * obj1 = 0 ;
22617 PyObject * obj2 = 0 ;
22618 PyObject * obj3 = 0 ;
22619 char *kwnames[] = {
22620 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22621 };
22622
22623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22624 if (obj0) {
22625 arg1 = (int) SWIG_AsInt(obj0);
22626 if (PyErr_Occurred()) SWIG_fail;
22627 }
22628 if (obj1) {
22629 arg2 = (int) SWIG_AsInt(obj1);
22630 if (PyErr_Occurred()) SWIG_fail;
22631 }
22632 if (obj2) {
22633 arg3 = (int) SWIG_AsInt(obj2);
22634 if (PyErr_Occurred()) SWIG_fail;
22635 }
22636 if (obj3) {
22637 arg4 = (int) SWIG_AsInt(obj3);
22638 if (PyErr_Occurred()) SWIG_fail;
22639 }
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22643
22644 wxPyEndAllowThreads(__tstate);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 }
22647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22648 return resultobj;
22649 fail:
22650 return NULL;
22651 }
22652
22653
22654 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22655 PyObject *resultobj;
22656 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22657 PyObject * obj0 = 0 ;
22658 char *kwnames[] = {
22659 (char *) "self", NULL
22660 };
22661
22662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22665 {
22666 PyThreadState* __tstate = wxPyBeginAllowThreads();
22667 delete arg1;
22668
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 Py_INCREF(Py_None); resultobj = Py_None;
22673 return resultobj;
22674 fail:
22675 return NULL;
22676 }
22677
22678
22679 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22680 PyObject *resultobj;
22681 int arg1 ;
22682 wxDateSpan result;
22683 PyObject * obj0 = 0 ;
22684 char *kwnames[] = {
22685 (char *) "days", NULL
22686 };
22687
22688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22689 arg1 = (int) SWIG_AsInt(obj0);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 {
22692 PyThreadState* __tstate = wxPyBeginAllowThreads();
22693 result = wxDateSpan::Days(arg1);
22694
22695 wxPyEndAllowThreads(__tstate);
22696 if (PyErr_Occurred()) SWIG_fail;
22697 }
22698 {
22699 wxDateSpan * resultptr;
22700 resultptr = new wxDateSpan((wxDateSpan &) result);
22701 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22702 }
22703 return resultobj;
22704 fail:
22705 return NULL;
22706 }
22707
22708
22709 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22710 PyObject *resultobj;
22711 wxDateSpan result;
22712 char *kwnames[] = {
22713 NULL
22714 };
22715
22716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22717 {
22718 PyThreadState* __tstate = wxPyBeginAllowThreads();
22719 result = wxDateSpan::Day();
22720
22721 wxPyEndAllowThreads(__tstate);
22722 if (PyErr_Occurred()) SWIG_fail;
22723 }
22724 {
22725 wxDateSpan * resultptr;
22726 resultptr = new wxDateSpan((wxDateSpan &) result);
22727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22728 }
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj;
22737 int arg1 ;
22738 wxDateSpan result;
22739 PyObject * obj0 = 0 ;
22740 char *kwnames[] = {
22741 (char *) "weeks", NULL
22742 };
22743
22744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22745 arg1 = (int) SWIG_AsInt(obj0);
22746 if (PyErr_Occurred()) SWIG_fail;
22747 {
22748 PyThreadState* __tstate = wxPyBeginAllowThreads();
22749 result = wxDateSpan::Weeks(arg1);
22750
22751 wxPyEndAllowThreads(__tstate);
22752 if (PyErr_Occurred()) SWIG_fail;
22753 }
22754 {
22755 wxDateSpan * resultptr;
22756 resultptr = new wxDateSpan((wxDateSpan &) result);
22757 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22758 }
22759 return resultobj;
22760 fail:
22761 return NULL;
22762 }
22763
22764
22765 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22766 PyObject *resultobj;
22767 wxDateSpan result;
22768 char *kwnames[] = {
22769 NULL
22770 };
22771
22772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = wxDateSpan::Week();
22776
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
22780 {
22781 wxDateSpan * resultptr;
22782 resultptr = new wxDateSpan((wxDateSpan &) result);
22783 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22784 }
22785 return resultobj;
22786 fail:
22787 return NULL;
22788 }
22789
22790
22791 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22792 PyObject *resultobj;
22793 int arg1 ;
22794 wxDateSpan result;
22795 PyObject * obj0 = 0 ;
22796 char *kwnames[] = {
22797 (char *) "mon", NULL
22798 };
22799
22800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22801 arg1 = (int) SWIG_AsInt(obj0);
22802 if (PyErr_Occurred()) SWIG_fail;
22803 {
22804 PyThreadState* __tstate = wxPyBeginAllowThreads();
22805 result = wxDateSpan::Months(arg1);
22806
22807 wxPyEndAllowThreads(__tstate);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 {
22811 wxDateSpan * resultptr;
22812 resultptr = new wxDateSpan((wxDateSpan &) result);
22813 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22814 }
22815 return resultobj;
22816 fail:
22817 return NULL;
22818 }
22819
22820
22821 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22822 PyObject *resultobj;
22823 wxDateSpan result;
22824 char *kwnames[] = {
22825 NULL
22826 };
22827
22828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 result = wxDateSpan::Month();
22832
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 {
22837 wxDateSpan * resultptr;
22838 resultptr = new wxDateSpan((wxDateSpan &) result);
22839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22840 }
22841 return resultobj;
22842 fail:
22843 return NULL;
22844 }
22845
22846
22847 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22848 PyObject *resultobj;
22849 int arg1 ;
22850 wxDateSpan result;
22851 PyObject * obj0 = 0 ;
22852 char *kwnames[] = {
22853 (char *) "years", NULL
22854 };
22855
22856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22857 arg1 = (int) SWIG_AsInt(obj0);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 {
22860 PyThreadState* __tstate = wxPyBeginAllowThreads();
22861 result = wxDateSpan::Years(arg1);
22862
22863 wxPyEndAllowThreads(__tstate);
22864 if (PyErr_Occurred()) SWIG_fail;
22865 }
22866 {
22867 wxDateSpan * resultptr;
22868 resultptr = new wxDateSpan((wxDateSpan &) result);
22869 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22870 }
22871 return resultobj;
22872 fail:
22873 return NULL;
22874 }
22875
22876
22877 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22878 PyObject *resultobj;
22879 wxDateSpan result;
22880 char *kwnames[] = {
22881 NULL
22882 };
22883
22884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = wxDateSpan::Year();
22888
22889 wxPyEndAllowThreads(__tstate);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 {
22893 wxDateSpan * resultptr;
22894 resultptr = new wxDateSpan((wxDateSpan &) result);
22895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22896 }
22897 return resultobj;
22898 fail:
22899 return NULL;
22900 }
22901
22902
22903 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22904 PyObject *resultobj;
22905 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22906 int arg2 ;
22907 wxDateSpan *result;
22908 PyObject * obj0 = 0 ;
22909 PyObject * obj1 = 0 ;
22910 char *kwnames[] = {
22911 (char *) "self",(char *) "n", NULL
22912 };
22913
22914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22917 arg2 = (int) SWIG_AsInt(obj1);
22918 if (PyErr_Occurred()) SWIG_fail;
22919 {
22920 PyThreadState* __tstate = wxPyBeginAllowThreads();
22921 {
22922 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22923 result = (wxDateSpan *) &_result_ref;
22924 }
22925
22926 wxPyEndAllowThreads(__tstate);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22930 return resultobj;
22931 fail:
22932 return NULL;
22933 }
22934
22935
22936 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22937 PyObject *resultobj;
22938 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22939 int arg2 ;
22940 wxDateSpan *result;
22941 PyObject * obj0 = 0 ;
22942 PyObject * obj1 = 0 ;
22943 char *kwnames[] = {
22944 (char *) "self",(char *) "n", NULL
22945 };
22946
22947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22950 arg2 = (int) SWIG_AsInt(obj1);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 {
22955 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22956 result = (wxDateSpan *) &_result_ref;
22957 }
22958
22959 wxPyEndAllowThreads(__tstate);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 }
22962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22963 return resultobj;
22964 fail:
22965 return NULL;
22966 }
22967
22968
22969 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22970 PyObject *resultobj;
22971 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22972 int arg2 ;
22973 wxDateSpan *result;
22974 PyObject * obj0 = 0 ;
22975 PyObject * obj1 = 0 ;
22976 char *kwnames[] = {
22977 (char *) "self",(char *) "n", NULL
22978 };
22979
22980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22983 arg2 = (int) SWIG_AsInt(obj1);
22984 if (PyErr_Occurred()) SWIG_fail;
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 {
22988 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22989 result = (wxDateSpan *) &_result_ref;
22990 }
22991
22992 wxPyEndAllowThreads(__tstate);
22993 if (PyErr_Occurred()) SWIG_fail;
22994 }
22995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22996 return resultobj;
22997 fail:
22998 return NULL;
22999 }
23000
23001
23002 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23003 PyObject *resultobj;
23004 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23005 int arg2 ;
23006 wxDateSpan *result;
23007 PyObject * obj0 = 0 ;
23008 PyObject * obj1 = 0 ;
23009 char *kwnames[] = {
23010 (char *) "self",(char *) "n", NULL
23011 };
23012
23013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23016 arg2 = (int) SWIG_AsInt(obj1);
23017 if (PyErr_Occurred()) SWIG_fail;
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 {
23021 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23022 result = (wxDateSpan *) &_result_ref;
23023 }
23024
23025 wxPyEndAllowThreads(__tstate);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 }
23028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23029 return resultobj;
23030 fail:
23031 return NULL;
23032 }
23033
23034
23035 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23036 PyObject *resultobj;
23037 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23038 int result;
23039 PyObject * obj0 = 0 ;
23040 char *kwnames[] = {
23041 (char *) "self", NULL
23042 };
23043
23044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23047 {
23048 PyThreadState* __tstate = wxPyBeginAllowThreads();
23049 result = (int)((wxDateSpan const *)arg1)->GetYears();
23050
23051 wxPyEndAllowThreads(__tstate);
23052 if (PyErr_Occurred()) SWIG_fail;
23053 }
23054 resultobj = SWIG_FromInt((int)result);
23055 return resultobj;
23056 fail:
23057 return NULL;
23058 }
23059
23060
23061 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23062 PyObject *resultobj;
23063 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23064 int result;
23065 PyObject * obj0 = 0 ;
23066 char *kwnames[] = {
23067 (char *) "self", NULL
23068 };
23069
23070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23073 {
23074 PyThreadState* __tstate = wxPyBeginAllowThreads();
23075 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23076
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 resultobj = SWIG_FromInt((int)result);
23081 return resultobj;
23082 fail:
23083 return NULL;
23084 }
23085
23086
23087 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23088 PyObject *resultobj;
23089 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23090 int result;
23091 PyObject * obj0 = 0 ;
23092 char *kwnames[] = {
23093 (char *) "self", NULL
23094 };
23095
23096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23102
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 resultobj = SWIG_FromInt((int)result);
23107 return resultobj;
23108 fail:
23109 return NULL;
23110 }
23111
23112
23113 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23114 PyObject *resultobj;
23115 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23116 int result;
23117 PyObject * obj0 = 0 ;
23118 char *kwnames[] = {
23119 (char *) "self", NULL
23120 };
23121
23122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23125 {
23126 PyThreadState* __tstate = wxPyBeginAllowThreads();
23127 result = (int)((wxDateSpan const *)arg1)->GetDays();
23128
23129 wxPyEndAllowThreads(__tstate);
23130 if (PyErr_Occurred()) SWIG_fail;
23131 }
23132 resultobj = SWIG_FromInt((int)result);
23133 return resultobj;
23134 fail:
23135 return NULL;
23136 }
23137
23138
23139 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23140 PyObject *resultobj;
23141 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23142 int result;
23143 PyObject * obj0 = 0 ;
23144 char *kwnames[] = {
23145 (char *) "self", NULL
23146 };
23147
23148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23151 {
23152 PyThreadState* __tstate = wxPyBeginAllowThreads();
23153 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23154
23155 wxPyEndAllowThreads(__tstate);
23156 if (PyErr_Occurred()) SWIG_fail;
23157 }
23158 resultobj = SWIG_FromInt((int)result);
23159 return resultobj;
23160 fail:
23161 return NULL;
23162 }
23163
23164
23165 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23166 PyObject *resultobj;
23167 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23168 wxDateSpan *arg2 = 0 ;
23169 wxDateSpan *result;
23170 PyObject * obj0 = 0 ;
23171 PyObject * obj1 = 0 ;
23172 char *kwnames[] = {
23173 (char *) "self",(char *) "other", NULL
23174 };
23175
23176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23179 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23180 SWIG_POINTER_EXCEPTION | 0)) == -1)
23181 SWIG_fail;
23182 if (arg2 == NULL) {
23183 PyErr_SetString(PyExc_TypeError,"null reference");
23184 SWIG_fail;
23185 }
23186 {
23187 PyThreadState* __tstate = wxPyBeginAllowThreads();
23188 {
23189 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23190 result = (wxDateSpan *) &_result_ref;
23191 }
23192
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23197 return resultobj;
23198 fail:
23199 return NULL;
23200 }
23201
23202
23203 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23204 PyObject *resultobj;
23205 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23206 wxDateSpan *arg2 = 0 ;
23207 wxDateSpan *result;
23208 PyObject * obj0 = 0 ;
23209 PyObject * obj1 = 0 ;
23210 char *kwnames[] = {
23211 (char *) "self",(char *) "other", NULL
23212 };
23213
23214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23218 SWIG_POINTER_EXCEPTION | 0)) == -1)
23219 SWIG_fail;
23220 if (arg2 == NULL) {
23221 PyErr_SetString(PyExc_TypeError,"null reference");
23222 SWIG_fail;
23223 }
23224 {
23225 PyThreadState* __tstate = wxPyBeginAllowThreads();
23226 {
23227 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23228 result = (wxDateSpan *) &_result_ref;
23229 }
23230
23231 wxPyEndAllowThreads(__tstate);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 }
23234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23235 return resultobj;
23236 fail:
23237 return NULL;
23238 }
23239
23240
23241 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23242 PyObject *resultobj;
23243 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23244 wxDateSpan *result;
23245 PyObject * obj0 = 0 ;
23246 char *kwnames[] = {
23247 (char *) "self", NULL
23248 };
23249
23250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 {
23256 wxDateSpan &_result_ref = (arg1)->Neg();
23257 result = (wxDateSpan *) &_result_ref;
23258 }
23259
23260 wxPyEndAllowThreads(__tstate);
23261 if (PyErr_Occurred()) SWIG_fail;
23262 }
23263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23264 return resultobj;
23265 fail:
23266 return NULL;
23267 }
23268
23269
23270 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23271 PyObject *resultobj;
23272 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23273 int arg2 ;
23274 wxDateSpan *result;
23275 PyObject * obj0 = 0 ;
23276 PyObject * obj1 = 0 ;
23277 char *kwnames[] = {
23278 (char *) "self",(char *) "factor", NULL
23279 };
23280
23281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23284 arg2 = (int) SWIG_AsInt(obj1);
23285 if (PyErr_Occurred()) SWIG_fail;
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 {
23289 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23290 result = (wxDateSpan *) &_result_ref;
23291 }
23292
23293 wxPyEndAllowThreads(__tstate);
23294 if (PyErr_Occurred()) SWIG_fail;
23295 }
23296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23297 return resultobj;
23298 fail:
23299 return NULL;
23300 }
23301
23302
23303 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23304 PyObject *resultobj;
23305 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23306 wxDateSpan *arg2 = 0 ;
23307 wxDateSpan *result;
23308 PyObject * obj0 = 0 ;
23309 PyObject * obj1 = 0 ;
23310 char *kwnames[] = {
23311 (char *) "self",(char *) "other", NULL
23312 };
23313
23314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23318 SWIG_POINTER_EXCEPTION | 0)) == -1)
23319 SWIG_fail;
23320 if (arg2 == NULL) {
23321 PyErr_SetString(PyExc_TypeError,"null reference");
23322 SWIG_fail;
23323 }
23324 {
23325 PyThreadState* __tstate = wxPyBeginAllowThreads();
23326 {
23327 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23328 result = (wxDateSpan *) &_result_ref;
23329 }
23330
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23335 return resultobj;
23336 fail:
23337 return NULL;
23338 }
23339
23340
23341 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23342 PyObject *resultobj;
23343 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23344 wxDateSpan *arg2 = 0 ;
23345 wxDateSpan *result;
23346 PyObject * obj0 = 0 ;
23347 PyObject * obj1 = 0 ;
23348 char *kwnames[] = {
23349 (char *) "self",(char *) "other", NULL
23350 };
23351
23352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23355 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23356 SWIG_POINTER_EXCEPTION | 0)) == -1)
23357 SWIG_fail;
23358 if (arg2 == NULL) {
23359 PyErr_SetString(PyExc_TypeError,"null reference");
23360 SWIG_fail;
23361 }
23362 {
23363 PyThreadState* __tstate = wxPyBeginAllowThreads();
23364 {
23365 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23366 result = (wxDateSpan *) &_result_ref;
23367 }
23368
23369 wxPyEndAllowThreads(__tstate);
23370 if (PyErr_Occurred()) SWIG_fail;
23371 }
23372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23373 return resultobj;
23374 fail:
23375 return NULL;
23376 }
23377
23378
23379 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23380 PyObject *resultobj;
23381 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23382 wxDateSpan *result;
23383 PyObject * obj0 = 0 ;
23384 char *kwnames[] = {
23385 (char *) "self", NULL
23386 };
23387
23388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23391 {
23392 PyThreadState* __tstate = wxPyBeginAllowThreads();
23393 {
23394 wxDateSpan &_result_ref = (arg1)->operator -();
23395 result = (wxDateSpan *) &_result_ref;
23396 }
23397
23398 wxPyEndAllowThreads(__tstate);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 }
23401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23402 return resultobj;
23403 fail:
23404 return NULL;
23405 }
23406
23407
23408 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23409 PyObject *resultobj;
23410 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23411 int arg2 ;
23412 wxDateSpan *result;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 char *kwnames[] = {
23416 (char *) "self",(char *) "factor", NULL
23417 };
23418
23419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23422 arg2 = (int) SWIG_AsInt(obj1);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 {
23425 PyThreadState* __tstate = wxPyBeginAllowThreads();
23426 {
23427 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23428 result = (wxDateSpan *) &_result_ref;
23429 }
23430
23431 wxPyEndAllowThreads(__tstate);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 }
23434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23435 return resultobj;
23436 fail:
23437 return NULL;
23438 }
23439
23440
23441 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23442 PyObject *resultobj;
23443 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23444 wxDateSpan *arg2 = 0 ;
23445 wxDateSpan result;
23446 PyObject * obj0 = 0 ;
23447 PyObject * obj1 = 0 ;
23448 char *kwnames[] = {
23449 (char *) "self",(char *) "other", NULL
23450 };
23451
23452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23456 SWIG_POINTER_EXCEPTION | 0)) == -1)
23457 SWIG_fail;
23458 if (arg2 == NULL) {
23459 PyErr_SetString(PyExc_TypeError,"null reference");
23460 SWIG_fail;
23461 }
23462 {
23463 PyThreadState* __tstate = wxPyBeginAllowThreads();
23464 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23465
23466 wxPyEndAllowThreads(__tstate);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 }
23469 {
23470 wxDateSpan * resultptr;
23471 resultptr = new wxDateSpan((wxDateSpan &) result);
23472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23473 }
23474 return resultobj;
23475 fail:
23476 return NULL;
23477 }
23478
23479
23480 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23481 PyObject *resultobj;
23482 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23483 wxDateSpan *arg2 = 0 ;
23484 wxDateSpan result;
23485 PyObject * obj0 = 0 ;
23486 PyObject * obj1 = 0 ;
23487 char *kwnames[] = {
23488 (char *) "self",(char *) "other", NULL
23489 };
23490
23491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23495 SWIG_POINTER_EXCEPTION | 0)) == -1)
23496 SWIG_fail;
23497 if (arg2 == NULL) {
23498 PyErr_SetString(PyExc_TypeError,"null reference");
23499 SWIG_fail;
23500 }
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23504
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 {
23509 wxDateSpan * resultptr;
23510 resultptr = new wxDateSpan((wxDateSpan &) result);
23511 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23512 }
23513 return resultobj;
23514 fail:
23515 return NULL;
23516 }
23517
23518
23519 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23520 PyObject *resultobj;
23521 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23522 int arg2 ;
23523 wxDateSpan result;
23524 PyObject * obj0 = 0 ;
23525 PyObject * obj1 = 0 ;
23526 char *kwnames[] = {
23527 (char *) "self",(char *) "n", NULL
23528 };
23529
23530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23533 arg2 = (int) SWIG_AsInt(obj1);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 {
23536 PyThreadState* __tstate = wxPyBeginAllowThreads();
23537 result = wxDateSpan___mul__(arg1,arg2);
23538
23539 wxPyEndAllowThreads(__tstate);
23540 if (PyErr_Occurred()) SWIG_fail;
23541 }
23542 {
23543 wxDateSpan * resultptr;
23544 resultptr = new wxDateSpan((wxDateSpan &) result);
23545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23546 }
23547 return resultobj;
23548 fail:
23549 return NULL;
23550 }
23551
23552
23553 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23554 PyObject *resultobj;
23555 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23556 int arg2 ;
23557 wxDateSpan result;
23558 PyObject * obj0 = 0 ;
23559 PyObject * obj1 = 0 ;
23560 char *kwnames[] = {
23561 (char *) "self",(char *) "n", NULL
23562 };
23563
23564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23567 arg2 = (int) SWIG_AsInt(obj1);
23568 if (PyErr_Occurred()) SWIG_fail;
23569 {
23570 PyThreadState* __tstate = wxPyBeginAllowThreads();
23571 result = wxDateSpan___rmul__(arg1,arg2);
23572
23573 wxPyEndAllowThreads(__tstate);
23574 if (PyErr_Occurred()) SWIG_fail;
23575 }
23576 {
23577 wxDateSpan * resultptr;
23578 resultptr = new wxDateSpan((wxDateSpan &) result);
23579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23580 }
23581 return resultobj;
23582 fail:
23583 return NULL;
23584 }
23585
23586
23587 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23588 PyObject *resultobj;
23589 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23590 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23591 bool result;
23592 PyObject * obj0 = 0 ;
23593 PyObject * obj1 = 0 ;
23594 char *kwnames[] = {
23595 (char *) "self",(char *) "other", NULL
23596 };
23597
23598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23603 {
23604 PyThreadState* __tstate = wxPyBeginAllowThreads();
23605 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23606
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 {
23611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23612 }
23613 return resultobj;
23614 fail:
23615 return NULL;
23616 }
23617
23618
23619 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23620 PyObject *resultobj;
23621 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23622 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23623 bool result;
23624 PyObject * obj0 = 0 ;
23625 PyObject * obj1 = 0 ;
23626 char *kwnames[] = {
23627 (char *) "self",(char *) "other", NULL
23628 };
23629
23630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23633 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23635 {
23636 PyThreadState* __tstate = wxPyBeginAllowThreads();
23637 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23638
23639 wxPyEndAllowThreads(__tstate);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 }
23642 {
23643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23644 }
23645 return resultobj;
23646 fail:
23647 return NULL;
23648 }
23649
23650
23651 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23652 PyObject *obj;
23653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23654 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23655 Py_INCREF(obj);
23656 return Py_BuildValue((char *)"");
23657 }
23658 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23659 PyObject *resultobj;
23660 long result;
23661 char *kwnames[] = {
23662 NULL
23663 };
23664
23665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23666 {
23667 PyThreadState* __tstate = wxPyBeginAllowThreads();
23668 result = (long)wxGetLocalTime();
23669
23670 wxPyEndAllowThreads(__tstate);
23671 if (PyErr_Occurred()) SWIG_fail;
23672 }
23673 resultobj = SWIG_FromLong((long)result);
23674 return resultobj;
23675 fail:
23676 return NULL;
23677 }
23678
23679
23680 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23681 PyObject *resultobj;
23682 long result;
23683 char *kwnames[] = {
23684 NULL
23685 };
23686
23687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
23690 result = (long)wxGetUTCTime();
23691
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = SWIG_FromLong((long)result);
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23703 PyObject *resultobj;
23704 long result;
23705 char *kwnames[] = {
23706 NULL
23707 };
23708
23709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23710 {
23711 PyThreadState* __tstate = wxPyBeginAllowThreads();
23712 result = (long)wxGetCurrentTime();
23713
23714 wxPyEndAllowThreads(__tstate);
23715 if (PyErr_Occurred()) SWIG_fail;
23716 }
23717 resultobj = SWIG_FromLong((long)result);
23718 return resultobj;
23719 fail:
23720 return NULL;
23721 }
23722
23723
23724 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23725 PyObject *resultobj;
23726 wxLongLong result;
23727 char *kwnames[] = {
23728 NULL
23729 };
23730
23731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23732 {
23733 PyThreadState* __tstate = wxPyBeginAllowThreads();
23734 result = wxGetLocalTimeMillis();
23735
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 {
23740 PyObject *hi, *lo, *shifter, *shifted;
23741 hi = PyLong_FromLong( (&result)->GetHi() );
23742 lo = PyLong_FromLong( (&result)->GetLo() );
23743 shifter = PyLong_FromLong(32);
23744 shifted = PyNumber_Lshift(hi, shifter);
23745 resultobj = PyNumber_Or(shifted, lo);
23746 Py_DECREF(hi);
23747 Py_DECREF(lo);
23748 Py_DECREF(shifter);
23749 Py_DECREF(shifted);
23750 }
23751 return resultobj;
23752 fail:
23753 return NULL;
23754 }
23755
23756
23757 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23758 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23759 return 1;
23760 }
23761
23762
23763 static PyObject *_wrap_DefaultDateTime_get() {
23764 PyObject *pyobj;
23765
23766 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23767 return pyobj;
23768 }
23769
23770
23771 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23772 PyObject *resultobj;
23773 int arg1 ;
23774 wxDataFormat *result;
23775 PyObject * obj0 = 0 ;
23776 char *kwnames[] = {
23777 (char *) "type", NULL
23778 };
23779
23780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23781 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23782 if (PyErr_Occurred()) SWIG_fail;
23783 {
23784 PyThreadState* __tstate = wxPyBeginAllowThreads();
23785 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23786
23787 wxPyEndAllowThreads(__tstate);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
23790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23791 return resultobj;
23792 fail:
23793 return NULL;
23794 }
23795
23796
23797 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23798 PyObject *resultobj;
23799 wxString *arg1 = 0 ;
23800 wxDataFormat *result;
23801 bool temp1 = False ;
23802 PyObject * obj0 = 0 ;
23803 char *kwnames[] = {
23804 (char *) "format", NULL
23805 };
23806
23807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23808 {
23809 arg1 = wxString_in_helper(obj0);
23810 if (arg1 == NULL) SWIG_fail;
23811 temp1 = True;
23812 }
23813 {
23814 PyThreadState* __tstate = wxPyBeginAllowThreads();
23815 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23816
23817 wxPyEndAllowThreads(__tstate);
23818 if (PyErr_Occurred()) SWIG_fail;
23819 }
23820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23821 {
23822 if (temp1)
23823 delete arg1;
23824 }
23825 return resultobj;
23826 fail:
23827 {
23828 if (temp1)
23829 delete arg1;
23830 }
23831 return NULL;
23832 }
23833
23834
23835 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23836 PyObject *resultobj;
23837 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23838 PyObject * obj0 = 0 ;
23839 char *kwnames[] = {
23840 (char *) "self", NULL
23841 };
23842
23843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23846 {
23847 PyThreadState* __tstate = wxPyBeginAllowThreads();
23848 delete arg1;
23849
23850 wxPyEndAllowThreads(__tstate);
23851 if (PyErr_Occurred()) SWIG_fail;
23852 }
23853 Py_INCREF(Py_None); resultobj = Py_None;
23854 return resultobj;
23855 fail:
23856 return NULL;
23857 }
23858
23859
23860 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23861 PyObject *resultobj;
23862 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23863 int arg2 ;
23864 bool result;
23865 PyObject * obj0 = 0 ;
23866 PyObject * obj1 = 0 ;
23867
23868 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23871 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 {
23874 PyThreadState* __tstate = wxPyBeginAllowThreads();
23875 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23876
23877 wxPyEndAllowThreads(__tstate);
23878 if (PyErr_Occurred()) SWIG_fail;
23879 }
23880 {
23881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23882 }
23883 return resultobj;
23884 fail:
23885 return NULL;
23886 }
23887
23888
23889 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23890 PyObject *resultobj;
23891 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23892 int arg2 ;
23893 bool result;
23894 PyObject * obj0 = 0 ;
23895 PyObject * obj1 = 0 ;
23896
23897 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23900 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23901 if (PyErr_Occurred()) SWIG_fail;
23902 {
23903 PyThreadState* __tstate = wxPyBeginAllowThreads();
23904 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23905
23906 wxPyEndAllowThreads(__tstate);
23907 if (PyErr_Occurred()) SWIG_fail;
23908 }
23909 {
23910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23911 }
23912 return resultobj;
23913 fail:
23914 return NULL;
23915 }
23916
23917
23918 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23919 PyObject *resultobj;
23920 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23921 wxDataFormat *arg2 = 0 ;
23922 bool result;
23923 PyObject * obj0 = 0 ;
23924 PyObject * obj1 = 0 ;
23925
23926 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23930 SWIG_POINTER_EXCEPTION | 0)) == -1)
23931 SWIG_fail;
23932 if (arg2 == NULL) {
23933 PyErr_SetString(PyExc_TypeError,"null reference");
23934 SWIG_fail;
23935 }
23936 {
23937 PyThreadState* __tstate = wxPyBeginAllowThreads();
23938 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23939
23940 wxPyEndAllowThreads(__tstate);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 {
23944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23945 }
23946 return resultobj;
23947 fail:
23948 return NULL;
23949 }
23950
23951
23952 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23953 int argc;
23954 PyObject *argv[3];
23955 int ii;
23956
23957 argc = PyObject_Length(args);
23958 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23959 argv[ii] = PyTuple_GetItem(args,ii);
23960 }
23961 if (argc == 2) {
23962 int _v;
23963 {
23964 void *ptr;
23965 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23966 _v = 0;
23967 PyErr_Clear();
23968 } else {
23969 _v = 1;
23970 }
23971 }
23972 if (_v) {
23973 {
23974 void *ptr;
23975 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23976 _v = 0;
23977 PyErr_Clear();
23978 } else {
23979 _v = 1;
23980 }
23981 }
23982 if (_v) {
23983 return _wrap_DataFormat___eq____SWIG_1(self,args);
23984 }
23985 }
23986 }
23987 if (argc == 2) {
23988 int _v;
23989 {
23990 void *ptr;
23991 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23992 _v = 0;
23993 PyErr_Clear();
23994 } else {
23995 _v = 1;
23996 }
23997 }
23998 if (_v) {
23999 _v = SWIG_CheckInt(argv[1]);
24000 if (_v) {
24001 return _wrap_DataFormat___eq____SWIG_0(self,args);
24002 }
24003 }
24004 }
24005
24006 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24007 return NULL;
24008 }
24009
24010
24011 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24012 PyObject *resultobj;
24013 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24014 wxDataFormat *arg2 = 0 ;
24015 bool result;
24016 PyObject * obj0 = 0 ;
24017 PyObject * obj1 = 0 ;
24018
24019 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24023 SWIG_POINTER_EXCEPTION | 0)) == -1)
24024 SWIG_fail;
24025 if (arg2 == NULL) {
24026 PyErr_SetString(PyExc_TypeError,"null reference");
24027 SWIG_fail;
24028 }
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24032
24033 wxPyEndAllowThreads(__tstate);
24034 if (PyErr_Occurred()) SWIG_fail;
24035 }
24036 {
24037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24038 }
24039 return resultobj;
24040 fail:
24041 return NULL;
24042 }
24043
24044
24045 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24046 int argc;
24047 PyObject *argv[3];
24048 int ii;
24049
24050 argc = PyObject_Length(args);
24051 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24052 argv[ii] = PyTuple_GetItem(args,ii);
24053 }
24054 if (argc == 2) {
24055 int _v;
24056 {
24057 void *ptr;
24058 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24059 _v = 0;
24060 PyErr_Clear();
24061 } else {
24062 _v = 1;
24063 }
24064 }
24065 if (_v) {
24066 {
24067 void *ptr;
24068 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24069 _v = 0;
24070 PyErr_Clear();
24071 } else {
24072 _v = 1;
24073 }
24074 }
24075 if (_v) {
24076 return _wrap_DataFormat___ne____SWIG_1(self,args);
24077 }
24078 }
24079 }
24080 if (argc == 2) {
24081 int _v;
24082 {
24083 void *ptr;
24084 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24085 _v = 0;
24086 PyErr_Clear();
24087 } else {
24088 _v = 1;
24089 }
24090 }
24091 if (_v) {
24092 _v = SWIG_CheckInt(argv[1]);
24093 if (_v) {
24094 return _wrap_DataFormat___ne____SWIG_0(self,args);
24095 }
24096 }
24097 }
24098
24099 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24100 return NULL;
24101 }
24102
24103
24104 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24105 PyObject *resultobj;
24106 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24107 int arg2 ;
24108 PyObject * obj0 = 0 ;
24109 PyObject * obj1 = 0 ;
24110 char *kwnames[] = {
24111 (char *) "self",(char *) "format", NULL
24112 };
24113
24114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24117 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 {
24120 PyThreadState* __tstate = wxPyBeginAllowThreads();
24121 (arg1)->SetType((wxDataFormatId )arg2);
24122
24123 wxPyEndAllowThreads(__tstate);
24124 if (PyErr_Occurred()) SWIG_fail;
24125 }
24126 Py_INCREF(Py_None); resultobj = Py_None;
24127 return resultobj;
24128 fail:
24129 return NULL;
24130 }
24131
24132
24133 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24134 PyObject *resultobj;
24135 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24136 int result;
24137 PyObject * obj0 = 0 ;
24138 char *kwnames[] = {
24139 (char *) "self", NULL
24140 };
24141
24142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24145 {
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 result = (int)((wxDataFormat const *)arg1)->GetType();
24148
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 resultobj = SWIG_FromInt((int)result);
24153 return resultobj;
24154 fail:
24155 return NULL;
24156 }
24157
24158
24159 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24160 PyObject *resultobj;
24161 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24162 wxString result;
24163 PyObject * obj0 = 0 ;
24164 char *kwnames[] = {
24165 (char *) "self", NULL
24166 };
24167
24168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24171 {
24172 PyThreadState* __tstate = wxPyBeginAllowThreads();
24173 result = ((wxDataFormat const *)arg1)->GetId();
24174
24175 wxPyEndAllowThreads(__tstate);
24176 if (PyErr_Occurred()) SWIG_fail;
24177 }
24178 {
24179 #if wxUSE_UNICODE
24180 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24181 #else
24182 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24183 #endif
24184 }
24185 return resultobj;
24186 fail:
24187 return NULL;
24188 }
24189
24190
24191 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24192 PyObject *resultobj;
24193 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24194 wxString *arg2 = 0 ;
24195 bool temp2 = False ;
24196 PyObject * obj0 = 0 ;
24197 PyObject * obj1 = 0 ;
24198 char *kwnames[] = {
24199 (char *) "self",(char *) "format", NULL
24200 };
24201
24202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24205 {
24206 arg2 = wxString_in_helper(obj1);
24207 if (arg2 == NULL) SWIG_fail;
24208 temp2 = True;
24209 }
24210 {
24211 PyThreadState* __tstate = wxPyBeginAllowThreads();
24212 (arg1)->SetId((wxString const &)*arg2);
24213
24214 wxPyEndAllowThreads(__tstate);
24215 if (PyErr_Occurred()) SWIG_fail;
24216 }
24217 Py_INCREF(Py_None); resultobj = Py_None;
24218 {
24219 if (temp2)
24220 delete arg2;
24221 }
24222 return resultobj;
24223 fail:
24224 {
24225 if (temp2)
24226 delete arg2;
24227 }
24228 return NULL;
24229 }
24230
24231
24232 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24233 PyObject *obj;
24234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24235 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24236 Py_INCREF(obj);
24237 return Py_BuildValue((char *)"");
24238 }
24239 static int _wrap_FormatInvalid_set(PyObject *_val) {
24240 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24241 return 1;
24242 }
24243
24244
24245 static PyObject *_wrap_FormatInvalid_get() {
24246 PyObject *pyobj;
24247
24248 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24249 return pyobj;
24250 }
24251
24252
24253 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24254 PyObject *resultobj;
24255 wxDataObject *arg1 = (wxDataObject *) 0 ;
24256 PyObject * obj0 = 0 ;
24257 char *kwnames[] = {
24258 (char *) "self", NULL
24259 };
24260
24261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24264 {
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 delete arg1;
24267
24268 wxPyEndAllowThreads(__tstate);
24269 if (PyErr_Occurred()) SWIG_fail;
24270 }
24271 Py_INCREF(Py_None); resultobj = Py_None;
24272 return resultobj;
24273 fail:
24274 return NULL;
24275 }
24276
24277
24278 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj;
24280 wxDataObject *arg1 = (wxDataObject *) 0 ;
24281 int arg2 = (int) wxDataObject::Get ;
24282 SwigValueWrapper< wxDataFormat > result;
24283 PyObject * obj0 = 0 ;
24284 PyObject * obj1 = 0 ;
24285 char *kwnames[] = {
24286 (char *) "self",(char *) "dir", NULL
24287 };
24288
24289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24292 if (obj1) {
24293 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 {
24297 PyThreadState* __tstate = wxPyBeginAllowThreads();
24298 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24299
24300 wxPyEndAllowThreads(__tstate);
24301 if (PyErr_Occurred()) SWIG_fail;
24302 }
24303 {
24304 wxDataFormat * resultptr;
24305 resultptr = new wxDataFormat((wxDataFormat &) result);
24306 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24307 }
24308 return resultobj;
24309 fail:
24310 return NULL;
24311 }
24312
24313
24314 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24315 PyObject *resultobj;
24316 wxDataObject *arg1 = (wxDataObject *) 0 ;
24317 int arg2 = (int) wxDataObject::Get ;
24318 size_t result;
24319 PyObject * obj0 = 0 ;
24320 PyObject * obj1 = 0 ;
24321 char *kwnames[] = {
24322 (char *) "self",(char *) "dir", NULL
24323 };
24324
24325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24328 if (obj1) {
24329 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24330 if (PyErr_Occurred()) SWIG_fail;
24331 }
24332 {
24333 PyThreadState* __tstate = wxPyBeginAllowThreads();
24334 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24335
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24340 return resultobj;
24341 fail:
24342 return NULL;
24343 }
24344
24345
24346 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24347 PyObject *resultobj;
24348 wxDataObject *arg1 = (wxDataObject *) 0 ;
24349 wxDataFormat *arg2 = 0 ;
24350 int arg3 = (int) wxDataObject::Get ;
24351 bool result;
24352 PyObject * obj0 = 0 ;
24353 PyObject * obj1 = 0 ;
24354 PyObject * obj2 = 0 ;
24355 char *kwnames[] = {
24356 (char *) "self",(char *) "format",(char *) "dir", NULL
24357 };
24358
24359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24363 SWIG_POINTER_EXCEPTION | 0)) == -1)
24364 SWIG_fail;
24365 if (arg2 == NULL) {
24366 PyErr_SetString(PyExc_TypeError,"null reference");
24367 SWIG_fail;
24368 }
24369 if (obj2) {
24370 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 {
24374 PyThreadState* __tstate = wxPyBeginAllowThreads();
24375 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24376
24377 wxPyEndAllowThreads(__tstate);
24378 if (PyErr_Occurred()) SWIG_fail;
24379 }
24380 {
24381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24382 }
24383 return resultobj;
24384 fail:
24385 return NULL;
24386 }
24387
24388
24389 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24390 PyObject *resultobj;
24391 wxDataObject *arg1 = (wxDataObject *) 0 ;
24392 wxDataFormat *arg2 = 0 ;
24393 size_t result;
24394 PyObject * obj0 = 0 ;
24395 PyObject * obj1 = 0 ;
24396 char *kwnames[] = {
24397 (char *) "self",(char *) "format", NULL
24398 };
24399
24400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24403 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24404 SWIG_POINTER_EXCEPTION | 0)) == -1)
24405 SWIG_fail;
24406 if (arg2 == NULL) {
24407 PyErr_SetString(PyExc_TypeError,"null reference");
24408 SWIG_fail;
24409 }
24410 {
24411 PyThreadState* __tstate = wxPyBeginAllowThreads();
24412 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24413
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24418 return resultobj;
24419 fail:
24420 return NULL;
24421 }
24422
24423
24424 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24425 PyObject *resultobj;
24426 wxDataObject *arg1 = (wxDataObject *) 0 ;
24427 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24428 int arg3 = (int) wxDataObject::Get ;
24429 PyObject * obj0 = 0 ;
24430 PyObject * obj1 = 0 ;
24431 PyObject * obj2 = 0 ;
24432 char *kwnames[] = {
24433 (char *) "self",(char *) "formats",(char *) "dir", NULL
24434 };
24435
24436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24441 if (obj2) {
24442 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24443 if (PyErr_Occurred()) SWIG_fail;
24444 }
24445 {
24446 PyThreadState* __tstate = wxPyBeginAllowThreads();
24447 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24448
24449 wxPyEndAllowThreads(__tstate);
24450 if (PyErr_Occurred()) SWIG_fail;
24451 }
24452 Py_INCREF(Py_None); resultobj = Py_None;
24453 return resultobj;
24454 fail:
24455 return NULL;
24456 }
24457
24458
24459 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24460 PyObject *resultobj;
24461 wxDataObject *arg1 = (wxDataObject *) 0 ;
24462 wxDataFormat *arg2 = 0 ;
24463 void *arg3 = (void *) 0 ;
24464 bool result;
24465 PyObject * obj0 = 0 ;
24466 PyObject * obj1 = 0 ;
24467 PyObject * obj2 = 0 ;
24468 char *kwnames[] = {
24469 (char *) "self",(char *) "format",(char *) "buf", NULL
24470 };
24471
24472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24476 SWIG_POINTER_EXCEPTION | 0)) == -1)
24477 SWIG_fail;
24478 if (arg2 == NULL) {
24479 PyErr_SetString(PyExc_TypeError,"null reference");
24480 SWIG_fail;
24481 }
24482 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24483 {
24484 PyThreadState* __tstate = wxPyBeginAllowThreads();
24485 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24486
24487 wxPyEndAllowThreads(__tstate);
24488 if (PyErr_Occurred()) SWIG_fail;
24489 }
24490 {
24491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24492 }
24493 return resultobj;
24494 fail:
24495 return NULL;
24496 }
24497
24498
24499 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24500 PyObject *resultobj;
24501 wxDataObject *arg1 = (wxDataObject *) 0 ;
24502 wxDataFormat *arg2 = 0 ;
24503 size_t arg3 ;
24504 void *arg4 = (void *) 0 ;
24505 bool result;
24506 PyObject * obj0 = 0 ;
24507 PyObject * obj1 = 0 ;
24508 PyObject * obj2 = 0 ;
24509 PyObject * obj3 = 0 ;
24510 char *kwnames[] = {
24511 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24512 };
24513
24514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24518 SWIG_POINTER_EXCEPTION | 0)) == -1)
24519 SWIG_fail;
24520 if (arg2 == NULL) {
24521 PyErr_SetString(PyExc_TypeError,"null reference");
24522 SWIG_fail;
24523 }
24524 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24525 if (PyErr_Occurred()) SWIG_fail;
24526 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24527 {
24528 PyThreadState* __tstate = wxPyBeginAllowThreads();
24529 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24530
24531 wxPyEndAllowThreads(__tstate);
24532 if (PyErr_Occurred()) SWIG_fail;
24533 }
24534 {
24535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24536 }
24537 return resultobj;
24538 fail:
24539 return NULL;
24540 }
24541
24542
24543 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24544 PyObject *obj;
24545 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24546 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24547 Py_INCREF(obj);
24548 return Py_BuildValue((char *)"");
24549 }
24550 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24551 PyObject *resultobj;
24552 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24553 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24554 wxDataObjectSimple *result;
24555 PyObject * obj0 = 0 ;
24556 char *kwnames[] = {
24557 (char *) "format", NULL
24558 };
24559
24560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24561 if (obj0) {
24562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24563 SWIG_POINTER_EXCEPTION | 0)) == -1)
24564 SWIG_fail;
24565 if (arg1 == NULL) {
24566 PyErr_SetString(PyExc_TypeError,"null reference");
24567 SWIG_fail;
24568 }
24569 }
24570 {
24571 PyThreadState* __tstate = wxPyBeginAllowThreads();
24572 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24573
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj;
24586 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24587 wxDataFormat *result;
24588 PyObject * obj0 = 0 ;
24589 char *kwnames[] = {
24590 (char *) "self", NULL
24591 };
24592
24593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 {
24599 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24600 result = (wxDataFormat *) &_result_ref;
24601 }
24602
24603 wxPyEndAllowThreads(__tstate);
24604 if (PyErr_Occurred()) SWIG_fail;
24605 }
24606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24607 return resultobj;
24608 fail:
24609 return NULL;
24610 }
24611
24612
24613 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24614 PyObject *resultobj;
24615 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24616 wxDataFormat *arg2 = 0 ;
24617 PyObject * obj0 = 0 ;
24618 PyObject * obj1 = 0 ;
24619 char *kwnames[] = {
24620 (char *) "self",(char *) "format", NULL
24621 };
24622
24623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24626 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24627 SWIG_POINTER_EXCEPTION | 0)) == -1)
24628 SWIG_fail;
24629 if (arg2 == NULL) {
24630 PyErr_SetString(PyExc_TypeError,"null reference");
24631 SWIG_fail;
24632 }
24633 {
24634 PyThreadState* __tstate = wxPyBeginAllowThreads();
24635 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24636
24637 wxPyEndAllowThreads(__tstate);
24638 if (PyErr_Occurred()) SWIG_fail;
24639 }
24640 Py_INCREF(Py_None); resultobj = Py_None;
24641 return resultobj;
24642 fail:
24643 return NULL;
24644 }
24645
24646
24647 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24648 PyObject *obj;
24649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24650 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24651 Py_INCREF(obj);
24652 return Py_BuildValue((char *)"");
24653 }
24654 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24655 PyObject *resultobj;
24656 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24657 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24658 wxPyDataObjectSimple *result;
24659 PyObject * obj0 = 0 ;
24660 char *kwnames[] = {
24661 (char *) "format", NULL
24662 };
24663
24664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24665 if (obj0) {
24666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24667 SWIG_POINTER_EXCEPTION | 0)) == -1)
24668 SWIG_fail;
24669 if (arg1 == NULL) {
24670 PyErr_SetString(PyExc_TypeError,"null reference");
24671 SWIG_fail;
24672 }
24673 }
24674 {
24675 PyThreadState* __tstate = wxPyBeginAllowThreads();
24676 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24677
24678 wxPyEndAllowThreads(__tstate);
24679 if (PyErr_Occurred()) SWIG_fail;
24680 }
24681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24682 return resultobj;
24683 fail:
24684 return NULL;
24685 }
24686
24687
24688 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj;
24690 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24691 PyObject *arg2 = (PyObject *) 0 ;
24692 PyObject *arg3 = (PyObject *) 0 ;
24693 PyObject * obj0 = 0 ;
24694 PyObject * obj1 = 0 ;
24695 PyObject * obj2 = 0 ;
24696 char *kwnames[] = {
24697 (char *) "self",(char *) "self",(char *) "_class", NULL
24698 };
24699
24700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24703 arg2 = obj1;
24704 arg3 = obj2;
24705 {
24706 PyThreadState* __tstate = wxPyBeginAllowThreads();
24707 (arg1)->_setCallbackInfo(arg2,arg3);
24708
24709 wxPyEndAllowThreads(__tstate);
24710 if (PyErr_Occurred()) SWIG_fail;
24711 }
24712 Py_INCREF(Py_None); resultobj = Py_None;
24713 return resultobj;
24714 fail:
24715 return NULL;
24716 }
24717
24718
24719 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24720 PyObject *obj;
24721 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24722 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24723 Py_INCREF(obj);
24724 return Py_BuildValue((char *)"");
24725 }
24726 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24727 PyObject *resultobj;
24728 wxDataObjectComposite *result;
24729 char *kwnames[] = {
24730 NULL
24731 };
24732
24733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24734 {
24735 PyThreadState* __tstate = wxPyBeginAllowThreads();
24736 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24737
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24742 return resultobj;
24743 fail:
24744 return NULL;
24745 }
24746
24747
24748 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj;
24750 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24751 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24752 int arg3 = (int) False ;
24753 PyObject * obj0 = 0 ;
24754 PyObject * obj1 = 0 ;
24755 PyObject * obj2 = 0 ;
24756 char *kwnames[] = {
24757 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24758 };
24759
24760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24764 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24765 if (obj2) {
24766 arg3 = (int) SWIG_AsInt(obj2);
24767 if (PyErr_Occurred()) SWIG_fail;
24768 }
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 (arg1)->Add(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 * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24784 PyObject *obj;
24785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24786 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24787 Py_INCREF(obj);
24788 return Py_BuildValue((char *)"");
24789 }
24790 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24791 PyObject *resultobj;
24792 wxString const &arg1_defvalue = wxPyEmptyString ;
24793 wxString *arg1 = (wxString *) &arg1_defvalue ;
24794 wxTextDataObject *result;
24795 bool temp1 = False ;
24796 PyObject * obj0 = 0 ;
24797 char *kwnames[] = {
24798 (char *) "text", NULL
24799 };
24800
24801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24802 if (obj0) {
24803 {
24804 arg1 = wxString_in_helper(obj0);
24805 if (arg1 == NULL) SWIG_fail;
24806 temp1 = True;
24807 }
24808 }
24809 {
24810 PyThreadState* __tstate = wxPyBeginAllowThreads();
24811 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24812
24813 wxPyEndAllowThreads(__tstate);
24814 if (PyErr_Occurred()) SWIG_fail;
24815 }
24816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24817 {
24818 if (temp1)
24819 delete arg1;
24820 }
24821 return resultobj;
24822 fail:
24823 {
24824 if (temp1)
24825 delete arg1;
24826 }
24827 return NULL;
24828 }
24829
24830
24831 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24832 PyObject *resultobj;
24833 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24834 size_t result;
24835 PyObject * obj0 = 0 ;
24836 char *kwnames[] = {
24837 (char *) "self", NULL
24838 };
24839
24840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24843 {
24844 PyThreadState* __tstate = wxPyBeginAllowThreads();
24845 result = (size_t)(arg1)->GetTextLength();
24846
24847 wxPyEndAllowThreads(__tstate);
24848 if (PyErr_Occurred()) SWIG_fail;
24849 }
24850 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24851 return resultobj;
24852 fail:
24853 return NULL;
24854 }
24855
24856
24857 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24858 PyObject *resultobj;
24859 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24860 wxString result;
24861 PyObject * obj0 = 0 ;
24862 char *kwnames[] = {
24863 (char *) "self", NULL
24864 };
24865
24866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24869 {
24870 PyThreadState* __tstate = wxPyBeginAllowThreads();
24871 result = (arg1)->GetText();
24872
24873 wxPyEndAllowThreads(__tstate);
24874 if (PyErr_Occurred()) SWIG_fail;
24875 }
24876 {
24877 #if wxUSE_UNICODE
24878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24879 #else
24880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24881 #endif
24882 }
24883 return resultobj;
24884 fail:
24885 return NULL;
24886 }
24887
24888
24889 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24890 PyObject *resultobj;
24891 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24892 wxString *arg2 = 0 ;
24893 bool temp2 = False ;
24894 PyObject * obj0 = 0 ;
24895 PyObject * obj1 = 0 ;
24896 char *kwnames[] = {
24897 (char *) "self",(char *) "text", NULL
24898 };
24899
24900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24903 {
24904 arg2 = wxString_in_helper(obj1);
24905 if (arg2 == NULL) SWIG_fail;
24906 temp2 = True;
24907 }
24908 {
24909 PyThreadState* __tstate = wxPyBeginAllowThreads();
24910 (arg1)->SetText((wxString const &)*arg2);
24911
24912 wxPyEndAllowThreads(__tstate);
24913 if (PyErr_Occurred()) SWIG_fail;
24914 }
24915 Py_INCREF(Py_None); resultobj = Py_None;
24916 {
24917 if (temp2)
24918 delete arg2;
24919 }
24920 return resultobj;
24921 fail:
24922 {
24923 if (temp2)
24924 delete arg2;
24925 }
24926 return NULL;
24927 }
24928
24929
24930 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24931 PyObject *obj;
24932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24933 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24934 Py_INCREF(obj);
24935 return Py_BuildValue((char *)"");
24936 }
24937 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24938 PyObject *resultobj;
24939 wxString const &arg1_defvalue = wxPyEmptyString ;
24940 wxString *arg1 = (wxString *) &arg1_defvalue ;
24941 wxPyTextDataObject *result;
24942 bool temp1 = False ;
24943 PyObject * obj0 = 0 ;
24944 char *kwnames[] = {
24945 (char *) "text", NULL
24946 };
24947
24948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24949 if (obj0) {
24950 {
24951 arg1 = wxString_in_helper(obj0);
24952 if (arg1 == NULL) SWIG_fail;
24953 temp1 = True;
24954 }
24955 }
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24959
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24964 {
24965 if (temp1)
24966 delete arg1;
24967 }
24968 return resultobj;
24969 fail:
24970 {
24971 if (temp1)
24972 delete arg1;
24973 }
24974 return NULL;
24975 }
24976
24977
24978 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24979 PyObject *resultobj;
24980 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24981 PyObject *arg2 = (PyObject *) 0 ;
24982 PyObject *arg3 = (PyObject *) 0 ;
24983 PyObject * obj0 = 0 ;
24984 PyObject * obj1 = 0 ;
24985 PyObject * obj2 = 0 ;
24986 char *kwnames[] = {
24987 (char *) "self",(char *) "self",(char *) "_class", NULL
24988 };
24989
24990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
24992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24993 arg2 = obj1;
24994 arg3 = obj2;
24995 {
24996 PyThreadState* __tstate = wxPyBeginAllowThreads();
24997 (arg1)->_setCallbackInfo(arg2,arg3);
24998
24999 wxPyEndAllowThreads(__tstate);
25000 if (PyErr_Occurred()) SWIG_fail;
25001 }
25002 Py_INCREF(Py_None); resultobj = Py_None;
25003 return resultobj;
25004 fail:
25005 return NULL;
25006 }
25007
25008
25009 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25010 PyObject *obj;
25011 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25012 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25013 Py_INCREF(obj);
25014 return Py_BuildValue((char *)"");
25015 }
25016 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25017 PyObject *resultobj;
25018 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25019 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25020 wxBitmapDataObject *result;
25021 PyObject * obj0 = 0 ;
25022 char *kwnames[] = {
25023 (char *) "bitmap", NULL
25024 };
25025
25026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25027 if (obj0) {
25028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25029 SWIG_POINTER_EXCEPTION | 0)) == -1)
25030 SWIG_fail;
25031 if (arg1 == NULL) {
25032 PyErr_SetString(PyExc_TypeError,"null reference");
25033 SWIG_fail;
25034 }
25035 }
25036 {
25037 PyThreadState* __tstate = wxPyBeginAllowThreads();
25038 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25039
25040 wxPyEndAllowThreads(__tstate);
25041 if (PyErr_Occurred()) SWIG_fail;
25042 }
25043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25044 return resultobj;
25045 fail:
25046 return NULL;
25047 }
25048
25049
25050 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25051 PyObject *resultobj;
25052 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25053 wxBitmap result;
25054 PyObject * obj0 = 0 ;
25055 char *kwnames[] = {
25056 (char *) "self", NULL
25057 };
25058
25059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25062 {
25063 PyThreadState* __tstate = wxPyBeginAllowThreads();
25064 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25065
25066 wxPyEndAllowThreads(__tstate);
25067 if (PyErr_Occurred()) SWIG_fail;
25068 }
25069 {
25070 wxBitmap * resultptr;
25071 resultptr = new wxBitmap((wxBitmap &) result);
25072 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25073 }
25074 return resultobj;
25075 fail:
25076 return NULL;
25077 }
25078
25079
25080 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj;
25082 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25083 wxBitmap *arg2 = 0 ;
25084 PyObject * obj0 = 0 ;
25085 PyObject * obj1 = 0 ;
25086 char *kwnames[] = {
25087 (char *) "self",(char *) "bitmap", NULL
25088 };
25089
25090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25093 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25094 SWIG_POINTER_EXCEPTION | 0)) == -1)
25095 SWIG_fail;
25096 if (arg2 == NULL) {
25097 PyErr_SetString(PyExc_TypeError,"null reference");
25098 SWIG_fail;
25099 }
25100 {
25101 PyThreadState* __tstate = wxPyBeginAllowThreads();
25102 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25103
25104 wxPyEndAllowThreads(__tstate);
25105 if (PyErr_Occurred()) SWIG_fail;
25106 }
25107 Py_INCREF(Py_None); resultobj = Py_None;
25108 return resultobj;
25109 fail:
25110 return NULL;
25111 }
25112
25113
25114 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25115 PyObject *obj;
25116 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25117 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25118 Py_INCREF(obj);
25119 return Py_BuildValue((char *)"");
25120 }
25121 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25122 PyObject *resultobj;
25123 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25124 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25125 wxPyBitmapDataObject *result;
25126 PyObject * obj0 = 0 ;
25127 char *kwnames[] = {
25128 (char *) "bitmap", NULL
25129 };
25130
25131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25132 if (obj0) {
25133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25134 SWIG_POINTER_EXCEPTION | 0)) == -1)
25135 SWIG_fail;
25136 if (arg1 == NULL) {
25137 PyErr_SetString(PyExc_TypeError,"null reference");
25138 SWIG_fail;
25139 }
25140 }
25141 {
25142 PyThreadState* __tstate = wxPyBeginAllowThreads();
25143 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25144
25145 wxPyEndAllowThreads(__tstate);
25146 if (PyErr_Occurred()) SWIG_fail;
25147 }
25148 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25149 return resultobj;
25150 fail:
25151 return NULL;
25152 }
25153
25154
25155 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25156 PyObject *resultobj;
25157 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25158 PyObject *arg2 = (PyObject *) 0 ;
25159 PyObject *arg3 = (PyObject *) 0 ;
25160 PyObject * obj0 = 0 ;
25161 PyObject * obj1 = 0 ;
25162 PyObject * obj2 = 0 ;
25163 char *kwnames[] = {
25164 (char *) "self",(char *) "self",(char *) "_class", NULL
25165 };
25166
25167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25170 arg2 = obj1;
25171 arg3 = obj2;
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 (arg1)->_setCallbackInfo(arg2,arg3);
25175
25176 wxPyEndAllowThreads(__tstate);
25177 if (PyErr_Occurred()) SWIG_fail;
25178 }
25179 Py_INCREF(Py_None); resultobj = Py_None;
25180 return resultobj;
25181 fail:
25182 return NULL;
25183 }
25184
25185
25186 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25187 PyObject *obj;
25188 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25189 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25190 Py_INCREF(obj);
25191 return Py_BuildValue((char *)"");
25192 }
25193 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj;
25195 wxFileDataObject *result;
25196 char *kwnames[] = {
25197 NULL
25198 };
25199
25200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25201 {
25202 PyThreadState* __tstate = wxPyBeginAllowThreads();
25203 result = (wxFileDataObject *)new wxFileDataObject();
25204
25205 wxPyEndAllowThreads(__tstate);
25206 if (PyErr_Occurred()) SWIG_fail;
25207 }
25208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25209 return resultobj;
25210 fail:
25211 return NULL;
25212 }
25213
25214
25215 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25216 PyObject *resultobj;
25217 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25218 wxArrayString *result;
25219 PyObject * obj0 = 0 ;
25220 char *kwnames[] = {
25221 (char *) "self", NULL
25222 };
25223
25224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25227 {
25228 PyThreadState* __tstate = wxPyBeginAllowThreads();
25229 {
25230 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25231 result = (wxArrayString *) &_result_ref;
25232 }
25233
25234 wxPyEndAllowThreads(__tstate);
25235 if (PyErr_Occurred()) SWIG_fail;
25236 }
25237 {
25238 resultobj = wxArrayString2PyList_helper(*result);
25239 }
25240 return resultobj;
25241 fail:
25242 return NULL;
25243 }
25244
25245
25246 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25247 PyObject *resultobj;
25248 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25249 wxString *arg2 = 0 ;
25250 bool temp2 = False ;
25251 PyObject * obj0 = 0 ;
25252 PyObject * obj1 = 0 ;
25253 char *kwnames[] = {
25254 (char *) "self",(char *) "filename", NULL
25255 };
25256
25257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25260 {
25261 arg2 = wxString_in_helper(obj1);
25262 if (arg2 == NULL) SWIG_fail;
25263 temp2 = True;
25264 }
25265 {
25266 PyThreadState* __tstate = wxPyBeginAllowThreads();
25267 (arg1)->AddFile((wxString const &)*arg2);
25268
25269 wxPyEndAllowThreads(__tstate);
25270 if (PyErr_Occurred()) SWIG_fail;
25271 }
25272 Py_INCREF(Py_None); resultobj = Py_None;
25273 {
25274 if (temp2)
25275 delete arg2;
25276 }
25277 return resultobj;
25278 fail:
25279 {
25280 if (temp2)
25281 delete arg2;
25282 }
25283 return NULL;
25284 }
25285
25286
25287 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25288 PyObject *obj;
25289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25290 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25291 Py_INCREF(obj);
25292 return Py_BuildValue((char *)"");
25293 }
25294 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25295 PyObject *resultobj;
25296 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25297 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25298 wxCustomDataObject *result;
25299 PyObject * obj0 = 0 ;
25300 char *kwnames[] = {
25301 (char *) "format", NULL
25302 };
25303
25304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25305 if (obj0) {
25306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25307 SWIG_POINTER_EXCEPTION | 0)) == -1)
25308 SWIG_fail;
25309 if (arg1 == NULL) {
25310 PyErr_SetString(PyExc_TypeError,"null reference");
25311 SWIG_fail;
25312 }
25313 }
25314 {
25315 PyThreadState* __tstate = wxPyBeginAllowThreads();
25316 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25317
25318 wxPyEndAllowThreads(__tstate);
25319 if (PyErr_Occurred()) SWIG_fail;
25320 }
25321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25322 return resultobj;
25323 fail:
25324 return NULL;
25325 }
25326
25327
25328 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
25329 PyObject *resultobj;
25330 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25331 PyObject *arg2 = (PyObject *) 0 ;
25332 PyObject * obj0 = 0 ;
25333 PyObject * obj1 = 0 ;
25334 char *kwnames[] = {
25335 (char *) "self",(char *) "data", NULL
25336 };
25337
25338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25341 arg2 = obj1;
25342 {
25343 PyThreadState* __tstate = wxPyBeginAllowThreads();
25344 wxCustomDataObject_TakeData(arg1,arg2);
25345
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 Py_INCREF(Py_None); resultobj = Py_None;
25350 return resultobj;
25351 fail:
25352 return NULL;
25353 }
25354
25355
25356 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25357 PyObject *resultobj;
25358 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25359 PyObject *arg2 = (PyObject *) 0 ;
25360 bool result;
25361 PyObject * obj0 = 0 ;
25362 PyObject * obj1 = 0 ;
25363 char *kwnames[] = {
25364 (char *) "self",(char *) "data", NULL
25365 };
25366
25367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25370 arg2 = obj1;
25371 {
25372 PyThreadState* __tstate = wxPyBeginAllowThreads();
25373 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25374
25375 wxPyEndAllowThreads(__tstate);
25376 if (PyErr_Occurred()) SWIG_fail;
25377 }
25378 {
25379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25380 }
25381 return resultobj;
25382 fail:
25383 return NULL;
25384 }
25385
25386
25387 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25388 PyObject *resultobj;
25389 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25390 size_t result;
25391 PyObject * obj0 = 0 ;
25392 char *kwnames[] = {
25393 (char *) "self", NULL
25394 };
25395
25396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25399 {
25400 PyThreadState* __tstate = wxPyBeginAllowThreads();
25401 result = (size_t)(arg1)->GetSize();
25402
25403 wxPyEndAllowThreads(__tstate);
25404 if (PyErr_Occurred()) SWIG_fail;
25405 }
25406 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25407 return resultobj;
25408 fail:
25409 return NULL;
25410 }
25411
25412
25413 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25414 PyObject *resultobj;
25415 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25416 PyObject *result;
25417 PyObject * obj0 = 0 ;
25418 char *kwnames[] = {
25419 (char *) "self", NULL
25420 };
25421
25422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25425 {
25426 PyThreadState* __tstate = wxPyBeginAllowThreads();
25427 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25428
25429 wxPyEndAllowThreads(__tstate);
25430 if (PyErr_Occurred()) SWIG_fail;
25431 }
25432 resultobj = result;
25433 return resultobj;
25434 fail:
25435 return NULL;
25436 }
25437
25438
25439 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25440 PyObject *obj;
25441 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25442 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25443 Py_INCREF(obj);
25444 return Py_BuildValue((char *)"");
25445 }
25446 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25447 PyObject *resultobj;
25448 wxURLDataObject *result;
25449 char *kwnames[] = {
25450 NULL
25451 };
25452
25453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 result = (wxURLDataObject *)new wxURLDataObject();
25457
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25462 return resultobj;
25463 fail:
25464 return NULL;
25465 }
25466
25467
25468 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj;
25470 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25471 wxString result;
25472 PyObject * obj0 = 0 ;
25473 char *kwnames[] = {
25474 (char *) "self", NULL
25475 };
25476
25477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25480 {
25481 PyThreadState* __tstate = wxPyBeginAllowThreads();
25482 result = (arg1)->GetURL();
25483
25484 wxPyEndAllowThreads(__tstate);
25485 if (PyErr_Occurred()) SWIG_fail;
25486 }
25487 {
25488 #if wxUSE_UNICODE
25489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25490 #else
25491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25492 #endif
25493 }
25494 return resultobj;
25495 fail:
25496 return NULL;
25497 }
25498
25499
25500 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25501 PyObject *resultobj;
25502 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25503 wxString *arg2 = 0 ;
25504 bool temp2 = False ;
25505 PyObject * obj0 = 0 ;
25506 PyObject * obj1 = 0 ;
25507 char *kwnames[] = {
25508 (char *) "self",(char *) "url", NULL
25509 };
25510
25511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25514 {
25515 arg2 = wxString_in_helper(obj1);
25516 if (arg2 == NULL) SWIG_fail;
25517 temp2 = True;
25518 }
25519 {
25520 PyThreadState* __tstate = wxPyBeginAllowThreads();
25521 (arg1)->SetURL((wxString const &)*arg2);
25522
25523 wxPyEndAllowThreads(__tstate);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 Py_INCREF(Py_None); resultobj = Py_None;
25527 {
25528 if (temp2)
25529 delete arg2;
25530 }
25531 return resultobj;
25532 fail:
25533 {
25534 if (temp2)
25535 delete arg2;
25536 }
25537 return NULL;
25538 }
25539
25540
25541 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25542 PyObject *obj;
25543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25544 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25545 Py_INCREF(obj);
25546 return Py_BuildValue((char *)"");
25547 }
25548 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25549 PyObject *resultobj;
25550 wxMetafileDataObject *result;
25551 char *kwnames[] = {
25552 NULL
25553 };
25554
25555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25556 {
25557 PyThreadState* __tstate = wxPyBeginAllowThreads();
25558 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25559
25560 wxPyEndAllowThreads(__tstate);
25561 if (PyErr_Occurred()) SWIG_fail;
25562 }
25563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25564 return resultobj;
25565 fail:
25566 return NULL;
25567 }
25568
25569
25570 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25571 PyObject *resultobj;
25572 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25573 wxMetafile *arg2 = 0 ;
25574 PyObject * obj0 = 0 ;
25575 PyObject * obj1 = 0 ;
25576 char *kwnames[] = {
25577 (char *) "self",(char *) "metafile", NULL
25578 };
25579
25580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25583 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25584 SWIG_POINTER_EXCEPTION | 0)) == -1)
25585 SWIG_fail;
25586 if (arg2 == NULL) {
25587 PyErr_SetString(PyExc_TypeError,"null reference");
25588 SWIG_fail;
25589 }
25590 {
25591 PyThreadState* __tstate = wxPyBeginAllowThreads();
25592 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25593
25594 wxPyEndAllowThreads(__tstate);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 Py_INCREF(Py_None); resultobj = Py_None;
25598 return resultobj;
25599 fail:
25600 return NULL;
25601 }
25602
25603
25604 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25605 PyObject *resultobj;
25606 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25607 wxMetafile result;
25608 PyObject * obj0 = 0 ;
25609 char *kwnames[] = {
25610 (char *) "self", NULL
25611 };
25612
25613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25616 {
25617 PyThreadState* __tstate = wxPyBeginAllowThreads();
25618 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25619
25620 wxPyEndAllowThreads(__tstate);
25621 if (PyErr_Occurred()) SWIG_fail;
25622 }
25623 {
25624 wxMetafile * resultptr;
25625 resultptr = new wxMetafile((wxMetafile &) result);
25626 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25627 }
25628 return resultobj;
25629 fail:
25630 return NULL;
25631 }
25632
25633
25634 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25635 PyObject *obj;
25636 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25637 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25638 Py_INCREF(obj);
25639 return Py_BuildValue((char *)"");
25640 }
25641 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25642 PyObject *resultobj;
25643 int arg1 ;
25644 bool result;
25645 PyObject * obj0 = 0 ;
25646 char *kwnames[] = {
25647 (char *) "res", NULL
25648 };
25649
25650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25651 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25652 if (PyErr_Occurred()) SWIG_fail;
25653 {
25654 PyThreadState* __tstate = wxPyBeginAllowThreads();
25655 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25656
25657 wxPyEndAllowThreads(__tstate);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
25660 {
25661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25662 }
25663 return resultobj;
25664 fail:
25665 return NULL;
25666 }
25667
25668
25669 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25670 PyObject *resultobj;
25671 wxWindow *arg1 = (wxWindow *) 0 ;
25672 wxCursor const &arg2_defvalue = wxNullCursor ;
25673 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25674 wxCursor const &arg3_defvalue = wxNullCursor ;
25675 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25676 wxCursor const &arg4_defvalue = wxNullCursor ;
25677 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25678 wxPyDropSource *result;
25679 PyObject * obj0 = 0 ;
25680 PyObject * obj1 = 0 ;
25681 PyObject * obj2 = 0 ;
25682 PyObject * obj3 = 0 ;
25683 char *kwnames[] = {
25684 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25685 };
25686
25687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25690 if (obj1) {
25691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25692 SWIG_POINTER_EXCEPTION | 0)) == -1)
25693 SWIG_fail;
25694 if (arg2 == NULL) {
25695 PyErr_SetString(PyExc_TypeError,"null reference");
25696 SWIG_fail;
25697 }
25698 }
25699 if (obj2) {
25700 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25701 SWIG_POINTER_EXCEPTION | 0)) == -1)
25702 SWIG_fail;
25703 if (arg3 == NULL) {
25704 PyErr_SetString(PyExc_TypeError,"null reference");
25705 SWIG_fail;
25706 }
25707 }
25708 if (obj3) {
25709 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25710 SWIG_POINTER_EXCEPTION | 0)) == -1)
25711 SWIG_fail;
25712 if (arg4 == NULL) {
25713 PyErr_SetString(PyExc_TypeError,"null reference");
25714 SWIG_fail;
25715 }
25716 }
25717 {
25718 PyThreadState* __tstate = wxPyBeginAllowThreads();
25719 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25720
25721 wxPyEndAllowThreads(__tstate);
25722 if (PyErr_Occurred()) SWIG_fail;
25723 }
25724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25725 return resultobj;
25726 fail:
25727 return NULL;
25728 }
25729
25730
25731 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25732 PyObject *resultobj;
25733 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25734 PyObject *arg2 = (PyObject *) 0 ;
25735 PyObject *arg3 = (PyObject *) 0 ;
25736 int arg4 ;
25737 PyObject * obj0 = 0 ;
25738 PyObject * obj1 = 0 ;
25739 PyObject * obj2 = 0 ;
25740 PyObject * obj3 = 0 ;
25741 char *kwnames[] = {
25742 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25743 };
25744
25745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25748 arg2 = obj1;
25749 arg3 = obj2;
25750 arg4 = (int) SWIG_AsInt(obj3);
25751 if (PyErr_Occurred()) SWIG_fail;
25752 {
25753 PyThreadState* __tstate = wxPyBeginAllowThreads();
25754 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25755
25756 wxPyEndAllowThreads(__tstate);
25757 if (PyErr_Occurred()) SWIG_fail;
25758 }
25759 Py_INCREF(Py_None); resultobj = Py_None;
25760 return resultobj;
25761 fail:
25762 return NULL;
25763 }
25764
25765
25766 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25767 PyObject *resultobj;
25768 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25769 PyObject * obj0 = 0 ;
25770 char *kwnames[] = {
25771 (char *) "self", NULL
25772 };
25773
25774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25777 {
25778 PyThreadState* __tstate = wxPyBeginAllowThreads();
25779 delete arg1;
25780
25781 wxPyEndAllowThreads(__tstate);
25782 if (PyErr_Occurred()) SWIG_fail;
25783 }
25784 Py_INCREF(Py_None); resultobj = Py_None;
25785 return resultobj;
25786 fail:
25787 return NULL;
25788 }
25789
25790
25791 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25792 PyObject *resultobj;
25793 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25794 wxDataObject *arg2 = 0 ;
25795 PyObject * obj0 = 0 ;
25796 PyObject * obj1 = 0 ;
25797 char *kwnames[] = {
25798 (char *) "self",(char *) "data", NULL
25799 };
25800
25801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25805 SWIG_POINTER_EXCEPTION | 0)) == -1)
25806 SWIG_fail;
25807 if (arg2 == NULL) {
25808 PyErr_SetString(PyExc_TypeError,"null reference");
25809 SWIG_fail;
25810 }
25811 {
25812 PyThreadState* __tstate = wxPyBeginAllowThreads();
25813 (arg1)->SetData(*arg2);
25814
25815 wxPyEndAllowThreads(__tstate);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 Py_INCREF(Py_None); resultobj = Py_None;
25819 return resultobj;
25820 fail:
25821 return NULL;
25822 }
25823
25824
25825 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25826 PyObject *resultobj;
25827 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25828 wxDataObject *result;
25829 PyObject * obj0 = 0 ;
25830 char *kwnames[] = {
25831 (char *) "self", NULL
25832 };
25833
25834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 result = (wxDataObject *)(arg1)->GetDataObject();
25840
25841 wxPyEndAllowThreads(__tstate);
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25845 return resultobj;
25846 fail:
25847 return NULL;
25848 }
25849
25850
25851 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25852 PyObject *resultobj;
25853 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25854 int arg2 ;
25855 wxCursor *arg3 = 0 ;
25856 PyObject * obj0 = 0 ;
25857 PyObject * obj1 = 0 ;
25858 PyObject * obj2 = 0 ;
25859 char *kwnames[] = {
25860 (char *) "self",(char *) "res",(char *) "cursor", NULL
25861 };
25862
25863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25866 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25867 if (PyErr_Occurred()) SWIG_fail;
25868 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25869 SWIG_POINTER_EXCEPTION | 0)) == -1)
25870 SWIG_fail;
25871 if (arg3 == NULL) {
25872 PyErr_SetString(PyExc_TypeError,"null reference");
25873 SWIG_fail;
25874 }
25875 {
25876 PyThreadState* __tstate = wxPyBeginAllowThreads();
25877 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25878
25879 wxPyEndAllowThreads(__tstate);
25880 if (PyErr_Occurred()) SWIG_fail;
25881 }
25882 Py_INCREF(Py_None); resultobj = Py_None;
25883 return resultobj;
25884 fail:
25885 return NULL;
25886 }
25887
25888
25889 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25890 PyObject *resultobj;
25891 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25892 int arg2 = (int) wxDrag_CopyOnly ;
25893 int result;
25894 PyObject * obj0 = 0 ;
25895 PyObject * obj1 = 0 ;
25896 char *kwnames[] = {
25897 (char *) "self",(char *) "flags", NULL
25898 };
25899
25900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25903 if (obj1) {
25904 arg2 = (int) SWIG_AsInt(obj1);
25905 if (PyErr_Occurred()) SWIG_fail;
25906 }
25907 {
25908 PyThreadState* __tstate = wxPyBeginAllowThreads();
25909 result = (int)(arg1)->DoDragDrop(arg2);
25910
25911 wxPyEndAllowThreads(__tstate);
25912 if (PyErr_Occurred()) SWIG_fail;
25913 }
25914 resultobj = SWIG_FromInt((int)result);
25915 return resultobj;
25916 fail:
25917 return NULL;
25918 }
25919
25920
25921 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25922 PyObject *resultobj;
25923 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25924 int arg2 ;
25925 bool result;
25926 PyObject * obj0 = 0 ;
25927 PyObject * obj1 = 0 ;
25928 char *kwnames[] = {
25929 (char *) "self",(char *) "effect", NULL
25930 };
25931
25932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25935 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25936 if (PyErr_Occurred()) SWIG_fail;
25937 {
25938 PyThreadState* __tstate = wxPyBeginAllowThreads();
25939 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25940
25941 wxPyEndAllowThreads(__tstate);
25942 if (PyErr_Occurred()) SWIG_fail;
25943 }
25944 {
25945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25946 }
25947 return resultobj;
25948 fail:
25949 return NULL;
25950 }
25951
25952
25953 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25954 PyObject *obj;
25955 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25956 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25957 Py_INCREF(obj);
25958 return Py_BuildValue((char *)"");
25959 }
25960 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25961 PyObject *resultobj;
25962 wxDataObject *arg1 = (wxDataObject *) NULL ;
25963 wxPyDropTarget *result;
25964 PyObject * obj0 = 0 ;
25965 char *kwnames[] = {
25966 (char *) "dataObject", NULL
25967 };
25968
25969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25970 if (obj0) {
25971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25972 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25973 }
25974 {
25975 PyThreadState* __tstate = wxPyBeginAllowThreads();
25976 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25977
25978 wxPyEndAllowThreads(__tstate);
25979 if (PyErr_Occurred()) SWIG_fail;
25980 }
25981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25982 return resultobj;
25983 fail:
25984 return NULL;
25985 }
25986
25987
25988 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25989 PyObject *resultobj;
25990 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25991 PyObject *arg2 = (PyObject *) 0 ;
25992 PyObject *arg3 = (PyObject *) 0 ;
25993 PyObject * obj0 = 0 ;
25994 PyObject * obj1 = 0 ;
25995 PyObject * obj2 = 0 ;
25996 char *kwnames[] = {
25997 (char *) "self",(char *) "self",(char *) "_class", NULL
25998 };
25999
26000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26003 arg2 = obj1;
26004 arg3 = obj2;
26005 {
26006 PyThreadState* __tstate = wxPyBeginAllowThreads();
26007 (arg1)->_setCallbackInfo(arg2,arg3);
26008
26009 wxPyEndAllowThreads(__tstate);
26010 if (PyErr_Occurred()) SWIG_fail;
26011 }
26012 Py_INCREF(Py_None); resultobj = Py_None;
26013 return resultobj;
26014 fail:
26015 return NULL;
26016 }
26017
26018
26019 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26020 PyObject *resultobj;
26021 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26022 PyObject * obj0 = 0 ;
26023 char *kwnames[] = {
26024 (char *) "self", NULL
26025 };
26026
26027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26030 {
26031 PyThreadState* __tstate = wxPyBeginAllowThreads();
26032 delete arg1;
26033
26034 wxPyEndAllowThreads(__tstate);
26035 if (PyErr_Occurred()) SWIG_fail;
26036 }
26037 Py_INCREF(Py_None); resultobj = Py_None;
26038 return resultobj;
26039 fail:
26040 return NULL;
26041 }
26042
26043
26044 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26045 PyObject *resultobj;
26046 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26047 wxDataObject *result;
26048 PyObject * obj0 = 0 ;
26049 char *kwnames[] = {
26050 (char *) "self", NULL
26051 };
26052
26053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 result = (wxDataObject *)(arg1)->GetDataObject();
26059
26060 wxPyEndAllowThreads(__tstate);
26061 if (PyErr_Occurred()) SWIG_fail;
26062 }
26063 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26064 return resultobj;
26065 fail:
26066 return NULL;
26067 }
26068
26069
26070 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26071 PyObject *resultobj;
26072 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26073 wxDataObject *arg2 = (wxDataObject *) 0 ;
26074 PyObject * obj0 = 0 ;
26075 PyObject * obj1 = 0 ;
26076 char *kwnames[] = {
26077 (char *) "self",(char *) "dataObject", NULL
26078 };
26079
26080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26084 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26085 {
26086 PyThreadState* __tstate = wxPyBeginAllowThreads();
26087 (arg1)->SetDataObject(arg2);
26088
26089 wxPyEndAllowThreads(__tstate);
26090 if (PyErr_Occurred()) SWIG_fail;
26091 }
26092 Py_INCREF(Py_None); resultobj = Py_None;
26093 return resultobj;
26094 fail:
26095 return NULL;
26096 }
26097
26098
26099 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26100 PyObject *resultobj;
26101 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26102 int arg2 ;
26103 int arg3 ;
26104 int arg4 ;
26105 int result;
26106 PyObject * obj0 = 0 ;
26107 PyObject * obj1 = 0 ;
26108 PyObject * obj2 = 0 ;
26109 PyObject * obj3 = 0 ;
26110 char *kwnames[] = {
26111 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26112 };
26113
26114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26117 arg2 = (int) SWIG_AsInt(obj1);
26118 if (PyErr_Occurred()) SWIG_fail;
26119 arg3 = (int) SWIG_AsInt(obj2);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26122 if (PyErr_Occurred()) SWIG_fail;
26123 {
26124 PyThreadState* __tstate = wxPyBeginAllowThreads();
26125 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26126
26127 wxPyEndAllowThreads(__tstate);
26128 if (PyErr_Occurred()) SWIG_fail;
26129 }
26130 resultobj = SWIG_FromInt((int)result);
26131 return resultobj;
26132 fail:
26133 return NULL;
26134 }
26135
26136
26137 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26138 PyObject *resultobj;
26139 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26140 int arg2 ;
26141 int arg3 ;
26142 int arg4 ;
26143 int result;
26144 PyObject * obj0 = 0 ;
26145 PyObject * obj1 = 0 ;
26146 PyObject * obj2 = 0 ;
26147 PyObject * obj3 = 0 ;
26148 char *kwnames[] = {
26149 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26150 };
26151
26152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26155 arg2 = (int) SWIG_AsInt(obj1);
26156 if (PyErr_Occurred()) SWIG_fail;
26157 arg3 = (int) SWIG_AsInt(obj2);
26158 if (PyErr_Occurred()) SWIG_fail;
26159 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26160 if (PyErr_Occurred()) SWIG_fail;
26161 {
26162 PyThreadState* __tstate = wxPyBeginAllowThreads();
26163 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26164
26165 wxPyEndAllowThreads(__tstate);
26166 if (PyErr_Occurred()) SWIG_fail;
26167 }
26168 resultobj = SWIG_FromInt((int)result);
26169 return resultobj;
26170 fail:
26171 return NULL;
26172 }
26173
26174
26175 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26176 PyObject *resultobj;
26177 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26178 PyObject * obj0 = 0 ;
26179 char *kwnames[] = {
26180 (char *) "self", NULL
26181 };
26182
26183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26186 {
26187 PyThreadState* __tstate = wxPyBeginAllowThreads();
26188 (arg1)->base_OnLeave();
26189
26190 wxPyEndAllowThreads(__tstate);
26191 if (PyErr_Occurred()) SWIG_fail;
26192 }
26193 Py_INCREF(Py_None); resultobj = Py_None;
26194 return resultobj;
26195 fail:
26196 return NULL;
26197 }
26198
26199
26200 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26201 PyObject *resultobj;
26202 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26203 int arg2 ;
26204 int arg3 ;
26205 bool result;
26206 PyObject * obj0 = 0 ;
26207 PyObject * obj1 = 0 ;
26208 PyObject * obj2 = 0 ;
26209 char *kwnames[] = {
26210 (char *) "self",(char *) "x",(char *) "y", NULL
26211 };
26212
26213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26216 arg2 = (int) SWIG_AsInt(obj1);
26217 if (PyErr_Occurred()) SWIG_fail;
26218 arg3 = (int) SWIG_AsInt(obj2);
26219 if (PyErr_Occurred()) SWIG_fail;
26220 {
26221 PyThreadState* __tstate = wxPyBeginAllowThreads();
26222 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26223
26224 wxPyEndAllowThreads(__tstate);
26225 if (PyErr_Occurred()) SWIG_fail;
26226 }
26227 {
26228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26229 }
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26237 PyObject *resultobj;
26238 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26239 bool result;
26240 PyObject * obj0 = 0 ;
26241 char *kwnames[] = {
26242 (char *) "self", NULL
26243 };
26244
26245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 result = (bool)(arg1)->GetData();
26251
26252 wxPyEndAllowThreads(__tstate);
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 {
26256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26257 }
26258 return resultobj;
26259 fail:
26260 return NULL;
26261 }
26262
26263
26264 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26265 PyObject *obj;
26266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26267 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26268 Py_INCREF(obj);
26269 return Py_BuildValue((char *)"");
26270 }
26271 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26272 PyObject *resultobj;
26273 wxPyTextDropTarget *result;
26274 char *kwnames[] = {
26275 NULL
26276 };
26277
26278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26279 {
26280 PyThreadState* __tstate = wxPyBeginAllowThreads();
26281 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26282
26283 wxPyEndAllowThreads(__tstate);
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26287 return resultobj;
26288 fail:
26289 return NULL;
26290 }
26291
26292
26293 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26294 PyObject *resultobj;
26295 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26296 PyObject *arg2 = (PyObject *) 0 ;
26297 PyObject *arg3 = (PyObject *) 0 ;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 PyObject * obj2 = 0 ;
26301 char *kwnames[] = {
26302 (char *) "self",(char *) "self",(char *) "_class", NULL
26303 };
26304
26305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26308 arg2 = obj1;
26309 arg3 = obj2;
26310 {
26311 PyThreadState* __tstate = wxPyBeginAllowThreads();
26312 (arg1)->_setCallbackInfo(arg2,arg3);
26313
26314 wxPyEndAllowThreads(__tstate);
26315 if (PyErr_Occurred()) SWIG_fail;
26316 }
26317 Py_INCREF(Py_None); resultobj = Py_None;
26318 return resultobj;
26319 fail:
26320 return NULL;
26321 }
26322
26323
26324 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26325 PyObject *resultobj;
26326 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26327 int arg2 ;
26328 int arg3 ;
26329 int arg4 ;
26330 int result;
26331 PyObject * obj0 = 0 ;
26332 PyObject * obj1 = 0 ;
26333 PyObject * obj2 = 0 ;
26334 PyObject * obj3 = 0 ;
26335 char *kwnames[] = {
26336 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26337 };
26338
26339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26342 arg2 = (int) SWIG_AsInt(obj1);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 arg3 = (int) SWIG_AsInt(obj2);
26345 if (PyErr_Occurred()) SWIG_fail;
26346 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 {
26349 PyThreadState* __tstate = wxPyBeginAllowThreads();
26350 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26351
26352 wxPyEndAllowThreads(__tstate);
26353 if (PyErr_Occurred()) SWIG_fail;
26354 }
26355 resultobj = SWIG_FromInt((int)result);
26356 return resultobj;
26357 fail:
26358 return NULL;
26359 }
26360
26361
26362 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26363 PyObject *resultobj;
26364 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26365 int arg2 ;
26366 int arg3 ;
26367 int arg4 ;
26368 int result;
26369 PyObject * obj0 = 0 ;
26370 PyObject * obj1 = 0 ;
26371 PyObject * obj2 = 0 ;
26372 PyObject * obj3 = 0 ;
26373 char *kwnames[] = {
26374 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26375 };
26376
26377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26380 arg2 = (int) SWIG_AsInt(obj1);
26381 if (PyErr_Occurred()) SWIG_fail;
26382 arg3 = (int) SWIG_AsInt(obj2);
26383 if (PyErr_Occurred()) SWIG_fail;
26384 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26385 if (PyErr_Occurred()) SWIG_fail;
26386 {
26387 PyThreadState* __tstate = wxPyBeginAllowThreads();
26388 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26389
26390 wxPyEndAllowThreads(__tstate);
26391 if (PyErr_Occurred()) SWIG_fail;
26392 }
26393 resultobj = SWIG_FromInt((int)result);
26394 return resultobj;
26395 fail:
26396 return NULL;
26397 }
26398
26399
26400 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26401 PyObject *resultobj;
26402 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26403 PyObject * obj0 = 0 ;
26404 char *kwnames[] = {
26405 (char *) "self", NULL
26406 };
26407
26408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26411 {
26412 PyThreadState* __tstate = wxPyBeginAllowThreads();
26413 (arg1)->base_OnLeave();
26414
26415 wxPyEndAllowThreads(__tstate);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 }
26418 Py_INCREF(Py_None); resultobj = Py_None;
26419 return resultobj;
26420 fail:
26421 return NULL;
26422 }
26423
26424
26425 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26426 PyObject *resultobj;
26427 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26428 int arg2 ;
26429 int arg3 ;
26430 bool result;
26431 PyObject * obj0 = 0 ;
26432 PyObject * obj1 = 0 ;
26433 PyObject * obj2 = 0 ;
26434 char *kwnames[] = {
26435 (char *) "self",(char *) "x",(char *) "y", NULL
26436 };
26437
26438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26441 arg2 = (int) SWIG_AsInt(obj1);
26442 if (PyErr_Occurred()) SWIG_fail;
26443 arg3 = (int) SWIG_AsInt(obj2);
26444 if (PyErr_Occurred()) SWIG_fail;
26445 {
26446 PyThreadState* __tstate = wxPyBeginAllowThreads();
26447 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26448
26449 wxPyEndAllowThreads(__tstate);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 }
26452 {
26453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26454 }
26455 return resultobj;
26456 fail:
26457 return NULL;
26458 }
26459
26460
26461 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26462 PyObject *resultobj;
26463 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26464 int arg2 ;
26465 int arg3 ;
26466 int arg4 ;
26467 int result;
26468 PyObject * obj0 = 0 ;
26469 PyObject * obj1 = 0 ;
26470 PyObject * obj2 = 0 ;
26471 PyObject * obj3 = 0 ;
26472 char *kwnames[] = {
26473 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26474 };
26475
26476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26479 arg2 = (int) SWIG_AsInt(obj1);
26480 if (PyErr_Occurred()) SWIG_fail;
26481 arg3 = (int) SWIG_AsInt(obj2);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26484 if (PyErr_Occurred()) SWIG_fail;
26485 {
26486 PyThreadState* __tstate = wxPyBeginAllowThreads();
26487 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26488
26489 wxPyEndAllowThreads(__tstate);
26490 if (PyErr_Occurred()) SWIG_fail;
26491 }
26492 resultobj = SWIG_FromInt((int)result);
26493 return resultobj;
26494 fail:
26495 return NULL;
26496 }
26497
26498
26499 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26500 PyObject *obj;
26501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26502 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26503 Py_INCREF(obj);
26504 return Py_BuildValue((char *)"");
26505 }
26506 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26507 PyObject *resultobj;
26508 wxPyFileDropTarget *result;
26509 char *kwnames[] = {
26510 NULL
26511 };
26512
26513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26514 {
26515 PyThreadState* __tstate = wxPyBeginAllowThreads();
26516 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26517
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26522 return resultobj;
26523 fail:
26524 return NULL;
26525 }
26526
26527
26528 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26529 PyObject *resultobj;
26530 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26531 PyObject *arg2 = (PyObject *) 0 ;
26532 PyObject *arg3 = (PyObject *) 0 ;
26533 PyObject * obj0 = 0 ;
26534 PyObject * obj1 = 0 ;
26535 PyObject * obj2 = 0 ;
26536 char *kwnames[] = {
26537 (char *) "self",(char *) "self",(char *) "_class", NULL
26538 };
26539
26540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26543 arg2 = obj1;
26544 arg3 = obj2;
26545 {
26546 PyThreadState* __tstate = wxPyBeginAllowThreads();
26547 (arg1)->_setCallbackInfo(arg2,arg3);
26548
26549 wxPyEndAllowThreads(__tstate);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 }
26552 Py_INCREF(Py_None); resultobj = Py_None;
26553 return resultobj;
26554 fail:
26555 return NULL;
26556 }
26557
26558
26559 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26560 PyObject *resultobj;
26561 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26562 int arg2 ;
26563 int arg3 ;
26564 int arg4 ;
26565 int result;
26566 PyObject * obj0 = 0 ;
26567 PyObject * obj1 = 0 ;
26568 PyObject * obj2 = 0 ;
26569 PyObject * obj3 = 0 ;
26570 char *kwnames[] = {
26571 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26572 };
26573
26574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26577 arg2 = (int) SWIG_AsInt(obj1);
26578 if (PyErr_Occurred()) SWIG_fail;
26579 arg3 = (int) SWIG_AsInt(obj2);
26580 if (PyErr_Occurred()) SWIG_fail;
26581 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26582 if (PyErr_Occurred()) SWIG_fail;
26583 {
26584 PyThreadState* __tstate = wxPyBeginAllowThreads();
26585 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26586
26587 wxPyEndAllowThreads(__tstate);
26588 if (PyErr_Occurred()) SWIG_fail;
26589 }
26590 resultobj = SWIG_FromInt((int)result);
26591 return resultobj;
26592 fail:
26593 return NULL;
26594 }
26595
26596
26597 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26598 PyObject *resultobj;
26599 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26600 int arg2 ;
26601 int arg3 ;
26602 int arg4 ;
26603 int result;
26604 PyObject * obj0 = 0 ;
26605 PyObject * obj1 = 0 ;
26606 PyObject * obj2 = 0 ;
26607 PyObject * obj3 = 0 ;
26608 char *kwnames[] = {
26609 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26610 };
26611
26612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26615 arg2 = (int) SWIG_AsInt(obj1);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 arg3 = (int) SWIG_AsInt(obj2);
26618 if (PyErr_Occurred()) SWIG_fail;
26619 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26620 if (PyErr_Occurred()) SWIG_fail;
26621 {
26622 PyThreadState* __tstate = wxPyBeginAllowThreads();
26623 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26624
26625 wxPyEndAllowThreads(__tstate);
26626 if (PyErr_Occurred()) SWIG_fail;
26627 }
26628 resultobj = SWIG_FromInt((int)result);
26629 return resultobj;
26630 fail:
26631 return NULL;
26632 }
26633
26634
26635 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26636 PyObject *resultobj;
26637 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26638 PyObject * obj0 = 0 ;
26639 char *kwnames[] = {
26640 (char *) "self", NULL
26641 };
26642
26643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26646 {
26647 PyThreadState* __tstate = wxPyBeginAllowThreads();
26648 (arg1)->base_OnLeave();
26649
26650 wxPyEndAllowThreads(__tstate);
26651 if (PyErr_Occurred()) SWIG_fail;
26652 }
26653 Py_INCREF(Py_None); resultobj = Py_None;
26654 return resultobj;
26655 fail:
26656 return NULL;
26657 }
26658
26659
26660 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26661 PyObject *resultobj;
26662 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26663 int arg2 ;
26664 int arg3 ;
26665 bool result;
26666 PyObject * obj0 = 0 ;
26667 PyObject * obj1 = 0 ;
26668 PyObject * obj2 = 0 ;
26669 char *kwnames[] = {
26670 (char *) "self",(char *) "x",(char *) "y", NULL
26671 };
26672
26673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26676 arg2 = (int) SWIG_AsInt(obj1);
26677 if (PyErr_Occurred()) SWIG_fail;
26678 arg3 = (int) SWIG_AsInt(obj2);
26679 if (PyErr_Occurred()) SWIG_fail;
26680 {
26681 PyThreadState* __tstate = wxPyBeginAllowThreads();
26682 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26683
26684 wxPyEndAllowThreads(__tstate);
26685 if (PyErr_Occurred()) SWIG_fail;
26686 }
26687 {
26688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26689 }
26690 return resultobj;
26691 fail:
26692 return NULL;
26693 }
26694
26695
26696 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26697 PyObject *resultobj;
26698 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26699 int arg2 ;
26700 int arg3 ;
26701 int arg4 ;
26702 int result;
26703 PyObject * obj0 = 0 ;
26704 PyObject * obj1 = 0 ;
26705 PyObject * obj2 = 0 ;
26706 PyObject * obj3 = 0 ;
26707 char *kwnames[] = {
26708 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26709 };
26710
26711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26714 arg2 = (int) SWIG_AsInt(obj1);
26715 if (PyErr_Occurred()) SWIG_fail;
26716 arg3 = (int) SWIG_AsInt(obj2);
26717 if (PyErr_Occurred()) SWIG_fail;
26718 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 {
26721 PyThreadState* __tstate = wxPyBeginAllowThreads();
26722 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26723
26724 wxPyEndAllowThreads(__tstate);
26725 if (PyErr_Occurred()) SWIG_fail;
26726 }
26727 resultobj = SWIG_FromInt((int)result);
26728 return resultobj;
26729 fail:
26730 return NULL;
26731 }
26732
26733
26734 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26735 PyObject *obj;
26736 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26737 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26738 Py_INCREF(obj);
26739 return Py_BuildValue((char *)"");
26740 }
26741 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26742 PyObject *resultobj;
26743 wxClipboard *result;
26744 char *kwnames[] = {
26745 NULL
26746 };
26747
26748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26749 {
26750 PyThreadState* __tstate = wxPyBeginAllowThreads();
26751 result = (wxClipboard *)new wxClipboard();
26752
26753 wxPyEndAllowThreads(__tstate);
26754 if (PyErr_Occurred()) SWIG_fail;
26755 }
26756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26757 return resultobj;
26758 fail:
26759 return NULL;
26760 }
26761
26762
26763 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26764 PyObject *resultobj;
26765 wxClipboard *arg1 = (wxClipboard *) 0 ;
26766 PyObject * obj0 = 0 ;
26767 char *kwnames[] = {
26768 (char *) "self", NULL
26769 };
26770
26771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26774 {
26775 PyThreadState* __tstate = wxPyBeginAllowThreads();
26776 delete arg1;
26777
26778 wxPyEndAllowThreads(__tstate);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 }
26781 Py_INCREF(Py_None); resultobj = Py_None;
26782 return resultobj;
26783 fail:
26784 return NULL;
26785 }
26786
26787
26788 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26789 PyObject *resultobj;
26790 wxClipboard *arg1 = (wxClipboard *) 0 ;
26791 bool result;
26792 PyObject * obj0 = 0 ;
26793 char *kwnames[] = {
26794 (char *) "self", NULL
26795 };
26796
26797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26800 {
26801 PyThreadState* __tstate = wxPyBeginAllowThreads();
26802 result = (bool)(arg1)->Open();
26803
26804 wxPyEndAllowThreads(__tstate);
26805 if (PyErr_Occurred()) SWIG_fail;
26806 }
26807 {
26808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26809 }
26810 return resultobj;
26811 fail:
26812 return NULL;
26813 }
26814
26815
26816 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26817 PyObject *resultobj;
26818 wxClipboard *arg1 = (wxClipboard *) 0 ;
26819 PyObject * obj0 = 0 ;
26820 char *kwnames[] = {
26821 (char *) "self", NULL
26822 };
26823
26824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26827 {
26828 PyThreadState* __tstate = wxPyBeginAllowThreads();
26829 (arg1)->Close();
26830
26831 wxPyEndAllowThreads(__tstate);
26832 if (PyErr_Occurred()) SWIG_fail;
26833 }
26834 Py_INCREF(Py_None); resultobj = Py_None;
26835 return resultobj;
26836 fail:
26837 return NULL;
26838 }
26839
26840
26841 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26842 PyObject *resultobj;
26843 wxClipboard *arg1 = (wxClipboard *) 0 ;
26844 bool result;
26845 PyObject * obj0 = 0 ;
26846 char *kwnames[] = {
26847 (char *) "self", NULL
26848 };
26849
26850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26853 {
26854 PyThreadState* __tstate = wxPyBeginAllowThreads();
26855 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26856
26857 wxPyEndAllowThreads(__tstate);
26858 if (PyErr_Occurred()) SWIG_fail;
26859 }
26860 {
26861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26862 }
26863 return resultobj;
26864 fail:
26865 return NULL;
26866 }
26867
26868
26869 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26870 PyObject *resultobj;
26871 wxClipboard *arg1 = (wxClipboard *) 0 ;
26872 wxDataObject *arg2 = (wxDataObject *) 0 ;
26873 bool result;
26874 PyObject * obj0 = 0 ;
26875 PyObject * obj1 = 0 ;
26876 char *kwnames[] = {
26877 (char *) "self",(char *) "data", NULL
26878 };
26879
26880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26884 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26885 {
26886 PyThreadState* __tstate = wxPyBeginAllowThreads();
26887 result = (bool)(arg1)->AddData(arg2);
26888
26889 wxPyEndAllowThreads(__tstate);
26890 if (PyErr_Occurred()) SWIG_fail;
26891 }
26892 {
26893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26894 }
26895 return resultobj;
26896 fail:
26897 return NULL;
26898 }
26899
26900
26901 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26902 PyObject *resultobj;
26903 wxClipboard *arg1 = (wxClipboard *) 0 ;
26904 wxDataObject *arg2 = (wxDataObject *) 0 ;
26905 bool result;
26906 PyObject * obj0 = 0 ;
26907 PyObject * obj1 = 0 ;
26908 char *kwnames[] = {
26909 (char *) "self",(char *) "data", NULL
26910 };
26911
26912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26916 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26917 {
26918 PyThreadState* __tstate = wxPyBeginAllowThreads();
26919 result = (bool)(arg1)->SetData(arg2);
26920
26921 wxPyEndAllowThreads(__tstate);
26922 if (PyErr_Occurred()) SWIG_fail;
26923 }
26924 {
26925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26926 }
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj;
26935 wxClipboard *arg1 = (wxClipboard *) 0 ;
26936 wxDataFormat *arg2 = 0 ;
26937 bool result;
26938 PyObject * obj0 = 0 ;
26939 PyObject * obj1 = 0 ;
26940 char *kwnames[] = {
26941 (char *) "self",(char *) "format", NULL
26942 };
26943
26944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26947 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26948 SWIG_POINTER_EXCEPTION | 0)) == -1)
26949 SWIG_fail;
26950 if (arg2 == NULL) {
26951 PyErr_SetString(PyExc_TypeError,"null reference");
26952 SWIG_fail;
26953 }
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26957
26958 wxPyEndAllowThreads(__tstate);
26959 if (PyErr_Occurred()) SWIG_fail;
26960 }
26961 {
26962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26963 }
26964 return resultobj;
26965 fail:
26966 return NULL;
26967 }
26968
26969
26970 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26971 PyObject *resultobj;
26972 wxClipboard *arg1 = (wxClipboard *) 0 ;
26973 wxDataObject *arg2 = 0 ;
26974 bool result;
26975 PyObject * obj0 = 0 ;
26976 PyObject * obj1 = 0 ;
26977 char *kwnames[] = {
26978 (char *) "self",(char *) "data", NULL
26979 };
26980
26981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26984 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26985 SWIG_POINTER_EXCEPTION | 0)) == -1)
26986 SWIG_fail;
26987 if (arg2 == NULL) {
26988 PyErr_SetString(PyExc_TypeError,"null reference");
26989 SWIG_fail;
26990 }
26991 {
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 result = (bool)(arg1)->GetData(*arg2);
26994
26995 wxPyEndAllowThreads(__tstate);
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 {
26999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27000 }
27001 return resultobj;
27002 fail:
27003 return NULL;
27004 }
27005
27006
27007 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27008 PyObject *resultobj;
27009 wxClipboard *arg1 = (wxClipboard *) 0 ;
27010 PyObject * obj0 = 0 ;
27011 char *kwnames[] = {
27012 (char *) "self", NULL
27013 };
27014
27015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27018 {
27019 PyThreadState* __tstate = wxPyBeginAllowThreads();
27020 (arg1)->Clear();
27021
27022 wxPyEndAllowThreads(__tstate);
27023 if (PyErr_Occurred()) SWIG_fail;
27024 }
27025 Py_INCREF(Py_None); resultobj = Py_None;
27026 return resultobj;
27027 fail:
27028 return NULL;
27029 }
27030
27031
27032 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27033 PyObject *resultobj;
27034 wxClipboard *arg1 = (wxClipboard *) 0 ;
27035 bool result;
27036 PyObject * obj0 = 0 ;
27037 char *kwnames[] = {
27038 (char *) "self", NULL
27039 };
27040
27041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27044 {
27045 PyThreadState* __tstate = wxPyBeginAllowThreads();
27046 result = (bool)(arg1)->Flush();
27047
27048 wxPyEndAllowThreads(__tstate);
27049 if (PyErr_Occurred()) SWIG_fail;
27050 }
27051 {
27052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27053 }
27054 return resultobj;
27055 fail:
27056 return NULL;
27057 }
27058
27059
27060 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27061 PyObject *resultobj;
27062 wxClipboard *arg1 = (wxClipboard *) 0 ;
27063 bool arg2 = (bool) True ;
27064 PyObject * obj0 = 0 ;
27065 PyObject * obj1 = 0 ;
27066 char *kwnames[] = {
27067 (char *) "self",(char *) "primary", NULL
27068 };
27069
27070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27073 if (obj1) {
27074 arg2 = (bool) SWIG_AsBool(obj1);
27075 if (PyErr_Occurred()) SWIG_fail;
27076 }
27077 {
27078 PyThreadState* __tstate = wxPyBeginAllowThreads();
27079 (arg1)->UsePrimarySelection(arg2);
27080
27081 wxPyEndAllowThreads(__tstate);
27082 if (PyErr_Occurred()) SWIG_fail;
27083 }
27084 Py_INCREF(Py_None); resultobj = Py_None;
27085 return resultobj;
27086 fail:
27087 return NULL;
27088 }
27089
27090
27091 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27092 PyObject *obj;
27093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27094 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27095 Py_INCREF(obj);
27096 return Py_BuildValue((char *)"");
27097 }
27098 static int _wrap_TheClipboard_set(PyObject *_val) {
27099 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
27100 return 1;
27101 }
27102
27103
27104 static PyObject *_wrap_TheClipboard_get() {
27105 PyObject *pyobj;
27106
27107 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27108 return pyobj;
27109 }
27110
27111
27112 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27113 PyObject *resultobj;
27114 wxClipboard *arg1 = (wxClipboard *) NULL ;
27115 wxClipboardLocker *result;
27116 PyObject * obj0 = 0 ;
27117 char *kwnames[] = {
27118 (char *) "clipboard", NULL
27119 };
27120
27121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27122 if (obj0) {
27123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27125 }
27126 {
27127 PyThreadState* __tstate = wxPyBeginAllowThreads();
27128 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27129
27130 wxPyEndAllowThreads(__tstate);
27131 if (PyErr_Occurred()) SWIG_fail;
27132 }
27133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27141 PyObject *resultobj;
27142 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27143 PyObject * obj0 = 0 ;
27144 char *kwnames[] = {
27145 (char *) "self", NULL
27146 };
27147
27148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27151 {
27152 PyThreadState* __tstate = wxPyBeginAllowThreads();
27153 delete arg1;
27154
27155 wxPyEndAllowThreads(__tstate);
27156 if (PyErr_Occurred()) SWIG_fail;
27157 }
27158 Py_INCREF(Py_None); resultobj = Py_None;
27159 return resultobj;
27160 fail:
27161 return NULL;
27162 }
27163
27164
27165 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27166 PyObject *resultobj;
27167 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27168 bool result;
27169 PyObject * obj0 = 0 ;
27170 char *kwnames[] = {
27171 (char *) "self", NULL
27172 };
27173
27174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27177 {
27178 PyThreadState* __tstate = wxPyBeginAllowThreads();
27179 result = (bool)wxClipboardLocker___nonzero__(arg1);
27180
27181 wxPyEndAllowThreads(__tstate);
27182 if (PyErr_Occurred()) SWIG_fail;
27183 }
27184 {
27185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27186 }
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27194 PyObject *obj;
27195 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27196 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27197 Py_INCREF(obj);
27198 return Py_BuildValue((char *)"");
27199 }
27200 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27201 PyObject *resultobj;
27202 int arg1 = (int) 0 ;
27203 int arg2 = (int) 0 ;
27204 int arg3 = (int) 0 ;
27205 int arg4 = (int) 0 ;
27206 wxVideoMode *result;
27207 PyObject * obj0 = 0 ;
27208 PyObject * obj1 = 0 ;
27209 PyObject * obj2 = 0 ;
27210 PyObject * obj3 = 0 ;
27211 char *kwnames[] = {
27212 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27213 };
27214
27215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27216 if (obj0) {
27217 arg1 = (int) SWIG_AsInt(obj0);
27218 if (PyErr_Occurred()) SWIG_fail;
27219 }
27220 if (obj1) {
27221 arg2 = (int) SWIG_AsInt(obj1);
27222 if (PyErr_Occurred()) SWIG_fail;
27223 }
27224 if (obj2) {
27225 arg3 = (int) SWIG_AsInt(obj2);
27226 if (PyErr_Occurred()) SWIG_fail;
27227 }
27228 if (obj3) {
27229 arg4 = (int) SWIG_AsInt(obj3);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 }
27232 {
27233 PyThreadState* __tstate = wxPyBeginAllowThreads();
27234 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27235
27236 wxPyEndAllowThreads(__tstate);
27237 if (PyErr_Occurred()) SWIG_fail;
27238 }
27239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27240 return resultobj;
27241 fail:
27242 return NULL;
27243 }
27244
27245
27246 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27247 PyObject *resultobj;
27248 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27249 PyObject * obj0 = 0 ;
27250 char *kwnames[] = {
27251 (char *) "self", NULL
27252 };
27253
27254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27257 {
27258 PyThreadState* __tstate = wxPyBeginAllowThreads();
27259 delete arg1;
27260
27261 wxPyEndAllowThreads(__tstate);
27262 if (PyErr_Occurred()) SWIG_fail;
27263 }
27264 Py_INCREF(Py_None); resultobj = Py_None;
27265 return resultobj;
27266 fail:
27267 return NULL;
27268 }
27269
27270
27271 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27272 PyObject *resultobj;
27273 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27274 wxVideoMode *arg2 = 0 ;
27275 bool result;
27276 PyObject * obj0 = 0 ;
27277 PyObject * obj1 = 0 ;
27278 char *kwnames[] = {
27279 (char *) "self",(char *) "other", NULL
27280 };
27281
27282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27286 SWIG_POINTER_EXCEPTION | 0)) == -1)
27287 SWIG_fail;
27288 if (arg2 == NULL) {
27289 PyErr_SetString(PyExc_TypeError,"null reference");
27290 SWIG_fail;
27291 }
27292 {
27293 PyThreadState* __tstate = wxPyBeginAllowThreads();
27294 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27295
27296 wxPyEndAllowThreads(__tstate);
27297 if (PyErr_Occurred()) SWIG_fail;
27298 }
27299 {
27300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27301 }
27302 return resultobj;
27303 fail:
27304 return NULL;
27305 }
27306
27307
27308 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27309 PyObject *resultobj;
27310 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27311 int result;
27312 PyObject * obj0 = 0 ;
27313 char *kwnames[] = {
27314 (char *) "self", NULL
27315 };
27316
27317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27320 {
27321 PyThreadState* __tstate = wxPyBeginAllowThreads();
27322 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27323
27324 wxPyEndAllowThreads(__tstate);
27325 if (PyErr_Occurred()) SWIG_fail;
27326 }
27327 resultobj = SWIG_FromInt((int)result);
27328 return resultobj;
27329 fail:
27330 return NULL;
27331 }
27332
27333
27334 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27335 PyObject *resultobj;
27336 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27337 int result;
27338 PyObject * obj0 = 0 ;
27339 char *kwnames[] = {
27340 (char *) "self", NULL
27341 };
27342
27343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
27348 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27349
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 resultobj = SWIG_FromInt((int)result);
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj;
27362 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27363 int result;
27364 PyObject * obj0 = 0 ;
27365 char *kwnames[] = {
27366 (char *) "self", NULL
27367 };
27368
27369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27372 {
27373 PyThreadState* __tstate = wxPyBeginAllowThreads();
27374 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27375
27376 wxPyEndAllowThreads(__tstate);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 resultobj = SWIG_FromInt((int)result);
27380 return resultobj;
27381 fail:
27382 return NULL;
27383 }
27384
27385
27386 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27387 PyObject *resultobj;
27388 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27389 bool result;
27390 PyObject * obj0 = 0 ;
27391 char *kwnames[] = {
27392 (char *) "self", NULL
27393 };
27394
27395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27398 {
27399 PyThreadState* __tstate = wxPyBeginAllowThreads();
27400 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27401
27402 wxPyEndAllowThreads(__tstate);
27403 if (PyErr_Occurred()) SWIG_fail;
27404 }
27405 {
27406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27407 }
27408 return resultobj;
27409 fail:
27410 return NULL;
27411 }
27412
27413
27414 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27415 PyObject *resultobj;
27416 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27417 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27418 bool result;
27419 PyObject * obj0 = 0 ;
27420 PyObject * obj1 = 0 ;
27421 char *kwnames[] = {
27422 (char *) "self",(char *) "other", NULL
27423 };
27424
27425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27428 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27430 {
27431 PyThreadState* __tstate = wxPyBeginAllowThreads();
27432 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27433
27434 wxPyEndAllowThreads(__tstate);
27435 if (PyErr_Occurred()) SWIG_fail;
27436 }
27437 {
27438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27439 }
27440 return resultobj;
27441 fail:
27442 return NULL;
27443 }
27444
27445
27446 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27447 PyObject *resultobj;
27448 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27449 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27450 bool result;
27451 PyObject * obj0 = 0 ;
27452 PyObject * obj1 = 0 ;
27453 char *kwnames[] = {
27454 (char *) "self",(char *) "other", NULL
27455 };
27456
27457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27460 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27462 {
27463 PyThreadState* __tstate = wxPyBeginAllowThreads();
27464 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27465
27466 wxPyEndAllowThreads(__tstate);
27467 if (PyErr_Occurred()) SWIG_fail;
27468 }
27469 {
27470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27471 }
27472 return resultobj;
27473 fail:
27474 return NULL;
27475 }
27476
27477
27478 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27479 PyObject *resultobj;
27480 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27481 int arg2 ;
27482 PyObject * obj0 = 0 ;
27483 PyObject * obj1 = 0 ;
27484 char *kwnames[] = {
27485 (char *) "self",(char *) "w", NULL
27486 };
27487
27488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27491 arg2 = (int) SWIG_AsInt(obj1);
27492 if (PyErr_Occurred()) SWIG_fail;
27493 if (arg1) (arg1)->w = arg2;
27494
27495 Py_INCREF(Py_None); resultobj = Py_None;
27496 return resultobj;
27497 fail:
27498 return NULL;
27499 }
27500
27501
27502 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27503 PyObject *resultobj;
27504 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27505 int result;
27506 PyObject * obj0 = 0 ;
27507 char *kwnames[] = {
27508 (char *) "self", NULL
27509 };
27510
27511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27514 result = (int) ((arg1)->w);
27515
27516 resultobj = SWIG_FromInt((int)result);
27517 return resultobj;
27518 fail:
27519 return NULL;
27520 }
27521
27522
27523 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27524 PyObject *resultobj;
27525 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27526 int arg2 ;
27527 PyObject * obj0 = 0 ;
27528 PyObject * obj1 = 0 ;
27529 char *kwnames[] = {
27530 (char *) "self",(char *) "h", NULL
27531 };
27532
27533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27536 arg2 = (int) SWIG_AsInt(obj1);
27537 if (PyErr_Occurred()) SWIG_fail;
27538 if (arg1) (arg1)->h = arg2;
27539
27540 Py_INCREF(Py_None); resultobj = Py_None;
27541 return resultobj;
27542 fail:
27543 return NULL;
27544 }
27545
27546
27547 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27548 PyObject *resultobj;
27549 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27550 int result;
27551 PyObject * obj0 = 0 ;
27552 char *kwnames[] = {
27553 (char *) "self", NULL
27554 };
27555
27556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27559 result = (int) ((arg1)->h);
27560
27561 resultobj = SWIG_FromInt((int)result);
27562 return resultobj;
27563 fail:
27564 return NULL;
27565 }
27566
27567
27568 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27569 PyObject *resultobj;
27570 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27571 int arg2 ;
27572 PyObject * obj0 = 0 ;
27573 PyObject * obj1 = 0 ;
27574 char *kwnames[] = {
27575 (char *) "self",(char *) "bpp", NULL
27576 };
27577
27578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27581 arg2 = (int) SWIG_AsInt(obj1);
27582 if (PyErr_Occurred()) SWIG_fail;
27583 if (arg1) (arg1)->bpp = arg2;
27584
27585 Py_INCREF(Py_None); resultobj = Py_None;
27586 return resultobj;
27587 fail:
27588 return NULL;
27589 }
27590
27591
27592 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27593 PyObject *resultobj;
27594 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27595 int result;
27596 PyObject * obj0 = 0 ;
27597 char *kwnames[] = {
27598 (char *) "self", NULL
27599 };
27600
27601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27604 result = (int) ((arg1)->bpp);
27605
27606 resultobj = SWIG_FromInt((int)result);
27607 return resultobj;
27608 fail:
27609 return NULL;
27610 }
27611
27612
27613 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27614 PyObject *resultobj;
27615 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27616 int arg2 ;
27617 PyObject * obj0 = 0 ;
27618 PyObject * obj1 = 0 ;
27619 char *kwnames[] = {
27620 (char *) "self",(char *) "refresh", NULL
27621 };
27622
27623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27626 arg2 = (int) SWIG_AsInt(obj1);
27627 if (PyErr_Occurred()) SWIG_fail;
27628 if (arg1) (arg1)->refresh = arg2;
27629
27630 Py_INCREF(Py_None); resultobj = Py_None;
27631 return resultobj;
27632 fail:
27633 return NULL;
27634 }
27635
27636
27637 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27638 PyObject *resultobj;
27639 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27640 int result;
27641 PyObject * obj0 = 0 ;
27642 char *kwnames[] = {
27643 (char *) "self", NULL
27644 };
27645
27646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27649 result = (int) ((arg1)->refresh);
27650
27651 resultobj = SWIG_FromInt((int)result);
27652 return resultobj;
27653 fail:
27654 return NULL;
27655 }
27656
27657
27658 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27659 PyObject *obj;
27660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27661 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27662 Py_INCREF(obj);
27663 return Py_BuildValue((char *)"");
27664 }
27665 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27666 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27667 return 1;
27668 }
27669
27670
27671 static PyObject *_wrap_DefaultVideoMode_get() {
27672 PyObject *pyobj;
27673
27674 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27675 return pyobj;
27676 }
27677
27678
27679 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27680 PyObject *resultobj;
27681 size_t arg1 = (size_t) 0 ;
27682 wxDisplay *result;
27683 PyObject * obj0 = 0 ;
27684 char *kwnames[] = {
27685 (char *) "index", NULL
27686 };
27687
27688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27689 if (obj0) {
27690 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27691 if (PyErr_Occurred()) SWIG_fail;
27692 }
27693 {
27694 PyThreadState* __tstate = wxPyBeginAllowThreads();
27695 result = (wxDisplay *)new wxDisplay(arg1);
27696
27697 wxPyEndAllowThreads(__tstate);
27698 if (PyErr_Occurred()) SWIG_fail;
27699 }
27700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27701 return resultobj;
27702 fail:
27703 return NULL;
27704 }
27705
27706
27707 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27708 PyObject *resultobj;
27709 wxDisplay *arg1 = (wxDisplay *) 0 ;
27710 PyObject * obj0 = 0 ;
27711 char *kwnames[] = {
27712 (char *) "self", NULL
27713 };
27714
27715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27718 {
27719 PyThreadState* __tstate = wxPyBeginAllowThreads();
27720 delete arg1;
27721
27722 wxPyEndAllowThreads(__tstate);
27723 if (PyErr_Occurred()) SWIG_fail;
27724 }
27725 Py_INCREF(Py_None); resultobj = Py_None;
27726 return resultobj;
27727 fail:
27728 return NULL;
27729 }
27730
27731
27732 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27733 PyObject *resultobj;
27734 size_t result;
27735 char *kwnames[] = {
27736 NULL
27737 };
27738
27739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27740 {
27741 PyThreadState* __tstate = wxPyBeginAllowThreads();
27742 result = (size_t)wxDisplay::GetCount();
27743
27744 wxPyEndAllowThreads(__tstate);
27745 if (PyErr_Occurred()) SWIG_fail;
27746 }
27747 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27748 return resultobj;
27749 fail:
27750 return NULL;
27751 }
27752
27753
27754 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27755 PyObject *resultobj;
27756 wxPoint *arg1 = 0 ;
27757 int result;
27758 wxPoint temp1 ;
27759 PyObject * obj0 = 0 ;
27760 char *kwnames[] = {
27761 (char *) "pt", NULL
27762 };
27763
27764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27765 {
27766 arg1 = &temp1;
27767 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27768 }
27769 {
27770 PyThreadState* __tstate = wxPyBeginAllowThreads();
27771 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27772
27773 wxPyEndAllowThreads(__tstate);
27774 if (PyErr_Occurred()) SWIG_fail;
27775 }
27776 resultobj = SWIG_FromInt((int)result);
27777 return resultobj;
27778 fail:
27779 return NULL;
27780 }
27781
27782
27783 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27784 PyObject *resultobj;
27785 wxWindow *arg1 = (wxWindow *) 0 ;
27786 int result;
27787 PyObject * obj0 = 0 ;
27788 char *kwnames[] = {
27789 (char *) "window", NULL
27790 };
27791
27792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27795 {
27796 PyThreadState* __tstate = wxPyBeginAllowThreads();
27797 result = (int)wxDisplay::GetFromWindow(arg1);
27798
27799 wxPyEndAllowThreads(__tstate);
27800 if (PyErr_Occurred()) SWIG_fail;
27801 }
27802 resultobj = SWIG_FromInt((int)result);
27803 return resultobj;
27804 fail:
27805 return NULL;
27806 }
27807
27808
27809 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27810 PyObject *resultobj;
27811 wxDisplay *arg1 = (wxDisplay *) 0 ;
27812 bool result;
27813 PyObject * obj0 = 0 ;
27814 char *kwnames[] = {
27815 (char *) "self", NULL
27816 };
27817
27818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27821 {
27822 PyThreadState* __tstate = wxPyBeginAllowThreads();
27823 result = (bool)((wxDisplay const *)arg1)->IsOk();
27824
27825 wxPyEndAllowThreads(__tstate);
27826 if (PyErr_Occurred()) SWIG_fail;
27827 }
27828 {
27829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27830 }
27831 return resultobj;
27832 fail:
27833 return NULL;
27834 }
27835
27836
27837 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27838 PyObject *resultobj;
27839 wxDisplay *arg1 = (wxDisplay *) 0 ;
27840 wxRect result;
27841 PyObject * obj0 = 0 ;
27842 char *kwnames[] = {
27843 (char *) "self", NULL
27844 };
27845
27846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27849 {
27850 PyThreadState* __tstate = wxPyBeginAllowThreads();
27851 result = ((wxDisplay const *)arg1)->GetGeometry();
27852
27853 wxPyEndAllowThreads(__tstate);
27854 if (PyErr_Occurred()) SWIG_fail;
27855 }
27856 {
27857 wxRect * resultptr;
27858 resultptr = new wxRect((wxRect &) result);
27859 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27860 }
27861 return resultobj;
27862 fail:
27863 return NULL;
27864 }
27865
27866
27867 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27868 PyObject *resultobj;
27869 wxDisplay *arg1 = (wxDisplay *) 0 ;
27870 wxString result;
27871 PyObject * obj0 = 0 ;
27872 char *kwnames[] = {
27873 (char *) "self", NULL
27874 };
27875
27876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27879 {
27880 PyThreadState* __tstate = wxPyBeginAllowThreads();
27881 result = ((wxDisplay const *)arg1)->GetName();
27882
27883 wxPyEndAllowThreads(__tstate);
27884 if (PyErr_Occurred()) SWIG_fail;
27885 }
27886 {
27887 #if wxUSE_UNICODE
27888 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27889 #else
27890 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27891 #endif
27892 }
27893 return resultobj;
27894 fail:
27895 return NULL;
27896 }
27897
27898
27899 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27900 PyObject *resultobj;
27901 wxDisplay *arg1 = (wxDisplay *) 0 ;
27902 bool result;
27903 PyObject * obj0 = 0 ;
27904 char *kwnames[] = {
27905 (char *) "self", NULL
27906 };
27907
27908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27911 {
27912 PyThreadState* __tstate = wxPyBeginAllowThreads();
27913 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27914
27915 wxPyEndAllowThreads(__tstate);
27916 if (PyErr_Occurred()) SWIG_fail;
27917 }
27918 {
27919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27920 }
27921 return resultobj;
27922 fail:
27923 return NULL;
27924 }
27925
27926
27927 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
27928 PyObject *resultobj;
27929 wxDisplay *arg1 = (wxDisplay *) 0 ;
27930 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27931 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27932 PyObject *result;
27933 PyObject * obj0 = 0 ;
27934 PyObject * obj1 = 0 ;
27935 char *kwnames[] = {
27936 (char *) "self",(char *) "mode", NULL
27937 };
27938
27939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
27940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27942 if (obj1) {
27943 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27944 SWIG_POINTER_EXCEPTION | 0)) == -1)
27945 SWIG_fail;
27946 if (arg2 == NULL) {
27947 PyErr_SetString(PyExc_TypeError,"null reference");
27948 SWIG_fail;
27949 }
27950 }
27951 {
27952 PyThreadState* __tstate = wxPyBeginAllowThreads();
27953 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
27954
27955 wxPyEndAllowThreads(__tstate);
27956 if (PyErr_Occurred()) SWIG_fail;
27957 }
27958 resultobj = result;
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27966 PyObject *resultobj;
27967 wxDisplay *arg1 = (wxDisplay *) 0 ;
27968 wxVideoMode result;
27969 PyObject * obj0 = 0 ;
27970 char *kwnames[] = {
27971 (char *) "self", NULL
27972 };
27973
27974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
27975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27977 {
27978 PyThreadState* __tstate = wxPyBeginAllowThreads();
27979 result = ((wxDisplay const *)arg1)->GetCurrentMode();
27980
27981 wxPyEndAllowThreads(__tstate);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
27984 {
27985 wxVideoMode * resultptr;
27986 resultptr = new wxVideoMode((wxVideoMode &) result);
27987 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
27988 }
27989 return resultobj;
27990 fail:
27991 return NULL;
27992 }
27993
27994
27995 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27996 PyObject *resultobj;
27997 wxDisplay *arg1 = (wxDisplay *) 0 ;
27998 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27999 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28000 bool result;
28001 PyObject * obj0 = 0 ;
28002 PyObject * obj1 = 0 ;
28003 char *kwnames[] = {
28004 (char *) "self",(char *) "mode", NULL
28005 };
28006
28007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28010 if (obj1) {
28011 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28012 SWIG_POINTER_EXCEPTION | 0)) == -1)
28013 SWIG_fail;
28014 if (arg2 == NULL) {
28015 PyErr_SetString(PyExc_TypeError,"null reference");
28016 SWIG_fail;
28017 }
28018 }
28019 {
28020 PyThreadState* __tstate = wxPyBeginAllowThreads();
28021 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28022
28023 wxPyEndAllowThreads(__tstate);
28024 if (PyErr_Occurred()) SWIG_fail;
28025 }
28026 {
28027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28028 }
28029 return resultobj;
28030 fail:
28031 return NULL;
28032 }
28033
28034
28035 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28036 PyObject *resultobj;
28037 wxDisplay *arg1 = (wxDisplay *) 0 ;
28038 PyObject * obj0 = 0 ;
28039 char *kwnames[] = {
28040 (char *) "self", NULL
28041 };
28042
28043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28046 {
28047 PyThreadState* __tstate = wxPyBeginAllowThreads();
28048 (arg1)->ResetMode();
28049
28050 wxPyEndAllowThreads(__tstate);
28051 if (PyErr_Occurred()) SWIG_fail;
28052 }
28053 Py_INCREF(Py_None); resultobj = Py_None;
28054 return resultobj;
28055 fail:
28056 return NULL;
28057 }
28058
28059
28060 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28061 PyObject *obj;
28062 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28063 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28064 Py_INCREF(obj);
28065 return Py_BuildValue((char *)"");
28066 }
28067 static PyMethodDef SwigMethods[] = {
28068 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28069 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28070 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28071 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28072 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28073 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28074 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28075 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28076 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28077 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28078 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28079 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28080 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28081 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28082 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28083 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28084 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28085 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28086 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28087 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28088 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28089 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28090 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28091 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28092 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28093 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28094 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28095 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28096 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28097 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28098 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
28099 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28100 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28101 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28102 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28103 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28104 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28105 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28106 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28107 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28108 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28109 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28110 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28111 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28112 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28113 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28114 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28115 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28116 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28117 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28118 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28119 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28120 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28121 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28122 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28123 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28124 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28125 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28126 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28127 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28128 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28129 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28130 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28131 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28132 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28133 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28134 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28135 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28136 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28137 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28138 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28139 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28140 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28141 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28142 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28143 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28144 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28147 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28148 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28150 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28153 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28154 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28156 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28158 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28159 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28160 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28162 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28166 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28169 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28170 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28171 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28173 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28174 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28175 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28176 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28177 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28178 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28179 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28180 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28182 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28183 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28188 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28193 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28196 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28197 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28203 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28207 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28208 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28209 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28210 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28211 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28212 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28213 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28214 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28215 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28216 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28218 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28220 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28221 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28222 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28225 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28226 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28228 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28229 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28232 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28234 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28237 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28238 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28239 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28240 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28241 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28242 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28243 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28244 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28245 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28246 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28249 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28259 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28261 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28263 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28265 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28272 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28278 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28291 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28296 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28299 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28316 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28324 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28370 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28398 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS },
28399 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS },
28401 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS },
28403 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS },
28404 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28406 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28422 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28438 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28452 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28461 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28504 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28507 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28510 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28514 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28606 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28607 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28608 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28609 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28610 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28611 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28612 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28613 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28614 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28615 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28626 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28671 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28705 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28713 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28714 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28719 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28728 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28732 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28735 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28738 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28743 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28746 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28750 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28753 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28757 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28763 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28767 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28771 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28781 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28792 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28800 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28808 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28821 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28825 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28843 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28844 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28846 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28852 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28857 { NULL, NULL }
28858 };
28859
28860
28861 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28862
28863 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28864 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28865 }
28866 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28867 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28868 }
28869 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28870 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28871 }
28872 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28873 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28874 }
28875 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28876 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28877 }
28878 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28879 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28880 }
28881 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28882 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28883 }
28884 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28885 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28886 }
28887 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28888 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28889 }
28890 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28891 return (void *)((wxEvent *) ((wxPyEvent *) x));
28892 }
28893 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28894 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28895 }
28896 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28897 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28898 }
28899 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28900 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28901 }
28902 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28903 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28904 }
28905 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28906 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28907 }
28908 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28909 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28910 }
28911 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28912 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28913 }
28914 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28915 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28916 }
28917 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28918 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28919 }
28920 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28921 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28922 }
28923 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28924 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28925 }
28926 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
28927 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
28928 }
28929 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
28930 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
28931 }
28932 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
28933 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
28934 }
28935 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
28936 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
28937 }
28938 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
28939 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28940 }
28941 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
28942 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
28943 }
28944 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
28945 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
28946 }
28947 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
28948 return (void *)((wxEvent *) ((wxFocusEvent *) x));
28949 }
28950 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
28951 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
28952 }
28953 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
28954 return (void *)((wxEvent *) ((wxProcessEvent *) x));
28955 }
28956 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
28957 return (void *)((wxEvent *) ((wxShowEvent *) x));
28958 }
28959 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
28960 return (void *)((wxEvent *) ((wxCommandEvent *) x));
28961 }
28962 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
28963 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
28964 }
28965 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
28966 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28967 }
28968 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
28969 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
28970 }
28971 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
28972 return (void *)((wxEvent *) ((wxKeyEvent *) x));
28973 }
28974 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
28975 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
28976 }
28977 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
28978 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
28979 }
28980 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
28981 return (void *)((wxConfigBase *) ((wxConfig *) x));
28982 }
28983 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
28984 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28985 }
28986 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
28987 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
28988 }
28989 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
28990 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
28991 }
28992 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
28993 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
28994 }
28995 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
28996 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
28997 }
28998 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
28999 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29000 }
29001 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29002 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29003 }
29004 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29005 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29006 }
29007 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29008 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29009 }
29010 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29011 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29012 }
29013 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29014 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29015 }
29016 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29017 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29018 }
29019 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29020 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29021 }
29022 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29023 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29024 }
29025 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29026 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29027 }
29028 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29029 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29030 }
29031 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29032 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29033 }
29034 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29035 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29036 }
29037 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29038 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29039 }
29040 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29041 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29042 }
29043 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29044 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29045 }
29046 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29047 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29048 }
29049 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29050 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29051 }
29052 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29053 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29054 }
29055 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29056 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29057 }
29058 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29059 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29060 }
29061 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29062 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29063 }
29064 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29065 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29066 }
29067 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29068 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29069 }
29070 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29071 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29072 }
29073 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29074 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29075 }
29076 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29077 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29078 }
29079 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29080 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29081 }
29082 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29083 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29084 }
29085 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29086 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29087 }
29088 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29089 return (void *)((wxObject *) ((wxSizerItem *) x));
29090 }
29091 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29092 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29093 }
29094 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29095 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29096 }
29097 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29098 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29099 }
29100 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29101 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29102 }
29103 static void *_p_wxSizerTo_p_wxObject(void *x) {
29104 return (void *)((wxObject *) ((wxSizer *) x));
29105 }
29106 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29107 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29108 }
29109 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29110 return (void *)((wxObject *) ((wxFileHistory *) x));
29111 }
29112 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29113 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29114 }
29115 static void *_p_wxEventTo_p_wxObject(void *x) {
29116 return (void *)((wxObject *) ((wxEvent *) x));
29117 }
29118 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29119 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29120 }
29121 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29122 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29123 }
29124 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29125 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29126 }
29127 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29128 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29129 }
29130 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29131 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29132 }
29133 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29134 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29135 }
29136 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29137 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29138 }
29139 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29140 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29141 }
29142 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29143 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29144 }
29145 static void *_p_wxControlTo_p_wxObject(void *x) {
29146 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29147 }
29148 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29149 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29150 }
29151 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29152 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29153 }
29154 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29155 return (void *)((wxObject *) ((wxFSFile *) x));
29156 }
29157 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29158 return (void *)((wxObject *) ((wxClipboard *) x));
29159 }
29160 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29161 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29162 }
29163 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29164 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29165 }
29166 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29167 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29168 }
29169 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29170 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29171 }
29172 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29173 return (void *)((wxObject *) ((wxToolTip *) x));
29174 }
29175 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29176 return (void *)((wxObject *) ((wxMenuItem *) x));
29177 }
29178 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29179 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29180 }
29181 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29182 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29183 }
29184 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29185 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29186 }
29187 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29188 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29189 }
29190 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29191 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29192 }
29193 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29194 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29195 }
29196 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29197 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29198 }
29199 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29200 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29201 }
29202 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29203 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29204 }
29205 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29206 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29207 }
29208 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29209 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29210 }
29211 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29212 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29213 }
29214 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29215 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29216 }
29217 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29218 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29219 }
29220 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29221 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29222 }
29223 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29224 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29225 }
29226 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29227 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29228 }
29229 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29230 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29231 }
29232 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29233 return (void *)((wxObject *) ((wxImageHandler *) x));
29234 }
29235 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29236 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29237 }
29238 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29239 return (void *)((wxObject *) ((wxEvtHandler *) x));
29240 }
29241 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29242 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29243 }
29244 static void *_p_wxImageTo_p_wxObject(void *x) {
29245 return (void *)((wxObject *) ((wxImage *) x));
29246 }
29247 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29248 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29249 }
29250 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29251 return (void *)((wxObject *) ((wxSystemOptions *) x));
29252 }
29253 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29254 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29255 }
29256 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29257 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29258 }
29259 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29260 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29261 }
29262 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29263 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29264 }
29265 static void *_p_wxWindowTo_p_wxObject(void *x) {
29266 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29267 }
29268 static void *_p_wxMenuTo_p_wxObject(void *x) {
29269 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29270 }
29271 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29272 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29273 }
29274 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29275 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29276 }
29277 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29278 return (void *)((wxObject *) ((wxFileSystem *) x));
29279 }
29280 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29281 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29282 }
29283 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29284 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29285 }
29286 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29287 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29288 }
29289 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29290 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29291 }
29292 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29293 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29294 }
29295 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29296 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29297 }
29298 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29299 return (void *)((wxObject *) ((wxBusyInfo *) x));
29300 }
29301 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29302 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29303 }
29304 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29305 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29306 }
29307 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29308 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29309 }
29310 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29311 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29312 }
29313 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29314 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29315 }
29316 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29317 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29318 }
29319 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29320 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29321 }
29322 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29323 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29324 }
29325 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29326 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29327 }
29328 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29329 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29330 }
29331 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29332 return (void *)((wxLog *) ((wxLogStderr *) x));
29333 }
29334 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29335 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29336 }
29337 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29338 return (void *)((wxLog *) ((wxLogWindow *) x));
29339 }
29340 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29341 return (void *)((wxLog *) ((wxLogChain *) x));
29342 }
29343 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29344 return (void *)((wxLog *) ((wxLogGui *) x));
29345 }
29346 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29347 return (void *)((wxLog *) ((wxPyLog *) x));
29348 }
29349 static void *_p_wxControlTo_p_wxWindow(void *x) {
29350 return (void *)((wxWindow *) ((wxControl *) x));
29351 }
29352 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29353 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29354 }
29355 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29356 return (void *)((wxWindow *) ((wxMenuBar *) x));
29357 }
29358 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29359 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29360 }
29361 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29362 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29363 }
29364 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}};
29365 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}};
29366 static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29367 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}};
29368 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}};
29369 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}};
29370 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}};
29371 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}};
29372 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}};
29373 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}};
29374 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}};
29375 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}};
29376 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}};
29377 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}};
29378 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}};
29379 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}};
29380 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}};
29381 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}};
29382 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}};
29383 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}};
29384 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}};
29385 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}};
29386 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}};
29387 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}};
29388 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}};
29389 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}};
29390 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}};
29391 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}};
29392 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}};
29393 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}};
29394 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}};
29395 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}};
29396 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}};
29397 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}};
29398 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}};
29399 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}};
29400 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}};
29401 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}};
29402 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}};
29403 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}};
29404 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}};
29405 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}};
29406 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}};
29407 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}};
29408 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}};
29409 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}};
29410 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}};
29411 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}};
29412 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}};
29413 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}};
29414 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}};
29415 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}};
29416 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}};
29417 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}};
29418 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}};
29419 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}};
29420 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}};
29421 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}};
29422 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}};
29423 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}};
29424 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}};
29425 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}};
29426 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}};
29427 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}};
29428 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}};
29429 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}};
29430 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}};
29431 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}};
29432 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}};
29433 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}};
29434 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}};
29435 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}};
29436 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}};
29437 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}};
29438 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}};
29439 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}};
29440 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}};
29441 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}};
29442 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}};
29443 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}};
29444 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}};
29445 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}};
29446 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}};
29447 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}};
29448 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}};
29449 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}};
29450 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}};
29451
29452 static swig_type_info *swig_types_initial[] = {
29453 _swigt__p_wxLogChain,
29454 _swigt__p_wxMutexGuiLocker,
29455 _swigt__p_wxMetafile,
29456 _swigt__p_wxFileHistory,
29457 _swigt__p_wxLog,
29458 _swigt__p_wxDateTime__TimeZone,
29459 _swigt__p_wxMenu,
29460 _swigt__p_wxEvent,
29461 _swigt__p_wxConfigBase,
29462 _swigt__p_wxDisplay,
29463 _swigt__p_wxFileType,
29464 _swigt__p_wxLogGui,
29465 _swigt__p_wxFont,
29466 _swigt__p_wxDataFormat,
29467 _swigt__p_wxTimerEvent,
29468 _swigt__p_wxCaret,
29469 _swigt__p_int,
29470 _swigt__p_wxSize,
29471 _swigt__p_wxClipboard,
29472 _swigt__p_wxStopWatch,
29473 _swigt__p_wxDC,
29474 _swigt__p_wxClipboardLocker,
29475 _swigt__p_wxIcon,
29476 _swigt__p_wxLogStderr,
29477 _swigt__p_wxLogTextCtrl,
29478 _swigt__p_wxTextCtrl,
29479 _swigt__p_wxBusyCursor,
29480 _swigt__p_wxPyTextDataObject,
29481 _swigt__p_wxBitmapDataObject,
29482 _swigt__p_wxTextDataObject,
29483 _swigt__p_wxDataObject,
29484 _swigt__p_wxPyBitmapDataObject,
29485 _swigt__p_wxFileDataObject,
29486 _swigt__p_wxCustomDataObject,
29487 _swigt__p_wxURLDataObject,
29488 _swigt__p_wxMetafileDataObject,
29489 _swigt__p_wxSound,
29490 _swigt__p_wxTimerRunner,
29491 _swigt__p_wxLogWindow,
29492 _swigt__p_wxTimeSpan,
29493 _swigt__p_wxArrayString,
29494 _swigt__p_wxWindowDisabler,
29495 _swigt__p_wxToolTip,
29496 _swigt__p_wxDataObjectComposite,
29497 _swigt__p_wxFileConfig,
29498 _swigt__p_wxSystemSettings,
29499 _swigt__p_wxVideoMode,
29500 _swigt__p_wxPyDataObjectSimple,
29501 _swigt__p_wxDataObjectSimple,
29502 _swigt__p_wxEvtHandler,
29503 _swigt__p_wxRect,
29504 _swigt__p_char,
29505 _swigt__p_wxSingleInstanceChecker,
29506 _swigt__p_wxFileTypeInfo,
29507 _swigt__p_wxFrame,
29508 _swigt__p_wxTimer,
29509 _swigt__p_wxMimeTypesManager,
29510 _swigt__p_wxPyArtProvider,
29511 _swigt__p_wxPyTipProvider,
29512 _swigt__p_wxTipProvider,
29513 _swigt__p_wxJoystick,
29514 _swigt__p_wxSystemOptions,
29515 _swigt__p_wxPoint,
29516 _swigt__p_wxJoystickEvent,
29517 _swigt__p_wxCursor,
29518 _swigt__p_wxObject,
29519 _swigt__p_wxOutputStream,
29520 _swigt__p_wxDateTime,
29521 _swigt__p_wxPyDropSource,
29522 _swigt__p_wxWindow,
29523 _swigt__p_wxString,
29524 _swigt__p_wxPyProcess,
29525 _swigt__p_wxBitmap,
29526 _swigt__p_wxConfig,
29527 _swigt__p_wxChar,
29528 _swigt__p_wxBusyInfo,
29529 _swigt__p_wxPyDropTarget,
29530 _swigt__p_wxPyTextDropTarget,
29531 _swigt__p_wxPyFileDropTarget,
29532 _swigt__p_wxProcessEvent,
29533 _swigt__p_wxPyLog,
29534 _swigt__p_wxLogNull,
29535 _swigt__p_wxColour,
29536 _swigt__p_wxByte,
29537 _swigt__p_wxConfigPathChanger,
29538 _swigt__p_wxPyTimer,
29539 _swigt__p_wxDateSpan,
29540 0
29541 };
29542
29543
29544 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29545
29546 static swig_const_info swig_const_table[] = {
29547 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29548 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29549 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29550 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29551 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29552 {0}};
29553
29554 #ifdef __cplusplus
29555 }
29556 #endif
29557
29558 #ifdef __cplusplus
29559 extern "C"
29560 #endif
29561 SWIGEXPORT(void) SWIG_init(void) {
29562 static PyObject *SWIG_globals = 0;
29563 static int typeinit = 0;
29564 PyObject *m, *d;
29565 int i;
29566 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29567 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29568 d = PyModule_GetDict(m);
29569
29570 if (!typeinit) {
29571 for (i = 0; swig_types_initial[i]; i++) {
29572 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29573 }
29574 typeinit = 1;
29575 }
29576 SWIG_InstallConstants(d,swig_const_table);
29577
29578 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29579 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29580 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29581 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29582 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29583 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29584 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29585 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29586 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29587 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29588 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29589 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29590 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29591 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29592 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29593 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29594 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29595 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29596 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29597 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29598 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29599 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29600 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29601 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29602 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29603 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29604 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29605 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29606 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29607 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29608 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29609 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29610 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29611 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29612 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29613 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29614 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29615 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29616 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29617 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29618 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29619 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29620 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29621 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29622 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29623 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29624 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29625 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29626 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29627 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29628 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29629 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29630 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29631 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29632 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29633 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29634 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29635 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29636 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29637 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29638 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29639 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29640 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29641 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29642 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29643 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29644 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29645 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29646 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29647 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29648 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29649 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29650 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29651 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29652 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29653 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29654 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29655 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29656 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29657 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29658 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29659 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29660 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29661 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29662 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29663 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29664 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29665 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29666 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29667 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29668 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29669 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29670 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29671 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29672 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29673 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29674 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29675 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29676 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29677 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29678 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29679 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29680 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29681 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29682 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29683 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29684 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29685 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29686 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29687 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29688 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29689 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29690 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29691 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29692 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29693 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29694 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29695 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29696 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29697 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29698 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29699 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29700 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29701 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29702 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29703 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29704 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29705 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29706 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29707 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29708 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29709 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29710 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29711 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29712 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29713 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29714 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29715 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29716 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29717 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29718 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29719 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29720 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29721 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29722 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29723 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29724 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29725 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29726 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29727 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29728
29729 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29730
29731 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29732 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29733 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29734 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29735 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29736 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29737 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29738 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29739 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29740 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29741 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29742 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29743 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29744 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29745 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29746 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29747 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29748 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29749 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29750 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29751 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29752 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29753 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29754 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29755 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29756 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29757 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29758 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29759 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29760 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29761 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29762 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29763 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29764 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29765 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29766 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29767 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29768 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29769 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29770 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29771 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29772 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29773 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29774 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29775 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29776 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29777 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29778 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29779 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29780 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29781 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29782 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29783 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29784 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29785 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29786 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29787 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29788 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29789
29790 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29791
29792 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29793 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29794 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29795 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29796 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29797 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29798 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29799 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29800 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29801 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29802 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29803 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29804 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29805 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29806 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29807 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29808 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29809 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29810 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29811 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29812 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29813 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29814 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29815 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29816 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29817 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29818 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29819 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29820 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29821 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29822 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29823 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29824 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29825 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29826 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29827 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29828 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29829 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29830 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29831 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29832 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29833 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29834 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29835 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29836 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29837 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29838 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29839 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29840 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29841 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29842 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29843 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29844 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29845 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29846 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29847 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29848 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29849 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29850 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29851 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29852 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29853 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29854 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29855 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29856 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29857 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29858 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29859 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29860 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29861 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29862 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29863 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29864 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29865 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29866 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29867 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29868 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29869 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29870 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29871 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29872 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29873 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29874 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29875 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29876 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29877 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29878 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29879 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29880 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29881 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29882 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29883 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29884 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29885 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29886 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29887 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29888 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29889 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29890 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29891 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29892 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29893 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29894 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29895 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29896 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29897 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29898 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29899 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29900 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29901 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29902 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29903 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29904 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29905 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29906 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29907 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29908 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29909 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29910 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29911 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29912 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29913 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29914 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29915 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29916 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29917 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29918 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29919 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29920 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29921 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29922 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29923 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29924 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29925 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
29926 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
29927 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
29928 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
29929 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
29930 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
29931 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
29932 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
29933 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
29934 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
29935 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
29936 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
29937 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
29938 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
29939 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
29940 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
29941 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
29942 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
29943 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
29944 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
29945 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
29946 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
29947 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
29948 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
29949 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
29950 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
29951 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
29952 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
29953 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
29954 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
29955 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
29956 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
29957 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
29958 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
29959 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
29960 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
29961 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
29962 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
29963 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
29964 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
29965 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
29966 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
29967 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
29968 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
29969 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
29970 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
29971 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
29972 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
29973 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
29974 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
29975 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
29976 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
29977 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
29978 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
29979 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
29980 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
29981 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
29982 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
29983 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
29984 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
29985 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
29986 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
29987 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
29988 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
29989 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
29990 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
29991 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
29992
29993 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
29994 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
29995 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
29996 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
29997
29998 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
29999 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30000 }
30001