]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/misc_wrap.cpp
Remove some obsolete window styles, added a new sizer flag
[wxWidgets.git] / wxPython / src / mac / misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxMetafile swig_types[2]
212 #define SWIGTYPE_p_wxFileHistory swig_types[3]
213 #define SWIGTYPE_p_wxLog swig_types[4]
214 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215 #define SWIGTYPE_p_wxMenu swig_types[6]
216 #define SWIGTYPE_p_wxEvent swig_types[7]
217 #define SWIGTYPE_p_wxConfigBase swig_types[8]
218 #define SWIGTYPE_p_wxDisplay swig_types[9]
219 #define SWIGTYPE_p_wxFileType swig_types[10]
220 #define SWIGTYPE_p_wxLogGui swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxDataFormat swig_types[13]
223 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
224 #define SWIGTYPE_p_wxCaret swig_types[15]
225 #define SWIGTYPE_p_int swig_types[16]
226 #define SWIGTYPE_p_wxSize swig_types[17]
227 #define SWIGTYPE_p_wxClipboard swig_types[18]
228 #define SWIGTYPE_p_wxStopWatch swig_types[19]
229 #define SWIGTYPE_p_wxDC swig_types[20]
230 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231 #define SWIGTYPE_p_wxIcon swig_types[22]
232 #define SWIGTYPE_p_wxLogStderr swig_types[23]
233 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
235 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
236 #define SWIGTYPE_p_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 bool wxSound_Create__SWIG_1(wxSound *self,int size,wxByte const *data){
874 bool blocked = wxPyBeginBlockThreads();
875 PyErr_SetString(PyExc_NotImplementedError,
876 "Create from data is not available on this platform.");
877 wxPyEndBlockThreads(blocked);
878 return False;
879 }
880 void Sound_Stop(){ wxPyRaiseNotImplemented(); }
881
882 #include <wx/mimetype.h>
883
884 PyObject *wxFileType_GetMimeType(wxFileType *self){
885 wxString str;
886 if (self->GetMimeType(&str))
887 return wx2PyString(str);
888 else
889 RETURN_NONE();
890 }
891 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
892 wxArrayString arr;
893 if (self->GetMimeTypes(arr))
894 return wxArrayString2PyList_helper(arr);
895 else
896 RETURN_NONE();
897 }
898 PyObject *wxFileType_GetExtensions(wxFileType *self){
899 wxArrayString arr;
900 if (self->GetExtensions(arr))
901 return wxArrayString2PyList_helper(arr);
902 else
903 RETURN_NONE();
904 }
905 wxIcon *wxFileType_GetIcon(wxFileType *self){
906 wxIconLocation loc;
907 if (self->GetIcon(&loc))
908 return new wxIcon(loc);
909 else
910 return NULL;
911 }
912 PyObject *wxFileType_GetIconInfo(wxFileType *self){
913 wxIconLocation loc;
914 if (self->GetIcon(&loc)) {
915 wxString iconFile = loc.GetFileName();
916 int iconIndex = -1;
917
918
919
920 // Make a tuple and put the values in it
921 bool blocked = wxPyBeginBlockThreads();
922 PyObject* tuple = PyTuple_New(3);
923 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
924 wxT("wxIcon"), True));
925 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
926 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
927 wxPyEndBlockThreads(blocked);
928 return tuple;
929 }
930 else
931 RETURN_NONE();
932 }
933 PyObject *wxFileType_GetDescription(wxFileType *self){
934 wxString str;
935 if (self->GetDescription(&str))
936 return wx2PyString(str);
937 else
938 RETURN_NONE();
939 }
940 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
941 wxString str;
942 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
943 return wx2PyString(str);
944 else
945 RETURN_NONE();
946 }
947 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
948 wxString str;
949 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
950 return wx2PyString(str);
951 else
952 RETURN_NONE();
953 }
954 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
955 wxArrayString verbs;
956 wxArrayString commands;
957 if (self->GetAllCommands(&verbs, &commands,
958 wxFileType::MessageParameters(filename, mimetype))) {
959 bool blocked = wxPyBeginBlockThreads();
960 PyObject* tuple = PyTuple_New(2);
961 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
962 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
963 wxPyEndBlockThreads(blocked);
964 return tuple;
965 }
966 else
967 RETURN_NONE();
968 }
969 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
970 return wxFileType::ExpandCommand(command,
971 wxFileType::MessageParameters(filename, mimetype));
972 }
973 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
974 wxArrayString arr;
975 self->EnumAllFileTypes(arr);
976 return wxArrayString2PyList_helper(arr);
977 }
978
979 #include <wx/artprov.h>
980
981 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
982 static const wxString wxPyART_MENU(wxART_MENU);
983 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
984 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
985 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
986 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
987 static const wxString wxPyART_OTHER(wxART_OTHER);
988 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
989 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
990 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
991 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
992 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
993 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
994 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
995 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
996 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
997 static const wxString wxPyART_GO_UP(wxART_GO_UP);
998 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
999 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1000 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1001 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1002 static const wxString wxPyART_PRINT(wxART_PRINT);
1003 static const wxString wxPyART_HELP(wxART_HELP);
1004 static const wxString wxPyART_TIP(wxART_TIP);
1005 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1006 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1007 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1008 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1009 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1010 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1011 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1012 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1013 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1014 static const wxString wxPyART_ERROR(wxART_ERROR);
1015 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1016 static const wxString wxPyART_WARNING(wxART_WARNING);
1017 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1018 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1019 // Python aware wxArtProvider
1020 class wxPyArtProvider : public wxArtProvider {
1021 public:
1022
1023 virtual wxBitmap CreateBitmap(const wxArtID& id,
1024 const wxArtClient& client,
1025 const wxSize& size) {
1026 wxBitmap rval = wxNullBitmap;
1027 bool blocked = wxPyBeginBlockThreads();
1028 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1029 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1030 PyObject* ro;
1031 wxBitmap* ptr;
1032 PyObject* s1, *s2;
1033 s1 = wx2PyString(id);
1034 s2 = wx2PyString(client);
1035 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1036 Py_DECREF(so);
1037 Py_DECREF(s1);
1038 Py_DECREF(s2);
1039 if (ro) {
1040 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1041 rval = *ptr;
1042 Py_DECREF(ro);
1043 }
1044 }
1045 wxPyEndBlockThreads(blocked);
1046 return rval;
1047 }
1048
1049 PYPRIVATE;
1050 };
1051
1052 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1053
1054
1055
1056 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1057 PyObject* ret = PyTuple_New(3);
1058 if (ret) {
1059 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1060 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1061 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1062 }
1063 return ret;
1064 }
1065
1066 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1067 bool cont;
1068 long index = 0;
1069 wxString value;
1070
1071 cont = self->GetFirstGroup(value, index);
1072 return __EnumerationHelper(cont, value, index);
1073 }
1074 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1075 bool cont;
1076 wxString value;
1077
1078 cont = self->GetNextGroup(value, index);
1079 return __EnumerationHelper(cont, value, index);
1080 }
1081 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1082 bool cont;
1083 long index = 0;
1084 wxString value;
1085
1086 cont = self->GetFirstEntry(value, index);
1087 return __EnumerationHelper(cont, value, index);
1088 }
1089 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1090 bool cont;
1091 wxString value;
1092
1093 cont = self->GetNextEntry(value, index);
1094 return __EnumerationHelper(cont, value, index);
1095 }
1096 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1097 long rv;
1098 self->Read(key, &rv, defaultVal);
1099 return rv;
1100 }
1101
1102 SWIGSTATICINLINE(double)
1103 SWIG_AsDouble(PyObject *obj)
1104 {
1105 if (PyNumber_Check(obj))
1106 return PyFloat_AsDouble(obj);
1107 else {
1108 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1109 obj->ob_type->tp_name);
1110 PyErr_SetObject(PyExc_TypeError, errmsg);
1111 Py_DECREF(errmsg);
1112 return 0;
1113 }
1114 }
1115
1116
1117 SWIGSTATICINLINE(int)
1118 SWIG_CheckDouble(PyObject* obj)
1119 {
1120 SWIG_AsDouble(obj);
1121 if (PyErr_Occurred()) {
1122 PyErr_Clear();
1123 return 0;
1124 } else {
1125 return 1;
1126 }
1127 }
1128
1129 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1130 double rv;
1131 self->Read(key, &rv, defaultVal);
1132 return rv;
1133 }
1134 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1135 bool rv;
1136 self->Read(key, &rv, defaultVal);
1137 return rv;
1138 }
1139
1140 #include <wx/datetime.h>
1141
1142
1143 static const wxString wxPyDateFormatStr(wxT("%c"));
1144 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1145
1146 #define LOCAL_TZ wxDateTime::Local
1147
1148
1149 #if UINT_MAX < LONG_MAX
1150 #define SWIG_FromUnsignedInt SWIG_FromLong
1151 #else
1152 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1153 #endif
1154
1155 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1156 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1157 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1158 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1159 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1160 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; }
1161 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; }
1162 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; }
1163 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; }
1164 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; }
1165 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; }
1166 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1167 const wxChar* rv;
1168 const wxChar* _date = date;
1169 rv = self->ParseRfc822Date(_date);
1170 if (rv == NULL) return -1;
1171 return rv - _date;
1172 }
1173 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1174 const wxChar* rv;
1175 const wxChar* _date = date;
1176 rv = self->ParseFormat(_date, format, dateDef);
1177 if (rv == NULL) return -1;
1178 return rv - _date;
1179 }
1180 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1181 const wxChar* rv;
1182 const wxChar* _datetime = datetime;
1183 rv = self->ParseDateTime(_datetime);
1184 if (rv == NULL) return -1;
1185 return rv - _datetime;
1186 }
1187 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1188 const wxChar* rv;
1189 const wxChar* _date = date;
1190 rv = self->ParseDate(_date);
1191 if (rv == NULL) return -1;
1192 return rv - _date;
1193 }
1194 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1195 const wxChar* rv;
1196 const wxChar* _time = time;
1197 rv = self->ParseTime(_time);
1198 if (rv == NULL) return -1;
1199 return rv - _time;
1200 }
1201 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1202 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1203 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1204 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1205 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1206 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1207 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1208 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1209 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1210 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1211 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1212 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1213 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1214 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1215 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1216 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1217
1218 #include <wx/dataobj.h>
1219
1220 // Create a new class for wxPython to use
1221 class wxPyDataObjectSimple : public wxDataObjectSimple {
1222 public:
1223 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1224 : wxDataObjectSimple(format) {}
1225
1226 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1227 bool GetDataHere(void *buf) const;
1228 bool SetData(size_t len, const void *buf) const;
1229 PYPRIVATE;
1230 };
1231
1232 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1233
1234 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1235 // We need to get the data for this object and write it to buf. I think
1236 // the best way to do this for wxPython is to have the Python method
1237 // return either a string or None and then act appropriately with the
1238 // C++ version.
1239
1240 bool rval = False;
1241 bool blocked = wxPyBeginBlockThreads();
1242 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1243 PyObject* ro;
1244 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1245 if (ro) {
1246 rval = (ro != Py_None && PyString_Check(ro));
1247 if (rval)
1248 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1249 Py_DECREF(ro);
1250 }
1251 }
1252 wxPyEndBlockThreads(blocked);
1253 return rval;
1254 }
1255
1256 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1257 // For this one we simply need to make a string from buf and len
1258 // and send it to the Python method.
1259 bool rval = False;
1260 bool blocked = wxPyBeginBlockThreads();
1261 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1262 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1263 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1264 Py_DECREF(data);
1265 }
1266 wxPyEndBlockThreads(blocked);
1267 return rval;
1268 }
1269
1270 // Create a new class for wxPython to use
1271 class wxPyTextDataObject : public wxTextDataObject {
1272 public:
1273 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1274 : wxTextDataObject(text) {}
1275
1276 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1277 DEC_PYCALLBACK_STRING__const(GetText);
1278 DEC_PYCALLBACK__STRING(SetText);
1279 PYPRIVATE;
1280 };
1281
1282 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1283 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1284 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1285
1286
1287 // Create a new class for wxPython to use
1288 class wxPyBitmapDataObject : public wxBitmapDataObject {
1289 public:
1290 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1291 : wxBitmapDataObject(bitmap) {}
1292
1293 wxBitmap GetBitmap() const;
1294 void SetBitmap(const wxBitmap& bitmap);
1295 PYPRIVATE;
1296 };
1297
1298 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1299 wxBitmap* rval = &wxNullBitmap;
1300 bool blocked = wxPyBeginBlockThreads();
1301 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1302 PyObject* ro;
1303 wxBitmap* ptr;
1304 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1305 if (ro) {
1306 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1307 rval = ptr;
1308 Py_DECREF(ro);
1309 }
1310 }
1311 wxPyEndBlockThreads(blocked);
1312 return *rval;
1313 }
1314
1315 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1316 bool blocked = wxPyBeginBlockThreads();
1317 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1318 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1319 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1320 Py_DECREF(bo);
1321 }
1322 wxPyEndBlockThreads(blocked);
1323 }
1324
1325 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1326 if (PyString_Check(data)) {
1327 // for Python we just call SetData here since we always need it to make a copy.
1328 self->SetData(PyString_Size(data), PyString_AsString(data));
1329 }
1330 else {
1331 // raise a TypeError if not a string
1332 PyErr_SetString(PyExc_TypeError, "String expected.");
1333 }
1334 }
1335 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1336 if (PyString_Check(data)) {
1337 return self->SetData(PyString_Size(data), PyString_AsString(data));
1338 }
1339 else {
1340 // raise a TypeError if not a string
1341 PyErr_SetString(PyExc_TypeError, "String expected.");
1342 return False;
1343 }
1344 }
1345 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1346 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1347 }
1348
1349 #include <wx/metafile.h>
1350
1351
1352 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1353
1354
1355 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1356 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1357 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1358 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1359 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1360
1361
1362 class wxPyTextDropTarget : public wxTextDropTarget {
1363 public:
1364 wxPyTextDropTarget() {}
1365
1366 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1367
1368 DEC_PYCALLBACK__(OnLeave);
1369 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1370 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1371 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1372 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1373
1374 PYPRIVATE;
1375 };
1376
1377 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1378 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1379 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1380 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1381 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1382 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1383
1384
1385
1386 class wxPyFileDropTarget : public wxFileDropTarget {
1387 public:
1388 wxPyFileDropTarget() {}
1389
1390 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1391
1392 DEC_PYCALLBACK__(OnLeave);
1393 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1394 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1395 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1396 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1397
1398 PYPRIVATE;
1399 };
1400
1401 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1402 const wxArrayString& filenames) {
1403 bool rval = False;
1404 bool blocked = wxPyBeginBlockThreads();
1405 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1406 PyObject* list = wxArrayString2PyList_helper(filenames);
1407 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1408 Py_DECREF(list);
1409 }
1410 wxPyEndBlockThreads(blocked);
1411 return rval;
1412 }
1413
1414
1415
1416 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1417 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1418 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1419 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1420 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1421
1422
1423
1424
1425 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1426
1427 #include "wx/display.h"
1428
1429 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1430 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1431 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1432 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1433 PyObject* pyList = NULL;
1434 wxArrayVideoModes arr = self->GetModes(mode);
1435 bool blocked = wxPyBeginBlockThreads();
1436 pyList = PyList_New(0);
1437 for (int i=0; i < arr.GetCount(); i++) {
1438 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1439 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1440 PyList_Append(pyList, pyObj);
1441 }
1442 wxPyEndBlockThreads(blocked);
1443 return pyList;
1444 }
1445 #ifdef __cplusplus
1446 extern "C" {
1447 #endif
1448 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1449 PyObject *resultobj;
1450 int arg1 ;
1451 wxColour result;
1452 PyObject * obj0 = 0 ;
1453 char *kwnames[] = {
1454 (char *) "index", NULL
1455 };
1456
1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1458 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1459 if (PyErr_Occurred()) SWIG_fail;
1460 {
1461 PyThreadState* __tstate = wxPyBeginAllowThreads();
1462 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1463
1464 wxPyEndAllowThreads(__tstate);
1465 if (PyErr_Occurred()) SWIG_fail;
1466 }
1467 {
1468 wxColour * resultptr;
1469 resultptr = new wxColour((wxColour &) result);
1470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1471 }
1472 return resultobj;
1473 fail:
1474 return NULL;
1475 }
1476
1477
1478 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
1479 PyObject *resultobj;
1480 int arg1 ;
1481 wxFont result;
1482 PyObject * obj0 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "index", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1488 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1489 if (PyErr_Occurred()) SWIG_fail;
1490 {
1491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1492 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1493
1494 wxPyEndAllowThreads(__tstate);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 }
1497 {
1498 wxFont * resultptr;
1499 resultptr = new wxFont((wxFont &) result);
1500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1501 }
1502 return resultobj;
1503 fail:
1504 return NULL;
1505 }
1506
1507
1508 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
1509 PyObject *resultobj;
1510 int arg1 ;
1511 int result;
1512 PyObject * obj0 = 0 ;
1513 char *kwnames[] = {
1514 (char *) "index", NULL
1515 };
1516
1517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1518 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1519 if (PyErr_Occurred()) SWIG_fail;
1520 {
1521 PyThreadState* __tstate = wxPyBeginAllowThreads();
1522 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1523
1524 wxPyEndAllowThreads(__tstate);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 }
1527 resultobj = SWIG_FromInt((int)result);
1528 return resultobj;
1529 fail:
1530 return NULL;
1531 }
1532
1533
1534 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
1535 PyObject *resultobj;
1536 int arg1 ;
1537 bool result;
1538 PyObject * obj0 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "index", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1544 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1545 if (PyErr_Occurred()) SWIG_fail;
1546 {
1547 PyThreadState* __tstate = wxPyBeginAllowThreads();
1548 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1549
1550 wxPyEndAllowThreads(__tstate);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 }
1553 {
1554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1555 }
1556 return resultobj;
1557 fail:
1558 return NULL;
1559 }
1560
1561
1562 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1563 PyObject *resultobj;
1564 int result;
1565 char *kwnames[] = {
1566 NULL
1567 };
1568
1569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1570 {
1571 PyThreadState* __tstate = wxPyBeginAllowThreads();
1572 result = (int)wxSystemSettings::GetScreenType();
1573
1574 wxPyEndAllowThreads(__tstate);
1575 if (PyErr_Occurred()) SWIG_fail;
1576 }
1577 resultobj = SWIG_FromInt((int)result);
1578 return resultobj;
1579 fail:
1580 return NULL;
1581 }
1582
1583
1584 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1585 PyObject *resultobj;
1586 int arg1 ;
1587 PyObject * obj0 = 0 ;
1588 char *kwnames[] = {
1589 (char *) "screen", NULL
1590 };
1591
1592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1593 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1594 if (PyErr_Occurred()) SWIG_fail;
1595 {
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
1602 Py_INCREF(Py_None); resultobj = Py_None;
1603 return resultobj;
1604 fail:
1605 return NULL;
1606 }
1607
1608
1609 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
1610 PyObject *obj;
1611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1612 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1613 Py_INCREF(obj);
1614 return Py_BuildValue((char *)"");
1615 }
1616 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
1617 PyObject *resultobj;
1618 wxSystemOptions *result;
1619 char *kwnames[] = {
1620 NULL
1621 };
1622
1623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1624 {
1625 PyThreadState* __tstate = wxPyBeginAllowThreads();
1626 result = (wxSystemOptions *)new wxSystemOptions();
1627
1628 wxPyEndAllowThreads(__tstate);
1629 if (PyErr_Occurred()) SWIG_fail;
1630 }
1631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1632 return resultobj;
1633 fail:
1634 return NULL;
1635 }
1636
1637
1638 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
1639 PyObject *resultobj;
1640 wxString *arg1 = 0 ;
1641 wxString *arg2 = 0 ;
1642 bool temp1 = False ;
1643 bool temp2 = False ;
1644 PyObject * obj0 = 0 ;
1645 PyObject * obj1 = 0 ;
1646 char *kwnames[] = {
1647 (char *) "name",(char *) "value", NULL
1648 };
1649
1650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1651 {
1652 arg1 = wxString_in_helper(obj0);
1653 if (arg1 == NULL) SWIG_fail;
1654 temp1 = True;
1655 }
1656 {
1657 arg2 = wxString_in_helper(obj1);
1658 if (arg2 == NULL) SWIG_fail;
1659 temp2 = True;
1660 }
1661 {
1662 PyThreadState* __tstate = wxPyBeginAllowThreads();
1663 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1664
1665 wxPyEndAllowThreads(__tstate);
1666 if (PyErr_Occurred()) SWIG_fail;
1667 }
1668 Py_INCREF(Py_None); resultobj = Py_None;
1669 {
1670 if (temp1)
1671 delete arg1;
1672 }
1673 {
1674 if (temp2)
1675 delete arg2;
1676 }
1677 return resultobj;
1678 fail:
1679 {
1680 if (temp1)
1681 delete arg1;
1682 }
1683 {
1684 if (temp2)
1685 delete arg2;
1686 }
1687 return NULL;
1688 }
1689
1690
1691 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
1692 PyObject *resultobj;
1693 wxString *arg1 = 0 ;
1694 int arg2 ;
1695 bool temp1 = False ;
1696 PyObject * obj0 = 0 ;
1697 PyObject * obj1 = 0 ;
1698 char *kwnames[] = {
1699 (char *) "name",(char *) "value", NULL
1700 };
1701
1702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1703 {
1704 arg1 = wxString_in_helper(obj0);
1705 if (arg1 == NULL) SWIG_fail;
1706 temp1 = True;
1707 }
1708 arg2 = (int) SWIG_AsInt(obj1);
1709 if (PyErr_Occurred()) SWIG_fail;
1710 {
1711 PyThreadState* __tstate = wxPyBeginAllowThreads();
1712 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1713
1714 wxPyEndAllowThreads(__tstate);
1715 if (PyErr_Occurred()) SWIG_fail;
1716 }
1717 Py_INCREF(Py_None); resultobj = Py_None;
1718 {
1719 if (temp1)
1720 delete arg1;
1721 }
1722 return resultobj;
1723 fail:
1724 {
1725 if (temp1)
1726 delete arg1;
1727 }
1728 return NULL;
1729 }
1730
1731
1732 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
1733 PyObject *resultobj;
1734 wxString *arg1 = 0 ;
1735 wxString result;
1736 bool temp1 = False ;
1737 PyObject * obj0 = 0 ;
1738 char *kwnames[] = {
1739 (char *) "name", NULL
1740 };
1741
1742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1743 {
1744 arg1 = wxString_in_helper(obj0);
1745 if (arg1 == NULL) SWIG_fail;
1746 temp1 = True;
1747 }
1748 {
1749 PyThreadState* __tstate = wxPyBeginAllowThreads();
1750 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1751
1752 wxPyEndAllowThreads(__tstate);
1753 if (PyErr_Occurred()) SWIG_fail;
1754 }
1755 {
1756 #if wxUSE_UNICODE
1757 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1758 #else
1759 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1760 #endif
1761 }
1762 {
1763 if (temp1)
1764 delete arg1;
1765 }
1766 return resultobj;
1767 fail:
1768 {
1769 if (temp1)
1770 delete arg1;
1771 }
1772 return NULL;
1773 }
1774
1775
1776 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
1777 PyObject *resultobj;
1778 wxString *arg1 = 0 ;
1779 int result;
1780 bool temp1 = False ;
1781 PyObject * obj0 = 0 ;
1782 char *kwnames[] = {
1783 (char *) "name", NULL
1784 };
1785
1786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1787 {
1788 arg1 = wxString_in_helper(obj0);
1789 if (arg1 == NULL) SWIG_fail;
1790 temp1 = True;
1791 }
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 resultobj = SWIG_FromInt((int)result);
1800 {
1801 if (temp1)
1802 delete arg1;
1803 }
1804 return resultobj;
1805 fail:
1806 {
1807 if (temp1)
1808 delete arg1;
1809 }
1810 return NULL;
1811 }
1812
1813
1814 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
1815 PyObject *resultobj;
1816 wxString *arg1 = 0 ;
1817 bool result;
1818 bool temp1 = False ;
1819 PyObject * obj0 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "name", NULL
1822 };
1823
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1825 {
1826 arg1 = wxString_in_helper(obj0);
1827 if (arg1 == NULL) SWIG_fail;
1828 temp1 = True;
1829 }
1830 {
1831 PyThreadState* __tstate = wxPyBeginAllowThreads();
1832 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1833
1834 wxPyEndAllowThreads(__tstate);
1835 if (PyErr_Occurred()) SWIG_fail;
1836 }
1837 {
1838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1839 }
1840 {
1841 if (temp1)
1842 delete arg1;
1843 }
1844 return resultobj;
1845 fail:
1846 {
1847 if (temp1)
1848 delete arg1;
1849 }
1850 return NULL;
1851 }
1852
1853
1854 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
1855 PyObject *obj;
1856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1857 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1858 Py_INCREF(obj);
1859 return Py_BuildValue((char *)"");
1860 }
1861 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
1862 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1863 return 1;
1864 }
1865
1866
1867 static PyObject *_wrap_FileSelectorPromptStr_get() {
1868 PyObject *pyobj;
1869
1870 {
1871 #if wxUSE_UNICODE
1872 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1873 #else
1874 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1875 #endif
1876 }
1877 return pyobj;
1878 }
1879
1880
1881 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
1882 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1883 return 1;
1884 }
1885
1886
1887 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1888 PyObject *pyobj;
1889
1890 {
1891 #if wxUSE_UNICODE
1892 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1893 #else
1894 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1895 #endif
1896 }
1897 return pyobj;
1898 }
1899
1900
1901 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
1902 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1903 return 1;
1904 }
1905
1906
1907 static PyObject *_wrap_DirSelectorPromptStr_get() {
1908 PyObject *pyobj;
1909
1910 {
1911 #if wxUSE_UNICODE
1912 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1913 #else
1914 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1915 #endif
1916 }
1917 return pyobj;
1918 }
1919
1920
1921 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
1922 PyObject *resultobj;
1923 long result;
1924 char *kwnames[] = {
1925 NULL
1926 };
1927
1928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1929 {
1930 PyThreadState* __tstate = wxPyBeginAllowThreads();
1931 result = (long)wxNewId();
1932
1933 wxPyEndAllowThreads(__tstate);
1934 if (PyErr_Occurred()) SWIG_fail;
1935 }
1936 resultobj = SWIG_FromLong((long)result);
1937 return resultobj;
1938 fail:
1939 return NULL;
1940 }
1941
1942
1943 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
1944 PyObject *resultobj;
1945 long arg1 ;
1946 PyObject * obj0 = 0 ;
1947 char *kwnames[] = {
1948 (char *) "id", NULL
1949 };
1950
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
1952 arg1 = (long) SWIG_AsLong(obj0);
1953 if (PyErr_Occurred()) SWIG_fail;
1954 {
1955 PyThreadState* __tstate = wxPyBeginAllowThreads();
1956 wxRegisterId(arg1);
1957
1958 wxPyEndAllowThreads(__tstate);
1959 if (PyErr_Occurred()) SWIG_fail;
1960 }
1961 Py_INCREF(Py_None); resultobj = Py_None;
1962 return resultobj;
1963 fail:
1964 return NULL;
1965 }
1966
1967
1968 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
1969 PyObject *resultobj;
1970 long result;
1971 char *kwnames[] = {
1972 NULL
1973 };
1974
1975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1976 {
1977 PyThreadState* __tstate = wxPyBeginAllowThreads();
1978 result = (long)wxGetCurrentId();
1979
1980 wxPyEndAllowThreads(__tstate);
1981 if (PyErr_Occurred()) SWIG_fail;
1982 }
1983 resultobj = SWIG_FromLong((long)result);
1984 return resultobj;
1985 fail:
1986 return NULL;
1987 }
1988
1989
1990 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
1991 PyObject *resultobj;
1992 char *kwnames[] = {
1993 NULL
1994 };
1995
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1997 {
1998 PyThreadState* __tstate = wxPyBeginAllowThreads();
1999 wxBell();
2000
2001 wxPyEndAllowThreads(__tstate);
2002 if (PyErr_Occurred()) SWIG_fail;
2003 }
2004 Py_INCREF(Py_None); resultobj = Py_None;
2005 return resultobj;
2006 fail:
2007 return NULL;
2008 }
2009
2010
2011 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
2012 PyObject *resultobj;
2013 char *kwnames[] = {
2014 NULL
2015 };
2016
2017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2018 {
2019 PyThreadState* __tstate = wxPyBeginAllowThreads();
2020 wxEndBusyCursor();
2021
2022 wxPyEndAllowThreads(__tstate);
2023 if (PyErr_Occurred()) SWIG_fail;
2024 }
2025 Py_INCREF(Py_None); resultobj = Py_None;
2026 return resultobj;
2027 fail:
2028 return NULL;
2029 }
2030
2031
2032 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
2033 PyObject *resultobj;
2034 bool arg1 = (bool) True ;
2035 long result;
2036 PyObject * obj0 = 0 ;
2037 char *kwnames[] = {
2038 (char *) "resetTimer", NULL
2039 };
2040
2041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2042 if (obj0) {
2043 arg1 = (bool) SWIG_AsBool(obj0);
2044 if (PyErr_Occurred()) SWIG_fail;
2045 }
2046 {
2047 PyThreadState* __tstate = wxPyBeginAllowThreads();
2048 result = (long)wxGetElapsedTime(arg1);
2049
2050 wxPyEndAllowThreads(__tstate);
2051 if (PyErr_Occurred()) SWIG_fail;
2052 }
2053 resultobj = SWIG_FromLong((long)result);
2054 return resultobj;
2055 fail:
2056 return NULL;
2057 }
2058
2059
2060 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
2061 PyObject *resultobj;
2062 int *arg1 = (int *) 0 ;
2063 int *arg2 = (int *) 0 ;
2064 int temp1 ;
2065 int temp2 ;
2066 char *kwnames[] = {
2067 NULL
2068 };
2069
2070 arg1 = &temp1;
2071 arg2 = &temp2;
2072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2073 {
2074 PyThreadState* __tstate = wxPyBeginAllowThreads();
2075 wxGetMousePosition(arg1,arg2);
2076
2077 wxPyEndAllowThreads(__tstate);
2078 if (PyErr_Occurred()) SWIG_fail;
2079 }
2080 Py_INCREF(Py_None); resultobj = Py_None;
2081 {
2082 PyObject *o = PyInt_FromLong((long) (*arg1));
2083 resultobj = t_output_helper(resultobj,o);
2084 }
2085 {
2086 PyObject *o = PyInt_FromLong((long) (*arg2));
2087 resultobj = t_output_helper(resultobj,o);
2088 }
2089 return resultobj;
2090 fail:
2091 return NULL;
2092 }
2093
2094
2095 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
2096 PyObject *resultobj;
2097 bool result;
2098 char *kwnames[] = {
2099 NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2103 {
2104 PyThreadState* __tstate = wxPyBeginAllowThreads();
2105 result = (bool)wxIsBusy();
2106
2107 wxPyEndAllowThreads(__tstate);
2108 if (PyErr_Occurred()) SWIG_fail;
2109 }
2110 {
2111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2112 }
2113 return resultobj;
2114 fail:
2115 return NULL;
2116 }
2117
2118
2119 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
2120 PyObject *resultobj;
2121 wxString result;
2122 char *kwnames[] = {
2123 NULL
2124 };
2125
2126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2127 {
2128 PyThreadState* __tstate = wxPyBeginAllowThreads();
2129 result = wxNow();
2130
2131 wxPyEndAllowThreads(__tstate);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 }
2134 {
2135 #if wxUSE_UNICODE
2136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2137 #else
2138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2139 #endif
2140 }
2141 return resultobj;
2142 fail:
2143 return NULL;
2144 }
2145
2146
2147 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
2148 PyObject *resultobj;
2149 wxString const &arg1_defvalue = wxPyEmptyString ;
2150 wxString *arg1 = (wxString *) &arg1_defvalue ;
2151 bool result;
2152 bool temp1 = False ;
2153 PyObject * obj0 = 0 ;
2154 char *kwnames[] = {
2155 (char *) "command", NULL
2156 };
2157
2158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2159 if (obj0) {
2160 {
2161 arg1 = wxString_in_helper(obj0);
2162 if (arg1 == NULL) SWIG_fail;
2163 temp1 = True;
2164 }
2165 }
2166 {
2167 PyThreadState* __tstate = wxPyBeginAllowThreads();
2168 result = (bool)wxShell((wxString const &)*arg1);
2169
2170 wxPyEndAllowThreads(__tstate);
2171 if (PyErr_Occurred()) SWIG_fail;
2172 }
2173 {
2174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2175 }
2176 {
2177 if (temp1)
2178 delete arg1;
2179 }
2180 return resultobj;
2181 fail:
2182 {
2183 if (temp1)
2184 delete arg1;
2185 }
2186 return NULL;
2187 }
2188
2189
2190 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
2191 PyObject *resultobj;
2192 char *kwnames[] = {
2193 NULL
2194 };
2195
2196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2197 {
2198 PyThreadState* __tstate = wxPyBeginAllowThreads();
2199 wxStartTimer();
2200
2201 wxPyEndAllowThreads(__tstate);
2202 if (PyErr_Occurred()) SWIG_fail;
2203 }
2204 Py_INCREF(Py_None); resultobj = Py_None;
2205 return resultobj;
2206 fail:
2207 return NULL;
2208 }
2209
2210
2211 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
2212 PyObject *resultobj;
2213 int *arg1 = (int *) 0 ;
2214 int *arg2 = (int *) 0 ;
2215 int result;
2216 int temp1 ;
2217 int temp2 ;
2218 char *kwnames[] = {
2219 NULL
2220 };
2221
2222 arg1 = &temp1;
2223 arg2 = &temp2;
2224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
2227 result = (int)wxGetOsVersion(arg1,arg2);
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) SWIG_fail;
2231 }
2232 resultobj = SWIG_FromInt((int)result);
2233 {
2234 PyObject *o = PyInt_FromLong((long) (*arg1));
2235 resultobj = t_output_helper(resultobj,o);
2236 }
2237 {
2238 PyObject *o = PyInt_FromLong((long) (*arg2));
2239 resultobj = t_output_helper(resultobj,o);
2240 }
2241 return resultobj;
2242 fail:
2243 return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
2248 PyObject *resultobj;
2249 wxString result;
2250 char *kwnames[] = {
2251 NULL
2252 };
2253
2254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 result = wxGetOsDescription();
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) SWIG_fail;
2261 }
2262 {
2263 #if wxUSE_UNICODE
2264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2265 #else
2266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2267 #endif
2268 }
2269 return resultobj;
2270 fail:
2271 return NULL;
2272 }
2273
2274
2275 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
2276 PyObject *resultobj;
2277 long result;
2278 char *kwnames[] = {
2279 NULL
2280 };
2281
2282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2283 {
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 result = (long)wxGetFreeMemory();
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) SWIG_fail;
2289 }
2290 resultobj = SWIG_FromLong((long)result);
2291 return resultobj;
2292 fail:
2293 return NULL;
2294 }
2295
2296
2297 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
2298 PyObject *resultobj;
2299 int arg1 ;
2300 bool result;
2301 PyObject * obj0 = 0 ;
2302 char *kwnames[] = {
2303 (char *) "wFlags", NULL
2304 };
2305
2306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2307 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 {
2310 PyThreadState* __tstate = wxPyBeginAllowThreads();
2311 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2312
2313 wxPyEndAllowThreads(__tstate);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 }
2316 {
2317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2318 }
2319 return resultobj;
2320 fail:
2321 return NULL;
2322 }
2323
2324
2325 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
2326 PyObject *resultobj;
2327 int arg1 ;
2328 PyObject * obj0 = 0 ;
2329 char *kwnames[] = {
2330 (char *) "secs", NULL
2331 };
2332
2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2334 arg1 = (int) SWIG_AsInt(obj0);
2335 if (PyErr_Occurred()) SWIG_fail;
2336 {
2337 PyThreadState* __tstate = wxPyBeginAllowThreads();
2338 wxSleep(arg1);
2339
2340 wxPyEndAllowThreads(__tstate);
2341 if (PyErr_Occurred()) SWIG_fail;
2342 }
2343 Py_INCREF(Py_None); resultobj = Py_None;
2344 return resultobj;
2345 fail:
2346 return NULL;
2347 }
2348
2349
2350 static PyObject *_wrap_Usleep(PyObject *, PyObject *args, PyObject *kwargs) {
2351 PyObject *resultobj;
2352 unsigned long arg1 ;
2353 PyObject * obj0 = 0 ;
2354 char *kwnames[] = {
2355 (char *) "milliseconds", NULL
2356 };
2357
2358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2359 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2360 if (PyErr_Occurred()) SWIG_fail;
2361 {
2362 PyThreadState* __tstate = wxPyBeginAllowThreads();
2363 wxUsleep(arg1);
2364
2365 wxPyEndAllowThreads(__tstate);
2366 if (PyErr_Occurred()) SWIG_fail;
2367 }
2368 Py_INCREF(Py_None); resultobj = Py_None;
2369 return resultobj;
2370 fail:
2371 return NULL;
2372 }
2373
2374
2375 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
2376 PyObject *resultobj;
2377 bool arg1 ;
2378 PyObject * obj0 = 0 ;
2379 char *kwnames[] = {
2380 (char *) "enable", NULL
2381 };
2382
2383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2384 arg1 = (bool) SWIG_AsBool(obj0);
2385 if (PyErr_Occurred()) SWIG_fail;
2386 {
2387 PyThreadState* __tstate = wxPyBeginAllowThreads();
2388 wxEnableTopLevelWindows(arg1);
2389
2390 wxPyEndAllowThreads(__tstate);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 }
2393 Py_INCREF(Py_None); resultobj = Py_None;
2394 return resultobj;
2395 fail:
2396 return NULL;
2397 }
2398
2399
2400 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
2401 PyObject *resultobj;
2402 wxString *arg1 = 0 ;
2403 wxString result;
2404 bool temp1 = False ;
2405 PyObject * obj0 = 0 ;
2406 char *kwnames[] = {
2407 (char *) "in", NULL
2408 };
2409
2410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2411 {
2412 arg1 = wxString_in_helper(obj0);
2413 if (arg1 == NULL) SWIG_fail;
2414 temp1 = True;
2415 }
2416 {
2417 PyThreadState* __tstate = wxPyBeginAllowThreads();
2418 result = wxStripMenuCodes((wxString const &)*arg1);
2419
2420 wxPyEndAllowThreads(__tstate);
2421 if (PyErr_Occurred()) SWIG_fail;
2422 }
2423 {
2424 #if wxUSE_UNICODE
2425 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2426 #else
2427 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2428 #endif
2429 }
2430 {
2431 if (temp1)
2432 delete arg1;
2433 }
2434 return resultobj;
2435 fail:
2436 {
2437 if (temp1)
2438 delete arg1;
2439 }
2440 return NULL;
2441 }
2442
2443
2444 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
2445 PyObject *resultobj;
2446 wxString result;
2447 char *kwnames[] = {
2448 NULL
2449 };
2450
2451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2452 {
2453 PyThreadState* __tstate = wxPyBeginAllowThreads();
2454 result = wxGetEmailAddress();
2455
2456 wxPyEndAllowThreads(__tstate);
2457 if (PyErr_Occurred()) SWIG_fail;
2458 }
2459 {
2460 #if wxUSE_UNICODE
2461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2462 #else
2463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2464 #endif
2465 }
2466 return resultobj;
2467 fail:
2468 return NULL;
2469 }
2470
2471
2472 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2473 PyObject *resultobj;
2474 wxString result;
2475 char *kwnames[] = {
2476 NULL
2477 };
2478
2479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2480 {
2481 PyThreadState* __tstate = wxPyBeginAllowThreads();
2482 result = wxGetHostName();
2483
2484 wxPyEndAllowThreads(__tstate);
2485 if (PyErr_Occurred()) SWIG_fail;
2486 }
2487 {
2488 #if wxUSE_UNICODE
2489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2490 #else
2491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2492 #endif
2493 }
2494 return resultobj;
2495 fail:
2496 return NULL;
2497 }
2498
2499
2500 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2501 PyObject *resultobj;
2502 wxString result;
2503 char *kwnames[] = {
2504 NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2508 {
2509 PyThreadState* __tstate = wxPyBeginAllowThreads();
2510 result = wxGetFullHostName();
2511
2512 wxPyEndAllowThreads(__tstate);
2513 if (PyErr_Occurred()) SWIG_fail;
2514 }
2515 {
2516 #if wxUSE_UNICODE
2517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2518 #else
2519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2520 #endif
2521 }
2522 return resultobj;
2523 fail:
2524 return NULL;
2525 }
2526
2527
2528 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
2529 PyObject *resultobj;
2530 wxString result;
2531 char *kwnames[] = {
2532 NULL
2533 };
2534
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2536 {
2537 PyThreadState* __tstate = wxPyBeginAllowThreads();
2538 result = wxGetUserId();
2539
2540 wxPyEndAllowThreads(__tstate);
2541 if (PyErr_Occurred()) SWIG_fail;
2542 }
2543 {
2544 #if wxUSE_UNICODE
2545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2546 #else
2547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2548 #endif
2549 }
2550 return resultobj;
2551 fail:
2552 return NULL;
2553 }
2554
2555
2556 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
2557 PyObject *resultobj;
2558 wxString result;
2559 char *kwnames[] = {
2560 NULL
2561 };
2562
2563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2564 {
2565 PyThreadState* __tstate = wxPyBeginAllowThreads();
2566 result = wxGetUserName();
2567
2568 wxPyEndAllowThreads(__tstate);
2569 if (PyErr_Occurred()) SWIG_fail;
2570 }
2571 {
2572 #if wxUSE_UNICODE
2573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2574 #else
2575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2576 #endif
2577 }
2578 return resultobj;
2579 fail:
2580 return NULL;
2581 }
2582
2583
2584 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
2585 PyObject *resultobj;
2586 wxString result;
2587 char *kwnames[] = {
2588 NULL
2589 };
2590
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2592 {
2593 PyThreadState* __tstate = wxPyBeginAllowThreads();
2594 result = wxGetHomeDir();
2595
2596 wxPyEndAllowThreads(__tstate);
2597 if (PyErr_Occurred()) SWIG_fail;
2598 }
2599 {
2600 #if wxUSE_UNICODE
2601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2602 #else
2603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2604 #endif
2605 }
2606 return resultobj;
2607 fail:
2608 return NULL;
2609 }
2610
2611
2612 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
2613 PyObject *resultobj;
2614 wxString const &arg1_defvalue = wxPyEmptyString ;
2615 wxString *arg1 = (wxString *) &arg1_defvalue ;
2616 wxString result;
2617 bool temp1 = False ;
2618 PyObject * obj0 = 0 ;
2619 char *kwnames[] = {
2620 (char *) "user", NULL
2621 };
2622
2623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2624 if (obj0) {
2625 {
2626 arg1 = wxString_in_helper(obj0);
2627 if (arg1 == NULL) SWIG_fail;
2628 temp1 = True;
2629 }
2630 }
2631 {
2632 PyThreadState* __tstate = wxPyBeginAllowThreads();
2633 result = wxGetUserHome((wxString const &)*arg1);
2634
2635 wxPyEndAllowThreads(__tstate);
2636 if (PyErr_Occurred()) SWIG_fail;
2637 }
2638 {
2639 #if wxUSE_UNICODE
2640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2641 #else
2642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2643 #endif
2644 }
2645 {
2646 if (temp1)
2647 delete arg1;
2648 }
2649 return resultobj;
2650 fail:
2651 {
2652 if (temp1)
2653 delete arg1;
2654 }
2655 return NULL;
2656 }
2657
2658
2659 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
2660 PyObject *resultobj;
2661 unsigned long result;
2662 char *kwnames[] = {
2663 NULL
2664 };
2665
2666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2667 {
2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
2669 result = (unsigned long)wxGetProcessId();
2670
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 }
2674 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2675 return resultobj;
2676 fail:
2677 return NULL;
2678 }
2679
2680
2681 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 char *kwnames[] = {
2684 NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2688 {
2689 PyThreadState* __tstate = wxPyBeginAllowThreads();
2690 wxTrap();
2691
2692 wxPyEndAllowThreads(__tstate);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 }
2695 Py_INCREF(Py_None); resultobj = Py_None;
2696 return resultobj;
2697 fail:
2698 return NULL;
2699 }
2700
2701
2702 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
2703 PyObject *resultobj;
2704 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2705 wxString *arg1 = (wxString *) &arg1_defvalue ;
2706 wxString const &arg2_defvalue = wxPyEmptyString ;
2707 wxString *arg2 = (wxString *) &arg2_defvalue ;
2708 wxString const &arg3_defvalue = wxPyEmptyString ;
2709 wxString *arg3 = (wxString *) &arg3_defvalue ;
2710 wxString const &arg4_defvalue = wxPyEmptyString ;
2711 wxString *arg4 = (wxString *) &arg4_defvalue ;
2712 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2713 wxString *arg5 = (wxString *) &arg5_defvalue ;
2714 int arg6 = (int) 0 ;
2715 wxWindow *arg7 = (wxWindow *) NULL ;
2716 int arg8 = (int) -1 ;
2717 int arg9 = (int) -1 ;
2718 wxString result;
2719 bool temp1 = False ;
2720 bool temp2 = False ;
2721 bool temp3 = False ;
2722 bool temp4 = False ;
2723 bool temp5 = False ;
2724 PyObject * obj0 = 0 ;
2725 PyObject * obj1 = 0 ;
2726 PyObject * obj2 = 0 ;
2727 PyObject * obj3 = 0 ;
2728 PyObject * obj4 = 0 ;
2729 PyObject * obj5 = 0 ;
2730 PyObject * obj6 = 0 ;
2731 PyObject * obj7 = 0 ;
2732 PyObject * obj8 = 0 ;
2733 char *kwnames[] = {
2734 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2735 };
2736
2737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2738 if (obj0) {
2739 {
2740 arg1 = wxString_in_helper(obj0);
2741 if (arg1 == NULL) SWIG_fail;
2742 temp1 = True;
2743 }
2744 }
2745 if (obj1) {
2746 {
2747 arg2 = wxString_in_helper(obj1);
2748 if (arg2 == NULL) SWIG_fail;
2749 temp2 = True;
2750 }
2751 }
2752 if (obj2) {
2753 {
2754 arg3 = wxString_in_helper(obj2);
2755 if (arg3 == NULL) SWIG_fail;
2756 temp3 = True;
2757 }
2758 }
2759 if (obj3) {
2760 {
2761 arg4 = wxString_in_helper(obj3);
2762 if (arg4 == NULL) SWIG_fail;
2763 temp4 = True;
2764 }
2765 }
2766 if (obj4) {
2767 {
2768 arg5 = wxString_in_helper(obj4);
2769 if (arg5 == NULL) SWIG_fail;
2770 temp5 = True;
2771 }
2772 }
2773 if (obj5) {
2774 arg6 = (int) SWIG_AsInt(obj5);
2775 if (PyErr_Occurred()) SWIG_fail;
2776 }
2777 if (obj6) {
2778 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2780 }
2781 if (obj7) {
2782 arg8 = (int) SWIG_AsInt(obj7);
2783 if (PyErr_Occurred()) SWIG_fail;
2784 }
2785 if (obj8) {
2786 arg9 = (int) SWIG_AsInt(obj8);
2787 if (PyErr_Occurred()) SWIG_fail;
2788 }
2789 {
2790 PyThreadState* __tstate = wxPyBeginAllowThreads();
2791 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2792
2793 wxPyEndAllowThreads(__tstate);
2794 if (PyErr_Occurred()) SWIG_fail;
2795 }
2796 {
2797 #if wxUSE_UNICODE
2798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2799 #else
2800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2801 #endif
2802 }
2803 {
2804 if (temp1)
2805 delete arg1;
2806 }
2807 {
2808 if (temp2)
2809 delete arg2;
2810 }
2811 {
2812 if (temp3)
2813 delete arg3;
2814 }
2815 {
2816 if (temp4)
2817 delete arg4;
2818 }
2819 {
2820 if (temp5)
2821 delete arg5;
2822 }
2823 return resultobj;
2824 fail:
2825 {
2826 if (temp1)
2827 delete arg1;
2828 }
2829 {
2830 if (temp2)
2831 delete arg2;
2832 }
2833 {
2834 if (temp3)
2835 delete arg3;
2836 }
2837 {
2838 if (temp4)
2839 delete arg4;
2840 }
2841 {
2842 if (temp5)
2843 delete arg5;
2844 }
2845 return NULL;
2846 }
2847
2848
2849 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
2850 PyObject *resultobj;
2851 wxString *arg1 = 0 ;
2852 wxString *arg2 = 0 ;
2853 wxString const &arg3_defvalue = wxPyEmptyString ;
2854 wxString *arg3 = (wxString *) &arg3_defvalue ;
2855 wxWindow *arg4 = (wxWindow *) NULL ;
2856 wxString result;
2857 bool temp1 = False ;
2858 bool temp2 = False ;
2859 bool temp3 = False ;
2860 PyObject * obj0 = 0 ;
2861 PyObject * obj1 = 0 ;
2862 PyObject * obj2 = 0 ;
2863 PyObject * obj3 = 0 ;
2864 char *kwnames[] = {
2865 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2866 };
2867
2868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2869 {
2870 arg1 = wxString_in_helper(obj0);
2871 if (arg1 == NULL) SWIG_fail;
2872 temp1 = True;
2873 }
2874 {
2875 arg2 = wxString_in_helper(obj1);
2876 if (arg2 == NULL) SWIG_fail;
2877 temp2 = True;
2878 }
2879 if (obj2) {
2880 {
2881 arg3 = wxString_in_helper(obj2);
2882 if (arg3 == NULL) SWIG_fail;
2883 temp3 = True;
2884 }
2885 }
2886 if (obj3) {
2887 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2889 }
2890 {
2891 PyThreadState* __tstate = wxPyBeginAllowThreads();
2892 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2893
2894 wxPyEndAllowThreads(__tstate);
2895 if (PyErr_Occurred()) SWIG_fail;
2896 }
2897 {
2898 #if wxUSE_UNICODE
2899 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2900 #else
2901 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2902 #endif
2903 }
2904 {
2905 if (temp1)
2906 delete arg1;
2907 }
2908 {
2909 if (temp2)
2910 delete arg2;
2911 }
2912 {
2913 if (temp3)
2914 delete arg3;
2915 }
2916 return resultobj;
2917 fail:
2918 {
2919 if (temp1)
2920 delete arg1;
2921 }
2922 {
2923 if (temp2)
2924 delete arg2;
2925 }
2926 {
2927 if (temp3)
2928 delete arg3;
2929 }
2930 return NULL;
2931 }
2932
2933
2934 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
2935 PyObject *resultobj;
2936 wxString *arg1 = 0 ;
2937 wxString *arg2 = 0 ;
2938 wxString const &arg3_defvalue = wxPyEmptyString ;
2939 wxString *arg3 = (wxString *) &arg3_defvalue ;
2940 wxWindow *arg4 = (wxWindow *) NULL ;
2941 wxString result;
2942 bool temp1 = False ;
2943 bool temp2 = False ;
2944 bool temp3 = False ;
2945 PyObject * obj0 = 0 ;
2946 PyObject * obj1 = 0 ;
2947 PyObject * obj2 = 0 ;
2948 PyObject * obj3 = 0 ;
2949 char *kwnames[] = {
2950 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2951 };
2952
2953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2954 {
2955 arg1 = wxString_in_helper(obj0);
2956 if (arg1 == NULL) SWIG_fail;
2957 temp1 = True;
2958 }
2959 {
2960 arg2 = wxString_in_helper(obj1);
2961 if (arg2 == NULL) SWIG_fail;
2962 temp2 = True;
2963 }
2964 if (obj2) {
2965 {
2966 arg3 = wxString_in_helper(obj2);
2967 if (arg3 == NULL) SWIG_fail;
2968 temp3 = True;
2969 }
2970 }
2971 if (obj3) {
2972 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2974 }
2975 {
2976 PyThreadState* __tstate = wxPyBeginAllowThreads();
2977 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2978
2979 wxPyEndAllowThreads(__tstate);
2980 if (PyErr_Occurred()) SWIG_fail;
2981 }
2982 {
2983 #if wxUSE_UNICODE
2984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2985 #else
2986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2987 #endif
2988 }
2989 {
2990 if (temp1)
2991 delete arg1;
2992 }
2993 {
2994 if (temp2)
2995 delete arg2;
2996 }
2997 {
2998 if (temp3)
2999 delete arg3;
3000 }
3001 return resultobj;
3002 fail:
3003 {
3004 if (temp1)
3005 delete arg1;
3006 }
3007 {
3008 if (temp2)
3009 delete arg2;
3010 }
3011 {
3012 if (temp3)
3013 delete arg3;
3014 }
3015 return NULL;
3016 }
3017
3018
3019 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3020 PyObject *resultobj;
3021 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3022 wxString *arg1 = (wxString *) &arg1_defvalue ;
3023 wxString const &arg2_defvalue = wxPyEmptyString ;
3024 wxString *arg2 = (wxString *) &arg2_defvalue ;
3025 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3026 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3027 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3028 wxWindow *arg5 = (wxWindow *) NULL ;
3029 wxString result;
3030 bool temp1 = False ;
3031 bool temp2 = False ;
3032 wxPoint temp4 ;
3033 PyObject * obj0 = 0 ;
3034 PyObject * obj1 = 0 ;
3035 PyObject * obj2 = 0 ;
3036 PyObject * obj3 = 0 ;
3037 PyObject * obj4 = 0 ;
3038 char *kwnames[] = {
3039 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3040 };
3041
3042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3043 if (obj0) {
3044 {
3045 arg1 = wxString_in_helper(obj0);
3046 if (arg1 == NULL) SWIG_fail;
3047 temp1 = True;
3048 }
3049 }
3050 if (obj1) {
3051 {
3052 arg2 = wxString_in_helper(obj1);
3053 if (arg2 == NULL) SWIG_fail;
3054 temp2 = True;
3055 }
3056 }
3057 if (obj2) {
3058 arg3 = (long) SWIG_AsLong(obj2);
3059 if (PyErr_Occurred()) SWIG_fail;
3060 }
3061 if (obj3) {
3062 {
3063 arg4 = &temp4;
3064 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3065 }
3066 }
3067 if (obj4) {
3068 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3070 }
3071 {
3072 PyThreadState* __tstate = wxPyBeginAllowThreads();
3073 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3074
3075 wxPyEndAllowThreads(__tstate);
3076 if (PyErr_Occurred()) SWIG_fail;
3077 }
3078 {
3079 #if wxUSE_UNICODE
3080 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3081 #else
3082 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3083 #endif
3084 }
3085 {
3086 if (temp1)
3087 delete arg1;
3088 }
3089 {
3090 if (temp2)
3091 delete arg2;
3092 }
3093 return resultobj;
3094 fail:
3095 {
3096 if (temp1)
3097 delete arg1;
3098 }
3099 {
3100 if (temp2)
3101 delete arg2;
3102 }
3103 return NULL;
3104 }
3105
3106
3107 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3108 PyObject *resultobj;
3109 wxString *arg1 = 0 ;
3110 wxString const &arg2_defvalue = wxPyEmptyString ;
3111 wxString *arg2 = (wxString *) &arg2_defvalue ;
3112 wxString const &arg3_defvalue = wxPyEmptyString ;
3113 wxString *arg3 = (wxString *) &arg3_defvalue ;
3114 wxWindow *arg4 = (wxWindow *) NULL ;
3115 int arg5 = (int) -1 ;
3116 int arg6 = (int) -1 ;
3117 bool arg7 = (bool) True ;
3118 wxString result;
3119 bool temp1 = False ;
3120 bool temp2 = False ;
3121 bool temp3 = False ;
3122 PyObject * obj0 = 0 ;
3123 PyObject * obj1 = 0 ;
3124 PyObject * obj2 = 0 ;
3125 PyObject * obj3 = 0 ;
3126 PyObject * obj4 = 0 ;
3127 PyObject * obj5 = 0 ;
3128 PyObject * obj6 = 0 ;
3129 char *kwnames[] = {
3130 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3131 };
3132
3133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3134 {
3135 arg1 = wxString_in_helper(obj0);
3136 if (arg1 == NULL) SWIG_fail;
3137 temp1 = True;
3138 }
3139 if (obj1) {
3140 {
3141 arg2 = wxString_in_helper(obj1);
3142 if (arg2 == NULL) SWIG_fail;
3143 temp2 = True;
3144 }
3145 }
3146 if (obj2) {
3147 {
3148 arg3 = wxString_in_helper(obj2);
3149 if (arg3 == NULL) SWIG_fail;
3150 temp3 = True;
3151 }
3152 }
3153 if (obj3) {
3154 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3156 }
3157 if (obj4) {
3158 arg5 = (int) SWIG_AsInt(obj4);
3159 if (PyErr_Occurred()) SWIG_fail;
3160 }
3161 if (obj5) {
3162 arg6 = (int) SWIG_AsInt(obj5);
3163 if (PyErr_Occurred()) SWIG_fail;
3164 }
3165 if (obj6) {
3166 arg7 = (bool) SWIG_AsBool(obj6);
3167 if (PyErr_Occurred()) SWIG_fail;
3168 }
3169 {
3170 PyThreadState* __tstate = wxPyBeginAllowThreads();
3171 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3172
3173 wxPyEndAllowThreads(__tstate);
3174 if (PyErr_Occurred()) SWIG_fail;
3175 }
3176 {
3177 #if wxUSE_UNICODE
3178 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3179 #else
3180 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3181 #endif
3182 }
3183 {
3184 if (temp1)
3185 delete arg1;
3186 }
3187 {
3188 if (temp2)
3189 delete arg2;
3190 }
3191 {
3192 if (temp3)
3193 delete arg3;
3194 }
3195 return resultobj;
3196 fail:
3197 {
3198 if (temp1)
3199 delete arg1;
3200 }
3201 {
3202 if (temp2)
3203 delete arg2;
3204 }
3205 {
3206 if (temp3)
3207 delete arg3;
3208 }
3209 return NULL;
3210 }
3211
3212
3213 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3214 PyObject *resultobj;
3215 wxString *arg1 = 0 ;
3216 wxString const &arg2_defvalue = wxPyEmptyString ;
3217 wxString *arg2 = (wxString *) &arg2_defvalue ;
3218 wxString const &arg3_defvalue = wxPyEmptyString ;
3219 wxString *arg3 = (wxString *) &arg3_defvalue ;
3220 wxWindow *arg4 = (wxWindow *) NULL ;
3221 wxString result;
3222 bool temp1 = False ;
3223 bool temp2 = False ;
3224 bool temp3 = False ;
3225 PyObject * obj0 = 0 ;
3226 PyObject * obj1 = 0 ;
3227 PyObject * obj2 = 0 ;
3228 PyObject * obj3 = 0 ;
3229 char *kwnames[] = {
3230 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3231 };
3232
3233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3234 {
3235 arg1 = wxString_in_helper(obj0);
3236 if (arg1 == NULL) SWIG_fail;
3237 temp1 = True;
3238 }
3239 if (obj1) {
3240 {
3241 arg2 = wxString_in_helper(obj1);
3242 if (arg2 == NULL) SWIG_fail;
3243 temp2 = True;
3244 }
3245 }
3246 if (obj2) {
3247 {
3248 arg3 = wxString_in_helper(obj2);
3249 if (arg3 == NULL) SWIG_fail;
3250 temp3 = True;
3251 }
3252 }
3253 if (obj3) {
3254 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3256 }
3257 {
3258 PyThreadState* __tstate = wxPyBeginAllowThreads();
3259 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3260
3261 wxPyEndAllowThreads(__tstate);
3262 if (PyErr_Occurred()) SWIG_fail;
3263 }
3264 {
3265 #if wxUSE_UNICODE
3266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3267 #else
3268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3269 #endif
3270 }
3271 {
3272 if (temp1)
3273 delete arg1;
3274 }
3275 {
3276 if (temp2)
3277 delete arg2;
3278 }
3279 {
3280 if (temp3)
3281 delete arg3;
3282 }
3283 return resultobj;
3284 fail:
3285 {
3286 if (temp1)
3287 delete arg1;
3288 }
3289 {
3290 if (temp2)
3291 delete arg2;
3292 }
3293 {
3294 if (temp3)
3295 delete arg3;
3296 }
3297 return NULL;
3298 }
3299
3300
3301 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
3302 PyObject *resultobj;
3303 wxString *arg1 = 0 ;
3304 wxString *arg2 = 0 ;
3305 int arg3 ;
3306 wxString *arg4 = (wxString *) 0 ;
3307 wxWindow *arg5 = (wxWindow *) NULL ;
3308 int arg6 = (int) -1 ;
3309 int arg7 = (int) -1 ;
3310 bool arg8 = (bool) True ;
3311 int arg9 = (int) 150 ;
3312 int arg10 = (int) 200 ;
3313 wxString result;
3314 bool temp1 = False ;
3315 bool temp2 = False ;
3316 PyObject * obj0 = 0 ;
3317 PyObject * obj1 = 0 ;
3318 PyObject * obj2 = 0 ;
3319 PyObject * obj3 = 0 ;
3320 PyObject * obj4 = 0 ;
3321 PyObject * obj5 = 0 ;
3322 PyObject * obj6 = 0 ;
3323 PyObject * obj7 = 0 ;
3324 PyObject * obj8 = 0 ;
3325 char *kwnames[] = {
3326 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3327 };
3328
3329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3330 {
3331 arg1 = wxString_in_helper(obj0);
3332 if (arg1 == NULL) SWIG_fail;
3333 temp1 = True;
3334 }
3335 {
3336 arg2 = wxString_in_helper(obj1);
3337 if (arg2 == NULL) SWIG_fail;
3338 temp2 = True;
3339 }
3340 {
3341 arg3 = PyList_Size(obj2);
3342 arg4 = wxString_LIST_helper(obj2);
3343 if (arg4 == NULL) SWIG_fail;
3344 }
3345 if (obj3) {
3346 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3348 }
3349 if (obj4) {
3350 arg6 = (int) SWIG_AsInt(obj4);
3351 if (PyErr_Occurred()) SWIG_fail;
3352 }
3353 if (obj5) {
3354 arg7 = (int) SWIG_AsInt(obj5);
3355 if (PyErr_Occurred()) SWIG_fail;
3356 }
3357 if (obj6) {
3358 arg8 = (bool) SWIG_AsBool(obj6);
3359 if (PyErr_Occurred()) SWIG_fail;
3360 }
3361 if (obj7) {
3362 arg9 = (int) SWIG_AsInt(obj7);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
3365 if (obj8) {
3366 arg10 = (int) SWIG_AsInt(obj8);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 }
3369 {
3370 PyThreadState* __tstate = wxPyBeginAllowThreads();
3371 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3372
3373 wxPyEndAllowThreads(__tstate);
3374 if (PyErr_Occurred()) SWIG_fail;
3375 }
3376 {
3377 #if wxUSE_UNICODE
3378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3379 #else
3380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3381 #endif
3382 }
3383 {
3384 if (temp1)
3385 delete arg1;
3386 }
3387 {
3388 if (temp2)
3389 delete arg2;
3390 }
3391 {
3392 if (arg4) delete [] arg4;
3393 }
3394 return resultobj;
3395 fail:
3396 {
3397 if (temp1)
3398 delete arg1;
3399 }
3400 {
3401 if (temp2)
3402 delete arg2;
3403 }
3404 {
3405 if (arg4) delete [] arg4;
3406 }
3407 return NULL;
3408 }
3409
3410
3411 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
3412 PyObject *resultobj;
3413 wxString *arg1 = 0 ;
3414 wxString *arg2 = 0 ;
3415 int arg3 ;
3416 wxString *arg4 = (wxString *) 0 ;
3417 wxWindow *arg5 = (wxWindow *) NULL ;
3418 int arg6 = (int) -1 ;
3419 int arg7 = (int) -1 ;
3420 bool arg8 = (bool) True ;
3421 int arg9 = (int) 150 ;
3422 int arg10 = (int) 200 ;
3423 int result;
3424 bool temp1 = False ;
3425 bool temp2 = False ;
3426 PyObject * obj0 = 0 ;
3427 PyObject * obj1 = 0 ;
3428 PyObject * obj2 = 0 ;
3429 PyObject * obj3 = 0 ;
3430 PyObject * obj4 = 0 ;
3431 PyObject * obj5 = 0 ;
3432 PyObject * obj6 = 0 ;
3433 PyObject * obj7 = 0 ;
3434 PyObject * obj8 = 0 ;
3435 char *kwnames[] = {
3436 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3437 };
3438
3439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3440 {
3441 arg1 = wxString_in_helper(obj0);
3442 if (arg1 == NULL) SWIG_fail;
3443 temp1 = True;
3444 }
3445 {
3446 arg2 = wxString_in_helper(obj1);
3447 if (arg2 == NULL) SWIG_fail;
3448 temp2 = True;
3449 }
3450 {
3451 arg3 = PyList_Size(obj2);
3452 arg4 = wxString_LIST_helper(obj2);
3453 if (arg4 == NULL) SWIG_fail;
3454 }
3455 if (obj3) {
3456 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3458 }
3459 if (obj4) {
3460 arg6 = (int) SWIG_AsInt(obj4);
3461 if (PyErr_Occurred()) SWIG_fail;
3462 }
3463 if (obj5) {
3464 arg7 = (int) SWIG_AsInt(obj5);
3465 if (PyErr_Occurred()) SWIG_fail;
3466 }
3467 if (obj6) {
3468 arg8 = (bool) SWIG_AsBool(obj6);
3469 if (PyErr_Occurred()) SWIG_fail;
3470 }
3471 if (obj7) {
3472 arg9 = (int) SWIG_AsInt(obj7);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 if (obj8) {
3476 arg10 = (int) SWIG_AsInt(obj8);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 {
3480 PyThreadState* __tstate = wxPyBeginAllowThreads();
3481 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3482
3483 wxPyEndAllowThreads(__tstate);
3484 if (PyErr_Occurred()) SWIG_fail;
3485 }
3486 resultobj = SWIG_FromInt((int)result);
3487 {
3488 if (temp1)
3489 delete arg1;
3490 }
3491 {
3492 if (temp2)
3493 delete arg2;
3494 }
3495 {
3496 if (arg4) delete [] arg4;
3497 }
3498 return resultobj;
3499 fail:
3500 {
3501 if (temp1)
3502 delete arg1;
3503 }
3504 {
3505 if (temp2)
3506 delete arg2;
3507 }
3508 {
3509 if (arg4) delete [] arg4;
3510 }
3511 return NULL;
3512 }
3513
3514
3515 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj;
3517 wxString *arg1 = 0 ;
3518 wxString const &arg2_defvalue = wxPyEmptyString ;
3519 wxString *arg2 = (wxString *) &arg2_defvalue ;
3520 int arg3 = (int) wxOK|wxCENTRE ;
3521 wxWindow *arg4 = (wxWindow *) NULL ;
3522 int arg5 = (int) -1 ;
3523 int arg6 = (int) -1 ;
3524 int result;
3525 bool temp1 = False ;
3526 bool temp2 = False ;
3527 PyObject * obj0 = 0 ;
3528 PyObject * obj1 = 0 ;
3529 PyObject * obj2 = 0 ;
3530 PyObject * obj3 = 0 ;
3531 PyObject * obj4 = 0 ;
3532 PyObject * obj5 = 0 ;
3533 char *kwnames[] = {
3534 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3535 };
3536
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3538 {
3539 arg1 = wxString_in_helper(obj0);
3540 if (arg1 == NULL) SWIG_fail;
3541 temp1 = True;
3542 }
3543 if (obj1) {
3544 {
3545 arg2 = wxString_in_helper(obj1);
3546 if (arg2 == NULL) SWIG_fail;
3547 temp2 = True;
3548 }
3549 }
3550 if (obj2) {
3551 arg3 = (int) SWIG_AsInt(obj2);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 if (obj3) {
3555 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3557 }
3558 if (obj4) {
3559 arg5 = (int) SWIG_AsInt(obj4);
3560 if (PyErr_Occurred()) SWIG_fail;
3561 }
3562 if (obj5) {
3563 arg6 = (int) SWIG_AsInt(obj5);
3564 if (PyErr_Occurred()) SWIG_fail;
3565 }
3566 {
3567 PyThreadState* __tstate = wxPyBeginAllowThreads();
3568 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3569
3570 wxPyEndAllowThreads(__tstate);
3571 if (PyErr_Occurred()) SWIG_fail;
3572 }
3573 resultobj = SWIG_FromInt((int)result);
3574 {
3575 if (temp1)
3576 delete arg1;
3577 }
3578 {
3579 if (temp2)
3580 delete arg2;
3581 }
3582 return resultobj;
3583 fail:
3584 {
3585 if (temp1)
3586 delete arg1;
3587 }
3588 {
3589 if (temp2)
3590 delete arg2;
3591 }
3592 return NULL;
3593 }
3594
3595
3596 static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3597 PyObject *resultobj;
3598 wxString *arg1 = 0 ;
3599 wxString *arg2 = 0 ;
3600 wxString *arg3 = 0 ;
3601 long arg4 ;
3602 long arg5 = (long) 0 ;
3603 long arg6 = (long) 100 ;
3604 wxWindow *arg7 = (wxWindow *) NULL ;
3605 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3606 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3607 long result;
3608 bool temp1 = False ;
3609 bool temp2 = False ;
3610 bool temp3 = False ;
3611 wxPoint temp8 ;
3612 PyObject * obj0 = 0 ;
3613 PyObject * obj1 = 0 ;
3614 PyObject * obj2 = 0 ;
3615 PyObject * obj3 = 0 ;
3616 PyObject * obj4 = 0 ;
3617 PyObject * obj5 = 0 ;
3618 PyObject * obj6 = 0 ;
3619 PyObject * obj7 = 0 ;
3620 char *kwnames[] = {
3621 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3622 };
3623
3624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3625 {
3626 arg1 = wxString_in_helper(obj0);
3627 if (arg1 == NULL) SWIG_fail;
3628 temp1 = True;
3629 }
3630 {
3631 arg2 = wxString_in_helper(obj1);
3632 if (arg2 == NULL) SWIG_fail;
3633 temp2 = True;
3634 }
3635 {
3636 arg3 = wxString_in_helper(obj2);
3637 if (arg3 == NULL) SWIG_fail;
3638 temp3 = True;
3639 }
3640 arg4 = (long) SWIG_AsLong(obj3);
3641 if (PyErr_Occurred()) SWIG_fail;
3642 if (obj4) {
3643 arg5 = (long) SWIG_AsLong(obj4);
3644 if (PyErr_Occurred()) SWIG_fail;
3645 }
3646 if (obj5) {
3647 arg6 = (long) SWIG_AsLong(obj5);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 if (obj6) {
3651 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3653 }
3654 if (obj7) {
3655 {
3656 arg8 = &temp8;
3657 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3658 }
3659 }
3660 {
3661 PyThreadState* __tstate = wxPyBeginAllowThreads();
3662 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3663
3664 wxPyEndAllowThreads(__tstate);
3665 if (PyErr_Occurred()) SWIG_fail;
3666 }
3667 resultobj = SWIG_FromLong((long)result);
3668 {
3669 if (temp1)
3670 delete arg1;
3671 }
3672 {
3673 if (temp2)
3674 delete arg2;
3675 }
3676 {
3677 if (temp3)
3678 delete arg3;
3679 }
3680 return resultobj;
3681 fail:
3682 {
3683 if (temp1)
3684 delete arg1;
3685 }
3686 {
3687 if (temp2)
3688 delete arg2;
3689 }
3690 {
3691 if (temp3)
3692 delete arg3;
3693 }
3694 return NULL;
3695 }
3696
3697
3698 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
3699 PyObject *resultobj;
3700 bool result;
3701 char *kwnames[] = {
3702 NULL
3703 };
3704
3705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3706 {
3707 PyThreadState* __tstate = wxPyBeginAllowThreads();
3708 result = (bool)wxColourDisplay();
3709
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 {
3714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3715 }
3716 return resultobj;
3717 fail:
3718 return NULL;
3719 }
3720
3721
3722 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3723 PyObject *resultobj;
3724 int result;
3725 char *kwnames[] = {
3726 NULL
3727 };
3728
3729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3730 {
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (int)wxDisplayDepth();
3733
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 resultobj = SWIG_FromInt((int)result);
3738 return resultobj;
3739 fail:
3740 return NULL;
3741 }
3742
3743
3744 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3745 PyObject *resultobj;
3746 int result;
3747 char *kwnames[] = {
3748 NULL
3749 };
3750
3751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3752 {
3753 PyThreadState* __tstate = wxPyBeginAllowThreads();
3754 result = (int)wxGetDisplayDepth();
3755
3756 wxPyEndAllowThreads(__tstate);
3757 if (PyErr_Occurred()) SWIG_fail;
3758 }
3759 resultobj = SWIG_FromInt((int)result);
3760 return resultobj;
3761 fail:
3762 return NULL;
3763 }
3764
3765
3766 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
3767 PyObject *resultobj;
3768 int *arg1 = (int *) 0 ;
3769 int *arg2 = (int *) 0 ;
3770 int temp1 ;
3771 int temp2 ;
3772 char *kwnames[] = {
3773 NULL
3774 };
3775
3776 arg1 = &temp1;
3777 arg2 = &temp2;
3778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3779 {
3780 PyThreadState* __tstate = wxPyBeginAllowThreads();
3781 wxDisplaySize(arg1,arg2);
3782
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 Py_INCREF(Py_None); resultobj = Py_None;
3787 {
3788 PyObject *o = PyInt_FromLong((long) (*arg1));
3789 resultobj = t_output_helper(resultobj,o);
3790 }
3791 {
3792 PyObject *o = PyInt_FromLong((long) (*arg2));
3793 resultobj = t_output_helper(resultobj,o);
3794 }
3795 return resultobj;
3796 fail:
3797 return NULL;
3798 }
3799
3800
3801 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
3802 PyObject *resultobj;
3803 wxSize result;
3804 char *kwnames[] = {
3805 NULL
3806 };
3807
3808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3809 {
3810 PyThreadState* __tstate = wxPyBeginAllowThreads();
3811 result = wxGetDisplaySize();
3812
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 {
3817 wxSize * resultptr;
3818 resultptr = new wxSize((wxSize &) result);
3819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3820 }
3821 return resultobj;
3822 fail:
3823 return NULL;
3824 }
3825
3826
3827 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj;
3829 int *arg1 = (int *) 0 ;
3830 int *arg2 = (int *) 0 ;
3831 int temp1 ;
3832 int temp2 ;
3833 char *kwnames[] = {
3834 NULL
3835 };
3836
3837 arg1 = &temp1;
3838 arg2 = &temp2;
3839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3840 {
3841 PyThreadState* __tstate = wxPyBeginAllowThreads();
3842 wxDisplaySizeMM(arg1,arg2);
3843
3844 wxPyEndAllowThreads(__tstate);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 Py_INCREF(Py_None); resultobj = Py_None;
3848 {
3849 PyObject *o = PyInt_FromLong((long) (*arg1));
3850 resultobj = t_output_helper(resultobj,o);
3851 }
3852 {
3853 PyObject *o = PyInt_FromLong((long) (*arg2));
3854 resultobj = t_output_helper(resultobj,o);
3855 }
3856 return resultobj;
3857 fail:
3858 return NULL;
3859 }
3860
3861
3862 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
3863 PyObject *resultobj;
3864 wxSize result;
3865 char *kwnames[] = {
3866 NULL
3867 };
3868
3869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3870 {
3871 PyThreadState* __tstate = wxPyBeginAllowThreads();
3872 result = wxGetDisplaySizeMM();
3873
3874 wxPyEndAllowThreads(__tstate);
3875 if (PyErr_Occurred()) SWIG_fail;
3876 }
3877 {
3878 wxSize * resultptr;
3879 resultptr = new wxSize((wxSize &) result);
3880 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3881 }
3882 return resultobj;
3883 fail:
3884 return NULL;
3885 }
3886
3887
3888 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
3889 PyObject *resultobj;
3890 int *arg1 = (int *) 0 ;
3891 int *arg2 = (int *) 0 ;
3892 int *arg3 = (int *) 0 ;
3893 int *arg4 = (int *) 0 ;
3894 int temp1 ;
3895 int temp2 ;
3896 int temp3 ;
3897 int temp4 ;
3898 char *kwnames[] = {
3899 NULL
3900 };
3901
3902 arg1 = &temp1;
3903 arg2 = &temp2;
3904 arg3 = &temp3;
3905 arg4 = &temp4;
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3907 {
3908 PyThreadState* __tstate = wxPyBeginAllowThreads();
3909 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3910
3911 wxPyEndAllowThreads(__tstate);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 Py_INCREF(Py_None); resultobj = Py_None;
3915 {
3916 PyObject *o = PyInt_FromLong((long) (*arg1));
3917 resultobj = t_output_helper(resultobj,o);
3918 }
3919 {
3920 PyObject *o = PyInt_FromLong((long) (*arg2));
3921 resultobj = t_output_helper(resultobj,o);
3922 }
3923 {
3924 PyObject *o = PyInt_FromLong((long) (*arg3));
3925 resultobj = t_output_helper(resultobj,o);
3926 }
3927 {
3928 PyObject *o = PyInt_FromLong((long) (*arg4));
3929 resultobj = t_output_helper(resultobj,o);
3930 }
3931 return resultobj;
3932 fail:
3933 return NULL;
3934 }
3935
3936
3937 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 wxRect result;
3940 char *kwnames[] = {
3941 NULL
3942 };
3943
3944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3945 {
3946 PyThreadState* __tstate = wxPyBeginAllowThreads();
3947 result = wxGetClientDisplayRect();
3948
3949 wxPyEndAllowThreads(__tstate);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 {
3953 wxRect * resultptr;
3954 resultptr = new wxRect((wxRect &) result);
3955 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3956 }
3957 return resultobj;
3958 fail:
3959 return NULL;
3960 }
3961
3962
3963 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3964 PyObject *resultobj;
3965 wxCursor *arg1 = 0 ;
3966 PyObject * obj0 = 0 ;
3967 char *kwnames[] = {
3968 (char *) "cursor", NULL
3969 };
3970
3971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3973 SWIG_POINTER_EXCEPTION | 0)) == -1)
3974 SWIG_fail;
3975 if (arg1 == NULL) {
3976 PyErr_SetString(PyExc_TypeError,"null reference");
3977 SWIG_fail;
3978 }
3979 {
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 wxSetCursor(*arg1);
3982
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 Py_INCREF(Py_None); resultobj = Py_None;
3987 return resultobj;
3988 fail:
3989 return NULL;
3990 }
3991
3992
3993 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3994 PyObject *resultobj;
3995 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3996 PyObject * obj0 = 0 ;
3997 char *kwnames[] = {
3998 (char *) "cursor", NULL
3999 };
4000
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4002 if (obj0) {
4003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4005 }
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 wxBeginBusyCursor(arg1);
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 Py_INCREF(Py_None); resultobj = Py_None;
4014 return resultobj;
4015 fail:
4016 return NULL;
4017 }
4018
4019
4020 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4021 PyObject *resultobj;
4022 wxWindow *result;
4023 char *kwnames[] = {
4024 NULL
4025 };
4026
4027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4028 {
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 result = (wxWindow *)wxGetActiveWindow();
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 {
4036 resultobj = wxPyMake_wxObject(result);
4037 }
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj;
4046 wxPoint *arg1 = 0 ;
4047 wxWindow *result;
4048 wxPoint temp1 ;
4049 PyObject * obj0 = 0 ;
4050 char *kwnames[] = {
4051 (char *) "pt", NULL
4052 };
4053
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4055 {
4056 arg1 = &temp1;
4057 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4058 }
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4062
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 {
4067 resultobj = wxPyMake_wxObject(result);
4068 }
4069 return resultobj;
4070 fail:
4071 return NULL;
4072 }
4073
4074
4075 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4076 PyObject *resultobj;
4077 wxPoint *arg1 = 0 ;
4078 wxWindow *result;
4079 wxPoint temp1 ;
4080 PyObject * obj0 = 0 ;
4081 char *kwnames[] = {
4082 (char *) "pt", NULL
4083 };
4084
4085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4086 {
4087 arg1 = &temp1;
4088 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4089 }
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 {
4098 resultobj = wxPyMake_wxObject(result);
4099 }
4100 return resultobj;
4101 fail:
4102 return NULL;
4103 }
4104
4105
4106 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
4107 PyObject *resultobj;
4108 wxWindow *arg1 = (wxWindow *) 0 ;
4109 wxWindow *result;
4110 PyObject * obj0 = 0 ;
4111 char *kwnames[] = {
4112 (char *) "win", NULL
4113 };
4114
4115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4118 {
4119 PyThreadState* __tstate = wxPyBeginAllowThreads();
4120 result = (wxWindow *)wxGetTopLevelParent(arg1);
4121
4122 wxPyEndAllowThreads(__tstate);
4123 if (PyErr_Occurred()) SWIG_fail;
4124 }
4125 {
4126 resultobj = wxPyMake_wxObject(result);
4127 }
4128 return resultobj;
4129 fail:
4130 return NULL;
4131 }
4132
4133
4134 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
4135 PyObject *resultobj;
4136 int arg1 ;
4137 bool result;
4138 PyObject * obj0 = 0 ;
4139 char *kwnames[] = {
4140 (char *) "key", NULL
4141 };
4142
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4144 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 {
4154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4155 }
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj;
4164 char *kwnames[] = {
4165 NULL
4166 };
4167
4168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 wxWakeUpMainThread();
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 Py_INCREF(Py_None); resultobj = Py_None;
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj;
4185 char *kwnames[] = {
4186 NULL
4187 };
4188
4189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 wxMutexGuiEnter();
4193
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 Py_INCREF(Py_None); resultobj = Py_None;
4198 return resultobj;
4199 fail:
4200 return NULL;
4201 }
4202
4203
4204 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
4205 PyObject *resultobj;
4206 char *kwnames[] = {
4207 NULL
4208 };
4209
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 wxMutexGuiLeave();
4214
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 Py_INCREF(Py_None); resultobj = Py_None;
4219 return resultobj;
4220 fail:
4221 return NULL;
4222 }
4223
4224
4225 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj;
4227 wxMutexGuiLocker *result;
4228 char *kwnames[] = {
4229 NULL
4230 };
4231
4232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4233 {
4234 PyThreadState* __tstate = wxPyBeginAllowThreads();
4235 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4236
4237 wxPyEndAllowThreads(__tstate);
4238 if (PyErr_Occurred()) SWIG_fail;
4239 }
4240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4241 return resultobj;
4242 fail:
4243 return NULL;
4244 }
4245
4246
4247 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj;
4249 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4250 PyObject * obj0 = 0 ;
4251 char *kwnames[] = {
4252 (char *) "self", NULL
4253 };
4254
4255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4258 {
4259 PyThreadState* __tstate = wxPyBeginAllowThreads();
4260 delete arg1;
4261
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 Py_INCREF(Py_None); resultobj = Py_None;
4266 return resultobj;
4267 fail:
4268 return NULL;
4269 }
4270
4271
4272 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
4273 PyObject *obj;
4274 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4275 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4276 Py_INCREF(obj);
4277 return Py_BuildValue((char *)"");
4278 }
4279 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
4280 PyObject *resultobj;
4281 bool result;
4282 char *kwnames[] = {
4283 NULL
4284 };
4285
4286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 result = (bool)wxThread_IsMain();
4290
4291 wxPyEndAllowThreads(__tstate);
4292 if (PyErr_Occurred()) SWIG_fail;
4293 }
4294 {
4295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4296 }
4297 return resultobj;
4298 fail:
4299 return NULL;
4300 }
4301
4302
4303 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj;
4305 wxString *arg1 = 0 ;
4306 wxToolTip *result;
4307 bool temp1 = False ;
4308 PyObject * obj0 = 0 ;
4309 char *kwnames[] = {
4310 (char *) "tip", NULL
4311 };
4312
4313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4314 {
4315 arg1 = wxString_in_helper(obj0);
4316 if (arg1 == NULL) SWIG_fail;
4317 temp1 = True;
4318 }
4319 {
4320 PyThreadState* __tstate = wxPyBeginAllowThreads();
4321 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4322
4323 wxPyEndAllowThreads(__tstate);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 }
4326 {
4327 resultobj = wxPyMake_wxObject(result);
4328 }
4329 {
4330 if (temp1)
4331 delete arg1;
4332 }
4333 return resultobj;
4334 fail:
4335 {
4336 if (temp1)
4337 delete arg1;
4338 }
4339 return NULL;
4340 }
4341
4342
4343 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4344 PyObject *resultobj;
4345 wxToolTip *arg1 = (wxToolTip *) 0 ;
4346 wxString *arg2 = 0 ;
4347 bool temp2 = False ;
4348 PyObject * obj0 = 0 ;
4349 PyObject * obj1 = 0 ;
4350 char *kwnames[] = {
4351 (char *) "self",(char *) "tip", NULL
4352 };
4353
4354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4357 {
4358 arg2 = wxString_in_helper(obj1);
4359 if (arg2 == NULL) SWIG_fail;
4360 temp2 = True;
4361 }
4362 {
4363 PyThreadState* __tstate = wxPyBeginAllowThreads();
4364 (arg1)->SetTip((wxString const &)*arg2);
4365
4366 wxPyEndAllowThreads(__tstate);
4367 if (PyErr_Occurred()) SWIG_fail;
4368 }
4369 Py_INCREF(Py_None); resultobj = Py_None;
4370 {
4371 if (temp2)
4372 delete arg2;
4373 }
4374 return resultobj;
4375 fail:
4376 {
4377 if (temp2)
4378 delete arg2;
4379 }
4380 return NULL;
4381 }
4382
4383
4384 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4385 PyObject *resultobj;
4386 wxToolTip *arg1 = (wxToolTip *) 0 ;
4387 wxString result;
4388 PyObject * obj0 = 0 ;
4389 char *kwnames[] = {
4390 (char *) "self", NULL
4391 };
4392
4393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4396 {
4397 PyThreadState* __tstate = wxPyBeginAllowThreads();
4398 result = (arg1)->GetTip();
4399
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 {
4404 #if wxUSE_UNICODE
4405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4406 #else
4407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4408 #endif
4409 }
4410 return resultobj;
4411 fail:
4412 return NULL;
4413 }
4414
4415
4416 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj;
4418 wxToolTip *arg1 = (wxToolTip *) 0 ;
4419 wxWindow *result;
4420 PyObject * obj0 = 0 ;
4421 char *kwnames[] = {
4422 (char *) "self", NULL
4423 };
4424
4425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 result = (wxWindow *)(arg1)->GetWindow();
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 {
4436 resultobj = wxPyMake_wxObject(result);
4437 }
4438 return resultobj;
4439 fail:
4440 return NULL;
4441 }
4442
4443
4444 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
4445 PyObject *resultobj;
4446 bool arg1 ;
4447 PyObject * obj0 = 0 ;
4448 char *kwnames[] = {
4449 (char *) "flag", NULL
4450 };
4451
4452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4453 arg1 = (bool) SWIG_AsBool(obj0);
4454 if (PyErr_Occurred()) SWIG_fail;
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 wxToolTip::Enable(arg1);
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 Py_INCREF(Py_None); resultobj = Py_None;
4463 return resultobj;
4464 fail:
4465 return NULL;
4466 }
4467
4468
4469 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
4470 PyObject *resultobj;
4471 long arg1 ;
4472 PyObject * obj0 = 0 ;
4473 char *kwnames[] = {
4474 (char *) "milliseconds", NULL
4475 };
4476
4477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4478 arg1 = (long) SWIG_AsLong(obj0);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 {
4481 PyThreadState* __tstate = wxPyBeginAllowThreads();
4482 wxToolTip::SetDelay(arg1);
4483
4484 wxPyEndAllowThreads(__tstate);
4485 if (PyErr_Occurred()) SWIG_fail;
4486 }
4487 Py_INCREF(Py_None); resultobj = Py_None;
4488 return resultobj;
4489 fail:
4490 return NULL;
4491 }
4492
4493
4494 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
4495 PyObject *obj;
4496 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4497 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4498 Py_INCREF(obj);
4499 return Py_BuildValue((char *)"");
4500 }
4501 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
4502 PyObject *resultobj;
4503 wxWindow *arg1 = (wxWindow *) 0 ;
4504 wxSize *arg2 = 0 ;
4505 wxCaret *result;
4506 wxSize temp2 ;
4507 PyObject * obj0 = 0 ;
4508 PyObject * obj1 = 0 ;
4509 char *kwnames[] = {
4510 (char *) "window",(char *) "size", NULL
4511 };
4512
4513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4516 {
4517 arg2 = &temp2;
4518 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4519 }
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4523
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4528 return resultobj;
4529 fail:
4530 return NULL;
4531 }
4532
4533
4534 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
4535 PyObject *resultobj;
4536 wxCaret *arg1 = (wxCaret *) 0 ;
4537 PyObject * obj0 = 0 ;
4538 char *kwnames[] = {
4539 (char *) "self", NULL
4540 };
4541
4542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4545 {
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 delete arg1;
4548
4549 wxPyEndAllowThreads(__tstate);
4550 if (PyErr_Occurred()) SWIG_fail;
4551 }
4552 Py_INCREF(Py_None); resultobj = Py_None;
4553 return resultobj;
4554 fail:
4555 return NULL;
4556 }
4557
4558
4559 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4560 PyObject *resultobj;
4561 wxCaret *arg1 = (wxCaret *) 0 ;
4562 bool result;
4563 PyObject * obj0 = 0 ;
4564 char *kwnames[] = {
4565 (char *) "self", NULL
4566 };
4567
4568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4571 {
4572 PyThreadState* __tstate = wxPyBeginAllowThreads();
4573 result = (bool)(arg1)->IsOk();
4574
4575 wxPyEndAllowThreads(__tstate);
4576 if (PyErr_Occurred()) SWIG_fail;
4577 }
4578 {
4579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4580 }
4581 return resultobj;
4582 fail:
4583 return NULL;
4584 }
4585
4586
4587 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
4588 PyObject *resultobj;
4589 wxCaret *arg1 = (wxCaret *) 0 ;
4590 bool result;
4591 PyObject * obj0 = 0 ;
4592 char *kwnames[] = {
4593 (char *) "self", NULL
4594 };
4595
4596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (bool)(arg1)->IsVisible();
4602
4603 wxPyEndAllowThreads(__tstate);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
4606 {
4607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4608 }
4609 return resultobj;
4610 fail:
4611 return NULL;
4612 }
4613
4614
4615 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj;
4617 wxCaret *arg1 = (wxCaret *) 0 ;
4618 wxPoint result;
4619 PyObject * obj0 = 0 ;
4620 char *kwnames[] = {
4621 (char *) "self", NULL
4622 };
4623
4624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4627 {
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 result = (arg1)->GetPosition();
4630
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 {
4635 wxPoint * resultptr;
4636 resultptr = new wxPoint((wxPoint &) result);
4637 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4638 }
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj;
4647 wxCaret *arg1 = (wxCaret *) 0 ;
4648 int *arg2 = (int *) 0 ;
4649 int *arg3 = (int *) 0 ;
4650 int temp2 ;
4651 int temp3 ;
4652 PyObject * obj0 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "self", NULL
4655 };
4656
4657 arg2 = &temp2;
4658 arg3 = &temp3;
4659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 (arg1)->GetPosition(arg2,arg3);
4665
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 Py_INCREF(Py_None); resultobj = Py_None;
4670 {
4671 PyObject *o = PyInt_FromLong((long) (*arg2));
4672 resultobj = t_output_helper(resultobj,o);
4673 }
4674 {
4675 PyObject *o = PyInt_FromLong((long) (*arg3));
4676 resultobj = t_output_helper(resultobj,o);
4677 }
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4685 PyObject *resultobj;
4686 wxCaret *arg1 = (wxCaret *) 0 ;
4687 wxSize result;
4688 PyObject * obj0 = 0 ;
4689 char *kwnames[] = {
4690 (char *) "self", NULL
4691 };
4692
4693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4696 {
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 result = (arg1)->GetSize();
4699
4700 wxPyEndAllowThreads(__tstate);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 {
4704 wxSize * resultptr;
4705 resultptr = new wxSize((wxSize &) result);
4706 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4707 }
4708 return resultobj;
4709 fail:
4710 return NULL;
4711 }
4712
4713
4714 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
4715 PyObject *resultobj;
4716 wxCaret *arg1 = (wxCaret *) 0 ;
4717 int *arg2 = (int *) 0 ;
4718 int *arg3 = (int *) 0 ;
4719 int temp2 ;
4720 int temp3 ;
4721 PyObject * obj0 = 0 ;
4722 char *kwnames[] = {
4723 (char *) "self", NULL
4724 };
4725
4726 arg2 = &temp2;
4727 arg3 = &temp3;
4728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4731 {
4732 PyThreadState* __tstate = wxPyBeginAllowThreads();
4733 (arg1)->GetSize(arg2,arg3);
4734
4735 wxPyEndAllowThreads(__tstate);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 Py_INCREF(Py_None); resultobj = Py_None;
4739 {
4740 PyObject *o = PyInt_FromLong((long) (*arg2));
4741 resultobj = t_output_helper(resultobj,o);
4742 }
4743 {
4744 PyObject *o = PyInt_FromLong((long) (*arg3));
4745 resultobj = t_output_helper(resultobj,o);
4746 }
4747 return resultobj;
4748 fail:
4749 return NULL;
4750 }
4751
4752
4753 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4754 PyObject *resultobj;
4755 wxCaret *arg1 = (wxCaret *) 0 ;
4756 wxWindow *result;
4757 PyObject * obj0 = 0 ;
4758 char *kwnames[] = {
4759 (char *) "self", NULL
4760 };
4761
4762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4765 {
4766 PyThreadState* __tstate = wxPyBeginAllowThreads();
4767 result = (wxWindow *)(arg1)->GetWindow();
4768
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 {
4773 resultobj = wxPyMake_wxObject(result);
4774 }
4775 return resultobj;
4776 fail:
4777 return NULL;
4778 }
4779
4780
4781 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
4782 PyObject *resultobj;
4783 wxCaret *arg1 = (wxCaret *) 0 ;
4784 int arg2 ;
4785 int arg3 ;
4786 PyObject * obj0 = 0 ;
4787 PyObject * obj1 = 0 ;
4788 PyObject * obj2 = 0 ;
4789 char *kwnames[] = {
4790 (char *) "self",(char *) "x",(char *) "y", NULL
4791 };
4792
4793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4796 arg2 = (int) SWIG_AsInt(obj1);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 arg3 = (int) SWIG_AsInt(obj2);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 {
4801 PyThreadState* __tstate = wxPyBeginAllowThreads();
4802 (arg1)->Move(arg2,arg3);
4803
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 }
4807 Py_INCREF(Py_None); resultobj = Py_None;
4808 return resultobj;
4809 fail:
4810 return NULL;
4811 }
4812
4813
4814 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
4815 PyObject *resultobj;
4816 wxCaret *arg1 = (wxCaret *) 0 ;
4817 wxPoint *arg2 = 0 ;
4818 wxPoint temp2 ;
4819 PyObject * obj0 = 0 ;
4820 PyObject * obj1 = 0 ;
4821 char *kwnames[] = {
4822 (char *) "self",(char *) "pt", NULL
4823 };
4824
4825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4828 {
4829 arg2 = &temp2;
4830 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4831 }
4832 {
4833 PyThreadState* __tstate = wxPyBeginAllowThreads();
4834 (arg1)->Move((wxPoint const &)*arg2);
4835
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 Py_INCREF(Py_None); resultobj = Py_None;
4840 return resultobj;
4841 fail:
4842 return NULL;
4843 }
4844
4845
4846 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
4847 PyObject *resultobj;
4848 wxCaret *arg1 = (wxCaret *) 0 ;
4849 int arg2 ;
4850 int arg3 ;
4851 PyObject * obj0 = 0 ;
4852 PyObject * obj1 = 0 ;
4853 PyObject * obj2 = 0 ;
4854 char *kwnames[] = {
4855 (char *) "self",(char *) "width",(char *) "height", NULL
4856 };
4857
4858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4861 arg2 = (int) SWIG_AsInt(obj1);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 arg3 = (int) SWIG_AsInt(obj2);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 (arg1)->SetSize(arg2,arg3);
4868
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 Py_INCREF(Py_None); resultobj = Py_None;
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj;
4881 wxCaret *arg1 = (wxCaret *) 0 ;
4882 wxSize *arg2 = 0 ;
4883 wxSize temp2 ;
4884 PyObject * obj0 = 0 ;
4885 PyObject * obj1 = 0 ;
4886 char *kwnames[] = {
4887 (char *) "self",(char *) "size", NULL
4888 };
4889
4890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4893 {
4894 arg2 = &temp2;
4895 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4896 }
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 (arg1)->SetSize((wxSize const &)*arg2);
4900
4901 wxPyEndAllowThreads(__tstate);
4902 if (PyErr_Occurred()) SWIG_fail;
4903 }
4904 Py_INCREF(Py_None); resultobj = Py_None;
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj;
4913 wxCaret *arg1 = (wxCaret *) 0 ;
4914 int arg2 = (int) True ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char *kwnames[] = {
4918 (char *) "self",(char *) "show", NULL
4919 };
4920
4921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4924 if (obj1) {
4925 arg2 = (int) SWIG_AsInt(obj1);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 }
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 (arg1)->Show(arg2);
4931
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 Py_INCREF(Py_None); resultobj = Py_None;
4936 return resultobj;
4937 fail:
4938 return NULL;
4939 }
4940
4941
4942 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
4943 PyObject *resultobj;
4944 wxCaret *arg1 = (wxCaret *) 0 ;
4945 PyObject * obj0 = 0 ;
4946 char *kwnames[] = {
4947 (char *) "self", NULL
4948 };
4949
4950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 (arg1)->Hide();
4956
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 Py_INCREF(Py_None); resultobj = Py_None;
4961 return resultobj;
4962 fail:
4963 return NULL;
4964 }
4965
4966
4967 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
4968 PyObject *obj;
4969 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4970 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4971 Py_INCREF(obj);
4972 return Py_BuildValue((char *)"");
4973 }
4974 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
4975 PyObject *resultobj;
4976 int result;
4977 char *kwnames[] = {
4978 NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 result = (int)wxCaret_GetBlinkTime();
4985
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 resultobj = SWIG_FromInt((int)result);
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 int arg1 ;
4999 PyObject * obj0 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "milliseconds", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5005 arg1 = (int) SWIG_AsInt(obj0);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 wxCaret_SetBlinkTime(arg1);
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 Py_INCREF(Py_None); resultobj = Py_None;
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj;
5023 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5024 wxBusyCursor *result;
5025 PyObject * obj0 = 0 ;
5026 char *kwnames[] = {
5027 (char *) "cursor", NULL
5028 };
5029
5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5031 if (obj0) {
5032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5034 }
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5043 return resultobj;
5044 fail:
5045 return NULL;
5046 }
5047
5048
5049 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5050 PyObject *resultobj;
5051 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5052 PyObject * obj0 = 0 ;
5053 char *kwnames[] = {
5054 (char *) "self", NULL
5055 };
5056
5057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 delete arg1;
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 }
5067 Py_INCREF(Py_None); resultobj = Py_None;
5068 return resultobj;
5069 fail:
5070 return NULL;
5071 }
5072
5073
5074 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
5075 PyObject *obj;
5076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5077 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5078 Py_INCREF(obj);
5079 return Py_BuildValue((char *)"");
5080 }
5081 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5082 PyObject *resultobj;
5083 wxWindow *arg1 = (wxWindow *) NULL ;
5084 wxWindowDisabler *result;
5085 PyObject * obj0 = 0 ;
5086 char *kwnames[] = {
5087 (char *) "winToSkip", NULL
5088 };
5089
5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5091 if (obj0) {
5092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5094 }
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj;
5111 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5112 PyObject * obj0 = 0 ;
5113 char *kwnames[] = {
5114 (char *) "self", NULL
5115 };
5116
5117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 delete arg1;
5123
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 Py_INCREF(Py_None); resultobj = Py_None;
5128 return resultobj;
5129 fail:
5130 return NULL;
5131 }
5132
5133
5134 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
5135 PyObject *obj;
5136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5137 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5138 Py_INCREF(obj);
5139 return Py_BuildValue((char *)"");
5140 }
5141 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5142 PyObject *resultobj;
5143 wxString *arg1 = 0 ;
5144 wxBusyInfo *result;
5145 bool temp1 = False ;
5146 PyObject * obj0 = 0 ;
5147 char *kwnames[] = {
5148 (char *) "message", NULL
5149 };
5150
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5152 {
5153 arg1 = wxString_in_helper(obj0);
5154 if (arg1 == NULL) SWIG_fail;
5155 temp1 = True;
5156 }
5157 {
5158 PyThreadState* __tstate = wxPyBeginAllowThreads();
5159 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5160
5161 wxPyEndAllowThreads(__tstate);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5165 {
5166 if (temp1)
5167 delete arg1;
5168 }
5169 return resultobj;
5170 fail:
5171 {
5172 if (temp1)
5173 delete arg1;
5174 }
5175 return NULL;
5176 }
5177
5178
5179 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5180 PyObject *resultobj;
5181 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5182 PyObject * obj0 = 0 ;
5183 char *kwnames[] = {
5184 (char *) "self", NULL
5185 };
5186
5187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 delete arg1;
5193
5194 wxPyEndAllowThreads(__tstate);
5195 if (PyErr_Occurred()) SWIG_fail;
5196 }
5197 Py_INCREF(Py_None); resultobj = Py_None;
5198 return resultobj;
5199 fail:
5200 return NULL;
5201 }
5202
5203
5204 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
5205 PyObject *obj;
5206 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5207 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5208 Py_INCREF(obj);
5209 return Py_BuildValue((char *)"");
5210 }
5211 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
5212 PyObject *resultobj;
5213 wxStopWatch *result;
5214 char *kwnames[] = {
5215 NULL
5216 };
5217
5218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5219 {
5220 PyThreadState* __tstate = wxPyBeginAllowThreads();
5221 result = (wxStopWatch *)new wxStopWatch();
5222
5223 wxPyEndAllowThreads(__tstate);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 }
5226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5227 return resultobj;
5228 fail:
5229 return NULL;
5230 }
5231
5232
5233 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
5234 PyObject *resultobj;
5235 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5236 long arg2 = (long) 0 ;
5237 PyObject * obj0 = 0 ;
5238 PyObject * obj1 = 0 ;
5239 char *kwnames[] = {
5240 (char *) "self",(char *) "t0", NULL
5241 };
5242
5243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5246 if (obj1) {
5247 arg2 = (long) SWIG_AsLong(obj1);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 {
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 (arg1)->Start(arg2);
5253
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 Py_INCREF(Py_None); resultobj = Py_None;
5258 return resultobj;
5259 fail:
5260 return NULL;
5261 }
5262
5263
5264 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
5265 PyObject *resultobj;
5266 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5267 PyObject * obj0 = 0 ;
5268 char *kwnames[] = {
5269 (char *) "self", NULL
5270 };
5271
5272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5275 {
5276 PyThreadState* __tstate = wxPyBeginAllowThreads();
5277 (arg1)->Pause();
5278
5279 wxPyEndAllowThreads(__tstate);
5280 if (PyErr_Occurred()) SWIG_fail;
5281 }
5282 Py_INCREF(Py_None); resultobj = Py_None;
5283 return resultobj;
5284 fail:
5285 return NULL;
5286 }
5287
5288
5289 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
5290 PyObject *resultobj;
5291 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5292 PyObject * obj0 = 0 ;
5293 char *kwnames[] = {
5294 (char *) "self", NULL
5295 };
5296
5297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 (arg1)->Resume();
5303
5304 wxPyEndAllowThreads(__tstate);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 }
5307 Py_INCREF(Py_None); resultobj = Py_None;
5308 return resultobj;
5309 fail:
5310 return NULL;
5311 }
5312
5313
5314 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
5315 PyObject *resultobj;
5316 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5317 long result;
5318 PyObject * obj0 = 0 ;
5319 char *kwnames[] = {
5320 (char *) "self", NULL
5321 };
5322
5323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5326 {
5327 PyThreadState* __tstate = wxPyBeginAllowThreads();
5328 result = (long)((wxStopWatch const *)arg1)->Time();
5329
5330 wxPyEndAllowThreads(__tstate);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 resultobj = SWIG_FromLong((long)result);
5334 return resultobj;
5335 fail:
5336 return NULL;
5337 }
5338
5339
5340 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
5341 PyObject *obj;
5342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5343 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5344 Py_INCREF(obj);
5345 return Py_BuildValue((char *)"");
5346 }
5347 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj;
5349 int arg1 = (int) 9 ;
5350 wxFileHistory *result;
5351 PyObject * obj0 = 0 ;
5352 char *kwnames[] = {
5353 (char *) "maxFiles", NULL
5354 };
5355
5356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5357 if (obj0) {
5358 arg1 = (int) SWIG_AsInt(obj0);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 }
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (wxFileHistory *)new wxFileHistory(arg1);
5364
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5369 return resultobj;
5370 fail:
5371 return NULL;
5372 }
5373
5374
5375 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5376 PyObject *resultobj;
5377 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5378 PyObject * obj0 = 0 ;
5379 char *kwnames[] = {
5380 (char *) "self", NULL
5381 };
5382
5383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5386 {
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 delete arg1;
5389
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 }
5393 Py_INCREF(Py_None); resultobj = Py_None;
5394 return resultobj;
5395 fail:
5396 return NULL;
5397 }
5398
5399
5400 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5401 PyObject *resultobj;
5402 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5403 wxString *arg2 = 0 ;
5404 bool temp2 = False ;
5405 PyObject * obj0 = 0 ;
5406 PyObject * obj1 = 0 ;
5407 char *kwnames[] = {
5408 (char *) "self",(char *) "file", NULL
5409 };
5410
5411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5414 {
5415 arg2 = wxString_in_helper(obj1);
5416 if (arg2 == NULL) SWIG_fail;
5417 temp2 = True;
5418 }
5419 {
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 (arg1)->AddFileToHistory((wxString const &)*arg2);
5422
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
5426 Py_INCREF(Py_None); resultobj = Py_None;
5427 {
5428 if (temp2)
5429 delete arg2;
5430 }
5431 return resultobj;
5432 fail:
5433 {
5434 if (temp2)
5435 delete arg2;
5436 }
5437 return NULL;
5438 }
5439
5440
5441 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj;
5443 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5444 int arg2 ;
5445 PyObject * obj0 = 0 ;
5446 PyObject * obj1 = 0 ;
5447 char *kwnames[] = {
5448 (char *) "self",(char *) "i", NULL
5449 };
5450
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5454 arg2 = (int) SWIG_AsInt(obj1);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 (arg1)->RemoveFileFromHistory(arg2);
5459
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 Py_INCREF(Py_None); resultobj = Py_None;
5464 return resultobj;
5465 fail:
5466 return NULL;
5467 }
5468
5469
5470 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj;
5472 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5473 int result;
5474 PyObject * obj0 = 0 ;
5475 char *kwnames[] = {
5476 (char *) "self", NULL
5477 };
5478
5479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5485
5486 wxPyEndAllowThreads(__tstate);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 resultobj = SWIG_FromInt((int)result);
5490 return resultobj;
5491 fail:
5492 return NULL;
5493 }
5494
5495
5496 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5497 PyObject *resultobj;
5498 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5499 wxMenu *arg2 = (wxMenu *) 0 ;
5500 PyObject * obj0 = 0 ;
5501 PyObject * obj1 = 0 ;
5502 char *kwnames[] = {
5503 (char *) "self",(char *) "menu", NULL
5504 };
5505
5506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5509 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5511 {
5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
5513 (arg1)->UseMenu(arg2);
5514
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 Py_INCREF(Py_None); resultobj = Py_None;
5519 return resultobj;
5520 fail:
5521 return NULL;
5522 }
5523
5524
5525 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj;
5527 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5528 wxMenu *arg2 = (wxMenu *) 0 ;
5529 PyObject * obj0 = 0 ;
5530 PyObject * obj1 = 0 ;
5531 char *kwnames[] = {
5532 (char *) "self",(char *) "menu", NULL
5533 };
5534
5535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 (arg1)->RemoveMenu(arg2);
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 Py_INCREF(Py_None); resultobj = Py_None;
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj;
5556 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5557 wxConfigBase *arg2 = 0 ;
5558 PyObject * obj0 = 0 ;
5559 PyObject * obj1 = 0 ;
5560 char *kwnames[] = {
5561 (char *) "self",(char *) "config", NULL
5562 };
5563
5564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5568 SWIG_POINTER_EXCEPTION | 0)) == -1)
5569 SWIG_fail;
5570 if (arg2 == NULL) {
5571 PyErr_SetString(PyExc_TypeError,"null reference");
5572 SWIG_fail;
5573 }
5574 {
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 (arg1)->Load(*arg2);
5577
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 Py_INCREF(Py_None); resultobj = Py_None;
5582 return resultobj;
5583 fail:
5584 return NULL;
5585 }
5586
5587
5588 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
5589 PyObject *resultobj;
5590 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5591 wxConfigBase *arg2 = 0 ;
5592 PyObject * obj0 = 0 ;
5593 PyObject * obj1 = 0 ;
5594 char *kwnames[] = {
5595 (char *) "self",(char *) "config", NULL
5596 };
5597
5598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5602 SWIG_POINTER_EXCEPTION | 0)) == -1)
5603 SWIG_fail;
5604 if (arg2 == NULL) {
5605 PyErr_SetString(PyExc_TypeError,"null reference");
5606 SWIG_fail;
5607 }
5608 {
5609 PyThreadState* __tstate = wxPyBeginAllowThreads();
5610 (arg1)->Save(*arg2);
5611
5612 wxPyEndAllowThreads(__tstate);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 Py_INCREF(Py_None); resultobj = Py_None;
5616 return resultobj;
5617 fail:
5618 return NULL;
5619 }
5620
5621
5622 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5623 PyObject *resultobj;
5624 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5625 PyObject * obj0 = 0 ;
5626 char *kwnames[] = {
5627 (char *) "self", NULL
5628 };
5629
5630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 (arg1)->AddFilesToMenu();
5636
5637 wxPyEndAllowThreads(__tstate);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 Py_INCREF(Py_None); resultobj = Py_None;
5641 return resultobj;
5642 fail:
5643 return NULL;
5644 }
5645
5646
5647 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5648 PyObject *resultobj;
5649 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5650 wxMenu *arg2 = (wxMenu *) 0 ;
5651 PyObject * obj0 = 0 ;
5652 PyObject * obj1 = 0 ;
5653 char *kwnames[] = {
5654 (char *) "self",(char *) "menu", NULL
5655 };
5656
5657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5660 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5662 {
5663 PyThreadState* __tstate = wxPyBeginAllowThreads();
5664 (arg1)->AddFilesToMenu(arg2);
5665
5666 wxPyEndAllowThreads(__tstate);
5667 if (PyErr_Occurred()) SWIG_fail;
5668 }
5669 Py_INCREF(Py_None); resultobj = Py_None;
5670 return resultobj;
5671 fail:
5672 return NULL;
5673 }
5674
5675
5676 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
5677 PyObject *resultobj;
5678 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5679 int arg2 ;
5680 wxString result;
5681 PyObject * obj0 = 0 ;
5682 PyObject * obj1 = 0 ;
5683 char *kwnames[] = {
5684 (char *) "self",(char *) "i", NULL
5685 };
5686
5687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5690 arg2 = (int) SWIG_AsInt(obj1);
5691 if (PyErr_Occurred()) SWIG_fail;
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5695
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 {
5700 #if wxUSE_UNICODE
5701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5702 #else
5703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5704 #endif
5705 }
5706 return resultobj;
5707 fail:
5708 return NULL;
5709 }
5710
5711
5712 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
5713 PyObject *resultobj;
5714 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5715 int result;
5716 PyObject * obj0 = 0 ;
5717 char *kwnames[] = {
5718 (char *) "self", NULL
5719 };
5720
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5724 {
5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
5726 result = (int)((wxFileHistory const *)arg1)->GetCount();
5727
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 resultobj = SWIG_FromInt((int)result);
5732 return resultobj;
5733 fail:
5734 return NULL;
5735 }
5736
5737
5738 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
5739 PyObject *obj;
5740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5741 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5742 Py_INCREF(obj);
5743 return Py_BuildValue((char *)"");
5744 }
5745 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
5746 PyObject *resultobj;
5747 wxString *arg1 = 0 ;
5748 wxString const &arg2_defvalue = wxPyEmptyString ;
5749 wxString *arg2 = (wxString *) &arg2_defvalue ;
5750 wxSingleInstanceChecker *result;
5751 bool temp1 = False ;
5752 bool temp2 = False ;
5753 PyObject * obj0 = 0 ;
5754 PyObject * obj1 = 0 ;
5755 char *kwnames[] = {
5756 (char *) "name",(char *) "path", NULL
5757 };
5758
5759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5760 {
5761 arg1 = wxString_in_helper(obj0);
5762 if (arg1 == NULL) SWIG_fail;
5763 temp1 = True;
5764 }
5765 if (obj1) {
5766 {
5767 arg2 = wxString_in_helper(obj1);
5768 if (arg2 == NULL) SWIG_fail;
5769 temp2 = True;
5770 }
5771 }
5772 {
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5775
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5780 {
5781 if (temp1)
5782 delete arg1;
5783 }
5784 {
5785 if (temp2)
5786 delete arg2;
5787 }
5788 return resultobj;
5789 fail:
5790 {
5791 if (temp1)
5792 delete arg1;
5793 }
5794 {
5795 if (temp2)
5796 delete arg2;
5797 }
5798 return NULL;
5799 }
5800
5801
5802 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
5803 PyObject *resultobj;
5804 wxSingleInstanceChecker *result;
5805 char *kwnames[] = {
5806 NULL
5807 };
5808
5809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5813
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5818 return resultobj;
5819 fail:
5820 return NULL;
5821 }
5822
5823
5824 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj;
5826 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5827 PyObject * obj0 = 0 ;
5828 char *kwnames[] = {
5829 (char *) "self", NULL
5830 };
5831
5832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 delete arg1;
5838
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 Py_INCREF(Py_None); resultobj = Py_None;
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj;
5851 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5852 wxString *arg2 = 0 ;
5853 wxString const &arg3_defvalue = wxPyEmptyString ;
5854 wxString *arg3 = (wxString *) &arg3_defvalue ;
5855 bool result;
5856 bool temp2 = False ;
5857 bool temp3 = False ;
5858 PyObject * obj0 = 0 ;
5859 PyObject * obj1 = 0 ;
5860 PyObject * obj2 = 0 ;
5861 char *kwnames[] = {
5862 (char *) "self",(char *) "name",(char *) "path", NULL
5863 };
5864
5865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5868 {
5869 arg2 = wxString_in_helper(obj1);
5870 if (arg2 == NULL) SWIG_fail;
5871 temp2 = True;
5872 }
5873 if (obj2) {
5874 {
5875 arg3 = wxString_in_helper(obj2);
5876 if (arg3 == NULL) SWIG_fail;
5877 temp3 = True;
5878 }
5879 }
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 {
5888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5889 }
5890 {
5891 if (temp2)
5892 delete arg2;
5893 }
5894 {
5895 if (temp3)
5896 delete arg3;
5897 }
5898 return resultobj;
5899 fail:
5900 {
5901 if (temp2)
5902 delete arg2;
5903 }
5904 {
5905 if (temp3)
5906 delete arg3;
5907 }
5908 return NULL;
5909 }
5910
5911
5912 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
5913 PyObject *resultobj;
5914 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5915 bool result;
5916 PyObject * obj0 = 0 ;
5917 char *kwnames[] = {
5918 (char *) "self", NULL
5919 };
5920
5921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5924 {
5925 PyThreadState* __tstate = wxPyBeginAllowThreads();
5926 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5927
5928 wxPyEndAllowThreads(__tstate);
5929 if (PyErr_Occurred()) SWIG_fail;
5930 }
5931 {
5932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5933 }
5934 return resultobj;
5935 fail:
5936 return NULL;
5937 }
5938
5939
5940 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
5941 PyObject *obj;
5942 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5943 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5944 Py_INCREF(obj);
5945 return Py_BuildValue((char *)"");
5946 }
5947 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj;
5949 wxWindow *arg1 = (wxWindow *) 0 ;
5950 wxDC *arg2 = 0 ;
5951 int arg3 ;
5952 PyObject * obj0 = 0 ;
5953 PyObject * obj1 = 0 ;
5954 PyObject * obj2 = 0 ;
5955 char *kwnames[] = {
5956 (char *) "window",(char *) "dc",(char *) "method", NULL
5957 };
5958
5959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
5960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
5963 SWIG_POINTER_EXCEPTION | 0)) == -1)
5964 SWIG_fail;
5965 if (arg2 == NULL) {
5966 PyErr_SetString(PyExc_TypeError,"null reference");
5967 SWIG_fail;
5968 }
5969 arg3 = (int) SWIG_AsInt(obj2);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5974
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 Py_INCREF(Py_None); resultobj = Py_None;
5979 return resultobj;
5980 fail:
5981 return NULL;
5982 }
5983
5984
5985 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
5986 PyObject *resultobj;
5987 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5988 PyObject * obj0 = 0 ;
5989 char *kwnames[] = {
5990 (char *) "self", NULL
5991 };
5992
5993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5996 {
5997 PyThreadState* __tstate = wxPyBeginAllowThreads();
5998 delete arg1;
5999
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
6003 Py_INCREF(Py_None); resultobj = Py_None;
6004 return resultobj;
6005 fail:
6006 return NULL;
6007 }
6008
6009
6010 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
6011 PyObject *resultobj;
6012 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6013 wxString result;
6014 PyObject * obj0 = 0 ;
6015 char *kwnames[] = {
6016 (char *) "self", NULL
6017 };
6018
6019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 result = (arg1)->GetTip();
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 {
6030 #if wxUSE_UNICODE
6031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6032 #else
6033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6034 #endif
6035 }
6036 return resultobj;
6037 fail:
6038 return NULL;
6039 }
6040
6041
6042 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
6043 PyObject *resultobj;
6044 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6045 size_t result;
6046 PyObject * obj0 = 0 ;
6047 char *kwnames[] = {
6048 (char *) "self", NULL
6049 };
6050
6051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6054 {
6055 PyThreadState* __tstate = wxPyBeginAllowThreads();
6056 result = (size_t)(arg1)->GetCurrentTip();
6057
6058 wxPyEndAllowThreads(__tstate);
6059 if (PyErr_Occurred()) SWIG_fail;
6060 }
6061 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6062 return resultobj;
6063 fail:
6064 return NULL;
6065 }
6066
6067
6068 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
6069 PyObject *resultobj;
6070 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6071 wxString *arg2 = 0 ;
6072 wxString result;
6073 bool temp2 = False ;
6074 PyObject * obj0 = 0 ;
6075 PyObject * obj1 = 0 ;
6076 char *kwnames[] = {
6077 (char *) "self",(char *) "tip", NULL
6078 };
6079
6080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6083 {
6084 arg2 = wxString_in_helper(obj1);
6085 if (arg2 == NULL) SWIG_fail;
6086 temp2 = True;
6087 }
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 {
6096 #if wxUSE_UNICODE
6097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6098 #else
6099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6100 #endif
6101 }
6102 {
6103 if (temp2)
6104 delete arg2;
6105 }
6106 return resultobj;
6107 fail:
6108 {
6109 if (temp2)
6110 delete arg2;
6111 }
6112 return NULL;
6113 }
6114
6115
6116 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
6117 PyObject *obj;
6118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6119 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6120 Py_INCREF(obj);
6121 return Py_BuildValue((char *)"");
6122 }
6123 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6124 PyObject *resultobj;
6125 size_t arg1 ;
6126 wxPyTipProvider *result;
6127 PyObject * obj0 = 0 ;
6128 char *kwnames[] = {
6129 (char *) "currentTip", NULL
6130 };
6131
6132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6133 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 {
6136 PyThreadState* __tstate = wxPyBeginAllowThreads();
6137 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6138
6139 wxPyEndAllowThreads(__tstate);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 }
6142 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6143 return resultobj;
6144 fail:
6145 return NULL;
6146 }
6147
6148
6149 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6150 PyObject *resultobj;
6151 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6152 PyObject *arg2 = (PyObject *) 0 ;
6153 PyObject *arg3 = (PyObject *) 0 ;
6154 PyObject * obj0 = 0 ;
6155 PyObject * obj1 = 0 ;
6156 PyObject * obj2 = 0 ;
6157 char *kwnames[] = {
6158 (char *) "self",(char *) "self",(char *) "_class", NULL
6159 };
6160
6161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6164 arg2 = obj1;
6165 arg3 = obj2;
6166 {
6167 PyThreadState* __tstate = wxPyBeginAllowThreads();
6168 (arg1)->_setCallbackInfo(arg2,arg3);
6169
6170 wxPyEndAllowThreads(__tstate);
6171 if (PyErr_Occurred()) SWIG_fail;
6172 }
6173 Py_INCREF(Py_None); resultobj = Py_None;
6174 return resultobj;
6175 fail:
6176 return NULL;
6177 }
6178
6179
6180 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
6181 PyObject *obj;
6182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6183 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6184 Py_INCREF(obj);
6185 return Py_BuildValue((char *)"");
6186 }
6187 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj;
6189 wxWindow *arg1 = (wxWindow *) 0 ;
6190 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6191 bool arg3 = (bool) True ;
6192 bool result;
6193 PyObject * obj0 = 0 ;
6194 PyObject * obj1 = 0 ;
6195 PyObject * obj2 = 0 ;
6196 char *kwnames[] = {
6197 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6198 };
6199
6200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6205 if (obj2) {
6206 arg3 = (bool) SWIG_AsBool(obj2);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 {
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 result = (bool)wxShowTip(arg1,arg2,arg3);
6212
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 {
6217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6218 }
6219 return resultobj;
6220 fail:
6221 return NULL;
6222 }
6223
6224
6225 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxString *arg1 = 0 ;
6228 size_t arg2 ;
6229 wxTipProvider *result;
6230 bool temp1 = False ;
6231 PyObject * obj0 = 0 ;
6232 PyObject * obj1 = 0 ;
6233 char *kwnames[] = {
6234 (char *) "filename",(char *) "currentTip", NULL
6235 };
6236
6237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6238 {
6239 arg1 = wxString_in_helper(obj0);
6240 if (arg1 == NULL) SWIG_fail;
6241 temp1 = True;
6242 }
6243 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6253 {
6254 if (temp1)
6255 delete arg1;
6256 }
6257 return resultobj;
6258 fail:
6259 {
6260 if (temp1)
6261 delete arg1;
6262 }
6263 return NULL;
6264 }
6265
6266
6267 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj;
6269 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6270 int arg2 = (int) -1 ;
6271 wxPyTimer *result;
6272 PyObject * obj0 = 0 ;
6273 PyObject * obj1 = 0 ;
6274 char *kwnames[] = {
6275 (char *) "owner",(char *) "id", NULL
6276 };
6277
6278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6279 if (obj0) {
6280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6282 }
6283 if (obj1) {
6284 arg2 = (int) SWIG_AsInt(obj1);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 {
6288 PyThreadState* __tstate = wxPyBeginAllowThreads();
6289 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6290
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 }
6294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6295 return resultobj;
6296 fail:
6297 return NULL;
6298 }
6299
6300
6301 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6302 PyObject *resultobj;
6303 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6304 PyObject * obj0 = 0 ;
6305 char *kwnames[] = {
6306 (char *) "self", NULL
6307 };
6308
6309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6312 {
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 delete arg1;
6315
6316 wxPyEndAllowThreads(__tstate);
6317 if (PyErr_Occurred()) SWIG_fail;
6318 }
6319 Py_INCREF(Py_None); resultobj = Py_None;
6320 return resultobj;
6321 fail:
6322 return NULL;
6323 }
6324
6325
6326 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6327 PyObject *resultobj;
6328 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6329 PyObject *arg2 = (PyObject *) 0 ;
6330 PyObject *arg3 = (PyObject *) 0 ;
6331 int arg4 = (int) 1 ;
6332 PyObject * obj0 = 0 ;
6333 PyObject * obj1 = 0 ;
6334 PyObject * obj2 = 0 ;
6335 PyObject * obj3 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 arg2 = obj1;
6344 arg3 = obj2;
6345 if (obj3) {
6346 arg4 = (int) SWIG_AsInt(obj3);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 {
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6352
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 Py_INCREF(Py_None); resultobj = Py_None;
6357 return resultobj;
6358 fail:
6359 return NULL;
6360 }
6361
6362
6363 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj;
6365 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6366 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6367 int arg3 = (int) -1 ;
6368 PyObject * obj0 = 0 ;
6369 PyObject * obj1 = 0 ;
6370 PyObject * obj2 = 0 ;
6371 char *kwnames[] = {
6372 (char *) "self",(char *) "owner",(char *) "id", NULL
6373 };
6374
6375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6380 if (obj2) {
6381 arg3 = (int) SWIG_AsInt(obj2);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 {
6385 PyThreadState* __tstate = wxPyBeginAllowThreads();
6386 (arg1)->SetOwner(arg2,arg3);
6387
6388 wxPyEndAllowThreads(__tstate);
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 Py_INCREF(Py_None); resultobj = Py_None;
6392 return resultobj;
6393 fail:
6394 return NULL;
6395 }
6396
6397
6398 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
6399 PyObject *resultobj;
6400 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6401 int arg2 = (int) -1 ;
6402 bool arg3 = (bool) False ;
6403 bool result;
6404 PyObject * obj0 = 0 ;
6405 PyObject * obj1 = 0 ;
6406 PyObject * obj2 = 0 ;
6407 char *kwnames[] = {
6408 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6409 };
6410
6411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6414 if (obj1) {
6415 arg2 = (int) SWIG_AsInt(obj1);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 if (obj2) {
6419 arg3 = (bool) SWIG_AsBool(obj2);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423 PyThreadState* __tstate = wxPyBeginAllowThreads();
6424 result = (bool)(arg1)->Start(arg2,arg3);
6425
6426 wxPyEndAllowThreads(__tstate);
6427 if (PyErr_Occurred()) SWIG_fail;
6428 }
6429 {
6430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6431 }
6432 return resultobj;
6433 fail:
6434 return NULL;
6435 }
6436
6437
6438 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
6439 PyObject *resultobj;
6440 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6441 PyObject * obj0 = 0 ;
6442 char *kwnames[] = {
6443 (char *) "self", NULL
6444 };
6445
6446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6449 {
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 (arg1)->Stop();
6452
6453 wxPyEndAllowThreads(__tstate);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 Py_INCREF(Py_None); resultobj = Py_None;
6457 return resultobj;
6458 fail:
6459 return NULL;
6460 }
6461
6462
6463 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6464 PyObject *resultobj;
6465 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6466 bool result;
6467 PyObject * obj0 = 0 ;
6468 char *kwnames[] = {
6469 (char *) "self", NULL
6470 };
6471
6472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6475 {
6476 PyThreadState* __tstate = wxPyBeginAllowThreads();
6477 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6478
6479 wxPyEndAllowThreads(__tstate);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 {
6483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6484 }
6485 return resultobj;
6486 fail:
6487 return NULL;
6488 }
6489
6490
6491 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj;
6493 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6494 int result;
6495 PyObject * obj0 = 0 ;
6496 char *kwnames[] = {
6497 (char *) "self", NULL
6498 };
6499
6500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6503 {
6504 PyThreadState* __tstate = wxPyBeginAllowThreads();
6505 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6506
6507 wxPyEndAllowThreads(__tstate);
6508 if (PyErr_Occurred()) SWIG_fail;
6509 }
6510 resultobj = SWIG_FromInt((int)result);
6511 return resultobj;
6512 fail:
6513 return NULL;
6514 }
6515
6516
6517 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
6518 PyObject *resultobj;
6519 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6520 bool result;
6521 PyObject * obj0 = 0 ;
6522 char *kwnames[] = {
6523 (char *) "self", NULL
6524 };
6525
6526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6529 {
6530 PyThreadState* __tstate = wxPyBeginAllowThreads();
6531 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6532
6533 wxPyEndAllowThreads(__tstate);
6534 if (PyErr_Occurred()) SWIG_fail;
6535 }
6536 {
6537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6538 }
6539 return resultobj;
6540 fail:
6541 return NULL;
6542 }
6543
6544
6545 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
6546 PyObject *resultobj;
6547 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6548 int result;
6549 PyObject * obj0 = 0 ;
6550 char *kwnames[] = {
6551 (char *) "self", NULL
6552 };
6553
6554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 result = (int)((wxPyTimer const *)arg1)->GetId();
6560
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 resultobj = SWIG_FromInt((int)result);
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
6572 PyObject *obj;
6573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6574 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6575 Py_INCREF(obj);
6576 return Py_BuildValue((char *)"");
6577 }
6578 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj;
6580 int arg1 = (int) 0 ;
6581 int arg2 = (int) 0 ;
6582 wxTimerEvent *result;
6583 PyObject * obj0 = 0 ;
6584 PyObject * obj1 = 0 ;
6585 char *kwnames[] = {
6586 (char *) "timerid",(char *) "interval", NULL
6587 };
6588
6589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6590 if (obj0) {
6591 arg1 = (int) SWIG_AsInt(obj0);
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 if (obj1) {
6595 arg2 = (int) SWIG_AsInt(obj1);
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 {
6599 PyThreadState* __tstate = wxPyBeginAllowThreads();
6600 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6601
6602 wxPyEndAllowThreads(__tstate);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6606 return resultobj;
6607 fail:
6608 return NULL;
6609 }
6610
6611
6612 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
6613 PyObject *resultobj;
6614 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6615 int result;
6616 PyObject * obj0 = 0 ;
6617 char *kwnames[] = {
6618 (char *) "self", NULL
6619 };
6620
6621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6624 {
6625 PyThreadState* __tstate = wxPyBeginAllowThreads();
6626 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6627
6628 wxPyEndAllowThreads(__tstate);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 resultobj = SWIG_FromInt((int)result);
6632 return resultobj;
6633 fail:
6634 return NULL;
6635 }
6636
6637
6638 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
6639 PyObject *obj;
6640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6641 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6642 Py_INCREF(obj);
6643 return Py_BuildValue((char *)"");
6644 }
6645 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
6646 PyObject *resultobj;
6647 wxTimer *arg1 = 0 ;
6648 wxTimerRunner *result;
6649 PyObject * obj0 = 0 ;
6650
6651 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6653 SWIG_POINTER_EXCEPTION | 0)) == -1)
6654 SWIG_fail;
6655 if (arg1 == NULL) {
6656 PyErr_SetString(PyExc_TypeError,"null reference");
6657 SWIG_fail;
6658 }
6659 {
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6662
6663 wxPyEndAllowThreads(__tstate);
6664 if (PyErr_Occurred()) SWIG_fail;
6665 }
6666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6667 return resultobj;
6668 fail:
6669 return NULL;
6670 }
6671
6672
6673 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
6674 PyObject *resultobj;
6675 wxTimer *arg1 = 0 ;
6676 int arg2 ;
6677 bool arg3 = (bool) False ;
6678 wxTimerRunner *result;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 PyObject * obj2 = 0 ;
6682
6683 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6685 SWIG_POINTER_EXCEPTION | 0)) == -1)
6686 SWIG_fail;
6687 if (arg1 == NULL) {
6688 PyErr_SetString(PyExc_TypeError,"null reference");
6689 SWIG_fail;
6690 }
6691 arg2 = (int) SWIG_AsInt(obj1);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 if (obj2) {
6694 arg3 = (bool) SWIG_AsBool(obj2);
6695 if (PyErr_Occurred()) SWIG_fail;
6696 }
6697 {
6698 PyThreadState* __tstate = wxPyBeginAllowThreads();
6699 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6700
6701 wxPyEndAllowThreads(__tstate);
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6705 return resultobj;
6706 fail:
6707 return NULL;
6708 }
6709
6710
6711 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6712 int argc;
6713 PyObject *argv[4];
6714 int ii;
6715
6716 argc = PyObject_Length(args);
6717 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6718 argv[ii] = PyTuple_GetItem(args,ii);
6719 }
6720 if (argc == 1) {
6721 int _v;
6722 {
6723 void *ptr;
6724 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6725 _v = 0;
6726 PyErr_Clear();
6727 } else {
6728 _v = 1;
6729 }
6730 }
6731 if (_v) {
6732 return _wrap_new_TimerRunner__SWIG_0(self,args);
6733 }
6734 }
6735 if ((argc >= 2) && (argc <= 3)) {
6736 int _v;
6737 {
6738 void *ptr;
6739 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6740 _v = 0;
6741 PyErr_Clear();
6742 } else {
6743 _v = 1;
6744 }
6745 }
6746 if (_v) {
6747 _v = SWIG_CheckInt(argv[1]);
6748 if (_v) {
6749 if (argc <= 2) {
6750 return _wrap_new_TimerRunner__SWIG_1(self,args);
6751 }
6752 _v = SWIG_CheckBool(argv[2]);
6753 if (_v) {
6754 return _wrap_new_TimerRunner__SWIG_1(self,args);
6755 }
6756 }
6757 }
6758 }
6759
6760 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6761 return NULL;
6762 }
6763
6764
6765 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
6766 PyObject *resultobj;
6767 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6768 PyObject * obj0 = 0 ;
6769 char *kwnames[] = {
6770 (char *) "self", NULL
6771 };
6772
6773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6776 {
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 delete arg1;
6779
6780 wxPyEndAllowThreads(__tstate);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 Py_INCREF(Py_None); resultobj = Py_None;
6784 return resultobj;
6785 fail:
6786 return NULL;
6787 }
6788
6789
6790 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
6791 PyObject *resultobj;
6792 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6793 int arg2 ;
6794 bool arg3 = (bool) False ;
6795 PyObject * obj0 = 0 ;
6796 PyObject * obj1 = 0 ;
6797 PyObject * obj2 = 0 ;
6798 char *kwnames[] = {
6799 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6800 };
6801
6802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6805 arg2 = (int) SWIG_AsInt(obj1);
6806 if (PyErr_Occurred()) SWIG_fail;
6807 if (obj2) {
6808 arg3 = (bool) SWIG_AsBool(obj2);
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 {
6812 PyThreadState* __tstate = wxPyBeginAllowThreads();
6813 (arg1)->Start(arg2,arg3);
6814
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 Py_INCREF(Py_None); resultobj = Py_None;
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
6826 PyObject *obj;
6827 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6828 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6829 Py_INCREF(obj);
6830 return Py_BuildValue((char *)"");
6831 }
6832 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
6833 PyObject *resultobj;
6834 wxLog *result;
6835 char *kwnames[] = {
6836 NULL
6837 };
6838
6839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6840 {
6841 PyThreadState* __tstate = wxPyBeginAllowThreads();
6842 result = (wxLog *)new wxLog();
6843
6844 wxPyEndAllowThreads(__tstate);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj;
6856 bool result;
6857 char *kwnames[] = {
6858 NULL
6859 };
6860
6861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6862 {
6863 PyThreadState* __tstate = wxPyBeginAllowThreads();
6864 result = (bool)wxLog::IsEnabled();
6865
6866 wxPyEndAllowThreads(__tstate);
6867 if (PyErr_Occurred()) SWIG_fail;
6868 }
6869 {
6870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6871 }
6872 return resultobj;
6873 fail:
6874 return NULL;
6875 }
6876
6877
6878 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
6879 PyObject *resultobj;
6880 bool arg1 = (bool) True ;
6881 bool result;
6882 PyObject * obj0 = 0 ;
6883 char *kwnames[] = {
6884 (char *) "doIt", NULL
6885 };
6886
6887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6888 if (obj0) {
6889 arg1 = (bool) SWIG_AsBool(obj0);
6890 if (PyErr_Occurred()) SWIG_fail;
6891 }
6892 {
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (bool)wxLog::EnableLogging(arg1);
6895
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 }
6899 {
6900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6901 }
6902 return resultobj;
6903 fail:
6904 return NULL;
6905 }
6906
6907
6908 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
6909 PyObject *resultobj;
6910 wxLogLevel arg1 ;
6911 wxChar *arg2 = (wxChar *) 0 ;
6912 time_t arg3 ;
6913 PyObject * obj0 = 0 ;
6914 PyObject * obj1 = 0 ;
6915 PyObject * obj2 = 0 ;
6916 char *kwnames[] = {
6917 (char *) "level",(char *) "szString",(char *) "t", NULL
6918 };
6919
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6921 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
6922 if (PyErr_Occurred()) SWIG_fail;
6923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
6924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6925 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 {
6928 PyThreadState* __tstate = wxPyBeginAllowThreads();
6929 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6930
6931 wxPyEndAllowThreads(__tstate);
6932 if (PyErr_Occurred()) SWIG_fail;
6933 }
6934 Py_INCREF(Py_None); resultobj = Py_None;
6935 return resultobj;
6936 fail:
6937 return NULL;
6938 }
6939
6940
6941 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj;
6943 wxLog *arg1 = (wxLog *) 0 ;
6944 PyObject * obj0 = 0 ;
6945 char *kwnames[] = {
6946 (char *) "self", NULL
6947 };
6948
6949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6952 {
6953 PyThreadState* __tstate = wxPyBeginAllowThreads();
6954 (arg1)->Flush();
6955
6956 wxPyEndAllowThreads(__tstate);
6957 if (PyErr_Occurred()) SWIG_fail;
6958 }
6959 Py_INCREF(Py_None); resultobj = Py_None;
6960 return resultobj;
6961 fail:
6962 return NULL;
6963 }
6964
6965
6966 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
6967 PyObject *resultobj;
6968 char *kwnames[] = {
6969 NULL
6970 };
6971
6972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6973 {
6974 PyThreadState* __tstate = wxPyBeginAllowThreads();
6975 wxLog::FlushActive();
6976
6977 wxPyEndAllowThreads(__tstate);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 Py_INCREF(Py_None); resultobj = Py_None;
6981 return resultobj;
6982 fail:
6983 return NULL;
6984 }
6985
6986
6987 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
6988 PyObject *resultobj;
6989 wxLog *result;
6990 char *kwnames[] = {
6991 NULL
6992 };
6993
6994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6995 {
6996 PyThreadState* __tstate = wxPyBeginAllowThreads();
6997 result = (wxLog *)wxLog::GetActiveTarget();
6998
6999 wxPyEndAllowThreads(__tstate);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7003 return resultobj;
7004 fail:
7005 return NULL;
7006 }
7007
7008
7009 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7010 PyObject *resultobj;
7011 wxLog *arg1 = (wxLog *) 0 ;
7012 wxLog *result;
7013 PyObject * obj0 = 0 ;
7014 char *kwnames[] = {
7015 (char *) "pLogger", NULL
7016 };
7017
7018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7021 {
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7024
7025 wxPyEndAllowThreads(__tstate);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7029 return resultobj;
7030 fail:
7031 return NULL;
7032 }
7033
7034
7035 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
7036 PyObject *resultobj;
7037 char *kwnames[] = {
7038 NULL
7039 };
7040
7041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 wxLog::Suspend();
7045
7046 wxPyEndAllowThreads(__tstate);
7047 if (PyErr_Occurred()) SWIG_fail;
7048 }
7049 Py_INCREF(Py_None); resultobj = Py_None;
7050 return resultobj;
7051 fail:
7052 return NULL;
7053 }
7054
7055
7056 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
7057 PyObject *resultobj;
7058 char *kwnames[] = {
7059 NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 wxLog::Resume();
7066
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 Py_INCREF(Py_None); resultobj = Py_None;
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj;
7079 bool arg1 = (bool) True ;
7080 PyObject * obj0 = 0 ;
7081 char *kwnames[] = {
7082 (char *) "bVerbose", NULL
7083 };
7084
7085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7086 if (obj0) {
7087 arg1 = (bool) SWIG_AsBool(obj0);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 {
7091 PyThreadState* __tstate = wxPyBeginAllowThreads();
7092 wxLog::SetVerbose(arg1);
7093
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 Py_INCREF(Py_None); resultobj = Py_None;
7098 return resultobj;
7099 fail:
7100 return NULL;
7101 }
7102
7103
7104 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj;
7106 wxLogLevel arg1 ;
7107 PyObject * obj0 = 0 ;
7108 char *kwnames[] = {
7109 (char *) "logLevel", NULL
7110 };
7111
7112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7113 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 {
7116 PyThreadState* __tstate = wxPyBeginAllowThreads();
7117 wxLog::SetLogLevel(arg1);
7118
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 Py_INCREF(Py_None); resultobj = Py_None;
7123 return resultobj;
7124 fail:
7125 return NULL;
7126 }
7127
7128
7129 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
7130 PyObject *resultobj;
7131 char *kwnames[] = {
7132 NULL
7133 };
7134
7135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7136 {
7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
7138 wxLog::DontCreateOnDemand();
7139
7140 wxPyEndAllowThreads(__tstate);
7141 if (PyErr_Occurred()) SWIG_fail;
7142 }
7143 Py_INCREF(Py_None); resultobj = Py_None;
7144 return resultobj;
7145 fail:
7146 return NULL;
7147 }
7148
7149
7150 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7151 PyObject *resultobj;
7152 wxTraceMask arg1 ;
7153 PyObject * obj0 = 0 ;
7154 char *kwnames[] = {
7155 (char *) "ulMask", NULL
7156 };
7157
7158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7159 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 wxLog::SetTraceMask(arg1);
7164
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 Py_INCREF(Py_None); resultobj = Py_None;
7169 return resultobj;
7170 fail:
7171 return NULL;
7172 }
7173
7174
7175 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7176 PyObject *resultobj;
7177 wxString *arg1 = 0 ;
7178 bool temp1 = False ;
7179 PyObject * obj0 = 0 ;
7180 char *kwnames[] = {
7181 (char *) "str", NULL
7182 };
7183
7184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7185 {
7186 arg1 = wxString_in_helper(obj0);
7187 if (arg1 == NULL) SWIG_fail;
7188 temp1 = True;
7189 }
7190 {
7191 PyThreadState* __tstate = wxPyBeginAllowThreads();
7192 wxLog::AddTraceMask((wxString const &)*arg1);
7193
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 Py_INCREF(Py_None); resultobj = Py_None;
7198 {
7199 if (temp1)
7200 delete arg1;
7201 }
7202 return resultobj;
7203 fail:
7204 {
7205 if (temp1)
7206 delete arg1;
7207 }
7208 return NULL;
7209 }
7210
7211
7212 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7213 PyObject *resultobj;
7214 wxString *arg1 = 0 ;
7215 bool temp1 = False ;
7216 PyObject * obj0 = 0 ;
7217 char *kwnames[] = {
7218 (char *) "str", NULL
7219 };
7220
7221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7222 {
7223 arg1 = wxString_in_helper(obj0);
7224 if (arg1 == NULL) SWIG_fail;
7225 temp1 = True;
7226 }
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 wxLog::RemoveTraceMask((wxString const &)*arg1);
7230
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 Py_INCREF(Py_None); resultobj = Py_None;
7235 {
7236 if (temp1)
7237 delete arg1;
7238 }
7239 return resultobj;
7240 fail:
7241 {
7242 if (temp1)
7243 delete arg1;
7244 }
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 char *kwnames[] = {
7252 NULL
7253 };
7254
7255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7256 {
7257 PyThreadState* __tstate = wxPyBeginAllowThreads();
7258 wxLog::ClearTraceMasks();
7259
7260 wxPyEndAllowThreads(__tstate);
7261 if (PyErr_Occurred()) SWIG_fail;
7262 }
7263 Py_INCREF(Py_None); resultobj = Py_None;
7264 return resultobj;
7265 fail:
7266 return NULL;
7267 }
7268
7269
7270 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7271 PyObject *resultobj;
7272 wxArrayString *result;
7273 char *kwnames[] = {
7274 NULL
7275 };
7276
7277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 {
7281 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7282 result = (wxArrayString *) &_result_ref;
7283 }
7284
7285 wxPyEndAllowThreads(__tstate);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 {
7289 resultobj = wxArrayString2PyList_helper(*result);
7290 }
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj;
7299 wxChar *arg1 = (wxChar *) 0 ;
7300 PyObject * obj0 = 0 ;
7301 char *kwnames[] = {
7302 (char *) "ts", NULL
7303 };
7304
7305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7308 {
7309 PyThreadState* __tstate = wxPyBeginAllowThreads();
7310 wxLog::SetTimestamp((wxChar const *)arg1);
7311
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 Py_INCREF(Py_None); resultobj = Py_None;
7316 return resultobj;
7317 fail:
7318 return NULL;
7319 }
7320
7321
7322 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7323 PyObject *resultobj;
7324 bool result;
7325 char *kwnames[] = {
7326 NULL
7327 };
7328
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7330 {
7331 PyThreadState* __tstate = wxPyBeginAllowThreads();
7332 result = (bool)wxLog::GetVerbose();
7333
7334 wxPyEndAllowThreads(__tstate);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 {
7338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7339 }
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj;
7348 wxTraceMask result;
7349 char *kwnames[] = {
7350 NULL
7351 };
7352
7353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7354 {
7355 PyThreadState* __tstate = wxPyBeginAllowThreads();
7356 result = (wxTraceMask)wxLog::GetTraceMask();
7357
7358 wxPyEndAllowThreads(__tstate);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7362 return resultobj;
7363 fail:
7364 return NULL;
7365 }
7366
7367
7368 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7369 PyObject *resultobj;
7370 wxChar *arg1 = (wxChar *) 0 ;
7371 bool result;
7372 PyObject * obj0 = 0 ;
7373 char *kwnames[] = {
7374 (char *) "mask", NULL
7375 };
7376
7377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7380 {
7381 PyThreadState* __tstate = wxPyBeginAllowThreads();
7382 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7383
7384 wxPyEndAllowThreads(__tstate);
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 {
7388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7389 }
7390 return resultobj;
7391 fail:
7392 return NULL;
7393 }
7394
7395
7396 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7397 PyObject *resultobj;
7398 wxLogLevel result;
7399 char *kwnames[] = {
7400 NULL
7401 };
7402
7403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7404 {
7405 PyThreadState* __tstate = wxPyBeginAllowThreads();
7406 result = (wxLogLevel)wxLog::GetLogLevel();
7407
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7412 return resultobj;
7413 fail:
7414 return NULL;
7415 }
7416
7417
7418 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7419 PyObject *resultobj;
7420 wxChar *result;
7421 char *kwnames[] = {
7422 NULL
7423 };
7424
7425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7426 {
7427 PyThreadState* __tstate = wxPyBeginAllowThreads();
7428 result = (wxChar *)wxLog::GetTimestamp();
7429
7430 wxPyEndAllowThreads(__tstate);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7434 return resultobj;
7435 fail:
7436 return NULL;
7437 }
7438
7439
7440 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj;
7442 wxString result;
7443 char *kwnames[] = {
7444 NULL
7445 };
7446
7447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7448 {
7449 PyThreadState* __tstate = wxPyBeginAllowThreads();
7450 result = Log_TimeStamp();
7451
7452 wxPyEndAllowThreads(__tstate);
7453 if (PyErr_Occurred()) SWIG_fail;
7454 }
7455 {
7456 #if wxUSE_UNICODE
7457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7458 #else
7459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7460 #endif
7461 }
7462 return resultobj;
7463 fail:
7464 return NULL;
7465 }
7466
7467
7468 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
7469 PyObject *resultobj;
7470 wxLog *arg1 = (wxLog *) 0 ;
7471 PyObject * obj0 = 0 ;
7472 char *kwnames[] = {
7473 (char *) "self", NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 wxLog_Destroy(arg1);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 Py_INCREF(Py_None); resultobj = Py_None;
7487 return resultobj;
7488 fail:
7489 return NULL;
7490 }
7491
7492
7493 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
7494 PyObject *obj;
7495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7496 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7497 Py_INCREF(obj);
7498 return Py_BuildValue((char *)"");
7499 }
7500 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
7501 PyObject *resultobj;
7502 wxLogStderr *result;
7503 char *kwnames[] = {
7504 NULL
7505 };
7506
7507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7508 {
7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
7510 result = (wxLogStderr *)new wxLogStderr();
7511
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7516 return resultobj;
7517 fail:
7518 return NULL;
7519 }
7520
7521
7522 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
7523 PyObject *obj;
7524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7525 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7526 Py_INCREF(obj);
7527 return Py_BuildValue((char *)"");
7528 }
7529 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
7530 PyObject *resultobj;
7531 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7532 wxLogTextCtrl *result;
7533 PyObject * obj0 = 0 ;
7534 char *kwnames[] = {
7535 (char *) "pTextCtrl", NULL
7536 };
7537
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7541 {
7542 PyThreadState* __tstate = wxPyBeginAllowThreads();
7543 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7544
7545 wxPyEndAllowThreads(__tstate);
7546 if (PyErr_Occurred()) SWIG_fail;
7547 }
7548 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7549 return resultobj;
7550 fail:
7551 return NULL;
7552 }
7553
7554
7555 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
7556 PyObject *obj;
7557 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7558 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7559 Py_INCREF(obj);
7560 return Py_BuildValue((char *)"");
7561 }
7562 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
7563 PyObject *resultobj;
7564 wxLogGui *result;
7565 char *kwnames[] = {
7566 NULL
7567 };
7568
7569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7570 {
7571 PyThreadState* __tstate = wxPyBeginAllowThreads();
7572 result = (wxLogGui *)new wxLogGui();
7573
7574 wxPyEndAllowThreads(__tstate);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7578 return resultobj;
7579 fail:
7580 return NULL;
7581 }
7582
7583
7584 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
7585 PyObject *obj;
7586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7587 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7588 Py_INCREF(obj);
7589 return Py_BuildValue((char *)"");
7590 }
7591 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7592 PyObject *resultobj;
7593 wxFrame *arg1 = (wxFrame *) 0 ;
7594 wxString *arg2 = 0 ;
7595 bool arg3 = (bool) True ;
7596 bool arg4 = (bool) True ;
7597 wxLogWindow *result;
7598 bool temp2 = False ;
7599 PyObject * obj0 = 0 ;
7600 PyObject * obj1 = 0 ;
7601 PyObject * obj2 = 0 ;
7602 PyObject * obj3 = 0 ;
7603 char *kwnames[] = {
7604 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7605 };
7606
7607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7610 {
7611 arg2 = wxString_in_helper(obj1);
7612 if (arg2 == NULL) SWIG_fail;
7613 temp2 = True;
7614 }
7615 if (obj2) {
7616 arg3 = (bool) SWIG_AsBool(obj2);
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 if (obj3) {
7620 arg4 = (bool) SWIG_AsBool(obj3);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7626
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7631 {
7632 if (temp2)
7633 delete arg2;
7634 }
7635 return resultobj;
7636 fail:
7637 {
7638 if (temp2)
7639 delete arg2;
7640 }
7641 return NULL;
7642 }
7643
7644
7645 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
7646 PyObject *resultobj;
7647 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7648 bool arg2 = (bool) True ;
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 char *kwnames[] = {
7652 (char *) "self",(char *) "bShow", NULL
7653 };
7654
7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7658 if (obj1) {
7659 arg2 = (bool) SWIG_AsBool(obj1);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 (arg1)->Show(arg2);
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 Py_INCREF(Py_None); resultobj = Py_None;
7670 return resultobj;
7671 fail:
7672 return NULL;
7673 }
7674
7675
7676 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
7677 PyObject *resultobj;
7678 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7679 wxFrame *result;
7680 PyObject * obj0 = 0 ;
7681 char *kwnames[] = {
7682 (char *) "self", NULL
7683 };
7684
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7688 {
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7691
7692 wxPyEndAllowThreads(__tstate);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 {
7696 resultobj = wxPyMake_wxObject(result);
7697 }
7698 return resultobj;
7699 fail:
7700 return NULL;
7701 }
7702
7703
7704 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
7705 PyObject *resultobj;
7706 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7707 wxLog *result;
7708 PyObject * obj0 = 0 ;
7709 char *kwnames[] = {
7710 (char *) "self", NULL
7711 };
7712
7713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7719
7720 wxPyEndAllowThreads(__tstate);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7724 return resultobj;
7725 fail:
7726 return NULL;
7727 }
7728
7729
7730 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7731 PyObject *resultobj;
7732 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7733 bool result;
7734 PyObject * obj0 = 0 ;
7735 char *kwnames[] = {
7736 (char *) "self", NULL
7737 };
7738
7739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7742 {
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7745
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 {
7750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7751 }
7752 return resultobj;
7753 fail:
7754 return NULL;
7755 }
7756
7757
7758 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7759 PyObject *resultobj;
7760 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7761 bool arg2 ;
7762 PyObject * obj0 = 0 ;
7763 PyObject * obj1 = 0 ;
7764 char *kwnames[] = {
7765 (char *) "self",(char *) "bDoPass", NULL
7766 };
7767
7768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7771 arg2 = (bool) SWIG_AsBool(obj1);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 {
7774 PyThreadState* __tstate = wxPyBeginAllowThreads();
7775 (arg1)->PassMessages(arg2);
7776
7777 wxPyEndAllowThreads(__tstate);
7778 if (PyErr_Occurred()) SWIG_fail;
7779 }
7780 Py_INCREF(Py_None); resultobj = Py_None;
7781 return resultobj;
7782 fail:
7783 return NULL;
7784 }
7785
7786
7787 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
7788 PyObject *obj;
7789 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7790 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7791 Py_INCREF(obj);
7792 return Py_BuildValue((char *)"");
7793 }
7794 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
7795 PyObject *resultobj;
7796 wxLog *arg1 = (wxLog *) 0 ;
7797 wxLogChain *result;
7798 PyObject * obj0 = 0 ;
7799 char *kwnames[] = {
7800 (char *) "logger", NULL
7801 };
7802
7803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7806 {
7807 PyThreadState* __tstate = wxPyBeginAllowThreads();
7808 result = (wxLogChain *)new wxLogChain(arg1);
7809
7810 wxPyEndAllowThreads(__tstate);
7811 if (PyErr_Occurred()) SWIG_fail;
7812 }
7813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7814 return resultobj;
7815 fail:
7816 return NULL;
7817 }
7818
7819
7820 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
7821 PyObject *resultobj;
7822 wxLogChain *arg1 = (wxLogChain *) 0 ;
7823 wxLog *arg2 = (wxLog *) 0 ;
7824 PyObject * obj0 = 0 ;
7825 PyObject * obj1 = 0 ;
7826 char *kwnames[] = {
7827 (char *) "self",(char *) "logger", NULL
7828 };
7829
7830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7835 {
7836 PyThreadState* __tstate = wxPyBeginAllowThreads();
7837 (arg1)->SetLog(arg2);
7838
7839 wxPyEndAllowThreads(__tstate);
7840 if (PyErr_Occurred()) SWIG_fail;
7841 }
7842 Py_INCREF(Py_None); resultobj = Py_None;
7843 return resultobj;
7844 fail:
7845 return NULL;
7846 }
7847
7848
7849 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7850 PyObject *resultobj;
7851 wxLogChain *arg1 = (wxLogChain *) 0 ;
7852 bool arg2 ;
7853 PyObject * obj0 = 0 ;
7854 PyObject * obj1 = 0 ;
7855 char *kwnames[] = {
7856 (char *) "self",(char *) "bDoPass", NULL
7857 };
7858
7859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7862 arg2 = (bool) SWIG_AsBool(obj1);
7863 if (PyErr_Occurred()) SWIG_fail;
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 (arg1)->PassMessages(arg2);
7867
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 Py_INCREF(Py_None); resultobj = Py_None;
7872 return resultobj;
7873 fail:
7874 return NULL;
7875 }
7876
7877
7878 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7879 PyObject *resultobj;
7880 wxLogChain *arg1 = (wxLogChain *) 0 ;
7881 bool result;
7882 PyObject * obj0 = 0 ;
7883 char *kwnames[] = {
7884 (char *) "self", NULL
7885 };
7886
7887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7890 {
7891 PyThreadState* __tstate = wxPyBeginAllowThreads();
7892 result = (bool)(arg1)->IsPassingMessages();
7893
7894 wxPyEndAllowThreads(__tstate);
7895 if (PyErr_Occurred()) SWIG_fail;
7896 }
7897 {
7898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7899 }
7900 return resultobj;
7901 fail:
7902 return NULL;
7903 }
7904
7905
7906 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
7907 PyObject *resultobj;
7908 wxLogChain *arg1 = (wxLogChain *) 0 ;
7909 wxLog *result;
7910 PyObject * obj0 = 0 ;
7911 char *kwnames[] = {
7912 (char *) "self", NULL
7913 };
7914
7915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7918 {
7919 PyThreadState* __tstate = wxPyBeginAllowThreads();
7920 result = (wxLog *)(arg1)->GetOldLog();
7921
7922 wxPyEndAllowThreads(__tstate);
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7926 return resultobj;
7927 fail:
7928 return NULL;
7929 }
7930
7931
7932 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
7933 PyObject *obj;
7934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7935 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7936 Py_INCREF(obj);
7937 return Py_BuildValue((char *)"");
7938 }
7939 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
7940 PyObject *resultobj;
7941 unsigned long result;
7942 char *kwnames[] = {
7943 NULL
7944 };
7945
7946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7947 {
7948 PyThreadState* __tstate = wxPyBeginAllowThreads();
7949 result = (unsigned long)wxSysErrorCode();
7950
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7955 return resultobj;
7956 fail:
7957 return NULL;
7958 }
7959
7960
7961 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
7962 PyObject *resultobj;
7963 unsigned long arg1 = (unsigned long) 0 ;
7964 wxString result;
7965 PyObject * obj0 = 0 ;
7966 char *kwnames[] = {
7967 (char *) "nErrCode", NULL
7968 };
7969
7970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7971 if (obj0) {
7972 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
7973 if (PyErr_Occurred()) SWIG_fail;
7974 }
7975 {
7976 PyThreadState* __tstate = wxPyBeginAllowThreads();
7977 result = wxSysErrorMsg(arg1);
7978
7979 wxPyEndAllowThreads(__tstate);
7980 if (PyErr_Occurred()) SWIG_fail;
7981 }
7982 {
7983 #if wxUSE_UNICODE
7984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7985 #else
7986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7987 #endif
7988 }
7989 return resultobj;
7990 fail:
7991 return NULL;
7992 }
7993
7994
7995 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
7996 PyObject *resultobj;
7997 wxString *arg1 = 0 ;
7998 bool temp1 = False ;
7999 PyObject * obj0 = 0 ;
8000 char *kwnames[] = {
8001 (char *) "msg", NULL
8002 };
8003
8004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8005 {
8006 arg1 = wxString_in_helper(obj0);
8007 if (arg1 == NULL) SWIG_fail;
8008 temp1 = True;
8009 }
8010 {
8011 PyThreadState* __tstate = wxPyBeginAllowThreads();
8012 wxLogFatalError((wxString const &)*arg1);
8013
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 Py_INCREF(Py_None); resultobj = Py_None;
8018 {
8019 if (temp1)
8020 delete arg1;
8021 }
8022 return resultobj;
8023 fail:
8024 {
8025 if (temp1)
8026 delete arg1;
8027 }
8028 return NULL;
8029 }
8030
8031
8032 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
8033 PyObject *resultobj;
8034 wxString *arg1 = 0 ;
8035 bool temp1 = False ;
8036 PyObject * obj0 = 0 ;
8037 char *kwnames[] = {
8038 (char *) "msg", NULL
8039 };
8040
8041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8042 {
8043 arg1 = wxString_in_helper(obj0);
8044 if (arg1 == NULL) SWIG_fail;
8045 temp1 = True;
8046 }
8047 {
8048 PyThreadState* __tstate = wxPyBeginAllowThreads();
8049 wxLogError((wxString const &)*arg1);
8050
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 Py_INCREF(Py_None); resultobj = Py_None;
8055 {
8056 if (temp1)
8057 delete arg1;
8058 }
8059 return resultobj;
8060 fail:
8061 {
8062 if (temp1)
8063 delete arg1;
8064 }
8065 return NULL;
8066 }
8067
8068
8069 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
8070 PyObject *resultobj;
8071 wxString *arg1 = 0 ;
8072 bool temp1 = False ;
8073 PyObject * obj0 = 0 ;
8074 char *kwnames[] = {
8075 (char *) "msg", NULL
8076 };
8077
8078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8079 {
8080 arg1 = wxString_in_helper(obj0);
8081 if (arg1 == NULL) SWIG_fail;
8082 temp1 = True;
8083 }
8084 {
8085 PyThreadState* __tstate = wxPyBeginAllowThreads();
8086 wxLogWarning((wxString const &)*arg1);
8087
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 Py_INCREF(Py_None); resultobj = Py_None;
8092 {
8093 if (temp1)
8094 delete arg1;
8095 }
8096 return resultobj;
8097 fail:
8098 {
8099 if (temp1)
8100 delete arg1;
8101 }
8102 return NULL;
8103 }
8104
8105
8106 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj;
8108 wxString *arg1 = 0 ;
8109 bool temp1 = False ;
8110 PyObject * obj0 = 0 ;
8111 char *kwnames[] = {
8112 (char *) "msg", NULL
8113 };
8114
8115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8116 {
8117 arg1 = wxString_in_helper(obj0);
8118 if (arg1 == NULL) SWIG_fail;
8119 temp1 = True;
8120 }
8121 {
8122 PyThreadState* __tstate = wxPyBeginAllowThreads();
8123 wxLogMessage((wxString const &)*arg1);
8124
8125 wxPyEndAllowThreads(__tstate);
8126 if (PyErr_Occurred()) SWIG_fail;
8127 }
8128 Py_INCREF(Py_None); resultobj = Py_None;
8129 {
8130 if (temp1)
8131 delete arg1;
8132 }
8133 return resultobj;
8134 fail:
8135 {
8136 if (temp1)
8137 delete arg1;
8138 }
8139 return NULL;
8140 }
8141
8142
8143 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8144 PyObject *resultobj;
8145 wxString *arg1 = 0 ;
8146 bool temp1 = False ;
8147 PyObject * obj0 = 0 ;
8148 char *kwnames[] = {
8149 (char *) "msg", NULL
8150 };
8151
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8153 {
8154 arg1 = wxString_in_helper(obj0);
8155 if (arg1 == NULL) SWIG_fail;
8156 temp1 = True;
8157 }
8158 {
8159 PyThreadState* __tstate = wxPyBeginAllowThreads();
8160 wxLogInfo((wxString const &)*arg1);
8161
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 Py_INCREF(Py_None); resultobj = Py_None;
8166 {
8167 if (temp1)
8168 delete arg1;
8169 }
8170 return resultobj;
8171 fail:
8172 {
8173 if (temp1)
8174 delete arg1;
8175 }
8176 return NULL;
8177 }
8178
8179
8180 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
8181 PyObject *resultobj;
8182 wxString *arg1 = 0 ;
8183 bool temp1 = False ;
8184 PyObject * obj0 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "msg", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8190 {
8191 arg1 = wxString_in_helper(obj0);
8192 if (arg1 == NULL) SWIG_fail;
8193 temp1 = True;
8194 }
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 wxLogDebug((wxString const &)*arg1);
8198
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 Py_INCREF(Py_None); resultobj = Py_None;
8203 {
8204 if (temp1)
8205 delete arg1;
8206 }
8207 return resultobj;
8208 fail:
8209 {
8210 if (temp1)
8211 delete arg1;
8212 }
8213 return NULL;
8214 }
8215
8216
8217 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
8218 PyObject *resultobj;
8219 wxString *arg1 = 0 ;
8220 bool temp1 = False ;
8221 PyObject * obj0 = 0 ;
8222 char *kwnames[] = {
8223 (char *) "msg", NULL
8224 };
8225
8226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8227 {
8228 arg1 = wxString_in_helper(obj0);
8229 if (arg1 == NULL) SWIG_fail;
8230 temp1 = True;
8231 }
8232 {
8233 PyThreadState* __tstate = wxPyBeginAllowThreads();
8234 wxLogVerbose((wxString const &)*arg1);
8235
8236 wxPyEndAllowThreads(__tstate);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 Py_INCREF(Py_None); resultobj = Py_None;
8240 {
8241 if (temp1)
8242 delete arg1;
8243 }
8244 return resultobj;
8245 fail:
8246 {
8247 if (temp1)
8248 delete arg1;
8249 }
8250 return NULL;
8251 }
8252
8253
8254 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj;
8256 wxString *arg1 = 0 ;
8257 bool temp1 = False ;
8258 PyObject * obj0 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "msg", NULL
8261 };
8262
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8264 {
8265 arg1 = wxString_in_helper(obj0);
8266 if (arg1 == NULL) SWIG_fail;
8267 temp1 = True;
8268 }
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 wxLogStatus((wxString const &)*arg1);
8272
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) SWIG_fail;
8275 }
8276 Py_INCREF(Py_None); resultobj = Py_None;
8277 {
8278 if (temp1)
8279 delete arg1;
8280 }
8281 return resultobj;
8282 fail:
8283 {
8284 if (temp1)
8285 delete arg1;
8286 }
8287 return NULL;
8288 }
8289
8290
8291 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8292 PyObject *resultobj;
8293 wxFrame *arg1 = (wxFrame *) 0 ;
8294 wxString *arg2 = 0 ;
8295 bool temp2 = False ;
8296 PyObject * obj0 = 0 ;
8297 PyObject * obj1 = 0 ;
8298 char *kwnames[] = {
8299 (char *) "pFrame",(char *) "msg", NULL
8300 };
8301
8302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8305 {
8306 arg2 = wxString_in_helper(obj1);
8307 if (arg2 == NULL) SWIG_fail;
8308 temp2 = True;
8309 }
8310 {
8311 PyThreadState* __tstate = wxPyBeginAllowThreads();
8312 wxLogStatus(arg1,(wxString const &)*arg2);
8313
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 Py_INCREF(Py_None); resultobj = Py_None;
8318 {
8319 if (temp2)
8320 delete arg2;
8321 }
8322 return resultobj;
8323 fail:
8324 {
8325 if (temp2)
8326 delete arg2;
8327 }
8328 return NULL;
8329 }
8330
8331
8332 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
8333 PyObject *resultobj;
8334 wxString *arg1 = 0 ;
8335 bool temp1 = False ;
8336 PyObject * obj0 = 0 ;
8337 char *kwnames[] = {
8338 (char *) "msg", NULL
8339 };
8340
8341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8342 {
8343 arg1 = wxString_in_helper(obj0);
8344 if (arg1 == NULL) SWIG_fail;
8345 temp1 = True;
8346 }
8347 {
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 wxLogSysError((wxString const &)*arg1);
8350
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 Py_INCREF(Py_None); resultobj = Py_None;
8355 {
8356 if (temp1)
8357 delete arg1;
8358 }
8359 return resultobj;
8360 fail:
8361 {
8362 if (temp1)
8363 delete arg1;
8364 }
8365 return NULL;
8366 }
8367
8368
8369 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
8370 PyObject *resultobj;
8371 unsigned long arg1 ;
8372 wxString *arg2 = 0 ;
8373 bool temp2 = False ;
8374 PyObject * obj0 = 0 ;
8375 PyObject * obj1 = 0 ;
8376
8377 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8378 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 {
8381 arg2 = wxString_in_helper(obj1);
8382 if (arg2 == NULL) SWIG_fail;
8383 temp2 = True;
8384 }
8385 {
8386 PyThreadState* __tstate = wxPyBeginAllowThreads();
8387 wxLogTrace(arg1,(wxString const &)*arg2);
8388
8389 wxPyEndAllowThreads(__tstate);
8390 if (PyErr_Occurred()) SWIG_fail;
8391 }
8392 Py_INCREF(Py_None); resultobj = Py_None;
8393 {
8394 if (temp2)
8395 delete arg2;
8396 }
8397 return resultobj;
8398 fail:
8399 {
8400 if (temp2)
8401 delete arg2;
8402 }
8403 return NULL;
8404 }
8405
8406
8407 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
8408 PyObject *resultobj;
8409 wxString *arg1 = 0 ;
8410 wxString *arg2 = 0 ;
8411 bool temp1 = False ;
8412 bool temp2 = False ;
8413 PyObject * obj0 = 0 ;
8414 PyObject * obj1 = 0 ;
8415
8416 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8417 {
8418 arg1 = wxString_in_helper(obj0);
8419 if (arg1 == NULL) SWIG_fail;
8420 temp1 = True;
8421 }
8422 {
8423 arg2 = wxString_in_helper(obj1);
8424 if (arg2 == NULL) SWIG_fail;
8425 temp2 = True;
8426 }
8427 {
8428 PyThreadState* __tstate = wxPyBeginAllowThreads();
8429 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8430
8431 wxPyEndAllowThreads(__tstate);
8432 if (PyErr_Occurred()) SWIG_fail;
8433 }
8434 Py_INCREF(Py_None); resultobj = Py_None;
8435 {
8436 if (temp1)
8437 delete arg1;
8438 }
8439 {
8440 if (temp2)
8441 delete arg2;
8442 }
8443 return resultobj;
8444 fail:
8445 {
8446 if (temp1)
8447 delete arg1;
8448 }
8449 {
8450 if (temp2)
8451 delete arg2;
8452 }
8453 return NULL;
8454 }
8455
8456
8457 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8458 int argc;
8459 PyObject *argv[3];
8460 int ii;
8461
8462 argc = PyObject_Length(args);
8463 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8464 argv[ii] = PyTuple_GetItem(args,ii);
8465 }
8466 if (argc == 2) {
8467 int _v;
8468 {
8469 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8470 }
8471 if (_v) {
8472 {
8473 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8474 }
8475 if (_v) {
8476 return _wrap_LogTrace__SWIG_1(self,args);
8477 }
8478 }
8479 }
8480 if (argc == 2) {
8481 int _v;
8482 _v = SWIG_CheckUnsignedLong(argv[0]);
8483 if (_v) {
8484 {
8485 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8486 }
8487 if (_v) {
8488 return _wrap_LogTrace__SWIG_0(self,args);
8489 }
8490 }
8491 }
8492
8493 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8494 return NULL;
8495 }
8496
8497
8498 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
8499 PyObject *resultobj;
8500 unsigned long arg1 ;
8501 wxString *arg2 = 0 ;
8502 bool temp2 = False ;
8503 PyObject * obj0 = 0 ;
8504 PyObject * obj1 = 0 ;
8505 char *kwnames[] = {
8506 (char *) "level",(char *) "msg", NULL
8507 };
8508
8509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8510 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 {
8513 arg2 = wxString_in_helper(obj1);
8514 if (arg2 == NULL) SWIG_fail;
8515 temp2 = True;
8516 }
8517 {
8518 PyThreadState* __tstate = wxPyBeginAllowThreads();
8519 wxLogGeneric(arg1,(wxString const &)*arg2);
8520
8521 wxPyEndAllowThreads(__tstate);
8522 if (PyErr_Occurred()) SWIG_fail;
8523 }
8524 Py_INCREF(Py_None); resultobj = Py_None;
8525 {
8526 if (temp2)
8527 delete arg2;
8528 }
8529 return resultobj;
8530 fail:
8531 {
8532 if (temp2)
8533 delete arg2;
8534 }
8535 return NULL;
8536 }
8537
8538
8539 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8540 PyObject *resultobj;
8541 wxString *arg1 = 0 ;
8542 wxString *arg2 = 0 ;
8543 bool temp1 = False ;
8544 bool temp2 = False ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "title",(char *) "text", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8552 {
8553 arg1 = wxString_in_helper(obj0);
8554 if (arg1 == NULL) SWIG_fail;
8555 temp1 = True;
8556 }
8557 {
8558 arg2 = wxString_in_helper(obj1);
8559 if (arg2 == NULL) SWIG_fail;
8560 temp2 = True;
8561 }
8562 {
8563 PyThreadState* __tstate = wxPyBeginAllowThreads();
8564 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8565
8566 wxPyEndAllowThreads(__tstate);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
8569 Py_INCREF(Py_None); resultobj = Py_None;
8570 {
8571 if (temp1)
8572 delete arg1;
8573 }
8574 {
8575 if (temp2)
8576 delete arg2;
8577 }
8578 return resultobj;
8579 fail:
8580 {
8581 if (temp1)
8582 delete arg1;
8583 }
8584 {
8585 if (temp2)
8586 delete arg2;
8587 }
8588 return NULL;
8589 }
8590
8591
8592 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj;
8594 wxLogNull *result;
8595 char *kwnames[] = {
8596 NULL
8597 };
8598
8599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8600 {
8601 PyThreadState* __tstate = wxPyBeginAllowThreads();
8602 result = (wxLogNull *)new wxLogNull();
8603
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8608 return resultobj;
8609 fail:
8610 return NULL;
8611 }
8612
8613
8614 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
8615 PyObject *resultobj;
8616 wxLogNull *arg1 = (wxLogNull *) 0 ;
8617 PyObject * obj0 = 0 ;
8618 char *kwnames[] = {
8619 (char *) "self", NULL
8620 };
8621
8622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8625 {
8626 PyThreadState* __tstate = wxPyBeginAllowThreads();
8627 delete arg1;
8628
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 Py_INCREF(Py_None); resultobj = Py_None;
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
8640 PyObject *obj;
8641 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8642 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8643 Py_INCREF(obj);
8644 return Py_BuildValue((char *)"");
8645 }
8646 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
8647 PyObject *resultobj;
8648 wxPyLog *result;
8649 char *kwnames[] = {
8650 NULL
8651 };
8652
8653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8654 {
8655 PyThreadState* __tstate = wxPyBeginAllowThreads();
8656 result = (wxPyLog *)new wxPyLog();
8657
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8662 return resultobj;
8663 fail:
8664 return NULL;
8665 }
8666
8667
8668 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8669 PyObject *resultobj;
8670 wxPyLog *arg1 = (wxPyLog *) 0 ;
8671 PyObject *arg2 = (PyObject *) 0 ;
8672 PyObject *arg3 = (PyObject *) 0 ;
8673 PyObject * obj0 = 0 ;
8674 PyObject * obj1 = 0 ;
8675 PyObject * obj2 = 0 ;
8676 char *kwnames[] = {
8677 (char *) "self",(char *) "self",(char *) "_class", NULL
8678 };
8679
8680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8683 arg2 = obj1;
8684 arg3 = obj2;
8685 {
8686 PyThreadState* __tstate = wxPyBeginAllowThreads();
8687 (arg1)->_setCallbackInfo(arg2,arg3);
8688
8689 wxPyEndAllowThreads(__tstate);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 Py_INCREF(Py_None); resultobj = Py_None;
8693 return resultobj;
8694 fail:
8695 return NULL;
8696 }
8697
8698
8699 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
8700 PyObject *obj;
8701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8702 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8703 Py_INCREF(obj);
8704 return Py_BuildValue((char *)"");
8705 }
8706 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj;
8708 int arg1 ;
8709 int arg2 = (int) wxSIGTERM ;
8710 int result;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "pid",(char *) "sig", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8718 arg1 = (int) SWIG_AsInt(obj0);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 if (obj1) {
8721 arg2 = (wxSignal) SWIG_AsInt(obj1);
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
8724 {
8725 PyThreadState* __tstate = wxPyBeginAllowThreads();
8726 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8727
8728 wxPyEndAllowThreads(__tstate);
8729 if (PyErr_Occurred()) SWIG_fail;
8730 }
8731 resultobj = SWIG_FromInt((int)result);
8732 return resultobj;
8733 fail:
8734 return NULL;
8735 }
8736
8737
8738 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
8739 PyObject *resultobj;
8740 int arg1 ;
8741 bool result;
8742 PyObject * obj0 = 0 ;
8743 char *kwnames[] = {
8744 (char *) "pid", NULL
8745 };
8746
8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8748 arg1 = (int) SWIG_AsInt(obj0);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 {
8751 PyThreadState* __tstate = wxPyBeginAllowThreads();
8752 result = (bool)wxPyProcess::Exists(arg1);
8753
8754 wxPyEndAllowThreads(__tstate);
8755 if (PyErr_Occurred()) SWIG_fail;
8756 }
8757 {
8758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8759 }
8760 return resultobj;
8761 fail:
8762 return NULL;
8763 }
8764
8765
8766 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
8767 PyObject *resultobj;
8768 wxString *arg1 = 0 ;
8769 int arg2 = (int) wxEXEC_ASYNC ;
8770 wxPyProcess *result;
8771 bool temp1 = False ;
8772 PyObject * obj0 = 0 ;
8773 PyObject * obj1 = 0 ;
8774 char *kwnames[] = {
8775 (char *) "cmd",(char *) "flags", NULL
8776 };
8777
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8779 {
8780 arg1 = wxString_in_helper(obj0);
8781 if (arg1 == NULL) SWIG_fail;
8782 temp1 = True;
8783 }
8784 if (obj1) {
8785 arg2 = (int) SWIG_AsInt(obj1);
8786 if (PyErr_Occurred()) SWIG_fail;
8787 }
8788 {
8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
8790 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8791
8792 wxPyEndAllowThreads(__tstate);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8796 {
8797 if (temp1)
8798 delete arg1;
8799 }
8800 return resultobj;
8801 fail:
8802 {
8803 if (temp1)
8804 delete arg1;
8805 }
8806 return NULL;
8807 }
8808
8809
8810 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
8811 PyObject *resultobj;
8812 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8813 int arg2 = (int) -1 ;
8814 wxPyProcess *result;
8815 PyObject * obj0 = 0 ;
8816 PyObject * obj1 = 0 ;
8817 char *kwnames[] = {
8818 (char *) "parent",(char *) "id", NULL
8819 };
8820
8821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8822 if (obj0) {
8823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8825 }
8826 if (obj1) {
8827 arg2 = (int) SWIG_AsInt(obj1);
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 {
8831 PyThreadState* __tstate = wxPyBeginAllowThreads();
8832 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8833
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8838 return resultobj;
8839 fail:
8840 return NULL;
8841 }
8842
8843
8844 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8845 PyObject *resultobj;
8846 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8847 PyObject *arg2 = (PyObject *) 0 ;
8848 PyObject *arg3 = (PyObject *) 0 ;
8849 PyObject * obj0 = 0 ;
8850 PyObject * obj1 = 0 ;
8851 PyObject * obj2 = 0 ;
8852 char *kwnames[] = {
8853 (char *) "self",(char *) "self",(char *) "_class", NULL
8854 };
8855
8856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8859 arg2 = obj1;
8860 arg3 = obj2;
8861 {
8862 PyThreadState* __tstate = wxPyBeginAllowThreads();
8863 (arg1)->_setCallbackInfo(arg2,arg3);
8864
8865 wxPyEndAllowThreads(__tstate);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 }
8868 Py_INCREF(Py_None); resultobj = Py_None;
8869 return resultobj;
8870 fail:
8871 return NULL;
8872 }
8873
8874
8875 static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
8876 PyObject *resultobj;
8877 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8878 int arg2 ;
8879 int arg3 ;
8880 PyObject * obj0 = 0 ;
8881 PyObject * obj1 = 0 ;
8882 PyObject * obj2 = 0 ;
8883 char *kwnames[] = {
8884 (char *) "self",(char *) "pid",(char *) "status", NULL
8885 };
8886
8887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8890 arg2 = (int) SWIG_AsInt(obj1);
8891 if (PyErr_Occurred()) SWIG_fail;
8892 arg3 = (int) SWIG_AsInt(obj2);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 (arg1)->base_OnTerminate(arg2,arg3);
8897
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 Py_INCREF(Py_None); resultobj = Py_None;
8902 return resultobj;
8903 fail:
8904 return NULL;
8905 }
8906
8907
8908 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj;
8910 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8911 PyObject * obj0 = 0 ;
8912 char *kwnames[] = {
8913 (char *) "self", NULL
8914 };
8915
8916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8919 {
8920 PyThreadState* __tstate = wxPyBeginAllowThreads();
8921 (arg1)->Redirect();
8922
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 Py_INCREF(Py_None); resultobj = Py_None;
8927 return resultobj;
8928 fail:
8929 return NULL;
8930 }
8931
8932
8933 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
8934 PyObject *resultobj;
8935 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8936 bool result;
8937 PyObject * obj0 = 0 ;
8938 char *kwnames[] = {
8939 (char *) "self", NULL
8940 };
8941
8942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 result = (bool)(arg1)->IsRedirected();
8948
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 {
8953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8954 }
8955 return resultobj;
8956 fail:
8957 return NULL;
8958 }
8959
8960
8961 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
8962 PyObject *resultobj;
8963 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8964 PyObject * obj0 = 0 ;
8965 char *kwnames[] = {
8966 (char *) "self", NULL
8967 };
8968
8969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8972 {
8973 PyThreadState* __tstate = wxPyBeginAllowThreads();
8974 (arg1)->Detach();
8975
8976 wxPyEndAllowThreads(__tstate);
8977 if (PyErr_Occurred()) SWIG_fail;
8978 }
8979 Py_INCREF(Py_None); resultobj = Py_None;
8980 return resultobj;
8981 fail:
8982 return NULL;
8983 }
8984
8985
8986 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
8987 PyObject *resultobj;
8988 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8989 wxInputStream *result;
8990 PyObject * obj0 = 0 ;
8991 char *kwnames[] = {
8992 (char *) "self", NULL
8993 };
8994
8995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8998 {
8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
9000 result = (wxInputStream *)(arg1)->GetInputStream();
9001
9002 wxPyEndAllowThreads(__tstate);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 }
9005 {
9006 wxPyInputStream * _ptr = NULL;
9007
9008 if (result) {
9009 _ptr = new wxPyInputStream(result);
9010 }
9011 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9012 }
9013 return resultobj;
9014 fail:
9015 return NULL;
9016 }
9017
9018
9019 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
9020 PyObject *resultobj;
9021 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9022 wxInputStream *result;
9023 PyObject * obj0 = 0 ;
9024 char *kwnames[] = {
9025 (char *) "self", NULL
9026 };
9027
9028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 result = (wxInputStream *)(arg1)->GetErrorStream();
9034
9035 wxPyEndAllowThreads(__tstate);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 {
9039 wxPyInputStream * _ptr = NULL;
9040
9041 if (result) {
9042 _ptr = new wxPyInputStream(result);
9043 }
9044 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9045 }
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj;
9054 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9055 wxOutputStream *result;
9056 PyObject * obj0 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "self", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (wxOutputStream *)(arg1)->GetOutputStream();
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9072 return resultobj;
9073 fail:
9074 return NULL;
9075 }
9076
9077
9078 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
9079 PyObject *resultobj;
9080 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9081 PyObject * obj0 = 0 ;
9082 char *kwnames[] = {
9083 (char *) "self", NULL
9084 };
9085
9086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9089 {
9090 PyThreadState* __tstate = wxPyBeginAllowThreads();
9091 (arg1)->CloseOutput();
9092
9093 wxPyEndAllowThreads(__tstate);
9094 if (PyErr_Occurred()) SWIG_fail;
9095 }
9096 Py_INCREF(Py_None); resultobj = Py_None;
9097 return resultobj;
9098 fail:
9099 return NULL;
9100 }
9101
9102
9103 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
9104 PyObject *resultobj;
9105 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9106 bool result;
9107 PyObject * obj0 = 0 ;
9108 char *kwnames[] = {
9109 (char *) "self", NULL
9110 };
9111
9112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9118
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 {
9123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9124 }
9125 return resultobj;
9126 fail:
9127 return NULL;
9128 }
9129
9130
9131 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9132 PyObject *resultobj;
9133 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9134 bool result;
9135 PyObject * obj0 = 0 ;
9136 char *kwnames[] = {
9137 (char *) "self", NULL
9138 };
9139
9140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9146
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 {
9151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9152 }
9153 return resultobj;
9154 fail:
9155 return NULL;
9156 }
9157
9158
9159 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9160 PyObject *resultobj;
9161 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9162 bool result;
9163 PyObject * obj0 = 0 ;
9164 char *kwnames[] = {
9165 (char *) "self", NULL
9166 };
9167
9168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9174
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) SWIG_fail;
9177 }
9178 {
9179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9180 }
9181 return resultobj;
9182 fail:
9183 return NULL;
9184 }
9185
9186
9187 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
9188 PyObject *obj;
9189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9190 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9191 Py_INCREF(obj);
9192 return Py_BuildValue((char *)"");
9193 }
9194 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9195 PyObject *resultobj;
9196 int arg1 = (int) 0 ;
9197 int arg2 = (int) 0 ;
9198 int arg3 = (int) 0 ;
9199 wxProcessEvent *result;
9200 PyObject * obj0 = 0 ;
9201 PyObject * obj1 = 0 ;
9202 PyObject * obj2 = 0 ;
9203 char *kwnames[] = {
9204 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9205 };
9206
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9208 if (obj0) {
9209 arg1 = (int) SWIG_AsInt(obj0);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 if (obj1) {
9213 arg2 = (int) SWIG_AsInt(obj1);
9214 if (PyErr_Occurred()) SWIG_fail;
9215 }
9216 if (obj2) {
9217 arg3 = (int) SWIG_AsInt(obj2);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 {
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9223
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) SWIG_fail;
9226 }
9227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9228 return resultobj;
9229 fail:
9230 return NULL;
9231 }
9232
9233
9234 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj;
9236 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9237 int result;
9238 PyObject * obj0 = 0 ;
9239 char *kwnames[] = {
9240 (char *) "self", NULL
9241 };
9242
9243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 result = (int)(arg1)->GetPid();
9249
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 resultobj = SWIG_FromInt((int)result);
9254 return resultobj;
9255 fail:
9256 return NULL;
9257 }
9258
9259
9260 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj;
9262 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9263 int result;
9264 PyObject * obj0 = 0 ;
9265 char *kwnames[] = {
9266 (char *) "self", NULL
9267 };
9268
9269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 result = (int)(arg1)->GetExitCode();
9275
9276 wxPyEndAllowThreads(__tstate);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 resultobj = SWIG_FromInt((int)result);
9280 return resultobj;
9281 fail:
9282 return NULL;
9283 }
9284
9285
9286 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj;
9288 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9289 int arg2 ;
9290 PyObject * obj0 = 0 ;
9291 PyObject * obj1 = 0 ;
9292 char *kwnames[] = {
9293 (char *) "self",(char *) "m_pid", NULL
9294 };
9295
9296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9299 arg2 = (int) SWIG_AsInt(obj1);
9300 if (PyErr_Occurred()) SWIG_fail;
9301 if (arg1) (arg1)->m_pid = arg2;
9302
9303 Py_INCREF(Py_None); resultobj = Py_None;
9304 return resultobj;
9305 fail:
9306 return NULL;
9307 }
9308
9309
9310 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
9311 PyObject *resultobj;
9312 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9313 int result;
9314 PyObject * obj0 = 0 ;
9315 char *kwnames[] = {
9316 (char *) "self", NULL
9317 };
9318
9319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9322 result = (int) ((arg1)->m_pid);
9323
9324 resultobj = SWIG_FromInt((int)result);
9325 return resultobj;
9326 fail:
9327 return NULL;
9328 }
9329
9330
9331 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
9332 PyObject *resultobj;
9333 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9334 int arg2 ;
9335 PyObject * obj0 = 0 ;
9336 PyObject * obj1 = 0 ;
9337 char *kwnames[] = {
9338 (char *) "self",(char *) "m_exitcode", NULL
9339 };
9340
9341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9344 arg2 = (int) SWIG_AsInt(obj1);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 if (arg1) (arg1)->m_exitcode = arg2;
9347
9348 Py_INCREF(Py_None); resultobj = Py_None;
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
9356 PyObject *resultobj;
9357 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9358 int result;
9359 PyObject * obj0 = 0 ;
9360 char *kwnames[] = {
9361 (char *) "self", NULL
9362 };
9363
9364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9367 result = (int) ((arg1)->m_exitcode);
9368
9369 resultobj = SWIG_FromInt((int)result);
9370 return resultobj;
9371 fail:
9372 return NULL;
9373 }
9374
9375
9376 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
9377 PyObject *obj;
9378 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9379 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9380 Py_INCREF(obj);
9381 return Py_BuildValue((char *)"");
9382 }
9383 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj;
9385 wxString *arg1 = 0 ;
9386 int arg2 = (int) wxEXEC_ASYNC ;
9387 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9388 long result;
9389 bool temp1 = False ;
9390 PyObject * obj0 = 0 ;
9391 PyObject * obj1 = 0 ;
9392 PyObject * obj2 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "command",(char *) "flags",(char *) "process", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9398 {
9399 arg1 = wxString_in_helper(obj0);
9400 if (arg1 == NULL) SWIG_fail;
9401 temp1 = True;
9402 }
9403 if (obj1) {
9404 arg2 = (int) SWIG_AsInt(obj1);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 if (obj2) {
9408 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9410 }
9411 {
9412 PyThreadState* __tstate = wxPyBeginAllowThreads();
9413 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9414
9415 wxPyEndAllowThreads(__tstate);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 }
9418 resultobj = SWIG_FromLong((long)result);
9419 {
9420 if (temp1)
9421 delete arg1;
9422 }
9423 return resultobj;
9424 fail:
9425 {
9426 if (temp1)
9427 delete arg1;
9428 }
9429 return NULL;
9430 }
9431
9432
9433 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9434 PyObject *resultobj;
9435 int arg1 = (int) wxJOYSTICK1 ;
9436 wxJoystick *result;
9437 PyObject * obj0 = 0 ;
9438 char *kwnames[] = {
9439 (char *) "joystick", NULL
9440 };
9441
9442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9443 if (obj0) {
9444 arg1 = (int) SWIG_AsInt(obj0);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 result = (wxJoystick *)new wxJoystick(arg1);
9450
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj;
9463 wxJoystick *arg1 = (wxJoystick *) 0 ;
9464 PyObject * obj0 = 0 ;
9465 char *kwnames[] = {
9466 (char *) "self", NULL
9467 };
9468
9469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9472 {
9473 PyThreadState* __tstate = wxPyBeginAllowThreads();
9474 delete arg1;
9475
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 Py_INCREF(Py_None); resultobj = Py_None;
9480 return resultobj;
9481 fail:
9482 return NULL;
9483 }
9484
9485
9486 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj;
9488 wxJoystick *arg1 = (wxJoystick *) 0 ;
9489 wxPoint result;
9490 PyObject * obj0 = 0 ;
9491 char *kwnames[] = {
9492 (char *) "self", NULL
9493 };
9494
9495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 result = (arg1)->GetPosition();
9501
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 {
9506 wxPoint * resultptr;
9507 resultptr = new wxPoint((wxPoint &) result);
9508 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9509 }
9510 return resultobj;
9511 fail:
9512 return NULL;
9513 }
9514
9515
9516 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9517 PyObject *resultobj;
9518 wxJoystick *arg1 = (wxJoystick *) 0 ;
9519 int result;
9520 PyObject * obj0 = 0 ;
9521 char *kwnames[] = {
9522 (char *) "self", NULL
9523 };
9524
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
9530 result = (int)(arg1)->GetZPosition();
9531
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 resultobj = SWIG_FromInt((int)result);
9536 return resultobj;
9537 fail:
9538 return NULL;
9539 }
9540
9541
9542 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
9543 PyObject *resultobj;
9544 wxJoystick *arg1 = (wxJoystick *) 0 ;
9545 int result;
9546 PyObject * obj0 = 0 ;
9547 char *kwnames[] = {
9548 (char *) "self", NULL
9549 };
9550
9551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 result = (int)(arg1)->GetButtonState();
9557
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 resultobj = SWIG_FromInt((int)result);
9562 return resultobj;
9563 fail:
9564 return NULL;
9565 }
9566
9567
9568 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9569 PyObject *resultobj;
9570 wxJoystick *arg1 = (wxJoystick *) 0 ;
9571 int result;
9572 PyObject * obj0 = 0 ;
9573 char *kwnames[] = {
9574 (char *) "self", NULL
9575 };
9576
9577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 result = (int)(arg1)->GetPOVPosition();
9583
9584 wxPyEndAllowThreads(__tstate);
9585 if (PyErr_Occurred()) SWIG_fail;
9586 }
9587 resultobj = SWIG_FromInt((int)result);
9588 return resultobj;
9589 fail:
9590 return NULL;
9591 }
9592
9593
9594 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9595 PyObject *resultobj;
9596 wxJoystick *arg1 = (wxJoystick *) 0 ;
9597 int result;
9598 PyObject * obj0 = 0 ;
9599 char *kwnames[] = {
9600 (char *) "self", NULL
9601 };
9602
9603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9606 {
9607 PyThreadState* __tstate = wxPyBeginAllowThreads();
9608 result = (int)(arg1)->GetPOVCTSPosition();
9609
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_FromInt((int)result);
9614 return resultobj;
9615 fail:
9616 return NULL;
9617 }
9618
9619
9620 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj;
9622 wxJoystick *arg1 = (wxJoystick *) 0 ;
9623 int result;
9624 PyObject * obj0 = 0 ;
9625 char *kwnames[] = {
9626 (char *) "self", NULL
9627 };
9628
9629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 result = (int)(arg1)->GetRudderPosition();
9635
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_FromInt((int)result);
9640 return resultobj;
9641 fail:
9642 return NULL;
9643 }
9644
9645
9646 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj;
9648 wxJoystick *arg1 = (wxJoystick *) 0 ;
9649 int result;
9650 PyObject * obj0 = 0 ;
9651 char *kwnames[] = {
9652 (char *) "self", NULL
9653 };
9654
9655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9658 {
9659 PyThreadState* __tstate = wxPyBeginAllowThreads();
9660 result = (int)(arg1)->GetUPosition();
9661
9662 wxPyEndAllowThreads(__tstate);
9663 if (PyErr_Occurred()) SWIG_fail;
9664 }
9665 resultobj = SWIG_FromInt((int)result);
9666 return resultobj;
9667 fail:
9668 return NULL;
9669 }
9670
9671
9672 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9673 PyObject *resultobj;
9674 wxJoystick *arg1 = (wxJoystick *) 0 ;
9675 int result;
9676 PyObject * obj0 = 0 ;
9677 char *kwnames[] = {
9678 (char *) "self", NULL
9679 };
9680
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 result = (int)(arg1)->GetVPosition();
9687
9688 wxPyEndAllowThreads(__tstate);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 resultobj = SWIG_FromInt((int)result);
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj;
9700 wxJoystick *arg1 = (wxJoystick *) 0 ;
9701 int result;
9702 PyObject * obj0 = 0 ;
9703 char *kwnames[] = {
9704 (char *) "self", NULL
9705 };
9706
9707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 result = (int)(arg1)->GetMovementThreshold();
9713
9714 wxPyEndAllowThreads(__tstate);
9715 if (PyErr_Occurred()) SWIG_fail;
9716 }
9717 resultobj = SWIG_FromInt((int)result);
9718 return resultobj;
9719 fail:
9720 return NULL;
9721 }
9722
9723
9724 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
9725 PyObject *resultobj;
9726 wxJoystick *arg1 = (wxJoystick *) 0 ;
9727 int arg2 ;
9728 PyObject * obj0 = 0 ;
9729 PyObject * obj1 = 0 ;
9730 char *kwnames[] = {
9731 (char *) "self",(char *) "threshold", NULL
9732 };
9733
9734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9737 arg2 = (int) SWIG_AsInt(obj1);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 (arg1)->SetMovementThreshold(arg2);
9742
9743 wxPyEndAllowThreads(__tstate);
9744 if (PyErr_Occurred()) SWIG_fail;
9745 }
9746 Py_INCREF(Py_None); resultobj = Py_None;
9747 return resultobj;
9748 fail:
9749 return NULL;
9750 }
9751
9752
9753 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9754 PyObject *resultobj;
9755 wxJoystick *arg1 = (wxJoystick *) 0 ;
9756 bool result;
9757 PyObject * obj0 = 0 ;
9758 char *kwnames[] = {
9759 (char *) "self", NULL
9760 };
9761
9762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 result = (bool)(arg1)->IsOk();
9768
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 {
9773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9774 }
9775 return resultobj;
9776 fail:
9777 return NULL;
9778 }
9779
9780
9781 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj;
9783 wxJoystick *arg1 = (wxJoystick *) 0 ;
9784 int result;
9785 PyObject * obj0 = 0 ;
9786 char *kwnames[] = {
9787 (char *) "self", NULL
9788 };
9789
9790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 result = (int)(arg1)->GetNumberJoysticks();
9796
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
9800 resultobj = SWIG_FromInt((int)result);
9801 return resultobj;
9802 fail:
9803 return NULL;
9804 }
9805
9806
9807 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj;
9809 wxJoystick *arg1 = (wxJoystick *) 0 ;
9810 int result;
9811 PyObject * obj0 = 0 ;
9812 char *kwnames[] = {
9813 (char *) "self", NULL
9814 };
9815
9816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (int)(arg1)->GetManufacturerId();
9822
9823 wxPyEndAllowThreads(__tstate);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 resultobj = SWIG_FromInt((int)result);
9827 return resultobj;
9828 fail:
9829 return NULL;
9830 }
9831
9832
9833 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
9834 PyObject *resultobj;
9835 wxJoystick *arg1 = (wxJoystick *) 0 ;
9836 int result;
9837 PyObject * obj0 = 0 ;
9838 char *kwnames[] = {
9839 (char *) "self", NULL
9840 };
9841
9842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 result = (int)(arg1)->GetProductId();
9848
9849 wxPyEndAllowThreads(__tstate);
9850 if (PyErr_Occurred()) SWIG_fail;
9851 }
9852 resultobj = SWIG_FromInt((int)result);
9853 return resultobj;
9854 fail:
9855 return NULL;
9856 }
9857
9858
9859 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
9860 PyObject *resultobj;
9861 wxJoystick *arg1 = (wxJoystick *) 0 ;
9862 wxString result;
9863 PyObject * obj0 = 0 ;
9864 char *kwnames[] = {
9865 (char *) "self", NULL
9866 };
9867
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 result = (arg1)->GetProductName();
9874
9875 wxPyEndAllowThreads(__tstate);
9876 if (PyErr_Occurred()) SWIG_fail;
9877 }
9878 {
9879 #if wxUSE_UNICODE
9880 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9881 #else
9882 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9883 #endif
9884 }
9885 return resultobj;
9886 fail:
9887 return NULL;
9888 }
9889
9890
9891 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
9892 PyObject *resultobj;
9893 wxJoystick *arg1 = (wxJoystick *) 0 ;
9894 int result;
9895 PyObject * obj0 = 0 ;
9896 char *kwnames[] = {
9897 (char *) "self", NULL
9898 };
9899
9900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9903 {
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 result = (int)(arg1)->GetXMin();
9906
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 resultobj = SWIG_FromInt((int)result);
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj;
9919 wxJoystick *arg1 = (wxJoystick *) 0 ;
9920 int result;
9921 PyObject * obj0 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 result = (int)(arg1)->GetYMin();
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 resultobj = SWIG_FromInt((int)result);
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
9944 PyObject *resultobj;
9945 wxJoystick *arg1 = (wxJoystick *) 0 ;
9946 int result;
9947 PyObject * obj0 = 0 ;
9948 char *kwnames[] = {
9949 (char *) "self", NULL
9950 };
9951
9952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (int)(arg1)->GetZMin();
9958
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 resultobj = SWIG_FromInt((int)result);
9963 return resultobj;
9964 fail:
9965 return NULL;
9966 }
9967
9968
9969 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
9970 PyObject *resultobj;
9971 wxJoystick *arg1 = (wxJoystick *) 0 ;
9972 int result;
9973 PyObject * obj0 = 0 ;
9974 char *kwnames[] = {
9975 (char *) "self", NULL
9976 };
9977
9978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9981 {
9982 PyThreadState* __tstate = wxPyBeginAllowThreads();
9983 result = (int)(arg1)->GetXMax();
9984
9985 wxPyEndAllowThreads(__tstate);
9986 if (PyErr_Occurred()) SWIG_fail;
9987 }
9988 resultobj = SWIG_FromInt((int)result);
9989 return resultobj;
9990 fail:
9991 return NULL;
9992 }
9993
9994
9995 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
9996 PyObject *resultobj;
9997 wxJoystick *arg1 = (wxJoystick *) 0 ;
9998 int result;
9999 PyObject * obj0 = 0 ;
10000 char *kwnames[] = {
10001 (char *) "self", NULL
10002 };
10003
10004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 result = (int)(arg1)->GetYMax();
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 resultobj = SWIG_FromInt((int)result);
10015 return resultobj;
10016 fail:
10017 return NULL;
10018 }
10019
10020
10021 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj;
10023 wxJoystick *arg1 = (wxJoystick *) 0 ;
10024 int result;
10025 PyObject * obj0 = 0 ;
10026 char *kwnames[] = {
10027 (char *) "self", NULL
10028 };
10029
10030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10033 {
10034 PyThreadState* __tstate = wxPyBeginAllowThreads();
10035 result = (int)(arg1)->GetZMax();
10036
10037 wxPyEndAllowThreads(__tstate);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 }
10040 resultobj = SWIG_FromInt((int)result);
10041 return resultobj;
10042 fail:
10043 return NULL;
10044 }
10045
10046
10047 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10048 PyObject *resultobj;
10049 wxJoystick *arg1 = (wxJoystick *) 0 ;
10050 int result;
10051 PyObject * obj0 = 0 ;
10052 char *kwnames[] = {
10053 (char *) "self", NULL
10054 };
10055
10056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10059 {
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 result = (int)(arg1)->GetNumberButtons();
10062
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 resultobj = SWIG_FromInt((int)result);
10067 return resultobj;
10068 fail:
10069 return NULL;
10070 }
10071
10072
10073 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10074 PyObject *resultobj;
10075 wxJoystick *arg1 = (wxJoystick *) 0 ;
10076 int result;
10077 PyObject * obj0 = 0 ;
10078 char *kwnames[] = {
10079 (char *) "self", NULL
10080 };
10081
10082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10085 {
10086 PyThreadState* __tstate = wxPyBeginAllowThreads();
10087 result = (int)(arg1)->GetNumberAxes();
10088
10089 wxPyEndAllowThreads(__tstate);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 resultobj = SWIG_FromInt((int)result);
10093 return resultobj;
10094 fail:
10095 return NULL;
10096 }
10097
10098
10099 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10100 PyObject *resultobj;
10101 wxJoystick *arg1 = (wxJoystick *) 0 ;
10102 int result;
10103 PyObject * obj0 = 0 ;
10104 char *kwnames[] = {
10105 (char *) "self", NULL
10106 };
10107
10108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10111 {
10112 PyThreadState* __tstate = wxPyBeginAllowThreads();
10113 result = (int)(arg1)->GetMaxButtons();
10114
10115 wxPyEndAllowThreads(__tstate);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 }
10118 resultobj = SWIG_FromInt((int)result);
10119 return resultobj;
10120 fail:
10121 return NULL;
10122 }
10123
10124
10125 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10126 PyObject *resultobj;
10127 wxJoystick *arg1 = (wxJoystick *) 0 ;
10128 int result;
10129 PyObject * obj0 = 0 ;
10130 char *kwnames[] = {
10131 (char *) "self", NULL
10132 };
10133
10134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10137 {
10138 PyThreadState* __tstate = wxPyBeginAllowThreads();
10139 result = (int)(arg1)->GetMaxAxes();
10140
10141 wxPyEndAllowThreads(__tstate);
10142 if (PyErr_Occurred()) SWIG_fail;
10143 }
10144 resultobj = SWIG_FromInt((int)result);
10145 return resultobj;
10146 fail:
10147 return NULL;
10148 }
10149
10150
10151 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
10152 PyObject *resultobj;
10153 wxJoystick *arg1 = (wxJoystick *) 0 ;
10154 int result;
10155 PyObject * obj0 = 0 ;
10156 char *kwnames[] = {
10157 (char *) "self", NULL
10158 };
10159
10160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10163 {
10164 PyThreadState* __tstate = wxPyBeginAllowThreads();
10165 result = (int)(arg1)->GetPollingMin();
10166
10167 wxPyEndAllowThreads(__tstate);
10168 if (PyErr_Occurred()) SWIG_fail;
10169 }
10170 resultobj = SWIG_FromInt((int)result);
10171 return resultobj;
10172 fail:
10173 return NULL;
10174 }
10175
10176
10177 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
10178 PyObject *resultobj;
10179 wxJoystick *arg1 = (wxJoystick *) 0 ;
10180 int result;
10181 PyObject * obj0 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "self", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10189 {
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 result = (int)(arg1)->GetPollingMax();
10192
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 resultobj = SWIG_FromInt((int)result);
10197 return resultobj;
10198 fail:
10199 return NULL;
10200 }
10201
10202
10203 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj;
10205 wxJoystick *arg1 = (wxJoystick *) 0 ;
10206 int result;
10207 PyObject * obj0 = 0 ;
10208 char *kwnames[] = {
10209 (char *) "self", NULL
10210 };
10211
10212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10215 {
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 result = (int)(arg1)->GetRudderMin();
10218
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 resultobj = SWIG_FromInt((int)result);
10223 return resultobj;
10224 fail:
10225 return NULL;
10226 }
10227
10228
10229 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
10230 PyObject *resultobj;
10231 wxJoystick *arg1 = (wxJoystick *) 0 ;
10232 int result;
10233 PyObject * obj0 = 0 ;
10234 char *kwnames[] = {
10235 (char *) "self", NULL
10236 };
10237
10238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10241 {
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 result = (int)(arg1)->GetRudderMax();
10244
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = SWIG_FromInt((int)result);
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj;
10257 wxJoystick *arg1 = (wxJoystick *) 0 ;
10258 int result;
10259 PyObject * obj0 = 0 ;
10260 char *kwnames[] = {
10261 (char *) "self", NULL
10262 };
10263
10264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 result = (int)(arg1)->GetUMin();
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 resultobj = SWIG_FromInt((int)result);
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj;
10283 wxJoystick *arg1 = (wxJoystick *) 0 ;
10284 int result;
10285 PyObject * obj0 = 0 ;
10286 char *kwnames[] = {
10287 (char *) "self", NULL
10288 };
10289
10290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10293 {
10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
10295 result = (int)(arg1)->GetUMax();
10296
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 resultobj = SWIG_FromInt((int)result);
10301 return resultobj;
10302 fail:
10303 return NULL;
10304 }
10305
10306
10307 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
10308 PyObject *resultobj;
10309 wxJoystick *arg1 = (wxJoystick *) 0 ;
10310 int result;
10311 PyObject * obj0 = 0 ;
10312 char *kwnames[] = {
10313 (char *) "self", NULL
10314 };
10315
10316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (int)(arg1)->GetVMin();
10322
10323 wxPyEndAllowThreads(__tstate);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 }
10326 resultobj = SWIG_FromInt((int)result);
10327 return resultobj;
10328 fail:
10329 return NULL;
10330 }
10331
10332
10333 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj;
10335 wxJoystick *arg1 = (wxJoystick *) 0 ;
10336 int result;
10337 PyObject * obj0 = 0 ;
10338 char *kwnames[] = {
10339 (char *) "self", NULL
10340 };
10341
10342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 result = (int)(arg1)->GetVMax();
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 resultobj = SWIG_FromInt((int)result);
10353 return resultobj;
10354 fail:
10355 return NULL;
10356 }
10357
10358
10359 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 wxJoystick *arg1 = (wxJoystick *) 0 ;
10362 bool result;
10363 PyObject * obj0 = 0 ;
10364 char *kwnames[] = {
10365 (char *) "self", NULL
10366 };
10367
10368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (bool)(arg1)->HasRudder();
10374
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 {
10379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10380 }
10381 return resultobj;
10382 fail:
10383 return NULL;
10384 }
10385
10386
10387 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
10388 PyObject *resultobj;
10389 wxJoystick *arg1 = (wxJoystick *) 0 ;
10390 bool result;
10391 PyObject * obj0 = 0 ;
10392 char *kwnames[] = {
10393 (char *) "self", NULL
10394 };
10395
10396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10399 {
10400 PyThreadState* __tstate = wxPyBeginAllowThreads();
10401 result = (bool)(arg1)->HasZ();
10402
10403 wxPyEndAllowThreads(__tstate);
10404 if (PyErr_Occurred()) SWIG_fail;
10405 }
10406 {
10407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10408 }
10409 return resultobj;
10410 fail:
10411 return NULL;
10412 }
10413
10414
10415 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
10416 PyObject *resultobj;
10417 wxJoystick *arg1 = (wxJoystick *) 0 ;
10418 bool result;
10419 PyObject * obj0 = 0 ;
10420 char *kwnames[] = {
10421 (char *) "self", NULL
10422 };
10423
10424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10427 {
10428 PyThreadState* __tstate = wxPyBeginAllowThreads();
10429 result = (bool)(arg1)->HasU();
10430
10431 wxPyEndAllowThreads(__tstate);
10432 if (PyErr_Occurred()) SWIG_fail;
10433 }
10434 {
10435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10436 }
10437 return resultobj;
10438 fail:
10439 return NULL;
10440 }
10441
10442
10443 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
10444 PyObject *resultobj;
10445 wxJoystick *arg1 = (wxJoystick *) 0 ;
10446 bool result;
10447 PyObject * obj0 = 0 ;
10448 char *kwnames[] = {
10449 (char *) "self", NULL
10450 };
10451
10452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10455 {
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 result = (bool)(arg1)->HasV();
10458
10459 wxPyEndAllowThreads(__tstate);
10460 if (PyErr_Occurred()) SWIG_fail;
10461 }
10462 {
10463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10464 }
10465 return resultobj;
10466 fail:
10467 return NULL;
10468 }
10469
10470
10471 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj;
10473 wxJoystick *arg1 = (wxJoystick *) 0 ;
10474 bool result;
10475 PyObject * obj0 = 0 ;
10476 char *kwnames[] = {
10477 (char *) "self", NULL
10478 };
10479
10480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10483 {
10484 PyThreadState* __tstate = wxPyBeginAllowThreads();
10485 result = (bool)(arg1)->HasPOV();
10486
10487 wxPyEndAllowThreads(__tstate);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
10490 {
10491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10492 }
10493 return resultobj;
10494 fail:
10495 return NULL;
10496 }
10497
10498
10499 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj;
10501 wxJoystick *arg1 = (wxJoystick *) 0 ;
10502 bool result;
10503 PyObject * obj0 = 0 ;
10504 char *kwnames[] = {
10505 (char *) "self", NULL
10506 };
10507
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10511 {
10512 PyThreadState* __tstate = wxPyBeginAllowThreads();
10513 result = (bool)(arg1)->HasPOV4Dir();
10514
10515 wxPyEndAllowThreads(__tstate);
10516 if (PyErr_Occurred()) SWIG_fail;
10517 }
10518 {
10519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10520 }
10521 return resultobj;
10522 fail:
10523 return NULL;
10524 }
10525
10526
10527 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
10528 PyObject *resultobj;
10529 wxJoystick *arg1 = (wxJoystick *) 0 ;
10530 bool result;
10531 PyObject * obj0 = 0 ;
10532 char *kwnames[] = {
10533 (char *) "self", NULL
10534 };
10535
10536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10539 {
10540 PyThreadState* __tstate = wxPyBeginAllowThreads();
10541 result = (bool)(arg1)->HasPOVCTS();
10542
10543 wxPyEndAllowThreads(__tstate);
10544 if (PyErr_Occurred()) SWIG_fail;
10545 }
10546 {
10547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10548 }
10549 return resultobj;
10550 fail:
10551 return NULL;
10552 }
10553
10554
10555 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
10556 PyObject *resultobj;
10557 wxJoystick *arg1 = (wxJoystick *) 0 ;
10558 wxWindow *arg2 = (wxWindow *) 0 ;
10559 int arg3 = (int) 0 ;
10560 bool result;
10561 PyObject * obj0 = 0 ;
10562 PyObject * obj1 = 0 ;
10563 PyObject * obj2 = 0 ;
10564 char *kwnames[] = {
10565 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10566 };
10567
10568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10573 if (obj2) {
10574 arg3 = (int) SWIG_AsInt(obj2);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 result = (bool)(arg1)->SetCapture(arg2,arg3);
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 {
10585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10586 }
10587 return resultobj;
10588 fail:
10589 return NULL;
10590 }
10591
10592
10593 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj;
10595 wxJoystick *arg1 = (wxJoystick *) 0 ;
10596 bool result;
10597 PyObject * obj0 = 0 ;
10598 char *kwnames[] = {
10599 (char *) "self", NULL
10600 };
10601
10602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (bool)(arg1)->ReleaseCapture();
10608
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 {
10613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10614 }
10615 return resultobj;
10616 fail:
10617 return NULL;
10618 }
10619
10620
10621 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
10622 PyObject *obj;
10623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10624 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10625 Py_INCREF(obj);
10626 return Py_BuildValue((char *)"");
10627 }
10628 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj;
10630 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10631 wxPoint *arg2 = (wxPoint *) 0 ;
10632 PyObject * obj0 = 0 ;
10633 PyObject * obj1 = 0 ;
10634 char *kwnames[] = {
10635 (char *) "self",(char *) "m_pos", NULL
10636 };
10637
10638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10643 if (arg1) (arg1)->m_pos = *arg2;
10644
10645 Py_INCREF(Py_None); resultobj = Py_None;
10646 return resultobj;
10647 fail:
10648 return NULL;
10649 }
10650
10651
10652 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
10653 PyObject *resultobj;
10654 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10655 wxPoint *result;
10656 PyObject * obj0 = 0 ;
10657 char *kwnames[] = {
10658 (char *) "self", NULL
10659 };
10660
10661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10664 result = (wxPoint *)& ((arg1)->m_pos);
10665
10666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj;
10675 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10676 int arg2 ;
10677 PyObject * obj0 = 0 ;
10678 PyObject * obj1 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self",(char *) "m_zPosition", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10686 arg2 = (int) SWIG_AsInt(obj1);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 if (arg1) (arg1)->m_zPosition = arg2;
10689
10690 Py_INCREF(Py_None); resultobj = Py_None;
10691 return resultobj;
10692 fail:
10693 return NULL;
10694 }
10695
10696
10697 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj;
10699 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10700 int result;
10701 PyObject * obj0 = 0 ;
10702 char *kwnames[] = {
10703 (char *) "self", NULL
10704 };
10705
10706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10709 result = (int) ((arg1)->m_zPosition);
10710
10711 resultobj = SWIG_FromInt((int)result);
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10721 int arg2 ;
10722 PyObject * obj0 = 0 ;
10723 PyObject * obj1 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "self",(char *) "m_buttonChange", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10731 arg2 = (int) SWIG_AsInt(obj1);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 if (arg1) (arg1)->m_buttonChange = arg2;
10734
10735 Py_INCREF(Py_None); resultobj = Py_None;
10736 return resultobj;
10737 fail:
10738 return NULL;
10739 }
10740
10741
10742 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
10743 PyObject *resultobj;
10744 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10745 int result;
10746 PyObject * obj0 = 0 ;
10747 char *kwnames[] = {
10748 (char *) "self", NULL
10749 };
10750
10751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10754 result = (int) ((arg1)->m_buttonChange);
10755
10756 resultobj = SWIG_FromInt((int)result);
10757 return resultobj;
10758 fail:
10759 return NULL;
10760 }
10761
10762
10763 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
10764 PyObject *resultobj;
10765 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10766 int arg2 ;
10767 PyObject * obj0 = 0 ;
10768 PyObject * obj1 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "self",(char *) "m_buttonState", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10776 arg2 = (int) SWIG_AsInt(obj1);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 if (arg1) (arg1)->m_buttonState = arg2;
10779
10780 Py_INCREF(Py_None); resultobj = Py_None;
10781 return resultobj;
10782 fail:
10783 return NULL;
10784 }
10785
10786
10787 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
10788 PyObject *resultobj;
10789 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10790 int result;
10791 PyObject * obj0 = 0 ;
10792 char *kwnames[] = {
10793 (char *) "self", NULL
10794 };
10795
10796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10799 result = (int) ((arg1)->m_buttonState);
10800
10801 resultobj = SWIG_FromInt((int)result);
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj;
10810 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10811 int arg2 ;
10812 PyObject * obj0 = 0 ;
10813 PyObject * obj1 = 0 ;
10814 char *kwnames[] = {
10815 (char *) "self",(char *) "m_joyStick", NULL
10816 };
10817
10818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10821 arg2 = (int) SWIG_AsInt(obj1);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 if (arg1) (arg1)->m_joyStick = arg2;
10824
10825 Py_INCREF(Py_None); resultobj = Py_None;
10826 return resultobj;
10827 fail:
10828 return NULL;
10829 }
10830
10831
10832 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
10833 PyObject *resultobj;
10834 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10835 int result;
10836 PyObject * obj0 = 0 ;
10837 char *kwnames[] = {
10838 (char *) "self", NULL
10839 };
10840
10841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10844 result = (int) ((arg1)->m_joyStick);
10845
10846 resultobj = SWIG_FromInt((int)result);
10847 return resultobj;
10848 fail:
10849 return NULL;
10850 }
10851
10852
10853 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10854 PyObject *resultobj;
10855 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10856 int arg2 = (int) 0 ;
10857 int arg3 = (int) wxJOYSTICK1 ;
10858 int arg4 = (int) 0 ;
10859 wxJoystickEvent *result;
10860 PyObject * obj0 = 0 ;
10861 PyObject * obj1 = 0 ;
10862 PyObject * obj2 = 0 ;
10863 PyObject * obj3 = 0 ;
10864 char *kwnames[] = {
10865 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10866 };
10867
10868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10869 if (obj0) {
10870 arg1 = (wxEventType) SWIG_AsInt(obj0);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 if (obj1) {
10874 arg2 = (int) SWIG_AsInt(obj1);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 if (obj2) {
10878 arg3 = (int) SWIG_AsInt(obj2);
10879 if (PyErr_Occurred()) SWIG_fail;
10880 }
10881 if (obj3) {
10882 arg4 = (int) SWIG_AsInt(obj3);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 {
10886 PyThreadState* __tstate = wxPyBeginAllowThreads();
10887 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10888
10889 wxPyEndAllowThreads(__tstate);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 }
10892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10893 return resultobj;
10894 fail:
10895 return NULL;
10896 }
10897
10898
10899 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10900 PyObject *resultobj;
10901 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10902 wxPoint result;
10903 PyObject * obj0 = 0 ;
10904 char *kwnames[] = {
10905 (char *) "self", NULL
10906 };
10907
10908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10914
10915 wxPyEndAllowThreads(__tstate);
10916 if (PyErr_Occurred()) SWIG_fail;
10917 }
10918 {
10919 wxPoint * resultptr;
10920 resultptr = new wxPoint((wxPoint &) result);
10921 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10922 }
10923 return resultobj;
10924 fail:
10925 return NULL;
10926 }
10927
10928
10929 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj;
10931 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10932 int result;
10933 PyObject * obj0 = 0 ;
10934 char *kwnames[] = {
10935 (char *) "self", NULL
10936 };
10937
10938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
10939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10941 {
10942 PyThreadState* __tstate = wxPyBeginAllowThreads();
10943 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10944
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_FromInt((int)result);
10949 return resultobj;
10950 fail:
10951 return NULL;
10952 }
10953
10954
10955 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj;
10957 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10958 int result;
10959 PyObject * obj0 = 0 ;
10960 char *kwnames[] = {
10961 (char *) "self", NULL
10962 };
10963
10964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10970
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 resultobj = SWIG_FromInt((int)result);
10975 return resultobj;
10976 fail:
10977 return NULL;
10978 }
10979
10980
10981 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
10982 PyObject *resultobj;
10983 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10984 int result;
10985 PyObject * obj0 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 resultobj = SWIG_FromInt((int)result);
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11010 int result;
11011 PyObject * obj0 = 0 ;
11012 char *kwnames[] = {
11013 (char *) "self", NULL
11014 };
11015
11016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11022
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 resultobj = SWIG_FromInt((int)result);
11027 return resultobj;
11028 fail:
11029 return NULL;
11030 }
11031
11032
11033 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11034 PyObject *resultobj;
11035 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11036 int arg2 ;
11037 PyObject * obj0 = 0 ;
11038 PyObject * obj1 = 0 ;
11039 char *kwnames[] = {
11040 (char *) "self",(char *) "stick", NULL
11041 };
11042
11043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11046 arg2 = (int) SWIG_AsInt(obj1);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 (arg1)->SetJoystick(arg2);
11051
11052 wxPyEndAllowThreads(__tstate);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 }
11055 Py_INCREF(Py_None); resultobj = Py_None;
11056 return resultobj;
11057 fail:
11058 return NULL;
11059 }
11060
11061
11062 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11063 PyObject *resultobj;
11064 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11065 int arg2 ;
11066 PyObject * obj0 = 0 ;
11067 PyObject * obj1 = 0 ;
11068 char *kwnames[] = {
11069 (char *) "self",(char *) "state", NULL
11070 };
11071
11072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11075 arg2 = (int) SWIG_AsInt(obj1);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 {
11078 PyThreadState* __tstate = wxPyBeginAllowThreads();
11079 (arg1)->SetButtonState(arg2);
11080
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 Py_INCREF(Py_None); resultobj = Py_None;
11085 return resultobj;
11086 fail:
11087 return NULL;
11088 }
11089
11090
11091 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj;
11093 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11094 int arg2 ;
11095 PyObject * obj0 = 0 ;
11096 PyObject * obj1 = 0 ;
11097 char *kwnames[] = {
11098 (char *) "self",(char *) "change", NULL
11099 };
11100
11101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11104 arg2 = (int) SWIG_AsInt(obj1);
11105 if (PyErr_Occurred()) SWIG_fail;
11106 {
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 (arg1)->SetButtonChange(arg2);
11109
11110 wxPyEndAllowThreads(__tstate);
11111 if (PyErr_Occurred()) SWIG_fail;
11112 }
11113 Py_INCREF(Py_None); resultobj = Py_None;
11114 return resultobj;
11115 fail:
11116 return NULL;
11117 }
11118
11119
11120 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11121 PyObject *resultobj;
11122 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11123 wxPoint *arg2 = 0 ;
11124 wxPoint temp2 ;
11125 PyObject * obj0 = 0 ;
11126 PyObject * obj1 = 0 ;
11127 char *kwnames[] = {
11128 (char *) "self",(char *) "pos", NULL
11129 };
11130
11131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11134 {
11135 arg2 = &temp2;
11136 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11137 }
11138 {
11139 PyThreadState* __tstate = wxPyBeginAllowThreads();
11140 (arg1)->SetPosition((wxPoint const &)*arg2);
11141
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 Py_INCREF(Py_None); resultobj = Py_None;
11146 return resultobj;
11147 fail:
11148 return NULL;
11149 }
11150
11151
11152 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11153 PyObject *resultobj;
11154 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11155 int arg2 ;
11156 PyObject * obj0 = 0 ;
11157 PyObject * obj1 = 0 ;
11158 char *kwnames[] = {
11159 (char *) "self",(char *) "zPos", NULL
11160 };
11161
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11165 arg2 = (int) SWIG_AsInt(obj1);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 {
11168 PyThreadState* __tstate = wxPyBeginAllowThreads();
11169 (arg1)->SetZPosition(arg2);
11170
11171 wxPyEndAllowThreads(__tstate);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 }
11174 Py_INCREF(Py_None); resultobj = Py_None;
11175 return resultobj;
11176 fail:
11177 return NULL;
11178 }
11179
11180
11181 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
11182 PyObject *resultobj;
11183 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11184 bool result;
11185 PyObject * obj0 = 0 ;
11186 char *kwnames[] = {
11187 (char *) "self", NULL
11188 };
11189
11190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11193 {
11194 PyThreadState* __tstate = wxPyBeginAllowThreads();
11195 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11196
11197 wxPyEndAllowThreads(__tstate);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 {
11201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11202 }
11203 return resultobj;
11204 fail:
11205 return NULL;
11206 }
11207
11208
11209 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
11210 PyObject *resultobj;
11211 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11212 bool result;
11213 PyObject * obj0 = 0 ;
11214 char *kwnames[] = {
11215 (char *) "self", NULL
11216 };
11217
11218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11221 {
11222 PyThreadState* __tstate = wxPyBeginAllowThreads();
11223 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11224
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 {
11229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11230 }
11231 return resultobj;
11232 fail:
11233 return NULL;
11234 }
11235
11236
11237 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
11238 PyObject *resultobj;
11239 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11240 bool result;
11241 PyObject * obj0 = 0 ;
11242 char *kwnames[] = {
11243 (char *) "self", NULL
11244 };
11245
11246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11249 {
11250 PyThreadState* __tstate = wxPyBeginAllowThreads();
11251 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11252
11253 wxPyEndAllowThreads(__tstate);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 }
11256 {
11257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11258 }
11259 return resultobj;
11260 fail:
11261 return NULL;
11262 }
11263
11264
11265 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
11266 PyObject *resultobj;
11267 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11268 int arg2 = (int) wxJOY_BUTTON_ANY ;
11269 bool result;
11270 PyObject * obj0 = 0 ;
11271 PyObject * obj1 = 0 ;
11272 char *kwnames[] = {
11273 (char *) "self",(char *) "but", NULL
11274 };
11275
11276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11279 if (obj1) {
11280 arg2 = (int) SWIG_AsInt(obj1);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 }
11283 {
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11286
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) SWIG_fail;
11289 }
11290 {
11291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11292 }
11293 return resultobj;
11294 fail:
11295 return NULL;
11296 }
11297
11298
11299 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
11300 PyObject *resultobj;
11301 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11302 int arg2 = (int) wxJOY_BUTTON_ANY ;
11303 bool result;
11304 PyObject * obj0 = 0 ;
11305 PyObject * obj1 = 0 ;
11306 char *kwnames[] = {
11307 (char *) "self",(char *) "but", NULL
11308 };
11309
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11313 if (obj1) {
11314 arg2 = (int) SWIG_AsInt(obj1);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 }
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11320
11321 wxPyEndAllowThreads(__tstate);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 }
11324 {
11325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11326 }
11327 return resultobj;
11328 fail:
11329 return NULL;
11330 }
11331
11332
11333 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj;
11335 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11336 int arg2 = (int) wxJOY_BUTTON_ANY ;
11337 bool result;
11338 PyObject * obj0 = 0 ;
11339 PyObject * obj1 = 0 ;
11340 char *kwnames[] = {
11341 (char *) "self",(char *) "but", NULL
11342 };
11343
11344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11347 if (obj1) {
11348 arg2 = (int) SWIG_AsInt(obj1);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 }
11351 {
11352 PyThreadState* __tstate = wxPyBeginAllowThreads();
11353 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11354
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 {
11359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11360 }
11361 return resultobj;
11362 fail:
11363 return NULL;
11364 }
11365
11366
11367 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
11368 PyObject *obj;
11369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11370 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11371 Py_INCREF(obj);
11372 return Py_BuildValue((char *)"");
11373 }
11374 static PyObject *_wrap_new_Sound__SWIG_0(PyObject *, PyObject *args) {
11375 PyObject *resultobj;
11376 wxSound *result;
11377
11378 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11379 {
11380 PyThreadState* __tstate = wxPyBeginAllowThreads();
11381 result = (wxSound *)new wxSound();
11382
11383 wxPyEndAllowThreads(__tstate);
11384 if (PyErr_Occurred()) SWIG_fail;
11385 }
11386 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11387 return resultobj;
11388 fail:
11389 return NULL;
11390 }
11391
11392
11393 static PyObject *_wrap_new_Sound__SWIG_1(PyObject *, PyObject *args) {
11394 PyObject *resultobj;
11395 wxString *arg1 = 0 ;
11396 bool arg2 = (bool) false ;
11397 wxSound *result;
11398 bool temp1 = False ;
11399 PyObject * obj0 = 0 ;
11400 PyObject * obj1 = 0 ;
11401
11402 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
11403 {
11404 arg1 = wxString_in_helper(obj0);
11405 if (arg1 == NULL) SWIG_fail;
11406 temp1 = True;
11407 }
11408 if (obj1) {
11409 arg2 = (bool) SWIG_AsBool(obj1);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
11415
11416 wxPyEndAllowThreads(__tstate);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11420 {
11421 if (temp1)
11422 delete arg1;
11423 }
11424 return resultobj;
11425 fail:
11426 {
11427 if (temp1)
11428 delete arg1;
11429 }
11430 return NULL;
11431 }
11432
11433
11434 static PyObject *_wrap_new_Sound__SWIG_2(PyObject *, PyObject *args) {
11435 PyObject *resultobj;
11436 int arg1 ;
11437 wxByte *arg2 = (wxByte *) 0 ;
11438 wxSound *result;
11439 PyObject * obj0 = 0 ;
11440 PyObject * obj1 = 0 ;
11441
11442 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
11443 arg1 = (int) SWIG_AsInt(obj0);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte,
11446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
11450
11451 wxPyEndAllowThreads(__tstate);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11455 return resultobj;
11456 fail:
11457 return NULL;
11458 }
11459
11460
11461 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11462 int argc;
11463 PyObject *argv[3];
11464 int ii;
11465
11466 argc = PyObject_Length(args);
11467 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11468 argv[ii] = PyTuple_GetItem(args,ii);
11469 }
11470 if (argc == 0) {
11471 return _wrap_new_Sound__SWIG_0(self,args);
11472 }
11473 if ((argc >= 1) && (argc <= 2)) {
11474 int _v;
11475 {
11476 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11477 }
11478 if (_v) {
11479 if (argc <= 1) {
11480 return _wrap_new_Sound__SWIG_1(self,args);
11481 }
11482 _v = SWIG_CheckBool(argv[1]);
11483 if (_v) {
11484 return _wrap_new_Sound__SWIG_1(self,args);
11485 }
11486 }
11487 }
11488 if (argc == 2) {
11489 int _v;
11490 _v = SWIG_CheckInt(argv[0]);
11491 if (_v) {
11492 {
11493 void *ptr;
11494 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11495 _v = 0;
11496 PyErr_Clear();
11497 } else {
11498 _v = 1;
11499 }
11500 }
11501 if (_v) {
11502 return _wrap_new_Sound__SWIG_2(self,args);
11503 }
11504 }
11505 }
11506
11507 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
11508 return NULL;
11509 }
11510
11511
11512 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11513 PyObject *resultobj;
11514 wxSound *arg1 = (wxSound *) 0 ;
11515 PyObject * obj0 = 0 ;
11516 char *kwnames[] = {
11517 (char *) "self", NULL
11518 };
11519
11520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11523 {
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
11525 delete arg1;
11526
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 Py_INCREF(Py_None); resultobj = Py_None;
11531 return resultobj;
11532 fail:
11533 return NULL;
11534 }
11535
11536
11537 static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *, PyObject *args) {
11538 PyObject *resultobj;
11539 wxSound *arg1 = (wxSound *) 0 ;
11540 wxString *arg2 = 0 ;
11541 bool arg3 = (bool) false ;
11542 bool result;
11543 bool temp2 = False ;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 PyObject * obj2 = 0 ;
11547
11548 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11551 {
11552 arg2 = wxString_in_helper(obj1);
11553 if (arg2 == NULL) SWIG_fail;
11554 temp2 = True;
11555 }
11556 if (obj2) {
11557 arg3 = (bool) SWIG_AsBool(obj2);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 }
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 {
11568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11569 }
11570 {
11571 if (temp2)
11572 delete arg2;
11573 }
11574 return resultobj;
11575 fail:
11576 {
11577 if (temp2)
11578 delete arg2;
11579 }
11580 return NULL;
11581 }
11582
11583
11584 static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *, PyObject *args) {
11585 PyObject *resultobj;
11586 wxSound *arg1 = (wxSound *) 0 ;
11587 int arg2 ;
11588 wxByte *arg3 = (wxByte *) 0 ;
11589 bool result;
11590 PyObject * obj0 = 0 ;
11591 PyObject * obj1 = 0 ;
11592 PyObject * obj2 = 0 ;
11593
11594 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11597 arg2 = (int) SWIG_AsInt(obj1);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte,
11600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = (bool)wxSound_Create__SWIG_1(arg1,arg2,(wxByte const *)arg3);
11604
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 {
11609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11610 }
11611 return resultobj;
11612 fail:
11613 return NULL;
11614 }
11615
11616
11617 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11618 int argc;
11619 PyObject *argv[4];
11620 int ii;
11621
11622 argc = PyObject_Length(args);
11623 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11624 argv[ii] = PyTuple_GetItem(args,ii);
11625 }
11626 if ((argc >= 2) && (argc <= 3)) {
11627 int _v;
11628 {
11629 void *ptr;
11630 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11631 _v = 0;
11632 PyErr_Clear();
11633 } else {
11634 _v = 1;
11635 }
11636 }
11637 if (_v) {
11638 {
11639 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11640 }
11641 if (_v) {
11642 if (argc <= 2) {
11643 return _wrap_Sound_Create__SWIG_0(self,args);
11644 }
11645 _v = SWIG_CheckBool(argv[2]);
11646 if (_v) {
11647 return _wrap_Sound_Create__SWIG_0(self,args);
11648 }
11649 }
11650 }
11651 }
11652 if (argc == 3) {
11653 int _v;
11654 {
11655 void *ptr;
11656 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11657 _v = 0;
11658 PyErr_Clear();
11659 } else {
11660 _v = 1;
11661 }
11662 }
11663 if (_v) {
11664 _v = SWIG_CheckInt(argv[1]);
11665 if (_v) {
11666 {
11667 void *ptr;
11668 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11669 _v = 0;
11670 PyErr_Clear();
11671 } else {
11672 _v = 1;
11673 }
11674 }
11675 if (_v) {
11676 return _wrap_Sound_Create__SWIG_1(self,args);
11677 }
11678 }
11679 }
11680 }
11681
11682 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11683 return NULL;
11684 }
11685
11686
11687 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
11688 PyObject *resultobj;
11689 wxSound *arg1 = (wxSound *) 0 ;
11690 bool result;
11691 PyObject * obj0 = 0 ;
11692 char *kwnames[] = {
11693 (char *) "self", NULL
11694 };
11695
11696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11699 {
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 result = (bool)(arg1)->IsOk();
11702
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 {
11707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11708 }
11709 return resultobj;
11710 fail:
11711 return NULL;
11712 }
11713
11714
11715 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args) {
11716 PyObject *resultobj;
11717 wxSound *arg1 = (wxSound *) 0 ;
11718 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11719 bool result;
11720 PyObject * obj0 = 0 ;
11721 PyObject * obj1 = 0 ;
11722
11723 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
11724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11726 if (obj1) {
11727 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 {
11731 PyThreadState* __tstate = wxPyBeginAllowThreads();
11732 result = (bool)((wxSound const *)arg1)->Play(arg2);
11733
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 {
11738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11739 }
11740 return resultobj;
11741 fail:
11742 return NULL;
11743 }
11744
11745
11746 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args) {
11747 PyObject *resultobj;
11748 wxString *arg1 = 0 ;
11749 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11750 bool result;
11751 bool temp1 = False ;
11752 PyObject * obj0 = 0 ;
11753 PyObject * obj1 = 0 ;
11754
11755 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11756 {
11757 arg1 = wxString_in_helper(obj0);
11758 if (arg1 == NULL) SWIG_fail;
11759 temp1 = True;
11760 }
11761 if (obj1) {
11762 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11763 if (PyErr_Occurred()) SWIG_fail;
11764 }
11765 {
11766 PyThreadState* __tstate = wxPyBeginAllowThreads();
11767 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11768
11769 wxPyEndAllowThreads(__tstate);
11770 if (PyErr_Occurred()) SWIG_fail;
11771 }
11772 {
11773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11774 }
11775 {
11776 if (temp1)
11777 delete arg1;
11778 }
11779 return resultobj;
11780 fail:
11781 {
11782 if (temp1)
11783 delete arg1;
11784 }
11785 return NULL;
11786 }
11787
11788
11789 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
11790 PyObject *resultobj;
11791 char *kwnames[] = {
11792 NULL
11793 };
11794
11795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11796 {
11797 PyThreadState* __tstate = wxPyBeginAllowThreads();
11798 Sound_Stop();
11799
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 Py_INCREF(Py_None); resultobj = Py_None;
11804 return resultobj;
11805 fail:
11806 return NULL;
11807 }
11808
11809
11810 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
11811 PyObject *obj;
11812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11813 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11814 Py_INCREF(obj);
11815 return Py_BuildValue((char *)"");
11816 }
11817 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11818 PyObject *resultobj;
11819 wxString *arg1 = 0 ;
11820 wxString *arg2 = 0 ;
11821 wxString *arg3 = 0 ;
11822 wxString *arg4 = 0 ;
11823 wxFileTypeInfo *result;
11824 bool temp1 = False ;
11825 bool temp2 = False ;
11826 bool temp3 = False ;
11827 bool temp4 = False ;
11828 PyObject * obj0 = 0 ;
11829 PyObject * obj1 = 0 ;
11830 PyObject * obj2 = 0 ;
11831 PyObject * obj3 = 0 ;
11832 char *kwnames[] = {
11833 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11834 };
11835
11836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11837 {
11838 arg1 = wxString_in_helper(obj0);
11839 if (arg1 == NULL) SWIG_fail;
11840 temp1 = True;
11841 }
11842 {
11843 arg2 = wxString_in_helper(obj1);
11844 if (arg2 == NULL) SWIG_fail;
11845 temp2 = True;
11846 }
11847 {
11848 arg3 = wxString_in_helper(obj2);
11849 if (arg3 == NULL) SWIG_fail;
11850 temp3 = True;
11851 }
11852 {
11853 arg4 = wxString_in_helper(obj3);
11854 if (arg4 == NULL) SWIG_fail;
11855 temp4 = True;
11856 }
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11860
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11865 {
11866 if (temp1)
11867 delete arg1;
11868 }
11869 {
11870 if (temp2)
11871 delete arg2;
11872 }
11873 {
11874 if (temp3)
11875 delete arg3;
11876 }
11877 {
11878 if (temp4)
11879 delete arg4;
11880 }
11881 return resultobj;
11882 fail:
11883 {
11884 if (temp1)
11885 delete arg1;
11886 }
11887 {
11888 if (temp2)
11889 delete arg2;
11890 }
11891 {
11892 if (temp3)
11893 delete arg3;
11894 }
11895 {
11896 if (temp4)
11897 delete arg4;
11898 }
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxArrayString *arg1 = 0 ;
11906 wxFileTypeInfo *result;
11907 bool temp1 = False ;
11908 PyObject * obj0 = 0 ;
11909 char *kwnames[] = {
11910 (char *) "sArray", NULL
11911 };
11912
11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11914 {
11915 if (! PySequence_Check(obj0)) {
11916 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11917 SWIG_fail;
11918 }
11919 arg1 = new wxArrayString;
11920 temp1 = True;
11921 int i, len=PySequence_Length(obj0);
11922 for (i=0; i<len; i++) {
11923 PyObject* item = PySequence_GetItem(obj0, i);
11924 #if wxUSE_UNICODE
11925 PyObject* str = PyObject_Unicode(item);
11926 #else
11927 PyObject* str = PyObject_Str(item);
11928 #endif
11929 if (PyErr_Occurred()) SWIG_fail;
11930 arg1->Add(Py2wxString(str));
11931 Py_DECREF(item);
11932 Py_DECREF(str);
11933 }
11934 }
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11938
11939 wxPyEndAllowThreads(__tstate);
11940 if (PyErr_Occurred()) SWIG_fail;
11941 }
11942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11943 {
11944 if (temp1) delete arg1;
11945 }
11946 return resultobj;
11947 fail:
11948 {
11949 if (temp1) delete arg1;
11950 }
11951 return NULL;
11952 }
11953
11954
11955 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11956 PyObject *resultobj;
11957 wxFileTypeInfo *result;
11958 char *kwnames[] = {
11959 NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11966
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11971 return resultobj;
11972 fail:
11973 return NULL;
11974 }
11975
11976
11977 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
11978 PyObject *resultobj;
11979 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11980 bool result;
11981 PyObject * obj0 = 0 ;
11982 char *kwnames[] = {
11983 (char *) "self", NULL
11984 };
11985
11986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11992
11993 wxPyEndAllowThreads(__tstate);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 }
11996 {
11997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11998 }
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12006 PyObject *resultobj;
12007 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12008 wxString *arg2 = 0 ;
12009 int arg3 = (int) 0 ;
12010 bool temp2 = False ;
12011 PyObject * obj0 = 0 ;
12012 PyObject * obj1 = 0 ;
12013 PyObject * obj2 = 0 ;
12014 char *kwnames[] = {
12015 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12016 };
12017
12018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12021 {
12022 arg2 = wxString_in_helper(obj1);
12023 if (arg2 == NULL) SWIG_fail;
12024 temp2 = True;
12025 }
12026 if (obj2) {
12027 arg3 = (int) SWIG_AsInt(obj2);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12033
12034 wxPyEndAllowThreads(__tstate);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 }
12037 Py_INCREF(Py_None); resultobj = Py_None;
12038 {
12039 if (temp2)
12040 delete arg2;
12041 }
12042 return resultobj;
12043 fail:
12044 {
12045 if (temp2)
12046 delete arg2;
12047 }
12048 return NULL;
12049 }
12050
12051
12052 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12053 PyObject *resultobj;
12054 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12055 wxString *arg2 = 0 ;
12056 bool temp2 = False ;
12057 PyObject * obj0 = 0 ;
12058 PyObject * obj1 = 0 ;
12059 char *kwnames[] = {
12060 (char *) "self",(char *) "shortDesc", NULL
12061 };
12062
12063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12066 {
12067 arg2 = wxString_in_helper(obj1);
12068 if (arg2 == NULL) SWIG_fail;
12069 temp2 = True;
12070 }
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 (arg1)->SetShortDesc((wxString const &)*arg2);
12074
12075 wxPyEndAllowThreads(__tstate);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 Py_INCREF(Py_None); resultobj = Py_None;
12079 {
12080 if (temp2)
12081 delete arg2;
12082 }
12083 return resultobj;
12084 fail:
12085 {
12086 if (temp2)
12087 delete arg2;
12088 }
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12096 wxString *result;
12097 PyObject * obj0 = 0 ;
12098 char *kwnames[] = {
12099 (char *) "self", NULL
12100 };
12101
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 {
12108 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12109 result = (wxString *) &_result_ref;
12110 }
12111
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 {
12116 #if wxUSE_UNICODE
12117 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12118 #else
12119 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12120 #endif
12121 }
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj;
12130 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12131 wxString *result;
12132 PyObject * obj0 = 0 ;
12133 char *kwnames[] = {
12134 (char *) "self", NULL
12135 };
12136
12137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 {
12143 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12144 result = (wxString *) &_result_ref;
12145 }
12146
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 {
12151 #if wxUSE_UNICODE
12152 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12153 #else
12154 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12155 #endif
12156 }
12157 return resultobj;
12158 fail:
12159 return NULL;
12160 }
12161
12162
12163 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12164 PyObject *resultobj;
12165 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12166 wxString *result;
12167 PyObject * obj0 = 0 ;
12168 char *kwnames[] = {
12169 (char *) "self", NULL
12170 };
12171
12172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 {
12178 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12179 result = (wxString *) &_result_ref;
12180 }
12181
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 {
12186 #if wxUSE_UNICODE
12187 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12188 #else
12189 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12190 #endif
12191 }
12192 return resultobj;
12193 fail:
12194 return NULL;
12195 }
12196
12197
12198 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12199 PyObject *resultobj;
12200 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12201 wxString *result;
12202 PyObject * obj0 = 0 ;
12203 char *kwnames[] = {
12204 (char *) "self", NULL
12205 };
12206
12207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12210 {
12211 PyThreadState* __tstate = wxPyBeginAllowThreads();
12212 {
12213 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12214 result = (wxString *) &_result_ref;
12215 }
12216
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 {
12221 #if wxUSE_UNICODE
12222 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12223 #else
12224 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12225 #endif
12226 }
12227 return resultobj;
12228 fail:
12229 return NULL;
12230 }
12231
12232
12233 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12234 PyObject *resultobj;
12235 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12236 wxString *result;
12237 PyObject * obj0 = 0 ;
12238 char *kwnames[] = {
12239 (char *) "self", NULL
12240 };
12241
12242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 {
12248 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12249 result = (wxString *) &_result_ref;
12250 }
12251
12252 wxPyEndAllowThreads(__tstate);
12253 if (PyErr_Occurred()) SWIG_fail;
12254 }
12255 {
12256 #if wxUSE_UNICODE
12257 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12258 #else
12259 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12260 #endif
12261 }
12262 return resultobj;
12263 fail:
12264 return NULL;
12265 }
12266
12267
12268 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12269 PyObject *resultobj;
12270 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12271 wxArrayString *result;
12272 PyObject * obj0 = 0 ;
12273 char *kwnames[] = {
12274 (char *) "self", NULL
12275 };
12276
12277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12280 {
12281 PyThreadState* __tstate = wxPyBeginAllowThreads();
12282 {
12283 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12284 result = (wxArrayString *) &_result_ref;
12285 }
12286
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 resultobj = wxArrayString2PyList_helper(*result);
12292 }
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj;
12301 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12302 int result;
12303 PyObject * obj0 = 0 ;
12304 char *kwnames[] = {
12305 (char *) "self", NULL
12306 };
12307
12308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 resultobj = SWIG_FromInt((int)result);
12319 return resultobj;
12320 fail:
12321 return NULL;
12322 }
12323
12324
12325 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
12326 PyObject *resultobj;
12327 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12328 wxString *result;
12329 PyObject * obj0 = 0 ;
12330 char *kwnames[] = {
12331 (char *) "self", NULL
12332 };
12333
12334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 {
12340 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12341 result = (wxString *) &_result_ref;
12342 }
12343
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 {
12348 #if wxUSE_UNICODE
12349 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12350 #else
12351 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12352 #endif
12353 }
12354 return resultobj;
12355 fail:
12356 return NULL;
12357 }
12358
12359
12360 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
12361 PyObject *resultobj;
12362 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12363 int result;
12364 PyObject * obj0 = 0 ;
12365 char *kwnames[] = {
12366 (char *) "self", NULL
12367 };
12368
12369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12372 {
12373 PyThreadState* __tstate = wxPyBeginAllowThreads();
12374 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12375
12376 wxPyEndAllowThreads(__tstate);
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 resultobj = SWIG_FromInt((int)result);
12380 return resultobj;
12381 fail:
12382 return NULL;
12383 }
12384
12385
12386 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
12387 PyObject *obj;
12388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12389 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12390 Py_INCREF(obj);
12391 return Py_BuildValue((char *)"");
12392 }
12393 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj;
12395 wxFileTypeInfo *arg1 = 0 ;
12396 wxFileType *result;
12397 PyObject * obj0 = 0 ;
12398 char *kwnames[] = {
12399 (char *) "ftInfo", NULL
12400 };
12401
12402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12404 SWIG_POINTER_EXCEPTION | 0)) == -1)
12405 SWIG_fail;
12406 if (arg1 == NULL) {
12407 PyErr_SetString(PyExc_TypeError,"null reference");
12408 SWIG_fail;
12409 }
12410 {
12411 PyThreadState* __tstate = wxPyBeginAllowThreads();
12412 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12413
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12418 return resultobj;
12419 fail:
12420 return NULL;
12421 }
12422
12423
12424 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12425 PyObject *resultobj;
12426 wxFileType *arg1 = (wxFileType *) 0 ;
12427 PyObject * obj0 = 0 ;
12428 char *kwnames[] = {
12429 (char *) "self", NULL
12430 };
12431
12432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 delete arg1;
12438
12439 wxPyEndAllowThreads(__tstate);
12440 if (PyErr_Occurred()) SWIG_fail;
12441 }
12442 Py_INCREF(Py_None); resultobj = Py_None;
12443 return resultobj;
12444 fail:
12445 return NULL;
12446 }
12447
12448
12449 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12450 PyObject *resultobj;
12451 wxFileType *arg1 = (wxFileType *) 0 ;
12452 PyObject *result;
12453 PyObject * obj0 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 result = (PyObject *)wxFileType_GetMimeType(arg1);
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = result;
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
12476 PyObject *resultobj;
12477 wxFileType *arg1 = (wxFileType *) 0 ;
12478 PyObject *result;
12479 PyObject * obj0 = 0 ;
12480 char *kwnames[] = {
12481 (char *) "self", NULL
12482 };
12483
12484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12490
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 resultobj = result;
12495 return resultobj;
12496 fail:
12497 return NULL;
12498 }
12499
12500
12501 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12502 PyObject *resultobj;
12503 wxFileType *arg1 = (wxFileType *) 0 ;
12504 PyObject *result;
12505 PyObject * obj0 = 0 ;
12506 char *kwnames[] = {
12507 (char *) "self", NULL
12508 };
12509
12510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12513 {
12514 PyThreadState* __tstate = wxPyBeginAllowThreads();
12515 result = (PyObject *)wxFileType_GetExtensions(arg1);
12516
12517 wxPyEndAllowThreads(__tstate);
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
12520 resultobj = result;
12521 return resultobj;
12522 fail:
12523 return NULL;
12524 }
12525
12526
12527 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12528 PyObject *resultobj;
12529 wxFileType *arg1 = (wxFileType *) 0 ;
12530 wxIcon *result;
12531 PyObject * obj0 = 0 ;
12532 char *kwnames[] = {
12533 (char *) "self", NULL
12534 };
12535
12536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 result = (wxIcon *)wxFileType_GetIcon(arg1);
12542
12543 wxPyEndAllowThreads(__tstate);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 }
12546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12547 return resultobj;
12548 fail:
12549 return NULL;
12550 }
12551
12552
12553 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12554 PyObject *resultobj;
12555 wxFileType *arg1 = (wxFileType *) 0 ;
12556 PyObject *result;
12557 PyObject * obj0 = 0 ;
12558 char *kwnames[] = {
12559 (char *) "self", NULL
12560 };
12561
12562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12565 {
12566 PyThreadState* __tstate = wxPyBeginAllowThreads();
12567 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 resultobj = result;
12573 return resultobj;
12574 fail:
12575 return NULL;
12576 }
12577
12578
12579 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12580 PyObject *resultobj;
12581 wxFileType *arg1 = (wxFileType *) 0 ;
12582 PyObject *result;
12583 PyObject * obj0 = 0 ;
12584 char *kwnames[] = {
12585 (char *) "self", NULL
12586 };
12587
12588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12591 {
12592 PyThreadState* __tstate = wxPyBeginAllowThreads();
12593 result = (PyObject *)wxFileType_GetDescription(arg1);
12594
12595 wxPyEndAllowThreads(__tstate);
12596 if (PyErr_Occurred()) SWIG_fail;
12597 }
12598 resultobj = result;
12599 return resultobj;
12600 fail:
12601 return NULL;
12602 }
12603
12604
12605 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12606 PyObject *resultobj;
12607 wxFileType *arg1 = (wxFileType *) 0 ;
12608 wxString *arg2 = 0 ;
12609 wxString const &arg3_defvalue = wxPyEmptyString ;
12610 wxString *arg3 = (wxString *) &arg3_defvalue ;
12611 PyObject *result;
12612 bool temp2 = False ;
12613 bool temp3 = False ;
12614 PyObject * obj0 = 0 ;
12615 PyObject * obj1 = 0 ;
12616 PyObject * obj2 = 0 ;
12617 char *kwnames[] = {
12618 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12619 };
12620
12621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12624 {
12625 arg2 = wxString_in_helper(obj1);
12626 if (arg2 == NULL) SWIG_fail;
12627 temp2 = True;
12628 }
12629 if (obj2) {
12630 {
12631 arg3 = wxString_in_helper(obj2);
12632 if (arg3 == NULL) SWIG_fail;
12633 temp3 = True;
12634 }
12635 }
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12639
12640 wxPyEndAllowThreads(__tstate);
12641 if (PyErr_Occurred()) SWIG_fail;
12642 }
12643 resultobj = result;
12644 {
12645 if (temp2)
12646 delete arg2;
12647 }
12648 {
12649 if (temp3)
12650 delete arg3;
12651 }
12652 return resultobj;
12653 fail:
12654 {
12655 if (temp2)
12656 delete arg2;
12657 }
12658 {
12659 if (temp3)
12660 delete arg3;
12661 }
12662 return NULL;
12663 }
12664
12665
12666 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12667 PyObject *resultobj;
12668 wxFileType *arg1 = (wxFileType *) 0 ;
12669 wxString *arg2 = 0 ;
12670 wxString const &arg3_defvalue = wxPyEmptyString ;
12671 wxString *arg3 = (wxString *) &arg3_defvalue ;
12672 PyObject *result;
12673 bool temp2 = False ;
12674 bool temp3 = False ;
12675 PyObject * obj0 = 0 ;
12676 PyObject * obj1 = 0 ;
12677 PyObject * obj2 = 0 ;
12678 char *kwnames[] = {
12679 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12680 };
12681
12682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12685 {
12686 arg2 = wxString_in_helper(obj1);
12687 if (arg2 == NULL) SWIG_fail;
12688 temp2 = True;
12689 }
12690 if (obj2) {
12691 {
12692 arg3 = wxString_in_helper(obj2);
12693 if (arg3 == NULL) SWIG_fail;
12694 temp3 = True;
12695 }
12696 }
12697 {
12698 PyThreadState* __tstate = wxPyBeginAllowThreads();
12699 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12700
12701 wxPyEndAllowThreads(__tstate);
12702 if (PyErr_Occurred()) SWIG_fail;
12703 }
12704 resultobj = result;
12705 {
12706 if (temp2)
12707 delete arg2;
12708 }
12709 {
12710 if (temp3)
12711 delete arg3;
12712 }
12713 return resultobj;
12714 fail:
12715 {
12716 if (temp2)
12717 delete arg2;
12718 }
12719 {
12720 if (temp3)
12721 delete arg3;
12722 }
12723 return NULL;
12724 }
12725
12726
12727 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
12728 PyObject *resultobj;
12729 wxFileType *arg1 = (wxFileType *) 0 ;
12730 wxString *arg2 = 0 ;
12731 wxString const &arg3_defvalue = wxPyEmptyString ;
12732 wxString *arg3 = (wxString *) &arg3_defvalue ;
12733 PyObject *result;
12734 bool temp2 = False ;
12735 bool temp3 = False ;
12736 PyObject * obj0 = 0 ;
12737 PyObject * obj1 = 0 ;
12738 PyObject * obj2 = 0 ;
12739 char *kwnames[] = {
12740 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12741 };
12742
12743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12746 {
12747 arg2 = wxString_in_helper(obj1);
12748 if (arg2 == NULL) SWIG_fail;
12749 temp2 = True;
12750 }
12751 if (obj2) {
12752 {
12753 arg3 = wxString_in_helper(obj2);
12754 if (arg3 == NULL) SWIG_fail;
12755 temp3 = True;
12756 }
12757 }
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12761
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 resultobj = result;
12766 {
12767 if (temp2)
12768 delete arg2;
12769 }
12770 {
12771 if (temp3)
12772 delete arg3;
12773 }
12774 return resultobj;
12775 fail:
12776 {
12777 if (temp2)
12778 delete arg2;
12779 }
12780 {
12781 if (temp3)
12782 delete arg3;
12783 }
12784 return NULL;
12785 }
12786
12787
12788 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12789 PyObject *resultobj;
12790 wxFileType *arg1 = (wxFileType *) 0 ;
12791 wxString *arg2 = 0 ;
12792 wxString *arg3 = 0 ;
12793 bool arg4 = (bool) True ;
12794 bool result;
12795 bool temp2 = False ;
12796 bool temp3 = False ;
12797 PyObject * obj0 = 0 ;
12798 PyObject * obj1 = 0 ;
12799 PyObject * obj2 = 0 ;
12800 PyObject * obj3 = 0 ;
12801 char *kwnames[] = {
12802 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12803 };
12804
12805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12808 {
12809 arg2 = wxString_in_helper(obj1);
12810 if (arg2 == NULL) SWIG_fail;
12811 temp2 = True;
12812 }
12813 {
12814 arg3 = wxString_in_helper(obj2);
12815 if (arg3 == NULL) SWIG_fail;
12816 temp3 = True;
12817 }
12818 if (obj3) {
12819 arg4 = (bool) SWIG_AsBool(obj3);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12825
12826 wxPyEndAllowThreads(__tstate);
12827 if (PyErr_Occurred()) SWIG_fail;
12828 }
12829 {
12830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12831 }
12832 {
12833 if (temp2)
12834 delete arg2;
12835 }
12836 {
12837 if (temp3)
12838 delete arg3;
12839 }
12840 return resultobj;
12841 fail:
12842 {
12843 if (temp2)
12844 delete arg2;
12845 }
12846 {
12847 if (temp3)
12848 delete arg3;
12849 }
12850 return NULL;
12851 }
12852
12853
12854 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12855 PyObject *resultobj;
12856 wxFileType *arg1 = (wxFileType *) 0 ;
12857 wxString const &arg2_defvalue = wxPyEmptyString ;
12858 wxString *arg2 = (wxString *) &arg2_defvalue ;
12859 int arg3 = (int) 0 ;
12860 bool result;
12861 bool temp2 = False ;
12862 PyObject * obj0 = 0 ;
12863 PyObject * obj1 = 0 ;
12864 PyObject * obj2 = 0 ;
12865 char *kwnames[] = {
12866 (char *) "self",(char *) "cmd",(char *) "index", NULL
12867 };
12868
12869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12872 if (obj1) {
12873 {
12874 arg2 = wxString_in_helper(obj1);
12875 if (arg2 == NULL) SWIG_fail;
12876 temp2 = True;
12877 }
12878 }
12879 if (obj2) {
12880 arg3 = (int) SWIG_AsInt(obj2);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12886
12887 wxPyEndAllowThreads(__tstate);
12888 if (PyErr_Occurred()) SWIG_fail;
12889 }
12890 {
12891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12892 }
12893 {
12894 if (temp2)
12895 delete arg2;
12896 }
12897 return resultobj;
12898 fail:
12899 {
12900 if (temp2)
12901 delete arg2;
12902 }
12903 return NULL;
12904 }
12905
12906
12907 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
12908 PyObject *resultobj;
12909 wxFileType *arg1 = (wxFileType *) 0 ;
12910 bool result;
12911 PyObject * obj0 = 0 ;
12912 char *kwnames[] = {
12913 (char *) "self", NULL
12914 };
12915
12916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12919 {
12920 PyThreadState* __tstate = wxPyBeginAllowThreads();
12921 result = (bool)(arg1)->Unassociate();
12922
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 {
12927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12928 }
12929 return resultobj;
12930 fail:
12931 return NULL;
12932 }
12933
12934
12935 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj;
12937 wxString *arg1 = 0 ;
12938 wxString *arg2 = 0 ;
12939 wxString const &arg3_defvalue = wxPyEmptyString ;
12940 wxString *arg3 = (wxString *) &arg3_defvalue ;
12941 wxString result;
12942 bool temp1 = False ;
12943 bool temp2 = False ;
12944 bool temp3 = False ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 PyObject * obj2 = 0 ;
12948 char *kwnames[] = {
12949 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12950 };
12951
12952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12953 {
12954 arg1 = wxString_in_helper(obj0);
12955 if (arg1 == NULL) SWIG_fail;
12956 temp1 = True;
12957 }
12958 {
12959 arg2 = wxString_in_helper(obj1);
12960 if (arg2 == NULL) SWIG_fail;
12961 temp2 = True;
12962 }
12963 if (obj2) {
12964 {
12965 arg3 = wxString_in_helper(obj2);
12966 if (arg3 == NULL) SWIG_fail;
12967 temp3 = True;
12968 }
12969 }
12970 {
12971 PyThreadState* __tstate = wxPyBeginAllowThreads();
12972 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12973
12974 wxPyEndAllowThreads(__tstate);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 }
12977 {
12978 #if wxUSE_UNICODE
12979 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12980 #else
12981 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12982 #endif
12983 }
12984 {
12985 if (temp1)
12986 delete arg1;
12987 }
12988 {
12989 if (temp2)
12990 delete arg2;
12991 }
12992 {
12993 if (temp3)
12994 delete arg3;
12995 }
12996 return resultobj;
12997 fail:
12998 {
12999 if (temp1)
13000 delete arg1;
13001 }
13002 {
13003 if (temp2)
13004 delete arg2;
13005 }
13006 {
13007 if (temp3)
13008 delete arg3;
13009 }
13010 return NULL;
13011 }
13012
13013
13014 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
13015 PyObject *obj;
13016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13017 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13018 Py_INCREF(obj);
13019 return Py_BuildValue((char *)"");
13020 }
13021 static int _wrap_TheMimeTypesManager_set(PyObject *) {
13022 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13023 return 1;
13024 }
13025
13026
13027 static PyObject *_wrap_TheMimeTypesManager_get() {
13028 PyObject *pyobj;
13029
13030 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13031 return pyobj;
13032 }
13033
13034
13035 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
13036 PyObject *resultobj;
13037 wxString *arg1 = 0 ;
13038 wxString *arg2 = 0 ;
13039 bool result;
13040 bool temp1 = False ;
13041 bool temp2 = False ;
13042 PyObject * obj0 = 0 ;
13043 PyObject * obj1 = 0 ;
13044 char *kwnames[] = {
13045 (char *) "mimeType",(char *) "wildcard", NULL
13046 };
13047
13048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13049 {
13050 arg1 = wxString_in_helper(obj0);
13051 if (arg1 == NULL) SWIG_fail;
13052 temp1 = True;
13053 }
13054 {
13055 arg2 = wxString_in_helper(obj1);
13056 if (arg2 == NULL) SWIG_fail;
13057 temp2 = True;
13058 }
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13062
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 {
13067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13068 }
13069 {
13070 if (temp1)
13071 delete arg1;
13072 }
13073 {
13074 if (temp2)
13075 delete arg2;
13076 }
13077 return resultobj;
13078 fail:
13079 {
13080 if (temp1)
13081 delete arg1;
13082 }
13083 {
13084 if (temp2)
13085 delete arg2;
13086 }
13087 return NULL;
13088 }
13089
13090
13091 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13092 PyObject *resultobj;
13093 wxMimeTypesManager *result;
13094 char *kwnames[] = {
13095 NULL
13096 };
13097
13098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13099 {
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
13101 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13102
13103 wxPyEndAllowThreads(__tstate);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13107 return resultobj;
13108 fail:
13109 return NULL;
13110 }
13111
13112
13113 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
13114 PyObject *resultobj;
13115 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13116 int arg2 = (int) wxMAILCAP_ALL ;
13117 wxString const &arg3_defvalue = wxPyEmptyString ;
13118 wxString *arg3 = (wxString *) &arg3_defvalue ;
13119 bool temp3 = False ;
13120 PyObject * obj0 = 0 ;
13121 PyObject * obj1 = 0 ;
13122 PyObject * obj2 = 0 ;
13123 char *kwnames[] = {
13124 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13125 };
13126
13127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13130 if (obj1) {
13131 arg2 = (int) SWIG_AsInt(obj1);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 if (obj2) {
13135 {
13136 arg3 = wxString_in_helper(obj2);
13137 if (arg3 == NULL) SWIG_fail;
13138 temp3 = True;
13139 }
13140 }
13141 {
13142 PyThreadState* __tstate = wxPyBeginAllowThreads();
13143 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13144
13145 wxPyEndAllowThreads(__tstate);
13146 if (PyErr_Occurred()) SWIG_fail;
13147 }
13148 Py_INCREF(Py_None); resultobj = Py_None;
13149 {
13150 if (temp3)
13151 delete arg3;
13152 }
13153 return resultobj;
13154 fail:
13155 {
13156 if (temp3)
13157 delete arg3;
13158 }
13159 return NULL;
13160 }
13161
13162
13163 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13166 PyObject * obj0 = 0 ;
13167 char *kwnames[] = {
13168 (char *) "self", NULL
13169 };
13170
13171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 (arg1)->ClearData();
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 Py_INCREF(Py_None); resultobj = Py_None;
13182 return resultobj;
13183 fail:
13184 return NULL;
13185 }
13186
13187
13188 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj;
13190 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13191 wxString *arg2 = 0 ;
13192 wxFileType *result;
13193 bool temp2 = False ;
13194 PyObject * obj0 = 0 ;
13195 PyObject * obj1 = 0 ;
13196 char *kwnames[] = {
13197 (char *) "self",(char *) "ext", NULL
13198 };
13199
13200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13203 {
13204 arg2 = wxString_in_helper(obj1);
13205 if (arg2 == NULL) SWIG_fail;
13206 temp2 = True;
13207 }
13208 {
13209 PyThreadState* __tstate = wxPyBeginAllowThreads();
13210 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13211
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13216 {
13217 if (temp2)
13218 delete arg2;
13219 }
13220 return resultobj;
13221 fail:
13222 {
13223 if (temp2)
13224 delete arg2;
13225 }
13226 return NULL;
13227 }
13228
13229
13230 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
13231 PyObject *resultobj;
13232 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13233 wxString *arg2 = 0 ;
13234 wxFileType *result;
13235 bool temp2 = False ;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 char *kwnames[] = {
13239 (char *) "self",(char *) "mimeType", NULL
13240 };
13241
13242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13245 {
13246 arg2 = wxString_in_helper(obj1);
13247 if (arg2 == NULL) SWIG_fail;
13248 temp2 = True;
13249 }
13250 {
13251 PyThreadState* __tstate = wxPyBeginAllowThreads();
13252 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13253
13254 wxPyEndAllowThreads(__tstate);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13258 {
13259 if (temp2)
13260 delete arg2;
13261 }
13262 return resultobj;
13263 fail:
13264 {
13265 if (temp2)
13266 delete arg2;
13267 }
13268 return NULL;
13269 }
13270
13271
13272 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj;
13274 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13275 wxString *arg2 = 0 ;
13276 bool arg3 = (bool) False ;
13277 bool result;
13278 bool temp2 = False ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 PyObject * obj2 = 0 ;
13282 char *kwnames[] = {
13283 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13284 };
13285
13286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13289 {
13290 arg2 = wxString_in_helper(obj1);
13291 if (arg2 == NULL) SWIG_fail;
13292 temp2 = True;
13293 }
13294 if (obj2) {
13295 arg3 = (bool) SWIG_AsBool(obj2);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 {
13306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13307 }
13308 {
13309 if (temp2)
13310 delete arg2;
13311 }
13312 return resultobj;
13313 fail:
13314 {
13315 if (temp2)
13316 delete arg2;
13317 }
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13325 wxString *arg2 = 0 ;
13326 bool result;
13327 bool temp2 = False ;
13328 PyObject * obj0 = 0 ;
13329 PyObject * obj1 = 0 ;
13330 char *kwnames[] = {
13331 (char *) "self",(char *) "filename", NULL
13332 };
13333
13334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13337 {
13338 arg2 = wxString_in_helper(obj1);
13339 if (arg2 == NULL) SWIG_fail;
13340 temp2 = True;
13341 }
13342 {
13343 PyThreadState* __tstate = wxPyBeginAllowThreads();
13344 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13345
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 {
13350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13351 }
13352 {
13353 if (temp2)
13354 delete arg2;
13355 }
13356 return resultobj;
13357 fail:
13358 {
13359 if (temp2)
13360 delete arg2;
13361 }
13362 return NULL;
13363 }
13364
13365
13366 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13367 PyObject *resultobj;
13368 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13369 PyObject *result;
13370 PyObject * obj0 = 0 ;
13371 char *kwnames[] = {
13372 (char *) "self", NULL
13373 };
13374
13375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13381
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 resultobj = result;
13386 return resultobj;
13387 fail:
13388 return NULL;
13389 }
13390
13391
13392 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
13393 PyObject *resultobj;
13394 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13395 wxFileTypeInfo *arg2 = 0 ;
13396 PyObject * obj0 = 0 ;
13397 PyObject * obj1 = 0 ;
13398 char *kwnames[] = {
13399 (char *) "self",(char *) "ft", NULL
13400 };
13401
13402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13406 SWIG_POINTER_EXCEPTION | 0)) == -1)
13407 SWIG_fail;
13408 if (arg2 == NULL) {
13409 PyErr_SetString(PyExc_TypeError,"null reference");
13410 SWIG_fail;
13411 }
13412 {
13413 PyThreadState* __tstate = wxPyBeginAllowThreads();
13414 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13415
13416 wxPyEndAllowThreads(__tstate);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 Py_INCREF(Py_None); resultobj = Py_None;
13420 return resultobj;
13421 fail:
13422 return NULL;
13423 }
13424
13425
13426 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
13427 PyObject *resultobj;
13428 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13429 wxFileTypeInfo *arg2 = 0 ;
13430 wxFileType *result;
13431 PyObject * obj0 = 0 ;
13432 PyObject * obj1 = 0 ;
13433 char *kwnames[] = {
13434 (char *) "self",(char *) "ftInfo", NULL
13435 };
13436
13437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13440 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13441 SWIG_POINTER_EXCEPTION | 0)) == -1)
13442 SWIG_fail;
13443 if (arg2 == NULL) {
13444 PyErr_SetString(PyExc_TypeError,"null reference");
13445 SWIG_fail;
13446 }
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13450
13451 wxPyEndAllowThreads(__tstate);
13452 if (PyErr_Occurred()) SWIG_fail;
13453 }
13454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13455 return resultobj;
13456 fail:
13457 return NULL;
13458 }
13459
13460
13461 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13462 PyObject *resultobj;
13463 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13464 wxFileType *arg2 = (wxFileType *) 0 ;
13465 bool result;
13466 PyObject * obj0 = 0 ;
13467 PyObject * obj1 = 0 ;
13468 char *kwnames[] = {
13469 (char *) "self",(char *) "ft", NULL
13470 };
13471
13472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13477 {
13478 PyThreadState* __tstate = wxPyBeginAllowThreads();
13479 result = (bool)(arg1)->Unassociate(arg2);
13480
13481 wxPyEndAllowThreads(__tstate);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 {
13485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13486 }
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13494 PyObject *resultobj;
13495 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13496 PyObject * obj0 = 0 ;
13497 char *kwnames[] = {
13498 (char *) "self", NULL
13499 };
13500
13501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13504 {
13505 PyThreadState* __tstate = wxPyBeginAllowThreads();
13506 delete arg1;
13507
13508 wxPyEndAllowThreads(__tstate);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 }
13511 Py_INCREF(Py_None); resultobj = Py_None;
13512 return resultobj;
13513 fail:
13514 return NULL;
13515 }
13516
13517
13518 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
13519 PyObject *obj;
13520 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13521 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13522 Py_INCREF(obj);
13523 return Py_BuildValue((char *)"");
13524 }
13525 static int _wrap_ART_TOOLBAR_set(PyObject *) {
13526 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13527 return 1;
13528 }
13529
13530
13531 static PyObject *_wrap_ART_TOOLBAR_get() {
13532 PyObject *pyobj;
13533
13534 {
13535 #if wxUSE_UNICODE
13536 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13537 #else
13538 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13539 #endif
13540 }
13541 return pyobj;
13542 }
13543
13544
13545 static int _wrap_ART_MENU_set(PyObject *) {
13546 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13547 return 1;
13548 }
13549
13550
13551 static PyObject *_wrap_ART_MENU_get() {
13552 PyObject *pyobj;
13553
13554 {
13555 #if wxUSE_UNICODE
13556 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13557 #else
13558 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13559 #endif
13560 }
13561 return pyobj;
13562 }
13563
13564
13565 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
13566 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13567 return 1;
13568 }
13569
13570
13571 static PyObject *_wrap_ART_FRAME_ICON_get() {
13572 PyObject *pyobj;
13573
13574 {
13575 #if wxUSE_UNICODE
13576 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13577 #else
13578 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13579 #endif
13580 }
13581 return pyobj;
13582 }
13583
13584
13585 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
13586 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13587 return 1;
13588 }
13589
13590
13591 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13592 PyObject *pyobj;
13593
13594 {
13595 #if wxUSE_UNICODE
13596 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13597 #else
13598 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13599 #endif
13600 }
13601 return pyobj;
13602 }
13603
13604
13605 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
13606 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13607 return 1;
13608 }
13609
13610
13611 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13612 PyObject *pyobj;
13613
13614 {
13615 #if wxUSE_UNICODE
13616 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13617 #else
13618 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13619 #endif
13620 }
13621 return pyobj;
13622 }
13623
13624
13625 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
13626 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13627 return 1;
13628 }
13629
13630
13631 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13632 PyObject *pyobj;
13633
13634 {
13635 #if wxUSE_UNICODE
13636 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13637 #else
13638 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13639 #endif
13640 }
13641 return pyobj;
13642 }
13643
13644
13645 static int _wrap_ART_OTHER_set(PyObject *) {
13646 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13647 return 1;
13648 }
13649
13650
13651 static PyObject *_wrap_ART_OTHER_get() {
13652 PyObject *pyobj;
13653
13654 {
13655 #if wxUSE_UNICODE
13656 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13657 #else
13658 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13659 #endif
13660 }
13661 return pyobj;
13662 }
13663
13664
13665 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
13666 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13667 return 1;
13668 }
13669
13670
13671 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13672 PyObject *pyobj;
13673
13674 {
13675 #if wxUSE_UNICODE
13676 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13677 #else
13678 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13679 #endif
13680 }
13681 return pyobj;
13682 }
13683
13684
13685 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
13686 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13687 return 1;
13688 }
13689
13690
13691 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13692 PyObject *pyobj;
13693
13694 {
13695 #if wxUSE_UNICODE
13696 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13697 #else
13698 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13699 #endif
13700 }
13701 return pyobj;
13702 }
13703
13704
13705 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
13706 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13707 return 1;
13708 }
13709
13710
13711 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13712 PyObject *pyobj;
13713
13714 {
13715 #if wxUSE_UNICODE
13716 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13717 #else
13718 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13719 #endif
13720 }
13721 return pyobj;
13722 }
13723
13724
13725 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
13726 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13727 return 1;
13728 }
13729
13730
13731 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13732 PyObject *pyobj;
13733
13734 {
13735 #if wxUSE_UNICODE
13736 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13737 #else
13738 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13739 #endif
13740 }
13741 return pyobj;
13742 }
13743
13744
13745 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
13746 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13747 return 1;
13748 }
13749
13750
13751 static PyObject *_wrap_ART_HELP_BOOK_get() {
13752 PyObject *pyobj;
13753
13754 {
13755 #if wxUSE_UNICODE
13756 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13757 #else
13758 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13759 #endif
13760 }
13761 return pyobj;
13762 }
13763
13764
13765 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
13766 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13767 return 1;
13768 }
13769
13770
13771 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13772 PyObject *pyobj;
13773
13774 {
13775 #if wxUSE_UNICODE
13776 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13777 #else
13778 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13779 #endif
13780 }
13781 return pyobj;
13782 }
13783
13784
13785 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
13786 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13787 return 1;
13788 }
13789
13790
13791 static PyObject *_wrap_ART_HELP_PAGE_get() {
13792 PyObject *pyobj;
13793
13794 {
13795 #if wxUSE_UNICODE
13796 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13797 #else
13798 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13799 #endif
13800 }
13801 return pyobj;
13802 }
13803
13804
13805 static int _wrap_ART_GO_BACK_set(PyObject *) {
13806 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13807 return 1;
13808 }
13809
13810
13811 static PyObject *_wrap_ART_GO_BACK_get() {
13812 PyObject *pyobj;
13813
13814 {
13815 #if wxUSE_UNICODE
13816 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13817 #else
13818 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13819 #endif
13820 }
13821 return pyobj;
13822 }
13823
13824
13825 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
13826 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13827 return 1;
13828 }
13829
13830
13831 static PyObject *_wrap_ART_GO_FORWARD_get() {
13832 PyObject *pyobj;
13833
13834 {
13835 #if wxUSE_UNICODE
13836 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13837 #else
13838 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13839 #endif
13840 }
13841 return pyobj;
13842 }
13843
13844
13845 static int _wrap_ART_GO_UP_set(PyObject *) {
13846 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13847 return 1;
13848 }
13849
13850
13851 static PyObject *_wrap_ART_GO_UP_get() {
13852 PyObject *pyobj;
13853
13854 {
13855 #if wxUSE_UNICODE
13856 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13857 #else
13858 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13859 #endif
13860 }
13861 return pyobj;
13862 }
13863
13864
13865 static int _wrap_ART_GO_DOWN_set(PyObject *) {
13866 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13867 return 1;
13868 }
13869
13870
13871 static PyObject *_wrap_ART_GO_DOWN_get() {
13872 PyObject *pyobj;
13873
13874 {
13875 #if wxUSE_UNICODE
13876 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13877 #else
13878 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13879 #endif
13880 }
13881 return pyobj;
13882 }
13883
13884
13885 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
13886 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13887 return 1;
13888 }
13889
13890
13891 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13892 PyObject *pyobj;
13893
13894 {
13895 #if wxUSE_UNICODE
13896 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13897 #else
13898 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13899 #endif
13900 }
13901 return pyobj;
13902 }
13903
13904
13905 static int _wrap_ART_GO_HOME_set(PyObject *) {
13906 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13907 return 1;
13908 }
13909
13910
13911 static PyObject *_wrap_ART_GO_HOME_get() {
13912 PyObject *pyobj;
13913
13914 {
13915 #if wxUSE_UNICODE
13916 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13917 #else
13918 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13919 #endif
13920 }
13921 return pyobj;
13922 }
13923
13924
13925 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
13926 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13927 return 1;
13928 }
13929
13930
13931 static PyObject *_wrap_ART_FILE_OPEN_get() {
13932 PyObject *pyobj;
13933
13934 {
13935 #if wxUSE_UNICODE
13936 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13937 #else
13938 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13939 #endif
13940 }
13941 return pyobj;
13942 }
13943
13944
13945 static int _wrap_ART_PRINT_set(PyObject *) {
13946 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13947 return 1;
13948 }
13949
13950
13951 static PyObject *_wrap_ART_PRINT_get() {
13952 PyObject *pyobj;
13953
13954 {
13955 #if wxUSE_UNICODE
13956 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13957 #else
13958 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13959 #endif
13960 }
13961 return pyobj;
13962 }
13963
13964
13965 static int _wrap_ART_HELP_set(PyObject *) {
13966 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13967 return 1;
13968 }
13969
13970
13971 static PyObject *_wrap_ART_HELP_get() {
13972 PyObject *pyobj;
13973
13974 {
13975 #if wxUSE_UNICODE
13976 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13977 #else
13978 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13979 #endif
13980 }
13981 return pyobj;
13982 }
13983
13984
13985 static int _wrap_ART_TIP_set(PyObject *) {
13986 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13987 return 1;
13988 }
13989
13990
13991 static PyObject *_wrap_ART_TIP_get() {
13992 PyObject *pyobj;
13993
13994 {
13995 #if wxUSE_UNICODE
13996 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13997 #else
13998 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13999 #endif
14000 }
14001 return pyobj;
14002 }
14003
14004
14005 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
14006 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14007 return 1;
14008 }
14009
14010
14011 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14012 PyObject *pyobj;
14013
14014 {
14015 #if wxUSE_UNICODE
14016 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14017 #else
14018 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14019 #endif
14020 }
14021 return pyobj;
14022 }
14023
14024
14025 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
14026 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14027 return 1;
14028 }
14029
14030
14031 static PyObject *_wrap_ART_LIST_VIEW_get() {
14032 PyObject *pyobj;
14033
14034 {
14035 #if wxUSE_UNICODE
14036 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14037 #else
14038 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14039 #endif
14040 }
14041 return pyobj;
14042 }
14043
14044
14045 static int _wrap_ART_NEW_DIR_set(PyObject *) {
14046 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14047 return 1;
14048 }
14049
14050
14051 static PyObject *_wrap_ART_NEW_DIR_get() {
14052 PyObject *pyobj;
14053
14054 {
14055 #if wxUSE_UNICODE
14056 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14057 #else
14058 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14059 #endif
14060 }
14061 return pyobj;
14062 }
14063
14064
14065 static int _wrap_ART_FOLDER_set(PyObject *) {
14066 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14067 return 1;
14068 }
14069
14070
14071 static PyObject *_wrap_ART_FOLDER_get() {
14072 PyObject *pyobj;
14073
14074 {
14075 #if wxUSE_UNICODE
14076 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14077 #else
14078 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14079 #endif
14080 }
14081 return pyobj;
14082 }
14083
14084
14085 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
14086 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14087 return 1;
14088 }
14089
14090
14091 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14092 PyObject *pyobj;
14093
14094 {
14095 #if wxUSE_UNICODE
14096 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14097 #else
14098 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14099 #endif
14100 }
14101 return pyobj;
14102 }
14103
14104
14105 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
14106 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14107 return 1;
14108 }
14109
14110
14111 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14112 PyObject *pyobj;
14113
14114 {
14115 #if wxUSE_UNICODE
14116 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14117 #else
14118 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14119 #endif
14120 }
14121 return pyobj;
14122 }
14123
14124
14125 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
14126 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14127 return 1;
14128 }
14129
14130
14131 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14132 PyObject *pyobj;
14133
14134 {
14135 #if wxUSE_UNICODE
14136 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14137 #else
14138 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14139 #endif
14140 }
14141 return pyobj;
14142 }
14143
14144
14145 static int _wrap_ART_TICK_MARK_set(PyObject *) {
14146 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14147 return 1;
14148 }
14149
14150
14151 static PyObject *_wrap_ART_TICK_MARK_get() {
14152 PyObject *pyobj;
14153
14154 {
14155 #if wxUSE_UNICODE
14156 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14157 #else
14158 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14159 #endif
14160 }
14161 return pyobj;
14162 }
14163
14164
14165 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
14166 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14167 return 1;
14168 }
14169
14170
14171 static PyObject *_wrap_ART_CROSS_MARK_get() {
14172 PyObject *pyobj;
14173
14174 {
14175 #if wxUSE_UNICODE
14176 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14177 #else
14178 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14179 #endif
14180 }
14181 return pyobj;
14182 }
14183
14184
14185 static int _wrap_ART_ERROR_set(PyObject *) {
14186 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14187 return 1;
14188 }
14189
14190
14191 static PyObject *_wrap_ART_ERROR_get() {
14192 PyObject *pyobj;
14193
14194 {
14195 #if wxUSE_UNICODE
14196 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14197 #else
14198 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14199 #endif
14200 }
14201 return pyobj;
14202 }
14203
14204
14205 static int _wrap_ART_QUESTION_set(PyObject *) {
14206 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14207 return 1;
14208 }
14209
14210
14211 static PyObject *_wrap_ART_QUESTION_get() {
14212 PyObject *pyobj;
14213
14214 {
14215 #if wxUSE_UNICODE
14216 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14217 #else
14218 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14219 #endif
14220 }
14221 return pyobj;
14222 }
14223
14224
14225 static int _wrap_ART_WARNING_set(PyObject *) {
14226 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14227 return 1;
14228 }
14229
14230
14231 static PyObject *_wrap_ART_WARNING_get() {
14232 PyObject *pyobj;
14233
14234 {
14235 #if wxUSE_UNICODE
14236 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14237 #else
14238 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14239 #endif
14240 }
14241 return pyobj;
14242 }
14243
14244
14245 static int _wrap_ART_INFORMATION_set(PyObject *) {
14246 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14247 return 1;
14248 }
14249
14250
14251 static PyObject *_wrap_ART_INFORMATION_get() {
14252 PyObject *pyobj;
14253
14254 {
14255 #if wxUSE_UNICODE
14256 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14257 #else
14258 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14259 #endif
14260 }
14261 return pyobj;
14262 }
14263
14264
14265 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
14266 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14267 return 1;
14268 }
14269
14270
14271 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14272 PyObject *pyobj;
14273
14274 {
14275 #if wxUSE_UNICODE
14276 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14277 #else
14278 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14279 #endif
14280 }
14281 return pyobj;
14282 }
14283
14284
14285 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14286 PyObject *resultobj;
14287 wxPyArtProvider *result;
14288 char *kwnames[] = {
14289 NULL
14290 };
14291
14292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = (wxPyArtProvider *)new wxPyArtProvider();
14296
14297 wxPyEndAllowThreads(__tstate);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14301 return resultobj;
14302 fail:
14303 return NULL;
14304 }
14305
14306
14307 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14308 PyObject *resultobj;
14309 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14310 PyObject *arg2 = (PyObject *) 0 ;
14311 PyObject *arg3 = (PyObject *) 0 ;
14312 PyObject * obj0 = 0 ;
14313 PyObject * obj1 = 0 ;
14314 PyObject * obj2 = 0 ;
14315 char *kwnames[] = {
14316 (char *) "self",(char *) "self",(char *) "_class", NULL
14317 };
14318
14319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14322 arg2 = obj1;
14323 arg3 = obj2;
14324 {
14325 PyThreadState* __tstate = wxPyBeginAllowThreads();
14326 (arg1)->_setCallbackInfo(arg2,arg3);
14327
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
14331 Py_INCREF(Py_None); resultobj = Py_None;
14332 return resultobj;
14333 fail:
14334 return NULL;
14335 }
14336
14337
14338 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj;
14340 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14341 PyObject * obj0 = 0 ;
14342 char *kwnames[] = {
14343 (char *) "provider", NULL
14344 };
14345
14346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14349 {
14350 PyThreadState* __tstate = wxPyBeginAllowThreads();
14351 wxPyArtProvider::PushProvider(arg1);
14352
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 Py_INCREF(Py_None); resultobj = Py_None;
14357 return resultobj;
14358 fail:
14359 return NULL;
14360 }
14361
14362
14363 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14364 PyObject *resultobj;
14365 bool result;
14366 char *kwnames[] = {
14367 NULL
14368 };
14369
14370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14371 {
14372 PyThreadState* __tstate = wxPyBeginAllowThreads();
14373 result = (bool)wxPyArtProvider::PopProvider();
14374
14375 wxPyEndAllowThreads(__tstate);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 {
14379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14380 }
14381 return resultobj;
14382 fail:
14383 return NULL;
14384 }
14385
14386
14387 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj;
14389 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14390 bool result;
14391 PyObject * obj0 = 0 ;
14392 char *kwnames[] = {
14393 (char *) "provider", NULL
14394 };
14395
14396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14402
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 {
14407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14408 }
14409 return resultobj;
14410 fail:
14411 return NULL;
14412 }
14413
14414
14415 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14416 PyObject *resultobj;
14417 wxString *arg1 = 0 ;
14418 wxString const &arg2_defvalue = wxPyART_OTHER ;
14419 wxString *arg2 = (wxString *) &arg2_defvalue ;
14420 wxSize const &arg3_defvalue = wxDefaultSize ;
14421 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14422 wxBitmap result;
14423 bool temp1 = False ;
14424 bool temp2 = False ;
14425 wxSize temp3 ;
14426 PyObject * obj0 = 0 ;
14427 PyObject * obj1 = 0 ;
14428 PyObject * obj2 = 0 ;
14429 char *kwnames[] = {
14430 (char *) "id",(char *) "client",(char *) "size", NULL
14431 };
14432
14433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14434 {
14435 arg1 = wxString_in_helper(obj0);
14436 if (arg1 == NULL) SWIG_fail;
14437 temp1 = True;
14438 }
14439 if (obj1) {
14440 {
14441 arg2 = wxString_in_helper(obj1);
14442 if (arg2 == NULL) SWIG_fail;
14443 temp2 = True;
14444 }
14445 }
14446 if (obj2) {
14447 {
14448 arg3 = &temp3;
14449 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14450 }
14451 }
14452 {
14453 PyThreadState* __tstate = wxPyBeginAllowThreads();
14454 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14455
14456 wxPyEndAllowThreads(__tstate);
14457 if (PyErr_Occurred()) SWIG_fail;
14458 }
14459 {
14460 wxBitmap * resultptr;
14461 resultptr = new wxBitmap((wxBitmap &) result);
14462 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14463 }
14464 {
14465 if (temp1)
14466 delete arg1;
14467 }
14468 {
14469 if (temp2)
14470 delete arg2;
14471 }
14472 return resultobj;
14473 fail:
14474 {
14475 if (temp1)
14476 delete arg1;
14477 }
14478 {
14479 if (temp2)
14480 delete arg2;
14481 }
14482 return NULL;
14483 }
14484
14485
14486 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14487 PyObject *resultobj;
14488 wxString *arg1 = 0 ;
14489 wxString const &arg2_defvalue = wxPyART_OTHER ;
14490 wxString *arg2 = (wxString *) &arg2_defvalue ;
14491 wxSize const &arg3_defvalue = wxDefaultSize ;
14492 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14493 wxIcon result;
14494 bool temp1 = False ;
14495 bool temp2 = False ;
14496 wxSize temp3 ;
14497 PyObject * obj0 = 0 ;
14498 PyObject * obj1 = 0 ;
14499 PyObject * obj2 = 0 ;
14500 char *kwnames[] = {
14501 (char *) "id",(char *) "client",(char *) "size", NULL
14502 };
14503
14504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14505 {
14506 arg1 = wxString_in_helper(obj0);
14507 if (arg1 == NULL) SWIG_fail;
14508 temp1 = True;
14509 }
14510 if (obj1) {
14511 {
14512 arg2 = wxString_in_helper(obj1);
14513 if (arg2 == NULL) SWIG_fail;
14514 temp2 = True;
14515 }
14516 }
14517 if (obj2) {
14518 {
14519 arg3 = &temp3;
14520 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14521 }
14522 }
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14526
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 {
14531 wxIcon * resultptr;
14532 resultptr = new wxIcon((wxIcon &) result);
14533 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14534 }
14535 {
14536 if (temp1)
14537 delete arg1;
14538 }
14539 {
14540 if (temp2)
14541 delete arg2;
14542 }
14543 return resultobj;
14544 fail:
14545 {
14546 if (temp1)
14547 delete arg1;
14548 }
14549 {
14550 if (temp2)
14551 delete arg2;
14552 }
14553 return NULL;
14554 }
14555
14556
14557 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
14558 PyObject *resultobj;
14559 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14560 PyObject * obj0 = 0 ;
14561 char *kwnames[] = {
14562 (char *) "self", NULL
14563 };
14564
14565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 wxPyArtProvider_Destroy(arg1);
14571
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 Py_INCREF(Py_None); resultobj = Py_None;
14576 return resultobj;
14577 fail:
14578 return NULL;
14579 }
14580
14581
14582 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
14583 PyObject *obj;
14584 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14585 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14586 Py_INCREF(obj);
14587 return Py_BuildValue((char *)"");
14588 }
14589 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
14590 PyObject *resultobj;
14591 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14592 PyObject * obj0 = 0 ;
14593 char *kwnames[] = {
14594 (char *) "self", NULL
14595 };
14596
14597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 delete arg1;
14603
14604 wxPyEndAllowThreads(__tstate);
14605 if (PyErr_Occurred()) SWIG_fail;
14606 }
14607 Py_INCREF(Py_None); resultobj = Py_None;
14608 return resultobj;
14609 fail:
14610 return NULL;
14611 }
14612
14613
14614 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
14615 PyObject *resultobj;
14616 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14617 wxConfigBase *result;
14618 PyObject * obj0 = 0 ;
14619 char *kwnames[] = {
14620 (char *) "config", NULL
14621 };
14622
14623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14626 {
14627 PyThreadState* __tstate = wxPyBeginAllowThreads();
14628 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14629
14630 wxPyEndAllowThreads(__tstate);
14631 if (PyErr_Occurred()) SWIG_fail;
14632 }
14633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14634 return resultobj;
14635 fail:
14636 return NULL;
14637 }
14638
14639
14640 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
14641 PyObject *resultobj;
14642 bool arg1 = (bool) True ;
14643 wxConfigBase *result;
14644 PyObject * obj0 = 0 ;
14645 char *kwnames[] = {
14646 (char *) "createOnDemand", NULL
14647 };
14648
14649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14650 if (obj0) {
14651 arg1 = (bool) SWIG_AsBool(obj0);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 {
14655 PyThreadState* __tstate = wxPyBeginAllowThreads();
14656 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14657
14658 wxPyEndAllowThreads(__tstate);
14659 if (PyErr_Occurred()) SWIG_fail;
14660 }
14661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14662 return resultobj;
14663 fail:
14664 return NULL;
14665 }
14666
14667
14668 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14669 PyObject *resultobj;
14670 wxConfigBase *result;
14671 char *kwnames[] = {
14672 NULL
14673 };
14674
14675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14676 {
14677 PyThreadState* __tstate = wxPyBeginAllowThreads();
14678 result = (wxConfigBase *)wxConfigBase::Create();
14679
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14684 return resultobj;
14685 fail:
14686 return NULL;
14687 }
14688
14689
14690 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj;
14692 char *kwnames[] = {
14693 NULL
14694 };
14695
14696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14697 {
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 wxConfigBase::DontCreateOnDemand();
14700
14701 wxPyEndAllowThreads(__tstate);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 }
14704 Py_INCREF(Py_None); resultobj = Py_None;
14705 return resultobj;
14706 fail:
14707 return NULL;
14708 }
14709
14710
14711 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
14712 PyObject *resultobj;
14713 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14714 wxString *arg2 = 0 ;
14715 bool temp2 = False ;
14716 PyObject * obj0 = 0 ;
14717 PyObject * obj1 = 0 ;
14718 char *kwnames[] = {
14719 (char *) "self",(char *) "path", NULL
14720 };
14721
14722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14725 {
14726 arg2 = wxString_in_helper(obj1);
14727 if (arg2 == NULL) SWIG_fail;
14728 temp2 = True;
14729 }
14730 {
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
14732 (arg1)->SetPath((wxString const &)*arg2);
14733
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
14737 Py_INCREF(Py_None); resultobj = Py_None;
14738 {
14739 if (temp2)
14740 delete arg2;
14741 }
14742 return resultobj;
14743 fail:
14744 {
14745 if (temp2)
14746 delete arg2;
14747 }
14748 return NULL;
14749 }
14750
14751
14752 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj;
14754 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14755 wxString *result;
14756 PyObject * obj0 = 0 ;
14757 char *kwnames[] = {
14758 (char *) "self", NULL
14759 };
14760
14761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14764 {
14765 PyThreadState* __tstate = wxPyBeginAllowThreads();
14766 {
14767 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14768 result = (wxString *) &_result_ref;
14769 }
14770
14771 wxPyEndAllowThreads(__tstate);
14772 if (PyErr_Occurred()) SWIG_fail;
14773 }
14774 {
14775 #if wxUSE_UNICODE
14776 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14777 #else
14778 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14779 #endif
14780 }
14781 return resultobj;
14782 fail:
14783 return NULL;
14784 }
14785
14786
14787 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj;
14789 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14790 PyObject *result;
14791 PyObject * obj0 = 0 ;
14792 char *kwnames[] = {
14793 (char *) "self", NULL
14794 };
14795
14796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = result;
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj;
14815 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14816 long arg2 ;
14817 PyObject *result;
14818 PyObject * obj0 = 0 ;
14819 PyObject * obj1 = 0 ;
14820 char *kwnames[] = {
14821 (char *) "self",(char *) "index", NULL
14822 };
14823
14824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14827 arg2 = (long) SWIG_AsLong(obj1);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 {
14830 PyThreadState* __tstate = wxPyBeginAllowThreads();
14831 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14832
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
14836 resultobj = result;
14837 return resultobj;
14838 fail:
14839 return NULL;
14840 }
14841
14842
14843 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
14844 PyObject *resultobj;
14845 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14846 PyObject *result;
14847 PyObject * obj0 = 0 ;
14848 char *kwnames[] = {
14849 (char *) "self", NULL
14850 };
14851
14852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14858
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = result;
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
14870 PyObject *resultobj;
14871 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14872 long arg2 ;
14873 PyObject *result;
14874 PyObject * obj0 = 0 ;
14875 PyObject * obj1 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "self",(char *) "index", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14883 arg2 = (long) SWIG_AsLong(obj1);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 resultobj = result;
14893 return resultobj;
14894 fail:
14895 return NULL;
14896 }
14897
14898
14899 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj;
14901 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14902 bool arg2 = (bool) False ;
14903 size_t result;
14904 PyObject * obj0 = 0 ;
14905 PyObject * obj1 = 0 ;
14906 char *kwnames[] = {
14907 (char *) "self",(char *) "recursive", NULL
14908 };
14909
14910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14913 if (obj1) {
14914 arg2 = (bool) SWIG_AsBool(obj1);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 }
14917 {
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14920
14921 wxPyEndAllowThreads(__tstate);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 }
14924 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14925 return resultobj;
14926 fail:
14927 return NULL;
14928 }
14929
14930
14931 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
14932 PyObject *resultobj;
14933 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14934 bool arg2 = (bool) False ;
14935 size_t result;
14936 PyObject * obj0 = 0 ;
14937 PyObject * obj1 = 0 ;
14938 char *kwnames[] = {
14939 (char *) "self",(char *) "recursive", NULL
14940 };
14941
14942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14945 if (obj1) {
14946 arg2 = (bool) SWIG_AsBool(obj1);
14947 if (PyErr_Occurred()) SWIG_fail;
14948 }
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14952
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14957 return resultobj;
14958 fail:
14959 return NULL;
14960 }
14961
14962
14963 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj;
14965 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14966 wxString *arg2 = 0 ;
14967 bool result;
14968 bool temp2 = False ;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 char *kwnames[] = {
14972 (char *) "self",(char *) "name", NULL
14973 };
14974
14975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14978 {
14979 arg2 = wxString_in_helper(obj1);
14980 if (arg2 == NULL) SWIG_fail;
14981 temp2 = True;
14982 }
14983 {
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14986
14987 wxPyEndAllowThreads(__tstate);
14988 if (PyErr_Occurred()) SWIG_fail;
14989 }
14990 {
14991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14992 }
14993 {
14994 if (temp2)
14995 delete arg2;
14996 }
14997 return resultobj;
14998 fail:
14999 {
15000 if (temp2)
15001 delete arg2;
15002 }
15003 return NULL;
15004 }
15005
15006
15007 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj;
15009 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15010 wxString *arg2 = 0 ;
15011 bool result;
15012 bool temp2 = False ;
15013 PyObject * obj0 = 0 ;
15014 PyObject * obj1 = 0 ;
15015 char *kwnames[] = {
15016 (char *) "self",(char *) "name", NULL
15017 };
15018
15019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15022 {
15023 arg2 = wxString_in_helper(obj1);
15024 if (arg2 == NULL) SWIG_fail;
15025 temp2 = True;
15026 }
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15030
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 {
15035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15036 }
15037 {
15038 if (temp2)
15039 delete arg2;
15040 }
15041 return resultobj;
15042 fail:
15043 {
15044 if (temp2)
15045 delete arg2;
15046 }
15047 return NULL;
15048 }
15049
15050
15051 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj;
15053 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15054 wxString *arg2 = 0 ;
15055 bool result;
15056 bool temp2 = False ;
15057 PyObject * obj0 = 0 ;
15058 PyObject * obj1 = 0 ;
15059 char *kwnames[] = {
15060 (char *) "self",(char *) "name", NULL
15061 };
15062
15063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15066 {
15067 arg2 = wxString_in_helper(obj1);
15068 if (arg2 == NULL) SWIG_fail;
15069 temp2 = True;
15070 }
15071 {
15072 PyThreadState* __tstate = wxPyBeginAllowThreads();
15073 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15074
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 {
15079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15080 }
15081 {
15082 if (temp2)
15083 delete arg2;
15084 }
15085 return resultobj;
15086 fail:
15087 {
15088 if (temp2)
15089 delete arg2;
15090 }
15091 return NULL;
15092 }
15093
15094
15095 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
15096 PyObject *resultobj;
15097 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15098 wxString *arg2 = 0 ;
15099 int result;
15100 bool temp2 = False ;
15101 PyObject * obj0 = 0 ;
15102 PyObject * obj1 = 0 ;
15103 char *kwnames[] = {
15104 (char *) "self",(char *) "name", NULL
15105 };
15106
15107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15110 {
15111 arg2 = wxString_in_helper(obj1);
15112 if (arg2 == NULL) SWIG_fail;
15113 temp2 = True;
15114 }
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15117 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15118
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 resultobj = SWIG_FromInt((int)result);
15123 {
15124 if (temp2)
15125 delete arg2;
15126 }
15127 return resultobj;
15128 fail:
15129 {
15130 if (temp2)
15131 delete arg2;
15132 }
15133 return NULL;
15134 }
15135
15136
15137 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
15138 PyObject *resultobj;
15139 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15140 wxString *arg2 = 0 ;
15141 wxString const &arg3_defvalue = wxPyEmptyString ;
15142 wxString *arg3 = (wxString *) &arg3_defvalue ;
15143 wxString result;
15144 bool temp2 = False ;
15145 bool temp3 = False ;
15146 PyObject * obj0 = 0 ;
15147 PyObject * obj1 = 0 ;
15148 PyObject * obj2 = 0 ;
15149 char *kwnames[] = {
15150 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15151 };
15152
15153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15156 {
15157 arg2 = wxString_in_helper(obj1);
15158 if (arg2 == NULL) SWIG_fail;
15159 temp2 = True;
15160 }
15161 if (obj2) {
15162 {
15163 arg3 = wxString_in_helper(obj2);
15164 if (arg3 == NULL) SWIG_fail;
15165 temp3 = True;
15166 }
15167 }
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15171
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 {
15176 #if wxUSE_UNICODE
15177 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15178 #else
15179 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15180 #endif
15181 }
15182 {
15183 if (temp2)
15184 delete arg2;
15185 }
15186 {
15187 if (temp3)
15188 delete arg3;
15189 }
15190 return resultobj;
15191 fail:
15192 {
15193 if (temp2)
15194 delete arg2;
15195 }
15196 {
15197 if (temp3)
15198 delete arg3;
15199 }
15200 return NULL;
15201 }
15202
15203
15204 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
15205 PyObject *resultobj;
15206 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15207 wxString *arg2 = 0 ;
15208 long arg3 = (long) 0 ;
15209 long result;
15210 bool temp2 = False ;
15211 PyObject * obj0 = 0 ;
15212 PyObject * obj1 = 0 ;
15213 PyObject * obj2 = 0 ;
15214 char *kwnames[] = {
15215 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15216 };
15217
15218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15221 {
15222 arg2 = wxString_in_helper(obj1);
15223 if (arg2 == NULL) SWIG_fail;
15224 temp2 = True;
15225 }
15226 if (obj2) {
15227 arg3 = (long) SWIG_AsLong(obj2);
15228 if (PyErr_Occurred()) SWIG_fail;
15229 }
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15233
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 resultobj = SWIG_FromLong((long)result);
15238 {
15239 if (temp2)
15240 delete arg2;
15241 }
15242 return resultobj;
15243 fail:
15244 {
15245 if (temp2)
15246 delete arg2;
15247 }
15248 return NULL;
15249 }
15250
15251
15252 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj;
15254 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15255 wxString *arg2 = 0 ;
15256 double arg3 = (double) 0.0 ;
15257 double result;
15258 bool temp2 = False ;
15259 PyObject * obj0 = 0 ;
15260 PyObject * obj1 = 0 ;
15261 PyObject * obj2 = 0 ;
15262 char *kwnames[] = {
15263 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15264 };
15265
15266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15269 {
15270 arg2 = wxString_in_helper(obj1);
15271 if (arg2 == NULL) SWIG_fail;
15272 temp2 = True;
15273 }
15274 if (obj2) {
15275 arg3 = (double) SWIG_AsDouble(obj2);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 {
15279 PyThreadState* __tstate = wxPyBeginAllowThreads();
15280 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15281
15282 wxPyEndAllowThreads(__tstate);
15283 if (PyErr_Occurred()) SWIG_fail;
15284 }
15285 resultobj = SWIG_FromDouble((double)result);
15286 {
15287 if (temp2)
15288 delete arg2;
15289 }
15290 return resultobj;
15291 fail:
15292 {
15293 if (temp2)
15294 delete arg2;
15295 }
15296 return NULL;
15297 }
15298
15299
15300 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
15301 PyObject *resultobj;
15302 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15303 wxString *arg2 = 0 ;
15304 bool arg3 = (bool) False ;
15305 bool result;
15306 bool temp2 = False ;
15307 PyObject * obj0 = 0 ;
15308 PyObject * obj1 = 0 ;
15309 PyObject * obj2 = 0 ;
15310 char *kwnames[] = {
15311 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15312 };
15313
15314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15317 {
15318 arg2 = wxString_in_helper(obj1);
15319 if (arg2 == NULL) SWIG_fail;
15320 temp2 = True;
15321 }
15322 if (obj2) {
15323 arg3 = (bool) SWIG_AsBool(obj2);
15324 if (PyErr_Occurred()) SWIG_fail;
15325 }
15326 {
15327 PyThreadState* __tstate = wxPyBeginAllowThreads();
15328 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15329
15330 wxPyEndAllowThreads(__tstate);
15331 if (PyErr_Occurred()) SWIG_fail;
15332 }
15333 {
15334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15335 }
15336 {
15337 if (temp2)
15338 delete arg2;
15339 }
15340 return resultobj;
15341 fail:
15342 {
15343 if (temp2)
15344 delete arg2;
15345 }
15346 return NULL;
15347 }
15348
15349
15350 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
15351 PyObject *resultobj;
15352 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15353 wxString *arg2 = 0 ;
15354 wxString *arg3 = 0 ;
15355 bool result;
15356 bool temp2 = False ;
15357 bool temp3 = False ;
15358 PyObject * obj0 = 0 ;
15359 PyObject * obj1 = 0 ;
15360 PyObject * obj2 = 0 ;
15361 char *kwnames[] = {
15362 (char *) "self",(char *) "key",(char *) "value", NULL
15363 };
15364
15365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15368 {
15369 arg2 = wxString_in_helper(obj1);
15370 if (arg2 == NULL) SWIG_fail;
15371 temp2 = True;
15372 }
15373 {
15374 arg3 = wxString_in_helper(obj2);
15375 if (arg3 == NULL) SWIG_fail;
15376 temp3 = True;
15377 }
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15381
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 {
15386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15387 }
15388 {
15389 if (temp2)
15390 delete arg2;
15391 }
15392 {
15393 if (temp3)
15394 delete arg3;
15395 }
15396 return resultobj;
15397 fail:
15398 {
15399 if (temp2)
15400 delete arg2;
15401 }
15402 {
15403 if (temp3)
15404 delete arg3;
15405 }
15406 return NULL;
15407 }
15408
15409
15410 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
15411 PyObject *resultobj;
15412 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15413 wxString *arg2 = 0 ;
15414 long arg3 ;
15415 bool result;
15416 bool temp2 = False ;
15417 PyObject * obj0 = 0 ;
15418 PyObject * obj1 = 0 ;
15419 PyObject * obj2 = 0 ;
15420 char *kwnames[] = {
15421 (char *) "self",(char *) "key",(char *) "value", NULL
15422 };
15423
15424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15427 {
15428 arg2 = wxString_in_helper(obj1);
15429 if (arg2 == NULL) SWIG_fail;
15430 temp2 = True;
15431 }
15432 arg3 = (long) SWIG_AsLong(obj2);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 {
15435 PyThreadState* __tstate = wxPyBeginAllowThreads();
15436 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15437
15438 wxPyEndAllowThreads(__tstate);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
15441 {
15442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15443 }
15444 {
15445 if (temp2)
15446 delete arg2;
15447 }
15448 return resultobj;
15449 fail:
15450 {
15451 if (temp2)
15452 delete arg2;
15453 }
15454 return NULL;
15455 }
15456
15457
15458 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15459 PyObject *resultobj;
15460 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15461 wxString *arg2 = 0 ;
15462 double arg3 ;
15463 bool result;
15464 bool temp2 = False ;
15465 PyObject * obj0 = 0 ;
15466 PyObject * obj1 = 0 ;
15467 PyObject * obj2 = 0 ;
15468 char *kwnames[] = {
15469 (char *) "self",(char *) "key",(char *) "value", NULL
15470 };
15471
15472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15475 {
15476 arg2 = wxString_in_helper(obj1);
15477 if (arg2 == NULL) SWIG_fail;
15478 temp2 = True;
15479 }
15480 arg3 = (double) SWIG_AsDouble(obj2);
15481 if (PyErr_Occurred()) SWIG_fail;
15482 {
15483 PyThreadState* __tstate = wxPyBeginAllowThreads();
15484 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15485
15486 wxPyEndAllowThreads(__tstate);
15487 if (PyErr_Occurred()) SWIG_fail;
15488 }
15489 {
15490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15491 }
15492 {
15493 if (temp2)
15494 delete arg2;
15495 }
15496 return resultobj;
15497 fail:
15498 {
15499 if (temp2)
15500 delete arg2;
15501 }
15502 return NULL;
15503 }
15504
15505
15506 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj;
15508 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15509 wxString *arg2 = 0 ;
15510 bool arg3 ;
15511 bool result;
15512 bool temp2 = False ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 PyObject * obj2 = 0 ;
15516 char *kwnames[] = {
15517 (char *) "self",(char *) "key",(char *) "value", NULL
15518 };
15519
15520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15523 {
15524 arg2 = wxString_in_helper(obj1);
15525 if (arg2 == NULL) SWIG_fail;
15526 temp2 = True;
15527 }
15528 arg3 = (bool) SWIG_AsBool(obj2);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15533
15534 wxPyEndAllowThreads(__tstate);
15535 if (PyErr_Occurred()) SWIG_fail;
15536 }
15537 {
15538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15539 }
15540 {
15541 if (temp2)
15542 delete arg2;
15543 }
15544 return resultobj;
15545 fail:
15546 {
15547 if (temp2)
15548 delete arg2;
15549 }
15550 return NULL;
15551 }
15552
15553
15554 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
15555 PyObject *resultobj;
15556 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15557 bool arg2 = (bool) False ;
15558 bool result;
15559 PyObject * obj0 = 0 ;
15560 PyObject * obj1 = 0 ;
15561 char *kwnames[] = {
15562 (char *) "self",(char *) "currentOnly", NULL
15563 };
15564
15565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15568 if (obj1) {
15569 arg2 = (bool) SWIG_AsBool(obj1);
15570 if (PyErr_Occurred()) SWIG_fail;
15571 }
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 result = (bool)(arg1)->Flush(arg2);
15575
15576 wxPyEndAllowThreads(__tstate);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 {
15580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15581 }
15582 return resultobj;
15583 fail:
15584 return NULL;
15585 }
15586
15587
15588 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15589 PyObject *resultobj;
15590 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15591 wxString *arg2 = 0 ;
15592 wxString *arg3 = 0 ;
15593 bool result;
15594 bool temp2 = False ;
15595 bool temp3 = False ;
15596 PyObject * obj0 = 0 ;
15597 PyObject * obj1 = 0 ;
15598 PyObject * obj2 = 0 ;
15599 char *kwnames[] = {
15600 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15601 };
15602
15603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15606 {
15607 arg2 = wxString_in_helper(obj1);
15608 if (arg2 == NULL) SWIG_fail;
15609 temp2 = True;
15610 }
15611 {
15612 arg3 = wxString_in_helper(obj2);
15613 if (arg3 == NULL) SWIG_fail;
15614 temp3 = True;
15615 }
15616 {
15617 PyThreadState* __tstate = wxPyBeginAllowThreads();
15618 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15619
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 {
15624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15625 }
15626 {
15627 if (temp2)
15628 delete arg2;
15629 }
15630 {
15631 if (temp3)
15632 delete arg3;
15633 }
15634 return resultobj;
15635 fail:
15636 {
15637 if (temp2)
15638 delete arg2;
15639 }
15640 {
15641 if (temp3)
15642 delete arg3;
15643 }
15644 return NULL;
15645 }
15646
15647
15648 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15649 PyObject *resultobj;
15650 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15651 wxString *arg2 = 0 ;
15652 wxString *arg3 = 0 ;
15653 bool result;
15654 bool temp2 = False ;
15655 bool temp3 = False ;
15656 PyObject * obj0 = 0 ;
15657 PyObject * obj1 = 0 ;
15658 PyObject * obj2 = 0 ;
15659 char *kwnames[] = {
15660 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15661 };
15662
15663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15666 {
15667 arg2 = wxString_in_helper(obj1);
15668 if (arg2 == NULL) SWIG_fail;
15669 temp2 = True;
15670 }
15671 {
15672 arg3 = wxString_in_helper(obj2);
15673 if (arg3 == NULL) SWIG_fail;
15674 temp3 = True;
15675 }
15676 {
15677 PyThreadState* __tstate = wxPyBeginAllowThreads();
15678 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15679
15680 wxPyEndAllowThreads(__tstate);
15681 if (PyErr_Occurred()) SWIG_fail;
15682 }
15683 {
15684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15685 }
15686 {
15687 if (temp2)
15688 delete arg2;
15689 }
15690 {
15691 if (temp3)
15692 delete arg3;
15693 }
15694 return resultobj;
15695 fail:
15696 {
15697 if (temp2)
15698 delete arg2;
15699 }
15700 {
15701 if (temp3)
15702 delete arg3;
15703 }
15704 return NULL;
15705 }
15706
15707
15708 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj;
15710 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15711 wxString *arg2 = 0 ;
15712 bool arg3 = (bool) True ;
15713 bool result;
15714 bool temp2 = False ;
15715 PyObject * obj0 = 0 ;
15716 PyObject * obj1 = 0 ;
15717 PyObject * obj2 = 0 ;
15718 char *kwnames[] = {
15719 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15720 };
15721
15722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15725 {
15726 arg2 = wxString_in_helper(obj1);
15727 if (arg2 == NULL) SWIG_fail;
15728 temp2 = True;
15729 }
15730 if (obj2) {
15731 arg3 = (bool) SWIG_AsBool(obj2);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15737
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 {
15742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15743 }
15744 {
15745 if (temp2)
15746 delete arg2;
15747 }
15748 return resultobj;
15749 fail:
15750 {
15751 if (temp2)
15752 delete arg2;
15753 }
15754 return NULL;
15755 }
15756
15757
15758 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15759 PyObject *resultobj;
15760 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15761 wxString *arg2 = 0 ;
15762 bool result;
15763 bool temp2 = False ;
15764 PyObject * obj0 = 0 ;
15765 PyObject * obj1 = 0 ;
15766 char *kwnames[] = {
15767 (char *) "self",(char *) "key", NULL
15768 };
15769
15770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15773 {
15774 arg2 = wxString_in_helper(obj1);
15775 if (arg2 == NULL) SWIG_fail;
15776 temp2 = True;
15777 }
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15781
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 {
15786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15787 }
15788 {
15789 if (temp2)
15790 delete arg2;
15791 }
15792 return resultobj;
15793 fail:
15794 {
15795 if (temp2)
15796 delete arg2;
15797 }
15798 return NULL;
15799 }
15800
15801
15802 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
15803 PyObject *resultobj;
15804 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15805 bool result;
15806 PyObject * obj0 = 0 ;
15807 char *kwnames[] = {
15808 (char *) "self", NULL
15809 };
15810
15811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15814 {
15815 PyThreadState* __tstate = wxPyBeginAllowThreads();
15816 result = (bool)(arg1)->DeleteAll();
15817
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 {
15822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15823 }
15824 return resultobj;
15825 fail:
15826 return NULL;
15827 }
15828
15829
15830 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj;
15832 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15833 bool arg2 = (bool) True ;
15834 PyObject * obj0 = 0 ;
15835 PyObject * obj1 = 0 ;
15836 char *kwnames[] = {
15837 (char *) "self",(char *) "doIt", NULL
15838 };
15839
15840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15843 if (obj1) {
15844 arg2 = (bool) SWIG_AsBool(obj1);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 (arg1)->SetExpandEnvVars(arg2);
15850
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 Py_INCREF(Py_None); resultobj = Py_None;
15855 return resultobj;
15856 fail:
15857 return NULL;
15858 }
15859
15860
15861 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
15862 PyObject *resultobj;
15863 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15864 bool result;
15865 PyObject * obj0 = 0 ;
15866 char *kwnames[] = {
15867 (char *) "self", NULL
15868 };
15869
15870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15873 {
15874 PyThreadState* __tstate = wxPyBeginAllowThreads();
15875 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15876
15877 wxPyEndAllowThreads(__tstate);
15878 if (PyErr_Occurred()) SWIG_fail;
15879 }
15880 {
15881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15882 }
15883 return resultobj;
15884 fail:
15885 return NULL;
15886 }
15887
15888
15889 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
15890 PyObject *resultobj;
15891 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15892 bool arg2 = (bool) True ;
15893 PyObject * obj0 = 0 ;
15894 PyObject * obj1 = 0 ;
15895 char *kwnames[] = {
15896 (char *) "self",(char *) "doIt", NULL
15897 };
15898
15899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15902 if (obj1) {
15903 arg2 = (bool) SWIG_AsBool(obj1);
15904 if (PyErr_Occurred()) SWIG_fail;
15905 }
15906 {
15907 PyThreadState* __tstate = wxPyBeginAllowThreads();
15908 (arg1)->SetRecordDefaults(arg2);
15909
15910 wxPyEndAllowThreads(__tstate);
15911 if (PyErr_Occurred()) SWIG_fail;
15912 }
15913 Py_INCREF(Py_None); resultobj = Py_None;
15914 return resultobj;
15915 fail:
15916 return NULL;
15917 }
15918
15919
15920 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
15921 PyObject *resultobj;
15922 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15923 bool result;
15924 PyObject * obj0 = 0 ;
15925 char *kwnames[] = {
15926 (char *) "self", NULL
15927 };
15928
15929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15932 {
15933 PyThreadState* __tstate = wxPyBeginAllowThreads();
15934 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15935
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 {
15940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15941 }
15942 return resultobj;
15943 fail:
15944 return NULL;
15945 }
15946
15947
15948 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
15949 PyObject *resultobj;
15950 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15951 wxString *arg2 = 0 ;
15952 wxString result;
15953 bool temp2 = False ;
15954 PyObject * obj0 = 0 ;
15955 PyObject * obj1 = 0 ;
15956 char *kwnames[] = {
15957 (char *) "self",(char *) "str", NULL
15958 };
15959
15960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15963 {
15964 arg2 = wxString_in_helper(obj1);
15965 if (arg2 == NULL) SWIG_fail;
15966 temp2 = True;
15967 }
15968 {
15969 PyThreadState* __tstate = wxPyBeginAllowThreads();
15970 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15971
15972 wxPyEndAllowThreads(__tstate);
15973 if (PyErr_Occurred()) SWIG_fail;
15974 }
15975 {
15976 #if wxUSE_UNICODE
15977 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15978 #else
15979 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15980 #endif
15981 }
15982 {
15983 if (temp2)
15984 delete arg2;
15985 }
15986 return resultobj;
15987 fail:
15988 {
15989 if (temp2)
15990 delete arg2;
15991 }
15992 return NULL;
15993 }
15994
15995
15996 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
15997 PyObject *resultobj;
15998 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15999 wxString result;
16000 PyObject * obj0 = 0 ;
16001 char *kwnames[] = {
16002 (char *) "self", NULL
16003 };
16004
16005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 result = ((wxConfigBase const *)arg1)->GetAppName();
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 {
16016 #if wxUSE_UNICODE
16017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16018 #else
16019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16020 #endif
16021 }
16022 return resultobj;
16023 fail:
16024 return NULL;
16025 }
16026
16027
16028 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16029 PyObject *resultobj;
16030 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16031 wxString result;
16032 PyObject * obj0 = 0 ;
16033 char *kwnames[] = {
16034 (char *) "self", NULL
16035 };
16036
16037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16040 {
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = ((wxConfigBase const *)arg1)->GetVendorName();
16043
16044 wxPyEndAllowThreads(__tstate);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 }
16047 {
16048 #if wxUSE_UNICODE
16049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16050 #else
16051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16052 #endif
16053 }
16054 return resultobj;
16055 fail:
16056 return NULL;
16057 }
16058
16059
16060 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16061 PyObject *resultobj;
16062 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16063 wxString *arg2 = 0 ;
16064 bool temp2 = False ;
16065 PyObject * obj0 = 0 ;
16066 PyObject * obj1 = 0 ;
16067 char *kwnames[] = {
16068 (char *) "self",(char *) "appName", NULL
16069 };
16070
16071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16074 {
16075 arg2 = wxString_in_helper(obj1);
16076 if (arg2 == NULL) SWIG_fail;
16077 temp2 = True;
16078 }
16079 {
16080 PyThreadState* __tstate = wxPyBeginAllowThreads();
16081 (arg1)->SetAppName((wxString const &)*arg2);
16082
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 Py_INCREF(Py_None); resultobj = Py_None;
16087 {
16088 if (temp2)
16089 delete arg2;
16090 }
16091 return resultobj;
16092 fail:
16093 {
16094 if (temp2)
16095 delete arg2;
16096 }
16097 return NULL;
16098 }
16099
16100
16101 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16102 PyObject *resultobj;
16103 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16104 wxString *arg2 = 0 ;
16105 bool temp2 = False ;
16106 PyObject * obj0 = 0 ;
16107 PyObject * obj1 = 0 ;
16108 char *kwnames[] = {
16109 (char *) "self",(char *) "vendorName", NULL
16110 };
16111
16112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16115 {
16116 arg2 = wxString_in_helper(obj1);
16117 if (arg2 == NULL) SWIG_fail;
16118 temp2 = True;
16119 }
16120 {
16121 PyThreadState* __tstate = wxPyBeginAllowThreads();
16122 (arg1)->SetVendorName((wxString const &)*arg2);
16123
16124 wxPyEndAllowThreads(__tstate);
16125 if (PyErr_Occurred()) SWIG_fail;
16126 }
16127 Py_INCREF(Py_None); resultobj = Py_None;
16128 {
16129 if (temp2)
16130 delete arg2;
16131 }
16132 return resultobj;
16133 fail:
16134 {
16135 if (temp2)
16136 delete arg2;
16137 }
16138 return NULL;
16139 }
16140
16141
16142 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj;
16144 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16145 long arg2 ;
16146 PyObject * obj0 = 0 ;
16147 PyObject * obj1 = 0 ;
16148 char *kwnames[] = {
16149 (char *) "self",(char *) "style", NULL
16150 };
16151
16152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16155 arg2 = (long) SWIG_AsLong(obj1);
16156 if (PyErr_Occurred()) SWIG_fail;
16157 {
16158 PyThreadState* __tstate = wxPyBeginAllowThreads();
16159 (arg1)->SetStyle(arg2);
16160
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 Py_INCREF(Py_None); resultobj = Py_None;
16165 return resultobj;
16166 fail:
16167 return NULL;
16168 }
16169
16170
16171 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16172 PyObject *resultobj;
16173 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16174 long result;
16175 PyObject * obj0 = 0 ;
16176 char *kwnames[] = {
16177 (char *) "self", NULL
16178 };
16179
16180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16186
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 resultobj = SWIG_FromLong((long)result);
16191 return resultobj;
16192 fail:
16193 return NULL;
16194 }
16195
16196
16197 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
16198 PyObject *obj;
16199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16200 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16201 Py_INCREF(obj);
16202 return Py_BuildValue((char *)"");
16203 }
16204 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16205 PyObject *resultobj;
16206 wxString const &arg1_defvalue = wxPyEmptyString ;
16207 wxString *arg1 = (wxString *) &arg1_defvalue ;
16208 wxString const &arg2_defvalue = wxPyEmptyString ;
16209 wxString *arg2 = (wxString *) &arg2_defvalue ;
16210 wxString const &arg3_defvalue = wxPyEmptyString ;
16211 wxString *arg3 = (wxString *) &arg3_defvalue ;
16212 wxString const &arg4_defvalue = wxPyEmptyString ;
16213 wxString *arg4 = (wxString *) &arg4_defvalue ;
16214 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16215 wxConfig *result;
16216 bool temp1 = False ;
16217 bool temp2 = False ;
16218 bool temp3 = False ;
16219 bool temp4 = False ;
16220 PyObject * obj0 = 0 ;
16221 PyObject * obj1 = 0 ;
16222 PyObject * obj2 = 0 ;
16223 PyObject * obj3 = 0 ;
16224 PyObject * obj4 = 0 ;
16225 char *kwnames[] = {
16226 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16227 };
16228
16229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16230 if (obj0) {
16231 {
16232 arg1 = wxString_in_helper(obj0);
16233 if (arg1 == NULL) SWIG_fail;
16234 temp1 = True;
16235 }
16236 }
16237 if (obj1) {
16238 {
16239 arg2 = wxString_in_helper(obj1);
16240 if (arg2 == NULL) SWIG_fail;
16241 temp2 = True;
16242 }
16243 }
16244 if (obj2) {
16245 {
16246 arg3 = wxString_in_helper(obj2);
16247 if (arg3 == NULL) SWIG_fail;
16248 temp3 = True;
16249 }
16250 }
16251 if (obj3) {
16252 {
16253 arg4 = wxString_in_helper(obj3);
16254 if (arg4 == NULL) SWIG_fail;
16255 temp4 = True;
16256 }
16257 }
16258 if (obj4) {
16259 arg5 = (long) SWIG_AsLong(obj4);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 {
16263 PyThreadState* __tstate = wxPyBeginAllowThreads();
16264 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16265
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16270 {
16271 if (temp1)
16272 delete arg1;
16273 }
16274 {
16275 if (temp2)
16276 delete arg2;
16277 }
16278 {
16279 if (temp3)
16280 delete arg3;
16281 }
16282 {
16283 if (temp4)
16284 delete arg4;
16285 }
16286 return resultobj;
16287 fail:
16288 {
16289 if (temp1)
16290 delete arg1;
16291 }
16292 {
16293 if (temp2)
16294 delete arg2;
16295 }
16296 {
16297 if (temp3)
16298 delete arg3;
16299 }
16300 {
16301 if (temp4)
16302 delete arg4;
16303 }
16304 return NULL;
16305 }
16306
16307
16308 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16309 PyObject *resultobj;
16310 wxConfig *arg1 = (wxConfig *) 0 ;
16311 PyObject * obj0 = 0 ;
16312 char *kwnames[] = {
16313 (char *) "self", NULL
16314 };
16315
16316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 delete arg1;
16322
16323 wxPyEndAllowThreads(__tstate);
16324 if (PyErr_Occurred()) SWIG_fail;
16325 }
16326 Py_INCREF(Py_None); resultobj = Py_None;
16327 return resultobj;
16328 fail:
16329 return NULL;
16330 }
16331
16332
16333 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
16334 PyObject *obj;
16335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16336 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16337 Py_INCREF(obj);
16338 return Py_BuildValue((char *)"");
16339 }
16340 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16341 PyObject *resultobj;
16342 wxString const &arg1_defvalue = wxPyEmptyString ;
16343 wxString *arg1 = (wxString *) &arg1_defvalue ;
16344 wxString const &arg2_defvalue = wxPyEmptyString ;
16345 wxString *arg2 = (wxString *) &arg2_defvalue ;
16346 wxString const &arg3_defvalue = wxPyEmptyString ;
16347 wxString *arg3 = (wxString *) &arg3_defvalue ;
16348 wxString const &arg4_defvalue = wxPyEmptyString ;
16349 wxString *arg4 = (wxString *) &arg4_defvalue ;
16350 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16351 wxFileConfig *result;
16352 bool temp1 = False ;
16353 bool temp2 = False ;
16354 bool temp3 = False ;
16355 bool temp4 = False ;
16356 PyObject * obj0 = 0 ;
16357 PyObject * obj1 = 0 ;
16358 PyObject * obj2 = 0 ;
16359 PyObject * obj3 = 0 ;
16360 PyObject * obj4 = 0 ;
16361 char *kwnames[] = {
16362 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16363 };
16364
16365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16366 if (obj0) {
16367 {
16368 arg1 = wxString_in_helper(obj0);
16369 if (arg1 == NULL) SWIG_fail;
16370 temp1 = True;
16371 }
16372 }
16373 if (obj1) {
16374 {
16375 arg2 = wxString_in_helper(obj1);
16376 if (arg2 == NULL) SWIG_fail;
16377 temp2 = True;
16378 }
16379 }
16380 if (obj2) {
16381 {
16382 arg3 = wxString_in_helper(obj2);
16383 if (arg3 == NULL) SWIG_fail;
16384 temp3 = True;
16385 }
16386 }
16387 if (obj3) {
16388 {
16389 arg4 = wxString_in_helper(obj3);
16390 if (arg4 == NULL) SWIG_fail;
16391 temp4 = True;
16392 }
16393 }
16394 if (obj4) {
16395 arg5 = (long) SWIG_AsLong(obj4);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 }
16398 {
16399 PyThreadState* __tstate = wxPyBeginAllowThreads();
16400 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16401
16402 wxPyEndAllowThreads(__tstate);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16406 {
16407 if (temp1)
16408 delete arg1;
16409 }
16410 {
16411 if (temp2)
16412 delete arg2;
16413 }
16414 {
16415 if (temp3)
16416 delete arg3;
16417 }
16418 {
16419 if (temp4)
16420 delete arg4;
16421 }
16422 return resultobj;
16423 fail:
16424 {
16425 if (temp1)
16426 delete arg1;
16427 }
16428 {
16429 if (temp2)
16430 delete arg2;
16431 }
16432 {
16433 if (temp3)
16434 delete arg3;
16435 }
16436 {
16437 if (temp4)
16438 delete arg4;
16439 }
16440 return NULL;
16441 }
16442
16443
16444 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16445 PyObject *resultobj;
16446 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16447 PyObject * obj0 = 0 ;
16448 char *kwnames[] = {
16449 (char *) "self", NULL
16450 };
16451
16452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16455 {
16456 PyThreadState* __tstate = wxPyBeginAllowThreads();
16457 delete arg1;
16458
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
16462 Py_INCREF(Py_None); resultobj = Py_None;
16463 return resultobj;
16464 fail:
16465 return NULL;
16466 }
16467
16468
16469 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
16470 PyObject *obj;
16471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16472 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16473 Py_INCREF(obj);
16474 return Py_BuildValue((char *)"");
16475 }
16476 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16477 PyObject *resultobj;
16478 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16479 wxString *arg2 = 0 ;
16480 wxConfigPathChanger *result;
16481 bool temp2 = False ;
16482 PyObject * obj0 = 0 ;
16483 PyObject * obj1 = 0 ;
16484 char *kwnames[] = {
16485 (char *) "config",(char *) "entry", NULL
16486 };
16487
16488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16491 {
16492 arg2 = wxString_in_helper(obj1);
16493 if (arg2 == NULL) SWIG_fail;
16494 temp2 = True;
16495 }
16496 {
16497 PyThreadState* __tstate = wxPyBeginAllowThreads();
16498 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16499
16500 wxPyEndAllowThreads(__tstate);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 }
16503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16504 {
16505 if (temp2)
16506 delete arg2;
16507 }
16508 return resultobj;
16509 fail:
16510 {
16511 if (temp2)
16512 delete arg2;
16513 }
16514 return NULL;
16515 }
16516
16517
16518 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16519 PyObject *resultobj;
16520 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16521 PyObject * obj0 = 0 ;
16522 char *kwnames[] = {
16523 (char *) "self", NULL
16524 };
16525
16526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
16531 delete arg1;
16532
16533 wxPyEndAllowThreads(__tstate);
16534 if (PyErr_Occurred()) SWIG_fail;
16535 }
16536 Py_INCREF(Py_None); resultobj = Py_None;
16537 return resultobj;
16538 fail:
16539 return NULL;
16540 }
16541
16542
16543 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
16544 PyObject *resultobj;
16545 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16546 wxString *result;
16547 PyObject * obj0 = 0 ;
16548 char *kwnames[] = {
16549 (char *) "self", NULL
16550 };
16551
16552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 {
16558 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16559 result = (wxString *) &_result_ref;
16560 }
16561
16562 wxPyEndAllowThreads(__tstate);
16563 if (PyErr_Occurred()) SWIG_fail;
16564 }
16565 {
16566 #if wxUSE_UNICODE
16567 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16568 #else
16569 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16570 #endif
16571 }
16572 return resultobj;
16573 fail:
16574 return NULL;
16575 }
16576
16577
16578 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
16579 PyObject *obj;
16580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16581 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16582 Py_INCREF(obj);
16583 return Py_BuildValue((char *)"");
16584 }
16585 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj;
16587 wxString *arg1 = 0 ;
16588 wxString result;
16589 bool temp1 = False ;
16590 PyObject * obj0 = 0 ;
16591 char *kwnames[] = {
16592 (char *) "sz", NULL
16593 };
16594
16595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16596 {
16597 arg1 = wxString_in_helper(obj0);
16598 if (arg1 == NULL) SWIG_fail;
16599 temp1 = True;
16600 }
16601 {
16602 PyThreadState* __tstate = wxPyBeginAllowThreads();
16603 result = wxExpandEnvVars((wxString const &)*arg1);
16604
16605 wxPyEndAllowThreads(__tstate);
16606 if (PyErr_Occurred()) SWIG_fail;
16607 }
16608 {
16609 #if wxUSE_UNICODE
16610 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16611 #else
16612 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16613 #endif
16614 }
16615 {
16616 if (temp1)
16617 delete arg1;
16618 }
16619 return resultobj;
16620 fail:
16621 {
16622 if (temp1)
16623 delete arg1;
16624 }
16625 return NULL;
16626 }
16627
16628
16629 static int _wrap_DateFormatStr_set(PyObject *) {
16630 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16631 return 1;
16632 }
16633
16634
16635 static PyObject *_wrap_DateFormatStr_get() {
16636 PyObject *pyobj;
16637
16638 {
16639 #if wxUSE_UNICODE
16640 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16641 #else
16642 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16643 #endif
16644 }
16645 return pyobj;
16646 }
16647
16648
16649 static int _wrap_TimeSpanFormatStr_set(PyObject *) {
16650 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16651 return 1;
16652 }
16653
16654
16655 static PyObject *_wrap_TimeSpanFormatStr_get() {
16656 PyObject *pyobj;
16657
16658 {
16659 #if wxUSE_UNICODE
16660 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16661 #else
16662 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16663 #endif
16664 }
16665 return pyobj;
16666 }
16667
16668
16669 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
16670 PyObject *resultobj;
16671 int arg1 ;
16672 PyObject * obj0 = 0 ;
16673 char *kwnames[] = {
16674 (char *) "country", NULL
16675 };
16676
16677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16678 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16679 if (PyErr_Occurred()) SWIG_fail;
16680 {
16681 PyThreadState* __tstate = wxPyBeginAllowThreads();
16682 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16683
16684 wxPyEndAllowThreads(__tstate);
16685 if (PyErr_Occurred()) SWIG_fail;
16686 }
16687 Py_INCREF(Py_None); resultobj = Py_None;
16688 return resultobj;
16689 fail:
16690 return NULL;
16691 }
16692
16693
16694 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
16695 PyObject *resultobj;
16696 int result;
16697 char *kwnames[] = {
16698 NULL
16699 };
16700
16701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16702 {
16703 PyThreadState* __tstate = wxPyBeginAllowThreads();
16704 result = (int)wxDateTime::GetCountry();
16705
16706 wxPyEndAllowThreads(__tstate);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
16709 resultobj = SWIG_FromInt((int)result);
16710 return resultobj;
16711 fail:
16712 return NULL;
16713 }
16714
16715
16716 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
16717 PyObject *resultobj;
16718 int arg1 = (int) wxDateTime::Country_Default ;
16719 bool result;
16720 PyObject * obj0 = 0 ;
16721 char *kwnames[] = {
16722 (char *) "country", NULL
16723 };
16724
16725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16726 if (obj0) {
16727 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16728 if (PyErr_Occurred()) SWIG_fail;
16729 }
16730 {
16731 PyThreadState* __tstate = wxPyBeginAllowThreads();
16732 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16733
16734 wxPyEndAllowThreads(__tstate);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
16737 {
16738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16739 }
16740 return resultobj;
16741 fail:
16742 return NULL;
16743 }
16744
16745
16746 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
16747 PyObject *resultobj;
16748 int arg1 = (int) wxDateTime::Gregorian ;
16749 int result;
16750 PyObject * obj0 = 0 ;
16751 char *kwnames[] = {
16752 (char *) "cal", NULL
16753 };
16754
16755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16756 if (obj0) {
16757 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16758 if (PyErr_Occurred()) SWIG_fail;
16759 }
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16763
16764 wxPyEndAllowThreads(__tstate);
16765 if (PyErr_Occurred()) SWIG_fail;
16766 }
16767 resultobj = SWIG_FromInt((int)result);
16768 return resultobj;
16769 fail:
16770 return NULL;
16771 }
16772
16773
16774 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
16775 PyObject *resultobj;
16776 int arg1 ;
16777 int result;
16778 PyObject * obj0 = 0 ;
16779 char *kwnames[] = {
16780 (char *) "year", NULL
16781 };
16782
16783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16784 arg1 = (int) SWIG_AsInt(obj0);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 result = (int)wxDateTime::ConvertYearToBC(arg1);
16789
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 resultobj = SWIG_FromInt((int)result);
16794 return resultobj;
16795 fail:
16796 return NULL;
16797 }
16798
16799
16800 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
16801 PyObject *resultobj;
16802 int arg1 = (int) wxDateTime::Gregorian ;
16803 int result;
16804 PyObject * obj0 = 0 ;
16805 char *kwnames[] = {
16806 (char *) "cal", NULL
16807 };
16808
16809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16810 if (obj0) {
16811 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16812 if (PyErr_Occurred()) SWIG_fail;
16813 }
16814 {
16815 PyThreadState* __tstate = wxPyBeginAllowThreads();
16816 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16817
16818 wxPyEndAllowThreads(__tstate);
16819 if (PyErr_Occurred()) SWIG_fail;
16820 }
16821 resultobj = SWIG_FromInt((int)result);
16822 return resultobj;
16823 fail:
16824 return NULL;
16825 }
16826
16827
16828 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
16829 PyObject *resultobj;
16830 int arg1 = (int) wxDateTime::Inv_Year ;
16831 int arg2 = (int) wxDateTime::Gregorian ;
16832 bool result;
16833 PyObject * obj0 = 0 ;
16834 PyObject * obj1 = 0 ;
16835 char *kwnames[] = {
16836 (char *) "year",(char *) "cal", NULL
16837 };
16838
16839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16840 if (obj0) {
16841 arg1 = (int) SWIG_AsInt(obj0);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 if (obj1) {
16845 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16851
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 {
16856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16857 }
16858 return resultobj;
16859 fail:
16860 return NULL;
16861 }
16862
16863
16864 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
16865 PyObject *resultobj;
16866 int arg1 = (int) wxDateTime::Inv_Year ;
16867 int result;
16868 PyObject * obj0 = 0 ;
16869 char *kwnames[] = {
16870 (char *) "year", NULL
16871 };
16872
16873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16874 if (obj0) {
16875 arg1 = (int) SWIG_AsInt(obj0);
16876 if (PyErr_Occurred()) SWIG_fail;
16877 }
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
16880 result = (int)wxDateTime::GetCentury(arg1);
16881
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 resultobj = SWIG_FromInt((int)result);
16886 return resultobj;
16887 fail:
16888 return NULL;
16889 }
16890
16891
16892 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
16893 PyObject *resultobj;
16894 int arg1 ;
16895 int arg2 = (int) wxDateTime::Gregorian ;
16896 int result;
16897 PyObject * obj0 = 0 ;
16898 PyObject * obj1 = 0 ;
16899 char *kwnames[] = {
16900 (char *) "year",(char *) "cal", NULL
16901 };
16902
16903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16904 arg1 = (int) SWIG_AsInt(obj0);
16905 if (PyErr_Occurred()) SWIG_fail;
16906 if (obj1) {
16907 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16908 if (PyErr_Occurred()) SWIG_fail;
16909 }
16910 {
16911 PyThreadState* __tstate = wxPyBeginAllowThreads();
16912 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16913
16914 wxPyEndAllowThreads(__tstate);
16915 if (PyErr_Occurred()) SWIG_fail;
16916 }
16917 resultobj = SWIG_FromInt((int)result);
16918 return resultobj;
16919 fail:
16920 return NULL;
16921 }
16922
16923
16924 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
16925 PyObject *resultobj;
16926 int arg1 ;
16927 int arg2 = (int) wxDateTime::Inv_Year ;
16928 int arg3 = (int) wxDateTime::Gregorian ;
16929 int result;
16930 PyObject * obj0 = 0 ;
16931 PyObject * obj1 = 0 ;
16932 PyObject * obj2 = 0 ;
16933 char *kwnames[] = {
16934 (char *) "month",(char *) "year",(char *) "cal", NULL
16935 };
16936
16937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16938 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16939 if (PyErr_Occurred()) SWIG_fail;
16940 if (obj1) {
16941 arg2 = (int) SWIG_AsInt(obj1);
16942 if (PyErr_Occurred()) SWIG_fail;
16943 }
16944 if (obj2) {
16945 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16946 if (PyErr_Occurred()) SWIG_fail;
16947 }
16948 {
16949 PyThreadState* __tstate = wxPyBeginAllowThreads();
16950 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16951
16952 wxPyEndAllowThreads(__tstate);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 }
16955 resultobj = SWIG_FromInt((int)result);
16956 return resultobj;
16957 fail:
16958 return NULL;
16959 }
16960
16961
16962 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
16963 PyObject *resultobj;
16964 int arg1 ;
16965 int arg2 = (int) wxDateTime::Name_Full ;
16966 wxString result;
16967 PyObject * obj0 = 0 ;
16968 PyObject * obj1 = 0 ;
16969 char *kwnames[] = {
16970 (char *) "month",(char *) "flags", NULL
16971 };
16972
16973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16974 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16975 if (PyErr_Occurred()) SWIG_fail;
16976 if (obj1) {
16977 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16983
16984 wxPyEndAllowThreads(__tstate);
16985 if (PyErr_Occurred()) SWIG_fail;
16986 }
16987 {
16988 #if wxUSE_UNICODE
16989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16990 #else
16991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16992 #endif
16993 }
16994 return resultobj;
16995 fail:
16996 return NULL;
16997 }
16998
16999
17000 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
17001 PyObject *resultobj;
17002 int arg1 ;
17003 int arg2 = (int) wxDateTime::Name_Full ;
17004 wxString result;
17005 PyObject * obj0 = 0 ;
17006 PyObject * obj1 = 0 ;
17007 char *kwnames[] = {
17008 (char *) "weekday",(char *) "flags", NULL
17009 };
17010
17011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17012 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 if (obj1) {
17015 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17016 if (PyErr_Occurred()) SWIG_fail;
17017 }
17018 {
17019 PyThreadState* __tstate = wxPyBeginAllowThreads();
17020 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17021
17022 wxPyEndAllowThreads(__tstate);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 }
17025 {
17026 #if wxUSE_UNICODE
17027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17028 #else
17029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17030 #endif
17031 }
17032 return resultobj;
17033 fail:
17034 return NULL;
17035 }
17036
17037
17038 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
17039 PyObject *resultobj;
17040 wxString *arg1 = (wxString *) 0 ;
17041 wxString *arg2 = (wxString *) 0 ;
17042 bool temp1 = False ;
17043 bool temp2 = False ;
17044 PyObject * obj0 = 0 ;
17045 PyObject * obj1 = 0 ;
17046 char *kwnames[] = {
17047 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17048 };
17049
17050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17051 {
17052 arg1 = wxString_in_helper(obj0);
17053 if (arg1 == NULL) SWIG_fail;
17054 temp1 = True;
17055 }
17056 {
17057 arg2 = wxString_in_helper(obj1);
17058 if (arg2 == NULL) SWIG_fail;
17059 temp2 = True;
17060 }
17061 {
17062 PyThreadState* __tstate = wxPyBeginAllowThreads();
17063 wxDateTime::GetAmPmStrings(arg1,arg2);
17064
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 Py_INCREF(Py_None); resultobj = Py_None;
17069 {
17070 if (temp1)
17071 delete arg1;
17072 }
17073 {
17074 if (temp2)
17075 delete arg2;
17076 }
17077 return resultobj;
17078 fail:
17079 {
17080 if (temp1)
17081 delete arg1;
17082 }
17083 {
17084 if (temp2)
17085 delete arg2;
17086 }
17087 return NULL;
17088 }
17089
17090
17091 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
17092 PyObject *resultobj;
17093 int arg1 = (int) wxDateTime::Inv_Year ;
17094 int arg2 = (int) wxDateTime::Country_Default ;
17095 bool result;
17096 PyObject * obj0 = 0 ;
17097 PyObject * obj1 = 0 ;
17098 char *kwnames[] = {
17099 (char *) "year",(char *) "country", NULL
17100 };
17101
17102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17103 if (obj0) {
17104 arg1 = (int) SWIG_AsInt(obj0);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 }
17107 if (obj1) {
17108 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
17111 {
17112 PyThreadState* __tstate = wxPyBeginAllowThreads();
17113 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17114
17115 wxPyEndAllowThreads(__tstate);
17116 if (PyErr_Occurred()) SWIG_fail;
17117 }
17118 {
17119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17120 }
17121 return resultobj;
17122 fail:
17123 return NULL;
17124 }
17125
17126
17127 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
17128 PyObject *resultobj;
17129 int arg1 = (int) wxDateTime::Inv_Year ;
17130 int arg2 = (int) wxDateTime::Country_Default ;
17131 wxDateTime result;
17132 PyObject * obj0 = 0 ;
17133 PyObject * obj1 = 0 ;
17134 char *kwnames[] = {
17135 (char *) "year",(char *) "country", NULL
17136 };
17137
17138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17139 if (obj0) {
17140 arg1 = (int) SWIG_AsInt(obj0);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 if (obj1) {
17144 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17145 if (PyErr_Occurred()) SWIG_fail;
17146 }
17147 {
17148 PyThreadState* __tstate = wxPyBeginAllowThreads();
17149 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17150
17151 wxPyEndAllowThreads(__tstate);
17152 if (PyErr_Occurred()) SWIG_fail;
17153 }
17154 {
17155 wxDateTime * resultptr;
17156 resultptr = new wxDateTime((wxDateTime &) result);
17157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17158 }
17159 return resultobj;
17160 fail:
17161 return NULL;
17162 }
17163
17164
17165 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
17166 PyObject *resultobj;
17167 int arg1 = (int) wxDateTime::Inv_Year ;
17168 int arg2 = (int) wxDateTime::Country_Default ;
17169 wxDateTime result;
17170 PyObject * obj0 = 0 ;
17171 PyObject * obj1 = 0 ;
17172 char *kwnames[] = {
17173 (char *) "year",(char *) "country", NULL
17174 };
17175
17176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17177 if (obj0) {
17178 arg1 = (int) SWIG_AsInt(obj0);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 if (obj1) {
17182 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 {
17186 PyThreadState* __tstate = wxPyBeginAllowThreads();
17187 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17188
17189 wxPyEndAllowThreads(__tstate);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
17192 {
17193 wxDateTime * resultptr;
17194 resultptr = new wxDateTime((wxDateTime &) result);
17195 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17196 }
17197 return resultobj;
17198 fail:
17199 return NULL;
17200 }
17201
17202
17203 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj;
17205 wxDateTime result;
17206 char *kwnames[] = {
17207 NULL
17208 };
17209
17210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17211 {
17212 PyThreadState* __tstate = wxPyBeginAllowThreads();
17213 result = wxDateTime::Now();
17214
17215 wxPyEndAllowThreads(__tstate);
17216 if (PyErr_Occurred()) SWIG_fail;
17217 }
17218 {
17219 wxDateTime * resultptr;
17220 resultptr = new wxDateTime((wxDateTime &) result);
17221 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17222 }
17223 return resultobj;
17224 fail:
17225 return NULL;
17226 }
17227
17228
17229 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
17230 PyObject *resultobj;
17231 wxDateTime result;
17232 char *kwnames[] = {
17233 NULL
17234 };
17235
17236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = wxDateTime::UNow();
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 {
17245 wxDateTime * resultptr;
17246 resultptr = new wxDateTime((wxDateTime &) result);
17247 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17248 }
17249 return resultobj;
17250 fail:
17251 return NULL;
17252 }
17253
17254
17255 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
17256 PyObject *resultobj;
17257 wxDateTime result;
17258 char *kwnames[] = {
17259 NULL
17260 };
17261
17262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17263 {
17264 PyThreadState* __tstate = wxPyBeginAllowThreads();
17265 result = wxDateTime::Today();
17266
17267 wxPyEndAllowThreads(__tstate);
17268 if (PyErr_Occurred()) SWIG_fail;
17269 }
17270 {
17271 wxDateTime * resultptr;
17272 resultptr = new wxDateTime((wxDateTime &) result);
17273 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17274 }
17275 return resultobj;
17276 fail:
17277 return NULL;
17278 }
17279
17280
17281 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17282 PyObject *resultobj;
17283 wxDateTime *result;
17284 char *kwnames[] = {
17285 NULL
17286 };
17287
17288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17289 {
17290 PyThreadState* __tstate = wxPyBeginAllowThreads();
17291 result = (wxDateTime *)new wxDateTime();
17292
17293 wxPyEndAllowThreads(__tstate);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17297 return resultobj;
17298 fail:
17299 return NULL;
17300 }
17301
17302
17303 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17304 PyObject *resultobj;
17305 time_t arg1 ;
17306 wxDateTime *result;
17307 PyObject * obj0 = 0 ;
17308 char *kwnames[] = {
17309 (char *) "timet", NULL
17310 };
17311
17312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17313 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 result = (wxDateTime *)new wxDateTime(arg1);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17323 return resultobj;
17324 fail:
17325 return NULL;
17326 }
17327
17328
17329 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17330 PyObject *resultobj;
17331 double arg1 ;
17332 wxDateTime *result;
17333 PyObject * obj0 = 0 ;
17334 char *kwnames[] = {
17335 (char *) "jdn", NULL
17336 };
17337
17338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17339 arg1 = (double) SWIG_AsDouble(obj0);
17340 if (PyErr_Occurred()) SWIG_fail;
17341 {
17342 PyThreadState* __tstate = wxPyBeginAllowThreads();
17343 result = (wxDateTime *)new wxDateTime(arg1);
17344
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17349 return resultobj;
17350 fail:
17351 return NULL;
17352 }
17353
17354
17355 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17356 PyObject *resultobj;
17357 int arg1 ;
17358 int arg2 = (int) 0 ;
17359 int arg3 = (int) 0 ;
17360 int arg4 = (int) 0 ;
17361 wxDateTime *result;
17362 PyObject * obj0 = 0 ;
17363 PyObject * obj1 = 0 ;
17364 PyObject * obj2 = 0 ;
17365 PyObject * obj3 = 0 ;
17366 char *kwnames[] = {
17367 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17368 };
17369
17370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17371 arg1 = (int) SWIG_AsInt(obj0);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 if (obj1) {
17374 arg2 = (int) SWIG_AsInt(obj1);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 }
17377 if (obj2) {
17378 arg3 = (int) SWIG_AsInt(obj2);
17379 if (PyErr_Occurred()) SWIG_fail;
17380 }
17381 if (obj3) {
17382 arg4 = (int) SWIG_AsInt(obj3);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17388
17389 wxPyEndAllowThreads(__tstate);
17390 if (PyErr_Occurred()) SWIG_fail;
17391 }
17392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17393 return resultobj;
17394 fail:
17395 return NULL;
17396 }
17397
17398
17399 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
17400 PyObject *resultobj;
17401 int arg1 ;
17402 int arg2 = (int) wxDateTime::Inv_Month ;
17403 int arg3 = (int) wxDateTime::Inv_Year ;
17404 int arg4 = (int) 0 ;
17405 int arg5 = (int) 0 ;
17406 int arg6 = (int) 0 ;
17407 int arg7 = (int) 0 ;
17408 wxDateTime *result;
17409 PyObject * obj0 = 0 ;
17410 PyObject * obj1 = 0 ;
17411 PyObject * obj2 = 0 ;
17412 PyObject * obj3 = 0 ;
17413 PyObject * obj4 = 0 ;
17414 PyObject * obj5 = 0 ;
17415 PyObject * obj6 = 0 ;
17416 char *kwnames[] = {
17417 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17418 };
17419
17420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17421 arg1 = (int) SWIG_AsInt(obj0);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 if (obj1) {
17424 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17425 if (PyErr_Occurred()) SWIG_fail;
17426 }
17427 if (obj2) {
17428 arg3 = (int) SWIG_AsInt(obj2);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 }
17431 if (obj3) {
17432 arg4 = (int) SWIG_AsInt(obj3);
17433 if (PyErr_Occurred()) SWIG_fail;
17434 }
17435 if (obj4) {
17436 arg5 = (int) SWIG_AsInt(obj4);
17437 if (PyErr_Occurred()) SWIG_fail;
17438 }
17439 if (obj5) {
17440 arg6 = (int) SWIG_AsInt(obj5);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 if (obj6) {
17444 arg7 = (int) SWIG_AsInt(obj6);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 {
17448 PyThreadState* __tstate = wxPyBeginAllowThreads();
17449 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17450
17451 wxPyEndAllowThreads(__tstate);
17452 if (PyErr_Occurred()) SWIG_fail;
17453 }
17454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17455 return resultobj;
17456 fail:
17457 return NULL;
17458 }
17459
17460
17461 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17462 PyObject *resultobj;
17463 wxDateTime *arg1 = (wxDateTime *) 0 ;
17464 PyObject * obj0 = 0 ;
17465 char *kwnames[] = {
17466 (char *) "self", NULL
17467 };
17468
17469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17472 {
17473 PyThreadState* __tstate = wxPyBeginAllowThreads();
17474 delete arg1;
17475
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 Py_INCREF(Py_None); resultobj = Py_None;
17480 return resultobj;
17481 fail:
17482 return NULL;
17483 }
17484
17485
17486 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj;
17488 wxDateTime *arg1 = (wxDateTime *) 0 ;
17489 wxDateTime *result;
17490 PyObject * obj0 = 0 ;
17491 char *kwnames[] = {
17492 (char *) "self", NULL
17493 };
17494
17495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 {
17501 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17502 result = (wxDateTime *) &_result_ref;
17503 }
17504
17505 wxPyEndAllowThreads(__tstate);
17506 if (PyErr_Occurred()) SWIG_fail;
17507 }
17508 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17509 return resultobj;
17510 fail:
17511 return NULL;
17512 }
17513
17514
17515 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17516 PyObject *resultobj;
17517 wxDateTime *arg1 = (wxDateTime *) 0 ;
17518 time_t arg2 ;
17519 wxDateTime *result;
17520 PyObject * obj0 = 0 ;
17521 PyObject * obj1 = 0 ;
17522 char *kwnames[] = {
17523 (char *) "self",(char *) "timet", NULL
17524 };
17525
17526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17529 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 {
17534 wxDateTime &_result_ref = (arg1)->Set(arg2);
17535 result = (wxDateTime *) &_result_ref;
17536 }
17537
17538 wxPyEndAllowThreads(__tstate);
17539 if (PyErr_Occurred()) SWIG_fail;
17540 }
17541 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17542 return resultobj;
17543 fail:
17544 return NULL;
17545 }
17546
17547
17548 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17549 PyObject *resultobj;
17550 wxDateTime *arg1 = (wxDateTime *) 0 ;
17551 double arg2 ;
17552 wxDateTime *result;
17553 PyObject * obj0 = 0 ;
17554 PyObject * obj1 = 0 ;
17555 char *kwnames[] = {
17556 (char *) "self",(char *) "jdn", NULL
17557 };
17558
17559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17562 arg2 = (double) SWIG_AsDouble(obj1);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 {
17565 PyThreadState* __tstate = wxPyBeginAllowThreads();
17566 {
17567 wxDateTime &_result_ref = (arg1)->Set(arg2);
17568 result = (wxDateTime *) &_result_ref;
17569 }
17570
17571 wxPyEndAllowThreads(__tstate);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17575 return resultobj;
17576 fail:
17577 return NULL;
17578 }
17579
17580
17581 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17582 PyObject *resultobj;
17583 wxDateTime *arg1 = (wxDateTime *) 0 ;
17584 int arg2 ;
17585 int arg3 = (int) 0 ;
17586 int arg4 = (int) 0 ;
17587 int arg5 = (int) 0 ;
17588 wxDateTime *result;
17589 PyObject * obj0 = 0 ;
17590 PyObject * obj1 = 0 ;
17591 PyObject * obj2 = 0 ;
17592 PyObject * obj3 = 0 ;
17593 PyObject * obj4 = 0 ;
17594 char *kwnames[] = {
17595 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17596 };
17597
17598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17601 arg2 = (int) SWIG_AsInt(obj1);
17602 if (PyErr_Occurred()) SWIG_fail;
17603 if (obj2) {
17604 arg3 = (int) SWIG_AsInt(obj2);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 }
17607 if (obj3) {
17608 arg4 = (int) SWIG_AsInt(obj3);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
17611 if (obj4) {
17612 arg5 = (int) SWIG_AsInt(obj4);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 {
17616 PyThreadState* __tstate = wxPyBeginAllowThreads();
17617 {
17618 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17619 result = (wxDateTime *) &_result_ref;
17620 }
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxDateTime *arg1 = (wxDateTime *) 0 ;
17635 int arg2 ;
17636 int arg3 = (int) wxDateTime::Inv_Month ;
17637 int arg4 = (int) wxDateTime::Inv_Year ;
17638 int arg5 = (int) 0 ;
17639 int arg6 = (int) 0 ;
17640 int arg7 = (int) 0 ;
17641 int arg8 = (int) 0 ;
17642 wxDateTime *result;
17643 PyObject * obj0 = 0 ;
17644 PyObject * obj1 = 0 ;
17645 PyObject * obj2 = 0 ;
17646 PyObject * obj3 = 0 ;
17647 PyObject * obj4 = 0 ;
17648 PyObject * obj5 = 0 ;
17649 PyObject * obj6 = 0 ;
17650 PyObject * obj7 = 0 ;
17651 char *kwnames[] = {
17652 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17653 };
17654
17655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17658 arg2 = (int) SWIG_AsInt(obj1);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 if (obj2) {
17661 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 }
17664 if (obj3) {
17665 arg4 = (int) SWIG_AsInt(obj3);
17666 if (PyErr_Occurred()) SWIG_fail;
17667 }
17668 if (obj4) {
17669 arg5 = (int) SWIG_AsInt(obj4);
17670 if (PyErr_Occurred()) SWIG_fail;
17671 }
17672 if (obj5) {
17673 arg6 = (int) SWIG_AsInt(obj5);
17674 if (PyErr_Occurred()) SWIG_fail;
17675 }
17676 if (obj6) {
17677 arg7 = (int) SWIG_AsInt(obj6);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 if (obj7) {
17681 arg8 = (int) SWIG_AsInt(obj7);
17682 if (PyErr_Occurred()) SWIG_fail;
17683 }
17684 {
17685 PyThreadState* __tstate = wxPyBeginAllowThreads();
17686 {
17687 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17688 result = (wxDateTime *) &_result_ref;
17689 }
17690
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17695 return resultobj;
17696 fail:
17697 return NULL;
17698 }
17699
17700
17701 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
17702 PyObject *resultobj;
17703 wxDateTime *arg1 = (wxDateTime *) 0 ;
17704 wxDateTime *result;
17705 PyObject * obj0 = 0 ;
17706 char *kwnames[] = {
17707 (char *) "self", NULL
17708 };
17709
17710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17713 {
17714 PyThreadState* __tstate = wxPyBeginAllowThreads();
17715 {
17716 wxDateTime &_result_ref = (arg1)->ResetTime();
17717 result = (wxDateTime *) &_result_ref;
17718 }
17719
17720 wxPyEndAllowThreads(__tstate);
17721 if (PyErr_Occurred()) SWIG_fail;
17722 }
17723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17724 return resultobj;
17725 fail:
17726 return NULL;
17727 }
17728
17729
17730 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
17731 PyObject *resultobj;
17732 wxDateTime *arg1 = (wxDateTime *) 0 ;
17733 int arg2 ;
17734 wxDateTime *result;
17735 PyObject * obj0 = 0 ;
17736 PyObject * obj1 = 0 ;
17737 char *kwnames[] = {
17738 (char *) "self",(char *) "year", NULL
17739 };
17740
17741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17744 arg2 = (int) SWIG_AsInt(obj1);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 {
17749 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17750 result = (wxDateTime *) &_result_ref;
17751 }
17752
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17757 return resultobj;
17758 fail:
17759 return NULL;
17760 }
17761
17762
17763 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17764 PyObject *resultobj;
17765 wxDateTime *arg1 = (wxDateTime *) 0 ;
17766 int arg2 ;
17767 wxDateTime *result;
17768 PyObject * obj0 = 0 ;
17769 PyObject * obj1 = 0 ;
17770 char *kwnames[] = {
17771 (char *) "self",(char *) "month", NULL
17772 };
17773
17774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17777 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17778 if (PyErr_Occurred()) SWIG_fail;
17779 {
17780 PyThreadState* __tstate = wxPyBeginAllowThreads();
17781 {
17782 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17783 result = (wxDateTime *) &_result_ref;
17784 }
17785
17786 wxPyEndAllowThreads(__tstate);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17790 return resultobj;
17791 fail:
17792 return NULL;
17793 }
17794
17795
17796 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
17797 PyObject *resultobj;
17798 wxDateTime *arg1 = (wxDateTime *) 0 ;
17799 int arg2 ;
17800 wxDateTime *result;
17801 PyObject * obj0 = 0 ;
17802 PyObject * obj1 = 0 ;
17803 char *kwnames[] = {
17804 (char *) "self",(char *) "day", NULL
17805 };
17806
17807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17810 arg2 = (int) SWIG_AsInt(obj1);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 {
17813 PyThreadState* __tstate = wxPyBeginAllowThreads();
17814 {
17815 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17816 result = (wxDateTime *) &_result_ref;
17817 }
17818
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17823 return resultobj;
17824 fail:
17825 return NULL;
17826 }
17827
17828
17829 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
17830 PyObject *resultobj;
17831 wxDateTime *arg1 = (wxDateTime *) 0 ;
17832 int arg2 ;
17833 wxDateTime *result;
17834 PyObject * obj0 = 0 ;
17835 PyObject * obj1 = 0 ;
17836 char *kwnames[] = {
17837 (char *) "self",(char *) "hour", NULL
17838 };
17839
17840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17843 arg2 = (int) SWIG_AsInt(obj1);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 {
17848 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17849 result = (wxDateTime *) &_result_ref;
17850 }
17851
17852 wxPyEndAllowThreads(__tstate);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 }
17855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17856 return resultobj;
17857 fail:
17858 return NULL;
17859 }
17860
17861
17862 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
17863 PyObject *resultobj;
17864 wxDateTime *arg1 = (wxDateTime *) 0 ;
17865 int arg2 ;
17866 wxDateTime *result;
17867 PyObject * obj0 = 0 ;
17868 PyObject * obj1 = 0 ;
17869 char *kwnames[] = {
17870 (char *) "self",(char *) "minute", NULL
17871 };
17872
17873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17876 arg2 = (int) SWIG_AsInt(obj1);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 {
17881 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17882 result = (wxDateTime *) &_result_ref;
17883 }
17884
17885 wxPyEndAllowThreads(__tstate);
17886 if (PyErr_Occurred()) SWIG_fail;
17887 }
17888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17889 return resultobj;
17890 fail:
17891 return NULL;
17892 }
17893
17894
17895 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
17896 PyObject *resultobj;
17897 wxDateTime *arg1 = (wxDateTime *) 0 ;
17898 int arg2 ;
17899 wxDateTime *result;
17900 PyObject * obj0 = 0 ;
17901 PyObject * obj1 = 0 ;
17902 char *kwnames[] = {
17903 (char *) "self",(char *) "second", NULL
17904 };
17905
17906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17909 arg2 = (int) SWIG_AsInt(obj1);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 {
17912 PyThreadState* __tstate = wxPyBeginAllowThreads();
17913 {
17914 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17915 result = (wxDateTime *) &_result_ref;
17916 }
17917
17918 wxPyEndAllowThreads(__tstate);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17922 return resultobj;
17923 fail:
17924 return NULL;
17925 }
17926
17927
17928 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
17929 PyObject *resultobj;
17930 wxDateTime *arg1 = (wxDateTime *) 0 ;
17931 int arg2 ;
17932 wxDateTime *result;
17933 PyObject * obj0 = 0 ;
17934 PyObject * obj1 = 0 ;
17935 char *kwnames[] = {
17936 (char *) "self",(char *) "millisecond", NULL
17937 };
17938
17939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17942 arg2 = (int) SWIG_AsInt(obj1);
17943 if (PyErr_Occurred()) SWIG_fail;
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 {
17947 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17948 result = (wxDateTime *) &_result_ref;
17949 }
17950
17951 wxPyEndAllowThreads(__tstate);
17952 if (PyErr_Occurred()) SWIG_fail;
17953 }
17954 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17955 return resultobj;
17956 fail:
17957 return NULL;
17958 }
17959
17960
17961 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
17962 PyObject *resultobj;
17963 wxDateTime *arg1 = (wxDateTime *) 0 ;
17964 int arg2 ;
17965 int arg3 = (int) wxDateTime::Monday_First ;
17966 wxDateTime *result;
17967 PyObject * obj0 = 0 ;
17968 PyObject * obj1 = 0 ;
17969 PyObject * obj2 = 0 ;
17970 char *kwnames[] = {
17971 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17972 };
17973
17974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17977 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17978 if (PyErr_Occurred()) SWIG_fail;
17979 if (obj2) {
17980 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 {
17984 PyThreadState* __tstate = wxPyBeginAllowThreads();
17985 {
17986 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17987 result = (wxDateTime *) &_result_ref;
17988 }
17989
17990 wxPyEndAllowThreads(__tstate);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 }
17993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17994 return resultobj;
17995 fail:
17996 return NULL;
17997 }
17998
17999
18000 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18001 PyObject *resultobj;
18002 wxDateTime *arg1 = (wxDateTime *) 0 ;
18003 int arg2 ;
18004 int arg3 = (int) wxDateTime::Monday_First ;
18005 wxDateTime result;
18006 PyObject * obj0 = 0 ;
18007 PyObject * obj1 = 0 ;
18008 PyObject * obj2 = 0 ;
18009 char *kwnames[] = {
18010 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18011 };
18012
18013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18016 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 if (obj2) {
18019 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 {
18023 PyThreadState* __tstate = wxPyBeginAllowThreads();
18024 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18025
18026 wxPyEndAllowThreads(__tstate);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 }
18029 {
18030 wxDateTime * resultptr;
18031 resultptr = new wxDateTime((wxDateTime &) result);
18032 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18033 }
18034 return resultobj;
18035 fail:
18036 return NULL;
18037 }
18038
18039
18040 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18041 PyObject *resultobj;
18042 wxDateTime *arg1 = (wxDateTime *) 0 ;
18043 int arg2 ;
18044 wxDateTime *result;
18045 PyObject * obj0 = 0 ;
18046 PyObject * obj1 = 0 ;
18047 char *kwnames[] = {
18048 (char *) "self",(char *) "weekday", NULL
18049 };
18050
18051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18054 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 {
18057 PyThreadState* __tstate = wxPyBeginAllowThreads();
18058 {
18059 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18060 result = (wxDateTime *) &_result_ref;
18061 }
18062
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18067 return resultobj;
18068 fail:
18069 return NULL;
18070 }
18071
18072
18073 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18074 PyObject *resultobj;
18075 wxDateTime *arg1 = (wxDateTime *) 0 ;
18076 int arg2 ;
18077 wxDateTime result;
18078 PyObject * obj0 = 0 ;
18079 PyObject * obj1 = 0 ;
18080 char *kwnames[] = {
18081 (char *) "self",(char *) "weekday", NULL
18082 };
18083
18084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18087 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 {
18090 PyThreadState* __tstate = wxPyBeginAllowThreads();
18091 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18092
18093 wxPyEndAllowThreads(__tstate);
18094 if (PyErr_Occurred()) SWIG_fail;
18095 }
18096 {
18097 wxDateTime * resultptr;
18098 resultptr = new wxDateTime((wxDateTime &) result);
18099 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18100 }
18101 return resultobj;
18102 fail:
18103 return NULL;
18104 }
18105
18106
18107 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18108 PyObject *resultobj;
18109 wxDateTime *arg1 = (wxDateTime *) 0 ;
18110 int arg2 ;
18111 wxDateTime *result;
18112 PyObject * obj0 = 0 ;
18113 PyObject * obj1 = 0 ;
18114 char *kwnames[] = {
18115 (char *) "self",(char *) "weekday", NULL
18116 };
18117
18118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18121 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 {
18124 PyThreadState* __tstate = wxPyBeginAllowThreads();
18125 {
18126 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18127 result = (wxDateTime *) &_result_ref;
18128 }
18129
18130 wxPyEndAllowThreads(__tstate);
18131 if (PyErr_Occurred()) SWIG_fail;
18132 }
18133 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18134 return resultobj;
18135 fail:
18136 return NULL;
18137 }
18138
18139
18140 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18141 PyObject *resultobj;
18142 wxDateTime *arg1 = (wxDateTime *) 0 ;
18143 int arg2 ;
18144 wxDateTime result;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18147 char *kwnames[] = {
18148 (char *) "self",(char *) "weekday", NULL
18149 };
18150
18151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18154 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18155 if (PyErr_Occurred()) SWIG_fail;
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18159
18160 wxPyEndAllowThreads(__tstate);
18161 if (PyErr_Occurred()) SWIG_fail;
18162 }
18163 {
18164 wxDateTime * resultptr;
18165 resultptr = new wxDateTime((wxDateTime &) result);
18166 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18167 }
18168 return resultobj;
18169 fail:
18170 return NULL;
18171 }
18172
18173
18174 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18175 PyObject *resultobj;
18176 wxDateTime *arg1 = (wxDateTime *) 0 ;
18177 int arg2 ;
18178 int arg3 = (int) 1 ;
18179 int arg4 = (int) wxDateTime::Inv_Month ;
18180 int arg5 = (int) wxDateTime::Inv_Year ;
18181 bool result;
18182 PyObject * obj0 = 0 ;
18183 PyObject * obj1 = 0 ;
18184 PyObject * obj2 = 0 ;
18185 PyObject * obj3 = 0 ;
18186 PyObject * obj4 = 0 ;
18187 char *kwnames[] = {
18188 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18189 };
18190
18191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18194 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18195 if (PyErr_Occurred()) SWIG_fail;
18196 if (obj2) {
18197 arg3 = (int) SWIG_AsInt(obj2);
18198 if (PyErr_Occurred()) SWIG_fail;
18199 }
18200 if (obj3) {
18201 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18202 if (PyErr_Occurred()) SWIG_fail;
18203 }
18204 if (obj4) {
18205 arg5 = (int) SWIG_AsInt(obj4);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18211
18212 wxPyEndAllowThreads(__tstate);
18213 if (PyErr_Occurred()) SWIG_fail;
18214 }
18215 {
18216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18217 }
18218 return resultobj;
18219 fail:
18220 return NULL;
18221 }
18222
18223
18224 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18225 PyObject *resultobj;
18226 wxDateTime *arg1 = (wxDateTime *) 0 ;
18227 int arg2 ;
18228 int arg3 = (int) wxDateTime::Inv_Month ;
18229 int arg4 = (int) wxDateTime::Inv_Year ;
18230 bool result;
18231 PyObject * obj0 = 0 ;
18232 PyObject * obj1 = 0 ;
18233 PyObject * obj2 = 0 ;
18234 PyObject * obj3 = 0 ;
18235 char *kwnames[] = {
18236 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18237 };
18238
18239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18242 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 if (obj2) {
18245 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 if (obj3) {
18249 arg4 = (int) SWIG_AsInt(obj3);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18255
18256 wxPyEndAllowThreads(__tstate);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 }
18259 {
18260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18261 }
18262 return resultobj;
18263 fail:
18264 return NULL;
18265 }
18266
18267
18268 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18269 PyObject *resultobj;
18270 wxDateTime *arg1 = (wxDateTime *) 0 ;
18271 int arg2 ;
18272 int arg3 = (int) wxDateTime::Inv_Month ;
18273 int arg4 = (int) wxDateTime::Inv_Year ;
18274 wxDateTime result;
18275 PyObject * obj0 = 0 ;
18276 PyObject * obj1 = 0 ;
18277 PyObject * obj2 = 0 ;
18278 PyObject * obj3 = 0 ;
18279 char *kwnames[] = {
18280 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18281 };
18282
18283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18286 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 if (obj2) {
18289 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18290 if (PyErr_Occurred()) SWIG_fail;
18291 }
18292 if (obj3) {
18293 arg4 = (int) SWIG_AsInt(obj3);
18294 if (PyErr_Occurred()) SWIG_fail;
18295 }
18296 {
18297 PyThreadState* __tstate = wxPyBeginAllowThreads();
18298 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18299
18300 wxPyEndAllowThreads(__tstate);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 }
18303 {
18304 wxDateTime * resultptr;
18305 resultptr = new wxDateTime((wxDateTime &) result);
18306 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18307 }
18308 return resultobj;
18309 fail:
18310 return NULL;
18311 }
18312
18313
18314 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18315 PyObject *resultobj;
18316 wxDateTime *arg1 = (wxDateTime *) 0 ;
18317 int arg2 ;
18318 int arg3 = (int) wxDateTime::Mon ;
18319 int arg4 = (int) wxDateTime::Monday_First ;
18320 bool result;
18321 PyObject * obj0 = 0 ;
18322 PyObject * obj1 = 0 ;
18323 PyObject * obj2 = 0 ;
18324 PyObject * obj3 = 0 ;
18325 char *kwnames[] = {
18326 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18327 };
18328
18329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18332 arg2 = (int) SWIG_AsInt(obj1);
18333 if (PyErr_Occurred()) SWIG_fail;
18334 if (obj2) {
18335 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 if (obj3) {
18339 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18340 if (PyErr_Occurred()) SWIG_fail;
18341 }
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18345
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 {
18350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18351 }
18352 return resultobj;
18353 fail:
18354 return NULL;
18355 }
18356
18357
18358 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18359 PyObject *resultobj;
18360 wxDateTime *arg1 = (wxDateTime *) 0 ;
18361 int arg2 ;
18362 int arg3 = (int) wxDateTime::Mon ;
18363 int arg4 = (int) wxDateTime::Monday_First ;
18364 wxDateTime result;
18365 PyObject * obj0 = 0 ;
18366 PyObject * obj1 = 0 ;
18367 PyObject * obj2 = 0 ;
18368 PyObject * obj3 = 0 ;
18369 char *kwnames[] = {
18370 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18371 };
18372
18373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18376 arg2 = (int) SWIG_AsInt(obj1);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 if (obj2) {
18379 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 if (obj3) {
18383 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
18388 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18389
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 {
18394 wxDateTime * resultptr;
18395 resultptr = new wxDateTime((wxDateTime &) result);
18396 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18397 }
18398 return resultobj;
18399 fail:
18400 return NULL;
18401 }
18402
18403
18404 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18405 PyObject *resultobj;
18406 wxDateTime *arg1 = (wxDateTime *) 0 ;
18407 int arg2 = (int) wxDateTime::Inv_Month ;
18408 int arg3 = (int) wxDateTime::Inv_Year ;
18409 wxDateTime *result;
18410 PyObject * obj0 = 0 ;
18411 PyObject * obj1 = 0 ;
18412 PyObject * obj2 = 0 ;
18413 char *kwnames[] = {
18414 (char *) "self",(char *) "month",(char *) "year", NULL
18415 };
18416
18417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18420 if (obj1) {
18421 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 }
18424 if (obj2) {
18425 arg3 = (int) SWIG_AsInt(obj2);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 {
18429 PyThreadState* __tstate = wxPyBeginAllowThreads();
18430 {
18431 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18432 result = (wxDateTime *) &_result_ref;
18433 }
18434
18435 wxPyEndAllowThreads(__tstate);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18439 return resultobj;
18440 fail:
18441 return NULL;
18442 }
18443
18444
18445 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18446 PyObject *resultobj;
18447 wxDateTime *arg1 = (wxDateTime *) 0 ;
18448 int arg2 = (int) wxDateTime::Inv_Month ;
18449 int arg3 = (int) wxDateTime::Inv_Year ;
18450 wxDateTime result;
18451 PyObject * obj0 = 0 ;
18452 PyObject * obj1 = 0 ;
18453 PyObject * obj2 = 0 ;
18454 char *kwnames[] = {
18455 (char *) "self",(char *) "month",(char *) "year", NULL
18456 };
18457
18458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18461 if (obj1) {
18462 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 if (obj2) {
18466 arg3 = (int) SWIG_AsInt(obj2);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 {
18470 PyThreadState* __tstate = wxPyBeginAllowThreads();
18471 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18472
18473 wxPyEndAllowThreads(__tstate);
18474 if (PyErr_Occurred()) SWIG_fail;
18475 }
18476 {
18477 wxDateTime * resultptr;
18478 resultptr = new wxDateTime((wxDateTime &) result);
18479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18480 }
18481 return resultobj;
18482 fail:
18483 return NULL;
18484 }
18485
18486
18487 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18488 PyObject *resultobj;
18489 wxDateTime *arg1 = (wxDateTime *) 0 ;
18490 int arg2 ;
18491 wxDateTime *result;
18492 PyObject * obj0 = 0 ;
18493 PyObject * obj1 = 0 ;
18494 char *kwnames[] = {
18495 (char *) "self",(char *) "yday", NULL
18496 };
18497
18498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18501 arg2 = (int) SWIG_AsInt(obj1);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 {
18504 PyThreadState* __tstate = wxPyBeginAllowThreads();
18505 {
18506 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18507 result = (wxDateTime *) &_result_ref;
18508 }
18509
18510 wxPyEndAllowThreads(__tstate);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 }
18513 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18514 return resultobj;
18515 fail:
18516 return NULL;
18517 }
18518
18519
18520 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18521 PyObject *resultobj;
18522 wxDateTime *arg1 = (wxDateTime *) 0 ;
18523 int arg2 ;
18524 wxDateTime result;
18525 PyObject * obj0 = 0 ;
18526 PyObject * obj1 = 0 ;
18527 char *kwnames[] = {
18528 (char *) "self",(char *) "yday", NULL
18529 };
18530
18531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18534 arg2 = (int) SWIG_AsInt(obj1);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 {
18537 PyThreadState* __tstate = wxPyBeginAllowThreads();
18538 result = (arg1)->GetYearDay(arg2);
18539
18540 wxPyEndAllowThreads(__tstate);
18541 if (PyErr_Occurred()) SWIG_fail;
18542 }
18543 {
18544 wxDateTime * resultptr;
18545 resultptr = new wxDateTime((wxDateTime &) result);
18546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18547 }
18548 return resultobj;
18549 fail:
18550 return NULL;
18551 }
18552
18553
18554 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
18555 PyObject *resultobj;
18556 wxDateTime *arg1 = (wxDateTime *) 0 ;
18557 double result;
18558 PyObject * obj0 = 0 ;
18559 char *kwnames[] = {
18560 (char *) "self", NULL
18561 };
18562
18563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18566 {
18567 PyThreadState* __tstate = wxPyBeginAllowThreads();
18568 result = (double)(arg1)->GetJulianDayNumber();
18569
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 resultobj = SWIG_FromDouble((double)result);
18574 return resultobj;
18575 fail:
18576 return NULL;
18577 }
18578
18579
18580 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
18581 PyObject *resultobj;
18582 wxDateTime *arg1 = (wxDateTime *) 0 ;
18583 double result;
18584 PyObject * obj0 = 0 ;
18585 char *kwnames[] = {
18586 (char *) "self", NULL
18587 };
18588
18589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18592 {
18593 PyThreadState* __tstate = wxPyBeginAllowThreads();
18594 result = (double)(arg1)->GetJDN();
18595
18596 wxPyEndAllowThreads(__tstate);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 resultobj = SWIG_FromDouble((double)result);
18600 return resultobj;
18601 fail:
18602 return NULL;
18603 }
18604
18605
18606 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
18607 PyObject *resultobj;
18608 wxDateTime *arg1 = (wxDateTime *) 0 ;
18609 double result;
18610 PyObject * obj0 = 0 ;
18611 char *kwnames[] = {
18612 (char *) "self", NULL
18613 };
18614
18615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18618 {
18619 PyThreadState* __tstate = wxPyBeginAllowThreads();
18620 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18621
18622 wxPyEndAllowThreads(__tstate);
18623 if (PyErr_Occurred()) SWIG_fail;
18624 }
18625 resultobj = SWIG_FromDouble((double)result);
18626 return resultobj;
18627 fail:
18628 return NULL;
18629 }
18630
18631
18632 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
18633 PyObject *resultobj;
18634 wxDateTime *arg1 = (wxDateTime *) 0 ;
18635 double result;
18636 PyObject * obj0 = 0 ;
18637 char *kwnames[] = {
18638 (char *) "self", NULL
18639 };
18640
18641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18644 {
18645 PyThreadState* __tstate = wxPyBeginAllowThreads();
18646 result = (double)(arg1)->GetMJD();
18647
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 resultobj = SWIG_FromDouble((double)result);
18652 return resultobj;
18653 fail:
18654 return NULL;
18655 }
18656
18657
18658 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
18659 PyObject *resultobj;
18660 wxDateTime *arg1 = (wxDateTime *) 0 ;
18661 double result;
18662 PyObject * obj0 = 0 ;
18663 char *kwnames[] = {
18664 (char *) "self", NULL
18665 };
18666
18667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18670 {
18671 PyThreadState* __tstate = wxPyBeginAllowThreads();
18672 result = (double)(arg1)->GetRataDie();
18673
18674 wxPyEndAllowThreads(__tstate);
18675 if (PyErr_Occurred()) SWIG_fail;
18676 }
18677 resultobj = SWIG_FromDouble((double)result);
18678 return resultobj;
18679 fail:
18680 return NULL;
18681 }
18682
18683
18684 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
18685 PyObject *resultobj;
18686 wxDateTime *arg1 = (wxDateTime *) 0 ;
18687 wxDateTime::TimeZone *arg2 = 0 ;
18688 bool arg3 = (bool) False ;
18689 wxDateTime result;
18690 bool temp2 = False ;
18691 PyObject * obj0 = 0 ;
18692 PyObject * obj1 = 0 ;
18693 PyObject * obj2 = 0 ;
18694 char *kwnames[] = {
18695 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18696 };
18697
18698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18701 {
18702 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18703 temp2 = True;
18704 }
18705 if (obj2) {
18706 arg3 = (bool) SWIG_AsBool(obj2);
18707 if (PyErr_Occurred()) SWIG_fail;
18708 }
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18712
18713 wxPyEndAllowThreads(__tstate);
18714 if (PyErr_Occurred()) SWIG_fail;
18715 }
18716 {
18717 wxDateTime * resultptr;
18718 resultptr = new wxDateTime((wxDateTime &) result);
18719 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18720 }
18721 {
18722 if (temp2) delete arg2;
18723 }
18724 return resultobj;
18725 fail:
18726 {
18727 if (temp2) delete arg2;
18728 }
18729 return NULL;
18730 }
18731
18732
18733 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj;
18735 wxDateTime *arg1 = (wxDateTime *) 0 ;
18736 wxDateTime::TimeZone *arg2 = 0 ;
18737 bool arg3 = (bool) False ;
18738 wxDateTime *result;
18739 bool temp2 = False ;
18740 PyObject * obj0 = 0 ;
18741 PyObject * obj1 = 0 ;
18742 PyObject * obj2 = 0 ;
18743 char *kwnames[] = {
18744 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18750 {
18751 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18752 temp2 = True;
18753 }
18754 if (obj2) {
18755 arg3 = (bool) SWIG_AsBool(obj2);
18756 if (PyErr_Occurred()) SWIG_fail;
18757 }
18758 {
18759 PyThreadState* __tstate = wxPyBeginAllowThreads();
18760 {
18761 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18762 result = (wxDateTime *) &_result_ref;
18763 }
18764
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18769 {
18770 if (temp2) delete arg2;
18771 }
18772 return resultobj;
18773 fail:
18774 {
18775 if (temp2) delete arg2;
18776 }
18777 return NULL;
18778 }
18779
18780
18781 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj;
18783 wxDateTime *arg1 = (wxDateTime *) 0 ;
18784 bool arg2 = (bool) False ;
18785 wxDateTime result;
18786 PyObject * obj0 = 0 ;
18787 PyObject * obj1 = 0 ;
18788 char *kwnames[] = {
18789 (char *) "self",(char *) "noDST", NULL
18790 };
18791
18792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18795 if (obj1) {
18796 arg2 = (bool) SWIG_AsBool(obj1);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 {
18800 PyThreadState* __tstate = wxPyBeginAllowThreads();
18801 result = (arg1)->ToGMT(arg2);
18802
18803 wxPyEndAllowThreads(__tstate);
18804 if (PyErr_Occurred()) SWIG_fail;
18805 }
18806 {
18807 wxDateTime * resultptr;
18808 resultptr = new wxDateTime((wxDateTime &) result);
18809 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18810 }
18811 return resultobj;
18812 fail:
18813 return NULL;
18814 }
18815
18816
18817 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
18818 PyObject *resultobj;
18819 wxDateTime *arg1 = (wxDateTime *) 0 ;
18820 bool arg2 = (bool) False ;
18821 wxDateTime *result;
18822 PyObject * obj0 = 0 ;
18823 PyObject * obj1 = 0 ;
18824 char *kwnames[] = {
18825 (char *) "self",(char *) "noDST", NULL
18826 };
18827
18828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18831 if (obj1) {
18832 arg2 = (bool) SWIG_AsBool(obj1);
18833 if (PyErr_Occurred()) SWIG_fail;
18834 }
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 {
18838 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18839 result = (wxDateTime *) &_result_ref;
18840 }
18841
18842 wxPyEndAllowThreads(__tstate);
18843 if (PyErr_Occurred()) SWIG_fail;
18844 }
18845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18846 return resultobj;
18847 fail:
18848 return NULL;
18849 }
18850
18851
18852 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj;
18854 wxDateTime *arg1 = (wxDateTime *) 0 ;
18855 int arg2 = (int) wxDateTime::Country_Default ;
18856 int result;
18857 PyObject * obj0 = 0 ;
18858 PyObject * obj1 = 0 ;
18859 char *kwnames[] = {
18860 (char *) "self",(char *) "country", NULL
18861 };
18862
18863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18866 if (obj1) {
18867 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18868 if (PyErr_Occurred()) SWIG_fail;
18869 }
18870 {
18871 PyThreadState* __tstate = wxPyBeginAllowThreads();
18872 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18873
18874 wxPyEndAllowThreads(__tstate);
18875 if (PyErr_Occurred()) SWIG_fail;
18876 }
18877 resultobj = SWIG_FromInt((int)result);
18878 return resultobj;
18879 fail:
18880 return NULL;
18881 }
18882
18883
18884 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
18885 PyObject *resultobj;
18886 wxDateTime *arg1 = (wxDateTime *) 0 ;
18887 bool result;
18888 PyObject * obj0 = 0 ;
18889 char *kwnames[] = {
18890 (char *) "self", NULL
18891 };
18892
18893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18896 {
18897 PyThreadState* __tstate = wxPyBeginAllowThreads();
18898 result = (bool)((wxDateTime const *)arg1)->IsValid();
18899
18900 wxPyEndAllowThreads(__tstate);
18901 if (PyErr_Occurred()) SWIG_fail;
18902 }
18903 {
18904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18905 }
18906 return resultobj;
18907 fail:
18908 return NULL;
18909 }
18910
18911
18912 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
18913 PyObject *resultobj;
18914 wxDateTime *arg1 = (wxDateTime *) 0 ;
18915 time_t result;
18916 PyObject * obj0 = 0 ;
18917 char *kwnames[] = {
18918 (char *) "self", NULL
18919 };
18920
18921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18924 {
18925 PyThreadState* __tstate = wxPyBeginAllowThreads();
18926 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18927
18928 wxPyEndAllowThreads(__tstate);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18932 return resultobj;
18933 fail:
18934 return NULL;
18935 }
18936
18937
18938 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
18939 PyObject *resultobj;
18940 wxDateTime *arg1 = (wxDateTime *) 0 ;
18941 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18942 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18943 int result;
18944 bool temp2 = False ;
18945 PyObject * obj0 = 0 ;
18946 PyObject * obj1 = 0 ;
18947 char *kwnames[] = {
18948 (char *) "self",(char *) "tz", NULL
18949 };
18950
18951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18954 if (obj1) {
18955 {
18956 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18957 temp2 = True;
18958 }
18959 }
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18963
18964 wxPyEndAllowThreads(__tstate);
18965 if (PyErr_Occurred()) SWIG_fail;
18966 }
18967 resultobj = SWIG_FromInt((int)result);
18968 {
18969 if (temp2) delete arg2;
18970 }
18971 return resultobj;
18972 fail:
18973 {
18974 if (temp2) delete arg2;
18975 }
18976 return NULL;
18977 }
18978
18979
18980 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj;
18982 wxDateTime *arg1 = (wxDateTime *) 0 ;
18983 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18984 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18985 int result;
18986 bool temp2 = False ;
18987 PyObject * obj0 = 0 ;
18988 PyObject * obj1 = 0 ;
18989 char *kwnames[] = {
18990 (char *) "self",(char *) "tz", NULL
18991 };
18992
18993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18996 if (obj1) {
18997 {
18998 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18999 temp2 = True;
19000 }
19001 }
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19005
19006 wxPyEndAllowThreads(__tstate);
19007 if (PyErr_Occurred()) SWIG_fail;
19008 }
19009 resultobj = SWIG_FromInt((int)result);
19010 {
19011 if (temp2) delete arg2;
19012 }
19013 return resultobj;
19014 fail:
19015 {
19016 if (temp2) delete arg2;
19017 }
19018 return NULL;
19019 }
19020
19021
19022 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
19023 PyObject *resultobj;
19024 wxDateTime *arg1 = (wxDateTime *) 0 ;
19025 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19026 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19027 int result;
19028 bool temp2 = False ;
19029 PyObject * obj0 = 0 ;
19030 PyObject * obj1 = 0 ;
19031 char *kwnames[] = {
19032 (char *) "self",(char *) "tz", NULL
19033 };
19034
19035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19038 if (obj1) {
19039 {
19040 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19041 temp2 = True;
19042 }
19043 }
19044 {
19045 PyThreadState* __tstate = wxPyBeginAllowThreads();
19046 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19047
19048 wxPyEndAllowThreads(__tstate);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 }
19051 resultobj = SWIG_FromInt((int)result);
19052 {
19053 if (temp2) delete arg2;
19054 }
19055 return resultobj;
19056 fail:
19057 {
19058 if (temp2) delete arg2;
19059 }
19060 return NULL;
19061 }
19062
19063
19064 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj;
19066 wxDateTime *arg1 = (wxDateTime *) 0 ;
19067 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19068 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19069 int result;
19070 bool temp2 = False ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 char *kwnames[] = {
19074 (char *) "self",(char *) "tz", NULL
19075 };
19076
19077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19080 if (obj1) {
19081 {
19082 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19083 temp2 = True;
19084 }
19085 }
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19089
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 resultobj = SWIG_FromInt((int)result);
19094 {
19095 if (temp2) delete arg2;
19096 }
19097 return resultobj;
19098 fail:
19099 {
19100 if (temp2) delete arg2;
19101 }
19102 return NULL;
19103 }
19104
19105
19106 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj;
19108 wxDateTime *arg1 = (wxDateTime *) 0 ;
19109 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19110 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19111 int result;
19112 bool temp2 = False ;
19113 PyObject * obj0 = 0 ;
19114 PyObject * obj1 = 0 ;
19115 char *kwnames[] = {
19116 (char *) "self",(char *) "tz", NULL
19117 };
19118
19119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19122 if (obj1) {
19123 {
19124 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19125 temp2 = True;
19126 }
19127 }
19128 {
19129 PyThreadState* __tstate = wxPyBeginAllowThreads();
19130 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19131
19132 wxPyEndAllowThreads(__tstate);
19133 if (PyErr_Occurred()) SWIG_fail;
19134 }
19135 resultobj = SWIG_FromInt((int)result);
19136 {
19137 if (temp2) delete arg2;
19138 }
19139 return resultobj;
19140 fail:
19141 {
19142 if (temp2) delete arg2;
19143 }
19144 return NULL;
19145 }
19146
19147
19148 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
19149 PyObject *resultobj;
19150 wxDateTime *arg1 = (wxDateTime *) 0 ;
19151 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19152 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19153 int result;
19154 bool temp2 = False ;
19155 PyObject * obj0 = 0 ;
19156 PyObject * obj1 = 0 ;
19157 char *kwnames[] = {
19158 (char *) "self",(char *) "tz", NULL
19159 };
19160
19161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19164 if (obj1) {
19165 {
19166 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19167 temp2 = True;
19168 }
19169 }
19170 {
19171 PyThreadState* __tstate = wxPyBeginAllowThreads();
19172 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19173
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_FromInt((int)result);
19178 {
19179 if (temp2) delete arg2;
19180 }
19181 return resultobj;
19182 fail:
19183 {
19184 if (temp2) delete arg2;
19185 }
19186 return NULL;
19187 }
19188
19189
19190 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
19191 PyObject *resultobj;
19192 wxDateTime *arg1 = (wxDateTime *) 0 ;
19193 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19194 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19195 int result;
19196 bool temp2 = False ;
19197 PyObject * obj0 = 0 ;
19198 PyObject * obj1 = 0 ;
19199 char *kwnames[] = {
19200 (char *) "self",(char *) "tz", NULL
19201 };
19202
19203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19206 if (obj1) {
19207 {
19208 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19209 temp2 = True;
19210 }
19211 }
19212 {
19213 PyThreadState* __tstate = wxPyBeginAllowThreads();
19214 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19215
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
19219 resultobj = SWIG_FromInt((int)result);
19220 {
19221 if (temp2) delete arg2;
19222 }
19223 return resultobj;
19224 fail:
19225 {
19226 if (temp2) delete arg2;
19227 }
19228 return NULL;
19229 }
19230
19231
19232 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
19233 PyObject *resultobj;
19234 wxDateTime *arg1 = (wxDateTime *) 0 ;
19235 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19236 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19237 int result;
19238 bool temp2 = False ;
19239 PyObject * obj0 = 0 ;
19240 PyObject * obj1 = 0 ;
19241 char *kwnames[] = {
19242 (char *) "self",(char *) "tz", NULL
19243 };
19244
19245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19248 if (obj1) {
19249 {
19250 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19251 temp2 = True;
19252 }
19253 }
19254 {
19255 PyThreadState* __tstate = wxPyBeginAllowThreads();
19256 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19257
19258 wxPyEndAllowThreads(__tstate);
19259 if (PyErr_Occurred()) SWIG_fail;
19260 }
19261 resultobj = SWIG_FromInt((int)result);
19262 {
19263 if (temp2) delete arg2;
19264 }
19265 return resultobj;
19266 fail:
19267 {
19268 if (temp2) delete arg2;
19269 }
19270 return NULL;
19271 }
19272
19273
19274 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19275 PyObject *resultobj;
19276 wxDateTime *arg1 = (wxDateTime *) 0 ;
19277 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19278 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19279 int result;
19280 bool temp2 = False ;
19281 PyObject * obj0 = 0 ;
19282 PyObject * obj1 = 0 ;
19283 char *kwnames[] = {
19284 (char *) "self",(char *) "tz", NULL
19285 };
19286
19287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19290 if (obj1) {
19291 {
19292 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19293 temp2 = True;
19294 }
19295 }
19296 {
19297 PyThreadState* __tstate = wxPyBeginAllowThreads();
19298 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19299
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
19303 resultobj = SWIG_FromInt((int)result);
19304 {
19305 if (temp2) delete arg2;
19306 }
19307 return resultobj;
19308 fail:
19309 {
19310 if (temp2) delete arg2;
19311 }
19312 return NULL;
19313 }
19314
19315
19316 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19317 PyObject *resultobj;
19318 wxDateTime *arg1 = (wxDateTime *) 0 ;
19319 int arg2 = (int) wxDateTime::Monday_First ;
19320 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19321 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19322 int result;
19323 bool temp3 = False ;
19324 PyObject * obj0 = 0 ;
19325 PyObject * obj1 = 0 ;
19326 PyObject * obj2 = 0 ;
19327 char *kwnames[] = {
19328 (char *) "self",(char *) "flags",(char *) "tz", NULL
19329 };
19330
19331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19334 if (obj1) {
19335 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 if (obj2) {
19339 {
19340 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19341 temp3 = True;
19342 }
19343 }
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19347
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 resultobj = SWIG_FromInt((int)result);
19352 {
19353 if (temp3) delete arg3;
19354 }
19355 return resultobj;
19356 fail:
19357 {
19358 if (temp3) delete arg3;
19359 }
19360 return NULL;
19361 }
19362
19363
19364 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19365 PyObject *resultobj;
19366 wxDateTime *arg1 = (wxDateTime *) 0 ;
19367 int arg2 = (int) wxDateTime::Monday_First ;
19368 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19369 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19370 int result;
19371 bool temp3 = False ;
19372 PyObject * obj0 = 0 ;
19373 PyObject * obj1 = 0 ;
19374 PyObject * obj2 = 0 ;
19375 char *kwnames[] = {
19376 (char *) "self",(char *) "flags",(char *) "tz", NULL
19377 };
19378
19379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19382 if (obj1) {
19383 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 if (obj2) {
19387 {
19388 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19389 temp3 = True;
19390 }
19391 }
19392 {
19393 PyThreadState* __tstate = wxPyBeginAllowThreads();
19394 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19395
19396 wxPyEndAllowThreads(__tstate);
19397 if (PyErr_Occurred()) SWIG_fail;
19398 }
19399 resultobj = SWIG_FromInt((int)result);
19400 {
19401 if (temp3) delete arg3;
19402 }
19403 return resultobj;
19404 fail:
19405 {
19406 if (temp3) delete arg3;
19407 }
19408 return NULL;
19409 }
19410
19411
19412 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
19413 PyObject *resultobj;
19414 wxDateTime *arg1 = (wxDateTime *) 0 ;
19415 int arg2 = (int) wxDateTime::Country_Default ;
19416 bool result;
19417 PyObject * obj0 = 0 ;
19418 PyObject * obj1 = 0 ;
19419 char *kwnames[] = {
19420 (char *) "self",(char *) "country", NULL
19421 };
19422
19423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19426 if (obj1) {
19427 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19428 if (PyErr_Occurred()) SWIG_fail;
19429 }
19430 {
19431 PyThreadState* __tstate = wxPyBeginAllowThreads();
19432 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19433
19434 wxPyEndAllowThreads(__tstate);
19435 if (PyErr_Occurred()) SWIG_fail;
19436 }
19437 {
19438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19439 }
19440 return resultobj;
19441 fail:
19442 return NULL;
19443 }
19444
19445
19446 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
19447 PyObject *resultobj;
19448 wxDateTime *arg1 = (wxDateTime *) 0 ;
19449 wxDateTime *arg2 = 0 ;
19450 bool result;
19451 PyObject * obj0 = 0 ;
19452 PyObject * obj1 = 0 ;
19453 char *kwnames[] = {
19454 (char *) "self",(char *) "datetime", NULL
19455 };
19456
19457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19460 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19461 SWIG_POINTER_EXCEPTION | 0)) == -1)
19462 SWIG_fail;
19463 if (arg2 == NULL) {
19464 PyErr_SetString(PyExc_TypeError,"null reference");
19465 SWIG_fail;
19466 }
19467 {
19468 PyThreadState* __tstate = wxPyBeginAllowThreads();
19469 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19470
19471 wxPyEndAllowThreads(__tstate);
19472 if (PyErr_Occurred()) SWIG_fail;
19473 }
19474 {
19475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19476 }
19477 return resultobj;
19478 fail:
19479 return NULL;
19480 }
19481
19482
19483 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
19484 PyObject *resultobj;
19485 wxDateTime *arg1 = (wxDateTime *) 0 ;
19486 wxDateTime *arg2 = 0 ;
19487 bool result;
19488 PyObject * obj0 = 0 ;
19489 PyObject * obj1 = 0 ;
19490 char *kwnames[] = {
19491 (char *) "self",(char *) "datetime", NULL
19492 };
19493
19494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19497 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19498 SWIG_POINTER_EXCEPTION | 0)) == -1)
19499 SWIG_fail;
19500 if (arg2 == NULL) {
19501 PyErr_SetString(PyExc_TypeError,"null reference");
19502 SWIG_fail;
19503 }
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19507
19508 wxPyEndAllowThreads(__tstate);
19509 if (PyErr_Occurred()) SWIG_fail;
19510 }
19511 {
19512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19513 }
19514 return resultobj;
19515 fail:
19516 return NULL;
19517 }
19518
19519
19520 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
19521 PyObject *resultobj;
19522 wxDateTime *arg1 = (wxDateTime *) 0 ;
19523 wxDateTime *arg2 = 0 ;
19524 bool result;
19525 PyObject * obj0 = 0 ;
19526 PyObject * obj1 = 0 ;
19527 char *kwnames[] = {
19528 (char *) "self",(char *) "datetime", NULL
19529 };
19530
19531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19535 SWIG_POINTER_EXCEPTION | 0)) == -1)
19536 SWIG_fail;
19537 if (arg2 == NULL) {
19538 PyErr_SetString(PyExc_TypeError,"null reference");
19539 SWIG_fail;
19540 }
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19544
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
19548 {
19549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19550 }
19551 return resultobj;
19552 fail:
19553 return NULL;
19554 }
19555
19556
19557 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
19558 PyObject *resultobj;
19559 wxDateTime *arg1 = (wxDateTime *) 0 ;
19560 wxDateTime *arg2 = 0 ;
19561 wxDateTime *arg3 = 0 ;
19562 bool result;
19563 PyObject * obj0 = 0 ;
19564 PyObject * obj1 = 0 ;
19565 PyObject * obj2 = 0 ;
19566 char *kwnames[] = {
19567 (char *) "self",(char *) "t1",(char *) "t2", NULL
19568 };
19569
19570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19573 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19574 SWIG_POINTER_EXCEPTION | 0)) == -1)
19575 SWIG_fail;
19576 if (arg2 == NULL) {
19577 PyErr_SetString(PyExc_TypeError,"null reference");
19578 SWIG_fail;
19579 }
19580 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19581 SWIG_POINTER_EXCEPTION | 0)) == -1)
19582 SWIG_fail;
19583 if (arg3 == NULL) {
19584 PyErr_SetString(PyExc_TypeError,"null reference");
19585 SWIG_fail;
19586 }
19587 {
19588 PyThreadState* __tstate = wxPyBeginAllowThreads();
19589 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19590
19591 wxPyEndAllowThreads(__tstate);
19592 if (PyErr_Occurred()) SWIG_fail;
19593 }
19594 {
19595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19596 }
19597 return resultobj;
19598 fail:
19599 return NULL;
19600 }
19601
19602
19603 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
19604 PyObject *resultobj;
19605 wxDateTime *arg1 = (wxDateTime *) 0 ;
19606 wxDateTime *arg2 = 0 ;
19607 wxDateTime *arg3 = 0 ;
19608 bool result;
19609 PyObject * obj0 = 0 ;
19610 PyObject * obj1 = 0 ;
19611 PyObject * obj2 = 0 ;
19612 char *kwnames[] = {
19613 (char *) "self",(char *) "t1",(char *) "t2", NULL
19614 };
19615
19616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19619 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19620 SWIG_POINTER_EXCEPTION | 0)) == -1)
19621 SWIG_fail;
19622 if (arg2 == NULL) {
19623 PyErr_SetString(PyExc_TypeError,"null reference");
19624 SWIG_fail;
19625 }
19626 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19627 SWIG_POINTER_EXCEPTION | 0)) == -1)
19628 SWIG_fail;
19629 if (arg3 == NULL) {
19630 PyErr_SetString(PyExc_TypeError,"null reference");
19631 SWIG_fail;
19632 }
19633 {
19634 PyThreadState* __tstate = wxPyBeginAllowThreads();
19635 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19636
19637 wxPyEndAllowThreads(__tstate);
19638 if (PyErr_Occurred()) SWIG_fail;
19639 }
19640 {
19641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19642 }
19643 return resultobj;
19644 fail:
19645 return NULL;
19646 }
19647
19648
19649 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
19650 PyObject *resultobj;
19651 wxDateTime *arg1 = (wxDateTime *) 0 ;
19652 wxDateTime *arg2 = 0 ;
19653 bool result;
19654 PyObject * obj0 = 0 ;
19655 PyObject * obj1 = 0 ;
19656 char *kwnames[] = {
19657 (char *) "self",(char *) "dt", NULL
19658 };
19659
19660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19663 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19664 SWIG_POINTER_EXCEPTION | 0)) == -1)
19665 SWIG_fail;
19666 if (arg2 == NULL) {
19667 PyErr_SetString(PyExc_TypeError,"null reference");
19668 SWIG_fail;
19669 }
19670 {
19671 PyThreadState* __tstate = wxPyBeginAllowThreads();
19672 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19673
19674 wxPyEndAllowThreads(__tstate);
19675 if (PyErr_Occurred()) SWIG_fail;
19676 }
19677 {
19678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19679 }
19680 return resultobj;
19681 fail:
19682 return NULL;
19683 }
19684
19685
19686 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
19687 PyObject *resultobj;
19688 wxDateTime *arg1 = (wxDateTime *) 0 ;
19689 wxDateTime *arg2 = 0 ;
19690 bool result;
19691 PyObject * obj0 = 0 ;
19692 PyObject * obj1 = 0 ;
19693 char *kwnames[] = {
19694 (char *) "self",(char *) "dt", NULL
19695 };
19696
19697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19701 SWIG_POINTER_EXCEPTION | 0)) == -1)
19702 SWIG_fail;
19703 if (arg2 == NULL) {
19704 PyErr_SetString(PyExc_TypeError,"null reference");
19705 SWIG_fail;
19706 }
19707 {
19708 PyThreadState* __tstate = wxPyBeginAllowThreads();
19709 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19710
19711 wxPyEndAllowThreads(__tstate);
19712 if (PyErr_Occurred()) SWIG_fail;
19713 }
19714 {
19715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19716 }
19717 return resultobj;
19718 fail:
19719 return NULL;
19720 }
19721
19722
19723 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
19724 PyObject *resultobj;
19725 wxDateTime *arg1 = (wxDateTime *) 0 ;
19726 wxDateTime *arg2 = 0 ;
19727 wxTimeSpan *arg3 = 0 ;
19728 bool result;
19729 PyObject * obj0 = 0 ;
19730 PyObject * obj1 = 0 ;
19731 PyObject * obj2 = 0 ;
19732 char *kwnames[] = {
19733 (char *) "self",(char *) "dt",(char *) "ts", NULL
19734 };
19735
19736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19739 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19740 SWIG_POINTER_EXCEPTION | 0)) == -1)
19741 SWIG_fail;
19742 if (arg2 == NULL) {
19743 PyErr_SetString(PyExc_TypeError,"null reference");
19744 SWIG_fail;
19745 }
19746 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19747 SWIG_POINTER_EXCEPTION | 0)) == -1)
19748 SWIG_fail;
19749 if (arg3 == NULL) {
19750 PyErr_SetString(PyExc_TypeError,"null reference");
19751 SWIG_fail;
19752 }
19753 {
19754 PyThreadState* __tstate = wxPyBeginAllowThreads();
19755 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19756
19757 wxPyEndAllowThreads(__tstate);
19758 if (PyErr_Occurred()) SWIG_fail;
19759 }
19760 {
19761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19762 }
19763 return resultobj;
19764 fail:
19765 return NULL;
19766 }
19767
19768
19769 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
19770 PyObject *resultobj;
19771 wxDateTime *arg1 = (wxDateTime *) 0 ;
19772 wxTimeSpan *arg2 = 0 ;
19773 wxDateTime *result;
19774 PyObject * obj0 = 0 ;
19775 PyObject * obj1 = 0 ;
19776 char *kwnames[] = {
19777 (char *) "self",(char *) "diff", NULL
19778 };
19779
19780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19784 SWIG_POINTER_EXCEPTION | 0)) == -1)
19785 SWIG_fail;
19786 if (arg2 == NULL) {
19787 PyErr_SetString(PyExc_TypeError,"null reference");
19788 SWIG_fail;
19789 }
19790 {
19791 PyThreadState* __tstate = wxPyBeginAllowThreads();
19792 {
19793 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19794 result = (wxDateTime *) &_result_ref;
19795 }
19796
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19801 return resultobj;
19802 fail:
19803 return NULL;
19804 }
19805
19806
19807 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
19808 PyObject *resultobj;
19809 wxDateTime *arg1 = (wxDateTime *) 0 ;
19810 wxDateSpan *arg2 = 0 ;
19811 wxDateTime *result;
19812 PyObject * obj0 = 0 ;
19813 PyObject * obj1 = 0 ;
19814 char *kwnames[] = {
19815 (char *) "self",(char *) "diff", NULL
19816 };
19817
19818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19821 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19822 SWIG_POINTER_EXCEPTION | 0)) == -1)
19823 SWIG_fail;
19824 if (arg2 == NULL) {
19825 PyErr_SetString(PyExc_TypeError,"null reference");
19826 SWIG_fail;
19827 }
19828 {
19829 PyThreadState* __tstate = wxPyBeginAllowThreads();
19830 {
19831 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19832 result = (wxDateTime *) &_result_ref;
19833 }
19834
19835 wxPyEndAllowThreads(__tstate);
19836 if (PyErr_Occurred()) SWIG_fail;
19837 }
19838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19839 return resultobj;
19840 fail:
19841 return NULL;
19842 }
19843
19844
19845 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
19846 PyObject *resultobj;
19847 wxDateTime *arg1 = (wxDateTime *) 0 ;
19848 wxTimeSpan *arg2 = 0 ;
19849 wxDateTime *result;
19850 PyObject * obj0 = 0 ;
19851 PyObject * obj1 = 0 ;
19852 char *kwnames[] = {
19853 (char *) "self",(char *) "diff", NULL
19854 };
19855
19856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19860 SWIG_POINTER_EXCEPTION | 0)) == -1)
19861 SWIG_fail;
19862 if (arg2 == NULL) {
19863 PyErr_SetString(PyExc_TypeError,"null reference");
19864 SWIG_fail;
19865 }
19866 {
19867 PyThreadState* __tstate = wxPyBeginAllowThreads();
19868 {
19869 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19870 result = (wxDateTime *) &_result_ref;
19871 }
19872
19873 wxPyEndAllowThreads(__tstate);
19874 if (PyErr_Occurred()) SWIG_fail;
19875 }
19876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19877 return resultobj;
19878 fail:
19879 return NULL;
19880 }
19881
19882
19883 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
19884 PyObject *resultobj;
19885 wxDateTime *arg1 = (wxDateTime *) 0 ;
19886 wxDateSpan *arg2 = 0 ;
19887 wxDateTime *result;
19888 PyObject * obj0 = 0 ;
19889 PyObject * obj1 = 0 ;
19890 char *kwnames[] = {
19891 (char *) "self",(char *) "diff", NULL
19892 };
19893
19894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19898 SWIG_POINTER_EXCEPTION | 0)) == -1)
19899 SWIG_fail;
19900 if (arg2 == NULL) {
19901 PyErr_SetString(PyExc_TypeError,"null reference");
19902 SWIG_fail;
19903 }
19904 {
19905 PyThreadState* __tstate = wxPyBeginAllowThreads();
19906 {
19907 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19908 result = (wxDateTime *) &_result_ref;
19909 }
19910
19911 wxPyEndAllowThreads(__tstate);
19912 if (PyErr_Occurred()) SWIG_fail;
19913 }
19914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19915 return resultobj;
19916 fail:
19917 return NULL;
19918 }
19919
19920
19921 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
19922 PyObject *resultobj;
19923 wxDateTime *arg1 = (wxDateTime *) 0 ;
19924 wxDateTime *arg2 = 0 ;
19925 wxTimeSpan result;
19926 PyObject * obj0 = 0 ;
19927 PyObject * obj1 = 0 ;
19928 char *kwnames[] = {
19929 (char *) "self",(char *) "dt", NULL
19930 };
19931
19932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19936 SWIG_POINTER_EXCEPTION | 0)) == -1)
19937 SWIG_fail;
19938 if (arg2 == NULL) {
19939 PyErr_SetString(PyExc_TypeError,"null reference");
19940 SWIG_fail;
19941 }
19942 {
19943 PyThreadState* __tstate = wxPyBeginAllowThreads();
19944 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19945
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 {
19950 wxTimeSpan * resultptr;
19951 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19952 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19953 }
19954 return resultobj;
19955 fail:
19956 return NULL;
19957 }
19958
19959
19960 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
19961 PyObject *resultobj;
19962 wxDateTime *arg1 = (wxDateTime *) 0 ;
19963 wxTimeSpan *arg2 = 0 ;
19964 wxDateTime *result;
19965 PyObject * obj0 = 0 ;
19966 PyObject * obj1 = 0 ;
19967
19968 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19971 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19972 SWIG_POINTER_EXCEPTION | 0)) == -1)
19973 SWIG_fail;
19974 if (arg2 == NULL) {
19975 PyErr_SetString(PyExc_TypeError,"null reference");
19976 SWIG_fail;
19977 }
19978 {
19979 PyThreadState* __tstate = wxPyBeginAllowThreads();
19980 {
19981 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19982 result = (wxDateTime *) &_result_ref;
19983 }
19984
19985 wxPyEndAllowThreads(__tstate);
19986 if (PyErr_Occurred()) SWIG_fail;
19987 }
19988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19989 return resultobj;
19990 fail:
19991 return NULL;
19992 }
19993
19994
19995 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
19996 PyObject *resultobj;
19997 wxDateTime *arg1 = (wxDateTime *) 0 ;
19998 wxDateSpan *arg2 = 0 ;
19999 wxDateTime *result;
20000 PyObject * obj0 = 0 ;
20001 PyObject * obj1 = 0 ;
20002
20003 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20007 SWIG_POINTER_EXCEPTION | 0)) == -1)
20008 SWIG_fail;
20009 if (arg2 == NULL) {
20010 PyErr_SetString(PyExc_TypeError,"null reference");
20011 SWIG_fail;
20012 }
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 {
20016 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20017 result = (wxDateTime *) &_result_ref;
20018 }
20019
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20024 return resultobj;
20025 fail:
20026 return NULL;
20027 }
20028
20029
20030 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20031 int argc;
20032 PyObject *argv[3];
20033 int ii;
20034
20035 argc = PyObject_Length(args);
20036 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20037 argv[ii] = PyTuple_GetItem(args,ii);
20038 }
20039 if (argc == 2) {
20040 int _v;
20041 {
20042 void *ptr;
20043 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20044 _v = 0;
20045 PyErr_Clear();
20046 } else {
20047 _v = 1;
20048 }
20049 }
20050 if (_v) {
20051 {
20052 void *ptr;
20053 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20054 _v = 0;
20055 PyErr_Clear();
20056 } else {
20057 _v = 1;
20058 }
20059 }
20060 if (_v) {
20061 return _wrap_DateTime___iadd____SWIG_0(self,args);
20062 }
20063 }
20064 }
20065 if (argc == 2) {
20066 int _v;
20067 {
20068 void *ptr;
20069 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20070 _v = 0;
20071 PyErr_Clear();
20072 } else {
20073 _v = 1;
20074 }
20075 }
20076 if (_v) {
20077 {
20078 void *ptr;
20079 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20080 _v = 0;
20081 PyErr_Clear();
20082 } else {
20083 _v = 1;
20084 }
20085 }
20086 if (_v) {
20087 return _wrap_DateTime___iadd____SWIG_1(self,args);
20088 }
20089 }
20090 }
20091
20092 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20093 return NULL;
20094 }
20095
20096
20097 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
20098 PyObject *resultobj;
20099 wxDateTime *arg1 = (wxDateTime *) 0 ;
20100 wxTimeSpan *arg2 = 0 ;
20101 wxDateTime *result;
20102 PyObject * obj0 = 0 ;
20103 PyObject * obj1 = 0 ;
20104
20105 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20109 SWIG_POINTER_EXCEPTION | 0)) == -1)
20110 SWIG_fail;
20111 if (arg2 == NULL) {
20112 PyErr_SetString(PyExc_TypeError,"null reference");
20113 SWIG_fail;
20114 }
20115 {
20116 PyThreadState* __tstate = wxPyBeginAllowThreads();
20117 {
20118 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20119 result = (wxDateTime *) &_result_ref;
20120 }
20121
20122 wxPyEndAllowThreads(__tstate);
20123 if (PyErr_Occurred()) SWIG_fail;
20124 }
20125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20126 return resultobj;
20127 fail:
20128 return NULL;
20129 }
20130
20131
20132 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
20133 PyObject *resultobj;
20134 wxDateTime *arg1 = (wxDateTime *) 0 ;
20135 wxDateSpan *arg2 = 0 ;
20136 wxDateTime *result;
20137 PyObject * obj0 = 0 ;
20138 PyObject * obj1 = 0 ;
20139
20140 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20144 SWIG_POINTER_EXCEPTION | 0)) == -1)
20145 SWIG_fail;
20146 if (arg2 == NULL) {
20147 PyErr_SetString(PyExc_TypeError,"null reference");
20148 SWIG_fail;
20149 }
20150 {
20151 PyThreadState* __tstate = wxPyBeginAllowThreads();
20152 {
20153 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20154 result = (wxDateTime *) &_result_ref;
20155 }
20156
20157 wxPyEndAllowThreads(__tstate);
20158 if (PyErr_Occurred()) SWIG_fail;
20159 }
20160 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20161 return resultobj;
20162 fail:
20163 return NULL;
20164 }
20165
20166
20167 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20168 int argc;
20169 PyObject *argv[3];
20170 int ii;
20171
20172 argc = PyObject_Length(args);
20173 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20174 argv[ii] = PyTuple_GetItem(args,ii);
20175 }
20176 if (argc == 2) {
20177 int _v;
20178 {
20179 void *ptr;
20180 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20181 _v = 0;
20182 PyErr_Clear();
20183 } else {
20184 _v = 1;
20185 }
20186 }
20187 if (_v) {
20188 {
20189 void *ptr;
20190 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20191 _v = 0;
20192 PyErr_Clear();
20193 } else {
20194 _v = 1;
20195 }
20196 }
20197 if (_v) {
20198 return _wrap_DateTime___isub____SWIG_0(self,args);
20199 }
20200 }
20201 }
20202 if (argc == 2) {
20203 int _v;
20204 {
20205 void *ptr;
20206 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20207 _v = 0;
20208 PyErr_Clear();
20209 } else {
20210 _v = 1;
20211 }
20212 }
20213 if (_v) {
20214 {
20215 void *ptr;
20216 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20217 _v = 0;
20218 PyErr_Clear();
20219 } else {
20220 _v = 1;
20221 }
20222 }
20223 if (_v) {
20224 return _wrap_DateTime___isub____SWIG_1(self,args);
20225 }
20226 }
20227 }
20228
20229 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20230 return NULL;
20231 }
20232
20233
20234 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
20235 PyObject *resultobj;
20236 wxDateTime *arg1 = (wxDateTime *) 0 ;
20237 wxTimeSpan *arg2 = 0 ;
20238 wxDateTime result;
20239 PyObject * obj0 = 0 ;
20240 PyObject * obj1 = 0 ;
20241
20242 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20245 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20246 SWIG_POINTER_EXCEPTION | 0)) == -1)
20247 SWIG_fail;
20248 if (arg2 == NULL) {
20249 PyErr_SetString(PyExc_TypeError,"null reference");
20250 SWIG_fail;
20251 }
20252 {
20253 PyThreadState* __tstate = wxPyBeginAllowThreads();
20254 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20255
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 {
20260 wxDateTime * resultptr;
20261 resultptr = new wxDateTime((wxDateTime &) result);
20262 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20263 }
20264 return resultobj;
20265 fail:
20266 return NULL;
20267 }
20268
20269
20270 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
20271 PyObject *resultobj;
20272 wxDateTime *arg1 = (wxDateTime *) 0 ;
20273 wxDateSpan *arg2 = 0 ;
20274 wxDateTime result;
20275 PyObject * obj0 = 0 ;
20276 PyObject * obj1 = 0 ;
20277
20278 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20282 SWIG_POINTER_EXCEPTION | 0)) == -1)
20283 SWIG_fail;
20284 if (arg2 == NULL) {
20285 PyErr_SetString(PyExc_TypeError,"null reference");
20286 SWIG_fail;
20287 }
20288 {
20289 PyThreadState* __tstate = wxPyBeginAllowThreads();
20290 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20291
20292 wxPyEndAllowThreads(__tstate);
20293 if (PyErr_Occurred()) SWIG_fail;
20294 }
20295 {
20296 wxDateTime * resultptr;
20297 resultptr = new wxDateTime((wxDateTime &) result);
20298 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20299 }
20300 return resultobj;
20301 fail:
20302 return NULL;
20303 }
20304
20305
20306 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20307 int argc;
20308 PyObject *argv[3];
20309 int ii;
20310
20311 argc = PyObject_Length(args);
20312 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20313 argv[ii] = PyTuple_GetItem(args,ii);
20314 }
20315 if (argc == 2) {
20316 int _v;
20317 {
20318 void *ptr;
20319 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20320 _v = 0;
20321 PyErr_Clear();
20322 } else {
20323 _v = 1;
20324 }
20325 }
20326 if (_v) {
20327 {
20328 void *ptr;
20329 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20330 _v = 0;
20331 PyErr_Clear();
20332 } else {
20333 _v = 1;
20334 }
20335 }
20336 if (_v) {
20337 return _wrap_DateTime___add____SWIG_0(self,args);
20338 }
20339 }
20340 }
20341 if (argc == 2) {
20342 int _v;
20343 {
20344 void *ptr;
20345 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20346 _v = 0;
20347 PyErr_Clear();
20348 } else {
20349 _v = 1;
20350 }
20351 }
20352 if (_v) {
20353 {
20354 void *ptr;
20355 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20356 _v = 0;
20357 PyErr_Clear();
20358 } else {
20359 _v = 1;
20360 }
20361 }
20362 if (_v) {
20363 return _wrap_DateTime___add____SWIG_1(self,args);
20364 }
20365 }
20366 }
20367
20368 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20369 return NULL;
20370 }
20371
20372
20373 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
20374 PyObject *resultobj;
20375 wxDateTime *arg1 = (wxDateTime *) 0 ;
20376 wxDateTime *arg2 = 0 ;
20377 wxTimeSpan result;
20378 PyObject * obj0 = 0 ;
20379 PyObject * obj1 = 0 ;
20380
20381 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20385 SWIG_POINTER_EXCEPTION | 0)) == -1)
20386 SWIG_fail;
20387 if (arg2 == NULL) {
20388 PyErr_SetString(PyExc_TypeError,"null reference");
20389 SWIG_fail;
20390 }
20391 {
20392 PyThreadState* __tstate = wxPyBeginAllowThreads();
20393 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20394
20395 wxPyEndAllowThreads(__tstate);
20396 if (PyErr_Occurred()) SWIG_fail;
20397 }
20398 {
20399 wxTimeSpan * resultptr;
20400 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20401 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20402 }
20403 return resultobj;
20404 fail:
20405 return NULL;
20406 }
20407
20408
20409 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
20410 PyObject *resultobj;
20411 wxDateTime *arg1 = (wxDateTime *) 0 ;
20412 wxTimeSpan *arg2 = 0 ;
20413 wxDateTime result;
20414 PyObject * obj0 = 0 ;
20415 PyObject * obj1 = 0 ;
20416
20417 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20421 SWIG_POINTER_EXCEPTION | 0)) == -1)
20422 SWIG_fail;
20423 if (arg2 == NULL) {
20424 PyErr_SetString(PyExc_TypeError,"null reference");
20425 SWIG_fail;
20426 }
20427 {
20428 PyThreadState* __tstate = wxPyBeginAllowThreads();
20429 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20430
20431 wxPyEndAllowThreads(__tstate);
20432 if (PyErr_Occurred()) SWIG_fail;
20433 }
20434 {
20435 wxDateTime * resultptr;
20436 resultptr = new wxDateTime((wxDateTime &) result);
20437 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20438 }
20439 return resultobj;
20440 fail:
20441 return NULL;
20442 }
20443
20444
20445 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
20446 PyObject *resultobj;
20447 wxDateTime *arg1 = (wxDateTime *) 0 ;
20448 wxDateSpan *arg2 = 0 ;
20449 wxDateTime result;
20450 PyObject * obj0 = 0 ;
20451 PyObject * obj1 = 0 ;
20452
20453 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20457 SWIG_POINTER_EXCEPTION | 0)) == -1)
20458 SWIG_fail;
20459 if (arg2 == NULL) {
20460 PyErr_SetString(PyExc_TypeError,"null reference");
20461 SWIG_fail;
20462 }
20463 {
20464 PyThreadState* __tstate = wxPyBeginAllowThreads();
20465 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20466
20467 wxPyEndAllowThreads(__tstate);
20468 if (PyErr_Occurred()) SWIG_fail;
20469 }
20470 {
20471 wxDateTime * resultptr;
20472 resultptr = new wxDateTime((wxDateTime &) result);
20473 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20474 }
20475 return resultobj;
20476 fail:
20477 return NULL;
20478 }
20479
20480
20481 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20482 int argc;
20483 PyObject *argv[3];
20484 int ii;
20485
20486 argc = PyObject_Length(args);
20487 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20488 argv[ii] = PyTuple_GetItem(args,ii);
20489 }
20490 if (argc == 2) {
20491 int _v;
20492 {
20493 void *ptr;
20494 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20495 _v = 0;
20496 PyErr_Clear();
20497 } else {
20498 _v = 1;
20499 }
20500 }
20501 if (_v) {
20502 {
20503 void *ptr;
20504 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20505 _v = 0;
20506 PyErr_Clear();
20507 } else {
20508 _v = 1;
20509 }
20510 }
20511 if (_v) {
20512 return _wrap_DateTime___sub____SWIG_0(self,args);
20513 }
20514 }
20515 }
20516 if (argc == 2) {
20517 int _v;
20518 {
20519 void *ptr;
20520 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20521 _v = 0;
20522 PyErr_Clear();
20523 } else {
20524 _v = 1;
20525 }
20526 }
20527 if (_v) {
20528 {
20529 void *ptr;
20530 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20531 _v = 0;
20532 PyErr_Clear();
20533 } else {
20534 _v = 1;
20535 }
20536 }
20537 if (_v) {
20538 return _wrap_DateTime___sub____SWIG_1(self,args);
20539 }
20540 }
20541 }
20542 if (argc == 2) {
20543 int _v;
20544 {
20545 void *ptr;
20546 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20547 _v = 0;
20548 PyErr_Clear();
20549 } else {
20550 _v = 1;
20551 }
20552 }
20553 if (_v) {
20554 {
20555 void *ptr;
20556 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20557 _v = 0;
20558 PyErr_Clear();
20559 } else {
20560 _v = 1;
20561 }
20562 }
20563 if (_v) {
20564 return _wrap_DateTime___sub____SWIG_2(self,args);
20565 }
20566 }
20567 }
20568
20569 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20570 return NULL;
20571 }
20572
20573
20574 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
20575 PyObject *resultobj;
20576 wxDateTime *arg1 = (wxDateTime *) 0 ;
20577 wxDateTime *arg2 = (wxDateTime *) 0 ;
20578 bool result;
20579 PyObject * obj0 = 0 ;
20580 PyObject * obj1 = 0 ;
20581
20582 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20587 {
20588 PyThreadState* __tstate = wxPyBeginAllowThreads();
20589 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20590
20591 wxPyEndAllowThreads(__tstate);
20592 if (PyErr_Occurred()) SWIG_fail;
20593 }
20594 {
20595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20596 }
20597 return resultobj;
20598 fail:
20599 return NULL;
20600 }
20601
20602
20603 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
20604 PyObject *resultobj;
20605 wxDateTime *arg1 = (wxDateTime *) 0 ;
20606 wxDateTime *arg2 = (wxDateTime *) 0 ;
20607 bool result;
20608 PyObject * obj0 = 0 ;
20609 PyObject * obj1 = 0 ;
20610
20611 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20616 {
20617 PyThreadState* __tstate = wxPyBeginAllowThreads();
20618 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20619
20620 wxPyEndAllowThreads(__tstate);
20621 if (PyErr_Occurred()) SWIG_fail;
20622 }
20623 {
20624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20625 }
20626 return resultobj;
20627 fail:
20628 return NULL;
20629 }
20630
20631
20632 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
20633 PyObject *resultobj;
20634 wxDateTime *arg1 = (wxDateTime *) 0 ;
20635 wxDateTime *arg2 = (wxDateTime *) 0 ;
20636 bool result;
20637 PyObject * obj0 = 0 ;
20638 PyObject * obj1 = 0 ;
20639
20640 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20643 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20648
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 {
20653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20654 }
20655 return resultobj;
20656 fail:
20657 return NULL;
20658 }
20659
20660
20661 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
20662 PyObject *resultobj;
20663 wxDateTime *arg1 = (wxDateTime *) 0 ;
20664 wxDateTime *arg2 = (wxDateTime *) 0 ;
20665 bool result;
20666 PyObject * obj0 = 0 ;
20667 PyObject * obj1 = 0 ;
20668
20669 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20672 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20674 {
20675 PyThreadState* __tstate = wxPyBeginAllowThreads();
20676 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20677
20678 wxPyEndAllowThreads(__tstate);
20679 if (PyErr_Occurred()) SWIG_fail;
20680 }
20681 {
20682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20683 }
20684 return resultobj;
20685 fail:
20686 return NULL;
20687 }
20688
20689
20690 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
20691 PyObject *resultobj;
20692 wxDateTime *arg1 = (wxDateTime *) 0 ;
20693 wxDateTime *arg2 = (wxDateTime *) 0 ;
20694 bool result;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697
20698 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20701 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20703 {
20704 PyThreadState* __tstate = wxPyBeginAllowThreads();
20705 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20706
20707 wxPyEndAllowThreads(__tstate);
20708 if (PyErr_Occurred()) SWIG_fail;
20709 }
20710 {
20711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20712 }
20713 return resultobj;
20714 fail:
20715 return NULL;
20716 }
20717
20718
20719 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
20720 PyObject *resultobj;
20721 wxDateTime *arg1 = (wxDateTime *) 0 ;
20722 wxDateTime *arg2 = (wxDateTime *) 0 ;
20723 bool result;
20724 PyObject * obj0 = 0 ;
20725 PyObject * obj1 = 0 ;
20726
20727 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20732 {
20733 PyThreadState* __tstate = wxPyBeginAllowThreads();
20734 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20735
20736 wxPyEndAllowThreads(__tstate);
20737 if (PyErr_Occurred()) SWIG_fail;
20738 }
20739 {
20740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20741 }
20742 return resultobj;
20743 fail:
20744 return NULL;
20745 }
20746
20747
20748 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
20749 PyObject *resultobj;
20750 wxDateTime *arg1 = (wxDateTime *) 0 ;
20751 wxString *arg2 = 0 ;
20752 int result;
20753 bool temp2 = False ;
20754 PyObject * obj0 = 0 ;
20755 PyObject * obj1 = 0 ;
20756 char *kwnames[] = {
20757 (char *) "self",(char *) "date", NULL
20758 };
20759
20760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20763 {
20764 arg2 = wxString_in_helper(obj1);
20765 if (arg2 == NULL) SWIG_fail;
20766 temp2 = True;
20767 }
20768 {
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20771
20772 wxPyEndAllowThreads(__tstate);
20773 if (PyErr_Occurred()) SWIG_fail;
20774 }
20775 resultobj = SWIG_FromInt((int)result);
20776 {
20777 if (temp2)
20778 delete arg2;
20779 }
20780 return resultobj;
20781 fail:
20782 {
20783 if (temp2)
20784 delete arg2;
20785 }
20786 return NULL;
20787 }
20788
20789
20790 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
20791 PyObject *resultobj;
20792 wxDateTime *arg1 = (wxDateTime *) 0 ;
20793 wxString *arg2 = 0 ;
20794 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20795 wxString *arg3 = (wxString *) &arg3_defvalue ;
20796 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20797 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20798 int result;
20799 bool temp2 = False ;
20800 bool temp3 = False ;
20801 PyObject * obj0 = 0 ;
20802 PyObject * obj1 = 0 ;
20803 PyObject * obj2 = 0 ;
20804 PyObject * obj3 = 0 ;
20805 char *kwnames[] = {
20806 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20807 };
20808
20809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20812 {
20813 arg2 = wxString_in_helper(obj1);
20814 if (arg2 == NULL) SWIG_fail;
20815 temp2 = True;
20816 }
20817 if (obj2) {
20818 {
20819 arg3 = wxString_in_helper(obj2);
20820 if (arg3 == NULL) SWIG_fail;
20821 temp3 = True;
20822 }
20823 }
20824 if (obj3) {
20825 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20826 SWIG_POINTER_EXCEPTION | 0)) == -1)
20827 SWIG_fail;
20828 if (arg4 == NULL) {
20829 PyErr_SetString(PyExc_TypeError,"null reference");
20830 SWIG_fail;
20831 }
20832 }
20833 {
20834 PyThreadState* __tstate = wxPyBeginAllowThreads();
20835 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20836
20837 wxPyEndAllowThreads(__tstate);
20838 if (PyErr_Occurred()) SWIG_fail;
20839 }
20840 resultobj = SWIG_FromInt((int)result);
20841 {
20842 if (temp2)
20843 delete arg2;
20844 }
20845 {
20846 if (temp3)
20847 delete arg3;
20848 }
20849 return resultobj;
20850 fail:
20851 {
20852 if (temp2)
20853 delete arg2;
20854 }
20855 {
20856 if (temp3)
20857 delete arg3;
20858 }
20859 return NULL;
20860 }
20861
20862
20863 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20864 PyObject *resultobj;
20865 wxDateTime *arg1 = (wxDateTime *) 0 ;
20866 wxString *arg2 = 0 ;
20867 int result;
20868 bool temp2 = False ;
20869 PyObject * obj0 = 0 ;
20870 PyObject * obj1 = 0 ;
20871 char *kwnames[] = {
20872 (char *) "self",(char *) "datetime", NULL
20873 };
20874
20875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20878 {
20879 arg2 = wxString_in_helper(obj1);
20880 if (arg2 == NULL) SWIG_fail;
20881 temp2 = True;
20882 }
20883 {
20884 PyThreadState* __tstate = wxPyBeginAllowThreads();
20885 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20886
20887 wxPyEndAllowThreads(__tstate);
20888 if (PyErr_Occurred()) SWIG_fail;
20889 }
20890 resultobj = SWIG_FromInt((int)result);
20891 {
20892 if (temp2)
20893 delete arg2;
20894 }
20895 return resultobj;
20896 fail:
20897 {
20898 if (temp2)
20899 delete arg2;
20900 }
20901 return NULL;
20902 }
20903
20904
20905 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
20906 PyObject *resultobj;
20907 wxDateTime *arg1 = (wxDateTime *) 0 ;
20908 wxString *arg2 = 0 ;
20909 int result;
20910 bool temp2 = False ;
20911 PyObject * obj0 = 0 ;
20912 PyObject * obj1 = 0 ;
20913 char *kwnames[] = {
20914 (char *) "self",(char *) "date", NULL
20915 };
20916
20917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20920 {
20921 arg2 = wxString_in_helper(obj1);
20922 if (arg2 == NULL) SWIG_fail;
20923 temp2 = True;
20924 }
20925 {
20926 PyThreadState* __tstate = wxPyBeginAllowThreads();
20927 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20928
20929 wxPyEndAllowThreads(__tstate);
20930 if (PyErr_Occurred()) SWIG_fail;
20931 }
20932 resultobj = SWIG_FromInt((int)result);
20933 {
20934 if (temp2)
20935 delete arg2;
20936 }
20937 return resultobj;
20938 fail:
20939 {
20940 if (temp2)
20941 delete arg2;
20942 }
20943 return NULL;
20944 }
20945
20946
20947 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
20948 PyObject *resultobj;
20949 wxDateTime *arg1 = (wxDateTime *) 0 ;
20950 wxString *arg2 = 0 ;
20951 int result;
20952 bool temp2 = False ;
20953 PyObject * obj0 = 0 ;
20954 PyObject * obj1 = 0 ;
20955 char *kwnames[] = {
20956 (char *) "self",(char *) "time", NULL
20957 };
20958
20959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20962 {
20963 arg2 = wxString_in_helper(obj1);
20964 if (arg2 == NULL) SWIG_fail;
20965 temp2 = True;
20966 }
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20970
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_FromInt((int)result);
20975 {
20976 if (temp2)
20977 delete arg2;
20978 }
20979 return resultobj;
20980 fail:
20981 {
20982 if (temp2)
20983 delete arg2;
20984 }
20985 return NULL;
20986 }
20987
20988
20989 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
20990 PyObject *resultobj;
20991 wxDateTime *arg1 = (wxDateTime *) 0 ;
20992 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20993 wxString *arg2 = (wxString *) &arg2_defvalue ;
20994 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20995 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20996 wxString result;
20997 bool temp2 = False ;
20998 bool temp3 = False ;
20999 PyObject * obj0 = 0 ;
21000 PyObject * obj1 = 0 ;
21001 PyObject * obj2 = 0 ;
21002 char *kwnames[] = {
21003 (char *) "self",(char *) "format",(char *) "tz", NULL
21004 };
21005
21006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21009 if (obj1) {
21010 {
21011 arg2 = wxString_in_helper(obj1);
21012 if (arg2 == NULL) SWIG_fail;
21013 temp2 = True;
21014 }
21015 }
21016 if (obj2) {
21017 {
21018 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21019 temp3 = True;
21020 }
21021 }
21022 {
21023 PyThreadState* __tstate = wxPyBeginAllowThreads();
21024 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21025
21026 wxPyEndAllowThreads(__tstate);
21027 if (PyErr_Occurred()) SWIG_fail;
21028 }
21029 {
21030 #if wxUSE_UNICODE
21031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21032 #else
21033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21034 #endif
21035 }
21036 {
21037 if (temp2)
21038 delete arg2;
21039 }
21040 {
21041 if (temp3) delete arg3;
21042 }
21043 return resultobj;
21044 fail:
21045 {
21046 if (temp2)
21047 delete arg2;
21048 }
21049 {
21050 if (temp3) delete arg3;
21051 }
21052 return NULL;
21053 }
21054
21055
21056 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
21057 PyObject *resultobj;
21058 wxDateTime *arg1 = (wxDateTime *) 0 ;
21059 wxString result;
21060 PyObject * obj0 = 0 ;
21061 char *kwnames[] = {
21062 (char *) "self", NULL
21063 };
21064
21065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21068 {
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 result = ((wxDateTime const *)arg1)->FormatDate();
21071
21072 wxPyEndAllowThreads(__tstate);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 {
21076 #if wxUSE_UNICODE
21077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21078 #else
21079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21080 #endif
21081 }
21082 return resultobj;
21083 fail:
21084 return NULL;
21085 }
21086
21087
21088 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
21089 PyObject *resultobj;
21090 wxDateTime *arg1 = (wxDateTime *) 0 ;
21091 wxString result;
21092 PyObject * obj0 = 0 ;
21093 char *kwnames[] = {
21094 (char *) "self", NULL
21095 };
21096
21097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21100 {
21101 PyThreadState* __tstate = wxPyBeginAllowThreads();
21102 result = ((wxDateTime const *)arg1)->FormatTime();
21103
21104 wxPyEndAllowThreads(__tstate);
21105 if (PyErr_Occurred()) SWIG_fail;
21106 }
21107 {
21108 #if wxUSE_UNICODE
21109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21110 #else
21111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21112 #endif
21113 }
21114 return resultobj;
21115 fail:
21116 return NULL;
21117 }
21118
21119
21120 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
21121 PyObject *resultobj;
21122 wxDateTime *arg1 = (wxDateTime *) 0 ;
21123 wxString result;
21124 PyObject * obj0 = 0 ;
21125 char *kwnames[] = {
21126 (char *) "self", NULL
21127 };
21128
21129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21132 {
21133 PyThreadState* __tstate = wxPyBeginAllowThreads();
21134 result = ((wxDateTime const *)arg1)->FormatISODate();
21135
21136 wxPyEndAllowThreads(__tstate);
21137 if (PyErr_Occurred()) SWIG_fail;
21138 }
21139 {
21140 #if wxUSE_UNICODE
21141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21142 #else
21143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21144 #endif
21145 }
21146 return resultobj;
21147 fail:
21148 return NULL;
21149 }
21150
21151
21152 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
21153 PyObject *resultobj;
21154 wxDateTime *arg1 = (wxDateTime *) 0 ;
21155 wxString result;
21156 PyObject * obj0 = 0 ;
21157 char *kwnames[] = {
21158 (char *) "self", NULL
21159 };
21160
21161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21164 {
21165 PyThreadState* __tstate = wxPyBeginAllowThreads();
21166 result = ((wxDateTime const *)arg1)->FormatISOTime();
21167
21168 wxPyEndAllowThreads(__tstate);
21169 if (PyErr_Occurred()) SWIG_fail;
21170 }
21171 {
21172 #if wxUSE_UNICODE
21173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21174 #else
21175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21176 #endif
21177 }
21178 return resultobj;
21179 fail:
21180 return NULL;
21181 }
21182
21183
21184 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
21185 PyObject *obj;
21186 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21187 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21188 Py_INCREF(obj);
21189 return Py_BuildValue((char *)"");
21190 }
21191 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
21192 PyObject *resultobj;
21193 long arg1 ;
21194 wxTimeSpan result;
21195 PyObject * obj0 = 0 ;
21196 char *kwnames[] = {
21197 (char *) "sec", NULL
21198 };
21199
21200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21201 arg1 = (long) SWIG_AsLong(obj0);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 {
21204 PyThreadState* __tstate = wxPyBeginAllowThreads();
21205 result = wxTimeSpan::Seconds(arg1);
21206
21207 wxPyEndAllowThreads(__tstate);
21208 if (PyErr_Occurred()) SWIG_fail;
21209 }
21210 {
21211 wxTimeSpan * resultptr;
21212 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21213 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21214 }
21215 return resultobj;
21216 fail:
21217 return NULL;
21218 }
21219
21220
21221 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
21222 PyObject *resultobj;
21223 wxTimeSpan result;
21224 char *kwnames[] = {
21225 NULL
21226 };
21227
21228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21229 {
21230 PyThreadState* __tstate = wxPyBeginAllowThreads();
21231 result = wxTimeSpan::Second();
21232
21233 wxPyEndAllowThreads(__tstate);
21234 if (PyErr_Occurred()) SWIG_fail;
21235 }
21236 {
21237 wxTimeSpan * resultptr;
21238 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21239 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21240 }
21241 return resultobj;
21242 fail:
21243 return NULL;
21244 }
21245
21246
21247 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
21248 PyObject *resultobj;
21249 long arg1 ;
21250 wxTimeSpan result;
21251 PyObject * obj0 = 0 ;
21252 char *kwnames[] = {
21253 (char *) "min", NULL
21254 };
21255
21256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21257 arg1 = (long) SWIG_AsLong(obj0);
21258 if (PyErr_Occurred()) SWIG_fail;
21259 {
21260 PyThreadState* __tstate = wxPyBeginAllowThreads();
21261 result = wxTimeSpan::Minutes(arg1);
21262
21263 wxPyEndAllowThreads(__tstate);
21264 if (PyErr_Occurred()) SWIG_fail;
21265 }
21266 {
21267 wxTimeSpan * resultptr;
21268 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21269 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21270 }
21271 return resultobj;
21272 fail:
21273 return NULL;
21274 }
21275
21276
21277 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
21278 PyObject *resultobj;
21279 wxTimeSpan result;
21280 char *kwnames[] = {
21281 NULL
21282 };
21283
21284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21285 {
21286 PyThreadState* __tstate = wxPyBeginAllowThreads();
21287 result = wxTimeSpan::Minute();
21288
21289 wxPyEndAllowThreads(__tstate);
21290 if (PyErr_Occurred()) SWIG_fail;
21291 }
21292 {
21293 wxTimeSpan * resultptr;
21294 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21295 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21296 }
21297 return resultobj;
21298 fail:
21299 return NULL;
21300 }
21301
21302
21303 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
21304 PyObject *resultobj;
21305 long arg1 ;
21306 wxTimeSpan result;
21307 PyObject * obj0 = 0 ;
21308 char *kwnames[] = {
21309 (char *) "hours", NULL
21310 };
21311
21312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21313 arg1 = (long) SWIG_AsLong(obj0);
21314 if (PyErr_Occurred()) SWIG_fail;
21315 {
21316 PyThreadState* __tstate = wxPyBeginAllowThreads();
21317 result = wxTimeSpan::Hours(arg1);
21318
21319 wxPyEndAllowThreads(__tstate);
21320 if (PyErr_Occurred()) SWIG_fail;
21321 }
21322 {
21323 wxTimeSpan * resultptr;
21324 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21325 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21326 }
21327 return resultobj;
21328 fail:
21329 return NULL;
21330 }
21331
21332
21333 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
21334 PyObject *resultobj;
21335 wxTimeSpan result;
21336 char *kwnames[] = {
21337 NULL
21338 };
21339
21340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21341 {
21342 PyThreadState* __tstate = wxPyBeginAllowThreads();
21343 result = wxTimeSpan::Hour();
21344
21345 wxPyEndAllowThreads(__tstate);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 }
21348 {
21349 wxTimeSpan * resultptr;
21350 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21351 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21352 }
21353 return resultobj;
21354 fail:
21355 return NULL;
21356 }
21357
21358
21359 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
21360 PyObject *resultobj;
21361 long arg1 ;
21362 wxTimeSpan result;
21363 PyObject * obj0 = 0 ;
21364 char *kwnames[] = {
21365 (char *) "days", NULL
21366 };
21367
21368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21369 arg1 = (long) SWIG_AsLong(obj0);
21370 if (PyErr_Occurred()) SWIG_fail;
21371 {
21372 PyThreadState* __tstate = wxPyBeginAllowThreads();
21373 result = wxTimeSpan::Days(arg1);
21374
21375 wxPyEndAllowThreads(__tstate);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 {
21379 wxTimeSpan * resultptr;
21380 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21381 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21382 }
21383 return resultobj;
21384 fail:
21385 return NULL;
21386 }
21387
21388
21389 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
21390 PyObject *resultobj;
21391 wxTimeSpan result;
21392 char *kwnames[] = {
21393 NULL
21394 };
21395
21396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21397 {
21398 PyThreadState* __tstate = wxPyBeginAllowThreads();
21399 result = wxTimeSpan::Day();
21400
21401 wxPyEndAllowThreads(__tstate);
21402 if (PyErr_Occurred()) SWIG_fail;
21403 }
21404 {
21405 wxTimeSpan * resultptr;
21406 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21407 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21408 }
21409 return resultobj;
21410 fail:
21411 return NULL;
21412 }
21413
21414
21415 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
21416 PyObject *resultobj;
21417 long arg1 ;
21418 wxTimeSpan result;
21419 PyObject * obj0 = 0 ;
21420 char *kwnames[] = {
21421 (char *) "days", NULL
21422 };
21423
21424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21425 arg1 = (long) SWIG_AsLong(obj0);
21426 if (PyErr_Occurred()) SWIG_fail;
21427 {
21428 PyThreadState* __tstate = wxPyBeginAllowThreads();
21429 result = wxTimeSpan::Weeks(arg1);
21430
21431 wxPyEndAllowThreads(__tstate);
21432 if (PyErr_Occurred()) SWIG_fail;
21433 }
21434 {
21435 wxTimeSpan * resultptr;
21436 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21437 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21438 }
21439 return resultobj;
21440 fail:
21441 return NULL;
21442 }
21443
21444
21445 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
21446 PyObject *resultobj;
21447 wxTimeSpan result;
21448 char *kwnames[] = {
21449 NULL
21450 };
21451
21452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21453 {
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = wxTimeSpan::Week();
21456
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 {
21461 wxTimeSpan * resultptr;
21462 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21463 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21464 }
21465 return resultobj;
21466 fail:
21467 return NULL;
21468 }
21469
21470
21471 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21472 PyObject *resultobj;
21473 long arg1 = (long) 0 ;
21474 long arg2 = (long) 0 ;
21475 long arg3 = (long) 0 ;
21476 long arg4 = (long) 0 ;
21477 wxTimeSpan *result;
21478 PyObject * obj0 = 0 ;
21479 PyObject * obj1 = 0 ;
21480 PyObject * obj2 = 0 ;
21481 PyObject * obj3 = 0 ;
21482 char *kwnames[] = {
21483 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21484 };
21485
21486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21487 if (obj0) {
21488 arg1 = (long) SWIG_AsLong(obj0);
21489 if (PyErr_Occurred()) SWIG_fail;
21490 }
21491 if (obj1) {
21492 arg2 = (long) SWIG_AsLong(obj1);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 if (obj2) {
21496 arg3 = (long) SWIG_AsLong(obj2);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 if (obj3) {
21500 arg4 = (long) SWIG_AsLong(obj3);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 {
21504 PyThreadState* __tstate = wxPyBeginAllowThreads();
21505 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21506
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21511 return resultobj;
21512 fail:
21513 return NULL;
21514 }
21515
21516
21517 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj;
21519 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21520 PyObject * obj0 = 0 ;
21521 char *kwnames[] = {
21522 (char *) "self", NULL
21523 };
21524
21525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21528 {
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 delete arg1;
21531
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 Py_INCREF(Py_None); resultobj = Py_None;
21536 return resultobj;
21537 fail:
21538 return NULL;
21539 }
21540
21541
21542 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
21543 PyObject *resultobj;
21544 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21545 wxTimeSpan *arg2 = 0 ;
21546 wxTimeSpan *result;
21547 PyObject * obj0 = 0 ;
21548 PyObject * obj1 = 0 ;
21549 char *kwnames[] = {
21550 (char *) "self",(char *) "diff", NULL
21551 };
21552
21553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21557 SWIG_POINTER_EXCEPTION | 0)) == -1)
21558 SWIG_fail;
21559 if (arg2 == NULL) {
21560 PyErr_SetString(PyExc_TypeError,"null reference");
21561 SWIG_fail;
21562 }
21563 {
21564 PyThreadState* __tstate = wxPyBeginAllowThreads();
21565 {
21566 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21567 result = (wxTimeSpan *) &_result_ref;
21568 }
21569
21570 wxPyEndAllowThreads(__tstate);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 }
21573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21574 return resultobj;
21575 fail:
21576 return NULL;
21577 }
21578
21579
21580 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
21581 PyObject *resultobj;
21582 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21583 wxTimeSpan *arg2 = 0 ;
21584 wxTimeSpan *result;
21585 PyObject * obj0 = 0 ;
21586 PyObject * obj1 = 0 ;
21587 char *kwnames[] = {
21588 (char *) "self",(char *) "diff", NULL
21589 };
21590
21591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21594 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21595 SWIG_POINTER_EXCEPTION | 0)) == -1)
21596 SWIG_fail;
21597 if (arg2 == NULL) {
21598 PyErr_SetString(PyExc_TypeError,"null reference");
21599 SWIG_fail;
21600 }
21601 {
21602 PyThreadState* __tstate = wxPyBeginAllowThreads();
21603 {
21604 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21605 result = (wxTimeSpan *) &_result_ref;
21606 }
21607
21608 wxPyEndAllowThreads(__tstate);
21609 if (PyErr_Occurred()) SWIG_fail;
21610 }
21611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21612 return resultobj;
21613 fail:
21614 return NULL;
21615 }
21616
21617
21618 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj;
21620 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21621 int arg2 ;
21622 wxTimeSpan *result;
21623 PyObject * obj0 = 0 ;
21624 PyObject * obj1 = 0 ;
21625 char *kwnames[] = {
21626 (char *) "self",(char *) "n", NULL
21627 };
21628
21629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21632 arg2 = (int) SWIG_AsInt(obj1);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 {
21635 PyThreadState* __tstate = wxPyBeginAllowThreads();
21636 {
21637 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21638 result = (wxTimeSpan *) &_result_ref;
21639 }
21640
21641 wxPyEndAllowThreads(__tstate);
21642 if (PyErr_Occurred()) SWIG_fail;
21643 }
21644 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21645 return resultobj;
21646 fail:
21647 return NULL;
21648 }
21649
21650
21651 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
21652 PyObject *resultobj;
21653 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21654 wxTimeSpan *result;
21655 PyObject * obj0 = 0 ;
21656 char *kwnames[] = {
21657 (char *) "self", NULL
21658 };
21659
21660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 {
21666 wxTimeSpan &_result_ref = (arg1)->Neg();
21667 result = (wxTimeSpan *) &_result_ref;
21668 }
21669
21670 wxPyEndAllowThreads(__tstate);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21674 return resultobj;
21675 fail:
21676 return NULL;
21677 }
21678
21679
21680 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
21681 PyObject *resultobj;
21682 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21683 wxTimeSpan result;
21684 PyObject * obj0 = 0 ;
21685 char *kwnames[] = {
21686 (char *) "self", NULL
21687 };
21688
21689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21692 {
21693 PyThreadState* __tstate = wxPyBeginAllowThreads();
21694 result = ((wxTimeSpan const *)arg1)->Abs();
21695
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 {
21700 wxTimeSpan * resultptr;
21701 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21703 }
21704 return resultobj;
21705 fail:
21706 return NULL;
21707 }
21708
21709
21710 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
21711 PyObject *resultobj;
21712 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21713 wxTimeSpan *arg2 = 0 ;
21714 wxTimeSpan *result;
21715 PyObject * obj0 = 0 ;
21716 PyObject * obj1 = 0 ;
21717 char *kwnames[] = {
21718 (char *) "self",(char *) "diff", NULL
21719 };
21720
21721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21724 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21725 SWIG_POINTER_EXCEPTION | 0)) == -1)
21726 SWIG_fail;
21727 if (arg2 == NULL) {
21728 PyErr_SetString(PyExc_TypeError,"null reference");
21729 SWIG_fail;
21730 }
21731 {
21732 PyThreadState* __tstate = wxPyBeginAllowThreads();
21733 {
21734 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21735 result = (wxTimeSpan *) &_result_ref;
21736 }
21737
21738 wxPyEndAllowThreads(__tstate);
21739 if (PyErr_Occurred()) SWIG_fail;
21740 }
21741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21742 return resultobj;
21743 fail:
21744 return NULL;
21745 }
21746
21747
21748 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
21749 PyObject *resultobj;
21750 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21751 wxTimeSpan *arg2 = 0 ;
21752 wxTimeSpan *result;
21753 PyObject * obj0 = 0 ;
21754 PyObject * obj1 = 0 ;
21755 char *kwnames[] = {
21756 (char *) "self",(char *) "diff", NULL
21757 };
21758
21759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21762 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21763 SWIG_POINTER_EXCEPTION | 0)) == -1)
21764 SWIG_fail;
21765 if (arg2 == NULL) {
21766 PyErr_SetString(PyExc_TypeError,"null reference");
21767 SWIG_fail;
21768 }
21769 {
21770 PyThreadState* __tstate = wxPyBeginAllowThreads();
21771 {
21772 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21773 result = (wxTimeSpan *) &_result_ref;
21774 }
21775
21776 wxPyEndAllowThreads(__tstate);
21777 if (PyErr_Occurred()) SWIG_fail;
21778 }
21779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21780 return resultobj;
21781 fail:
21782 return NULL;
21783 }
21784
21785
21786 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
21787 PyObject *resultobj;
21788 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21789 int arg2 ;
21790 wxTimeSpan *result;
21791 PyObject * obj0 = 0 ;
21792 PyObject * obj1 = 0 ;
21793 char *kwnames[] = {
21794 (char *) "self",(char *) "n", NULL
21795 };
21796
21797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21800 arg2 = (int) SWIG_AsInt(obj1);
21801 if (PyErr_Occurred()) SWIG_fail;
21802 {
21803 PyThreadState* __tstate = wxPyBeginAllowThreads();
21804 {
21805 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21806 result = (wxTimeSpan *) &_result_ref;
21807 }
21808
21809 wxPyEndAllowThreads(__tstate);
21810 if (PyErr_Occurred()) SWIG_fail;
21811 }
21812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21813 return resultobj;
21814 fail:
21815 return NULL;
21816 }
21817
21818
21819 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
21820 PyObject *resultobj;
21821 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21822 wxTimeSpan *result;
21823 PyObject * obj0 = 0 ;
21824 char *kwnames[] = {
21825 (char *) "self", NULL
21826 };
21827
21828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 {
21834 wxTimeSpan &_result_ref = (arg1)->operator -();
21835 result = (wxTimeSpan *) &_result_ref;
21836 }
21837
21838 wxPyEndAllowThreads(__tstate);
21839 if (PyErr_Occurred()) SWIG_fail;
21840 }
21841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21842 return resultobj;
21843 fail:
21844 return NULL;
21845 }
21846
21847
21848 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
21849 PyObject *resultobj;
21850 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21851 wxTimeSpan *arg2 = 0 ;
21852 wxTimeSpan result;
21853 PyObject * obj0 = 0 ;
21854 PyObject * obj1 = 0 ;
21855 char *kwnames[] = {
21856 (char *) "self",(char *) "other", NULL
21857 };
21858
21859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21863 SWIG_POINTER_EXCEPTION | 0)) == -1)
21864 SWIG_fail;
21865 if (arg2 == NULL) {
21866 PyErr_SetString(PyExc_TypeError,"null reference");
21867 SWIG_fail;
21868 }
21869 {
21870 PyThreadState* __tstate = wxPyBeginAllowThreads();
21871 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21872
21873 wxPyEndAllowThreads(__tstate);
21874 if (PyErr_Occurred()) SWIG_fail;
21875 }
21876 {
21877 wxTimeSpan * resultptr;
21878 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21880 }
21881 return resultobj;
21882 fail:
21883 return NULL;
21884 }
21885
21886
21887 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
21888 PyObject *resultobj;
21889 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21890 wxTimeSpan *arg2 = 0 ;
21891 wxTimeSpan result;
21892 PyObject * obj0 = 0 ;
21893 PyObject * obj1 = 0 ;
21894 char *kwnames[] = {
21895 (char *) "self",(char *) "other", NULL
21896 };
21897
21898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21902 SWIG_POINTER_EXCEPTION | 0)) == -1)
21903 SWIG_fail;
21904 if (arg2 == NULL) {
21905 PyErr_SetString(PyExc_TypeError,"null reference");
21906 SWIG_fail;
21907 }
21908 {
21909 PyThreadState* __tstate = wxPyBeginAllowThreads();
21910 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21911
21912 wxPyEndAllowThreads(__tstate);
21913 if (PyErr_Occurred()) SWIG_fail;
21914 }
21915 {
21916 wxTimeSpan * resultptr;
21917 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21918 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21919 }
21920 return resultobj;
21921 fail:
21922 return NULL;
21923 }
21924
21925
21926 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21929 int arg2 ;
21930 wxTimeSpan result;
21931 PyObject * obj0 = 0 ;
21932 PyObject * obj1 = 0 ;
21933 char *kwnames[] = {
21934 (char *) "self",(char *) "n", NULL
21935 };
21936
21937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21940 arg2 = (int) SWIG_AsInt(obj1);
21941 if (PyErr_Occurred()) SWIG_fail;
21942 {
21943 PyThreadState* __tstate = wxPyBeginAllowThreads();
21944 result = wxTimeSpan___mul__(arg1,arg2);
21945
21946 wxPyEndAllowThreads(__tstate);
21947 if (PyErr_Occurred()) SWIG_fail;
21948 }
21949 {
21950 wxTimeSpan * resultptr;
21951 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21952 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21953 }
21954 return resultobj;
21955 fail:
21956 return NULL;
21957 }
21958
21959
21960 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
21961 PyObject *resultobj;
21962 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21963 int arg2 ;
21964 wxTimeSpan result;
21965 PyObject * obj0 = 0 ;
21966 PyObject * obj1 = 0 ;
21967 char *kwnames[] = {
21968 (char *) "self",(char *) "n", NULL
21969 };
21970
21971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21974 arg2 = (int) SWIG_AsInt(obj1);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 {
21977 PyThreadState* __tstate = wxPyBeginAllowThreads();
21978 result = wxTimeSpan___rmul__(arg1,arg2);
21979
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 {
21984 wxTimeSpan * resultptr;
21985 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21986 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21987 }
21988 return resultobj;
21989 fail:
21990 return NULL;
21991 }
21992
21993
21994 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
21995 PyObject *resultobj;
21996 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21997 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21998 bool result;
21999 PyObject * obj0 = 0 ;
22000 PyObject * obj1 = 0 ;
22001 char *kwnames[] = {
22002 (char *) "self",(char *) "other", NULL
22003 };
22004
22005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22010 {
22011 PyThreadState* __tstate = wxPyBeginAllowThreads();
22012 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22013
22014 wxPyEndAllowThreads(__tstate);
22015 if (PyErr_Occurred()) SWIG_fail;
22016 }
22017 {
22018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22019 }
22020 return resultobj;
22021 fail:
22022 return NULL;
22023 }
22024
22025
22026 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
22027 PyObject *resultobj;
22028 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22029 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22030 bool result;
22031 PyObject * obj0 = 0 ;
22032 PyObject * obj1 = 0 ;
22033 char *kwnames[] = {
22034 (char *) "self",(char *) "other", NULL
22035 };
22036
22037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22045
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 {
22050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22051 }
22052 return resultobj;
22053 fail:
22054 return NULL;
22055 }
22056
22057
22058 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
22059 PyObject *resultobj;
22060 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22061 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22062 bool result;
22063 PyObject * obj0 = 0 ;
22064 PyObject * obj1 = 0 ;
22065 char *kwnames[] = {
22066 (char *) "self",(char *) "other", NULL
22067 };
22068
22069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22072 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22077
22078 wxPyEndAllowThreads(__tstate);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 }
22081 {
22082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22083 }
22084 return resultobj;
22085 fail:
22086 return NULL;
22087 }
22088
22089
22090 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
22091 PyObject *resultobj;
22092 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22093 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22094 bool result;
22095 PyObject * obj0 = 0 ;
22096 PyObject * obj1 = 0 ;
22097 char *kwnames[] = {
22098 (char *) "self",(char *) "other", NULL
22099 };
22100
22101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22106 {
22107 PyThreadState* __tstate = wxPyBeginAllowThreads();
22108 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22109
22110 wxPyEndAllowThreads(__tstate);
22111 if (PyErr_Occurred()) SWIG_fail;
22112 }
22113 {
22114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22115 }
22116 return resultobj;
22117 fail:
22118 return NULL;
22119 }
22120
22121
22122 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
22123 PyObject *resultobj;
22124 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22125 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22126 bool result;
22127 PyObject * obj0 = 0 ;
22128 PyObject * obj1 = 0 ;
22129 char *kwnames[] = {
22130 (char *) "self",(char *) "other", NULL
22131 };
22132
22133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22136 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22138 {
22139 PyThreadState* __tstate = wxPyBeginAllowThreads();
22140 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22141
22142 wxPyEndAllowThreads(__tstate);
22143 if (PyErr_Occurred()) SWIG_fail;
22144 }
22145 {
22146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22147 }
22148 return resultobj;
22149 fail:
22150 return NULL;
22151 }
22152
22153
22154 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
22155 PyObject *resultobj;
22156 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22157 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22158 bool result;
22159 PyObject * obj0 = 0 ;
22160 PyObject * obj1 = 0 ;
22161 char *kwnames[] = {
22162 (char *) "self",(char *) "other", NULL
22163 };
22164
22165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22168 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22170 {
22171 PyThreadState* __tstate = wxPyBeginAllowThreads();
22172 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22173
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 {
22178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22179 }
22180 return resultobj;
22181 fail:
22182 return NULL;
22183 }
22184
22185
22186 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
22187 PyObject *resultobj;
22188 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22189 bool result;
22190 PyObject * obj0 = 0 ;
22191 char *kwnames[] = {
22192 (char *) "self", NULL
22193 };
22194
22195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22201
22202 wxPyEndAllowThreads(__tstate);
22203 if (PyErr_Occurred()) SWIG_fail;
22204 }
22205 {
22206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22207 }
22208 return resultobj;
22209 fail:
22210 return NULL;
22211 }
22212
22213
22214 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
22215 PyObject *resultobj;
22216 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22217 bool result;
22218 PyObject * obj0 = 0 ;
22219 char *kwnames[] = {
22220 (char *) "self", NULL
22221 };
22222
22223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22226 {
22227 PyThreadState* __tstate = wxPyBeginAllowThreads();
22228 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22229
22230 wxPyEndAllowThreads(__tstate);
22231 if (PyErr_Occurred()) SWIG_fail;
22232 }
22233 {
22234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22235 }
22236 return resultobj;
22237 fail:
22238 return NULL;
22239 }
22240
22241
22242 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
22243 PyObject *resultobj;
22244 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22245 bool result;
22246 PyObject * obj0 = 0 ;
22247 char *kwnames[] = {
22248 (char *) "self", NULL
22249 };
22250
22251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22254 {
22255 PyThreadState* __tstate = wxPyBeginAllowThreads();
22256 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22257
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 {
22262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22263 }
22264 return resultobj;
22265 fail:
22266 return NULL;
22267 }
22268
22269
22270 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
22271 PyObject *resultobj;
22272 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22273 wxTimeSpan *arg2 = 0 ;
22274 bool result;
22275 PyObject * obj0 = 0 ;
22276 PyObject * obj1 = 0 ;
22277 char *kwnames[] = {
22278 (char *) "self",(char *) "ts", NULL
22279 };
22280
22281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22285 SWIG_POINTER_EXCEPTION | 0)) == -1)
22286 SWIG_fail;
22287 if (arg2 == NULL) {
22288 PyErr_SetString(PyExc_TypeError,"null reference");
22289 SWIG_fail;
22290 }
22291 {
22292 PyThreadState* __tstate = wxPyBeginAllowThreads();
22293 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22294
22295 wxPyEndAllowThreads(__tstate);
22296 if (PyErr_Occurred()) SWIG_fail;
22297 }
22298 {
22299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22300 }
22301 return resultobj;
22302 fail:
22303 return NULL;
22304 }
22305
22306
22307 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
22308 PyObject *resultobj;
22309 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22310 wxTimeSpan *arg2 = 0 ;
22311 bool result;
22312 PyObject * obj0 = 0 ;
22313 PyObject * obj1 = 0 ;
22314 char *kwnames[] = {
22315 (char *) "self",(char *) "ts", NULL
22316 };
22317
22318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22322 SWIG_POINTER_EXCEPTION | 0)) == -1)
22323 SWIG_fail;
22324 if (arg2 == NULL) {
22325 PyErr_SetString(PyExc_TypeError,"null reference");
22326 SWIG_fail;
22327 }
22328 {
22329 PyThreadState* __tstate = wxPyBeginAllowThreads();
22330 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22331
22332 wxPyEndAllowThreads(__tstate);
22333 if (PyErr_Occurred()) SWIG_fail;
22334 }
22335 {
22336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22337 }
22338 return resultobj;
22339 fail:
22340 return NULL;
22341 }
22342
22343
22344 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
22345 PyObject *resultobj;
22346 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22347 wxTimeSpan *arg2 = 0 ;
22348 bool result;
22349 PyObject * obj0 = 0 ;
22350 PyObject * obj1 = 0 ;
22351 char *kwnames[] = {
22352 (char *) "self",(char *) "t", NULL
22353 };
22354
22355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22358 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22359 SWIG_POINTER_EXCEPTION | 0)) == -1)
22360 SWIG_fail;
22361 if (arg2 == NULL) {
22362 PyErr_SetString(PyExc_TypeError,"null reference");
22363 SWIG_fail;
22364 }
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22368
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 {
22373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22374 }
22375 return resultobj;
22376 fail:
22377 return NULL;
22378 }
22379
22380
22381 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22382 PyObject *resultobj;
22383 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22384 int result;
22385 PyObject * obj0 = 0 ;
22386 char *kwnames[] = {
22387 (char *) "self", NULL
22388 };
22389
22390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22396
22397 wxPyEndAllowThreads(__tstate);
22398 if (PyErr_Occurred()) SWIG_fail;
22399 }
22400 resultobj = SWIG_FromInt((int)result);
22401 return resultobj;
22402 fail:
22403 return NULL;
22404 }
22405
22406
22407 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
22408 PyObject *resultobj;
22409 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22410 int result;
22411 PyObject * obj0 = 0 ;
22412 char *kwnames[] = {
22413 (char *) "self", NULL
22414 };
22415
22416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22419 {
22420 PyThreadState* __tstate = wxPyBeginAllowThreads();
22421 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22422
22423 wxPyEndAllowThreads(__tstate);
22424 if (PyErr_Occurred()) SWIG_fail;
22425 }
22426 resultobj = SWIG_FromInt((int)result);
22427 return resultobj;
22428 fail:
22429 return NULL;
22430 }
22431
22432
22433 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
22434 PyObject *resultobj;
22435 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22436 int result;
22437 PyObject * obj0 = 0 ;
22438 char *kwnames[] = {
22439 (char *) "self", NULL
22440 };
22441
22442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22448
22449 wxPyEndAllowThreads(__tstate);
22450 if (PyErr_Occurred()) SWIG_fail;
22451 }
22452 resultobj = SWIG_FromInt((int)result);
22453 return resultobj;
22454 fail:
22455 return NULL;
22456 }
22457
22458
22459 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
22460 PyObject *resultobj;
22461 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22462 int result;
22463 PyObject * obj0 = 0 ;
22464 char *kwnames[] = {
22465 (char *) "self", NULL
22466 };
22467
22468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22471 {
22472 PyThreadState* __tstate = wxPyBeginAllowThreads();
22473 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22474
22475 wxPyEndAllowThreads(__tstate);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 resultobj = SWIG_FromInt((int)result);
22479 return resultobj;
22480 fail:
22481 return NULL;
22482 }
22483
22484
22485 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
22486 PyObject *resultobj;
22487 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22488 wxLongLong result;
22489 PyObject * obj0 = 0 ;
22490 char *kwnames[] = {
22491 (char *) "self", NULL
22492 };
22493
22494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22497 {
22498 PyThreadState* __tstate = wxPyBeginAllowThreads();
22499 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22500
22501 wxPyEndAllowThreads(__tstate);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 }
22504 {
22505 PyObject *hi, *lo, *shifter, *shifted;
22506 hi = PyLong_FromLong( (&result)->GetHi() );
22507 lo = PyLong_FromLong( (&result)->GetLo() );
22508 shifter = PyLong_FromLong(32);
22509 shifted = PyNumber_Lshift(hi, shifter);
22510 resultobj = PyNumber_Or(shifted, lo);
22511 Py_DECREF(hi);
22512 Py_DECREF(lo);
22513 Py_DECREF(shifter);
22514 Py_DECREF(shifted);
22515 }
22516 return resultobj;
22517 fail:
22518 return NULL;
22519 }
22520
22521
22522 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
22523 PyObject *resultobj;
22524 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22525 wxLongLong result;
22526 PyObject * obj0 = 0 ;
22527 char *kwnames[] = {
22528 (char *) "self", NULL
22529 };
22530
22531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22534 {
22535 PyThreadState* __tstate = wxPyBeginAllowThreads();
22536 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22537
22538 wxPyEndAllowThreads(__tstate);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 }
22541 {
22542 PyObject *hi, *lo, *shifter, *shifted;
22543 hi = PyLong_FromLong( (&result)->GetHi() );
22544 lo = PyLong_FromLong( (&result)->GetLo() );
22545 shifter = PyLong_FromLong(32);
22546 shifted = PyNumber_Lshift(hi, shifter);
22547 resultobj = PyNumber_Or(shifted, lo);
22548 Py_DECREF(hi);
22549 Py_DECREF(lo);
22550 Py_DECREF(shifter);
22551 Py_DECREF(shifted);
22552 }
22553 return resultobj;
22554 fail:
22555 return NULL;
22556 }
22557
22558
22559 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
22560 PyObject *resultobj;
22561 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22562 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22563 wxString *arg2 = (wxString *) &arg2_defvalue ;
22564 wxString result;
22565 bool temp2 = False ;
22566 PyObject * obj0 = 0 ;
22567 PyObject * obj1 = 0 ;
22568 char *kwnames[] = {
22569 (char *) "self",(char *) "format", NULL
22570 };
22571
22572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22575 if (obj1) {
22576 {
22577 arg2 = wxString_in_helper(obj1);
22578 if (arg2 == NULL) SWIG_fail;
22579 temp2 = True;
22580 }
22581 }
22582 {
22583 PyThreadState* __tstate = wxPyBeginAllowThreads();
22584 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22585
22586 wxPyEndAllowThreads(__tstate);
22587 if (PyErr_Occurred()) SWIG_fail;
22588 }
22589 {
22590 #if wxUSE_UNICODE
22591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22592 #else
22593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22594 #endif
22595 }
22596 {
22597 if (temp2)
22598 delete arg2;
22599 }
22600 return resultobj;
22601 fail:
22602 {
22603 if (temp2)
22604 delete arg2;
22605 }
22606 return NULL;
22607 }
22608
22609
22610 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
22611 PyObject *obj;
22612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22613 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22614 Py_INCREF(obj);
22615 return Py_BuildValue((char *)"");
22616 }
22617 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
22618 PyObject *resultobj;
22619 int arg1 = (int) 0 ;
22620 int arg2 = (int) 0 ;
22621 int arg3 = (int) 0 ;
22622 int arg4 = (int) 0 ;
22623 wxDateSpan *result;
22624 PyObject * obj0 = 0 ;
22625 PyObject * obj1 = 0 ;
22626 PyObject * obj2 = 0 ;
22627 PyObject * obj3 = 0 ;
22628 char *kwnames[] = {
22629 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22630 };
22631
22632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22633 if (obj0) {
22634 arg1 = (int) SWIG_AsInt(obj0);
22635 if (PyErr_Occurred()) SWIG_fail;
22636 }
22637 if (obj1) {
22638 arg2 = (int) SWIG_AsInt(obj1);
22639 if (PyErr_Occurred()) SWIG_fail;
22640 }
22641 if (obj2) {
22642 arg3 = (int) SWIG_AsInt(obj2);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 if (obj3) {
22646 arg4 = (int) SWIG_AsInt(obj3);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 {
22650 PyThreadState* __tstate = wxPyBeginAllowThreads();
22651 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22652
22653 wxPyEndAllowThreads(__tstate);
22654 if (PyErr_Occurred()) SWIG_fail;
22655 }
22656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22657 return resultobj;
22658 fail:
22659 return NULL;
22660 }
22661
22662
22663 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
22664 PyObject *resultobj;
22665 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22666 PyObject * obj0 = 0 ;
22667 char *kwnames[] = {
22668 (char *) "self", NULL
22669 };
22670
22671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22674 {
22675 PyThreadState* __tstate = wxPyBeginAllowThreads();
22676 delete arg1;
22677
22678 wxPyEndAllowThreads(__tstate);
22679 if (PyErr_Occurred()) SWIG_fail;
22680 }
22681 Py_INCREF(Py_None); resultobj = Py_None;
22682 return resultobj;
22683 fail:
22684 return NULL;
22685 }
22686
22687
22688 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
22689 PyObject *resultobj;
22690 int arg1 ;
22691 wxDateSpan result;
22692 PyObject * obj0 = 0 ;
22693 char *kwnames[] = {
22694 (char *) "days", NULL
22695 };
22696
22697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22698 arg1 = (int) SWIG_AsInt(obj0);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = wxDateSpan::Days(arg1);
22703
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 {
22708 wxDateSpan * resultptr;
22709 resultptr = new wxDateSpan((wxDateSpan &) result);
22710 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22711 }
22712 return resultobj;
22713 fail:
22714 return NULL;
22715 }
22716
22717
22718 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
22719 PyObject *resultobj;
22720 wxDateSpan result;
22721 char *kwnames[] = {
22722 NULL
22723 };
22724
22725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22726 {
22727 PyThreadState* __tstate = wxPyBeginAllowThreads();
22728 result = wxDateSpan::Day();
22729
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 {
22734 wxDateSpan * resultptr;
22735 resultptr = new wxDateSpan((wxDateSpan &) result);
22736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22737 }
22738 return resultobj;
22739 fail:
22740 return NULL;
22741 }
22742
22743
22744 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
22745 PyObject *resultobj;
22746 int arg1 ;
22747 wxDateSpan result;
22748 PyObject * obj0 = 0 ;
22749 char *kwnames[] = {
22750 (char *) "weeks", NULL
22751 };
22752
22753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22754 arg1 = (int) SWIG_AsInt(obj0);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 {
22757 PyThreadState* __tstate = wxPyBeginAllowThreads();
22758 result = wxDateSpan::Weeks(arg1);
22759
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 {
22764 wxDateSpan * resultptr;
22765 resultptr = new wxDateSpan((wxDateSpan &) result);
22766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22767 }
22768 return resultobj;
22769 fail:
22770 return NULL;
22771 }
22772
22773
22774 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj;
22776 wxDateSpan result;
22777 char *kwnames[] = {
22778 NULL
22779 };
22780
22781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 result = wxDateSpan::Week();
22785
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
22789 {
22790 wxDateSpan * resultptr;
22791 resultptr = new wxDateSpan((wxDateSpan &) result);
22792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22793 }
22794 return resultobj;
22795 fail:
22796 return NULL;
22797 }
22798
22799
22800 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
22801 PyObject *resultobj;
22802 int arg1 ;
22803 wxDateSpan result;
22804 PyObject * obj0 = 0 ;
22805 char *kwnames[] = {
22806 (char *) "mon", NULL
22807 };
22808
22809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22810 arg1 = (int) SWIG_AsInt(obj0);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 result = wxDateSpan::Months(arg1);
22815
22816 wxPyEndAllowThreads(__tstate);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 }
22819 {
22820 wxDateSpan * resultptr;
22821 resultptr = new wxDateSpan((wxDateSpan &) result);
22822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22823 }
22824 return resultobj;
22825 fail:
22826 return NULL;
22827 }
22828
22829
22830 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
22831 PyObject *resultobj;
22832 wxDateSpan result;
22833 char *kwnames[] = {
22834 NULL
22835 };
22836
22837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 result = wxDateSpan::Month();
22841
22842 wxPyEndAllowThreads(__tstate);
22843 if (PyErr_Occurred()) SWIG_fail;
22844 }
22845 {
22846 wxDateSpan * resultptr;
22847 resultptr = new wxDateSpan((wxDateSpan &) result);
22848 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22849 }
22850 return resultobj;
22851 fail:
22852 return NULL;
22853 }
22854
22855
22856 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
22857 PyObject *resultobj;
22858 int arg1 ;
22859 wxDateSpan result;
22860 PyObject * obj0 = 0 ;
22861 char *kwnames[] = {
22862 (char *) "years", NULL
22863 };
22864
22865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22866 arg1 = (int) SWIG_AsInt(obj0);
22867 if (PyErr_Occurred()) SWIG_fail;
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = wxDateSpan::Years(arg1);
22871
22872 wxPyEndAllowThreads(__tstate);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 }
22875 {
22876 wxDateSpan * resultptr;
22877 resultptr = new wxDateSpan((wxDateSpan &) result);
22878 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22879 }
22880 return resultobj;
22881 fail:
22882 return NULL;
22883 }
22884
22885
22886 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
22887 PyObject *resultobj;
22888 wxDateSpan result;
22889 char *kwnames[] = {
22890 NULL
22891 };
22892
22893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22894 {
22895 PyThreadState* __tstate = wxPyBeginAllowThreads();
22896 result = wxDateSpan::Year();
22897
22898 wxPyEndAllowThreads(__tstate);
22899 if (PyErr_Occurred()) SWIG_fail;
22900 }
22901 {
22902 wxDateSpan * resultptr;
22903 resultptr = new wxDateSpan((wxDateSpan &) result);
22904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22905 }
22906 return resultobj;
22907 fail:
22908 return NULL;
22909 }
22910
22911
22912 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
22913 PyObject *resultobj;
22914 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22915 int arg2 ;
22916 wxDateSpan *result;
22917 PyObject * obj0 = 0 ;
22918 PyObject * obj1 = 0 ;
22919 char *kwnames[] = {
22920 (char *) "self",(char *) "n", NULL
22921 };
22922
22923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22926 arg2 = (int) SWIG_AsInt(obj1);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 {
22931 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22932 result = (wxDateSpan *) &_result_ref;
22933 }
22934
22935 wxPyEndAllowThreads(__tstate);
22936 if (PyErr_Occurred()) SWIG_fail;
22937 }
22938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22939 return resultobj;
22940 fail:
22941 return NULL;
22942 }
22943
22944
22945 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
22946 PyObject *resultobj;
22947 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22948 int arg2 ;
22949 wxDateSpan *result;
22950 PyObject * obj0 = 0 ;
22951 PyObject * obj1 = 0 ;
22952 char *kwnames[] = {
22953 (char *) "self",(char *) "n", NULL
22954 };
22955
22956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22959 arg2 = (int) SWIG_AsInt(obj1);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 {
22964 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22965 result = (wxDateSpan *) &_result_ref;
22966 }
22967
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22972 return resultobj;
22973 fail:
22974 return NULL;
22975 }
22976
22977
22978 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22979 PyObject *resultobj;
22980 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22981 int arg2 ;
22982 wxDateSpan *result;
22983 PyObject * obj0 = 0 ;
22984 PyObject * obj1 = 0 ;
22985 char *kwnames[] = {
22986 (char *) "self",(char *) "n", NULL
22987 };
22988
22989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22992 arg2 = (int) SWIG_AsInt(obj1);
22993 if (PyErr_Occurred()) SWIG_fail;
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 {
22997 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22998 result = (wxDateSpan *) &_result_ref;
22999 }
23000
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23005 return resultobj;
23006 fail:
23007 return NULL;
23008 }
23009
23010
23011 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23012 PyObject *resultobj;
23013 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23014 int arg2 ;
23015 wxDateSpan *result;
23016 PyObject * obj0 = 0 ;
23017 PyObject * obj1 = 0 ;
23018 char *kwnames[] = {
23019 (char *) "self",(char *) "n", NULL
23020 };
23021
23022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23025 arg2 = (int) SWIG_AsInt(obj1);
23026 if (PyErr_Occurred()) SWIG_fail;
23027 {
23028 PyThreadState* __tstate = wxPyBeginAllowThreads();
23029 {
23030 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23031 result = (wxDateSpan *) &_result_ref;
23032 }
23033
23034 wxPyEndAllowThreads(__tstate);
23035 if (PyErr_Occurred()) SWIG_fail;
23036 }
23037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23038 return resultobj;
23039 fail:
23040 return NULL;
23041 }
23042
23043
23044 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23045 PyObject *resultobj;
23046 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23047 int result;
23048 PyObject * obj0 = 0 ;
23049 char *kwnames[] = {
23050 (char *) "self", NULL
23051 };
23052
23053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23056 {
23057 PyThreadState* __tstate = wxPyBeginAllowThreads();
23058 result = (int)((wxDateSpan const *)arg1)->GetYears();
23059
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_FromInt((int)result);
23064 return resultobj;
23065 fail:
23066 return NULL;
23067 }
23068
23069
23070 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23071 PyObject *resultobj;
23072 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23073 int result;
23074 PyObject * obj0 = 0 ;
23075 char *kwnames[] = {
23076 (char *) "self", NULL
23077 };
23078
23079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23082 {
23083 PyThreadState* __tstate = wxPyBeginAllowThreads();
23084 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23085
23086 wxPyEndAllowThreads(__tstate);
23087 if (PyErr_Occurred()) SWIG_fail;
23088 }
23089 resultobj = SWIG_FromInt((int)result);
23090 return resultobj;
23091 fail:
23092 return NULL;
23093 }
23094
23095
23096 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23097 PyObject *resultobj;
23098 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23099 int result;
23100 PyObject * obj0 = 0 ;
23101 char *kwnames[] = {
23102 (char *) "self", NULL
23103 };
23104
23105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23108 {
23109 PyThreadState* __tstate = wxPyBeginAllowThreads();
23110 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23111
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 resultobj = SWIG_FromInt((int)result);
23116 return resultobj;
23117 fail:
23118 return NULL;
23119 }
23120
23121
23122 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23123 PyObject *resultobj;
23124 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23125 int result;
23126 PyObject * obj0 = 0 ;
23127 char *kwnames[] = {
23128 (char *) "self", NULL
23129 };
23130
23131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 result = (int)((wxDateSpan const *)arg1)->GetDays();
23137
23138 wxPyEndAllowThreads(__tstate);
23139 if (PyErr_Occurred()) SWIG_fail;
23140 }
23141 resultobj = SWIG_FromInt((int)result);
23142 return resultobj;
23143 fail:
23144 return NULL;
23145 }
23146
23147
23148 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
23149 PyObject *resultobj;
23150 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23151 int result;
23152 PyObject * obj0 = 0 ;
23153 char *kwnames[] = {
23154 (char *) "self", NULL
23155 };
23156
23157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23160 {
23161 PyThreadState* __tstate = wxPyBeginAllowThreads();
23162 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23163
23164 wxPyEndAllowThreads(__tstate);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 }
23167 resultobj = SWIG_FromInt((int)result);
23168 return resultobj;
23169 fail:
23170 return NULL;
23171 }
23172
23173
23174 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
23175 PyObject *resultobj;
23176 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23177 wxDateSpan *arg2 = 0 ;
23178 wxDateSpan *result;
23179 PyObject * obj0 = 0 ;
23180 PyObject * obj1 = 0 ;
23181 char *kwnames[] = {
23182 (char *) "self",(char *) "other", NULL
23183 };
23184
23185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23188 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23189 SWIG_POINTER_EXCEPTION | 0)) == -1)
23190 SWIG_fail;
23191 if (arg2 == NULL) {
23192 PyErr_SetString(PyExc_TypeError,"null reference");
23193 SWIG_fail;
23194 }
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 {
23198 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23199 result = (wxDateSpan *) &_result_ref;
23200 }
23201
23202 wxPyEndAllowThreads(__tstate);
23203 if (PyErr_Occurred()) SWIG_fail;
23204 }
23205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23206 return resultobj;
23207 fail:
23208 return NULL;
23209 }
23210
23211
23212 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23213 PyObject *resultobj;
23214 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23215 wxDateSpan *arg2 = 0 ;
23216 wxDateSpan *result;
23217 PyObject * obj0 = 0 ;
23218 PyObject * obj1 = 0 ;
23219 char *kwnames[] = {
23220 (char *) "self",(char *) "other", NULL
23221 };
23222
23223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23227 SWIG_POINTER_EXCEPTION | 0)) == -1)
23228 SWIG_fail;
23229 if (arg2 == NULL) {
23230 PyErr_SetString(PyExc_TypeError,"null reference");
23231 SWIG_fail;
23232 }
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 {
23236 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23237 result = (wxDateSpan *) &_result_ref;
23238 }
23239
23240 wxPyEndAllowThreads(__tstate);
23241 if (PyErr_Occurred()) SWIG_fail;
23242 }
23243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23244 return resultobj;
23245 fail:
23246 return NULL;
23247 }
23248
23249
23250 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
23251 PyObject *resultobj;
23252 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23253 wxDateSpan *result;
23254 PyObject * obj0 = 0 ;
23255 char *kwnames[] = {
23256 (char *) "self", NULL
23257 };
23258
23259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23262 {
23263 PyThreadState* __tstate = wxPyBeginAllowThreads();
23264 {
23265 wxDateSpan &_result_ref = (arg1)->Neg();
23266 result = (wxDateSpan *) &_result_ref;
23267 }
23268
23269 wxPyEndAllowThreads(__tstate);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 }
23272 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23273 return resultobj;
23274 fail:
23275 return NULL;
23276 }
23277
23278
23279 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
23280 PyObject *resultobj;
23281 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23282 int arg2 ;
23283 wxDateSpan *result;
23284 PyObject * obj0 = 0 ;
23285 PyObject * obj1 = 0 ;
23286 char *kwnames[] = {
23287 (char *) "self",(char *) "factor", NULL
23288 };
23289
23290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23293 arg2 = (int) SWIG_AsInt(obj1);
23294 if (PyErr_Occurred()) SWIG_fail;
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 {
23298 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23299 result = (wxDateSpan *) &_result_ref;
23300 }
23301
23302 wxPyEndAllowThreads(__tstate);
23303 if (PyErr_Occurred()) SWIG_fail;
23304 }
23305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23306 return resultobj;
23307 fail:
23308 return NULL;
23309 }
23310
23311
23312 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
23313 PyObject *resultobj;
23314 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23315 wxDateSpan *arg2 = 0 ;
23316 wxDateSpan *result;
23317 PyObject * obj0 = 0 ;
23318 PyObject * obj1 = 0 ;
23319 char *kwnames[] = {
23320 (char *) "self",(char *) "other", NULL
23321 };
23322
23323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23326 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23327 SWIG_POINTER_EXCEPTION | 0)) == -1)
23328 SWIG_fail;
23329 if (arg2 == NULL) {
23330 PyErr_SetString(PyExc_TypeError,"null reference");
23331 SWIG_fail;
23332 }
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 {
23336 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23337 result = (wxDateSpan *) &_result_ref;
23338 }
23339
23340 wxPyEndAllowThreads(__tstate);
23341 if (PyErr_Occurred()) SWIG_fail;
23342 }
23343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23344 return resultobj;
23345 fail:
23346 return NULL;
23347 }
23348
23349
23350 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
23351 PyObject *resultobj;
23352 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23353 wxDateSpan *arg2 = 0 ;
23354 wxDateSpan *result;
23355 PyObject * obj0 = 0 ;
23356 PyObject * obj1 = 0 ;
23357 char *kwnames[] = {
23358 (char *) "self",(char *) "other", NULL
23359 };
23360
23361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23365 SWIG_POINTER_EXCEPTION | 0)) == -1)
23366 SWIG_fail;
23367 if (arg2 == NULL) {
23368 PyErr_SetString(PyExc_TypeError,"null reference");
23369 SWIG_fail;
23370 }
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
23373 {
23374 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23375 result = (wxDateSpan *) &_result_ref;
23376 }
23377
23378 wxPyEndAllowThreads(__tstate);
23379 if (PyErr_Occurred()) SWIG_fail;
23380 }
23381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23382 return resultobj;
23383 fail:
23384 return NULL;
23385 }
23386
23387
23388 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
23389 PyObject *resultobj;
23390 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23391 wxDateSpan *result;
23392 PyObject * obj0 = 0 ;
23393 char *kwnames[] = {
23394 (char *) "self", NULL
23395 };
23396
23397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23400 {
23401 PyThreadState* __tstate = wxPyBeginAllowThreads();
23402 {
23403 wxDateSpan &_result_ref = (arg1)->operator -();
23404 result = (wxDateSpan *) &_result_ref;
23405 }
23406
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23411 return resultobj;
23412 fail:
23413 return NULL;
23414 }
23415
23416
23417 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
23418 PyObject *resultobj;
23419 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23420 int arg2 ;
23421 wxDateSpan *result;
23422 PyObject * obj0 = 0 ;
23423 PyObject * obj1 = 0 ;
23424 char *kwnames[] = {
23425 (char *) "self",(char *) "factor", NULL
23426 };
23427
23428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23431 arg2 = (int) SWIG_AsInt(obj1);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 {
23436 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23437 result = (wxDateSpan *) &_result_ref;
23438 }
23439
23440 wxPyEndAllowThreads(__tstate);
23441 if (PyErr_Occurred()) SWIG_fail;
23442 }
23443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23444 return resultobj;
23445 fail:
23446 return NULL;
23447 }
23448
23449
23450 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
23451 PyObject *resultobj;
23452 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23453 wxDateSpan *arg2 = 0 ;
23454 wxDateSpan result;
23455 PyObject * obj0 = 0 ;
23456 PyObject * obj1 = 0 ;
23457 char *kwnames[] = {
23458 (char *) "self",(char *) "other", NULL
23459 };
23460
23461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23465 SWIG_POINTER_EXCEPTION | 0)) == -1)
23466 SWIG_fail;
23467 if (arg2 == NULL) {
23468 PyErr_SetString(PyExc_TypeError,"null reference");
23469 SWIG_fail;
23470 }
23471 {
23472 PyThreadState* __tstate = wxPyBeginAllowThreads();
23473 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23474
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 {
23479 wxDateSpan * resultptr;
23480 resultptr = new wxDateSpan((wxDateSpan &) result);
23481 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23482 }
23483 return resultobj;
23484 fail:
23485 return NULL;
23486 }
23487
23488
23489 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
23490 PyObject *resultobj;
23491 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23492 wxDateSpan *arg2 = 0 ;
23493 wxDateSpan result;
23494 PyObject * obj0 = 0 ;
23495 PyObject * obj1 = 0 ;
23496 char *kwnames[] = {
23497 (char *) "self",(char *) "other", NULL
23498 };
23499
23500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23504 SWIG_POINTER_EXCEPTION | 0)) == -1)
23505 SWIG_fail;
23506 if (arg2 == NULL) {
23507 PyErr_SetString(PyExc_TypeError,"null reference");
23508 SWIG_fail;
23509 }
23510 {
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
23512 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23513
23514 wxPyEndAllowThreads(__tstate);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 }
23517 {
23518 wxDateSpan * resultptr;
23519 resultptr = new wxDateSpan((wxDateSpan &) result);
23520 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23521 }
23522 return resultobj;
23523 fail:
23524 return NULL;
23525 }
23526
23527
23528 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
23529 PyObject *resultobj;
23530 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23531 int arg2 ;
23532 wxDateSpan result;
23533 PyObject * obj0 = 0 ;
23534 PyObject * obj1 = 0 ;
23535 char *kwnames[] = {
23536 (char *) "self",(char *) "n", NULL
23537 };
23538
23539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23542 arg2 = (int) SWIG_AsInt(obj1);
23543 if (PyErr_Occurred()) SWIG_fail;
23544 {
23545 PyThreadState* __tstate = wxPyBeginAllowThreads();
23546 result = wxDateSpan___mul__(arg1,arg2);
23547
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 {
23552 wxDateSpan * resultptr;
23553 resultptr = new wxDateSpan((wxDateSpan &) result);
23554 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23555 }
23556 return resultobj;
23557 fail:
23558 return NULL;
23559 }
23560
23561
23562 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
23563 PyObject *resultobj;
23564 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23565 int arg2 ;
23566 wxDateSpan result;
23567 PyObject * obj0 = 0 ;
23568 PyObject * obj1 = 0 ;
23569 char *kwnames[] = {
23570 (char *) "self",(char *) "n", NULL
23571 };
23572
23573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23576 arg2 = (int) SWIG_AsInt(obj1);
23577 if (PyErr_Occurred()) SWIG_fail;
23578 {
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 result = wxDateSpan___rmul__(arg1,arg2);
23581
23582 wxPyEndAllowThreads(__tstate);
23583 if (PyErr_Occurred()) SWIG_fail;
23584 }
23585 {
23586 wxDateSpan * resultptr;
23587 resultptr = new wxDateSpan((wxDateSpan &) result);
23588 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23589 }
23590 return resultobj;
23591 fail:
23592 return NULL;
23593 }
23594
23595
23596 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
23597 PyObject *resultobj;
23598 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23599 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23600 bool result;
23601 PyObject * obj0 = 0 ;
23602 PyObject * obj1 = 0 ;
23603 char *kwnames[] = {
23604 (char *) "self",(char *) "other", NULL
23605 };
23606
23607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23615
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 {
23620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23621 }
23622 return resultobj;
23623 fail:
23624 return NULL;
23625 }
23626
23627
23628 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
23629 PyObject *resultobj;
23630 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23631 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23632 bool result;
23633 PyObject * obj0 = 0 ;
23634 PyObject * obj1 = 0 ;
23635 char *kwnames[] = {
23636 (char *) "self",(char *) "other", NULL
23637 };
23638
23639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23642 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23644 {
23645 PyThreadState* __tstate = wxPyBeginAllowThreads();
23646 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23647
23648 wxPyEndAllowThreads(__tstate);
23649 if (PyErr_Occurred()) SWIG_fail;
23650 }
23651 {
23652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23653 }
23654 return resultobj;
23655 fail:
23656 return NULL;
23657 }
23658
23659
23660 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
23661 PyObject *obj;
23662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23663 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23664 Py_INCREF(obj);
23665 return Py_BuildValue((char *)"");
23666 }
23667 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
23668 PyObject *resultobj;
23669 long result;
23670 char *kwnames[] = {
23671 NULL
23672 };
23673
23674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23675 {
23676 PyThreadState* __tstate = wxPyBeginAllowThreads();
23677 result = (long)wxGetLocalTime();
23678
23679 wxPyEndAllowThreads(__tstate);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 }
23682 resultobj = SWIG_FromLong((long)result);
23683 return resultobj;
23684 fail:
23685 return NULL;
23686 }
23687
23688
23689 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
23690 PyObject *resultobj;
23691 long result;
23692 char *kwnames[] = {
23693 NULL
23694 };
23695
23696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23697 {
23698 PyThreadState* __tstate = wxPyBeginAllowThreads();
23699 result = (long)wxGetUTCTime();
23700
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 resultobj = SWIG_FromLong((long)result);
23705 return resultobj;
23706 fail:
23707 return NULL;
23708 }
23709
23710
23711 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
23712 PyObject *resultobj;
23713 long result;
23714 char *kwnames[] = {
23715 NULL
23716 };
23717
23718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23719 {
23720 PyThreadState* __tstate = wxPyBeginAllowThreads();
23721 result = (long)wxGetCurrentTime();
23722
23723 wxPyEndAllowThreads(__tstate);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 }
23726 resultobj = SWIG_FromLong((long)result);
23727 return resultobj;
23728 fail:
23729 return NULL;
23730 }
23731
23732
23733 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
23734 PyObject *resultobj;
23735 wxLongLong result;
23736 char *kwnames[] = {
23737 NULL
23738 };
23739
23740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23741 {
23742 PyThreadState* __tstate = wxPyBeginAllowThreads();
23743 result = wxGetLocalTimeMillis();
23744
23745 wxPyEndAllowThreads(__tstate);
23746 if (PyErr_Occurred()) SWIG_fail;
23747 }
23748 {
23749 PyObject *hi, *lo, *shifter, *shifted;
23750 hi = PyLong_FromLong( (&result)->GetHi() );
23751 lo = PyLong_FromLong( (&result)->GetLo() );
23752 shifter = PyLong_FromLong(32);
23753 shifted = PyNumber_Lshift(hi, shifter);
23754 resultobj = PyNumber_Or(shifted, lo);
23755 Py_DECREF(hi);
23756 Py_DECREF(lo);
23757 Py_DECREF(shifter);
23758 Py_DECREF(shifted);
23759 }
23760 return resultobj;
23761 fail:
23762 return NULL;
23763 }
23764
23765
23766 static int _wrap_DefaultDateTime_set(PyObject *) {
23767 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23768 return 1;
23769 }
23770
23771
23772 static PyObject *_wrap_DefaultDateTime_get() {
23773 PyObject *pyobj;
23774
23775 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23776 return pyobj;
23777 }
23778
23779
23780 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
23781 PyObject *resultobj;
23782 int arg1 ;
23783 wxDataFormat *result;
23784 PyObject * obj0 = 0 ;
23785 char *kwnames[] = {
23786 (char *) "type", NULL
23787 };
23788
23789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23790 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23791 if (PyErr_Occurred()) SWIG_fail;
23792 {
23793 PyThreadState* __tstate = wxPyBeginAllowThreads();
23794 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23795
23796 wxPyEndAllowThreads(__tstate);
23797 if (PyErr_Occurred()) SWIG_fail;
23798 }
23799 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23800 return resultobj;
23801 fail:
23802 return NULL;
23803 }
23804
23805
23806 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
23807 PyObject *resultobj;
23808 wxString *arg1 = 0 ;
23809 wxDataFormat *result;
23810 bool temp1 = False ;
23811 PyObject * obj0 = 0 ;
23812 char *kwnames[] = {
23813 (char *) "format", NULL
23814 };
23815
23816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23817 {
23818 arg1 = wxString_in_helper(obj0);
23819 if (arg1 == NULL) SWIG_fail;
23820 temp1 = True;
23821 }
23822 {
23823 PyThreadState* __tstate = wxPyBeginAllowThreads();
23824 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23825
23826 wxPyEndAllowThreads(__tstate);
23827 if (PyErr_Occurred()) SWIG_fail;
23828 }
23829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23830 {
23831 if (temp1)
23832 delete arg1;
23833 }
23834 return resultobj;
23835 fail:
23836 {
23837 if (temp1)
23838 delete arg1;
23839 }
23840 return NULL;
23841 }
23842
23843
23844 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
23845 PyObject *resultobj;
23846 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23847 PyObject * obj0 = 0 ;
23848 char *kwnames[] = {
23849 (char *) "self", NULL
23850 };
23851
23852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23855 {
23856 PyThreadState* __tstate = wxPyBeginAllowThreads();
23857 delete arg1;
23858
23859 wxPyEndAllowThreads(__tstate);
23860 if (PyErr_Occurred()) SWIG_fail;
23861 }
23862 Py_INCREF(Py_None); resultobj = Py_None;
23863 return resultobj;
23864 fail:
23865 return NULL;
23866 }
23867
23868
23869 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
23870 PyObject *resultobj;
23871 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23872 int arg2 ;
23873 bool result;
23874 PyObject * obj0 = 0 ;
23875 PyObject * obj1 = 0 ;
23876
23877 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23880 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 {
23883 PyThreadState* __tstate = wxPyBeginAllowThreads();
23884 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23885
23886 wxPyEndAllowThreads(__tstate);
23887 if (PyErr_Occurred()) SWIG_fail;
23888 }
23889 {
23890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23891 }
23892 return resultobj;
23893 fail:
23894 return NULL;
23895 }
23896
23897
23898 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
23899 PyObject *resultobj;
23900 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23901 int arg2 ;
23902 bool result;
23903 PyObject * obj0 = 0 ;
23904 PyObject * obj1 = 0 ;
23905
23906 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23909 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23910 if (PyErr_Occurred()) SWIG_fail;
23911 {
23912 PyThreadState* __tstate = wxPyBeginAllowThreads();
23913 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23914
23915 wxPyEndAllowThreads(__tstate);
23916 if (PyErr_Occurred()) SWIG_fail;
23917 }
23918 {
23919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23920 }
23921 return resultobj;
23922 fail:
23923 return NULL;
23924 }
23925
23926
23927 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
23928 PyObject *resultobj;
23929 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23930 wxDataFormat *arg2 = 0 ;
23931 bool result;
23932 PyObject * obj0 = 0 ;
23933 PyObject * obj1 = 0 ;
23934
23935 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23938 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23939 SWIG_POINTER_EXCEPTION | 0)) == -1)
23940 SWIG_fail;
23941 if (arg2 == NULL) {
23942 PyErr_SetString(PyExc_TypeError,"null reference");
23943 SWIG_fail;
23944 }
23945 {
23946 PyThreadState* __tstate = wxPyBeginAllowThreads();
23947 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23948
23949 wxPyEndAllowThreads(__tstate);
23950 if (PyErr_Occurred()) SWIG_fail;
23951 }
23952 {
23953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23954 }
23955 return resultobj;
23956 fail:
23957 return NULL;
23958 }
23959
23960
23961 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23962 int argc;
23963 PyObject *argv[3];
23964 int ii;
23965
23966 argc = PyObject_Length(args);
23967 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23968 argv[ii] = PyTuple_GetItem(args,ii);
23969 }
23970 if (argc == 2) {
23971 int _v;
23972 {
23973 void *ptr;
23974 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23975 _v = 0;
23976 PyErr_Clear();
23977 } else {
23978 _v = 1;
23979 }
23980 }
23981 if (_v) {
23982 {
23983 void *ptr;
23984 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23985 _v = 0;
23986 PyErr_Clear();
23987 } else {
23988 _v = 1;
23989 }
23990 }
23991 if (_v) {
23992 return _wrap_DataFormat___eq____SWIG_1(self,args);
23993 }
23994 }
23995 }
23996 if (argc == 2) {
23997 int _v;
23998 {
23999 void *ptr;
24000 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24001 _v = 0;
24002 PyErr_Clear();
24003 } else {
24004 _v = 1;
24005 }
24006 }
24007 if (_v) {
24008 _v = SWIG_CheckInt(argv[1]);
24009 if (_v) {
24010 return _wrap_DataFormat___eq____SWIG_0(self,args);
24011 }
24012 }
24013 }
24014
24015 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24016 return NULL;
24017 }
24018
24019
24020 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
24021 PyObject *resultobj;
24022 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24023 wxDataFormat *arg2 = 0 ;
24024 bool result;
24025 PyObject * obj0 = 0 ;
24026 PyObject * obj1 = 0 ;
24027
24028 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24032 SWIG_POINTER_EXCEPTION | 0)) == -1)
24033 SWIG_fail;
24034 if (arg2 == NULL) {
24035 PyErr_SetString(PyExc_TypeError,"null reference");
24036 SWIG_fail;
24037 }
24038 {
24039 PyThreadState* __tstate = wxPyBeginAllowThreads();
24040 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24041
24042 wxPyEndAllowThreads(__tstate);
24043 if (PyErr_Occurred()) SWIG_fail;
24044 }
24045 {
24046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24047 }
24048 return resultobj;
24049 fail:
24050 return NULL;
24051 }
24052
24053
24054 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24055 int argc;
24056 PyObject *argv[3];
24057 int ii;
24058
24059 argc = PyObject_Length(args);
24060 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24061 argv[ii] = PyTuple_GetItem(args,ii);
24062 }
24063 if (argc == 2) {
24064 int _v;
24065 {
24066 void *ptr;
24067 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24068 _v = 0;
24069 PyErr_Clear();
24070 } else {
24071 _v = 1;
24072 }
24073 }
24074 if (_v) {
24075 {
24076 void *ptr;
24077 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24078 _v = 0;
24079 PyErr_Clear();
24080 } else {
24081 _v = 1;
24082 }
24083 }
24084 if (_v) {
24085 return _wrap_DataFormat___ne____SWIG_1(self,args);
24086 }
24087 }
24088 }
24089 if (argc == 2) {
24090 int _v;
24091 {
24092 void *ptr;
24093 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24094 _v = 0;
24095 PyErr_Clear();
24096 } else {
24097 _v = 1;
24098 }
24099 }
24100 if (_v) {
24101 _v = SWIG_CheckInt(argv[1]);
24102 if (_v) {
24103 return _wrap_DataFormat___ne____SWIG_0(self,args);
24104 }
24105 }
24106 }
24107
24108 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24109 return NULL;
24110 }
24111
24112
24113 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
24114 PyObject *resultobj;
24115 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24116 int arg2 ;
24117 PyObject * obj0 = 0 ;
24118 PyObject * obj1 = 0 ;
24119 char *kwnames[] = {
24120 (char *) "self",(char *) "format", NULL
24121 };
24122
24123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24126 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 {
24129 PyThreadState* __tstate = wxPyBeginAllowThreads();
24130 (arg1)->SetType((wxDataFormatId )arg2);
24131
24132 wxPyEndAllowThreads(__tstate);
24133 if (PyErr_Occurred()) SWIG_fail;
24134 }
24135 Py_INCREF(Py_None); resultobj = Py_None;
24136 return resultobj;
24137 fail:
24138 return NULL;
24139 }
24140
24141
24142 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
24143 PyObject *resultobj;
24144 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24145 int result;
24146 PyObject * obj0 = 0 ;
24147 char *kwnames[] = {
24148 (char *) "self", NULL
24149 };
24150
24151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24154 {
24155 PyThreadState* __tstate = wxPyBeginAllowThreads();
24156 result = (int)((wxDataFormat const *)arg1)->GetType();
24157
24158 wxPyEndAllowThreads(__tstate);
24159 if (PyErr_Occurred()) SWIG_fail;
24160 }
24161 resultobj = SWIG_FromInt((int)result);
24162 return resultobj;
24163 fail:
24164 return NULL;
24165 }
24166
24167
24168 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24169 PyObject *resultobj;
24170 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24171 wxString result;
24172 PyObject * obj0 = 0 ;
24173 char *kwnames[] = {
24174 (char *) "self", NULL
24175 };
24176
24177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = ((wxDataFormat const *)arg1)->GetId();
24183
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 {
24188 #if wxUSE_UNICODE
24189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24190 #else
24191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24192 #endif
24193 }
24194 return resultobj;
24195 fail:
24196 return NULL;
24197 }
24198
24199
24200 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24201 PyObject *resultobj;
24202 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24203 wxString *arg2 = 0 ;
24204 bool temp2 = False ;
24205 PyObject * obj0 = 0 ;
24206 PyObject * obj1 = 0 ;
24207 char *kwnames[] = {
24208 (char *) "self",(char *) "format", NULL
24209 };
24210
24211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24214 {
24215 arg2 = wxString_in_helper(obj1);
24216 if (arg2 == NULL) SWIG_fail;
24217 temp2 = True;
24218 }
24219 {
24220 PyThreadState* __tstate = wxPyBeginAllowThreads();
24221 (arg1)->SetId((wxString const &)*arg2);
24222
24223 wxPyEndAllowThreads(__tstate);
24224 if (PyErr_Occurred()) SWIG_fail;
24225 }
24226 Py_INCREF(Py_None); resultobj = Py_None;
24227 {
24228 if (temp2)
24229 delete arg2;
24230 }
24231 return resultobj;
24232 fail:
24233 {
24234 if (temp2)
24235 delete arg2;
24236 }
24237 return NULL;
24238 }
24239
24240
24241 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
24242 PyObject *obj;
24243 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24244 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24245 Py_INCREF(obj);
24246 return Py_BuildValue((char *)"");
24247 }
24248 static int _wrap_FormatInvalid_set(PyObject *) {
24249 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24250 return 1;
24251 }
24252
24253
24254 static PyObject *_wrap_FormatInvalid_get() {
24255 PyObject *pyobj;
24256
24257 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24258 return pyobj;
24259 }
24260
24261
24262 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24263 PyObject *resultobj;
24264 wxDataObject *arg1 = (wxDataObject *) 0 ;
24265 PyObject * obj0 = 0 ;
24266 char *kwnames[] = {
24267 (char *) "self", NULL
24268 };
24269
24270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24273 {
24274 PyThreadState* __tstate = wxPyBeginAllowThreads();
24275 delete arg1;
24276
24277 wxPyEndAllowThreads(__tstate);
24278 if (PyErr_Occurred()) SWIG_fail;
24279 }
24280 Py_INCREF(Py_None); resultobj = Py_None;
24281 return resultobj;
24282 fail:
24283 return NULL;
24284 }
24285
24286
24287 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24288 PyObject *resultobj;
24289 wxDataObject *arg1 = (wxDataObject *) 0 ;
24290 int arg2 = (int) wxDataObject::Get ;
24291 SwigValueWrapper< wxDataFormat > result;
24292 PyObject * obj0 = 0 ;
24293 PyObject * obj1 = 0 ;
24294 char *kwnames[] = {
24295 (char *) "self",(char *) "dir", NULL
24296 };
24297
24298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24301 if (obj1) {
24302 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24303 if (PyErr_Occurred()) SWIG_fail;
24304 }
24305 {
24306 PyThreadState* __tstate = wxPyBeginAllowThreads();
24307 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24308
24309 wxPyEndAllowThreads(__tstate);
24310 if (PyErr_Occurred()) SWIG_fail;
24311 }
24312 {
24313 wxDataFormat * resultptr;
24314 resultptr = new wxDataFormat((wxDataFormat &) result);
24315 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24316 }
24317 return resultobj;
24318 fail:
24319 return NULL;
24320 }
24321
24322
24323 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
24324 PyObject *resultobj;
24325 wxDataObject *arg1 = (wxDataObject *) 0 ;
24326 int arg2 = (int) wxDataObject::Get ;
24327 size_t result;
24328 PyObject * obj0 = 0 ;
24329 PyObject * obj1 = 0 ;
24330 char *kwnames[] = {
24331 (char *) "self",(char *) "dir", NULL
24332 };
24333
24334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24337 if (obj1) {
24338 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24339 if (PyErr_Occurred()) SWIG_fail;
24340 }
24341 {
24342 PyThreadState* __tstate = wxPyBeginAllowThreads();
24343 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24344
24345 wxPyEndAllowThreads(__tstate);
24346 if (PyErr_Occurred()) SWIG_fail;
24347 }
24348 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24349 return resultobj;
24350 fail:
24351 return NULL;
24352 }
24353
24354
24355 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
24356 PyObject *resultobj;
24357 wxDataObject *arg1 = (wxDataObject *) 0 ;
24358 wxDataFormat *arg2 = 0 ;
24359 int arg3 = (int) wxDataObject::Get ;
24360 bool result;
24361 PyObject * obj0 = 0 ;
24362 PyObject * obj1 = 0 ;
24363 PyObject * obj2 = 0 ;
24364 char *kwnames[] = {
24365 (char *) "self",(char *) "format",(char *) "dir", NULL
24366 };
24367
24368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24372 SWIG_POINTER_EXCEPTION | 0)) == -1)
24373 SWIG_fail;
24374 if (arg2 == NULL) {
24375 PyErr_SetString(PyExc_TypeError,"null reference");
24376 SWIG_fail;
24377 }
24378 if (obj2) {
24379 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24380 if (PyErr_Occurred()) SWIG_fail;
24381 }
24382 {
24383 PyThreadState* __tstate = wxPyBeginAllowThreads();
24384 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24385
24386 wxPyEndAllowThreads(__tstate);
24387 if (PyErr_Occurred()) SWIG_fail;
24388 }
24389 {
24390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24391 }
24392 return resultobj;
24393 fail:
24394 return NULL;
24395 }
24396
24397
24398 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
24399 PyObject *resultobj;
24400 wxDataObject *arg1 = (wxDataObject *) 0 ;
24401 wxDataFormat *arg2 = 0 ;
24402 size_t result;
24403 PyObject * obj0 = 0 ;
24404 PyObject * obj1 = 0 ;
24405 char *kwnames[] = {
24406 (char *) "self",(char *) "format", NULL
24407 };
24408
24409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24413 SWIG_POINTER_EXCEPTION | 0)) == -1)
24414 SWIG_fail;
24415 if (arg2 == NULL) {
24416 PyErr_SetString(PyExc_TypeError,"null reference");
24417 SWIG_fail;
24418 }
24419 {
24420 PyThreadState* __tstate = wxPyBeginAllowThreads();
24421 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24422
24423 wxPyEndAllowThreads(__tstate);
24424 if (PyErr_Occurred()) SWIG_fail;
24425 }
24426 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24427 return resultobj;
24428 fail:
24429 return NULL;
24430 }
24431
24432
24433 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj;
24435 wxDataObject *arg1 = (wxDataObject *) 0 ;
24436 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24437 int arg3 = (int) wxDataObject::Get ;
24438 PyObject * obj0 = 0 ;
24439 PyObject * obj1 = 0 ;
24440 PyObject * obj2 = 0 ;
24441 char *kwnames[] = {
24442 (char *) "self",(char *) "formats",(char *) "dir", NULL
24443 };
24444
24445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24448 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24450 if (obj2) {
24451 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24452 if (PyErr_Occurred()) SWIG_fail;
24453 }
24454 {
24455 PyThreadState* __tstate = wxPyBeginAllowThreads();
24456 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24457
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 Py_INCREF(Py_None); resultobj = Py_None;
24462 return resultobj;
24463 fail:
24464 return NULL;
24465 }
24466
24467
24468 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
24469 PyObject *resultobj;
24470 wxDataObject *arg1 = (wxDataObject *) 0 ;
24471 wxDataFormat *arg2 = 0 ;
24472 void *arg3 = (void *) 0 ;
24473 bool result;
24474 PyObject * obj0 = 0 ;
24475 PyObject * obj1 = 0 ;
24476 PyObject * obj2 = 0 ;
24477 char *kwnames[] = {
24478 (char *) "self",(char *) "format",(char *) "buf", NULL
24479 };
24480
24481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24485 SWIG_POINTER_EXCEPTION | 0)) == -1)
24486 SWIG_fail;
24487 if (arg2 == NULL) {
24488 PyErr_SetString(PyExc_TypeError,"null reference");
24489 SWIG_fail;
24490 }
24491 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24492 {
24493 PyThreadState* __tstate = wxPyBeginAllowThreads();
24494 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24495
24496 wxPyEndAllowThreads(__tstate);
24497 if (PyErr_Occurred()) SWIG_fail;
24498 }
24499 {
24500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24501 }
24502 return resultobj;
24503 fail:
24504 return NULL;
24505 }
24506
24507
24508 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24509 PyObject *resultobj;
24510 wxDataObject *arg1 = (wxDataObject *) 0 ;
24511 wxDataFormat *arg2 = 0 ;
24512 size_t arg3 ;
24513 void *arg4 = (void *) 0 ;
24514 bool result;
24515 PyObject * obj0 = 0 ;
24516 PyObject * obj1 = 0 ;
24517 PyObject * obj2 = 0 ;
24518 PyObject * obj3 = 0 ;
24519 char *kwnames[] = {
24520 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24521 };
24522
24523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24527 SWIG_POINTER_EXCEPTION | 0)) == -1)
24528 SWIG_fail;
24529 if (arg2 == NULL) {
24530 PyErr_SetString(PyExc_TypeError,"null reference");
24531 SWIG_fail;
24532 }
24533 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24534 if (PyErr_Occurred()) SWIG_fail;
24535 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24539
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 {
24544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24545 }
24546 return resultobj;
24547 fail:
24548 return NULL;
24549 }
24550
24551
24552 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
24553 PyObject *obj;
24554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24555 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24556 Py_INCREF(obj);
24557 return Py_BuildValue((char *)"");
24558 }
24559 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
24560 PyObject *resultobj;
24561 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24562 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24563 wxDataObjectSimple *result;
24564 PyObject * obj0 = 0 ;
24565 char *kwnames[] = {
24566 (char *) "format", NULL
24567 };
24568
24569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24570 if (obj0) {
24571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24572 SWIG_POINTER_EXCEPTION | 0)) == -1)
24573 SWIG_fail;
24574 if (arg1 == NULL) {
24575 PyErr_SetString(PyExc_TypeError,"null reference");
24576 SWIG_fail;
24577 }
24578 }
24579 {
24580 PyThreadState* __tstate = wxPyBeginAllowThreads();
24581 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24582
24583 wxPyEndAllowThreads(__tstate);
24584 if (PyErr_Occurred()) SWIG_fail;
24585 }
24586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24587 return resultobj;
24588 fail:
24589 return NULL;
24590 }
24591
24592
24593 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24594 PyObject *resultobj;
24595 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24596 wxDataFormat *result;
24597 PyObject * obj0 = 0 ;
24598 char *kwnames[] = {
24599 (char *) "self", NULL
24600 };
24601
24602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24605 {
24606 PyThreadState* __tstate = wxPyBeginAllowThreads();
24607 {
24608 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24609 result = (wxDataFormat *) &_result_ref;
24610 }
24611
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24616 return resultobj;
24617 fail:
24618 return NULL;
24619 }
24620
24621
24622 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24623 PyObject *resultobj;
24624 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24625 wxDataFormat *arg2 = 0 ;
24626 PyObject * obj0 = 0 ;
24627 PyObject * obj1 = 0 ;
24628 char *kwnames[] = {
24629 (char *) "self",(char *) "format", NULL
24630 };
24631
24632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24636 SWIG_POINTER_EXCEPTION | 0)) == -1)
24637 SWIG_fail;
24638 if (arg2 == NULL) {
24639 PyErr_SetString(PyExc_TypeError,"null reference");
24640 SWIG_fail;
24641 }
24642 {
24643 PyThreadState* __tstate = wxPyBeginAllowThreads();
24644 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24645
24646 wxPyEndAllowThreads(__tstate);
24647 if (PyErr_Occurred()) SWIG_fail;
24648 }
24649 Py_INCREF(Py_None); resultobj = Py_None;
24650 return resultobj;
24651 fail:
24652 return NULL;
24653 }
24654
24655
24656 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
24657 PyObject *obj;
24658 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24659 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24660 Py_INCREF(obj);
24661 return Py_BuildValue((char *)"");
24662 }
24663 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
24664 PyObject *resultobj;
24665 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24666 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24667 wxPyDataObjectSimple *result;
24668 PyObject * obj0 = 0 ;
24669 char *kwnames[] = {
24670 (char *) "format", NULL
24671 };
24672
24673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24674 if (obj0) {
24675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24676 SWIG_POINTER_EXCEPTION | 0)) == -1)
24677 SWIG_fail;
24678 if (arg1 == NULL) {
24679 PyErr_SetString(PyExc_TypeError,"null reference");
24680 SWIG_fail;
24681 }
24682 }
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24686
24687 wxPyEndAllowThreads(__tstate);
24688 if (PyErr_Occurred()) SWIG_fail;
24689 }
24690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24691 return resultobj;
24692 fail:
24693 return NULL;
24694 }
24695
24696
24697 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
24698 PyObject *resultobj;
24699 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24700 PyObject *arg2 = (PyObject *) 0 ;
24701 PyObject *arg3 = (PyObject *) 0 ;
24702 PyObject * obj0 = 0 ;
24703 PyObject * obj1 = 0 ;
24704 PyObject * obj2 = 0 ;
24705 char *kwnames[] = {
24706 (char *) "self",(char *) "self",(char *) "_class", NULL
24707 };
24708
24709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24712 arg2 = obj1;
24713 arg3 = obj2;
24714 {
24715 PyThreadState* __tstate = wxPyBeginAllowThreads();
24716 (arg1)->_setCallbackInfo(arg2,arg3);
24717
24718 wxPyEndAllowThreads(__tstate);
24719 if (PyErr_Occurred()) SWIG_fail;
24720 }
24721 Py_INCREF(Py_None); resultobj = Py_None;
24722 return resultobj;
24723 fail:
24724 return NULL;
24725 }
24726
24727
24728 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
24729 PyObject *obj;
24730 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24731 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24732 Py_INCREF(obj);
24733 return Py_BuildValue((char *)"");
24734 }
24735 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
24736 PyObject *resultobj;
24737 wxDataObjectComposite *result;
24738 char *kwnames[] = {
24739 NULL
24740 };
24741
24742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24743 {
24744 PyThreadState* __tstate = wxPyBeginAllowThreads();
24745 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24746
24747 wxPyEndAllowThreads(__tstate);
24748 if (PyErr_Occurred()) SWIG_fail;
24749 }
24750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24751 return resultobj;
24752 fail:
24753 return NULL;
24754 }
24755
24756
24757 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
24758 PyObject *resultobj;
24759 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24760 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24761 int arg3 = (int) False ;
24762 PyObject * obj0 = 0 ;
24763 PyObject * obj1 = 0 ;
24764 PyObject * obj2 = 0 ;
24765 char *kwnames[] = {
24766 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24767 };
24768
24769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24773 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24774 if (obj2) {
24775 arg3 = (int) SWIG_AsInt(obj2);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 {
24779 PyThreadState* __tstate = wxPyBeginAllowThreads();
24780 (arg1)->Add(arg2,arg3);
24781
24782 wxPyEndAllowThreads(__tstate);
24783 if (PyErr_Occurred()) SWIG_fail;
24784 }
24785 Py_INCREF(Py_None); resultobj = Py_None;
24786 return resultobj;
24787 fail:
24788 return NULL;
24789 }
24790
24791
24792 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
24793 PyObject *obj;
24794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24795 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24796 Py_INCREF(obj);
24797 return Py_BuildValue((char *)"");
24798 }
24799 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24800 PyObject *resultobj;
24801 wxString const &arg1_defvalue = wxPyEmptyString ;
24802 wxString *arg1 = (wxString *) &arg1_defvalue ;
24803 wxTextDataObject *result;
24804 bool temp1 = False ;
24805 PyObject * obj0 = 0 ;
24806 char *kwnames[] = {
24807 (char *) "text", NULL
24808 };
24809
24810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24811 if (obj0) {
24812 {
24813 arg1 = wxString_in_helper(obj0);
24814 if (arg1 == NULL) SWIG_fail;
24815 temp1 = True;
24816 }
24817 }
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24821
24822 wxPyEndAllowThreads(__tstate);
24823 if (PyErr_Occurred()) SWIG_fail;
24824 }
24825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24826 {
24827 if (temp1)
24828 delete arg1;
24829 }
24830 return resultobj;
24831 fail:
24832 {
24833 if (temp1)
24834 delete arg1;
24835 }
24836 return NULL;
24837 }
24838
24839
24840 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
24841 PyObject *resultobj;
24842 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24843 size_t result;
24844 PyObject * obj0 = 0 ;
24845 char *kwnames[] = {
24846 (char *) "self", NULL
24847 };
24848
24849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24852 {
24853 PyThreadState* __tstate = wxPyBeginAllowThreads();
24854 result = (size_t)(arg1)->GetTextLength();
24855
24856 wxPyEndAllowThreads(__tstate);
24857 if (PyErr_Occurred()) SWIG_fail;
24858 }
24859 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24860 return resultobj;
24861 fail:
24862 return NULL;
24863 }
24864
24865
24866 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
24867 PyObject *resultobj;
24868 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24869 wxString result;
24870 PyObject * obj0 = 0 ;
24871 char *kwnames[] = {
24872 (char *) "self", NULL
24873 };
24874
24875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24878 {
24879 PyThreadState* __tstate = wxPyBeginAllowThreads();
24880 result = (arg1)->GetText();
24881
24882 wxPyEndAllowThreads(__tstate);
24883 if (PyErr_Occurred()) SWIG_fail;
24884 }
24885 {
24886 #if wxUSE_UNICODE
24887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24888 #else
24889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24890 #endif
24891 }
24892 return resultobj;
24893 fail:
24894 return NULL;
24895 }
24896
24897
24898 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
24899 PyObject *resultobj;
24900 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24901 wxString *arg2 = 0 ;
24902 bool temp2 = False ;
24903 PyObject * obj0 = 0 ;
24904 PyObject * obj1 = 0 ;
24905 char *kwnames[] = {
24906 (char *) "self",(char *) "text", NULL
24907 };
24908
24909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24912 {
24913 arg2 = wxString_in_helper(obj1);
24914 if (arg2 == NULL) SWIG_fail;
24915 temp2 = True;
24916 }
24917 {
24918 PyThreadState* __tstate = wxPyBeginAllowThreads();
24919 (arg1)->SetText((wxString const &)*arg2);
24920
24921 wxPyEndAllowThreads(__tstate);
24922 if (PyErr_Occurred()) SWIG_fail;
24923 }
24924 Py_INCREF(Py_None); resultobj = Py_None;
24925 {
24926 if (temp2)
24927 delete arg2;
24928 }
24929 return resultobj;
24930 fail:
24931 {
24932 if (temp2)
24933 delete arg2;
24934 }
24935 return NULL;
24936 }
24937
24938
24939 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
24940 PyObject *obj;
24941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24942 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24943 Py_INCREF(obj);
24944 return Py_BuildValue((char *)"");
24945 }
24946 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24947 PyObject *resultobj;
24948 wxString const &arg1_defvalue = wxPyEmptyString ;
24949 wxString *arg1 = (wxString *) &arg1_defvalue ;
24950 wxPyTextDataObject *result;
24951 bool temp1 = False ;
24952 PyObject * obj0 = 0 ;
24953 char *kwnames[] = {
24954 (char *) "text", NULL
24955 };
24956
24957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24958 if (obj0) {
24959 {
24960 arg1 = wxString_in_helper(obj0);
24961 if (arg1 == NULL) SWIG_fail;
24962 temp1 = True;
24963 }
24964 }
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24968
24969 wxPyEndAllowThreads(__tstate);
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24973 {
24974 if (temp1)
24975 delete arg1;
24976 }
24977 return resultobj;
24978 fail:
24979 {
24980 if (temp1)
24981 delete arg1;
24982 }
24983 return NULL;
24984 }
24985
24986
24987 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
24988 PyObject *resultobj;
24989 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24990 PyObject *arg2 = (PyObject *) 0 ;
24991 PyObject *arg3 = (PyObject *) 0 ;
24992 PyObject * obj0 = 0 ;
24993 PyObject * obj1 = 0 ;
24994 PyObject * obj2 = 0 ;
24995 char *kwnames[] = {
24996 (char *) "self",(char *) "self",(char *) "_class", NULL
24997 };
24998
24999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25002 arg2 = obj1;
25003 arg3 = obj2;
25004 {
25005 PyThreadState* __tstate = wxPyBeginAllowThreads();
25006 (arg1)->_setCallbackInfo(arg2,arg3);
25007
25008 wxPyEndAllowThreads(__tstate);
25009 if (PyErr_Occurred()) SWIG_fail;
25010 }
25011 Py_INCREF(Py_None); resultobj = Py_None;
25012 return resultobj;
25013 fail:
25014 return NULL;
25015 }
25016
25017
25018 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
25019 PyObject *obj;
25020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25021 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25022 Py_INCREF(obj);
25023 return Py_BuildValue((char *)"");
25024 }
25025 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25026 PyObject *resultobj;
25027 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25028 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25029 wxBitmapDataObject *result;
25030 PyObject * obj0 = 0 ;
25031 char *kwnames[] = {
25032 (char *) "bitmap", NULL
25033 };
25034
25035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25036 if (obj0) {
25037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25038 SWIG_POINTER_EXCEPTION | 0)) == -1)
25039 SWIG_fail;
25040 if (arg1 == NULL) {
25041 PyErr_SetString(PyExc_TypeError,"null reference");
25042 SWIG_fail;
25043 }
25044 }
25045 {
25046 PyThreadState* __tstate = wxPyBeginAllowThreads();
25047 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25048
25049 wxPyEndAllowThreads(__tstate);
25050 if (PyErr_Occurred()) SWIG_fail;
25051 }
25052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25053 return resultobj;
25054 fail:
25055 return NULL;
25056 }
25057
25058
25059 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25060 PyObject *resultobj;
25061 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25062 wxBitmap result;
25063 PyObject * obj0 = 0 ;
25064 char *kwnames[] = {
25065 (char *) "self", NULL
25066 };
25067
25068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25071 {
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
25073 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25074
25075 wxPyEndAllowThreads(__tstate);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 {
25079 wxBitmap * resultptr;
25080 resultptr = new wxBitmap((wxBitmap &) result);
25081 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25082 }
25083 return resultobj;
25084 fail:
25085 return NULL;
25086 }
25087
25088
25089 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25090 PyObject *resultobj;
25091 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25092 wxBitmap *arg2 = 0 ;
25093 PyObject * obj0 = 0 ;
25094 PyObject * obj1 = 0 ;
25095 char *kwnames[] = {
25096 (char *) "self",(char *) "bitmap", NULL
25097 };
25098
25099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25103 SWIG_POINTER_EXCEPTION | 0)) == -1)
25104 SWIG_fail;
25105 if (arg2 == NULL) {
25106 PyErr_SetString(PyExc_TypeError,"null reference");
25107 SWIG_fail;
25108 }
25109 {
25110 PyThreadState* __tstate = wxPyBeginAllowThreads();
25111 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25112
25113 wxPyEndAllowThreads(__tstate);
25114 if (PyErr_Occurred()) SWIG_fail;
25115 }
25116 Py_INCREF(Py_None); resultobj = Py_None;
25117 return resultobj;
25118 fail:
25119 return NULL;
25120 }
25121
25122
25123 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
25124 PyObject *obj;
25125 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25126 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25127 Py_INCREF(obj);
25128 return Py_BuildValue((char *)"");
25129 }
25130 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25131 PyObject *resultobj;
25132 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25133 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25134 wxPyBitmapDataObject *result;
25135 PyObject * obj0 = 0 ;
25136 char *kwnames[] = {
25137 (char *) "bitmap", NULL
25138 };
25139
25140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25141 if (obj0) {
25142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25143 SWIG_POINTER_EXCEPTION | 0)) == -1)
25144 SWIG_fail;
25145 if (arg1 == NULL) {
25146 PyErr_SetString(PyExc_TypeError,"null reference");
25147 SWIG_fail;
25148 }
25149 }
25150 {
25151 PyThreadState* __tstate = wxPyBeginAllowThreads();
25152 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25153
25154 wxPyEndAllowThreads(__tstate);
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25158 return resultobj;
25159 fail:
25160 return NULL;
25161 }
25162
25163
25164 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25165 PyObject *resultobj;
25166 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25167 PyObject *arg2 = (PyObject *) 0 ;
25168 PyObject *arg3 = (PyObject *) 0 ;
25169 PyObject * obj0 = 0 ;
25170 PyObject * obj1 = 0 ;
25171 PyObject * obj2 = 0 ;
25172 char *kwnames[] = {
25173 (char *) "self",(char *) "self",(char *) "_class", NULL
25174 };
25175
25176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25179 arg2 = obj1;
25180 arg3 = obj2;
25181 {
25182 PyThreadState* __tstate = wxPyBeginAllowThreads();
25183 (arg1)->_setCallbackInfo(arg2,arg3);
25184
25185 wxPyEndAllowThreads(__tstate);
25186 if (PyErr_Occurred()) SWIG_fail;
25187 }
25188 Py_INCREF(Py_None); resultobj = Py_None;
25189 return resultobj;
25190 fail:
25191 return NULL;
25192 }
25193
25194
25195 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
25196 PyObject *obj;
25197 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25198 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25199 Py_INCREF(obj);
25200 return Py_BuildValue((char *)"");
25201 }
25202 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25203 PyObject *resultobj;
25204 wxFileDataObject *result;
25205 char *kwnames[] = {
25206 NULL
25207 };
25208
25209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25210 {
25211 PyThreadState* __tstate = wxPyBeginAllowThreads();
25212 result = (wxFileDataObject *)new wxFileDataObject();
25213
25214 wxPyEndAllowThreads(__tstate);
25215 if (PyErr_Occurred()) SWIG_fail;
25216 }
25217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25218 return resultobj;
25219 fail:
25220 return NULL;
25221 }
25222
25223
25224 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
25225 PyObject *resultobj;
25226 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25227 wxArrayString *result;
25228 PyObject * obj0 = 0 ;
25229 char *kwnames[] = {
25230 (char *) "self", NULL
25231 };
25232
25233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25236 {
25237 PyThreadState* __tstate = wxPyBeginAllowThreads();
25238 {
25239 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25240 result = (wxArrayString *) &_result_ref;
25241 }
25242
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 {
25247 resultobj = wxArrayString2PyList_helper(*result);
25248 }
25249 return resultobj;
25250 fail:
25251 return NULL;
25252 }
25253
25254
25255 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
25256 PyObject *resultobj;
25257 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25258 wxString *arg2 = 0 ;
25259 bool temp2 = False ;
25260 PyObject * obj0 = 0 ;
25261 PyObject * obj1 = 0 ;
25262 char *kwnames[] = {
25263 (char *) "self",(char *) "filename", NULL
25264 };
25265
25266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25269 {
25270 arg2 = wxString_in_helper(obj1);
25271 if (arg2 == NULL) SWIG_fail;
25272 temp2 = True;
25273 }
25274 {
25275 PyThreadState* __tstate = wxPyBeginAllowThreads();
25276 (arg1)->AddFile((wxString const &)*arg2);
25277
25278 wxPyEndAllowThreads(__tstate);
25279 if (PyErr_Occurred()) SWIG_fail;
25280 }
25281 Py_INCREF(Py_None); resultobj = Py_None;
25282 {
25283 if (temp2)
25284 delete arg2;
25285 }
25286 return resultobj;
25287 fail:
25288 {
25289 if (temp2)
25290 delete arg2;
25291 }
25292 return NULL;
25293 }
25294
25295
25296 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
25297 PyObject *obj;
25298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25299 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25300 Py_INCREF(obj);
25301 return Py_BuildValue((char *)"");
25302 }
25303 static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25304 PyObject *resultobj;
25305 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25306 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25307 wxCustomDataObject *result;
25308 PyObject * obj0 = 0 ;
25309 char *kwnames[] = {
25310 (char *) "format", NULL
25311 };
25312
25313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25314 if (obj0) {
25315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25316 SWIG_POINTER_EXCEPTION | 0)) == -1)
25317 SWIG_fail;
25318 if (arg1 == NULL) {
25319 PyErr_SetString(PyExc_TypeError,"null reference");
25320 SWIG_fail;
25321 }
25322 }
25323 {
25324 PyThreadState* __tstate = wxPyBeginAllowThreads();
25325 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25326
25327 wxPyEndAllowThreads(__tstate);
25328 if (PyErr_Occurred()) SWIG_fail;
25329 }
25330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25331 return resultobj;
25332 fail:
25333 return NULL;
25334 }
25335
25336
25337 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *, PyObject *args, PyObject *kwargs) {
25338 PyObject *resultobj;
25339 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25340 PyObject *arg2 = (PyObject *) 0 ;
25341 PyObject * obj0 = 0 ;
25342 PyObject * obj1 = 0 ;
25343 char *kwnames[] = {
25344 (char *) "self",(char *) "data", NULL
25345 };
25346
25347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25350 arg2 = obj1;
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 wxCustomDataObject_TakeData(arg1,arg2);
25354
25355 wxPyEndAllowThreads(__tstate);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 Py_INCREF(Py_None); resultobj = Py_None;
25359 return resultobj;
25360 fail:
25361 return NULL;
25362 }
25363
25364
25365 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25366 PyObject *resultobj;
25367 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25368 PyObject *arg2 = (PyObject *) 0 ;
25369 bool result;
25370 PyObject * obj0 = 0 ;
25371 PyObject * obj1 = 0 ;
25372 char *kwnames[] = {
25373 (char *) "self",(char *) "data", NULL
25374 };
25375
25376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25379 arg2 = obj1;
25380 {
25381 PyThreadState* __tstate = wxPyBeginAllowThreads();
25382 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25383
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 {
25388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25389 }
25390 return resultobj;
25391 fail:
25392 return NULL;
25393 }
25394
25395
25396 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
25397 PyObject *resultobj;
25398 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25399 size_t result;
25400 PyObject * obj0 = 0 ;
25401 char *kwnames[] = {
25402 (char *) "self", NULL
25403 };
25404
25405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25408 {
25409 PyThreadState* __tstate = wxPyBeginAllowThreads();
25410 result = (size_t)(arg1)->GetSize();
25411
25412 wxPyEndAllowThreads(__tstate);
25413 if (PyErr_Occurred()) SWIG_fail;
25414 }
25415 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25416 return resultobj;
25417 fail:
25418 return NULL;
25419 }
25420
25421
25422 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25423 PyObject *resultobj;
25424 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25425 PyObject *result;
25426 PyObject * obj0 = 0 ;
25427 char *kwnames[] = {
25428 (char *) "self", NULL
25429 };
25430
25431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25434 {
25435 PyThreadState* __tstate = wxPyBeginAllowThreads();
25436 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25437
25438 wxPyEndAllowThreads(__tstate);
25439 if (PyErr_Occurred()) SWIG_fail;
25440 }
25441 resultobj = result;
25442 return resultobj;
25443 fail:
25444 return NULL;
25445 }
25446
25447
25448 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
25449 PyObject *obj;
25450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25451 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25452 Py_INCREF(obj);
25453 return Py_BuildValue((char *)"");
25454 }
25455 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25456 PyObject *resultobj;
25457 wxURLDataObject *result;
25458 char *kwnames[] = {
25459 NULL
25460 };
25461
25462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25463 {
25464 PyThreadState* __tstate = wxPyBeginAllowThreads();
25465 result = (wxURLDataObject *)new wxURLDataObject();
25466
25467 wxPyEndAllowThreads(__tstate);
25468 if (PyErr_Occurred()) SWIG_fail;
25469 }
25470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25471 return resultobj;
25472 fail:
25473 return NULL;
25474 }
25475
25476
25477 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25478 PyObject *resultobj;
25479 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25480 wxString result;
25481 PyObject * obj0 = 0 ;
25482 char *kwnames[] = {
25483 (char *) "self", NULL
25484 };
25485
25486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25489 {
25490 PyThreadState* __tstate = wxPyBeginAllowThreads();
25491 result = (arg1)->GetURL();
25492
25493 wxPyEndAllowThreads(__tstate);
25494 if (PyErr_Occurred()) SWIG_fail;
25495 }
25496 {
25497 #if wxUSE_UNICODE
25498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25499 #else
25500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25501 #endif
25502 }
25503 return resultobj;
25504 fail:
25505 return NULL;
25506 }
25507
25508
25509 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25510 PyObject *resultobj;
25511 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25512 wxString *arg2 = 0 ;
25513 bool temp2 = False ;
25514 PyObject * obj0 = 0 ;
25515 PyObject * obj1 = 0 ;
25516 char *kwnames[] = {
25517 (char *) "self",(char *) "url", NULL
25518 };
25519
25520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25523 {
25524 arg2 = wxString_in_helper(obj1);
25525 if (arg2 == NULL) SWIG_fail;
25526 temp2 = True;
25527 }
25528 {
25529 PyThreadState* __tstate = wxPyBeginAllowThreads();
25530 (arg1)->SetURL((wxString const &)*arg2);
25531
25532 wxPyEndAllowThreads(__tstate);
25533 if (PyErr_Occurred()) SWIG_fail;
25534 }
25535 Py_INCREF(Py_None); resultobj = Py_None;
25536 {
25537 if (temp2)
25538 delete arg2;
25539 }
25540 return resultobj;
25541 fail:
25542 {
25543 if (temp2)
25544 delete arg2;
25545 }
25546 return NULL;
25547 }
25548
25549
25550 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
25551 PyObject *obj;
25552 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25553 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25554 Py_INCREF(obj);
25555 return Py_BuildValue((char *)"");
25556 }
25557 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25558 PyObject *resultobj;
25559 wxMetafileDataObject *result;
25560 char *kwnames[] = {
25561 NULL
25562 };
25563
25564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25565 {
25566 PyThreadState* __tstate = wxPyBeginAllowThreads();
25567 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25568
25569 wxPyEndAllowThreads(__tstate);
25570 if (PyErr_Occurred()) SWIG_fail;
25571 }
25572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25573 return resultobj;
25574 fail:
25575 return NULL;
25576 }
25577
25578
25579 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
25580 PyObject *resultobj;
25581 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25582 wxMetafile *arg2 = 0 ;
25583 PyObject * obj0 = 0 ;
25584 PyObject * obj1 = 0 ;
25585 char *kwnames[] = {
25586 (char *) "self",(char *) "metafile", NULL
25587 };
25588
25589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25593 SWIG_POINTER_EXCEPTION | 0)) == -1)
25594 SWIG_fail;
25595 if (arg2 == NULL) {
25596 PyErr_SetString(PyExc_TypeError,"null reference");
25597 SWIG_fail;
25598 }
25599 {
25600 PyThreadState* __tstate = wxPyBeginAllowThreads();
25601 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25602
25603 wxPyEndAllowThreads(__tstate);
25604 if (PyErr_Occurred()) SWIG_fail;
25605 }
25606 Py_INCREF(Py_None); resultobj = Py_None;
25607 return resultobj;
25608 fail:
25609 return NULL;
25610 }
25611
25612
25613 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
25614 PyObject *resultobj;
25615 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25616 wxMetafile result;
25617 PyObject * obj0 = 0 ;
25618 char *kwnames[] = {
25619 (char *) "self", NULL
25620 };
25621
25622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25625 {
25626 PyThreadState* __tstate = wxPyBeginAllowThreads();
25627 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25628
25629 wxPyEndAllowThreads(__tstate);
25630 if (PyErr_Occurred()) SWIG_fail;
25631 }
25632 {
25633 wxMetafile * resultptr;
25634 resultptr = new wxMetafile((wxMetafile &) result);
25635 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25636 }
25637 return resultobj;
25638 fail:
25639 return NULL;
25640 }
25641
25642
25643 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
25644 PyObject *obj;
25645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25646 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25647 Py_INCREF(obj);
25648 return Py_BuildValue((char *)"");
25649 }
25650 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
25651 PyObject *resultobj;
25652 int arg1 ;
25653 bool result;
25654 PyObject * obj0 = 0 ;
25655 char *kwnames[] = {
25656 (char *) "res", NULL
25657 };
25658
25659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25660 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25661 if (PyErr_Occurred()) SWIG_fail;
25662 {
25663 PyThreadState* __tstate = wxPyBeginAllowThreads();
25664 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25665
25666 wxPyEndAllowThreads(__tstate);
25667 if (PyErr_Occurred()) SWIG_fail;
25668 }
25669 {
25670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25671 }
25672 return resultobj;
25673 fail:
25674 return NULL;
25675 }
25676
25677
25678 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
25679 PyObject *resultobj;
25680 wxWindow *arg1 = (wxWindow *) 0 ;
25681 wxCursor const &arg2_defvalue = wxNullCursor ;
25682 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25683 wxCursor const &arg3_defvalue = wxNullCursor ;
25684 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25685 wxCursor const &arg4_defvalue = wxNullCursor ;
25686 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25687 wxPyDropSource *result;
25688 PyObject * obj0 = 0 ;
25689 PyObject * obj1 = 0 ;
25690 PyObject * obj2 = 0 ;
25691 PyObject * obj3 = 0 ;
25692 char *kwnames[] = {
25693 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25694 };
25695
25696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25699 if (obj1) {
25700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25701 SWIG_POINTER_EXCEPTION | 0)) == -1)
25702 SWIG_fail;
25703 if (arg2 == NULL) {
25704 PyErr_SetString(PyExc_TypeError,"null reference");
25705 SWIG_fail;
25706 }
25707 }
25708 if (obj2) {
25709 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25710 SWIG_POINTER_EXCEPTION | 0)) == -1)
25711 SWIG_fail;
25712 if (arg3 == NULL) {
25713 PyErr_SetString(PyExc_TypeError,"null reference");
25714 SWIG_fail;
25715 }
25716 }
25717 if (obj3) {
25718 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25719 SWIG_POINTER_EXCEPTION | 0)) == -1)
25720 SWIG_fail;
25721 if (arg4 == NULL) {
25722 PyErr_SetString(PyExc_TypeError,"null reference");
25723 SWIG_fail;
25724 }
25725 }
25726 {
25727 PyThreadState* __tstate = wxPyBeginAllowThreads();
25728 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25729
25730 wxPyEndAllowThreads(__tstate);
25731 if (PyErr_Occurred()) SWIG_fail;
25732 }
25733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25734 return resultobj;
25735 fail:
25736 return NULL;
25737 }
25738
25739
25740 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25741 PyObject *resultobj;
25742 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25743 PyObject *arg2 = (PyObject *) 0 ;
25744 PyObject *arg3 = (PyObject *) 0 ;
25745 int arg4 ;
25746 PyObject * obj0 = 0 ;
25747 PyObject * obj1 = 0 ;
25748 PyObject * obj2 = 0 ;
25749 PyObject * obj3 = 0 ;
25750 char *kwnames[] = {
25751 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25752 };
25753
25754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25757 arg2 = obj1;
25758 arg3 = obj2;
25759 arg4 = (int) SWIG_AsInt(obj3);
25760 if (PyErr_Occurred()) SWIG_fail;
25761 {
25762 PyThreadState* __tstate = wxPyBeginAllowThreads();
25763 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25764
25765 wxPyEndAllowThreads(__tstate);
25766 if (PyErr_Occurred()) SWIG_fail;
25767 }
25768 Py_INCREF(Py_None); resultobj = Py_None;
25769 return resultobj;
25770 fail:
25771 return NULL;
25772 }
25773
25774
25775 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
25776 PyObject *resultobj;
25777 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25778 PyObject * obj0 = 0 ;
25779 char *kwnames[] = {
25780 (char *) "self", NULL
25781 };
25782
25783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 delete arg1;
25789
25790 wxPyEndAllowThreads(__tstate);
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
25793 Py_INCREF(Py_None); resultobj = Py_None;
25794 return resultobj;
25795 fail:
25796 return NULL;
25797 }
25798
25799
25800 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25801 PyObject *resultobj;
25802 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25803 wxDataObject *arg2 = 0 ;
25804 PyObject * obj0 = 0 ;
25805 PyObject * obj1 = 0 ;
25806 char *kwnames[] = {
25807 (char *) "self",(char *) "data", NULL
25808 };
25809
25810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25814 SWIG_POINTER_EXCEPTION | 0)) == -1)
25815 SWIG_fail;
25816 if (arg2 == NULL) {
25817 PyErr_SetString(PyExc_TypeError,"null reference");
25818 SWIG_fail;
25819 }
25820 {
25821 PyThreadState* __tstate = wxPyBeginAllowThreads();
25822 (arg1)->SetData(*arg2);
25823
25824 wxPyEndAllowThreads(__tstate);
25825 if (PyErr_Occurred()) SWIG_fail;
25826 }
25827 Py_INCREF(Py_None); resultobj = Py_None;
25828 return resultobj;
25829 fail:
25830 return NULL;
25831 }
25832
25833
25834 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25835 PyObject *resultobj;
25836 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25837 wxDataObject *result;
25838 PyObject * obj0 = 0 ;
25839 char *kwnames[] = {
25840 (char *) "self", NULL
25841 };
25842
25843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25846 {
25847 PyThreadState* __tstate = wxPyBeginAllowThreads();
25848 result = (wxDataObject *)(arg1)->GetDataObject();
25849
25850 wxPyEndAllowThreads(__tstate);
25851 if (PyErr_Occurred()) SWIG_fail;
25852 }
25853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25854 return resultobj;
25855 fail:
25856 return NULL;
25857 }
25858
25859
25860 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
25861 PyObject *resultobj;
25862 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25863 int arg2 ;
25864 wxCursor *arg3 = 0 ;
25865 PyObject * obj0 = 0 ;
25866 PyObject * obj1 = 0 ;
25867 PyObject * obj2 = 0 ;
25868 char *kwnames[] = {
25869 (char *) "self",(char *) "res",(char *) "cursor", NULL
25870 };
25871
25872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25875 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25876 if (PyErr_Occurred()) SWIG_fail;
25877 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25878 SWIG_POINTER_EXCEPTION | 0)) == -1)
25879 SWIG_fail;
25880 if (arg3 == NULL) {
25881 PyErr_SetString(PyExc_TypeError,"null reference");
25882 SWIG_fail;
25883 }
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25887
25888 wxPyEndAllowThreads(__tstate);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
25891 Py_INCREF(Py_None); resultobj = Py_None;
25892 return resultobj;
25893 fail:
25894 return NULL;
25895 }
25896
25897
25898 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
25899 PyObject *resultobj;
25900 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25901 int arg2 = (int) wxDrag_CopyOnly ;
25902 int result;
25903 PyObject * obj0 = 0 ;
25904 PyObject * obj1 = 0 ;
25905 char *kwnames[] = {
25906 (char *) "self",(char *) "flags", NULL
25907 };
25908
25909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25912 if (obj1) {
25913 arg2 = (int) SWIG_AsInt(obj1);
25914 if (PyErr_Occurred()) SWIG_fail;
25915 }
25916 {
25917 PyThreadState* __tstate = wxPyBeginAllowThreads();
25918 result = (int)(arg1)->DoDragDrop(arg2);
25919
25920 wxPyEndAllowThreads(__tstate);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 }
25923 resultobj = SWIG_FromInt((int)result);
25924 return resultobj;
25925 fail:
25926 return NULL;
25927 }
25928
25929
25930 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
25931 PyObject *resultobj;
25932 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25933 int arg2 ;
25934 bool result;
25935 PyObject * obj0 = 0 ;
25936 PyObject * obj1 = 0 ;
25937 char *kwnames[] = {
25938 (char *) "self",(char *) "effect", NULL
25939 };
25940
25941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25944 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25945 if (PyErr_Occurred()) SWIG_fail;
25946 {
25947 PyThreadState* __tstate = wxPyBeginAllowThreads();
25948 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25949
25950 wxPyEndAllowThreads(__tstate);
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 {
25954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25955 }
25956 return resultobj;
25957 fail:
25958 return NULL;
25959 }
25960
25961
25962 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
25963 PyObject *obj;
25964 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25965 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25966 Py_INCREF(obj);
25967 return Py_BuildValue((char *)"");
25968 }
25969 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj;
25971 wxDataObject *arg1 = (wxDataObject *) NULL ;
25972 wxPyDropTarget *result;
25973 PyObject * obj0 = 0 ;
25974 char *kwnames[] = {
25975 (char *) "dataObject", NULL
25976 };
25977
25978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25979 if (obj0) {
25980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25981 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25982 }
25983 {
25984 PyThreadState* __tstate = wxPyBeginAllowThreads();
25985 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25986
25987 wxPyEndAllowThreads(__tstate);
25988 if (PyErr_Occurred()) SWIG_fail;
25989 }
25990 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25991 return resultobj;
25992 fail:
25993 return NULL;
25994 }
25995
25996
25997 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25998 PyObject *resultobj;
25999 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26000 PyObject *arg2 = (PyObject *) 0 ;
26001 PyObject *arg3 = (PyObject *) 0 ;
26002 PyObject * obj0 = 0 ;
26003 PyObject * obj1 = 0 ;
26004 PyObject * obj2 = 0 ;
26005 char *kwnames[] = {
26006 (char *) "self",(char *) "self",(char *) "_class", NULL
26007 };
26008
26009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26012 arg2 = obj1;
26013 arg3 = obj2;
26014 {
26015 PyThreadState* __tstate = wxPyBeginAllowThreads();
26016 (arg1)->_setCallbackInfo(arg2,arg3);
26017
26018 wxPyEndAllowThreads(__tstate);
26019 if (PyErr_Occurred()) SWIG_fail;
26020 }
26021 Py_INCREF(Py_None); resultobj = Py_None;
26022 return resultobj;
26023 fail:
26024 return NULL;
26025 }
26026
26027
26028 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26029 PyObject *resultobj;
26030 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26031 PyObject * obj0 = 0 ;
26032 char *kwnames[] = {
26033 (char *) "self", NULL
26034 };
26035
26036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26039 {
26040 PyThreadState* __tstate = wxPyBeginAllowThreads();
26041 delete arg1;
26042
26043 wxPyEndAllowThreads(__tstate);
26044 if (PyErr_Occurred()) SWIG_fail;
26045 }
26046 Py_INCREF(Py_None); resultobj = Py_None;
26047 return resultobj;
26048 fail:
26049 return NULL;
26050 }
26051
26052
26053 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26054 PyObject *resultobj;
26055 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26056 wxDataObject *result;
26057 PyObject * obj0 = 0 ;
26058 char *kwnames[] = {
26059 (char *) "self", NULL
26060 };
26061
26062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 result = (wxDataObject *)(arg1)->GetDataObject();
26068
26069 wxPyEndAllowThreads(__tstate);
26070 if (PyErr_Occurred()) SWIG_fail;
26071 }
26072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26073 return resultobj;
26074 fail:
26075 return NULL;
26076 }
26077
26078
26079 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26080 PyObject *resultobj;
26081 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26082 wxDataObject *arg2 = (wxDataObject *) 0 ;
26083 PyObject * obj0 = 0 ;
26084 PyObject * obj1 = 0 ;
26085 char *kwnames[] = {
26086 (char *) "self",(char *) "dataObject", NULL
26087 };
26088
26089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26092 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26093 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26094 {
26095 PyThreadState* __tstate = wxPyBeginAllowThreads();
26096 (arg1)->SetDataObject(arg2);
26097
26098 wxPyEndAllowThreads(__tstate);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 Py_INCREF(Py_None); resultobj = Py_None;
26102 return resultobj;
26103 fail:
26104 return NULL;
26105 }
26106
26107
26108 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26109 PyObject *resultobj;
26110 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26111 int arg2 ;
26112 int arg3 ;
26113 int arg4 ;
26114 int result;
26115 PyObject * obj0 = 0 ;
26116 PyObject * obj1 = 0 ;
26117 PyObject * obj2 = 0 ;
26118 PyObject * obj3 = 0 ;
26119 char *kwnames[] = {
26120 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26121 };
26122
26123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26126 arg2 = (int) SWIG_AsInt(obj1);
26127 if (PyErr_Occurred()) SWIG_fail;
26128 arg3 = (int) SWIG_AsInt(obj2);
26129 if (PyErr_Occurred()) SWIG_fail;
26130 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26131 if (PyErr_Occurred()) SWIG_fail;
26132 {
26133 PyThreadState* __tstate = wxPyBeginAllowThreads();
26134 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26135
26136 wxPyEndAllowThreads(__tstate);
26137 if (PyErr_Occurred()) SWIG_fail;
26138 }
26139 resultobj = SWIG_FromInt((int)result);
26140 return resultobj;
26141 fail:
26142 return NULL;
26143 }
26144
26145
26146 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26147 PyObject *resultobj;
26148 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26149 int arg2 ;
26150 int arg3 ;
26151 int arg4 ;
26152 int result;
26153 PyObject * obj0 = 0 ;
26154 PyObject * obj1 = 0 ;
26155 PyObject * obj2 = 0 ;
26156 PyObject * obj3 = 0 ;
26157 char *kwnames[] = {
26158 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26159 };
26160
26161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26164 arg2 = (int) SWIG_AsInt(obj1);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 arg3 = (int) SWIG_AsInt(obj2);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26169 if (PyErr_Occurred()) SWIG_fail;
26170 {
26171 PyThreadState* __tstate = wxPyBeginAllowThreads();
26172 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26173
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 resultobj = SWIG_FromInt((int)result);
26178 return resultobj;
26179 fail:
26180 return NULL;
26181 }
26182
26183
26184 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26185 PyObject *resultobj;
26186 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26187 PyObject * obj0 = 0 ;
26188 char *kwnames[] = {
26189 (char *) "self", NULL
26190 };
26191
26192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26195 {
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 (arg1)->base_OnLeave();
26198
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 Py_INCREF(Py_None); resultobj = Py_None;
26203 return resultobj;
26204 fail:
26205 return NULL;
26206 }
26207
26208
26209 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26210 PyObject *resultobj;
26211 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26212 int arg2 ;
26213 int arg3 ;
26214 bool result;
26215 PyObject * obj0 = 0 ;
26216 PyObject * obj1 = 0 ;
26217 PyObject * obj2 = 0 ;
26218 char *kwnames[] = {
26219 (char *) "self",(char *) "x",(char *) "y", NULL
26220 };
26221
26222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26225 arg2 = (int) SWIG_AsInt(obj1);
26226 if (PyErr_Occurred()) SWIG_fail;
26227 arg3 = (int) SWIG_AsInt(obj2);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26232
26233 wxPyEndAllowThreads(__tstate);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 {
26237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26238 }
26239 return resultobj;
26240 fail:
26241 return NULL;
26242 }
26243
26244
26245 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26246 PyObject *resultobj;
26247 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26248 bool result;
26249 PyObject * obj0 = 0 ;
26250 char *kwnames[] = {
26251 (char *) "self", NULL
26252 };
26253
26254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 result = (bool)(arg1)->GetData();
26260
26261 wxPyEndAllowThreads(__tstate);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 {
26265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26266 }
26267 return resultobj;
26268 fail:
26269 return NULL;
26270 }
26271
26272
26273 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
26274 PyObject *obj;
26275 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26276 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26277 Py_INCREF(obj);
26278 return Py_BuildValue((char *)"");
26279 }
26280 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26281 PyObject *resultobj;
26282 wxPyTextDropTarget *result;
26283 char *kwnames[] = {
26284 NULL
26285 };
26286
26287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26288 {
26289 PyThreadState* __tstate = wxPyBeginAllowThreads();
26290 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26291
26292 wxPyEndAllowThreads(__tstate);
26293 if (PyErr_Occurred()) SWIG_fail;
26294 }
26295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26296 return resultobj;
26297 fail:
26298 return NULL;
26299 }
26300
26301
26302 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26303 PyObject *resultobj;
26304 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26305 PyObject *arg2 = (PyObject *) 0 ;
26306 PyObject *arg3 = (PyObject *) 0 ;
26307 PyObject * obj0 = 0 ;
26308 PyObject * obj1 = 0 ;
26309 PyObject * obj2 = 0 ;
26310 char *kwnames[] = {
26311 (char *) "self",(char *) "self",(char *) "_class", NULL
26312 };
26313
26314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26317 arg2 = obj1;
26318 arg3 = obj2;
26319 {
26320 PyThreadState* __tstate = wxPyBeginAllowThreads();
26321 (arg1)->_setCallbackInfo(arg2,arg3);
26322
26323 wxPyEndAllowThreads(__tstate);
26324 if (PyErr_Occurred()) SWIG_fail;
26325 }
26326 Py_INCREF(Py_None); resultobj = Py_None;
26327 return resultobj;
26328 fail:
26329 return NULL;
26330 }
26331
26332
26333 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26334 PyObject *resultobj;
26335 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26336 int arg2 ;
26337 int arg3 ;
26338 int arg4 ;
26339 int result;
26340 PyObject * obj0 = 0 ;
26341 PyObject * obj1 = 0 ;
26342 PyObject * obj2 = 0 ;
26343 PyObject * obj3 = 0 ;
26344 char *kwnames[] = {
26345 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26346 };
26347
26348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26351 arg2 = (int) SWIG_AsInt(obj1);
26352 if (PyErr_Occurred()) SWIG_fail;
26353 arg3 = (int) SWIG_AsInt(obj2);
26354 if (PyErr_Occurred()) SWIG_fail;
26355 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 {
26358 PyThreadState* __tstate = wxPyBeginAllowThreads();
26359 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26360
26361 wxPyEndAllowThreads(__tstate);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 resultobj = SWIG_FromInt((int)result);
26365 return resultobj;
26366 fail:
26367 return NULL;
26368 }
26369
26370
26371 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26372 PyObject *resultobj;
26373 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26374 int arg2 ;
26375 int arg3 ;
26376 int arg4 ;
26377 int result;
26378 PyObject * obj0 = 0 ;
26379 PyObject * obj1 = 0 ;
26380 PyObject * obj2 = 0 ;
26381 PyObject * obj3 = 0 ;
26382 char *kwnames[] = {
26383 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26384 };
26385
26386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26389 arg2 = (int) SWIG_AsInt(obj1);
26390 if (PyErr_Occurred()) SWIG_fail;
26391 arg3 = (int) SWIG_AsInt(obj2);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26394 if (PyErr_Occurred()) SWIG_fail;
26395 {
26396 PyThreadState* __tstate = wxPyBeginAllowThreads();
26397 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26398
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 resultobj = SWIG_FromInt((int)result);
26403 return resultobj;
26404 fail:
26405 return NULL;
26406 }
26407
26408
26409 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26410 PyObject *resultobj;
26411 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26412 PyObject * obj0 = 0 ;
26413 char *kwnames[] = {
26414 (char *) "self", NULL
26415 };
26416
26417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26420 {
26421 PyThreadState* __tstate = wxPyBeginAllowThreads();
26422 (arg1)->base_OnLeave();
26423
26424 wxPyEndAllowThreads(__tstate);
26425 if (PyErr_Occurred()) SWIG_fail;
26426 }
26427 Py_INCREF(Py_None); resultobj = Py_None;
26428 return resultobj;
26429 fail:
26430 return NULL;
26431 }
26432
26433
26434 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26435 PyObject *resultobj;
26436 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26437 int arg2 ;
26438 int arg3 ;
26439 bool result;
26440 PyObject * obj0 = 0 ;
26441 PyObject * obj1 = 0 ;
26442 PyObject * obj2 = 0 ;
26443 char *kwnames[] = {
26444 (char *) "self",(char *) "x",(char *) "y", NULL
26445 };
26446
26447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26450 arg2 = (int) SWIG_AsInt(obj1);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 arg3 = (int) SWIG_AsInt(obj2);
26453 if (PyErr_Occurred()) SWIG_fail;
26454 {
26455 PyThreadState* __tstate = wxPyBeginAllowThreads();
26456 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26457
26458 wxPyEndAllowThreads(__tstate);
26459 if (PyErr_Occurred()) SWIG_fail;
26460 }
26461 {
26462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26463 }
26464 return resultobj;
26465 fail:
26466 return NULL;
26467 }
26468
26469
26470 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
26471 PyObject *resultobj;
26472 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26473 int arg2 ;
26474 int arg3 ;
26475 int arg4 ;
26476 int result;
26477 PyObject * obj0 = 0 ;
26478 PyObject * obj1 = 0 ;
26479 PyObject * obj2 = 0 ;
26480 PyObject * obj3 = 0 ;
26481 char *kwnames[] = {
26482 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26483 };
26484
26485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26488 arg2 = (int) SWIG_AsInt(obj1);
26489 if (PyErr_Occurred()) SWIG_fail;
26490 arg3 = (int) SWIG_AsInt(obj2);
26491 if (PyErr_Occurred()) SWIG_fail;
26492 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 {
26495 PyThreadState* __tstate = wxPyBeginAllowThreads();
26496 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26497
26498 wxPyEndAllowThreads(__tstate);
26499 if (PyErr_Occurred()) SWIG_fail;
26500 }
26501 resultobj = SWIG_FromInt((int)result);
26502 return resultobj;
26503 fail:
26504 return NULL;
26505 }
26506
26507
26508 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
26509 PyObject *obj;
26510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26511 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26512 Py_INCREF(obj);
26513 return Py_BuildValue((char *)"");
26514 }
26515 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26516 PyObject *resultobj;
26517 wxPyFileDropTarget *result;
26518 char *kwnames[] = {
26519 NULL
26520 };
26521
26522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26523 {
26524 PyThreadState* __tstate = wxPyBeginAllowThreads();
26525 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26526
26527 wxPyEndAllowThreads(__tstate);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26531 return resultobj;
26532 fail:
26533 return NULL;
26534 }
26535
26536
26537 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26538 PyObject *resultobj;
26539 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26540 PyObject *arg2 = (PyObject *) 0 ;
26541 PyObject *arg3 = (PyObject *) 0 ;
26542 PyObject * obj0 = 0 ;
26543 PyObject * obj1 = 0 ;
26544 PyObject * obj2 = 0 ;
26545 char *kwnames[] = {
26546 (char *) "self",(char *) "self",(char *) "_class", NULL
26547 };
26548
26549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26552 arg2 = obj1;
26553 arg3 = obj2;
26554 {
26555 PyThreadState* __tstate = wxPyBeginAllowThreads();
26556 (arg1)->_setCallbackInfo(arg2,arg3);
26557
26558 wxPyEndAllowThreads(__tstate);
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 Py_INCREF(Py_None); resultobj = Py_None;
26562 return resultobj;
26563 fail:
26564 return NULL;
26565 }
26566
26567
26568 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26569 PyObject *resultobj;
26570 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26571 int arg2 ;
26572 int arg3 ;
26573 int arg4 ;
26574 int result;
26575 PyObject * obj0 = 0 ;
26576 PyObject * obj1 = 0 ;
26577 PyObject * obj2 = 0 ;
26578 PyObject * obj3 = 0 ;
26579 char *kwnames[] = {
26580 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26581 };
26582
26583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26586 arg2 = (int) SWIG_AsInt(obj1);
26587 if (PyErr_Occurred()) SWIG_fail;
26588 arg3 = (int) SWIG_AsInt(obj2);
26589 if (PyErr_Occurred()) SWIG_fail;
26590 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26591 if (PyErr_Occurred()) SWIG_fail;
26592 {
26593 PyThreadState* __tstate = wxPyBeginAllowThreads();
26594 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26595
26596 wxPyEndAllowThreads(__tstate);
26597 if (PyErr_Occurred()) SWIG_fail;
26598 }
26599 resultobj = SWIG_FromInt((int)result);
26600 return resultobj;
26601 fail:
26602 return NULL;
26603 }
26604
26605
26606 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26607 PyObject *resultobj;
26608 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26609 int arg2 ;
26610 int arg3 ;
26611 int arg4 ;
26612 int result;
26613 PyObject * obj0 = 0 ;
26614 PyObject * obj1 = 0 ;
26615 PyObject * obj2 = 0 ;
26616 PyObject * obj3 = 0 ;
26617 char *kwnames[] = {
26618 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26619 };
26620
26621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26624 arg2 = (int) SWIG_AsInt(obj1);
26625 if (PyErr_Occurred()) SWIG_fail;
26626 arg3 = (int) SWIG_AsInt(obj2);
26627 if (PyErr_Occurred()) SWIG_fail;
26628 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 {
26631 PyThreadState* __tstate = wxPyBeginAllowThreads();
26632 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26633
26634 wxPyEndAllowThreads(__tstate);
26635 if (PyErr_Occurred()) SWIG_fail;
26636 }
26637 resultobj = SWIG_FromInt((int)result);
26638 return resultobj;
26639 fail:
26640 return NULL;
26641 }
26642
26643
26644 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26645 PyObject *resultobj;
26646 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26647 PyObject * obj0 = 0 ;
26648 char *kwnames[] = {
26649 (char *) "self", NULL
26650 };
26651
26652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 (arg1)->base_OnLeave();
26658
26659 wxPyEndAllowThreads(__tstate);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 Py_INCREF(Py_None); resultobj = Py_None;
26663 return resultobj;
26664 fail:
26665 return NULL;
26666 }
26667
26668
26669 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26670 PyObject *resultobj;
26671 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26672 int arg2 ;
26673 int arg3 ;
26674 bool result;
26675 PyObject * obj0 = 0 ;
26676 PyObject * obj1 = 0 ;
26677 PyObject * obj2 = 0 ;
26678 char *kwnames[] = {
26679 (char *) "self",(char *) "x",(char *) "y", NULL
26680 };
26681
26682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26685 arg2 = (int) SWIG_AsInt(obj1);
26686 if (PyErr_Occurred()) SWIG_fail;
26687 arg3 = (int) SWIG_AsInt(obj2);
26688 if (PyErr_Occurred()) SWIG_fail;
26689 {
26690 PyThreadState* __tstate = wxPyBeginAllowThreads();
26691 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26692
26693 wxPyEndAllowThreads(__tstate);
26694 if (PyErr_Occurred()) SWIG_fail;
26695 }
26696 {
26697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26698 }
26699 return resultobj;
26700 fail:
26701 return NULL;
26702 }
26703
26704
26705 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
26706 PyObject *resultobj;
26707 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26708 int arg2 ;
26709 int arg3 ;
26710 int arg4 ;
26711 int result;
26712 PyObject * obj0 = 0 ;
26713 PyObject * obj1 = 0 ;
26714 PyObject * obj2 = 0 ;
26715 PyObject * obj3 = 0 ;
26716 char *kwnames[] = {
26717 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26718 };
26719
26720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26723 arg2 = (int) SWIG_AsInt(obj1);
26724 if (PyErr_Occurred()) SWIG_fail;
26725 arg3 = (int) SWIG_AsInt(obj2);
26726 if (PyErr_Occurred()) SWIG_fail;
26727 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26728 if (PyErr_Occurred()) SWIG_fail;
26729 {
26730 PyThreadState* __tstate = wxPyBeginAllowThreads();
26731 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26732
26733 wxPyEndAllowThreads(__tstate);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 resultobj = SWIG_FromInt((int)result);
26737 return resultobj;
26738 fail:
26739 return NULL;
26740 }
26741
26742
26743 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
26744 PyObject *obj;
26745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26746 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26747 Py_INCREF(obj);
26748 return Py_BuildValue((char *)"");
26749 }
26750 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
26751 PyObject *resultobj;
26752 wxClipboard *result;
26753 char *kwnames[] = {
26754 NULL
26755 };
26756
26757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26758 {
26759 PyThreadState* __tstate = wxPyBeginAllowThreads();
26760 result = (wxClipboard *)new wxClipboard();
26761
26762 wxPyEndAllowThreads(__tstate);
26763 if (PyErr_Occurred()) SWIG_fail;
26764 }
26765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26766 return resultobj;
26767 fail:
26768 return NULL;
26769 }
26770
26771
26772 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
26773 PyObject *resultobj;
26774 wxClipboard *arg1 = (wxClipboard *) 0 ;
26775 PyObject * obj0 = 0 ;
26776 char *kwnames[] = {
26777 (char *) "self", NULL
26778 };
26779
26780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26783 {
26784 PyThreadState* __tstate = wxPyBeginAllowThreads();
26785 delete arg1;
26786
26787 wxPyEndAllowThreads(__tstate);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 Py_INCREF(Py_None); resultobj = Py_None;
26791 return resultobj;
26792 fail:
26793 return NULL;
26794 }
26795
26796
26797 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
26798 PyObject *resultobj;
26799 wxClipboard *arg1 = (wxClipboard *) 0 ;
26800 bool result;
26801 PyObject * obj0 = 0 ;
26802 char *kwnames[] = {
26803 (char *) "self", NULL
26804 };
26805
26806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26809 {
26810 PyThreadState* __tstate = wxPyBeginAllowThreads();
26811 result = (bool)(arg1)->Open();
26812
26813 wxPyEndAllowThreads(__tstate);
26814 if (PyErr_Occurred()) SWIG_fail;
26815 }
26816 {
26817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26818 }
26819 return resultobj;
26820 fail:
26821 return NULL;
26822 }
26823
26824
26825 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
26826 PyObject *resultobj;
26827 wxClipboard *arg1 = (wxClipboard *) 0 ;
26828 PyObject * obj0 = 0 ;
26829 char *kwnames[] = {
26830 (char *) "self", NULL
26831 };
26832
26833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26836 {
26837 PyThreadState* __tstate = wxPyBeginAllowThreads();
26838 (arg1)->Close();
26839
26840 wxPyEndAllowThreads(__tstate);
26841 if (PyErr_Occurred()) SWIG_fail;
26842 }
26843 Py_INCREF(Py_None); resultobj = Py_None;
26844 return resultobj;
26845 fail:
26846 return NULL;
26847 }
26848
26849
26850 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
26851 PyObject *resultobj;
26852 wxClipboard *arg1 = (wxClipboard *) 0 ;
26853 bool result;
26854 PyObject * obj0 = 0 ;
26855 char *kwnames[] = {
26856 (char *) "self", NULL
26857 };
26858
26859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26862 {
26863 PyThreadState* __tstate = wxPyBeginAllowThreads();
26864 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26865
26866 wxPyEndAllowThreads(__tstate);
26867 if (PyErr_Occurred()) SWIG_fail;
26868 }
26869 {
26870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26871 }
26872 return resultobj;
26873 fail:
26874 return NULL;
26875 }
26876
26877
26878 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
26879 PyObject *resultobj;
26880 wxClipboard *arg1 = (wxClipboard *) 0 ;
26881 wxDataObject *arg2 = (wxDataObject *) 0 ;
26882 bool result;
26883 PyObject * obj0 = 0 ;
26884 PyObject * obj1 = 0 ;
26885 char *kwnames[] = {
26886 (char *) "self",(char *) "data", NULL
26887 };
26888
26889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26893 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26894 {
26895 PyThreadState* __tstate = wxPyBeginAllowThreads();
26896 result = (bool)(arg1)->AddData(arg2);
26897
26898 wxPyEndAllowThreads(__tstate);
26899 if (PyErr_Occurred()) SWIG_fail;
26900 }
26901 {
26902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26903 }
26904 return resultobj;
26905 fail:
26906 return NULL;
26907 }
26908
26909
26910 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
26911 PyObject *resultobj;
26912 wxClipboard *arg1 = (wxClipboard *) 0 ;
26913 wxDataObject *arg2 = (wxDataObject *) 0 ;
26914 bool result;
26915 PyObject * obj0 = 0 ;
26916 PyObject * obj1 = 0 ;
26917 char *kwnames[] = {
26918 (char *) "self",(char *) "data", NULL
26919 };
26920
26921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26925 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26926 {
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 result = (bool)(arg1)->SetData(arg2);
26929
26930 wxPyEndAllowThreads(__tstate);
26931 if (PyErr_Occurred()) SWIG_fail;
26932 }
26933 {
26934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26935 }
26936 return resultobj;
26937 fail:
26938 return NULL;
26939 }
26940
26941
26942 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
26943 PyObject *resultobj;
26944 wxClipboard *arg1 = (wxClipboard *) 0 ;
26945 wxDataFormat *arg2 = 0 ;
26946 bool result;
26947 PyObject * obj0 = 0 ;
26948 PyObject * obj1 = 0 ;
26949 char *kwnames[] = {
26950 (char *) "self",(char *) "format", NULL
26951 };
26952
26953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26956 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26957 SWIG_POINTER_EXCEPTION | 0)) == -1)
26958 SWIG_fail;
26959 if (arg2 == NULL) {
26960 PyErr_SetString(PyExc_TypeError,"null reference");
26961 SWIG_fail;
26962 }
26963 {
26964 PyThreadState* __tstate = wxPyBeginAllowThreads();
26965 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26966
26967 wxPyEndAllowThreads(__tstate);
26968 if (PyErr_Occurred()) SWIG_fail;
26969 }
26970 {
26971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26972 }
26973 return resultobj;
26974 fail:
26975 return NULL;
26976 }
26977
26978
26979 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26980 PyObject *resultobj;
26981 wxClipboard *arg1 = (wxClipboard *) 0 ;
26982 wxDataObject *arg2 = 0 ;
26983 bool result;
26984 PyObject * obj0 = 0 ;
26985 PyObject * obj1 = 0 ;
26986 char *kwnames[] = {
26987 (char *) "self",(char *) "data", NULL
26988 };
26989
26990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26994 SWIG_POINTER_EXCEPTION | 0)) == -1)
26995 SWIG_fail;
26996 if (arg2 == NULL) {
26997 PyErr_SetString(PyExc_TypeError,"null reference");
26998 SWIG_fail;
26999 }
27000 {
27001 PyThreadState* __tstate = wxPyBeginAllowThreads();
27002 result = (bool)(arg1)->GetData(*arg2);
27003
27004 wxPyEndAllowThreads(__tstate);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
27007 {
27008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27009 }
27010 return resultobj;
27011 fail:
27012 return NULL;
27013 }
27014
27015
27016 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
27017 PyObject *resultobj;
27018 wxClipboard *arg1 = (wxClipboard *) 0 ;
27019 PyObject * obj0 = 0 ;
27020 char *kwnames[] = {
27021 (char *) "self", NULL
27022 };
27023
27024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27027 {
27028 PyThreadState* __tstate = wxPyBeginAllowThreads();
27029 (arg1)->Clear();
27030
27031 wxPyEndAllowThreads(__tstate);
27032 if (PyErr_Occurred()) SWIG_fail;
27033 }
27034 Py_INCREF(Py_None); resultobj = Py_None;
27035 return resultobj;
27036 fail:
27037 return NULL;
27038 }
27039
27040
27041 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
27042 PyObject *resultobj;
27043 wxClipboard *arg1 = (wxClipboard *) 0 ;
27044 bool result;
27045 PyObject * obj0 = 0 ;
27046 char *kwnames[] = {
27047 (char *) "self", NULL
27048 };
27049
27050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27053 {
27054 PyThreadState* __tstate = wxPyBeginAllowThreads();
27055 result = (bool)(arg1)->Flush();
27056
27057 wxPyEndAllowThreads(__tstate);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 {
27061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27062 }
27063 return resultobj;
27064 fail:
27065 return NULL;
27066 }
27067
27068
27069 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
27070 PyObject *resultobj;
27071 wxClipboard *arg1 = (wxClipboard *) 0 ;
27072 bool arg2 = (bool) True ;
27073 PyObject * obj0 = 0 ;
27074 PyObject * obj1 = 0 ;
27075 char *kwnames[] = {
27076 (char *) "self",(char *) "primary", NULL
27077 };
27078
27079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27082 if (obj1) {
27083 arg2 = (bool) SWIG_AsBool(obj1);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 }
27086 {
27087 PyThreadState* __tstate = wxPyBeginAllowThreads();
27088 (arg1)->UsePrimarySelection(arg2);
27089
27090 wxPyEndAllowThreads(__tstate);
27091 if (PyErr_Occurred()) SWIG_fail;
27092 }
27093 Py_INCREF(Py_None); resultobj = Py_None;
27094 return resultobj;
27095 fail:
27096 return NULL;
27097 }
27098
27099
27100 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
27101 PyObject *obj;
27102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27103 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27104 Py_INCREF(obj);
27105 return Py_BuildValue((char *)"");
27106 }
27107 static int _wrap_TheClipboard_set(PyObject *) {
27108 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
27109 return 1;
27110 }
27111
27112
27113 static PyObject *_wrap_TheClipboard_get() {
27114 PyObject *pyobj;
27115
27116 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27117 return pyobj;
27118 }
27119
27120
27121 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27122 PyObject *resultobj;
27123 wxClipboard *arg1 = (wxClipboard *) NULL ;
27124 wxClipboardLocker *result;
27125 PyObject * obj0 = 0 ;
27126 char *kwnames[] = {
27127 (char *) "clipboard", NULL
27128 };
27129
27130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27131 if (obj0) {
27132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27134 }
27135 {
27136 PyThreadState* __tstate = wxPyBeginAllowThreads();
27137 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27138
27139 wxPyEndAllowThreads(__tstate);
27140 if (PyErr_Occurred()) SWIG_fail;
27141 }
27142 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27143 return resultobj;
27144 fail:
27145 return NULL;
27146 }
27147
27148
27149 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27150 PyObject *resultobj;
27151 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27152 PyObject * obj0 = 0 ;
27153 char *kwnames[] = {
27154 (char *) "self", NULL
27155 };
27156
27157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27160 {
27161 PyThreadState* __tstate = wxPyBeginAllowThreads();
27162 delete arg1;
27163
27164 wxPyEndAllowThreads(__tstate);
27165 if (PyErr_Occurred()) SWIG_fail;
27166 }
27167 Py_INCREF(Py_None); resultobj = Py_None;
27168 return resultobj;
27169 fail:
27170 return NULL;
27171 }
27172
27173
27174 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
27175 PyObject *resultobj;
27176 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27177 bool result;
27178 PyObject * obj0 = 0 ;
27179 char *kwnames[] = {
27180 (char *) "self", NULL
27181 };
27182
27183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27186 {
27187 PyThreadState* __tstate = wxPyBeginAllowThreads();
27188 result = (bool)wxClipboardLocker___nonzero__(arg1);
27189
27190 wxPyEndAllowThreads(__tstate);
27191 if (PyErr_Occurred()) SWIG_fail;
27192 }
27193 {
27194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27195 }
27196 return resultobj;
27197 fail:
27198 return NULL;
27199 }
27200
27201
27202 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
27203 PyObject *obj;
27204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27205 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27206 Py_INCREF(obj);
27207 return Py_BuildValue((char *)"");
27208 }
27209 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27210 PyObject *resultobj;
27211 int arg1 = (int) 0 ;
27212 int arg2 = (int) 0 ;
27213 int arg3 = (int) 0 ;
27214 int arg4 = (int) 0 ;
27215 wxVideoMode *result;
27216 PyObject * obj0 = 0 ;
27217 PyObject * obj1 = 0 ;
27218 PyObject * obj2 = 0 ;
27219 PyObject * obj3 = 0 ;
27220 char *kwnames[] = {
27221 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27222 };
27223
27224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27225 if (obj0) {
27226 arg1 = (int) SWIG_AsInt(obj0);
27227 if (PyErr_Occurred()) SWIG_fail;
27228 }
27229 if (obj1) {
27230 arg2 = (int) SWIG_AsInt(obj1);
27231 if (PyErr_Occurred()) SWIG_fail;
27232 }
27233 if (obj2) {
27234 arg3 = (int) SWIG_AsInt(obj2);
27235 if (PyErr_Occurred()) SWIG_fail;
27236 }
27237 if (obj3) {
27238 arg4 = (int) SWIG_AsInt(obj3);
27239 if (PyErr_Occurred()) SWIG_fail;
27240 }
27241 {
27242 PyThreadState* __tstate = wxPyBeginAllowThreads();
27243 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27244
27245 wxPyEndAllowThreads(__tstate);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 }
27248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27249 return resultobj;
27250 fail:
27251 return NULL;
27252 }
27253
27254
27255 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27256 PyObject *resultobj;
27257 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27258 PyObject * obj0 = 0 ;
27259 char *kwnames[] = {
27260 (char *) "self", NULL
27261 };
27262
27263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27266 {
27267 PyThreadState* __tstate = wxPyBeginAllowThreads();
27268 delete arg1;
27269
27270 wxPyEndAllowThreads(__tstate);
27271 if (PyErr_Occurred()) SWIG_fail;
27272 }
27273 Py_INCREF(Py_None); resultobj = Py_None;
27274 return resultobj;
27275 fail:
27276 return NULL;
27277 }
27278
27279
27280 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
27281 PyObject *resultobj;
27282 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27283 wxVideoMode *arg2 = 0 ;
27284 bool result;
27285 PyObject * obj0 = 0 ;
27286 PyObject * obj1 = 0 ;
27287 char *kwnames[] = {
27288 (char *) "self",(char *) "other", NULL
27289 };
27290
27291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27294 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27295 SWIG_POINTER_EXCEPTION | 0)) == -1)
27296 SWIG_fail;
27297 if (arg2 == NULL) {
27298 PyErr_SetString(PyExc_TypeError,"null reference");
27299 SWIG_fail;
27300 }
27301 {
27302 PyThreadState* __tstate = wxPyBeginAllowThreads();
27303 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27304
27305 wxPyEndAllowThreads(__tstate);
27306 if (PyErr_Occurred()) SWIG_fail;
27307 }
27308 {
27309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27310 }
27311 return resultobj;
27312 fail:
27313 return NULL;
27314 }
27315
27316
27317 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27318 PyObject *resultobj;
27319 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27320 int result;
27321 PyObject * obj0 = 0 ;
27322 char *kwnames[] = {
27323 (char *) "self", NULL
27324 };
27325
27326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27329 {
27330 PyThreadState* __tstate = wxPyBeginAllowThreads();
27331 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27332
27333 wxPyEndAllowThreads(__tstate);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 resultobj = SWIG_FromInt((int)result);
27337 return resultobj;
27338 fail:
27339 return NULL;
27340 }
27341
27342
27343 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
27344 PyObject *resultobj;
27345 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27346 int result;
27347 PyObject * obj0 = 0 ;
27348 char *kwnames[] = {
27349 (char *) "self", NULL
27350 };
27351
27352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27355 {
27356 PyThreadState* __tstate = wxPyBeginAllowThreads();
27357 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27358
27359 wxPyEndAllowThreads(__tstate);
27360 if (PyErr_Occurred()) SWIG_fail;
27361 }
27362 resultobj = SWIG_FromInt((int)result);
27363 return resultobj;
27364 fail:
27365 return NULL;
27366 }
27367
27368
27369 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
27370 PyObject *resultobj;
27371 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27372 int result;
27373 PyObject * obj0 = 0 ;
27374 char *kwnames[] = {
27375 (char *) "self", NULL
27376 };
27377
27378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27381 {
27382 PyThreadState* __tstate = wxPyBeginAllowThreads();
27383 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27384
27385 wxPyEndAllowThreads(__tstate);
27386 if (PyErr_Occurred()) SWIG_fail;
27387 }
27388 resultobj = SWIG_FromInt((int)result);
27389 return resultobj;
27390 fail:
27391 return NULL;
27392 }
27393
27394
27395 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
27396 PyObject *resultobj;
27397 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27398 bool result;
27399 PyObject * obj0 = 0 ;
27400 char *kwnames[] = {
27401 (char *) "self", NULL
27402 };
27403
27404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27407 {
27408 PyThreadState* __tstate = wxPyBeginAllowThreads();
27409 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27410
27411 wxPyEndAllowThreads(__tstate);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 {
27415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27416 }
27417 return resultobj;
27418 fail:
27419 return NULL;
27420 }
27421
27422
27423 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
27424 PyObject *resultobj;
27425 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27426 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27427 bool result;
27428 PyObject * obj0 = 0 ;
27429 PyObject * obj1 = 0 ;
27430 char *kwnames[] = {
27431 (char *) "self",(char *) "other", NULL
27432 };
27433
27434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27437 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27439 {
27440 PyThreadState* __tstate = wxPyBeginAllowThreads();
27441 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27442
27443 wxPyEndAllowThreads(__tstate);
27444 if (PyErr_Occurred()) SWIG_fail;
27445 }
27446 {
27447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27448 }
27449 return resultobj;
27450 fail:
27451 return NULL;
27452 }
27453
27454
27455 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
27456 PyObject *resultobj;
27457 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27458 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27459 bool result;
27460 PyObject * obj0 = 0 ;
27461 PyObject * obj1 = 0 ;
27462 char *kwnames[] = {
27463 (char *) "self",(char *) "other", NULL
27464 };
27465
27466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27471 {
27472 PyThreadState* __tstate = wxPyBeginAllowThreads();
27473 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27474
27475 wxPyEndAllowThreads(__tstate);
27476 if (PyErr_Occurred()) SWIG_fail;
27477 }
27478 {
27479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27480 }
27481 return resultobj;
27482 fail:
27483 return NULL;
27484 }
27485
27486
27487 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
27488 PyObject *resultobj;
27489 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27490 int arg2 ;
27491 PyObject * obj0 = 0 ;
27492 PyObject * obj1 = 0 ;
27493 char *kwnames[] = {
27494 (char *) "self",(char *) "w", NULL
27495 };
27496
27497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27500 arg2 = (int) SWIG_AsInt(obj1);
27501 if (PyErr_Occurred()) SWIG_fail;
27502 if (arg1) (arg1)->w = arg2;
27503
27504 Py_INCREF(Py_None); resultobj = Py_None;
27505 return resultobj;
27506 fail:
27507 return NULL;
27508 }
27509
27510
27511 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
27512 PyObject *resultobj;
27513 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27514 int result;
27515 PyObject * obj0 = 0 ;
27516 char *kwnames[] = {
27517 (char *) "self", NULL
27518 };
27519
27520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27523 result = (int) ((arg1)->w);
27524
27525 resultobj = SWIG_FromInt((int)result);
27526 return resultobj;
27527 fail:
27528 return NULL;
27529 }
27530
27531
27532 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
27533 PyObject *resultobj;
27534 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27535 int arg2 ;
27536 PyObject * obj0 = 0 ;
27537 PyObject * obj1 = 0 ;
27538 char *kwnames[] = {
27539 (char *) "self",(char *) "h", NULL
27540 };
27541
27542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27545 arg2 = (int) SWIG_AsInt(obj1);
27546 if (PyErr_Occurred()) SWIG_fail;
27547 if (arg1) (arg1)->h = arg2;
27548
27549 Py_INCREF(Py_None); resultobj = Py_None;
27550 return resultobj;
27551 fail:
27552 return NULL;
27553 }
27554
27555
27556 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
27557 PyObject *resultobj;
27558 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27559 int result;
27560 PyObject * obj0 = 0 ;
27561 char *kwnames[] = {
27562 (char *) "self", NULL
27563 };
27564
27565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27568 result = (int) ((arg1)->h);
27569
27570 resultobj = SWIG_FromInt((int)result);
27571 return resultobj;
27572 fail:
27573 return NULL;
27574 }
27575
27576
27577 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
27578 PyObject *resultobj;
27579 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27580 int arg2 ;
27581 PyObject * obj0 = 0 ;
27582 PyObject * obj1 = 0 ;
27583 char *kwnames[] = {
27584 (char *) "self",(char *) "bpp", NULL
27585 };
27586
27587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27590 arg2 = (int) SWIG_AsInt(obj1);
27591 if (PyErr_Occurred()) SWIG_fail;
27592 if (arg1) (arg1)->bpp = arg2;
27593
27594 Py_INCREF(Py_None); resultobj = Py_None;
27595 return resultobj;
27596 fail:
27597 return NULL;
27598 }
27599
27600
27601 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
27602 PyObject *resultobj;
27603 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27604 int result;
27605 PyObject * obj0 = 0 ;
27606 char *kwnames[] = {
27607 (char *) "self", NULL
27608 };
27609
27610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27613 result = (int) ((arg1)->bpp);
27614
27615 resultobj = SWIG_FromInt((int)result);
27616 return resultobj;
27617 fail:
27618 return NULL;
27619 }
27620
27621
27622 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
27623 PyObject *resultobj;
27624 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27625 int arg2 ;
27626 PyObject * obj0 = 0 ;
27627 PyObject * obj1 = 0 ;
27628 char *kwnames[] = {
27629 (char *) "self",(char *) "refresh", NULL
27630 };
27631
27632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27635 arg2 = (int) SWIG_AsInt(obj1);
27636 if (PyErr_Occurred()) SWIG_fail;
27637 if (arg1) (arg1)->refresh = arg2;
27638
27639 Py_INCREF(Py_None); resultobj = Py_None;
27640 return resultobj;
27641 fail:
27642 return NULL;
27643 }
27644
27645
27646 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
27647 PyObject *resultobj;
27648 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27649 int result;
27650 PyObject * obj0 = 0 ;
27651 char *kwnames[] = {
27652 (char *) "self", NULL
27653 };
27654
27655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27658 result = (int) ((arg1)->refresh);
27659
27660 resultobj = SWIG_FromInt((int)result);
27661 return resultobj;
27662 fail:
27663 return NULL;
27664 }
27665
27666
27667 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
27668 PyObject *obj;
27669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27670 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27671 Py_INCREF(obj);
27672 return Py_BuildValue((char *)"");
27673 }
27674 static int _wrap_DefaultVideoMode_set(PyObject *) {
27675 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27676 return 1;
27677 }
27678
27679
27680 static PyObject *_wrap_DefaultVideoMode_get() {
27681 PyObject *pyobj;
27682
27683 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27684 return pyobj;
27685 }
27686
27687
27688 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
27689 PyObject *resultobj;
27690 size_t arg1 = (size_t) 0 ;
27691 wxDisplay *result;
27692 PyObject * obj0 = 0 ;
27693 char *kwnames[] = {
27694 (char *) "index", NULL
27695 };
27696
27697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27698 if (obj0) {
27699 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 {
27703 PyThreadState* __tstate = wxPyBeginAllowThreads();
27704 result = (wxDisplay *)new wxDisplay(arg1);
27705
27706 wxPyEndAllowThreads(__tstate);
27707 if (PyErr_Occurred()) SWIG_fail;
27708 }
27709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27710 return resultobj;
27711 fail:
27712 return NULL;
27713 }
27714
27715
27716 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
27717 PyObject *resultobj;
27718 wxDisplay *arg1 = (wxDisplay *) 0 ;
27719 PyObject * obj0 = 0 ;
27720 char *kwnames[] = {
27721 (char *) "self", NULL
27722 };
27723
27724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27727 {
27728 PyThreadState* __tstate = wxPyBeginAllowThreads();
27729 delete arg1;
27730
27731 wxPyEndAllowThreads(__tstate);
27732 if (PyErr_Occurred()) SWIG_fail;
27733 }
27734 Py_INCREF(Py_None); resultobj = Py_None;
27735 return resultobj;
27736 fail:
27737 return NULL;
27738 }
27739
27740
27741 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
27742 PyObject *resultobj;
27743 size_t result;
27744 char *kwnames[] = {
27745 NULL
27746 };
27747
27748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27749 {
27750 PyThreadState* __tstate = wxPyBeginAllowThreads();
27751 result = (size_t)wxDisplay::GetCount();
27752
27753 wxPyEndAllowThreads(__tstate);
27754 if (PyErr_Occurred()) SWIG_fail;
27755 }
27756 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27757 return resultobj;
27758 fail:
27759 return NULL;
27760 }
27761
27762
27763 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
27764 PyObject *resultobj;
27765 wxPoint *arg1 = 0 ;
27766 int result;
27767 wxPoint temp1 ;
27768 PyObject * obj0 = 0 ;
27769 char *kwnames[] = {
27770 (char *) "pt", NULL
27771 };
27772
27773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27774 {
27775 arg1 = &temp1;
27776 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27777 }
27778 {
27779 PyThreadState* __tstate = wxPyBeginAllowThreads();
27780 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27781
27782 wxPyEndAllowThreads(__tstate);
27783 if (PyErr_Occurred()) SWIG_fail;
27784 }
27785 resultobj = SWIG_FromInt((int)result);
27786 return resultobj;
27787 fail:
27788 return NULL;
27789 }
27790
27791
27792 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
27793 PyObject *resultobj;
27794 wxWindow *arg1 = (wxWindow *) 0 ;
27795 int result;
27796 PyObject * obj0 = 0 ;
27797 char *kwnames[] = {
27798 (char *) "window", NULL
27799 };
27800
27801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27804 {
27805 PyThreadState* __tstate = wxPyBeginAllowThreads();
27806 result = (int)Display_GetFromWindow(arg1);
27807
27808 wxPyEndAllowThreads(__tstate);
27809 if (PyErr_Occurred()) SWIG_fail;
27810 }
27811 resultobj = SWIG_FromInt((int)result);
27812 return resultobj;
27813 fail:
27814 return NULL;
27815 }
27816
27817
27818 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
27819 PyObject *resultobj;
27820 wxDisplay *arg1 = (wxDisplay *) 0 ;
27821 bool result;
27822 PyObject * obj0 = 0 ;
27823 char *kwnames[] = {
27824 (char *) "self", NULL
27825 };
27826
27827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27830 {
27831 PyThreadState* __tstate = wxPyBeginAllowThreads();
27832 result = (bool)((wxDisplay const *)arg1)->IsOk();
27833
27834 wxPyEndAllowThreads(__tstate);
27835 if (PyErr_Occurred()) SWIG_fail;
27836 }
27837 {
27838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27839 }
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
27847 PyObject *resultobj;
27848 wxDisplay *arg1 = (wxDisplay *) 0 ;
27849 wxRect result;
27850 PyObject * obj0 = 0 ;
27851 char *kwnames[] = {
27852 (char *) "self", NULL
27853 };
27854
27855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27858 {
27859 PyThreadState* __tstate = wxPyBeginAllowThreads();
27860 result = ((wxDisplay const *)arg1)->GetGeometry();
27861
27862 wxPyEndAllowThreads(__tstate);
27863 if (PyErr_Occurred()) SWIG_fail;
27864 }
27865 {
27866 wxRect * resultptr;
27867 resultptr = new wxRect((wxRect &) result);
27868 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27869 }
27870 return resultobj;
27871 fail:
27872 return NULL;
27873 }
27874
27875
27876 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
27877 PyObject *resultobj;
27878 wxDisplay *arg1 = (wxDisplay *) 0 ;
27879 wxString result;
27880 PyObject * obj0 = 0 ;
27881 char *kwnames[] = {
27882 (char *) "self", NULL
27883 };
27884
27885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27888 {
27889 PyThreadState* __tstate = wxPyBeginAllowThreads();
27890 result = ((wxDisplay const *)arg1)->GetName();
27891
27892 wxPyEndAllowThreads(__tstate);
27893 if (PyErr_Occurred()) SWIG_fail;
27894 }
27895 {
27896 #if wxUSE_UNICODE
27897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27898 #else
27899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27900 #endif
27901 }
27902 return resultobj;
27903 fail:
27904 return NULL;
27905 }
27906
27907
27908 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
27909 PyObject *resultobj;
27910 wxDisplay *arg1 = (wxDisplay *) 0 ;
27911 bool result;
27912 PyObject * obj0 = 0 ;
27913 char *kwnames[] = {
27914 (char *) "self", NULL
27915 };
27916
27917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27920 {
27921 PyThreadState* __tstate = wxPyBeginAllowThreads();
27922 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27923
27924 wxPyEndAllowThreads(__tstate);
27925 if (PyErr_Occurred()) SWIG_fail;
27926 }
27927 {
27928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27929 }
27930 return resultobj;
27931 fail:
27932 return NULL;
27933 }
27934
27935
27936 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
27937 PyObject *resultobj;
27938 wxDisplay *arg1 = (wxDisplay *) 0 ;
27939 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27940 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27941 PyObject *result;
27942 PyObject * obj0 = 0 ;
27943 PyObject * obj1 = 0 ;
27944 char *kwnames[] = {
27945 (char *) "self",(char *) "mode", NULL
27946 };
27947
27948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
27949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27951 if (obj1) {
27952 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27953 SWIG_POINTER_EXCEPTION | 0)) == -1)
27954 SWIG_fail;
27955 if (arg2 == NULL) {
27956 PyErr_SetString(PyExc_TypeError,"null reference");
27957 SWIG_fail;
27958 }
27959 }
27960 {
27961 PyThreadState* __tstate = wxPyBeginAllowThreads();
27962 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
27963
27964 wxPyEndAllowThreads(__tstate);
27965 if (PyErr_Occurred()) SWIG_fail;
27966 }
27967 resultobj = result;
27968 return resultobj;
27969 fail:
27970 return NULL;
27971 }
27972
27973
27974 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
27975 PyObject *resultobj;
27976 wxDisplay *arg1 = (wxDisplay *) 0 ;
27977 wxVideoMode result;
27978 PyObject * obj0 = 0 ;
27979 char *kwnames[] = {
27980 (char *) "self", NULL
27981 };
27982
27983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
27984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27986 {
27987 PyThreadState* __tstate = wxPyBeginAllowThreads();
27988 result = ((wxDisplay const *)arg1)->GetCurrentMode();
27989
27990 wxPyEndAllowThreads(__tstate);
27991 if (PyErr_Occurred()) SWIG_fail;
27992 }
27993 {
27994 wxVideoMode * resultptr;
27995 resultptr = new wxVideoMode((wxVideoMode &) result);
27996 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
27997 }
27998 return resultobj;
27999 fail:
28000 return NULL;
28001 }
28002
28003
28004 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
28005 PyObject *resultobj;
28006 wxDisplay *arg1 = (wxDisplay *) 0 ;
28007 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28008 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28009 bool result;
28010 PyObject * obj0 = 0 ;
28011 PyObject * obj1 = 0 ;
28012 char *kwnames[] = {
28013 (char *) "self",(char *) "mode", NULL
28014 };
28015
28016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28019 if (obj1) {
28020 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28021 SWIG_POINTER_EXCEPTION | 0)) == -1)
28022 SWIG_fail;
28023 if (arg2 == NULL) {
28024 PyErr_SetString(PyExc_TypeError,"null reference");
28025 SWIG_fail;
28026 }
28027 }
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28031
28032 wxPyEndAllowThreads(__tstate);
28033 if (PyErr_Occurred()) SWIG_fail;
28034 }
28035 {
28036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28037 }
28038 return resultobj;
28039 fail:
28040 return NULL;
28041 }
28042
28043
28044 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
28045 PyObject *resultobj;
28046 wxDisplay *arg1 = (wxDisplay *) 0 ;
28047 PyObject * obj0 = 0 ;
28048 char *kwnames[] = {
28049 (char *) "self", NULL
28050 };
28051
28052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28055 {
28056 PyThreadState* __tstate = wxPyBeginAllowThreads();
28057 (arg1)->ResetMode();
28058
28059 wxPyEndAllowThreads(__tstate);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 Py_INCREF(Py_None); resultobj = Py_None;
28063 return resultobj;
28064 fail:
28065 return NULL;
28066 }
28067
28068
28069 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
28070 PyObject *obj;
28071 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28072 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28073 Py_INCREF(obj);
28074 return Py_BuildValue((char *)"");
28075 }
28076 static PyMethodDef SwigMethods[] = {
28077 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
28078 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
28079 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
28080 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
28081 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28082 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28083 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
28084 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
28085 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28086 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28087 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28088 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28089 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
28090 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
28091 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
28092 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
28093 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
28094 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
28095 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28096 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
28097 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
28098 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
28099 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28100 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
28101 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
28102 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
28103 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28104 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
28105 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
28106 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
28107 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS, NULL },
28108 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
28109 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
28110 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
28111 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28112 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28113 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
28114 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
28115 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
28116 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
28117 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
28118 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
28119 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28120 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28121 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28122 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28123 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28124 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28125 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
28126 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28127 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
28128 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28129 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
28130 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28131 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28132 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28133 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28134 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28135 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28136 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28137 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28138 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28139 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28140 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28141 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28142 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28143 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
28144 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
28145 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
28146 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28147 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28148 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28149 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28150 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
28151 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
28152 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
28153 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28154 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28155 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28156 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
28157 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
28158 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
28159 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28160 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
28161 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28162 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
28163 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28164 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28165 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28166 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
28167 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28168 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
28169 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
28170 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
28171 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28172 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28173 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
28174 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
28175 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28176 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
28177 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28178 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28179 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
28180 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28181 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
28182 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
28183 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28184 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28185 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
28186 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
28187 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28188 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
28189 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28190 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
28191 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
28192 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28193 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28194 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28195 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
28196 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
28197 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28198 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28199 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
28200 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
28201 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28202 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
28203 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
28204 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
28205 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
28206 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28207 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28208 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
28209 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28210 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28211 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
28212 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
28213 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28214 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
28215 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
28216 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
28217 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
28218 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28219 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28220 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
28221 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
28222 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28223 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28224 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
28225 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28226 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
28227 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28228 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28229 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
28230 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28231 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
28232 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
28233 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
28234 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28235 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
28236 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
28237 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
28238 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
28239 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
28240 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
28241 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
28242 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
28243 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
28244 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
28245 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28246 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
28247 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28248 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28249 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
28250 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
28251 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28252 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28253 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28254 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28255 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28256 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28257 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28258 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
28259 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28260 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28261 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28262 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
28263 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
28264 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
28265 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
28266 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28267 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
28268 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
28269 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
28270 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
28271 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
28272 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
28273 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
28274 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28275 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
28276 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28277 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28278 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28279 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28280 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
28281 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
28282 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
28283 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28284 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
28285 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
28286 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
28287 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
28288 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
28289 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
28290 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
28291 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
28292 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28293 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28294 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
28295 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
28296 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
28297 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
28298 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
28299 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
28300 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
28301 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
28302 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28303 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
28304 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
28305 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
28306 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28307 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
28308 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
28309 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
28310 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
28311 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
28312 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28313 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
28314 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
28315 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
28316 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
28317 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28318 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
28319 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
28320 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
28321 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
28322 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28323 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
28324 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
28325 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28326 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
28327 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
28328 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
28329 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
28330 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
28331 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
28332 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
28333 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
28334 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28335 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
28336 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28337 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28338 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28339 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28340 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28341 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28342 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28343 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28344 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28345 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
28346 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28347 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
28348 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
28349 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
28350 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
28351 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
28352 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
28353 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
28354 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
28355 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
28356 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
28357 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28358 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28359 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
28360 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
28361 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
28362 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
28363 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
28364 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
28365 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
28366 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
28367 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
28368 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
28369 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
28370 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
28371 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
28372 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
28373 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
28374 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
28375 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
28376 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28377 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
28378 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
28379 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
28380 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
28381 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
28382 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
28383 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
28384 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
28385 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
28386 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
28387 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
28388 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
28389 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
28390 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28391 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28392 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28393 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28394 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28395 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
28396 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
28397 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
28398 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28399 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
28400 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
28401 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
28402 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
28403 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
28404 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
28405 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
28406 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
28407 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS, NULL },
28408 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
28409 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS, NULL },
28410 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28411 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS, NULL },
28412 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS, NULL },
28413 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
28414 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
28415 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28416 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
28417 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28418 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
28419 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28420 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28421 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28422 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28423 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28424 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
28425 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28426 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28427 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
28428 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
28429 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28430 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
28431 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28432 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
28433 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28434 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28435 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
28436 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28437 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28438 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28439 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28440 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28441 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
28442 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28443 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28444 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28445 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
28446 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
28447 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
28448 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28449 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
28450 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
28451 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
28452 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
28453 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
28454 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28455 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
28456 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
28457 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
28458 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
28459 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
28460 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
28461 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28462 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28463 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28464 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28465 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
28466 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
28467 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
28468 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
28469 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
28470 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
28471 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
28472 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
28473 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
28474 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
28475 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28476 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
28477 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28478 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28479 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28480 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28481 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
28482 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
28483 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28484 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28485 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
28486 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
28487 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
28488 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
28489 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
28490 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
28491 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
28492 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
28493 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
28494 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
28495 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28496 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28497 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28498 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
28499 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
28500 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
28501 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28502 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28503 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
28504 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
28505 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28506 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
28507 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
28508 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
28509 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
28510 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
28511 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
28512 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
28513 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
28514 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
28515 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
28516 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
28517 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
28518 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
28519 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
28520 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
28521 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
28522 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
28523 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
28524 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28525 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28526 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
28527 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
28528 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
28529 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28530 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
28531 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
28532 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
28533 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28534 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
28535 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
28536 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
28537 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
28538 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
28539 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
28540 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28541 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
28542 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
28543 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
28544 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
28545 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
28546 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
28547 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
28548 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
28549 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
28550 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
28551 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
28552 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
28553 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
28554 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
28555 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
28556 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28557 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
28558 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
28559 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
28560 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
28561 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
28562 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28563 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28564 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28565 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28566 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28567 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28568 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28569 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28570 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28571 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28572 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
28573 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
28574 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
28575 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
28576 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
28577 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
28578 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
28579 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
28580 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
28581 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
28582 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
28583 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
28584 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
28585 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
28586 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
28587 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
28588 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
28589 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
28590 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28591 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
28592 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
28593 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
28594 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
28595 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
28596 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
28597 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
28598 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
28599 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
28600 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
28601 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
28602 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
28603 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
28604 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
28605 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
28606 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
28607 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
28608 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
28609 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
28610 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
28611 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
28612 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
28613 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
28614 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
28615 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
28616 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
28617 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
28618 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
28619 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
28620 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
28621 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
28622 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
28623 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
28624 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
28625 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
28626 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
28627 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
28628 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
28629 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
28630 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
28631 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
28632 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
28633 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
28634 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
28635 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
28636 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
28637 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
28638 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
28639 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
28640 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
28641 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
28642 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
28643 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
28644 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
28645 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
28646 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
28647 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
28648 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
28649 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
28650 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
28651 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
28652 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
28653 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
28654 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
28655 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
28656 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
28657 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
28658 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
28659 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
28660 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
28661 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
28662 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
28663 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
28664 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
28665 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
28666 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
28667 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
28668 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
28669 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
28670 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
28671 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
28672 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
28673 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
28674 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
28675 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
28676 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
28677 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
28678 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
28679 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
28680 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
28681 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
28682 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
28683 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
28684 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
28685 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
28686 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
28687 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
28688 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
28689 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
28690 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
28691 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
28692 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
28693 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
28694 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
28695 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
28696 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
28697 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
28698 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
28699 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
28700 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
28701 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
28702 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
28703 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
28704 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
28705 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
28706 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
28707 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
28708 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
28709 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
28710 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
28711 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
28712 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
28713 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
28714 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
28715 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
28716 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
28717 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
28718 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
28719 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
28720 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
28721 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
28722 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
28723 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
28724 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
28725 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
28726 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
28727 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
28728 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28729 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
28730 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
28731 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
28732 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
28733 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
28734 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
28735 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
28736 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
28737 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
28738 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
28739 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
28740 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
28741 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
28742 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28743 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
28744 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
28745 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
28746 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
28747 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28748 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
28749 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
28750 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
28751 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
28752 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28753 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28754 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
28755 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28756 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
28757 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
28758 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
28759 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28760 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28761 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
28762 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28763 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
28764 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
28765 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
28766 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28767 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS, NULL },
28768 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
28769 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
28770 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
28771 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
28772 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28773 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
28774 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
28775 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
28776 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28777 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
28778 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
28779 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
28780 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
28781 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
28782 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28783 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
28784 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
28785 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28786 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28787 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
28788 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
28789 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
28790 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28791 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28792 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28793 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28794 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
28795 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28796 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
28797 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28798 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
28799 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
28800 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
28801 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28802 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28803 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28804 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
28805 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28806 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
28807 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
28808 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
28809 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
28810 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
28811 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28812 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
28813 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28814 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
28815 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
28816 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
28817 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
28818 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
28819 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
28820 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
28821 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
28822 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
28823 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
28824 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
28825 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
28826 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
28827 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
28828 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
28829 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
28830 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28831 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
28832 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
28833 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
28834 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
28835 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
28836 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL },
28837 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
28838 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
28839 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28840 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28841 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
28842 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
28843 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL },
28844 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL },
28845 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL },
28846 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL },
28847 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL },
28848 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL },
28849 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL },
28850 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL },
28851 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL },
28852 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL },
28853 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL },
28854 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
28855 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28856 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28857 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
28858 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL },
28859 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
28860 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL },
28861 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL },
28862 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL },
28863 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL },
28864 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL },
28865 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL },
28866 { NULL, NULL, 0, NULL }
28867 };
28868
28869
28870 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28871
28872 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28873 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28874 }
28875 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28876 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28877 }
28878 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28879 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28880 }
28881 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28882 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28883 }
28884 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28885 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28886 }
28887 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28888 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28889 }
28890 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28891 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28892 }
28893 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28894 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28895 }
28896 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28897 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28898 }
28899 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28900 return (void *)((wxEvent *) ((wxPyEvent *) x));
28901 }
28902 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28903 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28904 }
28905 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28906 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28907 }
28908 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28909 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28910 }
28911 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28912 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28913 }
28914 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28915 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28916 }
28917 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28918 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28919 }
28920 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28921 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28922 }
28923 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28924 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28925 }
28926 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28927 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28928 }
28929 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28930 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28931 }
28932 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28933 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28934 }
28935 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
28936 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
28937 }
28938 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
28939 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
28940 }
28941 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
28942 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
28943 }
28944 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
28945 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
28946 }
28947 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
28948 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
28949 }
28950 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
28951 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
28952 }
28953 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
28954 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
28955 }
28956 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
28957 return (void *)((wxEvent *) ((wxFocusEvent *) x));
28958 }
28959 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
28960 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
28961 }
28962 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
28963 return (void *)((wxEvent *) ((wxProcessEvent *) x));
28964 }
28965 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
28966 return (void *)((wxEvent *) ((wxShowEvent *) x));
28967 }
28968 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
28969 return (void *)((wxEvent *) ((wxCommandEvent *) x));
28970 }
28971 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
28972 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
28973 }
28974 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
28975 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28976 }
28977 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
28978 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
28979 }
28980 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
28981 return (void *)((wxEvent *) ((wxKeyEvent *) x));
28982 }
28983 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
28984 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
28985 }
28986 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
28987 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
28988 }
28989 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
28990 return (void *)((wxConfigBase *) ((wxConfig *) x));
28991 }
28992 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
28993 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
28994 }
28995 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
28996 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
28997 }
28998 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
28999 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29000 }
29001 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29002 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29003 }
29004 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29005 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29006 }
29007 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29008 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29009 }
29010 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29011 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29012 }
29013 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29014 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29015 }
29016 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29017 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29018 }
29019 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29020 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29021 }
29022 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29023 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29024 }
29025 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29026 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29027 }
29028 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29029 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29030 }
29031 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29032 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29033 }
29034 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29035 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29036 }
29037 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29038 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29039 }
29040 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29041 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29042 }
29043 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29044 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29045 }
29046 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29047 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29048 }
29049 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29050 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29051 }
29052 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29053 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29054 }
29055 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29056 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29057 }
29058 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29059 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29060 }
29061 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29062 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29063 }
29064 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29065 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29066 }
29067 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29068 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29069 }
29070 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29071 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29072 }
29073 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29074 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29075 }
29076 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29077 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29078 }
29079 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29080 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29081 }
29082 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29083 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29084 }
29085 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29086 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29087 }
29088 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29089 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29090 }
29091 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29092 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29093 }
29094 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29095 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29096 }
29097 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29098 return (void *)((wxObject *) ((wxSizerItem *) x));
29099 }
29100 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29102 }
29103 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29104 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29105 }
29106 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29107 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29108 }
29109 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29110 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29111 }
29112 static void *_p_wxSizerTo_p_wxObject(void *x) {
29113 return (void *)((wxObject *) ((wxSizer *) x));
29114 }
29115 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29116 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29117 }
29118 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29119 return (void *)((wxObject *) ((wxFileHistory *) x));
29120 }
29121 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29122 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29123 }
29124 static void *_p_wxEventTo_p_wxObject(void *x) {
29125 return (void *)((wxObject *) ((wxEvent *) x));
29126 }
29127 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29128 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29129 }
29130 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29131 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29132 }
29133 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29134 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29135 }
29136 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29137 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29138 }
29139 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29140 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29141 }
29142 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29143 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29144 }
29145 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29146 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29147 }
29148 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29149 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29150 }
29151 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29152 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29153 }
29154 static void *_p_wxControlTo_p_wxObject(void *x) {
29155 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29156 }
29157 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29158 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29159 }
29160 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29161 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29162 }
29163 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29164 return (void *)((wxObject *) ((wxFSFile *) x));
29165 }
29166 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29167 return (void *)((wxObject *) ((wxClipboard *) x));
29168 }
29169 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29170 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29171 }
29172 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29173 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29174 }
29175 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29176 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29177 }
29178 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29179 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29180 }
29181 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29182 return (void *)((wxObject *) ((wxToolTip *) x));
29183 }
29184 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29185 return (void *)((wxObject *) ((wxMenuItem *) x));
29186 }
29187 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29188 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29189 }
29190 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29191 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29192 }
29193 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29194 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29195 }
29196 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29197 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29198 }
29199 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29200 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29201 }
29202 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29203 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29204 }
29205 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29206 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29207 }
29208 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29209 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29210 }
29211 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29212 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29213 }
29214 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29215 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29216 }
29217 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29218 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29219 }
29220 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29221 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29222 }
29223 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29224 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29225 }
29226 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29227 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29228 }
29229 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29230 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29231 }
29232 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29233 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29234 }
29235 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29236 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29237 }
29238 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29239 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29240 }
29241 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29242 return (void *)((wxObject *) ((wxImageHandler *) x));
29243 }
29244 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29245 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29246 }
29247 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29248 return (void *)((wxObject *) ((wxEvtHandler *) x));
29249 }
29250 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29251 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29252 }
29253 static void *_p_wxImageTo_p_wxObject(void *x) {
29254 return (void *)((wxObject *) ((wxImage *) x));
29255 }
29256 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29257 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29258 }
29259 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29260 return (void *)((wxObject *) ((wxSystemOptions *) x));
29261 }
29262 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29263 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29264 }
29265 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29266 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29267 }
29268 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29269 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29270 }
29271 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29272 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29273 }
29274 static void *_p_wxWindowTo_p_wxObject(void *x) {
29275 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29276 }
29277 static void *_p_wxMenuTo_p_wxObject(void *x) {
29278 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29279 }
29280 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29281 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29282 }
29283 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29284 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29285 }
29286 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29287 return (void *)((wxObject *) ((wxFileSystem *) x));
29288 }
29289 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29290 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29291 }
29292 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29293 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29294 }
29295 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29296 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29297 }
29298 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29299 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29300 }
29301 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29302 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29303 }
29304 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29305 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29306 }
29307 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29308 return (void *)((wxObject *) ((wxBusyInfo *) x));
29309 }
29310 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29311 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29312 }
29313 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29314 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29315 }
29316 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29317 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29318 }
29319 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29320 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29321 }
29322 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29323 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29324 }
29325 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29326 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29327 }
29328 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29329 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29330 }
29331 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29332 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29333 }
29334 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29335 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29336 }
29337 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29338 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29339 }
29340 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29341 return (void *)((wxLog *) ((wxLogStderr *) x));
29342 }
29343 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29344 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29345 }
29346 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29347 return (void *)((wxLog *) ((wxLogWindow *) x));
29348 }
29349 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29350 return (void *)((wxLog *) ((wxLogChain *) x));
29351 }
29352 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29353 return (void *)((wxLog *) ((wxLogGui *) x));
29354 }
29355 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29356 return (void *)((wxLog *) ((wxPyLog *) x));
29357 }
29358 static void *_p_wxControlTo_p_wxWindow(void *x) {
29359 return (void *)((wxWindow *) ((wxControl *) x));
29360 }
29361 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29362 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29363 }
29364 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29365 return (void *)((wxWindow *) ((wxMenuBar *) x));
29366 }
29367 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29368 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29369 }
29370 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29371 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29372 }
29373 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}};
29374 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}};
29375 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}};
29376 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}};
29377 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}};
29378 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}};
29379 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}};
29380 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}};
29381 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}};
29382 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}};
29383 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}};
29384 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}};
29385 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}};
29386 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}};
29387 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}};
29388 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}};
29389 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}};
29390 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}};
29391 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}};
29392 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}};
29393 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}};
29394 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}};
29395 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}};
29396 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}};
29397 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}};
29398 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}};
29399 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}};
29400 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}};
29401 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}};
29402 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}};
29403 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}};
29404 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}};
29405 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}};
29406 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}};
29407 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}};
29408 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}};
29409 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}};
29410 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}};
29411 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}};
29412 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}};
29413 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}};
29414 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}};
29415 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}};
29416 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}};
29417 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}};
29418 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}};
29419 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}};
29420 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}};
29421 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}};
29422 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}};
29423 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}};
29424 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}};
29425 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}};
29426 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}};
29427 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}};
29428 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}};
29429 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}};
29430 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}};
29431 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}};
29432 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}};
29433 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}};
29434 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}};
29435 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}};
29436 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}};
29437 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}};
29438 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}};
29439 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}};
29440 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}};
29441 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}};
29442 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}};
29443 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}};
29444 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}};
29445 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}};
29446 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}};
29447 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}};
29448 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}};
29449 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}};
29450 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}};
29451 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}};
29452 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}};
29453 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}};
29454 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}};
29455 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}};
29456 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}};
29457 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}};
29458 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}};
29459 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}};
29460
29461 static swig_type_info *swig_types_initial[] = {
29462 _swigt__p_wxLogChain,
29463 _swigt__p_wxMutexGuiLocker,
29464 _swigt__p_wxMetafile,
29465 _swigt__p_wxFileHistory,
29466 _swigt__p_wxLog,
29467 _swigt__p_wxDateTime__TimeZone,
29468 _swigt__p_wxMenu,
29469 _swigt__p_wxEvent,
29470 _swigt__p_wxConfigBase,
29471 _swigt__p_wxDisplay,
29472 _swigt__p_wxFileType,
29473 _swigt__p_wxLogGui,
29474 _swigt__p_wxFont,
29475 _swigt__p_wxDataFormat,
29476 _swigt__p_wxTimerEvent,
29477 _swigt__p_wxCaret,
29478 _swigt__p_int,
29479 _swigt__p_wxSize,
29480 _swigt__p_wxClipboard,
29481 _swigt__p_wxStopWatch,
29482 _swigt__p_wxDC,
29483 _swigt__p_wxClipboardLocker,
29484 _swigt__p_wxIcon,
29485 _swigt__p_wxLogStderr,
29486 _swigt__p_wxLogTextCtrl,
29487 _swigt__p_wxTextCtrl,
29488 _swigt__p_wxBusyCursor,
29489 _swigt__p_wxPyTextDataObject,
29490 _swigt__p_wxBitmapDataObject,
29491 _swigt__p_wxTextDataObject,
29492 _swigt__p_wxDataObject,
29493 _swigt__p_wxPyBitmapDataObject,
29494 _swigt__p_wxFileDataObject,
29495 _swigt__p_wxCustomDataObject,
29496 _swigt__p_wxURLDataObject,
29497 _swigt__p_wxMetafileDataObject,
29498 _swigt__p_wxSound,
29499 _swigt__p_wxTimerRunner,
29500 _swigt__p_wxLogWindow,
29501 _swigt__p_wxTimeSpan,
29502 _swigt__p_wxArrayString,
29503 _swigt__p_wxWindowDisabler,
29504 _swigt__p_wxToolTip,
29505 _swigt__p_wxDataObjectComposite,
29506 _swigt__p_wxFileConfig,
29507 _swigt__p_wxSystemSettings,
29508 _swigt__p_wxVideoMode,
29509 _swigt__p_wxPyDataObjectSimple,
29510 _swigt__p_wxDataObjectSimple,
29511 _swigt__p_wxEvtHandler,
29512 _swigt__p_wxRect,
29513 _swigt__p_char,
29514 _swigt__p_wxSingleInstanceChecker,
29515 _swigt__p_wxFileTypeInfo,
29516 _swigt__p_wxFrame,
29517 _swigt__p_wxTimer,
29518 _swigt__p_wxMimeTypesManager,
29519 _swigt__p_wxPyArtProvider,
29520 _swigt__p_wxPyTipProvider,
29521 _swigt__p_wxTipProvider,
29522 _swigt__p_wxJoystick,
29523 _swigt__p_wxSystemOptions,
29524 _swigt__p_wxPoint,
29525 _swigt__p_wxJoystickEvent,
29526 _swigt__p_wxCursor,
29527 _swigt__p_wxObject,
29528 _swigt__p_wxOutputStream,
29529 _swigt__p_wxDateTime,
29530 _swigt__p_wxPyDropSource,
29531 _swigt__p_wxWindow,
29532 _swigt__p_wxString,
29533 _swigt__p_wxPyProcess,
29534 _swigt__p_wxBitmap,
29535 _swigt__p_wxConfig,
29536 _swigt__p_wxChar,
29537 _swigt__p_wxBusyInfo,
29538 _swigt__p_wxPyDropTarget,
29539 _swigt__p_wxPyTextDropTarget,
29540 _swigt__p_wxPyFileDropTarget,
29541 _swigt__p_wxProcessEvent,
29542 _swigt__p_wxPyLog,
29543 _swigt__p_wxLogNull,
29544 _swigt__p_wxColour,
29545 _swigt__p_wxByte,
29546 _swigt__p_wxConfigPathChanger,
29547 _swigt__p_wxPyTimer,
29548 _swigt__p_wxDateSpan,
29549 0
29550 };
29551
29552
29553 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29554
29555 static swig_const_info swig_const_table[] = {
29556 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29557 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29558 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29559 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29560 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29561 {0, 0, 0, 0.0, 0, 0}};
29562
29563 #ifdef __cplusplus
29564 }
29565 #endif
29566
29567 #ifdef __cplusplus
29568 extern "C"
29569 #endif
29570 SWIGEXPORT(void) SWIG_init(void) {
29571 static PyObject *SWIG_globals = 0;
29572 static int typeinit = 0;
29573 PyObject *m, *d;
29574 int i;
29575 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29576 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29577 d = PyModule_GetDict(m);
29578
29579 if (!typeinit) {
29580 for (i = 0; swig_types_initial[i]; i++) {
29581 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29582 }
29583 typeinit = 1;
29584 }
29585 SWIG_InstallConstants(d,swig_const_table);
29586
29587 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29588 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29589 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29590 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29591 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29592 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29593 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29594 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29595 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29596 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29597 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29598 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29599 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29600 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29601 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29602 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29603 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29604 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29605 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29606 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29607 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29608 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29609 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29610 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29611 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29612 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29613 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29614 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29615 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29616 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29617 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29618 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29619 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29620 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29621 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29622 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29623 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29624 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29625 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29626 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29627 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29628 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29629 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29630 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29631 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29632 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29633 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29634 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29635 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29636 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29637 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29638 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29639 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29640 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29641 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29642 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29643 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29644 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29645 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29646 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29647 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29648 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29649 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29650 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29651 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29652 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29653 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29654 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29655 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29656 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29657 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29658 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29659 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29660 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29661 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29662 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29663 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29664 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29665 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29666 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29667 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29668 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29669 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29670 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29671 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29672 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29673 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29674 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29675 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29676 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29677 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29678 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29679 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29680 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29681 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29682 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29683 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29684 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29685 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29686 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29687 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29688 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29689 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29690 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29691 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29692 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29693 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29694 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29695 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29696 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29697 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29698 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29699 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29700 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29701 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29702 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29703 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29704 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29705 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29706 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29707 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29708 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29709 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29710 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29711 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29712 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29713 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29714 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29715 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29716 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29717 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29718 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29719 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29720 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29721 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29722 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29723 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29724 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29725 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29726 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29727 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29728 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29729 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29730 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29731 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29732 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29733 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29734 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29735 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29736 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29737
29738 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29739
29740 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29741 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29742 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29743 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29744 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29745 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29746 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29747 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29748 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29749 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29750 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29751 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29752 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29753 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29754 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29755 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29756 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29757 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29758 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29759 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29760 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29761 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29762 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29763 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29764 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29765 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29766 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29767 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29768 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29769 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29770 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29771 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29772 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29773 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29774 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29775 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29776 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29777 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29778 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29779 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29780 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29781 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29782 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29783 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29784 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29785 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29786 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29787 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29788 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29789 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29790 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29791 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29792 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29793 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29794 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29795 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29796 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29797 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29798
29799 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29800
29801 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29802 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29803 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29804 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29805 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29806 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29807 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29808 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29809 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29810 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29811 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29812 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29813 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29814 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29815 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29816 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29817 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29818 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29819 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29820 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29821 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29822 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29823 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29824 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29825 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29826 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29827 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29828 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29829 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29830 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29831 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29832 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29833 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29834 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29835 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29836 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29837 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29838 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29839 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29840 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29841 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29842 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29843 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29844 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29845 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29846 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29847 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29848 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29849 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29850 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29851 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29852 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29853 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29854 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29855 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29856 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29857 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29858 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29859 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29860 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29861 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29862 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29863 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29864 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29865 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29866 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29867 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29868 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29869 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29870 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29871 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29872 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29873 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29874 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29875 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29876 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29877 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29878 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29879 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29880 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29881 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29882 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29883 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29884 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29885 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29886 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29887 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29888 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29889 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29890 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29891 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29892 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29893 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29894 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29895 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29896 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29897 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29898 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29899 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29900 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29901 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29902 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29903 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29904 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29905 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29906 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29907 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29908 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29909 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29910 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29911 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29912 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29913 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29914 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29915 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29916 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29917 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29918 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29919 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29920 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29921 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29922 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29923 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29924 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29925 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29926 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29927 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29928 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29929 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29930 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29931 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29932 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29933 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29934 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
29935 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
29936 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
29937 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
29938 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
29939 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
29940 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
29941 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
29942 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
29943 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
29944 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
29945 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
29946 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
29947 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
29948 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
29949 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
29950 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
29951 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
29952 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
29953 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
29954 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
29955 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
29956 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
29957 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
29958 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
29959 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
29960 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
29961 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
29962 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
29963 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
29964 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
29965 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
29966 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
29967 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
29968 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
29969 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
29970 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
29971 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
29972 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
29973 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
29974 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
29975 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
29976 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
29977 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
29978 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
29979 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
29980 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
29981 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
29982 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
29983 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
29984 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
29985 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
29986 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
29987 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
29988 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
29989 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
29990 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
29991 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
29992 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
29993 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
29994 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
29995 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
29996 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
29997 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
29998 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
29999 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30000 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30001
30002 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30003 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30004 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30005 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30006
30007 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
30008 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30009 }
30010